Problems with PHP. Need help on urls not being correct

Discussion in 'PHP' started by SEOTeam, Aug 21, 2006.

  1. #1
    I setup a site using the scuttle script.

    you can see my site here

    http://www.faved.net

    all urls on the page like register - login and about are corret locations but are not working. They give an error saying No input file specified.

    I need to know why this is an dhow to fix it. Please someone help.

    Thank you
     
    SEOTeam, Aug 21, 2006 IP
  2. mikelbeck

    mikelbeck Well-Known Member

    Messages:
    790
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    108
    #2
    Your links are going to a directory, not a php file. For example, "register" goes to "http://www.faved.net/register/" which doesn't work. "http://www.faved.net/register.php" does work, though.
     
    mikelbeck, Aug 21, 2006 IP
  3. SEOTeam

    SEOTeam Peon

    Messages:
    236
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I changed the config file so that it will read .php at the end and it does this.

    register.php/
    and with the / it doesnt work but without it it does. Why?
     
    SEOTeam, Aug 21, 2006 IP
  4. daboss

    daboss Guest

    Messages:
    2,249
    Likes Received:
    151
    Best Answers:
    0
    Trophy Points:
    0
    #4
    the '/' character at the back of the url tells the server that the url is a directory (instead of a specific file)... as a result, the server looks that the server's config file to refer to a default file to serve (typically index.html, index.htm or index.php).

    if the file that you want to server is not in the config file - e.g. register.php, the server cannot find it and returns an error... i.e. file not found...
     
    daboss, Aug 21, 2006 IP
  5. SEOTeam

    SEOTeam Peon

    Messages:
    236
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    SEOTeam, Aug 21, 2006 IP
  6. Gordaen

    Gordaen Peon

    Messages:
    277
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I'm not familiar with scuttle, but I would assume that (based on what was said before) mod rewrites were supposed to be enabled. The "No input file specified." error is generally a result of sending a file that doesn't exist (in other words, nothing) to the php processor when running php as a cgi.

    P.S. Doing something like this is not impressive.
     
    Gordaen, Aug 22, 2006 IP
  7. SEOTeam

    SEOTeam Peon

    Messages:
    236
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Its probably not impressive to people who read my blog and learn how to do it.
     
    SEOTeam, Aug 22, 2006 IP
  8. Gordaen

    Gordaen Peon

    Messages:
    277
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Actually, I just looked at the URL that you posted and adjusted it (pretty obvious to the human eye). I don't see how that would be beneficial in any way due to the long query (though you can cut out a huge chunk of the original query url you posted). I wouldn't be surprised if search engines checked the URL for stuff like this (though maybe not for one that is actually fully encoded). Regardless, my point was that you didn't need to bribe the forum with "tricks" to receive responses.

    Anyway, as I mentioned before, this is most likely due to running php as a cgi and passing blank data. Did you verify you have php4-mysql module installed? Which version of PHP are you running (and have you tried the latest version of 5?)? Verify you have short open tags enabled. If you are using an old version of apache, you may have to remove AcceptPathInfo from your .htaccess file.
     
    Gordaen, Aug 23, 2006 IP