[PHP] How to set find pathes for PHP CLI?

2009-07-14 Thread Tir
I have many scripts that I need execute with PHP CLI. They are located in a 
few directories. I don't want to write full path to script every time when I 
start it. Therefore I've added this paths to the PATH environment variable. 
But PHP don't find my scripts. How could i set paths on which PHP would find 
my script when i call e.g. php -f my_script.php? 



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



Re: [PHP] How to set find pathes for PHP CLI?

2009-07-14 Thread Tir
Linux (RHEL). PHP 5.2. 



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



Re: [PHP] PHP doesn't see php.ini

2009-06-27 Thread Tir
Problem is solved. I should have added path to PHP root directory to PATH 
environment variable. 



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



[PHP] PHP doesn't use php.ini

2009-06-25 Thread Tir
When i installed PHP, I had written to my httpd.conf PHPIniDir c:/php. But 
phpinfo() returns C:\WINDOWS in Configuration File (php.ini) Path row 
and right path to my php.ini in Loaded Configuration File. It looks like 
php.ini really isn't used. I think so because when i try to enable MySQL it 
doesn't work (extension=php_mysql.dll, extension=php_mysqli.dll and 
extension=php_pdo_mysql.dll is uncommented, extension_dir is correct, 
libmysql.dll is copied to C:\WINDOWS\system32). I've tried to write to 
php.ini an abracadabra. But I havent received an error as i expected. I've 
tried to rename php.ini. phpinfo() has returned (none) in Loaded 
Configuration File row instead of c:\php\php.ini as that was before. But 
PHP still worked. It worked without php.ini. It seems very strange. I've 
searched another php.ini on my system. There is no another one. What's 
wrong? Why doesn't PHP use php.ini file? 



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



[PHP] PHP doesn't see php.ini

2009-06-25 Thread Tir
When i installed PHP, I had written to my httpd.conf PHPIniDir c:/php. But 
phpinfo() returns C:\WINDOWS in Configuration File (php.ini) Path row 
and right path to my php.ini in Loaded Configuration File. It looks like 
php.ini really isn't used. I think so because when i try to enable MySQL 
extension it doesn't work (extension=php_mysql.dll, 
extension=php_mysqli.dll and extension=php_pdo_mysql.dll is uncommented, 
extension_dir is correct, libmysql.dll is copied to C:\WINDOWS\system32). 
I've tried to write to php.ini an abracadabra. But I haven't received an 
error as i expected. I've tried to rename php.ini. phpinfo() has returned 
(none) in Loaded Configuration File row instead of c:\php\php.ini as 
that was before. But PHP still worked. It worked without php.ini. It seems 
very strange. I've searched another php.ini on my system. There is no 
another one. What's wrong? Why doesn't PHP use php.ini file? 



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



[PHP] Re: PHP doesn't use php.ini

2009-06-25 Thread Tir
Sorry for double posting 



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



Re: [PHP] PHP doesn't see php.ini

2009-06-25 Thread Tir
No, i haven't used an installer when i installed PHP. And no, I haven't 
another version of PHP on my computer.

Bastien Koert phps...@gmail.com ???/ ?  ?: 
news:d7b6cab70906250611l538e38ecr3849c5d4b6ab2...@mail.gmail.com...
 On Wed, Jun 24, 2009 at 8:32 AM, Tirtirsa...@yandex.ru wrote:


 Did you use an installer or have another version of php installed at
 some point?
 -- 

 Bastien

 Cat, the other other white meat 



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



Re: [PHP] PHP doesn't see php.ini

2009-06-25 Thread Tir
 Presume you did restart apache after making the change?
Of course

 Is there anything in your phpinfo output that relates to your php.ini?
I think there must be a mention of MySQL because i've enabled it. But it 
isn't there.

 Maybe some error near the beginning of php.ini causes php to stop loading 
 the ini file?
I use a copy of php.ini-recommended from PHP distributive. I don't think 
that there could be errors. I've only uncommented few strings to enable 
MySQL extensions, set display_errors on and changed extension_dir.

 Check that the extension_dir in phpinfo agrees with the extension_dir 
 in your php.ini.
It agrees.

 Maybe try enabling error logging in the php.ini and check the log file - I 
 use apache\logs\phperror.log and invalid extension loading is definitely 
 reported there (I've had this problem before).
That's it, i think. I've enabled display_startup_errors and now on start 
apache i receive errors. PHP can't find libraries of MySQL extensions. But 
this libraries exactly exist in folder that indicated in error messages. 
What that could be? 



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