Re: problems with writing picture to the database.

From: Date: Wed, 07 Feb 2001 22:26:25 +0000
Subject: Re: problems with writing picture to the database.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38635@lists.php.net to get a copy of this message
On Wed, 7 Feb 2001 23:53:00 +0200 (EET), Siim Einfeldt aka Itpunk (siim_e@pshg.edu.ee) wrote: >Hi, > >I write all my pictures (hotels...travels, etc) to the database. it >worked, but now I`m not sure what has changed, but now it gives the >following error: >Warning: fopen("C:\\art\\cat2.jpg","r") - No such file or >directory in >/home/mycatalogue/public_html/mysubcatalogue/hotell.php3 on >line 19 > >the cat2.jpg has been chosen through a browse button from my own hdd >(the >problem exists wit hall the pictures). > >Any ideas what might be wrong? > read the manual on handling file uploads. It looks like you're using $image_name which is the original image name on the client where you want $image which is the temporary file name on the server. If your server is running on the machine you access the form from it may look like things are working right when they aren't.

« previous php.general (#38635) next »