GetDotted Domains

Viewing Thread:
"Freeola web space vs creating files via php?"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Thu 08/07/04 at 16:30
Regular
Posts: 33
Am I allowed to do this?
I have just coded a score board for my squad that can be updated via a php page but it requires some dat files to be created. It all works fine on my local system but when I upload to freeola space I am getting permission denied errors when I try to touch() files.
Is this a security feature or is there someway around it?
Thanks,
Dano.
Thu 08/07/04 at 16:30
Regular
Posts: 33
Am I allowed to do this?
I have just coded a score board for my squad that can be updated via a php page but it requires some dat files to be created. It all works fine on my local system but when I upload to freeola space I am getting permission denied errors when I try to touch() files.
Is this a security feature or is there someway around it?
Thanks,
Dano.
Thu 08/07/04 at 17:39
Regular
"NULL"
Posts: 1,384
Check the CHMOD permissions on the file you're trying to write to. Make sure it has write access.
Thu 08/07/04 at 18:49
Regular
Posts: 33
Erm... I can't create the file let alone CHMOD it.
The touch( $file ); fails giving a permission denied error.
Thanks,
Dano.
Thu 08/07/04 at 19:00
Regular
"Devil in disguise"
Posts: 3,151
Make sure the directory you're trying to write into has the correct permissions too.
Thu 08/07/04 at 19:21
Regular
Posts: 33
lol, thanks, just worked that out as you answered :)

Sigh... now all I have to do is fine where I am creating an erraneous .dat file that has no name :(

Dano.
Thu 08/07/04 at 20:00
Regular
Posts: 33
Ok, thats all good now but I have another problem.

I'm trying to read and write to .dat files to keep track of pilot scores, on my local machine it works just fineand updates nicely. But on the freeola server when I hit update nothing, nada, zip :(

http://www.dano.freeola.com/kills/index.php

Is the link if you want to take a look, no code there, I will post that later if needed. I am using a HTML form with the action set as is there something wrong with that or do I need to use it differently on the freeola server? I have tried using both GET and POST methods but niether make any difference. The .dat files are being created and I have code that will tell me if they are unable to be read or written to. It seems like when 'update' is hit the page is ignoring everything.
Any ideas would be gratefully recieved :)
Thanks,
Dano.
Thu 08/07/04 at 20:04
Regular
Posts: 33
AhA!!!

If the variable you are trying to access is passed via the URL string:

$my_variable_name=$_GET["my_variable_name"];

If the variable you are trying to access is passed via a form post operation:

$my_variable_name=$_POST["my_variable_name"];

If the variable you are trying to access is a server environment variable:

$my_variable_name=$_SERVER["HTTP_HOST"];

This is my problem I think :)

Enough for tonight, I'm off to play games :)

Dano.

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

Many thanks!!
Registered my website with Freeola Sites on Tuesday. Now have full and comprehensive Google coverage for my site. Great stuff!!
John Shepherd
My website looks tremendous!
Fantastic site, easy to follow, simple guides... impressed with whole package. My website looks tremendous. You don't need to be a rocket scientist to set this up, Freeola helps you step-by-step.
Susan

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre
Feedback Close Feedback

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.