Sorry..try this one...phpinfo and PHP predefined constants do NOT match!



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


.



Relevant Pages

  • Re: moving pictures
    ... you seem to be doing everything with system calls instead of PHP ... So you can use some system call to move an entire folder, ... See the documentation for readdir. ... Prev by Date: ...
    (comp.lang.php)
  • Virtual Folders
    ... I know there is a way to make a php script act like a folder, ... Prev by Date: ...
    (alt.php)
  • Re: Upgraded to PHP5 ... passing variables not working
    ... >In PHP 4 index.php had the line ... ... >Which was fine but doesn't work in PHP5. ... $_GET['folder'], not $folder ... Prev by Date: ...
    (comp.lang.php)
  • Re: Virtual Folders
    ... > I know there is a way to make a php script act like a folder, ... > it like wikipedia does it, omitting the .php in the script name so it ends ... Prev by Date: ...
    (alt.php)
  • Re: Dealing with PHP Files
    ... Dudley Henriques wrote: ... You can save any web page in Firefox, Command + S. If a web page has a .php ending this just means that the document that was loaded to the server had php code in it that he wanted parsed. ... The .php ending lets the server know to parse the php code in it There are other ways too). ... make a folder and put in the .php file and the folder with the images and maybe other things that FF made. ...
    (comp.sys.mac.apps)