Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2004
    Atlanta, GA

    Apache 2.2 / php 5 update: calling files behind root

    With my old Apache 1 and PHP4 I was able to pull files from behind the public_html using a php file without any problems. Is there a reason why this does not work with Apache 2.2 and PHP5?

    the piece of coding below is what grabs the image. Right now i'm just seeing a red X for each image.

    PHP Code:
            if ($private == 1) {
    header("Content-type: image/jpeg"); 
    $im imagecreatefromjpeg('/home/site1/private/' $type '/' $mid '-' $iid '.jpg'); 

  2. #2
    What does the error_log say?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts