vannak, 10 seconds is very bad (the time is independent of where you access it from)
chrishajer, something’s not right there, Windows must think you don’t have access rights to write to the directory. Whatever Windows’s equal to chmod has to be done.
According to php.net the chmod in php actually does do something on some windows setups.
So try replacing this line, like so:
$file=dirname(__FILE__)."/test.txt"; $h=fopen($file, "wb"); fclose($h); chmod($file, 0777 );
Yes too bad and goodbye Godaddy, Candice, and Danica.
_ck_
Sorry, that didn’t work. More errors this time. It’s making GoDaddy look worse and worse.
Warning: fopen(Hosting123456htmlgodaddytesttest.txt) [function.fopen]: failed to open stream: Permission denied in Hosting123456htmlgodaddytestdefault.php on line 9
Warning: fclose(): supplied argument is not a valid stream resource in Hosting123456htmlgodaddytestdefault.php on line 9
Warning: chmod() [function.chmod]: No such file or directory in Hosting123456htmlgodaddytestdefault.php on line 9
Warning: touch() [function.touch]: Unable to create file Hosting123456htmlgodaddytesttest.txt because Permission denied in Hosting123456htmlgodaddytestdefault.php on line 11
0.00039196014404297 seconds
Well the creation errors aren’t exactly godaddy’s fault, it’s just something weird with windows I don’t completely know about since I hate IIS and won’t even test it.
Makes no sense that a php program can’t create a file. Something is wrong there.
Only intelligent thing I can find about it is here:
http://us2.php.net/manual/en/function.fopen.php#50601
Do you have some kind of security panel where you can give your account write permission to the /test/ directory?
I know, I rethought that after I posted it. I don’t understand Windows/IIS servers either, so it makes no sense to me. On Linux, there’s nothing funny about it at all. It just works. Make a directory, it works. You can write to it. It’s easy. This makes no sense.
I will check into write permissions for that folder. I don’t see why a file in that folder can’t write to the folder, but hey, I don’t know anything about Windows servers at all.
Is there a way to go ’round the problem, hardcoding something or creating the file manually first?
Maybe someone who uses GoDaddy hosting has a Linux account there and can test _ck_’s NFS Detector™?
I think vannak did that, and it’s 10 seconds:
https://bbpress.org/forums/topic/bbpress-is-slow-like-godaddy-says/page/2#post-21978
What happens if you upload a random file and name it test.txt
?
Since it can’t modify the php file, I guess it won’t be able to modify the text.txt
file either but maybe it’s only because the php file is open by the same process.
I tried creating that test.txt file first and it failed with the same problem. Looks like someone else got the information you needed anyway.