I use dreamweaver for my html site. But I got a problem. When I want to change a link or something like that, I should open every single page and edit them. Is there a quick way like editing only in one page and the other will be edited automatically ? Thanks
Open your HTML in DreamWeaver code view, and find the code for your menu or links. Highlight this code and press Ctrl+X, then in Dreamweaver, Press Ctrl+N and choose "PHP File". When it opens, select it all and press delete. Then past this: <? //Menu HTML code ?> PHP: . Save that file as menu.php Go back to your original HTML file(s) and replace every instance of your menu code with: <? include('menu.php'); ?> PHP: Then save those files with the .php extension. Then when you upload them to a webserver, all you have to do it edit menu.php and it will change on all the files. Cheers, BP
The advice above is the best way and way I prefer to do it but if its only rare changes and changing the extensions to php and setting up redirects will take time. You can use the find and replace option in dreamweaver under the edit menu so it will update all pages of your local site etc.
I would suggest as parukia said except use the correct delimiters which are 100% guaranteed to work ( <?php ) if short tags aren't enabled.
You would need to first of all check that your web server supports PHP and that you arent already using another programming language on any of your pages That said, all programming languages have an equally simple equivalent plus others give you other options such as .Nets .Master files
there are many editors which can replace the code in all pages based on a particular text. You can use them to replace text from all files,only condition that text shd be unique Regards Alex
It will make no difference. Just keep in mind it won't work on your local computer - you will need to upload it to a host or install apache and PHP.
hi are u hosting this html page if yes then u got 2 hav some sort of server(apache) loaded or must be hosting then u can use php suggestion, else go for changing everylink.