开发者

PHP see POST/GET values made to script dynamically

开发者 https://www.devze.com 2023-02-03 07:22 出处:网络
I\'ve been testing a PHP script that I开发者_如何转开发\'m posting values to every few seconds (latitude and longitude to be specific) and am wondering if there\'s an easier way to see what values are

I've been testing a PHP script that I开发者_如何转开发'm posting values to every few seconds (latitude and longitude to be specific) and am wondering if there's an easier way to see what values are being sent to the script. Right now I'm writing the data to a txt file on my server, and refreshing the page every so often to see what values have been posted recently. Is there a way to just see what's going on behind the scenes (in terminal, perhaps)?

Thanks.


There's of course print_r() to output it directly:

print_r($_REQUEST);

then there's FirePHP, an extension to Firebug, that allows sending messages to Firebug's console.

Both should be enabled only in a development environment!


Since you are already writing to a text file, ssh to the server, and tail -f logfile.txt

If you are running on windows, you can install the gnu utils or cygwin and do the same thing.

0

精彩评论

暂无评论...
验证码 换一张
取 消