Uploading files to the "Home" directory

Boballoo

Verified User
Joined
Aug 31, 2005
Messages
62
I have content that I want to display across all sites on my server -- my sites, reseller's sites and user's sites. Using a PHP include I should be able to do this if I can upload the text file to the home directory but it seems that, using the file manager, I can only get to the /home/admin/ or /home/reseller/ directory. Is there any way to upload a file to the "Home" directory. I have PHP5 installed which does not allow for includes from remote sites so if I can upload the file to the home directory, it will not be remote. (for security reasons, I don't want to alter the server configuration to allow this.)
 
You'll have to upload the files to somewhere else on the server, then move them to the /home directory through the shell.

Depending on how you run PHP5, it may still not work; you're probably going to run into problems with either open_basedir, or with the files' ownership.

Jeff
 
Can't imagine what you're trying to include?
You're going to hack customer's php files to
add a php include? Maybe they'll switch to
static html files.. or find another host?

To include custom content or ads, which free webhosts
ofter do, simply modify the apache output table, as can be
done most easily by using mod_layout (3rd party apache module)
or create your own apache handler(s) to do this
 
Can't imagine what you're trying to include?
You're going to hack customer's php files to
add a php include? Maybe they'll switch to
static html files.. or find another host?

You are correct, you cannot imagine...so maybe you should not presume to know, and maybe not jump to false conclusions and post them here in a public forum. Your public attack in such a manner is unwarranted, unjust, unwise, and just plain uninformed.
To include custom content or ads, which free webhosts
ofter do, simply modify the apache output table, as can be
done most easily by using mod_layout (3rd party apache module)
or create your own apache handler(s) to do this
Thank you, that is good advice.
 
This is not a place for attacks OR counterattacks. Let it go.
 
Back
Top