PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old November 3rd, 2002, 02:10 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
just installed php-4.2.3-Win32 and have errors

ok, now, i know this is a register globals thing,,,but in the php.ini file it says now,,,

You should do your best to write your scripts so that they do not require register_globals to be on;

now, i have these errors:
Notice: Undefined variable: dbhost in c:apachehtdocsincconfig.php on line 28

Notice: Undefined variable: dbuname in c:apachehtdocsincconfig.php on line 28

Notice: Undefined variable: PHP_SELF in c:apachehtdocscomshopheader.php on line 7

and many more,,,,

since i have these errors, or notices, which i know i can hide with the error:

error_reporting = E_ALL & ~E_NOTICE

and not only that, i left mine at
error_reporting = E_ALL

because i want to code php scripts with all possible, no errors,,, or notices,,,

is this possible, or should i just turn globals on, and do it that way?

Reply With Quote
  #2  
Old November 3rd, 2002, 02:26 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: just installed php-4.2.3-Win32 and have errors

What it is telling you is that those variables have not had a value assigned to them before you used them...you should assign some type of initial value to them..

as for the $PHP_SELF, use $_SERVER['PHP_SELF']


Reply With Quote
  #3  
Old November 3rd, 2002, 02:35 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: just installed php-4.2.3-Win32 and have errors

ok, ,but for like these:

Notice: Undefined variable: dbhost in c:apachehtdocsincconfig.php on line 28

Notice: Undefined variable: dbuname in c:apachehtdocsincconfig.php on line 28

these are in my config.php and are for my database connection:

$db = mysql_pconnect($dbhost, $dbuname, $dbpass);

now why would those show up with that error?
i have like 9 of those errors on this line alone,, i just dong get it..

and thanks for the php_self info..

should i keep my register globals off then?

cuz like anyone, id like to try to become a great php programmer..lol

it does make things easier, but, i think to be the best, do it right..? what about register globals?

Reply With Quote
  #4  
Old November 7th, 2002, 08:07 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: just installed php-4.2.3-Win32 and have errors

because the values you have set for $dbname and all the other 3 are not defined correctly or the database source your referencing does not exist

Reply With Quote
  #5  
Old December 6th, 2002, 05:23 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: just installed php-4.2.3-Win32 and have errors

Using PhP 4.2.3 on IIS 5, I have a similar problem with an undefined variable error message in a much simpler context. The same code served from an Apache server and a different version of PhP works fine. I suspect configuration is the problem but can't find the cause.

MyCode:
php Code:
Original - php Code
  1. include($contents)


MyQuery:
http://mydomain.com/index.php?contents=index.htm

Error:
Notice: Undefined variable: contents in F:inetpubWWWROOTmydomainindex.php on line 48



Reply With Quote
  #6  
Old December 6th, 2002, 05:40 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: just installed php-4.2.3-Win32 and have errors

Using PhP 4.2.3 on IIS 5, I have a similar problem with an undefined variable error message in a much simpler context. The same code served from an Apache server and a different version of PhP works fine. I suspect configuration is the problem but can't find the cause.

MyCode:
php Code:
Original - php Code
  1. include($contents)


MyQuery:
http://mydomain.com/index.php?contents=index.htm

Error:
Notice: Undefined variable: contents in F:inetpubWWWROOTmydomainindex.php on line 48



Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > just installed php-4.2.3-Win32 and have errors


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway