Bluehost.com Web Hosting $6.95

SAFE MODE Restriction in effect

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(): ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-05-2006
Kathryn Gill
 
Posts: n/a
Default SAFE MODE Restriction in effect

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


Reply With Quote
  #2 (permalink)  
Old 04-05-2006
Michael Pichler
 
Posts: n/a
Default Re: SAFE MODE Restriction in effect

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
Reply With Quote
  #3 (permalink)  
Old 04-05-2006
Kathryn Gill
 
Posts: n/a
Default Re: SAFE MODE Restriction in effect

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



Reply With Quote
  #4 (permalink)  
Old 04-06-2006
John Murtari
 
Posts: n/a
Default Re: SAFE MODE Restriction in effect

"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/
Reply With Quote
  #5 (permalink)  
Old 04-07-2006
Gleep
 
Posts: n/a
Default Re: SAFE MODE Restriction in effect

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

>


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:36 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0