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 =)

 

Link to comment
Share on other sites

From that url your provided seems you want to place a movie in your webpage. You should use file_get_contents instead. include/require should be use for including PHP source code.

 

You should make sure allow_url_fopen is enabled.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.