Previous Thread
Next Thread
Print Thread
Hop To
Anonymous
Unregistered
Anonymous
Unregistered
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? <img border="0" title="" alt="[Smile]" src="images/icons/smile.gif" />

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
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.

-------------------

Scream

<a target="_blank" href=http://www.wwwthreads.com>WWWThreads</a>

Anonymous
Unregistered
Anonymous
Unregistered
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? <img border="0" title="" alt="[Frown]" src="images/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.

Anonymous
Unregistered
Anonymous
Unregistered
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. <img border="0" title="" alt="[Wink]" src="images/icons/wink.gif" /> )

- Six
dave@mythprod.com
mYth productions

Anonymous
Unregistered
Anonymous
Unregistered
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


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
2 members (Ruben, Nightcrawler), 798 guests, and 271 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)