Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Feb 2001
Posts: 6
Lurker
Lurker
Offline
Joined: Feb 2001
Posts: 6
I just installed PHP404 for win32 with an apache webserver running locally for test and develop on my computer.

I getting a lot of errors like:

Warning: Use of undefined constant stripcodes - assumed 'stripcodes' in c:/apache/htdocs/wwwthreads/config.inc.php on line 116

Line 116 reads like this: $config[stripcodes] = "off";

Warning: Use of undefined constant anonnames - assumed 'anonnames' in c:/apache/htdocs/wwwthreads/config.inc.php on line 133

Line 133 reads like this: $config[anonnames] = "on";

If I change the lines to:
$config['stripcodes'] = "off";
$config['anonnames'] = "on";

The error(s) will disapear.
But there are a lot of more errors like this....????

Maybee I am the error? :)

Sponsored Links
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Hmm. This might mean that I will need to alter all array variables to include the single quotes. In PHP4 for linux, it won't give errors on these but apparently under Windows it does. Perhaps there is a config file setting that will let these errors go by? Not sure if many people here run PHP under Windows though.


UBB.threads Developer
Sally #208047 02/04/2001 12:45 AM
Joined: Feb 2001
Posts: 6
Lurker
Lurker
Offline
Joined: Feb 2001
Posts: 6
I went through main.inc.php file and included the single quotes on all array variables with braces.

Next error I bumped into was this:

Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in main.inc.php on line 14

The lines reads like this:

11: $thispath = "c:/apache/htdocs/wwwthreads";
12:
13: include("$thispath/config.inc.php");
14: include("$thispath/$config['dbtype'].inc.php");
15: include("$thispath/theme.inc.php");

After some testing I found out that the $config['dbtype'] is giving the error. If you put it alone in the sentence it will work, but when you add $thispath-variable it doesn't work!?

Next error is this sentence:
If (!w3t_langauges)

This sentence purpose is to check if w3t_languages is not defined.

In PHP4 on win32 I have an error saying that the variable w3t_languages isn't defined....

Maybee I have to take a closer look on the perl version for win32 (win 2k) instead and maybee "dump" the PHP-version? []/w3timages/icons/frown.gif[/]

PHP seems to be much better in some ways...easier to read, error dumping in the webbrowser and more, but bad compability with Linux versions.


Joined: May 1999
Posts: 242
Coder
Coder
Offline
Joined: May 1999
Posts: 242
Actually, having ran both under win32, Php is hands down the superior version for windows. It's faster, cleaner, and it doesn't seem to have the cookie problem that plagued me under perl.

On the downside, I haven't been able to get the pesky file attachment to work correctly yet (can't get php to run under ISAPI for some reason (using the .dll files instead of the .exe to run php)), and I haven't tried any email or subscriptions features yet.

But yes, the performance improvements coupled with the fact that setup is so much easier, particularly on win32 systems, I would recommend any windows user to try out the php version first before going to perl. If they're not using it now, my bet is they will be.

(As an aside, my signature lost their CR's. []/w3timages/icons/wink.gif[/])

- Six
[email protected]
mYth productions

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Look for:
error_reporting = E_ALL; display all errors, warnings and notices
in the php.ini in and change it to:
error_reporting = E_ERROR; display all errors, warnings and notices
or something other than E_ALL


Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)