Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 19, 2008, 10:33:10 AM


Login with username, password and session length


Pages: 1 [2]   Go Down
  Print  
Author Topic: Footer with Global Change  (Read 1931 times)
Sage
Intergalactic Cowboy
*****
Offline Offline

Posts: 58


« Reply #15 on: February 13, 2008, 12:24:31 PM »

Another question about PHP. I'm unable to view pages and check the links in my browser before I send them to the server -- the convenience of html made it easy. How do I accomplish this -- does this mean I have to use MySQL to view pages? I remember years ago I tried the MySQL and gave up.  Help
« Last Edit: February 13, 2008, 05:12:12 PM by Sage » Logged
Ibanez Player 85
Galactic Royalty
*****
Offline Offline

Posts: 412


WWW
« Reply #16 on: February 13, 2008, 07:35:53 PM »

Right, PHP is a server-side language so you won't be able to "preview" it on your local machine unless you're running a web server that can parse PHP (such as Apache).

If you DO want to take this one step further, you can download and install a LAMP (Linux, Apache, MySQL, PHP) application such as XAMPP and you'll be able to preview the website in your browser.  [ Just know that you won't need MySQL (that's for databases) -- it just comes with the package, so don't be scared  Smile. ]  Anyway, once that's working, you could even set up Dreamweaver to use a "testing server" which would also let you preview your pages in the "Preview" tab (as opposed to just testing it in your own browser).

I didn't suggest this initially as it would only complicate things further, and you mentioned you were looking for a simple solution.  But if you're willing to use PHP to begin with, why not try?  If you're trying to achieve more advanced things that HTML just can't do, it's the next step up.

Otherwise, your alternative method would be to simply make your changes, upload them to Lunarpages, and test it live (this is generally not a great idea, though).
Logged

Refined Web Design
http://refinedwebdesign.com
Sage
Intergalactic Cowboy
*****
Offline Offline

Posts: 58


« Reply #17 on: February 13, 2008, 09:49:00 PM »

Hi!

What you suggest is sound and practical advice. (Tomorrow will be a snow day so I'll be busy working on this.)

Cheers and Thanks again.  Very Happy
Logged
Sage
Intergalactic Cowboy
*****
Offline Offline

Posts: 58


« Reply #18 on: February 14, 2008, 06:59:03 PM »

I want to let you know everything works beautifully!  Bouncin for Joy Awesome advice on using PHP and the codes. I'm really happy with this -- with the new additions on the site I played around with adding the header, menu, etc in the same manner that was suggested earlier. I can now see why PHP is better. It will certainly make my life easier.

I had to go "live" with testing things because I can't figure out how XAMPP server works with Dreamweaver. After I tested all the links I got rid of the html files on the live server. Perhaps you can give me some pointers so that I don't have to do this again.

One thing I noticed is that PHP loads a lot quicker or perhaps it's my imagination!

Important question.... I know that there are 1 or 2 articles circulating with the html files -- I haven't gotten rid of them yet, but is there some way to reroute those files to the new php files? Hmmm..... maybe I should change the menu buttons on those html files to php files as a precaution?

Many thanks,
Sage
Logged
Ibanez Player 85
Galactic Royalty
*****
Offline Offline

Posts: 412


WWW
« Reply #19 on: February 17, 2008, 06:57:39 PM »

Hey,

Sorry, didn't realize you had posted.  Once you install XAMPP and start up your server, you can access the files in C:\xampp\htdocs by going to http://localhost in your web browser.  So, what I do is, I move my website files to a new folder within that directory (e.g. C:\xampp\htdocs\your_website_folder) and then preview the website in your web browser by typing in http://localhost/your_website_folder.  Doing this allows you to run your PHP.  Now in Dreamweaver (CS3), it normally shows my include files (so if I include a header or footer, or some other text, it usually displays it), but for other complex code, it does not.  Still, you can simply switch to your browser and test it out.

As far as redirecting, you can use .htaccess to do that, or try to just rename all of your files (Find & Replace works well in Dreamweaver).  I've seen at least a few threads around here involving redirects with .htaccess so you should be able to find something... if not, post a new thread and I'm sure someone will be glad to help.
Logged

Refined Web Design
http://refinedwebdesign.com
Sage
Intergalactic Cowboy
*****
Offline Offline

Posts: 58


« Reply #20 on: February 18, 2008, 01:57:00 PM »

Hi Ibanezplayer85:

I understand on the reply.  Very Happy

I have DW 8.0.2. -- I've unstalled and reinstalled DW and it still doesn't work as it should.  Confused Is there something that I need to do in XAMPP?  I've hit the Apache start button and I've also used the "Service" control to see if this would work. Nada.

Thanks.

Any all suggestions are welcomed.
Logged
Ibanez Player 85
Galactic Royalty
*****
Offline Offline

Posts: 412


WWW
« Reply #21 on: February 18, 2008, 05:47:53 PM »

The version I'm using is CS3 9.0, so that may be the reason why it's working for me and not yourself, though I'm not completely sure.  I don't do anything special to make the includes work. I simply start up Apache in XAMPP, load up my sites in Dreamweaver, and the includes appear.  Maybe this is a new feature in version 9.0?  To be honest with you, though, I almost never use the "Design" preview feature in Dreamweaver, anyway -- I just use it for its code editor and wind up previewing the whole website in a web browser Smile
Logged

Refined Web Design
http://refinedwebdesign.com
naina
Space Explorer
***
Offline Offline

Posts: 9


« Reply #22 on: May 28, 2008, 03:52:54 AM »

if you are using joomla than there are one file available   footer.php just change this file. then view result in site.
_____________________________________________________________
Web site Design
Logged
Brennie369
Spaceship Navigator
*****
Offline Offline

Posts: 87



WWW
« Reply #23 on: June 27, 2008, 10:54:48 AM »

Just to add a side note for those not wanting to switch their files to PHP & still want an easy way to change the footer in Dreamweaver.... you can create a Library item for the footer, then you just edit the one Library item, & select for it to update all pages that have that Library item on it, & then upload your changed pages to the server. You can make anything a Library item - a menu, footer - anything that changes with regular edits & is on all or alot of pages.

Another option - use the Find & Replace feature. Select the current footer text that's to be changed, click on Find & Replace. Your selected text will appear in the section of data to be found. Then enter the edited version in the box below, & make sure you select for it to be site-wide (I think it defaults on current document). I love this feature in Dreamweaver!
Logged
Pages: 1 [2]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM