![]() |
PHP code help needed.
Hi i'm stuck on where to add my Do While Loop statement ... below is the section of the coding that is being processed. what is happening is the source is examined and the version codes are grabbed. but, it needs to loop through the source and grab all version codes and not just the first one.
thanks in advance Code:
$resp = curl_exec($ch); |
use regexp not some gay strpos setup you have...
|
Quote:
also back to my original question where should my do loop go? |
|
Quote:
|
Quote:
http://us3.php.net/preg_match_all |
its not all xml =/
|
ahhh theres a function for just about everything :winkwink:
|
Woah, your code just took me back to 1995.. thank ya
|
Quote:
Code:
preg_match_all('|<024version>(.*?)</024version>|',$resp,$writecontent); |
Quote:
|
ok seems to be working except one issue... damn array.. how do you pull the results from the array... it's listing them one i do a print_r but but will not output them to the. all i'm getting in the file is Array repeated on each line
Code:
$lookfor ="|<024version>(.*?)</024version>|Ui"; |
Code:
$lookfor = '|<024version>(.*)</024version>|Ui'; |
thank you =)
|
All times are GMT -7. The time now is 02:00 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123