Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

php4 and Zend - issue with include()

Discussion in 'General Discussion' started by EWD, Dec 6, 2007.

  1. EWD

    EWD Well-Known Member
    PartnerNOC

    Joined:
    Aug 19, 2003
    Messages:
    165
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    NY
    Hi Guys,

    I am running a server with php4.4.7 and zend.
    It is setup with SuPHP and if zend is installed and you try to use include() in a file you get an internal server error.
    error log just shows premature end of script headers.

    Anyone else having this issue and/or know a fix other then disable zend opt?

    Thanks ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. darren.nolan

    darren.nolan Well-Known Member

    Joined:
    Oct 4, 2007
    Messages:
    259
    Likes Received:
    0
    Trophy Points:
    66
    Seen this error on 4.4.6 as well as 4.4.7 - Happened after installing Zend.

    My problem was from clients trying to include ('http://theirdomain.com/theirscript.php'); rather than relative to their script include ('./directory/file.php');

    Settings in PHP.ini for URL open and the such didn't not work. No idea on a solution, and I haven't found one yet. As a PHP programmer though, it's good practice to not use a domain in an include if you can avoid it.
     
  3. heavypredator

    heavypredator Well-Known Member

    Joined:
    May 2, 2003
    Messages:
    93
    Likes Received:
    1
    Trophy Points:
    158
    Use older zend - 3.2.2 should work. 3.3.0 is crashing with php4
     
  4. VeZoZ

    VeZoZ Well-Known Member

    Joined:
    Dec 14, 2002
    Messages:
    245
    Likes Received:
    0
    Trophy Points:
    166
    cPanel Access Level:
    DataCenter Provider
    I can confirm this indeed the problem. We had it with a machine and that was the solution after trying pretty much everything else.
     
  5. EWD

    EWD Well-Known Member
    PartnerNOC

    Joined:
    Aug 19, 2003
    Messages:
    165
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    NY
    Thanks for the tip. It helped ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice