note 71478 added to function.output-add-rewrite-var

From: Date: Thu, 30 Nov 2006 20:39:03 +0000
Subject: note 71478 added to function.output-add-rewrite-var
Groups: php.notes 
Request: Send a blank email to php-notes+get-120192@lists.php.net to get a copy of this message
A very neat feature, but keep in mind that your url may not contain http:// as this is regarded as an url to external sources. It has been reported as bug: http://bugs.php.net/bug.php?id=38843 In PHP 5 the behavior of this functions differs from e.g. 4.3.9. IMHO the rewrite_mod checks if the var isn't inistialized already: output_add_rewrite_var(session_name(), session_id()); //tep_href_link is the url manager of osCommerce 2.2 echo '<a href="' . tep_href_link('test.html') . '">Click here</a>'; echo '<a href="test.html">Click here</a>'; 4.3.9 outputs: <a href="test.html?ATid=e6a...526">Click here</a> <a href="test.html?ATid=e6a...526">Click here</a> and 5.0.4. (I see its also using the &amp; as set, just have to set this to a semicolon (;) as delimiter) <a href="test.html?ATid=e6a...526&amp;ATid=e6a...526">Click here</a> <a href="test.html?ATid=e6a...526">Click here</a> (session_id changed to not to screw up the layout) It's IMO: this is rather a feature of 4.3.9 than a bug and the manual is a lill' brief in description (allthough it's not a very complex rewrite). Best regards, Aldert Berends (The Netherlands) ---- Server IP: 83.137.20.120 Probable Submitter: 82.92.175.57 ---- Manual Page -- http://www.php.net/manual/en/function.output-add-rewrite-var.php Edit -- https://master.php.net/note/edit/71478 Del: integrated -- https://master.php.net/note/delete/71478/integrated Del: useless -- https://master.php.net/note/delete/71478/useless Del: bad code -- https://master.php.net/note/delete/71478/bad+code Del: spam -- https://master.php.net/note/delete/71478/spam Del: non-english -- https://master.php.net/note/delete/71478/non-english Del: in docs -- https://master.php.net/note/delete/71478/in+docs Del: other reasons-- https://master.php.net/note/delete/71478 Reject -- https://master.php.net/note/reject/71478 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#120192) next »