At 10:57 AM -0700 2/5/01, Karl J. Stubsjoen wrote:
>If you don't prefix a global variable with $ then how can you interpit a
>global variable within a string?  AS IN:
>
>define ("MY_PATH", "/home/me/");
>
>print("This is My Path:  MY_PATH or is it?");
>

This wouldn't be a global variable; rather, it's a constant. And, 
you'd reference it like

        print("This is My Path:  ".MY_PATH." or is it?");


See
        http://www.php.net/manual/en/function.define.php
and
        http://www.php.net/manual/en/language.variables.php

-steve

-- 
+--- "They've got a cherry pie there, that'll kill ya" ------------------+
| Steve Edberg                           University of California, Davis |
| [EMAIL PROTECTED]                               Computer Consultant |
| http://aesric.ucdavis.edu/                  http://pgfsun.ucdavis.edu/ |
+-------------------------------------- FBI Special Agent Dale Cooper ---+

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

Reply via email to