PHP Command Line "No input file specified"

Posted on 2005-04-23
Last Modified: 2008-01-09
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?
Question by:micamedia
    LVL 13

    Accepted 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.
    LVL 3

    Expert Comment

    As stromy said, make sure the path of the file is correct and the file exist in the path you specified.

    LVL 2

    Expert Comment

    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"
    LVL 14

    Expert Comment

    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

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
    I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
    Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now