Forum Moderators: coopster

Message Too Old, No Replies

mkdir problem

can't access photos afterwards

         

sanblasena

2:50 pm on Apr 17, 2006 (gmt 0)

10+ Year Member



Hello,

I am having a problem with mkdir - here is my code:

$modelno = "M15";

$dirpath = "/www/p/a/mysite.com/htdocs/models/modelno/";

mkdir("$dirpath", 0700);

It seems to work fine and create the directory and I can load photos into it - but when I try to access the photos in HTML they don't show up (even though it says in the properties that it is pointing to the right spot).
When I go into FTP all looks well. When I run a parallel test and create my directory in FTP it works fine. Any ideas?

Thanks, Pat

dreamcatcher

4:19 pm on Apr 17, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You say the problem is when you try to view them using HTML? What is your HTML code?

Habtom

4:27 am on Apr 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You might need to umask it. I looked around and got an idea on it. You might want to check the following link and see the very last script. [php.net...]

Habtom

sanblasena

6:23 pm on Apr 19, 2006 (gmt 0)

10+ Year Member



Thanks for your help - I found the problem - the CHMOD was not being set properly - pat