Hi all,
I'm wondering if it possible somehow to edit a html file with php.
What I'm looking for is the way to change information in a html file.
Thanks in advance
Edit html file with php
Remote HTML files, NO ( Unless you're doing it over FTP or something... )
Local HTML files, sure.
www.php.net/fopen
www.php.net/fread
www.php.net/fwrite
www.php.net/fclose
u wanna parse the html files... ask and I'll post a parser... or do u wanna have some wysiwyg editor on your page, for example like the one on eBay??
Originally posted by Natty_Dreadlock
u wanna parse the html files... ask and I'll post a parser... or do u wanna have some wysiwyg editor on your page, for example like the one on eBay??
Well I'll say both of them to see the diference,
Would you mind posting both of them?
Originally posted by superwormy
Remote HTML files, NO ( Unless you're doing it over FTP or something... )
Local HTML files, sure.
www.php.net/fopen
www.php.net/fread
www.php.net/fwrite
www.php.net/fclose
Well the html files are on the remote site, we are trying to build a kind of knowledge d.b where each author of the document will have the ability to change information in the document.
thanks
Then youre best bet might be the FTP functions, or some kinda fancy SOAP interface maybe to let you edit things remotely, ie a server and client script that communicates to make the changes... if that makes any sense...
Theres no way to change the script over HTTP though, at least not taht I know of...
first i post the html parser i wrote some time ago, it's free to use etc ect check out the beginning of the file... if u know how to use expat, runnin this one should be no problem