Cant get server side includes to work with xampp

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Cant get server side includes to work with xampp

Postby Dave003 » 11. April 2012 12:14

I am trying to get server side includes to work with xammp and i keep getting the following errors;

Warning: include() [function.include]: http:// wrapper is disabled in the server configuration by allow_url_include=0 in /Applications/XAMPP/xamppfiles/htdocs/noq/index.php on line 21

Warning: include(http://google.com.au) [function.include]: failed to open stream: no suitable wrapper could be found in /Applications/XAMPP/xamppfiles/htdocs/noq/index.php on line 21

Warning: include() [function.include]: Failed opening 'http://google.com.au' for inclusion (include_path='.:/Applications/XAMPP/xamppfiles/lib/php:/Applications/XAMPP/xamppfiles/lib/php/pear') in /Applications/XAMPP/xamppfiles/htdocs/noq/index.php on line 21

I am running Xampp 1.7.3 on OSX 10.6.8 on a March 2011 Macbook Pro

This is the code for my proxy.pl perl script in the cgi bin

Code: Select all
use LWP::Simple;
print "Content-type:text/html\n\n";
getprint ($ENV{'QUERY_STRING'});


This is the code for my htaccess file

Code: Select all
Options +Includes

XBitHack on


Code: Select all
This is the code for my index.php file

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>

<body>
<div><?php include("http://m.noqapps.com.au"); ?>
</div>
</body>
</html>
Dave003
 
Posts: 9
Joined: 07. December 2006 13:12

Re: Cant get server side includes to work with xampp

Postby Dave003 » 13. April 2012 13:37

It seems TCPblock was blocking it with out telling me, disabling it fixed the problem for me .
Dave003
 
Posts: 9
Joined: 07. December 2006 13:12


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 59 guests