Jump to content

Getting the result of a PHP script


enveetee

Recommended Posts

I have a client application which runs a script on my server using HTTP POST

 

How can I get a clean result of that script

 

Currently, the script returns all sorts of headers, fonts and so on

 

All I need is the name of the currently executing script (__file__?) and a result 1 or 0 plus any error message

 

Suggestions please..

 

Link to comment
https://forums.phpfreaks.com/topic/294885-getting-the-result-of-a-php-script/
Share on other sites

Do your own logging on the script that saves a database or csv file, save whatever you want from it.

 

You can use $_SERVER['REQUEST_URI'] which returns script,query,directory or $_SERVER['SCRIPT_NAME'] just the name of the script

$_SERVER

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.