Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

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

Posts: 39
Location: Aachen, Germany
Trades: 0
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!
 
 
Register now for full access!
Old 04-17-2005, 02:27 PM
Recrehal's Avatar
Experienced Talker

Posts: 39
Location: Aachen, Germany
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.09878 seconds with 12 queries