* FAQ    * Search  * Register * Login 
Active topics
Unanswered topics

All times are UTC-06:00



Post new topic  Reply to topic  [ 7 posts ] 
Author Message
 Post subject: PHP in XHTML
PostPosted: Wed Jan 04, 2006 5:48 pm 
Offline
DBB DemiGod
DBB DemiGod
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 2263
ICQ: 2495296
Website: http://www.midnightsquadron.com/
Location: Topeka, KS
Anyone know if there is a way to display a php page inside an xhtml page?


Top
   
 Post subject:
PostPosted: Wed Jan 04, 2006 10:25 pm 
Offline
DBB Alumni
DBB Alumni
User avatar

Joined: Wed Mar 15, 2000 3:01 am
Posts: 8826
Location: Seattle
Huh? Do you want to include the PHP page's source in the file, or do you want it to be processed? Either way, your \"XHTML Document\" will have to be a PHP page that outputs XHTML (well, you could use an IFRAME or LAYER to include the PHP page's contents).


Top
   
 Post subject:
PostPosted: Wed Jan 04, 2006 11:18 pm 
Offline
DBB DemiGod
DBB DemiGod
User avatar

Joined: Sat Oct 24, 1998 2:01 am
Posts: 6415
Location: Calgary Alberta Canada
xhtml is a standard for formatting the content of a data stream sent by a web server.

In short, you can keep the extension as php. PHP doesn't really give a damn if its XHTML, HTML 4.0 or PNG.


Top
   
 Post subject:
PostPosted: Wed Jan 04, 2006 11:56 pm 
Offline
DBB DemiGod
DBB DemiGod
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 2263
ICQ: 2495296
Website: http://www.midnightsquadron.com/
Location: Topeka, KS
IFRAME worked. never used that before... this is the first xhtml i've worked with.


Top
   
 Post subject:
PostPosted: Fri Jan 06, 2006 9:33 am 
Offline
DBB Alumni
DBB Alumni
User avatar

Joined: Wed Mar 15, 2000 3:01 am
Posts: 8826
Location: Seattle
The question is why isn't your PHP file outputting the XHTML instead? Less convoluted than using an IFRAME.


Top
   
 Post subject:
PostPosted: Fri Jan 06, 2006 9:54 am 
Offline
DBB DemiGod
DBB DemiGod
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 2263
ICQ: 2495296
Website: http://www.midnightsquadron.com/
Location: Topeka, KS
Well, because its the portal for a forum software - the original php is outputting xhtml - but that side of it is complex as hell and I don't want to touch it, where the xhtml templates are easy to access and edit and I can understand essentially what it is doing.

The Iframe works nicely, don't know why you don't care for it. (www.midnightsquadron.com is what I'm fiddling with)


Top
   
 Post subject:
PostPosted: Fri Jan 06, 2006 11:01 am 
Offline
DBB Alumni
DBB Alumni
User avatar

Joined: Wed Mar 15, 2000 3:01 am
Posts: 8826
Location: Seattle
I don't like IFRAMEs because they were originally an IE-specific addition and therefore there's nothing binding Firefox, Opera, et al to even implement it (in fact, Netscape/Mozilla has LAYER for the same purpose). Luckily, since it's been around since around the days of HTML 3.0, most browsers do implement it.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Descent'rs have piloted these pages
 
The layout and contents contained within this site are © DescentBB.net 1997-2006.
Descent, Descent II are © Parallax Software Corporation.
Descent III is Outrage Entertainment.
Descent is a Trademark of Interplay Productions.

Miner Wars™ is trademark of Keen Software House s. r. o.
.


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group