Click to See Complete Forum and Search --> : chmod a file to 666


marshy28
03-15-2003, 10:31 AM
Can any one help me I am trying to show how many user are online, on my webpage using php

I have downloaded a php script but cant get it to work, ia m stuck on the bit below:


Quote:
and the file in the data folder online.txt has to have permission of 666.
After this is all done where ever you want to have the number of visitors on line appear put in a php include like <? include"/online/online.php";?>
Thats it

Can anyone help I think its some to do with the data.txt file changing the permission to be able to write to it but I dont know how to do this

AdamGundry
03-15-2003, 01:13 PM
You need to use your FTP program to modify the file's permissions to 666 - all read, all write but no execute boxes checked. This can usually be done by right-clicking on the file and clicking "Set file permissions" or "Chmod" or something similar - see your FTP program's documentation.

Alternatively, you can change the permissions directly on UNIX via the command "chmod 666 filename".

The above assumes you have a UNIX-based server; if not, you need to adjust the permissions as required by your operating system.

Adam

marshy28
03-15-2003, 05:54 PM
Thanks Adam

But I am using some free space at the moment to build the site it supports php but has a web based ftp so I upload via the broswer

How can I cahnge the file to 666 now

Thanks

Marshy

marshy28
03-16-2003, 11:26 AM
hi is there any way to chmod a file to 666 if your hosting does not allow ftp but only a web based up load

Cheers,

Phil

pyro
03-16-2003, 01:00 PM
Don't start a new thread on the same question. I have mearged the two thread...

Chances are, your web based upload will allow you to CHMOD. You will have to ask your hosting provider...

marshy28
03-16-2003, 02:15 PM
I have sent them mail but they said they were working on it but when that happens god only knows.

Does any body know of any good free or cheap webspace thats supports php

thanks

AdamGundry
03-16-2003, 02:21 PM
You could try this page, which lists free PHP hosts:

http://www.0php.com/free_PHP_hosting.php

Unfortunately, most free hosts will advertise considerably on your pages, so it might be better to use a cheap host which offers PHP support, but I can't recommend any.

Adam

marshy28
03-16-2003, 02:33 PM
thanks adam i think i will give it a try

who do you host your website with?


Marshy

pyro
03-16-2003, 02:40 PM
Try http://www.dr2.net

AdamGundry
03-16-2003, 03:16 PM
I use Boztec Ltd. (http://www.boztec.com), who (I believe, but you'll have to check) offer PHP support. I've found them reliable and useful, but they are based in the UK.

Adam