Help - Search - Members - Calendar
Full Version: New To Zymic, Some Problems...
Zymic Webmaster Forums > Zymic Free Web Hosting > Zymic Free Web Hosting - General Discussion & Help
Brasem
Hello all,

I just uploaded my website and I'm having some problems. First of all the mail function does not work, I guess this is to counter spammers? Is there any method to get it activated though?

My second (more serious) problem is that mkdir() does not work! I have a script that makes thumbnails of the photographs that i upload, but mkdir() does not function well because of safe_mode or difference between file owner and PHP user. The script first creates a directory ./images/photosinposts/2 for instance, for topic nr 2. Within this folder the script then tries to create a thumbnails folder, a fullsize picture folder etc. This fails because the directory ./images/photosinposts/2 that the script (succesfully) creates is owned by user 2001/vhosts and not by me. If the script tries to create another directory (thumbnails for instance) inside this directory this error message appears: "Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid is 15822 is not allowed to access /www/zzl.org/b/r/a/bramwillemsen/htdocs/images/photosinposts/2 owned by uid 2001 in /www/zzl.org/b/r/a/bramwillemsen/htdocs/crphtop.php on line 173". Is there a way to use mkdir() on Zymic or should i look elsewhere if i want that functionality?

I think it is strange that the script running under userid 15822 creates directories owned by userid 2001. And that the script cannot access the folders it just created. how come that the script running under userid 15822 creates directories owned by userid 2001?'

The third problem i'm having is that the directory created with mkdir cannot be removed anymore. it keeps telling me the folder it is non-empty '550 Can't remove directory: Directory not empty' but i checked many times and there are no files inside (no hidden .htaccess files either). Maybe this is caused by the folder being owned by 2001/vhosts instead of me?

I hope anyone can give me some pointers on this smile.gif

kind regards, Bram
NaRzY
QUOTE(Brasem @ Oct 16 2009, 07:56 AM) *
Hello all,

I just uploaded my website and I'm having some problems. First of all the mail function does not work, I guess this is to counter spammers? Is there any method to get it activated though?

No other way. It is a once off $10 fee. Jump on the live chat to speak to a staff member about it.
QUOTE(Brasem @ Oct 16 2009, 07:56 AM) *
My second (more serious) problem is that mkdir() does not work! I have a script that makes thumbnails of the photographs that i upload, but mkdir() does not function well because of safe_mode or difference between file owner and PHP user. The script first creates a directory ./images/photosinposts/2 for instance, for topic nr 2. Within this folder the script then tries to create a thumbnails folder, a fullsize picture folder etc. This fails because the directory ./images/photosinposts/2 that the script (succesfully) creates is owned by user 2001/vhosts and not by me. If the script tries to create another directory (thumbnails for instance) inside this directory this error message appears: "Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. The script whose uid is 15822 is not allowed to access /www/zzl.org/b/r/a/bramwillemsen/htdocs/images/photosinposts/2 owned by uid 2001 in /www/zzl.org/b/r/a/bramwillemsen/htdocs/crphtop.php on line 173". Is there a way to use mkdir() on Zymic or should i look elsewhere if i want that functionality?

Due to Safe Mode being in effect, mkdir() will not run.
QUOTE(Brasem @ Oct 16 2009, 07:56 AM) *
I think it is strange that the script running under userid 15822 creates directories owned by userid 2001. And that the script cannot access the folders it just created. how come that the script running under userid 15822 creates directories owned by userid 2001?'

The third problem i'm having is that the directory created with mkdir cannot be removed anymore. it keeps telling me the folder it is non-empty '550 Can't remove directory: Directory not empty' but i checked many times and there are no files inside (no hidden .htaccess files either). Maybe this is caused by the folder being owned by 2001/vhosts instead of me?

Can you please pop onto the IRC and ask one of the staff to ask you with this third issue. It is a little more involved.
Ed
If you use the filemanager on the directory you can set the uid back to your own; 2001 is the uid of the webserver.
Brasem
QUOTE(Ed @ Oct 16 2009, 11:58 AM) *
If you use the filemanager on the directory you can set the uid back to your own; 2001 is the uid of the webserver.


Thanks Ed,

In order to get my site compatible with the safe mode of Zymic I thought of a plan. Before I am going to change the code I hope someone could tell me whether the rename() function is allowed in order to move files to a different location. And is it possible to change the max execution time of the script ? I am rotating some images and 30 seconds could be a bit short for some cases. On my localhost i do this by using ini_set('max_execution_time', 300); in a script , but i think this will not work on zymic? Is there another way to extend the execution time?

kind regards, Bram
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.