• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 868
  • Last Modified:

PHP Command Line "No input file specified"

I have the  following line of code in my php script"

exec("/usr/bin/php /home/voteforp/public_html/phplist/lists/admin/index.php > /home/voteforp/public_html/logs/phplist_process_log.txt");

This used to work just fine, and save the output of the "index.php" script to the log file. Now all i get in the log file is the following:


Status: 404
Content-type: text/html
X-Powered-By: PHP/4.3.11

No input file specified.


I changed nothing... what happened? how can i fix it?
1 Solution
Well, a 404 error means one of those files is missing. Make sure no paths have changed. I see something a bit suspect: the space between /php and /home in the php path.
As stromy said, make sure the path of the file is correct and the file exist in the path you specified.

the space is ok. Enter
ls /home/voteforp/public_html/phplist/lists/admin/index.php
in the command prompt to convince yourself that the index.php is missing.

Alternatively, change "index.php" in your php script to "a_file_that_really_does_not_exists_jdksdfhuisd"
No comment has been added to this question in more than 21 days, so it is now classified as abandoned..
I will leave the following recommendation for this question in the Cleanup topic area:
Accept: StormyWaters {http:#13852148}

Any objections should be posted here in the next 4 days. After that time, the question will be closed.

EE Cleanup Volunteer

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now