PDA

View Full Version : URGENT HELP NEEDED: include/requre remote file


eliZZZa
09-05-2002, 09:58 PM
I just got a request from a client to include a searchform and search-result in a simple HTML page - I have no experience with PHP but tried the following:

For the Searchform
================================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<?php include('http://gso.linea.7.com/search.php'); ?>

</body>
</html>

For the SearchResult
===================================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<?php include('http://gso.linea.7.com/search.php?SFC_searchsource=new&SF_kwd=auto&PREVSF_kwd='); ?>

</body>
</html>

==============================================
Nothing happens - WHY??? We have PHP4 installed on a UNIX/LINUX/Apache Server.

Greatful for any hint!!!
eliZZZa

InOblivion
09-06-2002, 09:11 PM
If you could be more specific about what's wrong, it would be easier to help.

Could you post the code in the search.php file?

firepages
09-07-2002, 02:55 AM
run phpinfo() & check if 'allow_url_fopen' is enabled (set to 1) - it should be but if not thats one possible problem.

its also possible that the remote server does not allow remote requests

also check the url actually exists