A
A
Andrew2010-10-18 20:32:02
PHP
Andrew, 2010-10-18 20:32:02

PHP. Is it possible to upload a file with code from another server?

There are two shared hostings that contain php files, and you need to somehow include the file from one server to another. Is it possible?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Ashurok, 2010-10-18
@AotD

For files that you include, set the txt extension or cancel their processing by the php interpreter. Make sure that access to remote files is allowed on the server that includes scripts and execute the cherished
include 'http://site.com/included.txt';

C
Chvanikoff, 2010-10-18
@Chvanikoff

php.ini -> allow_url_include as the banal option.

A
AFoST, 2010-10-19
@AFoST

It's dangerous to load php from the plugin... If the name of the included file contains a parameter that the user can change, then this is 100% server hacking. Be careful in short.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question