?php
if (get_magic_quotes_gpc()) {
$process = array($_GET, $_POST, $_COOKIE, $_REQUEST);
while (list($key, $val) = each($process)) {
foreach ($val as $k = $v) {
unset($process[$key][$k]);
if (is_array($v)) {
On 3 October 2011 14:30, Jim Giner jim.gi...@albanyhandball.com wrote:
Thanks for the code sample - a little more complex than I've ever used. Can
you explain something for me?
The first unset line - what is it doing? If it is removing the item from
the $process array, then how can you then
Richard Quadling rquadl...@gmail.com wrote in message
news:CAKUjMCVwFos-=swewaoyxw2ukvhkwaueh6dahptycj-4wud...@mail.gmail.com...
On 3 October 2011 14:30, Jim Giner jim.gi...@albanyhandball.com wrote:
Thanks for the code sample - a little more complex than I've ever used.
Can
you explain
On 11-10-02 12:12 PM, Jim Giner wrote:
Spoke to quickly - still having issues. While the .ini file in each of my
appl. folders has magic quotes set to Off, my scripts are still escaping my
input - obviously following the server's .ini file settings. Waiting for my
hosters to get back to me.
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
Alain Roger escreveu:
Hi,
everytime i install PHP, my php.ini must be installed in C:\windows\
folder.
How can i do to force system to read php.ini file from C:\PHP\ folder
only ?
thanks.
Alain
You need to put the c:\php folder in the path of the system.
Control Panel
OPEN
Adding the line:
PHPINIDir c:/php/
to my Apache configuration file has worked for me on Windows installs,
assuming that you are using Apache.
On 11/9/06, zerof [EMAIL PROTECTED] wrote:
Alain Roger escreveu:
Hi,
everytime i install PHP, my php.ini must be installed in C:\windows\
folder.
Matt escreveu:
Adding the line:
PHPINIDir c:/php/
to my Apache configuration file has worked for me on Windows installs,
assuming that you are using Apache.
--
OH yes, in Apache 2.x this is also necessary.
-
zerof
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
hey Jay, did you figure out your ini/quotes problem?
Jochem Maas wrote:
Jay Blanchard wrote:
Everyday I scratch my head.
In php.ini in the C:\WINNT it is said;
; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off
; Magic quotes for runtime-generated data, e.g. data
in infinite wisdom Vizion spoke thus On 09/09/2005 03:56 AM:
If you check the php.ini file that comes with the php source code, you
will find it to be heavily commented. If you get stuck on some ini
setting, you can always double check it with the php manual
As I said in another postiing
in infinite wisdom Vizion spoke thus On 09/08/2005 09:04 PM:
Questions:
1.
As I am new to php I would appreciated if someone could help me locate a
tutorial which not only describes what is in the configuration files (which
the distributed configuration files do quite well) but also, some
On Thursday 08 September 2005 12:36, the author Raj Shekhar contributed to
the dialogue on-
[PHP] Re: php.ini and php.config Tutorial?:
in infinite wisdom Vizion spoke thus On 09/08/2005 09:04 PM:
Questions:
1.
As I am new to php I would appreciated if someone could help me locate
Jon Aston wrote:
this has got to be something easy but I was uploading to a folder on a
windows PC
c:\upload
but I updated php and forgot to backup my ini file.
I have tried with quotes without quotes as well as a relational address to
the folder in my ini file and I cannot get any uploads into
Yes I did restart apache after each setting change.
- Original Message -
From: Mehdi Achour [EMAIL PROTECTED]
To: Jon Aston [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Friday, May 06, 2005 9:38 AM
Subject: Re: php.ini uploads
Jon Aston wrote:
this has got to be something
It was as I suspected. Operator error.
upload_tmp_dir = folder
notice the space after the =
as soon as I noticed and removed the space
several of the variations that I had tried worked fine...
Thanks for the suggestions.
Jon Aston [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
this
At 06:16 AM 2/25/2005, H. Postel wrote:
I am setting up a database for the first time. I have to change some
settings to my php.ini file, but I can not find it. I work with MySQL
3.23.49
It is normally in the /etc directory. If you do not have access to the
/etc directory, then you will need to
On Saturday 22 January 2005 18:08, Joseph E. Maxwell wrote:
Hello,
I am setting up a program that requires allow_call_time_pass_reference to
be enabled. I've set allow_call_time_pass_reference = ON in the
/usr/local/etc/php.ini file
grep -n allow_call_time_pass_reference
restart your webserver
Travis Conway [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
What is the default place for php.ini? I have a few copies when I do a
`whereis php.ini`. I figure it is the /etc/php.ini. Anyone shed some
light? Also, is there anything that must be done after
[EMAIL PROTECTED] wrote:
(on windows) can someone tell me where to define which php.ini gets used?
The default is a copy in the windows directory. (C:\WINDOWS or c:\WINNT)
While details of what goes IN php.ini are nice in the manual - where it
goes is a bit more vague. Someone add some fine
This is a similar question, but under Linux.
No matter how I change the upload_max_filesize in /etc/php.ini, the file
uploading script refuses to accept files larger than 512 kB.
If I run the phpinfo() function, the new value for upload_max_size (20M)
appears there, but I get the message File
Paul Furman wrote:
I added this line to my php.ini without luck:
include_path = 'c:/_Paul/web/phplib/utilities'
PS I also tried it with backslashes instead of forward-slashes.
Inside php code that doesn't matter (or at least it works) on my windows
machine but the php.ini does ask that you follow
Solved again, double quotes needed!
include_path = c:\_Paul\web\phplib\utilities
include_path = 'c:/_Paul/web/phplib/utilities'
PS I also tried it with backslashes instead of forward-slashes.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi again, everyone --
I have a feeling that our problem is a lousy php.ini configuration. For
both module and CLI php we're using /usr/local/lib/php.ini, so I look in
there and I see
[mail function]
; For Win32 only.
SMTP = localhost
; For Win32 only.
sendmail_from = [EMAIL
does phpinfo(32) show the $action variable anywhere? If so just use the
global array variable it shows up under. Personally I'd just use the
$_GET['action'] alias.
You can safely turn register_globals on if you're the only guy that runs
scripts on that server and your scripts will never have to
does phpinfo(32) show the $action variable anywhere? If so just use the
global array variable it shows up under. Personally I'd just use the
$_GET['action'] alias.
You can safely turn register_globals on if you're the only guy that runs
scripts on that server and your scripts will never have to
Check that php_gd2.dll is in your C:\PHP\ folder.
Anthony Ritter [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I run the following script:
?
phpinfo();
?
// the page loads o.k. when the semi-colon remains as in:
;extension=php_gd2.dll
but if I remove the semicolon as in:
HI All
On Tuesday 18 February 2003 18:32, David Otton wrote:
On Tue, 18 Feb 2003 17:38:28 +0100, you wrote:
At last I got safe-mode turned off (Gott sei dank!). But I'm still having
a problem. I can only read Mysql DBs. I can not open a DB to update.
You have to connect to MySQL with a
Nicole [EMAIL PROTECTED] wrote:
Thank you. Yes, I did chmod my scripts. chmod 754 and tried 755 too. Don't
see why it should be x on the world, though. I would think if the script is
being called by its owner, then x on the owner and group should be enough,
no?
The script has to be
Thank you. Yes, I did chmod my scripts. chmod 754 and tried 755 too. Don't
see why it should be x on the world, though. I would think if the script is
being called by its owner, then x on the owner and group should be enough,
no?
I'm even using !#/usr/bin/php ... but then it doesn't even seem to
correction:
#!/usr/bin/php
--
Nicole
URLTrak.com
ElixirSafelist.com
aeontrek.com
Nicole [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Thank you. Yes, I did chmod my scripts. chmod 754 and tried 755 too. Don't
see why it should be x on the world, though. I
Hi Fella!
I found the problem and fixed it. I only have one php.ini which is
found under 'c:\winnt\'. What happen was that a couple of months ago,
someone in my company without my knowledge had made a backup copy of php.ini
and put it into hte D:\ drive. So, IIS for some reason didn't go
I'm having the same problem with II5 as you do. So, we're in the same boat.
I only have one php.ini on Windows and I'm using hte same file path. I even
rebooted the machine. I don't see how was I able to make it work before but
not now
Scott F.
Rad Craig [EMAIL PROTECTED] wrote in message
Yep! I changed the working email address on my php.ini to a different email
address, then stopped, started the IIS and test send myself an email. It
doesn't go to the new email address and it stuck to the old email address.
It is a IIS problem, not php.ini problem because it's not updating
In php.dev Omer K [EMAIL PROTECTED] wrote:
redhat, apache2.0.43 (as dso). compiles and runs without a problem
php4.3.0release fails to utilize php.ini settings. ignores changes to the
ini file.
./configure --with-config-file-path=/usr/local/apache2/conf/php.ini --with-a
You have it in the zip when you download from php.net
Gregory Hernandez [EMAIL PROTECTED] a écrit dans le message de
news: [EMAIL PROTECTED]
hello.
quick question.
can someone give a small example of what a php.ini file would look
like?
i had no php.ini file so i created blank one.
if i
Andre wrote:
Apache 1.3.26
PHP 4.2.1 staticly built as a module.
The configuration in php.ini seems not to be used by httpd.
I've traced my httpd process and it opens the php.ini file in the expected
directory, but variables set in there don't take effect (e.g. engine=On,
document root is where your webserver gets his files from. Default on Apache
is htdocs.
Hope this helps,
Andy
http://www.globosapiens.net
Global Travellers Network!
Taylor Lewick [EMAIL PROTECTED] schrieb im Newsbeitrag
[EMAIL
Once upon a time on another (Windows) server I could place a php.ini in a
directory and it would choose that one first before it defaulted to
c:\windows\php.ini. It doesn't work on my Apache server today, but who
knows?
Chris Kay wrote:
Question I have is,
Is it possible to specify a php.ini
Look at chapter 3 of the PHP manual, it covers specifying PHP configuration
in your http.conf or .htaccess files, you can do this per virtual host, per
directory or however else you want to do it.
Jason
Chris Kay [EMAIL PROTECTED] wrote in message
In Win98 at least it should be in C:\Windows.
php.ini could also be run out of the directory where the *.php is running.
Jeremiah Jester wrote:
Does it matter where my php.ini file is located on a windows2000 system?
Does it always need to be on the root of the volume where the files are
go for it...even if someone did a visual tool for that.
my question goes, has anyone made a *nix program to configure php.ini ? ;)
before i
Jtjohnston [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Has anyone made a Windows executable to configure the
Is php.ini readable?
Any messages in your Apache error log?
No messages in the apache error logs.
Are you 100% sure you really killed Apache and restarted?... I've
had cases
where I managed to install the new Apache in a different location,
and ended
up with two different sets of httpd's
I am positive.
/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd start
I have never touched the apache installation. I am currently under the
impression that compiling
with --with-config-file-path=/etc/httpd/conf/php.ini has screwed up the
install. That is unless someone has any other
Is php.ini readable?
Any messages in your Apache error log?
Are you 100% sure you really killed Apache and restarted?... I've had cases
where I managed to install the new Apache in a different location, and ended
up with two different sets of httpd's running. Quite disconcerting.
--
WARNING
44 matches
Mail list logo