Jump to content

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


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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.