atar
2013-12-25 00:48:36 UTC
Hi there!!
Afterwards, I've launch the PHP binary on my Debian Linux machine with the
strange thing here is that the PHP binary replies to the browser with the
NOTE: I'm using the php-cli (Command Line Interface) version of the PHP
binary.
Regards,
atar.
<?php
var_dump($_GET['r']);
?>
and save it to a file named: test.php.var_dump($_GET['r']);
?>
Afterwards, I've launch the PHP binary on my Debian Linux machine with the
"php -S 127.0.0.1:8000 test.php"
in order to use the built-in PHP web server."http://127.0.0.1:8000/test.php?r=something"
"[Tue Dec 24 23:56:31 2013] PHP Notice: Undefined index: r in
/home/user/Desktop/new_raf_jewl/test.php on line 3"
My question is simply why? what's wrong with my above PHP snippet? and the"[Tue Dec 24 23:56:31 2013] PHP Notice: Undefined index: r in
/home/user/Desktop/new_raf_jewl/test.php on line 3"
strange thing here is that the PHP binary replies to the browser with the
" string(9) "something" "
so what's going here? is the $_GET['r'] index is defined or not?NOTE: I'm using the php-cli (Command Line Interface) version of the PHP
binary.
Regards,
atar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php