»
S
I
D
E
B
A
R
«
+
More
Recent News and Links
  • No bookmarks avaliable.
PHP 5.2.6 include function with URL query string variables
Sep 15th, 2008 by webpaws

Having issues with your website no longer handling your includes with query string variables after a server upgrade to PHP version 5.2.6?

Look at your include code:

include 'myfile.com?v1=foo&v2=555'

First off, you need to remove your virtual paths and replace them with full ones

include 'http://www.myWebSite.com/myFile.com?v1=foo&v2=555'

And lastly, you need to edit the php.ini file and add the following php.ini directive:


;to fix include function w/URL functions in v 5.2.6
allow_url_include = 1

This will re-activate existing include codes that worked in previous versions of PHP.

VN:F [1.8.4_1055]
Rating: 9.0/10 (4 votes cast)
VN:F [1.8.4_1055]
Rating: +1 (from 1 vote)
 
»  Substance: WordPress   »  Style: Ahren Ahimsa
© Copyright by WebPaws.com 2009. All Rights Reserved.

WebPaws.com is Digg proof thanks to caching by WP Super Cache