a question about Eclipse/Zend-Studio. I'm trying to use the automatic upload feature but
i'm also using SVN so the projekt-data are in the subfolder trunk.
Now when i save a file it goes to the folder trunk on the webserver but it should be on the root-folder of the webserver and i don't know how to tell Zend-Studio to do this.
thx in advance for your help
Access the Automatic Upload Properties (Project | Properties | Automatic Upload). Then select a Project Directory:
A Project Directory is a folder within the Initial Directory that you would like to work with. This is the folder with which you will be transferring data when Uploading and Downloading files and folders to/from the remote server.
See http://files.zend.com/help/Zend-Studio/zend-studio.htm#automatic_upload.htm
If this doesn't work and you happen to have shell access to the remote host, symlink the webroot to the trunk folder.
Related
Hi I have build a script that downloads files from ftp account and then import data from them. However it works on localhost as after downloading files I save them on c drive and then read the files from there and process them. I need help to do this on live server. How can I achieve this and where can I store the files on server outside public_html folder.
I would really appreciate if someone can help me please. Thank you.
Yes, it will be good to store the files outside public_html
You can create download folder outside public_html using various tools. Log into you host provider account and use file manager tools there or else you can get an SSH credential for the host and create the folder using some SSH client
Also give proper permission to the folder, so that we can write/ read from it.
You can refer the location of the download folder from script using the script $_SERVER['DOCUMENT_ROOT'] .(Replace public_html with down load folder name)
this is not a very specific question, but sounds like you need to check permissions on your download folder on the server, set permissions so that your script can save into it, and you may want to keep it outside of public_html so that it is not accessible via the web server?
For example save it in public_html/../ftp (just illustrating the path here).
I have a simple php application and I need to host it. I have created a free account in 000webhost.com . They have provided me ftp credentials. In my local machine, the directory structure for the project is as follows:
C/wamp/www/myproject
Also I have placed the framework yii from http://www.yiiframework.com/ in the same path above.
When I log in to ftp for the free server account, I can only see the public_html folder. I do not know where I should place myproject and yii folders to host the project successfully.
I have already created database in this free server space using phpmyadmin.
You have to put the contents of the local folder /myproject in the remote /public_html
just try to upload your files into this folder.
if you upload the whole folder myproject, you have to call it with
http://mydomaingivenbymyprovider.com/myproject
I'm running XAMPP on Ubuntu, and I copied the lampp folder to /opt/. I also downloaded CodeIgniter to htdocs/, and created and modified some files in it, including changing their permissions. Are there files in CodeIgniter that I shouldn't set permission to full, because maybe then once I upload them onto a server anyone can see their contents?
Ideally, your CodeIgniter should be setup such that the application and system folder lie outside your document root. Only the index.php file along with any assets (images, javascript, css etc.) should lie within the document root.
As for file permissions, 755 works fine. There's no need for full permissions 777.
I can't seem to find information on how to do this. How can I use PHP to let a user upload a file on my website and then save that file on my server somewhere, but save it somewhere where noone can browse to its location? This will mainly be for PDF files, but they can also upload TXT or DOC/DOCX files, if that matters.
Any help is appreciated
Thank you
it depends on what your web server setup is like.
If you are on a shared web host, some companies only have web accessible folders for each shared host client, others provide non-publicly accessible folders. To check for this login through ftp and if you see either a www or public-html then anything that is not in that folder should not be accessible.
If you have a non-publicly accessible folder, good!
Learn to love move_uploaded_file()manual.
Just set the destination folder of the move_uploaded_file to a folder that isn't inside the web root and you're good.
If you do not have a non-publicly accessible folder, you need some .htaccess magic. (Here is a starting point.)
I have a plesk panel and root dedicated server on 1and1. I'm using custom programed php script to upload the files and create the folders to server. I have the upload folder named upload_data_folder with the 777 permission.
The scenario is the following:
I want to create folder in my upload_data_folder and than upload files in that newly crated folder. I'm doing this over php script so every file or folder that I create has apache user and the group as the owner.
I'm successfully crate the folder in my upload_data_folder and that folder is owned by apache, has apache as a group and has 777 premission. Then When I try to upload some files to that newly created folder It can't.
I think the problem is with some owner permission but if anyone has some idea what this can be I would be very grateful
It was my custom made script. huuu I solved the problem. The php safe mode was turned on. After I turned it off everything works perfectly.
By default apache document root is /var/www/html/. If plesk is installed document root will have a path like:/var/www/httpdocs for non-secure sites. Thus secure sites are stored in /var/www/httpsdocs.