开发者

PHP see POST/GET values made to script dynamically

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜