Upgraded to 4.2 - AAAAAGGGGGGGGGGGGGGGG
Moderator: General Moderators
Upgraded to 4.2 - AAAAAGGGGGGGGGGGGGGGG
Ok, now that I have upgraded to 4.2 nothing works correctly.
Scripts I wrote using 4.0.6 don't work in 4.2; on my box at least.
The majority of the websites I write are template based and all content is inserted using includes based on form / menu input. When I use form input I use method = "post", I think my problem lays in how I am passing the variables and how they are being interperted by Php.
Am I going to have to relearn how to write code and how I pass variables to comply with the upgrade in Php?
I have noticed code using $_POST, $_HTTP.*.VAR[],etc... is this the preferred method of passing variables?
And here i thought I knew somewhat of what I was doin'
Is anyone else having this problem?
Scripts I wrote using 4.0.6 don't work in 4.2; on my box at least.
The majority of the websites I write are template based and all content is inserted using includes based on form / menu input. When I use form input I use method = "post", I think my problem lays in how I am passing the variables and how they are being interperted by Php.
Am I going to have to relearn how to write code and how I pass variables to comply with the upgrade in Php?
I have noticed code using $_POST, $_HTTP.*.VAR[],etc... is this the preferred method of passing variables?
And here i thought I knew somewhat of what I was doin'
Is anyone else having this problem?
Jason, that worked, almost; now at the bottom of my pages I get these funky little errors:
All else seems to work...
Thx
Code: Select all
Warning: open(./Windows/Cookies\sess_a3e0a7f9527bde7808b832b30f371662, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (./Windows/Cookies) in Unknown on line 0Thx
I can see by the amount of views this thread has gotten in less then 24 hour that I was not the only one who had issues with upgrading.
Come on now, you can admit it some of you had issues too.
Anyway, next upgrade issue.
Should I run php as an Apache module or cgi?
Right now I am running it as a cgi, intially I tried to install the upgrade as a module but got an error when Apache started up something to the effect of "You need two files to load php module" or something close to that.
My question is; Is there any real advantage to loading Php as a module vs a cgi, and if there is any advantages what are they?
Come on now, you can admit it some of you had issues too.
Anyway, next upgrade issue.
Should I run php as an Apache module or cgi?
Right now I am running it as a cgi, intially I tried to install the upgrade as a module but got an error when Apache started up something to the effect of "You need two files to load php module" or something close to that.
My question is; Is there any real advantage to loading Php as a module vs a cgi, and if there is any advantages what are they?
- EvilWalrus
- Site Admin
- Posts: 209
- Joined: Thu Apr 18, 2002 3:21 pm
- Location: Springmont, PA USA
Ok,
In the php.ini I changed "extension_dir" to php path
c:\php\sapi\
Thats where my dll's are
Added to httpd.conf:
AddModule mod_php4.c
To the AddModule list.
code line 175
Added to httpd.conf:
LoadModule php4 module c:/php/sapi/php4apache.dll
To the LoadModule list.
code line 203
Added to httpd.conf:
AddType application/x-httpd-php .php
To the AddType section.
code line 770
Now I get error:
Cannot add module vie name mod_php4.c, not in the list of loaded modules.
This is on a win98/apache1.3.9/php4.20 set up.
Anyone have any ideas?
In the php.ini I changed "extension_dir" to php path
c:\php\sapi\
Thats where my dll's are
Added to httpd.conf:
AddModule mod_php4.c
To the AddModule list.
code line 175
Added to httpd.conf:
LoadModule php4 module c:/php/sapi/php4apache.dll
To the LoadModule list.
code line 203
Added to httpd.conf:
AddType application/x-httpd-php .php
To the AddType section.
code line 770
Now I get error:
Cannot add module vie name mod_php4.c, not in the list of loaded modules.
This is on a win98/apache1.3.9/php4.20 set up.
Anyone have any ideas?
- EvilWalrus
- Site Admin
- Posts: 209
- Joined: Thu Apr 18, 2002 3:21 pm
- Location: Springmont, PA USA
If it works, it works.
However, PHP as CGI will be just as slow as Perl. PHP as a module will be faster.
As far as the problem with 4.2, I don't see how its a problem. The register_globals debate has been going on for sometime now, and was even mentioned in the change_logs that it was set to OFF by default.
In fact, read it here: http://ca.php.net/release_4_2_0.php as read the part in bold.
Now repeat after me: Upgrading without reading the changelog will mean things WILL break. =)
However, PHP as CGI will be just as slow as Perl. PHP as a module will be faster.
As far as the problem with 4.2, I don't see how its a problem. The register_globals debate has been going on for sometime now, and was even mentioned in the change_logs that it was set to OFF by default.
In fact, read it here: http://ca.php.net/release_4_2_0.php as read the part in bold.
Now repeat after me: Upgrading without reading the changelog will mean things WILL break. =)
Well my worst fears were realized at 3pm Sunday afternoon. Windows2000 crashed & wiped out my BIOS and fried my video card.
So much for that idea, have a new motherboard with Athalon 1.4 and new video card onthe way. This time I will load up XP and see what happens. Old board was a PCChips, do yourselves a favor stay away from these guys, absolutly no support what so ever. I had to trace them down by the chipset/AMIBIOS chip and pictures. They are outta Taiwann and they suck.
Luckly I have a clean 30gig HD ready to be formatted when the board arrives. I will try to recover my files from the old drive if I can get back into it. Yes I have BU's but would still like to have all the files.
Well that was an adventure...later PHP'rs
So much for that idea, have a new motherboard with Athalon 1.4 and new video card onthe way. This time I will load up XP and see what happens. Old board was a PCChips, do yourselves a favor stay away from these guys, absolutly no support what so ever. I had to trace them down by the chipset/AMIBIOS chip and pictures. They are outta Taiwann and they suck.
Luckly I have a clean 30gig HD ready to be formatted when the board arrives. I will try to recover my files from the old drive if I can get back into it. Yes I have BU's but would still like to have all the files.
Well that was an adventure...later PHP'rs
at this moment all files from my (so called) server are beeing copied to my primary PC. As soon as this is done (zzzZZZzzz) I will install linux. Hopefully clonecd (and/or nero burn) will run on top of wine or this experiment ends in it's infancy. But I'm quiet curious about apache/php/python/kde on linux again