URGENT: Can't see picture

From: Date: Thu, 15 Mar 2001 05:01:13 +0000
Subject: URGENT: Can't see picture
Groups: php.general 
Request: Send a blank email to php-general+get-43963@lists.php.net to get a copy of this message
I'm having a ton of trouble trying to get pictures to display. At first, I thought I had the problem fixed - but that's because the pictures reside on my machine. So instead of providing a path to the pictures like: c:/phpweb/userpics/ I tried absolute paths like ../userpics and that doesn't seem to have worked either. Here's a snippet of my code and i'm hoping someone can help me out on this. Thanks, Mike <?PHP $filedir = "../userpics"; //check for jpg format if($fupload_type == "image/pjpeg") { //copy picture to new directory if(copy($fupload, "$filedir/$CUserName.jpg")) { //show picture print ("<img src=\"$filedir/$CUserName.jpg\"); } } ?>

« previous php.general (#43963) next »