Jump to content

PHP copy


Recommended Posts

Hello everyone, so I made this script that creates directories via "a hack around" cPanel, on my own server, in order to create directories via my own software, but I also need to copy files from one directory into that newly created directory... Therein lies the problem...

 

I created a script a few years ago that worked, but for the life of me I can't remember how I enabled myself to be able to use the copy function of php...

 

Anybody know?

 

 

Link to comment
Share on other sites

so what happens when you go ahead an use the copy() funciton?

 

Warning: copy(/home/mydirectory/public_html/8_newdirectory/acontentpage.php) [function.copy]: failed to open stream: Permission denied in /home/mydirectory/public_html/account/CreateNewAccount.php on line 70

Link to comment
Share on other sites

maybe, found [urlhttp://www.siteground.com/tutorials/cpanel/file_permissions.htm]this[/url] tough.

 

Yeah, thanks, but if only it were that easy... You see it won't let me make permission changes like that, and if I logged in as root and made those changes, then they could only be modified by root, and I certainly don't want to put my root information into a php script...

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.