No — in fact, as we've just seen, it'll always be a string.
Printable View
No — in fact, as we've just seen, it'll always be a string.
Is there a command to make a html file like mkdir? I know wordpress does it and other cms's but I don't want to go threw all those files or if someone know's what file actually does the work in a free cms program that i could look through. Thanks for any ideas on this one as well.
You want to make a directory? Yes, it's called mkdir().
No make an html file or a text file from php only like the mkdir() but maybe mkhtml()? mktxt()?
How about fopen()?
That hasn't worked for me. I don't know if thats cause I'm on php4 or for another reason.
Install PHP5.
my server wont or can't install it for me until I buy another plan and then they said they will have to take my sites down for 2 weeks at the most.
Your host sucks — get another. PHP4 shouldn't really be supplied with any plans any more, especially as the only option, and a transfer to another plan should not result in downtime if done properly.A file is a file is a file, unless it's a special file. A directory isn't a file, though. The only difference between a text file, an HTML file, and a JPEG file is what you put in it.Quote:
No make an html file or a text file from php only like the mkdir() but maybe mkhtml()? mktxt()?
Any recommendations for servers? I have ix webhosting right now and I have 3 domains on it. There's about 1gb of space used.
So the fopen should work once i get php5?