hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : PHP 5 issues
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

PHP 5 issues

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 01-18-2005, 02:34 AM
Jong Jong is offline
Junior Guru Wannabe
 
Join Date: May 2003
Location: U.P. Diliman, Philippines
Posts: 41
Question

PHP 5 issues


Recently, I upgraded to PHP 5, then the following error messages start to appear, which did not appear before the upgrade:

Notice: Use of undefined constant keep - assumed 'keep' in c:\sites\ncirs\ncirs.php on line 11

>>> 'Tis the code: $tpl=new nci_Template(".",keep);

Notice: Undefined variable: opt in c:\sites\ncirs\ncirs.php on line 13

Notice: Undefined variable: v in c:\sites\ncirs\ncirs.php on line 13

>>> 'Tis the code: if (($opt == 4 && $z == 1) || ($v == 1))

Notice: Use of undefined constant home - assumed 'home' in c:\sites\ncirs\ncirs.php on line 15

>>> 'Tis the code: else { $tpl->set_file(array(home=> "ncirs.htm")); }

Warning: Cannot modify header information - headers already sent by (output started at c:\sites\ncirs\ncirs.php:11) in c:\sites\ncirs\includes\session.inc on line 394

>>> 'Tis the code: header("Status: 302 Moved Temporarily");

Warning: Cannot modify header information - headers already sent by (output started at c:\sites\ncirs\ncirs.php:11) in c:\sites\ncirs\includes\session.inc on line 117

>>> 'Tis the code: SetCookie($this->name, $id, 0, "/", $this->cookie_domain);

Warning: Cannot modify header information - headers already sent by (output started at c:\sites\ncirs\ncirs.php:11) in c:\sites\ncirs\includes\session.inc on line 406

>>> 'Tis the code: header("Location: ". $PROTOCOL. "://".$HTTP_HOST.$this->self_url());

Thank you.

Reply With Quote


Sponsored Links
  #2  
Old 01-18-2005, 03:04 AM
gogocode gogocode is offline
Web Hosting Evangelist
 
Join Date: Mar 2004
Location: New Zealand
Posts: 527
Re: PHP 5 issues

Quote:
Notice: Use of undefined constant keep - assumed 'keep' in c:\sites\ncirs\ncirs.php on line 11
$tpl=new nci_Template(".",keep);
Have you defined the constant keep using define()? Or, did you think keep is a string? In which case that should read $tpl=new nci_Template(".",'keep');

Quote:
Notice: Undefined variable: opt in c:\sites\ncirs\ncirs.php on line 13
Notice: Undefined variable: v in c:\sites\ncirs\ncirs.php on line 13
You havn't defined these variables. Why are you comparing undefined variables? Are you sure that your script doesn't require register globals?

__________________
James Sleeman
PHP Programmer | Specialist PHP 5 Web Hosting

Reply With Quote
  #3  
Old 01-18-2005, 04:19 AM
Burhan Burhan is offline
Community Guide
 
Join Date: Jul 2003
Location: Kuwait
Posts: 5,100
There are not error messages, these are warning/notices. Your previous PHP installation was giving the same notices, but since your error reporting was off, you were not seeing them.

In short, this is not a PHP5 problem.

__________________
In order to understand recursion, one must first understand recursion.
If you feel like it, you can read my blog
Signal > Noise

Reply With Quote
Sponsored Links
  #4  
Old 01-18-2005, 05:51 AM
Rich2k Rich2k is offline
Web Hosting Master
 
Join Date: May 2002
Location: UK
Posts: 2,994
PHP Code:
error_reporting(E_ALL E_NOTICE); 

__________________
Dominion Web - http://www.dominion-web.com/

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
MSPAlliance Readies MSPWorld 2013 Conference in Orlando Web Hosting News 2013-03-15 16:24:53
Cloud Security Alliance Launches Website for Cloud-Related Legal Issues Web Hosting News 2013-02-25 11:27:00
cPacket Launches SPIFEE for Service Providers to Detect Network Performance Issues Web Hosting News 2013-01-28 16:21:35
PayPal UK IPN Issues Impact Web Hosts, Users Web Hosting News 2013-02-01 09:34:43
More on Save Hosting Blog 2011-09-26 18:50:28


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?