|
Posted by alexus on July 25, 2008, 1:49 am
Please log in for more thread options
I'm writing a shell script and inside of it I have variable that I
want to pass to php, but for some reason it isn't working... can
someone help me? here is example
#!/bin/sh
i=127.0.0.1
php -r 'geoip_country_name_by_name($i);'
echo $?
php part works in shell if i use actual value from variable and not
variable itself
|