»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 01-24-2004, 11:34 PM   #1 (permalink)
Registered User
 
Join Date: Nov 2001
Location: Central KS
Posts: 256
bwcc is on a distinguished road
PHP errors - undefined variable

I am very new to the PHP scripting and have been trying to learn to use the WebCalendar 0.9.42 (webcalendar.sourceforge) on my Win2K webserver.

I followed the directions associated with the .42 installation package and I do have a working MySQL 4.0.17 and PHP 4.3.4 currently installed.

After the short software installation, I go to the URL, and get the login page for the calendar. However, it has 4 errors calling 'undefined variables' and 2 warnings about 'cannot modify header'.

I am feeling that I have missed a step either in the setup of PHP or the webcalendar software, but I have gone through each setup atleast 5 times. I have attempted to setup PHP as CGI and as ISAPI, both resulting in the same page. I have put a screen shot attached here.

Can you tell by the screen shot if it is a PHP installation problem or a script problem? Any help would be most appreciative.

Cheers
Attached Images
File Type: gif image2.gif (9.7 KB, 43 views)

bwcc is offline   Reply With Quote
Old 01-25-2004, 04:58 AM   #2 (permalink)
Registered User
 
Technoed's Avatar
 
Join Date: Sep 2003
Location: Yorkshire, England
Posts: 68
Technoed is on a distinguished road
By the looks of things, you need to turn on global variables from within your PHP.INI file. Plus, add ob_start("ob_gzhandler") to the start of your page to get rid of the headers error message.
Technoed is offline   Reply With Quote
Old 01-25-2004, 10:20 AM   #3 (permalink)
Registered User
 
Join Date: Nov 2001
Location: Central KS
Posts: 256
bwcc is on a distinguished road
I had read to turn on global variables before, but a lot of sources state not to turn these on for security purposes.

Anyways, I changed the line from 'Off' to 'On' and it did get rid of the PHP_SELF error in functions.php, but I still have the other 3.

I followed the path being called in the calendar script (index.php calls login.php for the start page) and placed the ob_start line at the top of the login.php file.

Now the page returns :

Parse error: parse error, unexpected T_INCLUDE in .....

on the line where the next line :

include "includes/config.php";

On the plus side, I no longer get the headers error message!

I am really thinking that is has to be something in my setup of this script (or PHP or MySQL), since it is a public script and I am not seeing a wide variety of complaints on this issue in other forums.

Is it possible that the issue may lie with the way that IIS is handling the PHP?
bwcc is offline   Reply With Quote
Old 01-25-2004, 03:03 PM   #4 (permalink)
Registered User
 
Technoed's Avatar
 
Join Date: Sep 2003
Location: Yorkshire, England
Posts: 68
Technoed is on a distinguished road
Quote:
Originally posted by bwcc


Is it possible that the issue may lie with the way that IIS is handling the PHP?
Possibly. I'd think about switching to Apache as, in all honesty, it's the only way to go with PHP.
Technoed is offline   Reply With Quote
Old 01-25-2004, 03:41 PM   #5 (permalink)
Registered User
 
Carl-cox-'s Avatar
 
Join Date: Nov 2002
Location: Kent England
Posts: 235
Carl-cox- is on a distinguished road
is there a ; at the end of the line above that include ?

or may have somehting to do with a comment " or ' not being closed problem on the line above
Carl-cox- is offline   Reply With Quote
Old 01-26-2004, 09:38 AM   #6 (permalink)
Registered User
 
Join Date: Nov 2001
Location: Central KS
Posts: 256
bwcc is on a distinguished road
Thanks for all your help on this. I switched to Apache using the Foxserv install and it worked perfectly the first time!

Now... off to learn more about Apache!
bwcc is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 01:08 PM.