reesha ranjith;10984730 wrote:
I used curl to invoke the url
Read brad's post once again, specifically the line
bradgrafelman;10984709 wrote:
However, it would be more efficient to simply invoke the PHP parser directly, e.g. "php /path/to/file.php" .
You have the file locally, that is on a disk directly accessible. Yet, instead of just somehow using the file directly from the disk, e.g. by issuing a shell command "php /path/file" or by PHP's file accessing function such as file_get_contents(path/file), you send a GET or POST request from your machine, to the web server on the same machine, have the web server access the file, and if relevant return the file's data via HTTP.
In short: When you have something in your house that you want, go get it. Don't leave the house, walk around it once, knock on the door and ask your mom / girflriend to give it to you, reenter the house and have them leave the house, walk around it once, knock on the door and give it to you.