Jump to content

Link File Retrieval


Dethman

Recommended Posts

Does anyone know how to get the php off of another server using a file on say a local host using something like this:

Link: http://localhost/test/retrieveFile.php?fileLink=http://webdomain.com/main_file.php

 

<?php
$fileLink=$_GET['fileLink'];
include($fileLink);

?>

 

 

Any help Would be awesome so I didnt have to FTP my site to view a file

Link to comment
https://forums.phpfreaks.com/topic/137136-link-file-retrieval/
Share on other sites

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.