[PHP] file permission error

2006-05-22 Thread suresh kumar
Hi,
 I am facing one problem in my project.I am uploading an image .its get 
storing in DB.i am storing images in /tmp folder as file.while i am retrieving 
a image its displaying file permission error.fopen() could not open 
socket.file permission error.
 A.suresh


-
  Yahoo! India Answers Share what your know-how and wisdom
 Send free SMS to your Friends on Mobile from your Yahoo! Messenger Download now

Re: [PHP] file permission error

2006-05-22 Thread Anthony Ettinger

is it readable by nobody?

On 5/22/06, suresh kumar [EMAIL PROTECTED] wrote:

Hi,
 I am facing one problem in my project.I am uploading an image .its get storing in 
DB.i am storing images in /tmp folder as file.while i am retrieving a image its 
displaying file permission error.fopen() could not open socket.file permission 
error.
 A.suresh


-
  Yahoo! India Answers Share what your know-how and wisdom
 Send free SMS to your Friends on Mobile from your Yahoo! Messenger Download now




--
Anthony Ettinger
Signature: http://chovy.dyndns.org/hcard.html

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] file permission error

2006-05-22 Thread Richard Lynch
On Mon, May 22, 2006 10:55 am, suresh kumar wrote:
  I am facing one problem in my project.I am uploading an image
 .its get storing in DB.

This is your first problem :-)

Unless you are the CIA using a custom builtin SQL function to compare
images, what point is there in throwing this big blob in your DB?

You can't do anything useful with it in there.

 i am storing images in /tmp folder as
 file.

The file uploaded to PHP in /tmp will DISAPPEAR as soon as the script
finishes.

You need to use http://php.net/move_uploaded_file

 while i am retrieving a image its displaying file permission
 error.fopen() could not open socket.file permission error.


-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php