Ready to consider PHP in lieu of iframes---need advice

This is a discussion on "Ready to consider PHP in lieu of iframes---need advice" within the Web Page Design section. This forum, and the thread "Ready to consider PHP in lieu of iframes---need advice are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jul 16th, 2005, 15:58
Reputable Member
Join Date: Oct 2004
Location: Mobile, AL USA
Age: 47
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
Ready to consider PHP in lieu of iframes---need advice

Okay, I'm not satisfied with iframes on one of my sites, so I'm considering PHP. Could someone please take a look at my site and tell me if PHP would work in this instance?

Question, part II: Is there a book you can recommend for a php illiterate like myself?

Question part III: I have Fantastico with my hosting, and it has an option for a PHP web site. They don't really support fantastico features, so I'm not sure what to do or how to do it. I don't know how installing this feature on my site will effect everything as it stands now.

By installing the PHP site script via Fantastico, will my site (as it stands right now) break?

And finally: I have Dreamweaver MX and don't know how to use it. But I understand that it can do some PHP stuff FOR me??

HEEEEELP! haha. Seriously. Help.

If you guys could take a peek at my site http://www.autumnwhisperstome.com and let me know if php can be used and retain the look/setup of the pages, etc. that would be awesome.

What I want is to have the content on the page change without having to navigate to another page (hence the iframes).

Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jul 17th, 2005, 16:02
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
I'm not entirely sure if you understand what PHP is. PHP (like ASP, perl, JSP) is a server side language that dynamically creates HTML files. So let's say that you want a page to always display the correct date and time - you could get PHP to do that so that whenever someone views a page, the date and time show up.

You want to have content on thepage change without having to navigate to another page? You're going to have to elaborate. This is basically impossible - frames won't do this as *part* of the page still changes. If you mean you don't want the user to be able to see the page they're on in the address bar, then why not? If you just want to prevent your navigation dissapearing, then please, forget it, because billions of web pages don't use frames and are used every day.

I apologise if I've misunderstood anything here... but what exactly are you trying to accomplish with the above in mind?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jul 17th, 2005, 16:27
Reputable Member
Join Date: Sep 2004
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
A lot of people use frames so that they don't have to redo the navigation every update and such. If this is one of the reasons you don't want the page to change then use SSI. It works great!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jul 17th, 2005, 19:33
Reputable Member
Join Date: Oct 2004
Location: Mobile, AL USA
Age: 47
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
Okay, I'm most likely not understanding PHP at all. But this is what I want to happen....

I want the contents of the page to change, but not the page itself. I like the sites I've visited that have this effect. It's like, as stupid as it sounds, the contents magically appear when a link is clicked. lol Okay, so don't throw rotten tomatoes just yet. :P

Also, there's a sound file on the main page, and I want it to play initially, and also if visitors leave and come back, but I don't want them to have to deal with it each time they click on an internal link and come back. You know?

John: that's definitely a plus to having just one page to update, but I also just like the idea of not flipping from one page to another... yeah, that sounds goofy, I know. :P I'm not familiar with SSI.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jul 17th, 2005, 21:31
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by autumn_whispers2me
Okay, I'm most likely not understanding PHP at all. But this is what I want to happen....

I want the contents of the page to change, but not the page itself. I like the sites I've visited that have this effect. It's like, as stupid as it sounds, the contents magically appear when a link is clicked. lol Okay, so don't throw rotten tomatoes just yet. :P
I assume you mean like we have here - all the threads works from viewtopic.php?
Quote:
Originally Posted by autumn_whispers2me
Also, there's a sound file on the main page, and I want it to play initially, and also if visitors leave and come back, but I don't want them to have to deal with it each time they click on an internal link and come back. You know?
You can do that with a cookie. If the sound file is in Flash then it's better to use a Flash cookie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jul 17th, 2005, 23:01
Reputable Member
Join Date: Oct 2004
Location: Mobile, AL USA
Age: 47
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
I know there's a code to make the music play only once and never again, but I don't want that to happen. Is this cookie going to do that?

Also, I realize with some browsers even flash cookies are blocked. I had to change FF's default settings to allow Flash movies to play. There's a lot of anti-spyware, antivirus programs that block active content... so I'm not sure I want to mess with that yet.

I need to give this some thought.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Jul 17th, 2005, 23:27
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
A cookie would remember if the music has been played already and not play it again if it has... I'm not sure what else you want to accomplish!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jul 21st, 2005, 21:54
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Use PHP includes...

I have a few sites that use a feature called PHP includes.

What you basically do is create a file, can be .html, .txt, .php, whatever. In this file you stick some code that you want to show up on every page of your site. (it's often used with navigation bars).

Then, you put a little bit of php code on every page, this code "requests" the code you put inside that first file I mentioned and simply sticks it inline.

For example:

I have a file called inc_navigation.html. In this file I have nothing except:
Code: Select all
Home Page About Us etc etc.
(NOTE: this little file doesn't have <html>, <body> tags. It simply has the code above)

Then, I put this particular line of code in ALL my other pages:
Code: Select all
<?php require("inc_navigation.html"); ?>
Later in life, when I want to change the navigation bar contents, but I REALLY don't want to do it on all 70 of my pages, I simply change the contents of "inc_navigation.html" and upload it to the web host.

It instantly changes on all pages across the site that happen to have the PHP code listed above.

Some people may wonder, so I'll say it now: The particular snippet of PHP code I listed above should be placed exactly where you want the navigation bar (in this example) to show up in the regular pages, not in the head tag.

Here's a real life example of how I've used this feature in a large current project:
Code: Select all
<div id="left"> [img]images/index_cassandra_tiara.jpg[/img]
    <p id="topsellercaption">[img]site_img/green_arrow_bullet.gif[/img] Top Seller: Cassandra Tiara</p>
    <?php require("includes/inc_sub_wedplan.html"); ?>
    <?php require("includes/inc_newsletters_large.html"); ?>
  </div>
That above code uses two PHP includes and can be seen here: http://bostonwebstudio.com/client/usabride/new/

It makes the entire left pink column.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Jul 21st, 2005, 22:37
Reputable Member
Join Date: Oct 2004
Location: Mobile, AL USA
Age: 47
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
Herkalees... THANK you! A lightbulb FINALLY went on about php because of your tutorial!

I copied and pasted the post so I can use it later for reference. That SO sounds a lot easier than having to change all those pages.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Jul 21st, 2005, 23:18
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Ready to consider PHP in lieu of iframes---need advice

Quote:
What I want is to have the content on the page change without having to navigate to another page (hence the iframes).

Thanks in advance.
could you mean like id's(sorry dont know the real names, what are they called?) like when you click a link and you get page.php?pageid=3 ?? so your veiwing the same page but seeing diffent content
Quote:
(hence the iframes).
that. lol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Jul 22nd, 2005, 21:49
Reputable Member
Join Date: Oct 2004
Location: Mobile, AL USA
Age: 47
Posts: 228
Thanks: 0
Thanked 0 Times in 0 Posts
No.. it's like frames, where the content changes within the page without having to switch pages to do it. Not links, but content.. like text.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Jul 23rd, 2005, 02:24
herkalees's Avatar
Highly Reputable Member
Join Date: Jul 2005
Location: Massachusetts, USA
Age: 87
Posts: 576
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by autumn_whispers2me
Herkalees... THANK you! A lightbulb FINALLY went on about php because of your tutorial!

I copied and pasted the post so I can use it later for reference. That SO sounds a lot easier than having to change all those pages.
You're welcome, glad I could help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
ready, consider, php, lieu, iframesneed, advice

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ready for Linking? smartboy Link Building and Link Sales 5 Aug 19th, 2006 09:40
Get it up and ready? BongMaster Databases 1 Dec 6th, 2005 07:54
I am ready to dive in!!! courtjester ASP.NET Forum 9 Sep 15th, 2003 05:21


All times are GMT. The time now is 13:30.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42