This topic is locked

fopen and alot of errors plz help

5/30/2007 7:12:43 AM
PHPRunner General questions
A
aboubakr author

Hello
i generate a program with phprunner and everything is ok on my local server
but when i upload it , it gives me alot of errors , i fixe them but the last one i couldn't
here the error description
PHP error happened

Technical information

Error type 2

Error description fopen() [function.fopen]: SAFE MODE Restriction in effect. The script whose uid/gid is 21827/21827 is not allowed to access /tmp/wrtwW42yP owned by uid/gid 99/99

URL mywebsite.com/admin/login.php?

Error file /mounted-storage/home39b/sub007/sc30875-KPRB/mywebsite.com/admin/libs/internals/core.write_file.php

Error line 30

SQL query
plz help, cause i have to show a program to my boss <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=5361&image=1&table=forumtopics' class='bbc_emoticon' alt=':(' />
best regard

J
Jane 5/30/2007

Hi,
it's a permission issue.

You need to make sure that templates_c directory is writable by web server user.
You can do this setting permissions mask to 766 on this directory.

You can do this using control panel that your hosting company provides or via shell.

A
aboubakr author 5/30/2007

hello thanx for answering

but i have stil the same problem even with 777 permission.
here is the ftp account of the test if it can help <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=18325&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' />
server : ftp.servage.net

login : **

password: **
thanx
best ragards

Alexey admin 5/30/2007

Hi,
there is some limitation at your hosting - users can not write to /tmp directory from php script.

To get your pages working modify core.write_file.php file in

C:\Program Files\PHPRunner5.0\source\libs\internals directory.

Find this line there:

if (!($fd = @fopen($_tmp_file, 'wb'))) {

and replace it with:

if (1 ) {



Then rebuild your pages and upload them to the server.
We'll include this workaround into the next update of PHPRunner.

A
aboubakr author 5/30/2007

a great thanx xlinesoft
i don't know how to thank you,
and i would like to thank you also that the timing really exceptional. now i'll try to test the whole application.
great job

B
bodir 9/16/2007

Hi,

there is some limitation at your hosting - users can not write to /tmp directory from php script.

To get your pages working modify core.write_file.php file in

C:\Program Files\PHPRunner5.0\source\libs\internals directory.

Find this line there:

and replace it with:

Then rebuild your pages and upload them to the server.
We'll include this workaround into the next update of PHPRunner.


I'm trying out PHPRunner and having this problem. I made the change that is suggested above and now I'm getting an other error from my web service.
Error type 512

Error description Smarty error: problem writing temporary file 'templates_c\wrt46edd7de8954f'

URL t1.ws40.com/login.php?

Error file D:\hosting\member\WS40\t1\libs\Smarty.class5.php

Error line 1095
Has anyone found a fix for this?

Sergey Kornilov admin 9/16/2007

This is a permissions issue.

You need to make sure that templates_c directory is writable by web server user.
You can do this setting permissions mask to 766 on this directory.

You can do this using control panel that your hosting company provides or via shell.

B
bodir 9/16/2007

This is a permissions issue.

You need to make sure that templates_c directory is writable by web server user.
You can do this setting permissions mask to 766 on this directory.

You can do this using control panel that your hosting company provides or via shell.


Thanks. I used my control panel and set write permissions for everyone and that did it. I

was unable to set it using my ftp program.
Thanks for the very fast reply!!