Can not delete the file zip uploaded using CodeIgniter Zip library - codeigniter

I am using Codeigniter to upload a zip file and extract it to a folder using upload and zip library of Codeigniter 1.7.2
Everything Ok, but my code fails to delete the zip file after extract the zip file using extract method.
I got the message 'access deny'.
Anyone help me?

try restarting your PHP and APACHE, perhaps they have locked the handle to the file !

Related

Uploading Files and Folder to Cpanel - Laravel

I am trying to upload my files onto cpanel now. Do i have add them manually?
Because i tried to copy the project folder into folder i created but then, i get an error trying to upload. Can any one here please give me a step to do this easily?
PS: It is my first time trying to do this.
1 ) First compress your project and then upload to your cpanel
2 ) now go to your cpanel and extract the file and done.
You can use any FTP program with FTP credentials to upload project files. Just make sure you have appropriate permissions.
Also, you can upload the zip file as other answers suggest.
FTP programs
FileZilla

How to upload properly in 000webhost using codeigniter for a project

I think I miss something in the index.php file or something. I'm trying to upload my project in a zip file named "application.zip" in 000webhost. but there is an error that keeps appearing when I try to access my website. here is the error: "Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php"

PhpStorm invalid descendant file name

This question couldn't solve my problem.
I got this error C:\xampp\tmp, I am using PhpStorm file transfer protocol and I get this error whenever I want to upload any file to my cpanel.
I could only upload files if I delete the folder c:\xampp\tmp on my cpanel and after some time the folder will appear again on my cpanel.
The c:\xamp\tmp is availabe on my local machine, I presume the file is been uploaded to the server and I don't want it to. the folder I am trying to upload is inside htdocs, its a Drupal 7 file.

Update Magento extension using ssh to extract .tgz tar file

I am trying to update a module to a newer version. In the past I have manually uploaded each file carefully into the new directory and overwritten older files using FTP. However I wanted to use SSH to try and do this more easily and without any file permission problems.
I have:
Uploaded the .tgz file to the root folder (/http) on the server
Logged into the server via SSH
Changed the directory to the correct directory
Run the following command: tar -zxvf fishpig_splash.tgz
In the command line I was then given a list of all the files that had been extracted. However if I use FTP to go to any of these files I can see that they are still the older version and have not been overwritten.
I was expecting that the files would extract into the correct directories and overwrite any that already existed. I have tested the extraction by creating a temporary directory and extracting into that and everything worked fine.
Is there another part to this script I need to use to overwrite the files?
Thanks
Glynn
Sorry this was just me being stupid! When extracting the tar file there was a subfolder within it for the extension, I completely missed it. I just went down a level in the file and zipped up the contents only then extracted them at the root and everything worked fine. Thanks for the help though!

FTP With FileZilla, WAMP, and CodeIgniter

Ok, so I need to download files from my server since they are files that users upload. The reason I am using FTP with WAMP is just so I can test my script on my computer. Once I get it working, I can change the config files once the app is uploaded to a web server. I am using FileZilla.
MY application installation folder:
W:\wamp\www\idealeffort
The above directory is also set as my FileZilla user's home directory. There is a folder in my application called "_resumes". These are the files that I will need to download. So here is the script that I use to download these files.
$this->load->library('ftp');
$this->ftp->connect();
$this->ftp->download('/_resumes/'.$app['resume_filename'], FCPATH.'_resumes/'.$app['resume_filename']);
$app['resume_filename'] is a database result. I have checked to make sure that the file exists. I get the error "Unable to download the specified file. Please check your path."
Any ideas?
Note: FCPATH displays as "W:\wamp\www\idealeffort\ "
If you check codeigniter help
you have to give path from /public_html/....
So i think its problem with path.
Hope this helps

Resources