Problem!

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
snabela
-


Joined: 02 Apr 2004
Posts: 2

PostPosted: Fri Apr 02, 2004 8:18 pm    Post subject: Problem! Reply with quote

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 View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Fri Apr 02, 2004 8:45 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Fri Apr 02, 2004 9:10 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
snabela
-


Joined: 02 Apr 2004
Posts: 2

PostPosted: Tue Apr 06, 2004 12:09 pm    Post subject: Reply with quote

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 View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Wed Apr 07, 2004 1:33 am    Post subject: Reply with quote

Yes, remove the ";" marks.
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
ntloc
-


Joined: 26 Feb 2004
Posts: 35
Location: UT

PostPosted: Thu Apr 08, 2004 3:33 pm    Post subject: problem Reply with quote

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 View user's profile Send private message Visit poster's website
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Thu Apr 08, 2004 11:27 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group