N
Nautilus
Taken from a couple very similar samples on the net, I'm having
trouble passing a parameter to a PHP file.
Here's all the JS code ... it creates an image object and modifies
it's src to make a 'call' to the PHP file:
var myobj = new Image();
myobj.src = 'http://www.mypage.com/my.php?url=' + 'anything_here';
The process seems to recognize that the file URL ends at the "?", and
system logs show that the GET of the PHP file was successful.
However, it doesn't seem to execute the PHP (internal debug logging
does not occur).
The PHP code itself works, if I go in through SSH and enter this:
php ./my.php url=anything_here
then the PHP uses $_GET['url'] and parses/logs the param just fine.
If I replace the "?" with a space (like the SSH command line) then the
server seems to think the whole line (or at least up to the '=' sign)
is the file's URL and I get a 404 error (file not found).
Any suggestions / debugging ideas?
THANKS!
trouble passing a parameter to a PHP file.
Here's all the JS code ... it creates an image object and modifies
it's src to make a 'call' to the PHP file:
var myobj = new Image();
myobj.src = 'http://www.mypage.com/my.php?url=' + 'anything_here';
The process seems to recognize that the file URL ends at the "?", and
system logs show that the GET of the PHP file was successful.
However, it doesn't seem to execute the PHP (internal debug logging
does not occur).
The PHP code itself works, if I go in through SSH and enter this:
php ./my.php url=anything_here
then the PHP uses $_GET['url'] and parses/logs the param just fine.
If I replace the "?" with a space (like the SSH command line) then the
server seems to think the whole line (or at least up to the '=' sign)
is the file's URL and I get a 404 error (file not found).
Any suggestions / debugging ideas?
THANKS!