Forum Moderators: phranque

Message Too Old, No Replies

cant access files through shared folder that php uploads

cant access files through shared folder that php uploads

         

drooh

3:59 pm on Jul 14, 2010 (gmt 0)

10+ Year Member



Setup

Ive got winxp box running apache 2.2 and php 5.3 and mysql.

Then I have another computer, my main pc, running winxp. I have a share folder that I can acess my htdocs folder on the networked server.

When in my php script I upload a file, I can see it in the share folder but when I go to access it, for instance a jpeg file, my screen says "no preview available". But if I just drag a file from my main pc to the share folder I can access it later with no problems.

So it seems that appache/php are creating files that are limited to just that server machine. Because when Im logged into the server with remote desktop I can access all the files with no problems. I can view those images that from my main pc I could not.

So in php ive tried everything such as chmod. Now even when i try to use unlink(), it gives me an error and says permission denied. So this would tell me that apache/php is not running as an administrator?

Any ideas?

drooh

4:12 pm on Jul 14, 2010 (gmt 0)

10+ Year Member



correction: I actually can use unlink

drooh

4:56 pm on Jul 14, 2010 (gmt 0)

10+ Year Member



this is the weirdest thing, even when i connect by ftp to try and chmod the files are at 0644 and I cant change them.