LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-18-2010, 05:44 AM   #1
comptech520
Member
 
Registered: Apr 2006
Posts: 31

Rep: Reputation: 15
PHP Upgrade questions


Hi,

Using CentOS5, I had PHP upgraded from 5.1.6 to 5.2.10.

While using 5.1.6, I was able to include a URL from another site, after the upgrade that no longer worked.

I went to the php.ini file and looked under

;;;;;;;;;;;;;;;;;;
; Fopen wrappers ;
;;;;;;;;;;;;;;;;;;

I ONLY SAW THIS LINE:
; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
allow_url_fopen = On

I KNOW THIS IS THE LINE I NEED TO EDIT TO MAKE THIS HAPPEN, BUT IT IS NOT APART OF MY PHP.INI FILE.
; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
allow_url_include = Off


How can I enable including files from my other sites?
 
Old 11-20-2010, 09:57 PM   #2
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
Just curious, what was the PHP code you were using?

I also upgraded my PHP in CentOS 5 to 5.2.10, and both parameters were included in my php.ini.

[mirandam@atlas ~]$ grep -n allow_url /etc/php.ini
581:allow_url_fopen = On
584:allow_url_include = Off

Why not just add the line to your php.ini file ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Installing Suhosin on PHP.. and PHP related questions. WhisperiN Linux - Server 2 06-17-2010 12:17 AM
Upgrade from PHP Version 4.3.9 to PHP 5.2 on CentOS nuttynibbles Linux - Software 10 06-15-2010 02:35 PM
Upgrade PHP 5.1.6 to PHP 5.2.6 in Fedora core 6 sushant_d84 Linux - Newbie 3 07-16-2008 01:08 PM
PHP5 Upgrade Error: Missing Dependency: php = 4.3.x is needed by package php-pear vsystems Linux - Server 1 05-02-2007 07:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration