Return to iWEBTOOL

Go Back   iWEBTOOL Talk > The Web and your Website > Programming > HTML
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
Welcome to iWEBTOOL Talk, where you talk about webmaster-related stuff.
 
Discuss topics which interest you.
With over thousands of threads (topics), we're sure you'll find something that'll interest you.
Ask for help whenever you need it.
We have thousands of members who are available to help you if you need it.
It's absolutely FREE!

 1  Register           2  Browse the board           3  Discuss whatever may interest you!
 


Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 08-02-2007, 08:52 PM   #1
Martin81Vette
Member
 
Martin81Vette's Avatar
 
Join Date: Jul 2007
Location: Keller, TX
Posts: 183
Martin81Vette is on a distinguished road
Default Using <iframe> to include .php pages

I recently started toying with including my .php shopping cart pages in the .html frontend of my website.

I tried using the include command several times without success but then discovered the iframe feature. I know that this is not compatible with all browsers but I am really impressed with how it looks.

I just used some simple code such as shown below;

<iframe src="www.websitename.com/index.php" width=100% height=100% frameborder="0" scrolling="no">Text to appear if browser not compatible</iframe>

Has anyone else tried using iframe?? I love it!!!!
__________________
The Day Lily Cottage
daylilycottage.com::lesswired.com
Martin81Vette is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
SEO Checklist
Get yourself better ranking with
our "Do-it-Yourself" SEO Checklist.
Click Here
Old 08-03-2007, 05:20 AM   #2
Katey
Senior Member
 
Katey's Avatar
 
Join Date: Apr 2006
Location: Hull, United Kingdom.
Posts: 317
Katey has much to be proud ofKatey has much to be proud ofKatey has much to be proud ofKatey has much to be proud ofKatey has much to be proud ofKatey has much to be proud ofKatey has much to be proud ofKatey has much to be proud of
Default Re: Using <iframe> to include .php pages

Hi there,

Quote:
Originally Posted by Martin81Vette View Post
I recently started toying with including my .php shopping cart pages in the .html frontend of my website.

I tried using the include command several times without success but then discovered the iframe feature. I know that this is not compatible with all browsers but I am really impressed with how it looks.

I just used some simple code such as shown below;

<iframe src="www.websitename.com/index.php" width=100% height=100% frameborder="0" scrolling="no">Text to appear if browser not compatible</iframe>

Has anyone else tried using iframe?? I love it!!!!

I wouldn't use an iFrame for .php pages, you should use 'php Include'. A php code is a way of dynamically placing content onto a webpage, and it appears as if it is actually in the code. I use this so I can change sitewide copyright footers and menu's.

All you simply do is embed this code into wherever you want the php page to appear;

PHP Code:
<? include ("includes/example.php"); ?>

All you simply do is place the '<?' so the server knows it is using php, and the include so it knows what element it is using, and then the path to your php include file.

The better thing about .php includes is that they follow your CSS rules, and HTML rules. So you don't have to manually code the appearance and behavior of your website.

Hope this helped.


Regards,
Kieran Taylor.
Katey is offline  
Old 08-03-2007, 01:11 PM   #3
Martin81Vette
Member
 
Martin81Vette's Avatar
 
Join Date: Jul 2007
Location: Keller, TX
Posts: 183
Martin81Vette is on a distinguished road
Default Re: Using <iframe> to include .php pages

Thanks Kieran,

That's awesome, I will give that a try tonight...
I also noticed that another bad thing about iframe is that it's hard to get working using a mac.

I will perservere with the php include route.

Thanks again,
Martin
__________________
The Day Lily Cottage
daylilycottage.com::lesswired.com
Martin81Vette is offline  
Old 08-03-2007, 03:36 PM   #4
Katey
Senior Member
 
Katey's Avatar
 
Join Date: Apr 2006
Location: Hull, United Kingdom.
Posts: 317
Katey has much to be proud ofKatey has much to be proud ofKatey has much to be proud ofKatey has much to be proud ofKatey has much to be proud ofKatey has much to be proud ofKatey has much to be proud ofKatey has much to be proud of
Default Re: Using <iframe> to include .php pages

Hi there.

OK let me know how things went and if you can't do it properly I'll help you if I have some spare time .


Regards,
Kieran Taylor.
Katey is offline  
Old 08-03-2007, 03:43 PM   #5
NavyCS
iWEBTOOL SEO Advisor
 
NavyCS's Avatar
 
Join Date: Feb 2006
Posts: 242
NavyCS will become famous soon enough
Default Re: Using <iframe> to include .php pages

Or you can add
Code:
AddType application/x-httpd-php .php .html
to your htaccess (assuming you are not windows) and php will parse within html pages.
NavyCS is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
Webmaster Tools Webmaster Tools Click Here
Closed Thread

(Threads which have no activity for more than 30 days are automatically closed.)



Quick Reply
Message:

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Will .php Pages Get Indexed? (Newbie Question) Martin81Vette Search Engine Optimization (SEO) 11 08-09-2007 03:01 PM
Sidewide links on 45 dir's (include 4 PR5). Cheap! dimonf Links for Sale 0 06-12-2007 07:32 PM
sale website include domain pr3 bill_1983 Websites for Sale 5 03-30-2007 09:43 AM
To IFrame or not to IFrame RD_Gringa General Talk 18 03-28-2007 04:03 AM
Cache your pages with PhP Nikolas PHP 2 01-09-2007 04:04 PM


All times are GMT. The time now is 02:59 AM.


Powered by vBulletin v3.6.7 © 2008, Jelsoft Enterprises Ltd. SEO by vBSEO © 2006, Crawlability, Inc.