View previous topic :: View next topic |
Author |
Message |
snabela -
Joined: 02 Apr 2004 Posts: 2
|
Posted: Fri Apr 02, 2004 8:18 pm Post subject: Problem! |
|
|
I have tryied to set up PHP for the it but I get this error:
Quote: | Notice: Undefined variable: content in C:\Documents and Settings\Thomas\Skrivebord\GMS4\htdocs\index.php on line 142 |
and all I have in line 142 is:
Quote: | <td width="60%" valign="top"><?php include "$content.php";></td> |
Also I cant jump between the sites. Can you tell me why? |
|
Back to top |
|
 |
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Fri Apr 02, 2004 8:45 pm Post subject: |
|
|
snabela, welcome to the forums. :D
You need to into your php.ini file and look for Error handling and logging.
Uncomment the line that says error_reporting = E_ALL & ~E_NOTICE.
For more info, search this forum for "e_notice".
As for your last question, can you tell us in more detail what is wrong?? |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Fri Apr 02, 2004 9:10 pm Post subject: |
|
|
Try Registering the global variable in your php.ini
by having Register Globals = On or try this , 8)
<?php include "content.php"; ?> |
|
Back to top |
|
 |
snabela -
Joined: 02 Apr 2004 Posts: 2
|
Posted: Tue Apr 06, 2004 12:09 pm Post subject: |
|
|
Quote: | snabela, welcome to the forums. |
Thank you very much :)
Quote: | Uncomment the line that says error_reporting = E_ALL & ~E_NOTICE. |
I am not sure what you mean with uncomment? Do you mean removing the ;?
Quote: | As for your last question, can you tell us in more detail what is wrong?? |
Yes of course. When I visit the site it shows the main site. When I use the menu to get around at the site it doesnt work. All the time I am going to the mainsite instead of the site of the link. Do you know why? |
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Wed Apr 07, 2004 1:33 am Post subject: |
|
|
Yes, remove the ";" marks. _________________ Bienvenidos! |
|
Back to top |
 |
 |
ntloc -
Joined: 26 Feb 2004 Posts: 35 Location: UT
|
Posted: Thu Apr 08, 2004 3:33 pm Post subject: problem |
|
|
Well, I got a better solution for you. YOu don't need to edit any file or put any code to make that go away (that's just hidding it, not fixing it). Go to this site and look under the PHP Setup section and reinstall your php follow the instruction then you wont have any problem anymore.
good luck |
|
Back to top |
|
 |
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Thu Apr 08, 2004 11:27 pm Post subject: |
|
|
Here's a few facts that everyone should know:
- Notices are not errors.
- Notices warn about potential problems with your code.
- Notices can interfere with some PHP techniques.
Uncommenting the line mentioned above will still report all errors, except e_notices.
Your script should still work. |
|
Back to top |
|
 |
|