[thelist] PHP uploading an image PHP

Rich Gray rich at f1central.net
Mon Jan 27 17:34:02 CST 2003


Hi Andrew

No the local directory and the Win98 OS you are uploading from should have
no impact whatsoever on the attributes of the file on the remote web
server - that is determined by the environment of the userid the web server
is running under on the target machine.

You stated this -> "the obvious problem is that each image needs to be
related to an item" - this implies that a database is involved and maybe the
item table needs a uri column updated to point to the newly uploaded image?
You also mentioned that "reading" the images was not working - what do you
mean by "reading" - do you mean a php script reading the file or a html <img
src="blah.jpg"> or something else?

Cheers
Rich

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Andrew Maynes
Sent: 27 January 2003 09:22
To: thelist at lists.evolt.org
Subject: RE: [thelist] PHP uploading an image PHP


good question Rich

I am uploading from a local dir running windows 98 will this make a
difference I
guess it will?

I have uploaded some images directly via ftp and they display fine, but the
obvious problem is that each image needs to be related to an item so this
would
be a very time consuming approach to uplaoding images.... unless the problem
is
because the images are named different to what they need to be called, if
that
makes sense?

The images being read?  Do you mean once they have been uploaded?  If you by
being called from the DB.

Andrew

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Rich Gray
Sent: 27 January 2003 16:23
To: thelist at lists.evolt.org
Subject: RE: [thelist] PHP uploading an image PHP


755 should be OK permissions-wise for reading a file however what about the
permissions directory where the files are located?
How are you reading the files using fopen(), fread() etc ?

Rich
-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Andrew Maynes
Sent: 27 January 2003 14:18
To: thelist at lists.evolt.org
Subject: RE: [thelist] PHP uploading an image PHP


the files are now being uploaded but ... for some bizzare reason not being
read
any ideas why this should happen any one can help out here :) images dir is
chmod to 755

the actual images properties are shown as 755 does this sound right?

Andrew

--
* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003

--
* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !





More information about the thelist mailing list