My host's php configuration causing errors?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
SLIPKNOT CPD
Forum Newbie
Posts: 4
Joined: Tue Apr 22, 2003 11:18 am

My host's php configuration causing errors?

Post by SLIPKNOT CPD »

My host recently implemented php on their servers, but php is not working at all due to something in their configuration people have told me. they told me that they are willing to correct it if i can find whats causing all these erorrs.

Here are my problems:
Attachments not working on xmb forum (database isnt on my host, i was given an ip adress to it in case that matters)
Heres the error i get:

Warning: filesize() [funtion.filesize] stat failed for C:\\WINNT\TEMP\phpF3D.tmp (errno=2 - No such file or dierectory) in E:\home\Default\forums.slipknotcpd.com\htdocs\post.php on line 477

Go here: http://www.slipknotcpd.com/veethree/main.php?id=news

As you can see there are 2 errors there, one for an insert function, and one for the users online script (very top of page). I tried these pages on a different host such as lycos and it worked perfectly

What would my host have to do to their configuration to resolve these php errors? Please help me, i've looked everywhere for help but have gotten no help at all :([/url]
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Warning: fopen(online2.php) [function.fopen]: failed to create stream: Permission denied in D:\home\Default\slipknotcpd.com\htdocs\veethree\main.php on line 28
obviously your script does not have the proper (write-)permisions for this file. What file is opened in line 28? what file permissions (w2k/ntfs?) are set for the file, maybe the directory? Is safe-mode enabled?

Code: Select all

<?php phpinfo(); ?>
will tell you.
SLIPKNOT CPD
Forum Newbie
Posts: 4
Joined: Tue Apr 22, 2003 11:18 am

Post by SLIPKNOT CPD »

what exactly can my host do to fix this? i really know nothing about php, i just need to know what to do so that ppl can post attachments on my forums, and so i can use that include function and so that i can use scripts :P

what settings shold be enabled in order for these scripts to work?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

first let us know what

Code: Select all

<?php phpinfo(); ?>
tells you about the safe-mode settings.
It's within the PHP Core-block, something like

Code: Select all

safe_mode               Off       Off
safe_mode_exec_dir    no value  no value
safe_mode_gid           Off       Off
safe_mode_include_dir no value  no value
SLIPKNOT CPD
Forum Newbie
Posts: 4
Joined: Tue Apr 22, 2003 11:18 am

Post by SLIPKNOT CPD »

ok sorry about that, everything has been resolved :), thanks alot for you help though
Post Reply