Change HTML

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Can PHP be used to change my clients static HTML pages? By themselves?

Instead of having to download the HTML from the server, then use
dreamweaver and upload the file back?


Re: Change HTML

WhatsPHP wrote:
Quoted text here. Click to load it

How do you mean 'By themselves'?

Quoted text here. Click to load it

You can manipulate files on the same server without effort: look into
fopen(), fwrite() and the like. If PHP runs on a different server, it's
something different. A possible solution would be to let PHP connect through
FTP, download the html-file, change it, and upload it again. Should be no

Rik Wasmus

Re: Change HTML

PHP - server side based approach
Java Script - could be embedded into HTML and with a use of document.write() you can modify HTML page without refreshing it from the server


=========== Code Starts Here =============
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>An Example of JavaScript code</title>
<script language="JavaScript">
<!-- Use the HTML comment to hide JavaScript from old browsers
document.write("This text was written using JavaScript.")
// End hiding JavaScript -->
You see this if your browser won't run JavaScript.

=========== Code Ends Here =============

Rik wrote:
Quoted text here. Click to load it

Site Timeline