| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| djx -
 
 
 Joined: 06 Mar 2004
 Posts: 51
 
 
 | 
			
				|  Posted: Sun Mar 07, 2004 11:30 am    Post subject: PHP Nuke! |   |  
				| 
 |  
				| Hi! 
 Before i have had my own server sofware (this) i have always ran php nuke!
 
 I have sucessfully installed php and my sql on my server and ran the php nuke create tables file but when you go to the index page its a big mess with hundreds of lnes like:
 
 Notice: Undefined variable: HTTP_USER_AGENT in C:\Program Files\Abyss Web Server\htdocs\mainfile.php on line 16
 
 Notice: import_request_variables(): No prefix specified - possible security hazard in C:\Program Files\Abyss Web Server\htdocs\mainfile.php on line 39
 
 Notice: Undefined variable: forum_admin in C:\Program Files\Abyss Web Server\htdocs\mainfile.php on line 67
 
 Notice: Undefined variable: inside_mod in C:\Program Files\Abyss Web Server\htdocs\mainfile.php on line 70
 
 Notice: Undefined variable: inside_mod in C:\Program Files\Abyss Web Server\htdocs\db\db.php on line 44
 
 Notice: Use of undefined constant sitename - assumed 'sitename' in C:\Program Files\Abyss Web Server\htdocs\mainfile.php on line 86
 
 Notice: Use of undefined constant nukeurl - assumed 'nukeurl' in C:\Program Files\Abyss Web Server\htdocs\mainfile.php on line 87
 
 Notice: Use of undefined constant site_logo - assumed 'site_logo' in C:\Program Files\Abyss Web Server\htdocs\mainfile.php on line 88
 
 Notice: Use of undefined constant slogan - assumed 'slogan' in C:\Program Files\Abyss Web Server\htdocs\mainfile.php on line 89
 
 And loadz more
 
 Any idea's???
 
 Darren
 _________________
 Thanks,
 |  | 
	
		| Back to top |     | 
	
		|  | 
	
		| aprelium -
 
 
 Joined: 22 Mar 2002
 Posts: 6800
 
 
 | 
			
				|  Posted: Sun Mar 07, 2004 8:02 pm    Post subject: Re: PHP Nuke! |   |  
				| 
 |  
				| djx, 
 The default configuration of PHP has notices displaying enabled. To disable it, edit php.ini, locate the line that begins with error_reporting and replcae it with:
 
 
  	  | Code: |  	  | error_reporting  = E_ALL & ~E_NOTICE
 
 | 
 _________________
 Support Team
 Aprelium - http://www.aprelium.com
 |  | 
	
		| Back to top |       | 
	
		|  | 
	
		| djx -
 
 
 Joined: 06 Mar 2004
 Posts: 51
 
 
 | 
			
				|  Posted: Sun Mar 07, 2004 9:54 pm    Post subject: where |   |  
				| 
 |  
				| whers that file? _________________
 Thanks,
 |  | 
	
		| Back to top |     | 
	
		|  | 
	
		| olly86 -
 
 
 Joined: 25 Apr 2003
 Posts: 993
 Location: Wiltshire, UK
 
 | 
			
				|  Posted: Sun Mar 07, 2004 11:33 pm    Post subject: |   |  
				| 
 |  
				| in your Windows folder, do a windows search to find it! _________________
 Olly
 |  | 
	
		| Back to top |     | 
	
		|  | 
	
		| djx -
 
 
 Joined: 06 Mar 2004
 Posts: 51
 
 
 | 
			
				|  Posted: Mon Mar 08, 2004 8:14 am    Post subject: |   |  
				| 
 |  
				| thers loads of lines starting with error reporting 
 Darren
 _________________
 Thanks,
 |  | 
	
		| Back to top |     | 
	
		|  | 
	
		| djx -
 
 
 Joined: 06 Mar 2004
 Posts: 51
 
 
 | 
			
				|  Posted: Mon Mar 08, 2004 8:20 am    Post subject: |   |  
				| 
 |  
				| well the only line whcih has eorror reporting in it that dosnt have a ; in front was: 
 well i aint got it any more cause even thgouh i backed it up its chaged
 
 But i changed it to the above adn nothing happened
 
 Darren
 _________________
 Thanks,
 |  | 
	
		| Back to top |     | 
	
		|  | 
	
		| iNaNimAtE -
 
 
 Joined: 05 Nov 2003
 Posts: 2381
 Location: Everywhere you're not.
 
 | 
			
				|  Posted: Tue Mar 09, 2004 12:44 am    Post subject: |   |  
				| 
 |  
				| Just getting rid of error reporting won't fix the problem. Since you didn't write phpNuke yourself, there isn't much you can do to fix it. Try downloading a different version. _________________
 Bienvenidos!
 |  | 
	
		| Back to top |                | 
	
		|  | 
	
		| aprelium -
 
 
 Joined: 22 Mar 2002
 Posts: 6800
 
 
 | 
			
				|  Posted: Tue Mar 09, 2004 3:16 pm    Post subject: |   |  
				| 
 |  
				| djx, 
 This is the only method you can use to disable notices displaying. Are you sure you updated the correct php.ini file (in your Windows directory)? If you still have the problem, send your php.ini file to support@aprelium.com (and write a line about the problem so that we can remember your problem).
 _________________
 Support Team
 Aprelium - http://www.aprelium.com
 |  | 
	
		| Back to top |       | 
	
		|  | 
	
		| ntloc -
 
 
 Joined: 26 Feb 2004
 Posts: 35
 Location: UT
 
 | 
			
				|  Posted: Sun Mar 14, 2004 5:32 am    Post subject: Got a solution |   |  
				| 
 |  
				| Well, I got a solution for you here. To tell the truth, at first I have the same problem with PHP script just like yours but then I found the problem and found a way to fix. I have it on my web site, check it out (go Create Localhost -> Setup PHP and reinstall your PHP.exe setup exactly what the instruction say). Best of luck. 
 Go here: http://www.loc-nguyen.com
 |  | 
	
		| Back to top |       | 
	
		|  | 
	
		|  |