0

How can I read/write to a file? I don't mean on the local hard drive (C:// ect) I mean as in the files on the internet (Files from FTP).
Like in webs.com, you upload files or create new files. Now if I created a txt file on there, how can I write and read to it?
Thanks.

3
Contributors
13
Replies
14
Views
6 Years
Discussion Span
Last Post by mangopearapples
0

It easy to accomplish this using sever side language.

SNIP

Edited by happygeek: fake sig snipped

0

php is a server side, javascript is a client side. Coldfusion, asp and others are also server side languages. If you're familiar with php, then you should be able to do what you want. If you have issues though, the php forum will be a better place to get answers related to php coding questions.

Edited by teedoff: n/a

0

wow I didnt know many web hosting companies didnt support php. Its free. Anyway, gpood luck.

0

I use Webs... Free but doesn't support PHP.
I can't find anything that let's me write to a file on the server! ARRGGGHHH
Stupid threads with a question to write/read to a file on the local hard drive! >:|

0

Can I ask whats the reason you would want to write directly to your remote server? maybe I'm not understanding your question correctly.

Ideally you would never want to create new files directly on your remote server, but rather create and test them locally, then ftp them to your server.

0

Something like:
When a user enters the web page, goto and add 1 to the text on a text file.
That way you can see how many visitors you get.

I've successfully done this with PHP on a different host.
I plan to use this method for other things to like sending messages.

0

I'm still a little confused as to what you're wanting to do. But, do you really want anyone to be able to insert anything directly into a page on your remote server without some sort of security?

Maybe a blog would be a better option....again, if I am understanding you.

0

If its just text,,and its going into your page's content..maybe not....

Text in forms can be manipulated to wreak havoc on databases and I would bet servers as well given the right circumstance.

0

If its just text,,and its going into your page's content..maybe not....

Text in forms can be manipulated to wreak havoc on databases and I would bet servers as well given the right circumstance.

But what if it isn't going in my pages content ;)

And if it is, it won't really be in a form... Well not what i'm going to use it for.

0

Best way to make signing in and stuff is to use PHP and MySQL.
Google is your friend. Now is your time to use it.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.