php-windows Digest 11 Jan 2007 05:53:34 -0000 Issue 3108

Topics (messages 27363 through 27367):

zip codes
        27363 by: alex at gmx

Re: php installed on IIS: changes to php.ini not taking affect
        27364 by: tg-php.gryffyndevelopment.com
        27365 by: Kevin Ruiz
        27366 by: tg-php.gryffyndevelopment.com

Re: echo vs print plus print problem
        27367 by: bedul

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
hi everybody,

sorry to border u with this, but i have a problem to get things done.

i need an US data base

which contains following information like:



zip_code (5), zip_code (+4), city, state, county AND district name.


30305, 1234, altange, georgia, whatever, buckhead
...
..


if someone got such a db and "want" to share it *begging*

or know such software with an full cvs / db export function.

please shoot me an email - i go crazy

regards

alex

--- End Message ---
--- Begin Message ---
I had a similar issue a couple years ago when I was running Apache/PHP on a 
Windows box at a previous job.  The information below helped.  Check all the 
locations (regardless of what PHP is reporting it's using for php.ini's path).  
Try making some simple change that will show up on phpinfo().  You should find 
it eventually.

Good luck!

-TG

http://www.php.net/manual/en/install.windows.php

"php.ini is searched in these locations (in order):

* SAPI module specific location (PHPIniDir directive in Apache 2, -c command 
line option in CGI and CLI, php_ini parameter in NSAPI, PHP_INI_PATH 
environment variable in THTTPD)
* The PHPRC environment variable. Before PHP 5.2.0 this was checked after the 
registry key mentioned below.
* HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath (Windows Registry location)
* Current working directory (for CLI)
* The web server's directory (for SAPI modules), or directory of PHP (otherwise 
in Windows)
* Windows directory (C:\windows or C:\winnt) (for Windows), or 
--with-config-file-path compile time option"

= = = Original message = = =

I have php 5.2 up and running on IIS 5.1.

phpinfo tells me php is looking for my ini file in C:\Windows...I place 
the file there, edit it, restart the server but I don't see the changes 
I've made.

I've been dealing with this for a day and can't seem to find any 
information as to what's causing this problem.

I've tried adding C:\PHP to my system path where C:\PHP is where php 
lives. I also have PHPRC pointing ot C:\PHP...not sure if either of 
those would have anything to do with my problem.


Does anyone have any ideas?


___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

--- End Message ---
--- Begin Message --- okay...turns out there was something strange going on with my ini file. I copied its contents into a new file, saved that as "php.ini"...now whenever I drop that in either C:\Windows or C:\PHP php will not execute. If I move the file out of either of those two directories, it executes fine.

Does this make any sense?


[EMAIL PROTECTED] wrote:
I had a similar issue a couple years ago when I was running Apache/PHP on a 
Windows box at a previous job.  The information below helped.  Check all the 
locations (regardless of what PHP is reporting it's using for php.ini's path).  
Try making some simple change that will show up on phpinfo().  You should find 
it eventually.

Good luck!

-TG

http://www.php.net/manual/en/install.windows.php

"php.ini is searched in these locations (in order):

* SAPI module specific location (PHPIniDir directive in Apache 2, -c command 
line option in CGI and CLI, php_ini parameter in NSAPI, PHP_INI_PATH 
environment variable in THTTPD)
* The PHPRC environment variable. Before PHP 5.2.0 this was checked after the 
registry key mentioned below.
* HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath (Windows Registry location)
* Current working directory (for CLI)
* The web server's directory (for SAPI modules), or directory of PHP (otherwise 
in Windows)
* Windows directory (C:\windows or C:\winnt) (for Windows), or 
--with-config-file-path compile time option"

= = = Original message = = =

I have php 5.2 up and running on IIS 5.1.

phpinfo tells me php is looking for my ini file in C:\Windows...I place the file there, edit it, restart the server but I don't see the changes I've made.

I've been dealing with this for a day and can't seem to find any information as to what's causing this problem.

I've tried adding C:\PHP to my system path where C:\PHP is where php lives. I also have PHPRC pointing ot C:\PHP...not sure if either of those would have anything to do with my problem.


Does anyone have any ideas?


___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

--- End Message ---
--- Begin Message ---
Could be a permissions issue with reading the new php.ini file you created.

On this page, it tells you how to figure out what user your IIS is executing as:
http://www.php.net/manual/en/install.windows.iis.php

"
1. In IIS Admin, go to Application Pools
2. Right click on the pool your site is running under and click properties. 
3. Go to the Identity tab and see what user is selected. 
4. Give that user permissions to your php files/directory.
"

If all else fails and you want to see if it's a permissions thing, set 
permissions to "Everyone - Full Control" on your php.ini file.  Bad security, 
but it should tell you if it's a permissions issue or not.


-TG

= = = Original message = = =

okay...turns out there was something strange going on with my ini file. 
I copied its contents into a new file, saved that as "php.ini"...now 
whenever I drop that in either C:\Windows or C:\PHP php will not 
execute. If I move the file out of either of those two directories, it 
executes fine.

Does this make any sense?


[EMAIL PROTECTED] wrote:
> I had a similar issue a couple years ago when I was running Apache/PHP on a 
> Windows box at a previous job.  The information below helped.  Check all the 
> locations (regardless of what PHP is reporting it's using for php.ini's 
> path).  Try making some simple change that will show up on phpinfo().  You 
> should find it eventually.
> 
> Good luck!
> 
> -TG
> 
> http://www.php.net/manual/en/install.windows.php
> 
> "php.ini is searched in these locations (in order):
> 
> * SAPI module specific location (PHPIniDir directive in Apache 2, -c command 
> line option in CGI and CLI, php_ini parameter in NSAPI, PHP_INI_PATH 
> environment variable in THTTPD)
> * The PHPRC environment variable. Before PHP 5.2.0 this was checked after the 
> registry key mentioned below.
> * HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath (Windows Registry location)
> * Current working directory (for CLI)
> * The web server's directory (for SAPI modules), or directory of PHP 
> (otherwise in Windows)
> * Windows directory (C:\windows or C:\winnt) (for Windows), or 
> --with-config-file-path compile time option"
> 
> = = = Original message = = =
> 
> I have php 5.2 up and running on IIS 5.1.
> 
> phpinfo tells me php is looking for my ini file in C:\Windows...I place 
> the file there, edit it, restart the server but I don't see the changes 
> I've made.
> 
> I've been dealing with this for a day and can't seem to find any 
> information as to what's causing this problem.
> 
> I've tried adding C:\PHP to my system path where C:\PHP is where php 
> lives. I also have PHPRC pointing ot C:\PHP...not sure if either of 
> those would have anything to do with my problem.
> 
> 
> Does anyone have any ideas?


___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.

--- End Message ---
--- Begin Message ---
----- Original Message ----- 
From: "gunawan" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, January 11, 2007 12:52 PM
Subject: echo vs print plus print problem


> 1.
> what be better?
> "print" or "echo" or "printf"
> for show a result and for debugging?
> 
> 2.
> i read one of skrip were using soo many print..
> but in the 10th print.. it got stuck and don't print??
> to handle i use $txt to inset my write. Then print $txt
> my question was.. is there anyone have some problem like me??
> 

--- End Message ---

Reply via email to