[PHP5] Using an external URL with the include function

Last update on July 29, 2009 02:51 PM by jak58
Published by jak58

[PHP5] Using an external URL with the include function







Normally the option to include external URL (e.g absolute, shape http://site.tld/url) via

the function include is disabled by default in php5 versions, to activate this option on your server put these two lines in your php.ini :

allow_url_include = 1 
allow_url_fopen = 1 


For more information, see: http://www.php.net/ ... # ini.allow-url-fopen

Note that:it can be very dangerous to activate the option allow_url_include.
Indeed it may, in some cases, pose serious security vulnerabilities.
Best answers for « Using an external URL with the include function » in :
PHP 5 - Using an external URL with the function include Show PHP 5 - Using an external URL with the function include The option to include an external URL (ie absolute, in the form http://site.tld/url) with the function include is disabled by default from PHP 5 and latest version. Below is the two...
Declaring a style sheet (CSS) Show Declaring a style sheet Style sheets are not directly integrated into the W3C's HTML recommendations. For this reason, you need to include elements in the HTML code indicating both the type of document, meaning the version of the HTML and CSS...
URL Show What is a URL? A URL (Uniform Resource Locator) is a universal naming format used to indicate a resource on the Internet. It is a printable ASCII character string which breaks down into five parts: The name of the protocol: i.e. in a way the...
How to turn a URL into a hyperlink ShowHow to turn a URL into a hyperlink If you are using PHP, there is a simple way to turn a URL into a hyperlink when inserting the address into your PHP document. This process is mostly used to ease the users' search of external websites or...
EXCEL: The INTERSECTION function ShowEXCEL: The INTERSECTION function You have a table consisting of rows and columns. Want to know the value of the cell at the intersection of a particular row / column in your table Example: Your table: - starts C3 to F3 ... for...
Javascript - trim() function Show[Javascript] The trim() function The trim () function is native PHP (and other languages) and is used to remove the spaces at the beginning and end of the string. There is no such function in Javascript, but you can use the...
Download URL Organizer ShowURL Organizer is an Internet favorite manager which includes a difference. It helps you to store, classify, annotate and save your favorite Internet as a shorts program, documents and files (collectively referred to as URL). Advantage It is...
Spreadsheets - Mathematical Functions ShowStandard Functions Function Description ABS() This function returns the absolute value of a number. It therefore returns the number, if it is positive, or the opposite (positive) if it is negative ODD(value) Rounds a number up to the...
URL manipulation attacks ShowIntroduction to URLs The URL (Uniform Resource Locator) of a web application is the vector that makes it possible to indicate the requested resource. It is a string of printable ASCII characters that is divided into five parts: The name of the...
E-Procurement - Management of the purchasing function Showe-Procurement The term "e-Procurement" (for Electronic Procurement, sometimes written eprocurement) refers to the use of new technologies to automate and optimize the purchasing function of the company. The term refers to a B2B exchange, i.e. a...