PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sun Dec 21, 2014 10:49 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: XHTML and PHP
PostPosted: Wed Feb 09, 2005 4:21 pm 
Offline
Jedi Mod
User avatar

Joined: Tue Dec 21, 2004 6:03 pm
Posts: 5263
Location: usrlab.com
The W3C html validator is complaining about my website not being XHTML strict due to the "&" characters in urls not being "&". Fair enough. However, the "&"s in question are being inserted by PHP as index.php?v=1&PHPSESSID=jkdnjdnnasdjnasdjnadjknjndjk.. How do I make PHP put in valid xhtml without resorting to output buffering?

The offending W3C validation: http://validator.w3.org/check?verbose=1 ... .ooer.com/


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 09, 2005 4:42 pm 
Offline
Neighborhood Spidermoddy
User avatar

Joined: Mon Mar 29, 2004 4:24 pm
Posts: 31559
Location: Bothell, Washington, USA
turn off trans_sid and perform the sessiond id addition yourself...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 09, 2005 6:32 pm 
Offline
DevNet Master

Joined: Tue Jan 20, 2004 12:11 am
Posts: 4897
Location: Leuven, Belgium
; The separator used in PHP generated URLs to separate arguments.
; Default is "&".
arg_separator.output = "&"


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 09, 2005 6:53 pm 
Offline
Neighborhood Spidermoddy
User avatar

Joined: Mon Mar 29, 2004 4:24 pm
Posts: 31559
Location: Bothell, Washington, USA
I was searching for that when looking for a solution to the issue.. I know I've seen it before, but just didn't see it anywhere.. oh well. :)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 09, 2005 7:26 pm 
Offline
Jedi Mod
User avatar

Joined: Tue Dec 21, 2004 6:03 pm
Posts: 5263
Location: usrlab.com
Cool. Cheers. I've actually fixed it by switching the session stuff off as the site isn't actually using sessions anywhere. Curse of the standard include library..

XHTML 1.0 compliant now. Woo! Plus WAI-AA, Bobby AAA, and Section 508 approved.. Not too shabby if I say so myself.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 14, 2005 11:09 am 
Offline
Forum Contributor
User avatar

Joined: Wed Apr 07, 2004 11:57 am
Posts: 197
Location: Turku, Finland
Imagine two elderly 19th century English aristocrats with mustache and monocles sitting on veranda of some mansion. Having tea, naturally.
The Aristocrat 1 (ar1) asks the other (ar2):
ar1: "How are the coalmines today? If I may ask."
ar2: "Well, they could be better. I hear they hit a very rich goldvein early this morning. It makes it harder to mine decent coal down there, now doesn't it"
ar1 (nods just visibly): "I suppose it does"

That slight approving nod I'm giving to you right now.


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

All times are UTC - 5 hours


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

Jump to:  
Powered by phpBB® Forum Software © phpBB Group