tomverel Posted November 9, 2010 Share Posted November 9, 2010 This is what I was using for including an url with parameter <?php if ($fh = fopen('http://www.domain.com/search.php?query=test', 'r') ) { fpassthru($fh); fclose($fh); } ?> It's not working anymore after the hosting company did an upgrade. By the way. Alle scripts are accessible locally. What is my alternative?? Link to comment https://forums.phpfreaks.com/topic/218225-including-url-domaincomsearchphpquerytest-not-working/ Share on other sites More sharing options...
requinix Posted November 9, 2010 Share Posted November 9, 2010 Is domain.com your server? There are better ways of executing a local PHP file - why did you try to do it that way? Link to comment https://forums.phpfreaks.com/topic/218225-including-url-domaincomsearchphpquerytest-not-working/#findComment-1132357 Share on other sites More sharing options...
tomverel Posted November 9, 2010 Author Share Posted November 9, 2010 Is domain.com your server? There are better ways of executing a local PHP file - why did you try to do it that way? Yes it's my domain. A simple include was not working because of '?query=test'. Accessing the url using http was at that time the best solution? What is the best way to get the including to work?? Link to comment https://forums.phpfreaks.com/topic/218225-including-url-domaincomsearchphpquerytest-not-working/#findComment-1132360 Share on other sites More sharing options...
ManiacDan Posted November 9, 2010 Share Posted November 9, 2010 As much as I hate to suggest this: $_GET['r'] = 'test'; include('yourfile.php'); Also, your host's upgrade probably disabled the php.ini param ALLOW_URL_INCLUDES -Dan Link to comment https://forums.phpfreaks.com/topic/218225-including-url-domaincomsearchphpquerytest-not-working/#findComment-1132369 Share on other sites More sharing options...
tomverel Posted November 9, 2010 Author Share Posted November 9, 2010 As much as I hate to suggest this: $_GET['r'] = 'test'; include('yourfile.php'); Also, your host's upgrade probably disabled the php.ini param ALLOW_URL_INCLUDES -Dan Thank you for the script! Link to comment https://forums.phpfreaks.com/topic/218225-including-url-domaincomsearchphpquerytest-not-working/#findComment-1132376 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.