PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Are you sure you need to use double slashes? I've never used that function, and I don't have access to my server to test it right now...
If using single slashes doesn't work, consider the following:
It's important to note that, in general, your web application will not run with the same permissions as your own user account. Just because you can log onto the server and rename a file, does not mean that your web-service account can do the same.
Check the permissions on the file or folder that the file is contained in, and assign the correct permissions to the account.
You may want to check in with the security board and ask them about the implications of such an action before putting this into production, however.
Griven wrote:Are you sure you need to use double slashes? I've never used that function, and I don't have access to my server to test it right now...
If using single slashes doesn't work, consider the following:
It's important to note that, in general, your web application will not run with the same permissions as your own user account. Just because you can log onto the server and rename a file, does not mean that your web-service account can do the same.
Check the permissions on the file or folder that the file is contained in, and assign the correct permissions to the account.
You may want to check in with the security board and ask them about the implications of such an action before putting this into production, however.
hi,
i sure i got permissions for the filepath due to i the administrator for this web server. I new in PHP. i just copy the code from website. So i dont know single slashes will solve or not. Will try it out.