Jump to content

including url domain.com/search.php?query=test not working!


tomverel

Recommended Posts

:(

 

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??

:confused:

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??

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.