PHP Classes

Help about file uploading

Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  PHP Forms Class with HTML Generator and JavaScript Validation package blog  >  Locating addresses on...  >  All threads  >  Help about file uploading  >  (Un) Subscribe thread alerts  
Subject:Help about file uploading
Summary:file uploading prob at server side
Messages:2
Author:muhammad arslan ali
Date:2007-01-20 20:32:47
Update:2007-01-20 21:07:00
 

  1. Help about file uploading   Reply   Report abuse  
Picture of muhammad arslan ali muhammad arslan ali - 2007-01-20 20:32:47
Hello

i have written my own script for file uploading (i am not using any of classes). My script creates directory with name supplied by user and uploads his image with name welcome.jpg. so my path becomes ServerRoot/upload/userName/welcome.jpg. The whole thing works fine when i developed and tested my file locally

But when i uploaded my site on server. My code is unable to create directory with name of userId at server area. i am using php function
mkdir("serverRoot/upload/".$userId,0777). 0777 creates directory with all rights but in my case it is not creating.

please help me what should i do in order to cope with this problem


Muhammad Arslan Ali

  2. Re: Help about file uploading   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-01-20 21:07:00 - In reply to message 1 from muhammad arslan ali
Sorry, if you are not using the Forms Generation and Validation class, this is not the appropriate forum for you to get help on your problem.

Your problem must be related with safe mode or some restriction on your server that you do not have on your development environment.