my page doesn't display pictures recently uploaded
Posted: Sun Feb 10, 2008 6:51 pm
Hi,
I'm working in a page that stores information about people including their photos.
The user creates his profile in a page called "createProfile.php". After the form is submitted, and the person is added to a database, the system creates a file where the user will be able to store his photos.
The function I call to make the file is the following:
function createPortfolio(){
$fileName = $this->id.'_'.$this->name;
mkdir(self::path.'/'.$fileName);
}
After that the user is redirected to a page to upload his picture(s).
I know the uploading system is working ok, but I'm not being able to display the picture that I uploaded when I refresh the page, I can only achieve that when I open the file to see if the picture is there! (and it is)
I suppose it's something that I forget to do in the createPortfolio() function because the only time this problem arises is after I use it...
I wanted to close the file but it's not possible to do this when using mkdir.
Please help
I'm working in a page that stores information about people including their photos.
The user creates his profile in a page called "createProfile.php". After the form is submitted, and the person is added to a database, the system creates a file where the user will be able to store his photos.
The function I call to make the file is the following:
function createPortfolio(){
$fileName = $this->id.'_'.$this->name;
mkdir(self::path.'/'.$fileName);
}
After that the user is redirected to a page to upload his picture(s).
I know the uploading system is working ok, but I'm not being able to display the picture that I uploaded when I refresh the page, I can only achieve that when I open the file to see if the picture is there! (and it is)
I suppose it's something that I forget to do in the createPortfolio() function because the only time this problem arises is after I use it...
I wanted to close the file but it's not possible to do this when using mkdir.
Please help