/    Sign up×
Community /Pin to ProfileBookmark

We are having a problem.

We have PHP integrated into our site and are checking our site with the W3C HTML 4.01 compliance validator on W3C.org

Our site is already 100% CSS Compliant however every other webpage on our site meets the W3C compliance for HTML apart from a few pages with PHP bolted into them.

What it appears to do is that when its online, the php files on our server start to create session ID tags after the page name: i.e index.php is normal when you select the link offline, but online it turns to index.php?=1SESSID…

Is there any way to remove this from the end of the links as this is the only obstacle stopping us from being fully W3C compliant with HTML

Thanks.

to post a comment
PHP

6 Comments(s)

Copy linkTweet thisAlerts:
@JickOct 04.2004 — This has happened to me before too. I don't think there is any way to prevent it. I believe it is something caused by the server on which the site your testing resides on. It may be a bug or it could just be a setting turned on somewhere in the PHP configuration. It just happens randomly for me. As long as your page is all valid except for that your good to go because it isn't your fault it's being inserted. ?
Copy linkTweet thisAlerts:
@CodersauthorOct 04.2004 — Thanks Jick.

Will check the server set up and see whats going on where and see if it can be sorted out.
Copy linkTweet thisAlerts:
@solavarOct 04.2004 — It's something to do with session_use_transid.

This may help explain:

http://martin.f2o.org/php/session
Copy linkTweet thisAlerts:
@CodersauthorOct 04.2004 — booya

will check it out also!

[edit]

well don't ya just --bleep-- ing know it?

Its sorted yet googles little 30 day cache is now the contributing factor so untill thats re indexed itself we'll still get those errors.

Thanks for the help people! Greatly appreciated
Copy linkTweet thisAlerts:
@Bootsman123Oct 04.2004 — Put this on the top of you page:
[code=php]
ini_set ("arg_separator.output", "&");
[/code]
Copy linkTweet thisAlerts:
@MstrBobOct 04.2004 — Simpler still, if you are running an apache server, simply add this to your .htaccess file:


php_value arg_separator.output &
[/QUOTE]


If you don't have a .htaccess file, simply go to the top of your website's directory and create a blank file named .htaccess and add that line. That will change the output to & which is the proper way to encode it.
×

Success!

Help @Coders spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...