View previous topic :: View next topic |
Author |
Message |
J. Baker -
Joined: 10 Jul 2004 Posts: 2
|
Posted: Sat Jul 10, 2004 8:06 am Post subject: php help |
|
|
Ok, why does this work?
Code: | <?php phpinfo(); ?> |
But this gives me the following error?
Code: | <?php
$name = Kirupa;
print($name);
?> |
Error:
Notice: Use of undefined constant Kirupa - assumed 'Kirupa' in C:\Program Files\Abyss Web Server\htdocs\test\test.php on line 2
Kirupa
Thanks |
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Sat Jul 10, 2004 9:07 am Post subject: |
|
|
thats not a error , its a Notice , go to your php.ini usually in
C:\Windows and change error_reporting = E_ALL; to this.
error_reporting = E_ALL & ~E_NOTICE; |
|
Back to top |
|
|
MUGH8506 -
Joined: 14 Jun 2004 Posts: 72 Location: Hell
|
|
Back to top |
|
|
J. Baker -
Joined: 10 Jul 2004 Posts: 2
|
Posted: Sun Jul 11, 2004 5:33 am Post subject: |
|
|
Thanks alot! :) |
|
Back to top |
|
|
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Sun Jul 11, 2004 5:52 am Post subject: |
|
|
No problem ! Glad I can Help :) |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun Jul 11, 2004 7:35 pm Post subject: Re: php help |
|
|
The notice suggested that your code is not "100% correct." The problem comes from the line:
Kirupa is a string of characters so it is recommended (and sometimes mandatory) to enclose it between two " symbols:
_________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Sun Jul 11, 2004 7:38 pm Post subject: Re: php help |
|
|
The notice suggested that your code is not "100% correct." The problem comes from the line:
Kirupa is a string of characters so it is recommended (and sometimes mandatory) to enclose it between two " symbols:
_________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
|