PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > php.general > php.ini
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
php.ini

Réponse
 
LinkBack Outils de la discussion
Vieux 09/05/2008, 17h47   #1
Michael Satterwhite
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut php.ini

I'm trying to turn off magic quotes for a site. I've copied the php.ini
from /etc/php5/apache2 to the web site directory. In this file, I've changed
magic_quotes_gpc to read
magic_quotes.gpc = Off

When I run phpinfo() from this directory, it still shows magic quotes as being
on. I'm guessing there is another configuration parameter (either in the
Apache configuration or for php) that allows this to be processed. Would
someone be so kind as to me here; I admit ignorance.

---Michael
  Réponse avec citation
Vieux 09/05/2008, 17h53   #2
André Medeiros
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] php.ini

I'm not sure PHP5 would read php.ini from that directory.

You should take in account that your hosting company may _NOT_ allow
you to change certain parameters. That said, try visiting
http://us2.php.net/configuration.changes and see how that works for
you.

Good luck

On Fri, May 9, 2008 at 4:47 PM, Michael Satterwhite <michael@weblore.com> wrote:
> I'm trying to turn off magic quotes for a site. I've copied the php.ini
> from /etc/php5/apache2 to the web site directory. In this file, I've changed
> magic_quotes_gpc to read
> magic_quotes.gpc = Off
>
> When I run phpinfo() from this directory, it still shows magic quotes as being
> on. I'm guessing there is another configuration parameter (either in the
> Apache configuration or for php) that allows this to be processed. Would
> someone be so kind as to me here; I admit ignorance.
>
> ---Michael
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

  Réponse avec citation
Vieux 09/05/2008, 17h54   #3
Michael Satterwhite
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] php.ini (typo in previous)

There was a typo in my previous message asking the question. I typed a "."
instead of "_". It's corrected below:

On Friday 09 May 2008 11:47:29 Michael Satterwhite wrote:
> I'm trying to turn off magic quotes for a site. I've copied the php.ini
> from /etc/php5/apache2 to the web site directory. In this file, I've
> changed magic_quotes_gpc to read
> magic_quotes_gpc = Off
>
> When I run phpinfo() from this directory, it still shows magic quotes as
> being on. I'm guessing there is another configuration parameter (either in
> the Apache configuration or for php) that allows this to be processed.
> Would someone be so kind as to me here; I admit ignorance.
>
> ---Michael



  Réponse avec citation
Vieux 09/05/2008, 17h56   #4
Thiago Pojda
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RES: [PHP] php.ini

phpinfo() should also tell you what php.ini is loaded.

Did you check that?


Atenciosamente,

www.softpartech.com.br
Thiago Henrique Pojda
Desenvolvimento Web
+55 41 3033-7676
thiago.pojda@softpartech.com.br
Excelência em Softwares Financeiros


-----Mensagem original-----
De: Michael Satterwhite [mailto:michael@weblore.com]
Enviada em: sexta-feira, 9 de maio de 2008 13:47
Para: php-general@lists.php.net
Assunto: [php] php.ini

I'm trying to turn off magic quotes for a site. I've copied the php.ini
from /etc/php5/apache2 to the web site directory. In this file, I've changed

magic_quotes_gpc to read
magic_quotes.gpc = Off

When I run phpinfo() from this directory, it still shows magic quotes as
being
on. I'm guessing there is another configuration parameter (either in the
Apache configuration or for php) that allows this to be processed. Would
someone be so kind as to me here; I admit ignorance.

---Michael

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




  Réponse avec citation
Vieux 09/05/2008, 18h00   #5
Adam Richardson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] php.ini

And, at some hosts you have to change the settings in htaccess as opposed to
php.ini.

On Fri, May 9, 2008 at 12:53 PM, André Medeiros <andre.caum@gmail.com>
wrote:

> I'm not sure PHP5 would read php.ini from that directory.
>
> You should take in account that your hosting company may _NOT_ allow
> you to change certain parameters. That said, try visiting
> http://us2.php.net/configuration.changes and see how that works for
> you.
>
> Good luck
>
> On Fri, May 9, 2008 at 4:47 PM, Michael Satterwhite <michael@weblore.com>
> wrote:
> > I'm trying to turn off magic quotes for a site. I've copied the php.ini
> > from /etc/php5/apache2 to the web site directory. In this file, I've

> changed
> > magic_quotes_gpc to read
> > magic_quotes.gpc = Off
> >
> > When I run phpinfo() from this directory, it still shows magic quotes as

> being
> > on. I'm guessing there is another configuration parameter (either in the
> > Apache configuration or for php) that allows this to be processed. Would
> > someone be so kind as to me here; I admit ignorance.
> >
> > ---Michael
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >

>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


  Réponse avec citation
Vieux 09/05/2008, 18h56   #6
Shawn McKenzie
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: php.ini

Michael Satterwhite wrote:
> I'm trying to turn off magic quotes for a site. I've copied the php.ini
> from /etc/php5/apache2 to the web site directory. In this file, I've changed
> magic_quotes_gpc to read
> magic_quotes.gpc = Off
>
> When I run phpinfo() from this directory, it still shows magic quotes as being
> on. I'm guessing there is another configuration parameter (either in the
> Apache configuration or for php) that allows this to be processed. Would
> someone be so kind as to me here; I admit ignorance.
>
> ---Michael


You have to set it in your main php.ini, the one shown in phpinfo() or
set it in a .htaccess in the web dir if permitted. You can't just copy
a php.ini into a dir and expect php to use it.

-Shawn
  Réponse avec citation
Vieux 09/05/2008, 18h57   #7
Michael Satterwhite
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: RES: [PHP] php.ini

On Friday 09 May 2008 11:56:32 Thiago Pojda wrote:
> phpinfo() should also tell you what php.ini is loaded.
>
> Did you check that?


I hadn't thought to, but I just did. As expected, it's reading it
from /etc/php5/apache2.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 08h44.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14621 seconds with 15 queries