Re: [PHP] Re: php.ini setting

2011-10-03 Thread Jim Giner

"Richard Quadling"  wrote in message 
news:CAKUjMCVwFos-=swewaoyxw2ukvhkwaueh6dahptycj-4wud...@mail.gmail.com...
On 3 October 2011 14:30, Jim Giner  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 reference the value ($v) in the
> very next line? I must be missing something.
>
> Also - I don't see the need to be stripping slashes from the $k
> (keys/indices?) elements. What am I missing there?
>
> As I said - the lines are a something new to me and I may not be
> interpreting what is going on here. Basically I see that you are 
> processing
> all of the arrays (GET,POST, etc) at once, doing each one in turn. For 
> each
> one, you then get down to the values returned to the script as a $k/$v 
> pair
> which you then check to see if it is in itself an array.(although you ask 
> if
> $v is an array, while I would have thought you'd ask if $k was an array).
> Once you get to the basest element you remove the slashes.
>

**
Thank you Richard for your effort, but I had the jist of all of this.  What 
I don't get is the points I asked about.  Can you answer the questions I 
mentioned? 



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



Re: [PHP] Re: php.ini setting

2011-10-03 Thread Richard Quadling
On 3 October 2011 14:30, Jim Giner  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 reference the value ($v) in the
> very next line?  I must be missing something.
>
> Also - I don't see the need to be stripping slashes from the $k
> (keys/indices?) elements.  What am I missing there?
>
> As I said - the lines are a something new to me and I may not be
> interpreting what is going on here.  Basically I see that you are processing
> all of the arrays (GET,POST, etc) at once, doing each one in turn.  For each
> one, you then get down to the values returned to the script as a $k/$v pair
> which you then check to see if it is in itself an array.(although you ask if
> $v is an array, while I would have thought you'd ask if $k was an array).
> Once you get to the basest element you remove the slashes.
>
> Thanks again - still waiting on my host company to get back to me - they've
> escalated the problem of not being able to turn the quotes off.  Hmmm

 $v) {

   // Remove the entry from the super-global.
   unset($process[$key][$k]);

   // Is the value an array.
   if (is_array($v)) {

   // Insert the value back into the super-global, but
strip slashes from the key.
   $process[$key][stripslashes($k)] = $v;

   // Because the value is an array, we don't want to
process it here.
   // Instead, append a reference to the value to the
$process array.
   // It will be picked up after the other super-globals
are processed by the while() line.
   $process[] = &$process[$key][stripslashes($k)];
   } else {
   // As the value is not an array, insert the stripped
value back into the super-global,
   // using a stripped key.
   $process[$key][stripslashes($k)] = stripslashes($v);
   }
   }
   }

   // All done, so remove $process also.
   unset($process);
}
?>




-- 
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea

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



[PHP] Re: php.ini setting

2011-10-03 Thread Jim Giner

>
>  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)) {
> $process[$key][stripslashes($k)] = $v;
> $process[] = &$process[$key][stripslashes($k)];
> } else {
> $process[$key][stripslashes($k)] = stripslashes($v);
> }
> }
> }
> unset($process);
> }
> ?>
>
> I know it is not the answer you are looking for, but it does work, and 
> used by thousands of coders.
>
> Stephen
>
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 reference the value ($v) in the 
very next line?  I must be missing something.

Also - I don't see the need to be stripping slashes from the $k 
(keys/indices?) elements.  What am I missing there?

As I said - the lines are a something new to me and I may not be 
interpreting what is going on here.  Basically I see that you are processing 
all of the arrays (GET,POST, etc) at once, doing each one in turn.  For each 
one, you then get down to the values returned to the script as a $k/$v pair 
which you then check to see if it is in itself an array.(although you ask if 
$v is an array, while I would have thought you'd ask if $k was an array). 
Once you get to the basest element you remove the slashes.

Thanks again - still waiting on my host company to get back to me - they've 
escalated the problem of not being able to turn the quotes off.  Hmmm 



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



[PHP] Re: php.ini setting

2011-10-02 Thread Stephen

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.

You could refer them to:

http://php.net/manual/en/security.magicquotes.php

Indicate that magic quotes have deprecated, and ask them to turn them off.

But they will say "no", because of all the other users on the server 
that you use.


In the end, you will be left with stripping the slashes on your own:


 $v) {
unset($process[$key][$k]);
if (is_array($v)) {
$process[$key][stripslashes($k)] = $v;
$process[] = &$process[$key][stripslashes($k)];
} else {
$process[$key][stripslashes($k)] = stripslashes($v);
}
}
}
unset($process);
}
?>

I know it is not the answer you are looking for, but it does work, and 
used by thousands of coders.


Stephen


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



[PHP] Re: php.ini

2008-05-09 Thread Shawn McKenzie

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 help 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

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



Re: [PHP] Re: php.ini

2006-11-09 Thread zerof

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, visit: http://www.php.net/unsub.php



Re: [PHP] Re: php.ini

2006-11-09 Thread Matt

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.
>
> 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 System >

> Tab Advanced > Environment Variables >

> Select the variable Path > Click Edit >

> Add at the end, the term: ;C:\php;

+ Click OK, OK, . . . to conclude.

ex-corde,
zerof
http://www.educar.pro.br/

--
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



[PHP] Re: php.ini

2006-11-09 Thread zerof

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 System >

> Tab Advanced > Environment Variables >

> Select the variable Path > Click Edit >

> Add at the end, the term: ;C:\php;

+ Click OK, OK, . . . to conclude.

ex-corde,
zerof
http://www.educar.pro.br/

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



[PHP] Re: php.ini & magic quotes

2005-10-05 Thread Jochem Maas

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 from SQL, from 
exec(),

etc.
magic_quotes_runtime = Off   
In phpinfo() it is said;




where does it say it read the ini file from?
is there a .htaccess equivelant setting somewhere
in the ISS server [your new job in a windows shop]
turning magic_quotes_gpc on (for the given 'vhost')?

(I use apache terminology - I trust your savvy
enough to translate them to ISSspeak :-)


magic_quotes_gpc On On magic_quotes_runtime Off Off
[note the disparity]

and get_magic_quotes_gpc() returns a 1 (for 'on')

I am having a helluva time escaping single quotes for use with MSSQL 
because

it throws the following error

SELECT EPC, Owner, Location, Application, Process, Product, Purchased,
Comments FROM intranet.dbo.CustomerRelations WHERE Purchased = 
'1990\'\'s'

ORDER BY EPC DESC
Filter=Purchased&FilterKey=1990\'\'s <--$_SERVER['QUERY_STRING']

1 <--get_magic_quotes_gpc


Warning: odbc_exec(): SQL error: [Microsoft][ODBC SQL Server Driver][SQL
Server]Line 1: Incorrect syntax near '\'., SQL state 37000 in 
SQLExecDirect

in E:\fubar\iamscrewed\windowsblows\index.php on line 51
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect 
syntax near

'\'.
Slashes are being inserted during the post, but i cannot get them to go



can you so a hack with 'magic_quotes_sybase' ini setting? (turn it on)
see here: http://nl2.php.net/sybase


away...stripslashes doesn;t work.can anyone help me get rid of the



what exactly isn't working?
something like this does do it for you?:


/**
 * array_stripslashes()
 *
 * stripsslashes from each value found in the given array,
 * and recurses if a value is itself an array.
 * this function is used to 'transform' request superglobals into
 * 'form' that is consistent regardless of server settings. (magic 
quotes, etc)

 *
 * @return array()
 */
function array_stripslashes(&$array) {
if(!is_array($array));
while (list($key) = @each($array)) {
if (is_array($array[$key])) {
array_stripslashes($array[$key]);
} else {
$array[$key] = stripslashes($array[$key]);
}
}
}

/* setup the env the way we like it. */
set_magic_quotes_runtime(0);// Disable magic_quotes_runtime
if (get_magic_quotes_gpc()) {   // stripslashes if they were auto added
array_stripslashes( $_POST  );
array_stripslashes( $_GET   );
array_stripslashes( $_REQUEST   );
array_stripslashes( $_COOKIES   );
array_stripslashes( $_HTTP_POST_VARS);
array_stripslashes( $_HTTP_GET_VARS );
array_stripslashes( $_HTTP_COOKIES_VARS );
}

slashes? Or should I just go for a nice motorcycle ride in the Hill 
Country?



If you have hills I'd say take an mtb. :-) I like mtb'ing - but I live
in a country







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



[PHP] Re: php.ini and php.config Tutorial?

2005-09-08 Thread Raj Shekhar
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 :
> Sure -- I did look at those - my feeling is that they are high on providing 
> the facts but low on providing meaning, context and interpretation.


The core php.ini settings are explains here
http://www.php.net/manual/en/ini.core.php .  If you want the settings
for a particular extension, (like mysql), you will find an explanation
for it in the php.net/ETENSION_NAME (like php.net/mysql)

-- 
Raj Shekhar
blog : http://rajshekhar.net/blog  home : http://rajshekhar.net
Disclaimer : http://rajshekhar.net/disclaimer

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



Re: [PHP] Re: php.ini and php.config Tutorial?

2005-09-08 Thread Vizion
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 a
>> tutorial which not only describes what is in the configuration files
>> (which the distributed configuration files do quite well) but also, some
>> explanations that might be understood by a php neophyte, plus guidance and
>> detailed examples on one might choose on option over another in different
>> circumstances. For those who are not familiar with php the configuration
>> files can appear daunting.
>
>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 :
Sure -- I did look at those - my feeling is that they are high on providing 
the facts but low on providing meaning, context and interpretation.

Mathematically it is easy to understand x+y=z but if you do not know or cannot 
know the value attributable to x or y or z the formula is *** useless. In 
my view one needs to distinquish between documentation (which records what 
something does in technical terms) and the qualities of a manual which 
explains which might refer to the documentation as it seeks to explain how 
and why one should choose to apply the options defined in the documentation.

The php.net references  the general documentation stanfard is superb but I 
found it to be somewhat lacking in its ability to meet the expectations of a 
manual. However, unless I missed a salient link, I did not find the brief 
section on installation and configuration very useful.

Incidentally the book by Luke Welling & Laura Thomson, PHP and MySQL web 
Development seemed to promisong in fulfilling the manual role for programming 
PHP. I was however disappointed because but  the general standard throughout 
the book does not seem to have been carried through to the Appendix on 
installation and configuration. It does not go into detail in regard to 
configuration options.

I have written to the authors in the hope they might give consider devoting a 
full chapter to that topic in their next edition.

Do you happen to have any other suggestions?
>
>> 2.
>> Recomendations for forum, wiki and blog modules.
>
>Wiki -> PmWiki http://rajshekhar.net/content/view/24/26/
>Blog -> s9y
>
>--
>Raj Shekhar
>blog : http://rajshekhar.net/blog  home : http://rajshekhar.net

Thanks very much for yr help

david

-- 
40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V Taurus.
 Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after 
completing engineroom refit.

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



[PHP] Re: php.ini and php.config Tutorial?

2005-09-08 Thread Raj Shekhar
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 
> explanations that might be understood by a php neophyte, plus guidance and 
> detailed examples on one might choose on option over another in different 
> circumstances. For those who are not familiar with php the configuration 
> files can appear daunting. 

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


> 
> 2.
> Recomendations for forum, wiki and blog modules.

Wiki -> PmWiki http://rajshekhar.net/content/view/24/26/
Blog -> s9y

-- 
Raj Shekhar
blog : http://rajshekhar.net/blog  home : http://rajshekhar.net
Disclaimer : http://rajshekhar.net/disclaimer

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



[PHP] Re: php.ini uploads

2005-05-06 Thread Jon Aston
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 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 the folder.
>
> this is what I have tried
>
> c:\upload
> c:\upload\
> "c:\upload"
> "c:\upload\"
> c:/upload
> c:/upload/
> "c:/upload"
> "c:/upload/"
> ../upload
> ..\upload
>
> what am I doing wrong?

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



[PHP] Re: php.ini uploads

2005-05-06 Thread Jon Aston
Yes I did restart apache after each setting change.


- Original Message - 
From: "Mehdi Achour" <[EMAIL PROTECTED]>
To: "Jon Aston" <[EMAIL PROTECTED]>
Cc: 
Sent: Friday, May 06, 2005 9:38 AM
Subject: Re: php.ini uploads


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 the folder.
>
> this is what I have tried
>
> c:\upload
> c:\upload\
> "c:\upload"
> "c:\upload\"
> c:/upload
> c:/upload/
> "c:/upload"
> "c:/upload/"
> ../upload
> ..\upload
>
> what am I doing wrong?

Did you stop/start Apache after changing your php.ini configuration ?

Mehdi

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



[PHP] Re: php.ini uploads

2005-05-06 Thread Mehdi Achour
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 the folder.
this is what I have tried
c:\upload
c:\upload\
"c:\upload"
"c:\upload\"
c:/upload
c:/upload/
"c:/upload"
"c:/upload/"
../upload
..\upload
what am I doing wrong?
Did you stop/start Apache after changing your php.ini configuration ?
Mehdi
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: php.ini file

2005-02-25 Thread Steve Buehler
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 talk to whomever has root access to 
your server.

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


[PHP] Re: PHP.ini setup, config, installation & recognition?

2005-01-22 Thread David Robley
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 /usr/local/etc/php.ini
> 70: - allow_call_time_pass_reference = 1 [Code cleanliness]
> 167:allow_call_time_pass_reference = 1
> 
> But the program still calls for the option to be enabled. So I have run a
> test file with the ini_get function, the code below. --code---
>  
>  
>   Test Page
>  
>  
> 
> 
> 
> end code-
> 
> Output page ==>  blank
> 
> /usr/local/etc/php.ini has permissions set to 444 and listed in
> phpinfo.php
> 
> Suggestions?

You don't say whether you restarted apache; this is required to read and
utilise the changes to php.ini.


-- 
David Robley

That does not compute.

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



[PHP] Re: php.ini

2004-12-13 Thread Jonathan
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 I modify the
> php.ini?
>
> Trav

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



Re: [PHP] Re: php.ini

2004-11-16 Thread Mailit, LLC
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 contains no data".
I repeated the test on another server running Linux, and I succeded in 
uploading a 6 MB file, by changing the value of upload_max_filesize.
My server must have some fundamental setting that overrides the php.ini 
settings. Can anyone clarify the matter?
Thanks. Mario.

Lester Caine wrote:
[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 detail into 
relocating it?

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


[PHP] Re: php.ini

2004-11-16 Thread Lester Caine
[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 detail into relocating it?

--
Lester Caine
-
L.S.Caine Electronic Services
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: [php.ini include [SOLVED]] Beginner Q How to load externally defined

2004-01-25 Thread Paul Furman
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


[PHP] Re: [php.ini include] Beginner Q How to load externally defined

2004-01-25 Thread Paul Furman
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 this standard.

PPS May I assume most people are on this list thru the news server and 
I'm not clogging your mailboxes? I'm trying not to babble too much, I 
didn't even mention the other errors I got till I research them.

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


[PHP] Re: php.ini sendmail settings (was "Re: [PHP] speed of mail() ... ")

2003-08-27 Thread David T-G
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 PROTECTED]

  ; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
  ;sendmail_path =

and get a little worried.  But in the phpinfo() output I have

  ...
  sendmail_from  [EMAIL PROTECTED] [EMAIL PROTECTED]
  sendmail_path  /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
  ...

(for both web and CLI) which, aside from the silly sendmail_from value,
looks right after all.

Do our admins have us set up to make an SMTP connection -- back to
ourselves, even -- for every mail?  If not, how on earth do we have a
value for sendmail_path (which, in fact, points to an existing link to
qmail's sendmail, just as it should).

If I DO need to fix it, what are the *correct* values for sendmail_from
and SMTP on this *NIX box; should I just comment them out?  And then I
imagine that apache needs a restart to see the new php.ini values, no?


Even more confused,
:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


[PHP] Re: php.ini question

2003-03-26 Thread Tim Burden
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 run on a server
where it is off. If not you should do it for yourself in .htaccess or with
ini_set(). Just be sure you are careful to initialize all internal variables
that don't come directly from user input.


- Original Message -
From: "Joe Kupiszewski" <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 26, 2003 12:56 PM
Subject: php.ini question


> I didn't do the installation, but the phpinfo() shows the following:
>
> version - 4.2.3
>
> ./configure' '--with-apxs=/usr/local/sbin/apxs'
> '--with-config-file-path=/usr/local/etc' '--enable-versioning'
> '--with-regex=system' '--without-gd' '--without-mysql' '--with-zlib'
> '--with-mysql=/usr/local' '--prefix=/usr/local' 'i386-portbld-freebsd4.7'
>
> and the php path info is listed as
> /usr/local/etc
>
> I do have root access as this is not a production machine, but for the
life
> of me cannot seem to get it to read the php.ini file.  I believe php and
> apache are interacting properly, or I wouldn't get the phpinfo() to work.
>
> The root of my real problem is that in trying to pass variable values from
> php scripts to reinvocations of the same script using
> http://pathtofile.php?action=3
>
> I realize that this is a register_globals thing and that I can access it
by
> one of two ways:
>
> 1)  Turning register_globals on (which many tell me is a security risk)
> 2)  Using $_REQUEST["action"]
> 3)  $HTTP_POST_VARS and $HTTP_GET_VARS -> with ["action"]
>
> However, using the second (haven't tried the 3rd) method and trying to
> incorporate this variable value into an sql statement it bombs.  This may
be
> more appropriate for an sql post, but thought I would throw it up here and
> see if anyone can shed some light as to how php is interpreting 2) and 3)
>
> One workaround I have started with was just assigning the
> $_REQUEST["action"] value to a new local variable and just using that, but
> it seems like there would be an easier way and that this method is just a
> lot of wasted work.
>
> Thanks for any thoughts and I am happy to post add'l script details.
>
> Joe...
>
>


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



[PHP] Re: php.ini question

2003-03-26 Thread Towel Boy
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 run on a server
where it is off. If not you should do it for yourself in .htaccess or with
ini_set(). Just be sure you are careful to initialize all internal variables
that don't come directly from user input.

"Joe Kupiszewski" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I didn't do the installation, but the phpinfo() shows the following:
>
> version - 4.2.3
>
> ./configure' '--with-apxs=/usr/local/sbin/apxs'
> '--with-config-file-path=/usr/local/etc' '--enable-versioning'
> '--with-regex=system' '--without-gd' '--without-mysql' '--with-zlib'
> '--with-mysql=/usr/local' '--prefix=/usr/local' 'i386-portbld-freebsd4.7'
>
> and the php path info is listed as
> /usr/local/etc
>
> I do have root access as this is not a production machine, but for the
life
> of me cannot seem to get it to read the php.ini file.  I believe php and
> apache are interacting properly, or I wouldn't get the phpinfo() to work.
>
> The root of my real problem is that in trying to pass variable values from
> php scripts to reinvocations of the same script using
> http://pathtofile.php?action=3
>
> I realize that this is a register_globals thing and that I can access it
by
> one of two ways:
>
> 1)  Turning register_globals on (which many tell me is a security risk)
> 2)  Using $_REQUEST["action"]
> 3)  $HTTP_POST_VARS and $HTTP_GET_VARS -> with ["action"]
>
> However, using the second (haven't tried the 3rd) method and trying to
> incorporate this variable value into an sql statement it bombs.  This may
be
> more appropriate for an sql post, but thought I would throw it up here and
> see if anyone can shed some light as to how php is interpreting 2) and 3)
>
> One workaround I have started with was just assigning the
> $_REQUEST["action"] value to a new local variable and just using that, but
> it seems like there would be an easier way and that this method is just a
> lot of wasted work.
>
> Thanks for any thoughts and I am happy to post add'l script details.
>
> Joe...
>
>



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



[PHP] Re: php.ini

2003-03-01 Thread Niels Andersen
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:
>
> extension=php_gd2.dll
>
> the page won't load and the server hangs up.
> ..
>
> \\ this is my php.ini file on MS Win 98/ PHP/ Apache
>
>
> ; Directory in which the loadable extensions (modules) reside.
> extension_dir = "C:\PHP\"
>
> ; Whether or not to enable the dl() function.  The dl() function does NOT
> work
> ; properly in multithreaded servers, such as IIS or Zeus, and is
> automatically
> ; disabled on them.
> enable_dl = On
>
> extension=php_gd2.dll
> ...
>
> Any advice on how I can install GD libraries greatly appreciated.
> Thank you.
> Tony Ritter
>
>
>
>
>



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



[PHP] Re: php.ini question.....

2003-02-18 Thread James Hatridge
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 username and password.
>
> First check that the user you're connecting as has permission to do
> UPDATEs as well as SELECTs.

At the command line I have no problem with Mysql...

JIM


-- 
Jim Hatridge
Linux User #88484
--
 BayerWulf
   Linux System # 129656
 The Recycled Beowulf Project
  Looking for throw-away or obsolete computers and parts
   to recycle into a Linux super computer


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




[PHP] Re: PHP.ini help on Linux

2003-02-02 Thread Michael Mauch
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 executable by the web server user, i.e. "nobody" or
"wwwrun" or the like. See "ps auxw|grep httpd" to find out how this
special user is named on your system. If your program is not owned by
the web server user, you can either use "chown" (as root) to change the
owner of the script, or "chmod" to make it "world"-executable.

Regards...
Michael

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




[PHP] Re: PHP.ini help on Linux

2003-02-01 Thread Nicole
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 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 be
using
> it.
>
> I'll go through the man pages again, too.
>
> The "find" and "locate" commands will be useful. I will try those. Thanks!
> Although since you mentioned the local configuration via apache's
.htaccess,
> maybe that is what I need. I still can't figure out how to turn safe mode
> off for the local column.
>
> Thanks,
>
> Nicole
>
> --
>
> "Michael Mauch" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Nicole <[EMAIL PROTECTED]> wrote:
> > > I am having trouble doing things with PHP such as use the exec,
system,
> > > etc. functions. I can't seem to find the correct php.ini to turn
> safe_mode
> > > off. The one file I did find has safe_mode turned off. When I view
> phpinfo()
> > > it shows the global column with safe_mode off, but for the local
column,
> it
> > > is on. Is there a local php.ini file for each site?
> >
> > No. But the values found in the global php.ini can be changed in
> > Apache's httpd.conf and in .htaccess files. See
> > .
> >
> > You can have a .htaccess file in every directory to pass additional
> > options to Apache (and mod_php). A .htaccess is used for the directory
> > where it resides and for all subdirectories.
> >
> > Try "locate .htaccess" or "find / -name .htaccess".
> >
> > > I need to call a script to run in the background and I want to be able
> to
> > > use exec() to call it. Is there an alternative way to do this without
> > > bothering with the safe_mode value? i'd prefer to leave safe_mode on;
> but at
> > > the same rate, I am the only one with access to the server as it is my
> > > dedicated server.
> >
> > If you're the only person on that machine, there's no point in using
> > safe mode.
> >
> > > I am not familiar enough with Linux just yet to know how to give
> permissions
> > > to my sites to use things such as cron which I desperately need to
> figure
> > > out. I know how to add a crontab for a user, etc.  But when the cron
> file
> > > runs, I just get a permission denied. I have tried it for both root
and
> the
> > > site user. The only thing that does work is me getting an email
stating
> > > permission denied. So I know my crontab file is correct. As far as
> > > permissions, I'm in a cloud. I have no idea what to do to make it work
> and
> > > maintain a secure system.
> >
> > Perhaps you just forgot to make your program/script executable ("chmod
> > +x your_script").
> >
> > > Anyone know where some great (free) docs that will show me how to fish
> > > around in Linux? I don't need to be hand fed. Just some direction.
> Thanks!
> >
> > Almost all programs have man pages, so you can use "man chmod" to find
> > out about "chmod". And then there's the Linux Documentation Project
> > , which has lots of howtos.
> >
> > Regards...
> > Michael
>
>



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




[PHP] Re: PHP.ini help on Linux

2003-02-01 Thread Nicole
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 be using
it.

I'll go through the man pages again, too.

The "find" and "locate" commands will be useful. I will try those. Thanks!
Although since you mentioned the local configuration via apache's .htaccess,
maybe that is what I need. I still can't figure out how to turn safe mode
off for the local column.

Thanks,

Nicole

--

"Michael Mauch" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Nicole <[EMAIL PROTECTED]> wrote:
> > I am having trouble doing things with PHP such as use the exec, system,
> > etc. functions. I can't seem to find the correct php.ini to turn
safe_mode
> > off. The one file I did find has safe_mode turned off. When I view
phpinfo()
> > it shows the global column with safe_mode off, but for the local column,
it
> > is on. Is there a local php.ini file for each site?
>
> No. But the values found in the global php.ini can be changed in
> Apache's httpd.conf and in .htaccess files. See
> .
>
> You can have a .htaccess file in every directory to pass additional
> options to Apache (and mod_php). A .htaccess is used for the directory
> where it resides and for all subdirectories.
>
> Try "locate .htaccess" or "find / -name .htaccess".
>
> > I need to call a script to run in the background and I want to be able
to
> > use exec() to call it. Is there an alternative way to do this without
> > bothering with the safe_mode value? i'd prefer to leave safe_mode on;
but at
> > the same rate, I am the only one with access to the server as it is my
> > dedicated server.
>
> If you're the only person on that machine, there's no point in using
> safe mode.
>
> > I am not familiar enough with Linux just yet to know how to give
permissions
> > to my sites to use things such as cron which I desperately need to
figure
> > out. I know how to add a crontab for a user, etc.  But when the cron
file
> > runs, I just get a permission denied. I have tried it for both root and
the
> > site user. The only thing that does work is me getting an email stating
> > permission denied. So I know my crontab file is correct. As far as
> > permissions, I'm in a cloud. I have no idea what to do to make it work
and
> > maintain a secure system.
>
> Perhaps you just forgot to make your program/script executable ("chmod
> +x your_script").
>
> > Anyone know where some great (free) docs that will show me how to fish
> > around in Linux? I don't need to be hand fed. Just some direction.
Thanks!
>
> Almost all programs have man pages, so you can use "man chmod" to find
> out about "chmod". And then there's the Linux Documentation Project
> , which has lots of howtos.
>
> Regards...
> Michael



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




[PHP] Re: PHP.ini help on Linux

2003-02-01 Thread Michael Mauch
Nicole <[EMAIL PROTECTED]> wrote:
> I am having trouble doing things with PHP such as use the exec, system,
> etc. functions. I can't seem to find the correct php.ini to turn safe_mode
> off. The one file I did find has safe_mode turned off. When I view phpinfo()
> it shows the global column with safe_mode off, but for the local column, it
> is on. Is there a local php.ini file for each site?

No. But the values found in the global php.ini can be changed in
Apache's httpd.conf and in .htaccess files. See
. 

You can have a .htaccess file in every directory to pass additional
options to Apache (and mod_php). A .htaccess is used for the directory
where it resides and for all subdirectories.

Try "locate .htaccess" or "find / -name .htaccess".

> I need to call a script to run in the background and I want to be able to
> use exec() to call it. Is there an alternative way to do this without
> bothering with the safe_mode value? i'd prefer to leave safe_mode on; but at
> the same rate, I am the only one with access to the server as it is my
> dedicated server.

If you're the only person on that machine, there's no point in using
safe mode.

> I am not familiar enough with Linux just yet to know how to give permissions
> to my sites to use things such as cron which I desperately need to figure
> out. I know how to add a crontab for a user, etc.  But when the cron file
> runs, I just get a permission denied. I have tried it for both root and the
> site user. The only thing that does work is me getting an email stating
> permission denied. So I know my crontab file is correct. As far as
> permissions, I'm in a cloud. I have no idea what to do to make it work and
> maintain a secure system.

Perhaps you just forgot to make your program/script executable ("chmod
+x your_script").
 
> Anyone know where some great (free) docs that will show me how to fish
> around in Linux? I don't need to be hand fed. Just some direction. Thanks!

Almost all programs have man pages, so you can use "man chmod" to find
out about "chmod". And then there's the Linux Documentation Project
, which has lots of howtos.

Regards...
Michael

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




[PHP] Re: php.ini - changes aren't taking?

2003-01-07 Thread Scott Fletcher
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 to
c:\winnt\ directory and jumped from c: drive to d: drive and use the backup
php.ini.  I fixed the problem by renaming hte file, from php.ini to
php.ini_safe.  This then cause the IIS to revert back to the php.ini in
c:\winnt.

Hope this knowledge will help everyone one day.  The weird thing is that
when I use phpinfo().  It didnt show any file path.  It just said the
filepath is 'php.ini', no 'c:\winnt\php.ini' at all.  It just said 'php.ini'
before I renamed the file.  After renaming the file, it still say 'php.ini'
as if nothing had changed.

Take care,
 Scott

P.S. Rad Craig, try to find it there is duplicate php.ini somewhere and
renamed it to something like 'php.ini_safe'.

"Rad Craig" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have been trying to get my email working.  I have made some changes in
the
> php.ini file in the Windoze directory, but when I run phpinfo() the
changes
> I make aren't changing on what it prints out.
>
> I have logging turned on in my php.ini file, but phpinfo() says it's
turned
> off.
>
> Any ideas?
> 
> Rad Craig
>
>



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




[PHP] Re: php.ini - changes aren't taking?

2003-01-06 Thread Scott Fletcher
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 itself.

Thanks,
 Scott F.
"Rad Craig" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have been trying to get my email working.  I have made some changes in
the
> php.ini file in the Windoze directory, but when I run phpinfo() the
changes
> I make aren't changing on what it prints out.
>
> I have logging turned on in my php.ini file, but phpinfo() says it's
turned
> off.
>
> Any ideas?
> 
> Rad Craig
>
>



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




[PHP] Re: php.ini - changes aren't taking?

2003-01-06 Thread Scott Fletcher
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
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have been trying to get my email working.  I have made some changes in
the
> php.ini file in the Windoze directory, but when I run phpinfo() the
changes
> I make aren't changing on what it prints out.
>
> I have logging turned on in my php.ini file, but phpinfo() says it's
turned
> off.
>
> Any ideas?
> 
> Rad Craig
>
>



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




[PHP] Re: php.ini ignored! Re: [PHP] PHP 4.3.0 released

2002-12-29 Thread Michael Mauch
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
> pxs2=/usr/local/apache2/bin/apxs --with-mysql   (got no errors)

Does it help if you use --with-config-file-path=/usr/local/apache2/conf
instead?

Regards...
Michael

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




[PHP] Re: php.ini

2002-12-10 Thread hacook
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 wanted to set register_globals on (for example), how would i put
> this in the php.ini file?
>
> or if i wanted to enable support for curl (for example) how would i do
> this?
>
>
> thanks,
>
> gregory



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




[PHP] Re: php.ini problem

2002-07-18 Thread Sameh Attia

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, 
> display_errors=Off, etc.).
> I had PHP 4.1.1 running here before, and it used to work, PHP 4.2.1 has been 
> built with exactly the same options that I used to build PHP 4.1.1.
> What could have I missed?
> 

I have a problem similar to urs but with engine only. I used to set 
engine=off in php.ini and in httpd.conf as per vhost I add the following 
php_flag engine on. Since I upgraded to Apache 2.0.36 and php 4.2.1 it 
breaks the apache and complains that there is type mistake. I changed it 
from php_flag to php_value but no help at all.
My workaround was to comment the lines in conf.d/php.conf that handle the 
php files through the php module and to add them per vhost and it 
worked. Also I tested the old AddType and it is working too.
Regards

-- 
Sameh Attia
Senior System Engineer
T.E. Data
--
__  __  _
_ _/ /_/ /_(_)___ _
   / ___/ __ `/ __/ __/ / __ `/
  (__  ) /_/ / /_/ /_/ / /_/ /
//\__,_/\__/\__/_/\__,_/


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




[PHP] Re: php.ini question

2002-06-03 Thread Andy

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 PROTECTED]">news:[EMAIL PROTECTED]...
When setting doc_root in the php.ini section, should that be the cgi-bin
directory, or the doc-root of the webserver, i.e. htdocs..?
Thanks,
Taylor

Taylor Lewick
Unix System Administrator
Fortis Benefits
816 881 6073

"Help Wanted.  Seeking Telepath..."
"You Know where to apply."


Please Note
The information in this E-mail message is legally privileged
and confidential information intended only for the use of the
individual(s) named above. If you, the reader of this message,
are not the intended recipient, you are hereby notified that
you should not further disseminate, distribute, or forward this
E-mail message. If you have received this E-mail in error,
please notify the sender. Thank you
*



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




[PHP] Re: Php.ini

2002-03-31 Thread jtjohnston

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 in each virtual host?
> That way allowing each website to run a different configuration.
>
> Cause I have a website that I want to use
> Session_set_save_handler = user but I want another website to use the
> default php
> Files handle.
>
> Also for things like session auto start ect
>
> Just a thought that it would make it easier.
>
> Thanks in advance.
>
> ---
> Chris Kay, Eleet Internet Services
> [EMAIL PROTECTED]
> ---

--
John Taylor-Johnston
-

  ' ' '   Collège de Sherbrooke:
 ô¿ô   http://www.collegesherbrooke.qc.ca/languesmodernes/
   - Université de Sherbrooke:
  http://compcanlit.ca/
  819-569-2064



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




[PHP] Re: Php.ini

2002-03-30 Thread Jason Sheets

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
01c1d83c$9c334e50$8b6712cb@iceberg">news:01c1d83c$9c334e50$8b6712cb@iceberg...
>
> Question I have is,
>
> Is it possible to specify a php.ini in each virtual host?
> That way allowing each website to run a different configuration.
>
> Cause I have a website that I want to use
> Session_set_save_handler = user but I want another website to use the
> default php
> Files handle.
>
> Also for things like session auto start ect
>
> Just a thought that it would make it easier.
>
> Thanks in advance.
>
> ---
> Chris Kay, Eleet Internet Services
> [EMAIL PROTECTED]
> ---
>



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




[PHP] Re: php.ini

2001-12-16 Thread jtjohnston

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
> being served or can it be located on another volume?
> Thanks,
> JJ


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: php.ini executable

2001-10-28 Thread _lallous

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 php.ini? ... just
> asking, before I find myself doing it myself.
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Re: php.ini not being read

2001-09-07 Thread Rasmus Lerdorf

> 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 ideas?
>
> My first question really is if the php install doesn't find the php.ini does
> it use built in defaults?  That would help explain why my changes aren't
> active.
>
> I asked this because I noticed when I made changes to the session
> configuration they were never realised in the pages I am running.

Yes, the built-in default will be used if you have no php.ini file.  Or if
PHP can't find it.  The phpinfo() page will tell you where it is looking
for it to be.

-Rasmus


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Re: php.ini not being read

2001-09-07 Thread Brett

>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 running.  Quite disconcerting.


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 ideas?

My first question really is if the php install doesn't find the php.ini does
it use built in defaults?  That would help explain why my changes aren't
active.

I asked this because I noticed when I made changes to the session
configuration they were never realised in the pages I am running.

brett



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: php.ini not being read

2001-09-06 Thread Richard Lynch

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 [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Brett <[EMAIL PROTECTED]>
Newsgroups: php.general
To: Php-General@Lists. Php. Net <[EMAIL PROTECTED]>
Sent: Sunday, August 12, 2001 2:47 AM
Subject: php.ini not being read


> Changes made to my php.ini file are not showing up upon a restart of
apache.
> I compiled php to use the php.ini in a directory of my choosing and this
is
> the directory which phpinfo() reports the php.ini file to be found.  Yet
all
> changes are ignored.
>
> Any ideas why?
>
>
>brett newman
>[EMAIL PROTECTED]
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]