This is a discussion on SAFE MODE Restriction in effect within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi All, I've got a script which requires to copy a file, but end up with this error, copy(): ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Kathryn Gill schrieb:
> Hi All, > I've got a script which requires to copy a file, but end up with this error, > copy(): SAFE MODE Restriction in effect. does anybody know how to fix this > error? > > Any Info would be great. > > Thanks > Kathryn > > turn off the safe mode in the php.ini Manual: http://php.net/manual/en/features.safe-mode.php |
|
|||
|
How would i do that?
Thanks Kathryn "Michael Pichler" <mail@michaelpichler.de> wrote in message news:e10dgb$q7q$03$2@news.t-online.com... > Kathryn Gill schrieb: > > Hi All, > > I've got a script which requires to copy a file, but end up with this error, > > copy(): SAFE MODE Restriction in effect. does anybody know how to fix this > > error? > > > > Any Info would be great. > > > > Thanks > > Kathryn > > > > > > turn off the safe mode in the php.ini > > Manual: > http://php.net/manual/en/features.safe-mode.php |
|
|||
|
"Kathryn Gill" <fire_juggler_03@hotmail.com> writes:
>> > Hi All, >> > I've got a script which requires to copy a file, but end up with this > error, >> > copy(): SAFE MODE Restriction in effect. does anybody know how to fix > this >> > error? >> > >> > Any Info would be great. >> >> turn off the safe mode in the php.ini >> To do that you first need to know where your php.ini file is. Just create a simple page called phpinfo.php4 with the following contents: <? phpinfo (); ?> It will execute the phpinfo function and give you a LOT of information. Including the location of the php.ini file. You need to go to http://www.php.net/ to read the documentation on that. If you are not running your own private webserver, but are being hosted. Is is most likely your provider as turned on SAFE MODE as a security step. You can check with them to see if they can turn it off (although it is usually a system wide setting). Hope this helps. -- John __________________________________________________ _________________ John Murtari Software Workshop Inc. jmurtari@following domain 315.635-1968(x-211) "TheBook.Com" (TM) http://thebook.com/ |
|
|||
|
You should contact your ISP and ask for SSH access of shell access. IF you are on a shared server.
If they are cool they will goive you a root name and a password to login and adjust the php.ini file You should have an understanding of UNIX/LINX commands also know how to use the vi editor. There are many tutorials that will get you started. Also you will need a SSH tool like putty to access the server. If you have never done this before, you might be better off finding someone to walk you thru the steps. When you have shell access to you server if you don't know what you are doing to can easily do major damage. Be careful On Wed, 5 Apr 2006 14:21:58 +0100, "Kathryn Gill" <fire_juggler_03@hotmail.com> wrote: >How would i do that? >Thanks >Kathryn > >"Michael Pichler" <mail@michaelpichler.de> wrote in message >news:e10dgb$q7q$03$2@news.t-online.com... >> Kathryn Gill schrieb: >> > Hi All, >> > I've got a script which requires to copy a file, but end up with this >error, >> > copy(): SAFE MODE Restriction in effect. does anybody know how to fix >this >> > error? >> > >> > Any Info would be great. >> > >> > Thanks >> > Kathryn >> > >> > >> >> turn off the safe mode in the php.ini >> >> Manual: >> http://php.net/manual/en/features.safe-mode.php > |