Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

include(""); --> Warning: Failed opening '' for inclusion

Status
Not open for further replies.

mlara

Programmer
Oct 22, 2001
32
CO
Hi

I have the follow problem:

server 1: mypage.php
server 2: pageserver2.php

in mypage.php I write:

<?php include(&quot;
and then I get this message:

Warning: Failed opening ' for inclusion (include_path='.:/php/includes:/usr/share/php') in /htdocs/sam/mypage.php on line #

Somebody could help me?

Thanks.
 
Normally, include() requires a filename on the local filesystem, not a web address.

If and only if you are running PHP version 4.3.0 or higher and you have the runtime configuration directive &quot;allow_url_fopen&quot; can you use a URL with include().

Please see for more information, particularly paying attention to the Warning box on that page. Want the best answers? Ask the best questions: TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top