Jump to content

HELP !!!! include (' $_GET['file'] ')


Sangha-08

Recommended Posts

well .. i need more help now, i thought i could do what i want to do this way but it wont work -_-

 

i want to do something like this -

<?php
include(http://someotherwebsite.com/video.php?id=$_GET['file']);
?>

 

Could you help me on that  ??? thanks for the quick reply, i appreciate it mate =)

 

i see.. but i want to copy the whole web page and make it look like its mine

 

for instance

 

I want to turn http://www.somerandomwebsite.com/video.php?id=110019

to http://www.mywebsite.com/video.php?id=110019

As long as your are not ripping the other site then file_get_contents will do what you want. There is no point in using a http url within include/require as only the output (text/html) of the requested script (video.php) will be returned, not the PHP source code. This is why I told you to use file_get_contents.

We're all trying to help you.  If your brother has such an amazing website that your server can't handle, he should know how to do this, right?  Why don't you show us what you have right now and tell us which errors (if any) it displays.  How about that?

You're not explaining yourself properly, What do want it to look like? How are we supposed to know whats supposed to look like if you give us fake urls.

 

If you did:

echo file_get_contents('http://www.google.com');

The google homepage will be displayed on your site. The same applies to the urls you're providing.

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.