You are here: Sorry..try this one...phpinfo and PHP predefined constants do NOT match! « PHP Programming Language « IT news, forums, messages
Sorry..try this one...phpinfo and PHP predefined constants do NOT match!

Posted by lwoods on 10/14/37 11:25

Sorry for previous email...hit the wrong key!

Original Email:

I ran the following code:
<?php
$a=get_defined_constants();
foreach($a as $key=>$value){
echo "$key = $value<br/>";
}
?>

and got the following as part of my output:
......
PHP_EXTENSION_DIR = C:\php5
PHP_PREFIX = C:\php5
PHP_BINDIR = C:\php5
PHP_LIBDIR = C:\php5
PHP_DATADIR = C:\php5
PHP_SYSCONFDIR = C:\php5
PHP_LOCALSTATEDIR = C:\php5

But I don't HAVE a "C:\php5" folder. I have everything in a folder called
"C:\PHP"...and when I run phpinfo() it lists the "C:\PHP\..." folder names
for 'includes', 'extensions', etc.

This tells me that you can't depend on the predefined constants.

????????????????

Larry Woods

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация