Reply
safemode restrictions with fopen O_o
Old 04-15-2005, 05:48 AM safemode restrictions with fopen O_o
Recrehal's Avatar
Experienced Talker

Posts: 39
Location: Aachen, Germany
PHP Code:
//assume the variables to have valid values
 
if (!is_dir($article_temp_path.$article_md5))
{
mkdir(($article_temp_path.$article_md5), 0777); //is ignored aparently
chmod(($article_temp_path.$article_md5), 0777);
fopen (($article_temp_path.$article_md5.'/abcdef.txt'), 'w');

Warning: fopen(): SAFE MODE Restriction in effect. The script whose uid is 640 is not allowed to access /srv/www/htdocs/web2/html/test/articles/articlebe5eee5d7d9f4dc24dc21e12ad247489 owned by uid 30 in /srv/www/htdocs/web2/html/test/latex2html.php on line 593

Warning: fopen(articles/articlebe5eee5d7d9f4dc24dc21e12ad247489/abcdef.txt): failed to open stream: No such file or directory in /srv/www/htdocs/web2/html/test/latex2html.php on line 593

Now I have a little problem with that, as I really want to create the folder and the file with php. Any ideas how I could change that without total controll of the server? I have to admit that I'm clueless when it comes to rights and I don't know what I can change on a server that's not mine.

Another thing that really bugs me is the 777 mode. If there is any chance that I could do it without that I'd be extreamly happy. As we are already on it, you migth aswell just tell me how to create a password protected folder
Recrehal is offline
Reply With Quote
View Public Profile Visit Recrehal's homepage!
 
When You Register, These Ads Go Away!
Old 04-17-2005, 03:27 PM
Recrehal's Avatar
Experienced Talker

Posts: 39
Location: Aachen, Germany
I think there is a function to temporarily unset the safemode, but I don't remember the name. I think it would help me to disable the safemode for a short time as I'm using the script and nobody else.
Recrehal is offline
Reply With Quote
View Public Profile Visit Recrehal's homepage!
 
Reply     « Reply to safemode restrictions with fopen O_o
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.43268 seconds with 12 queries