werid php issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ChrisTech
    Senior Member
    • Mar 2004
    • 530

    #1

    werid php issue

    I have a customer, whose site will show their drop down menu (its php) on their front page, but it won't show up on any other pages.

    I don't think anything was done to the server (cpanel63) recently to cause this. They just noticed it over the weekend.

    Any ideas on why this might happen? Their URL is (http://www.redbudindustries.com/) I'm at a loss on this one currently, though I haven't had time to look it up yet.
    Hosting at Dathorn since March 2003!

    My Interwebs speed on Charter Cable!
  • bburchfield
    Junior Member
    • Feb 2007
    • 8

    #2
    That's almost always a pathing error in an include() or require() statement.

    However, I do see a "<?php include("http://www.redbudindustries.com/rbimenu.htm"); ?>" commented out in the html source. That'll certainly prevent it from working.

    Comment

    • AndrewT
      Administrator
      • Mar 2004
      • 3655

      #3
      Should be fixed now. Since you are using HTTP based includes you need PHP 5. I simply did what is listed at the link below to enable PHP 5 for the domain.

      UPDATE 2/10/09 - PHP 4 is no longer available. You can, however, still use this same AddHandler directive in your .htaccess files to process alternative file extensions as PHP scripts. PHP5 is now included on every server. PHP4 is still running with mod_suphp and will run by default. PHP5 also runs with mod_suphp on all .php5


      Having said that, you really should never use HTTP to include a local file.

      This would work much better and would have avoided this problem all together:

      include("/home/**user**/public_html/rbimenu.htm");

      Comment

      • ChrisTech
        Senior Member
        • Mar 2004
        • 530

        #4
        Thanks for the help both of you. I forwarded on the info to the customer.
        Hosting at Dathorn since March 2003!

        My Interwebs speed on Charter Cable!

        Comment

        Working...