(866) 837-0540
 
 

Internet Marketing and Design Services for Turnkey Web Solutions 

Facebook Twitter Gplus Flickr LinkedIn YouTube Google Maps E-mail RSS
 
 
Home » web development » web design » PHP » PHP 5.2.6 include function with URL query string variables
formats

PHP 5.2.6 include function with URL query string variables

Published on September 15th, 2008 by in PHP

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.9.13_1145]
Rating: 9.2/10 (5 votes cast)
VN:F [1.9.13_1145]
Rating: +1 (from 1 vote)
PHP 5.2.6 include function with URL query string variables, 9.2 out of 10 based on 5 ratings
 
Take a piece of the Web from WebPaws.com: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Facebook
  • LinkedIn
  • TwitThis
  • MySpace
  • Google Bookmarks
  • Webnews
  • Digg
  • del.icio.us
  • StumbleUpon
  • eKudos
  • email
  • Fleck
  • Hype
  • MisterWong
  • Print
  • Technorati
  • YahooMyWeb
 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© Copyright © 1998-2011, WebPaws.com All rights reserved.
credit