The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    16
    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 ;)
     
  2. darren.nolan

    darren.nolan Well-Known Member

    Joined:
    Oct 4, 2007
    Messages:
    259
    Likes Received:
    0
    Trophy Points:
    16
    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:
    8
    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:
    248
    Likes Received:
    0
    Trophy Points:
    16
    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:
    16
    Location:
    NY
    Thanks for the tip. It helped ;)
     
Loading...

Share This Page