a few weeks ago there was a discussion about how 
to get
variables attached to a url like
http://server.com/script.php?var1=value1&var2=val
ue2&var3=value3

the easiest way to do this is possibly:

$vars  = explode("&", $argv[0]);
parse_str($vars);


with these two lines you will have the variables
defined in your script and can refer to them by
$var1, $var2 etc.

jyrgen

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to