View Full Version : PHP5
kolohe
26th of December 2004 (Sun), 18:51
I have downloaded EE and am trying to do a clean install on a Windows 2000 system, using Apache 2.0.52, PHP 5.0.2 and MySQL 4.1.8. It's a local system, so I can do anything to it that strikes my fancy.
It seems that EE would really like for me to turn on the register_globals option in PHP. Is this the case? I had to make a small change to the install script (change $HTTP_POST_VARS to $_POST) to get it to run. There is a similar problem in the input/index.php file, since fetchsettings.php gets included after the security checks are done.
Also, I cannot get EE to recognize that GD is installed in PHP, even though the phpinfo page shows that it is. I also cannot update the paths to ImageMagick. Perhaps the same problem.
If anyone has EE running in an environment similar to mine, I'd love to hear what you had to do to make it happen.
Thanks,
Paul
Pekka
26th of December 2004 (Sun), 19:05
Keep register_globals always OFF.
In PHP5's (plain install) php.ini you must set
register_long_arrays = On
for EE 1.5RC. OR else, replace all
$HTTP_POST_VARS with $_POST
$HTTP_GET_VARS with $_GET
$HTTP_COOKIE_VARS with $_COOKIE
$HTTP_POST_FILES with $_FILES
$HTTP_SERVER_VARS with $_SERVER
Also, with PHP5 replace function ee_hexcolorshifter (in fetchsettings.php) with
function ee_hexcolorshifter($color,$amount) {
$amount = (float) $amount;
$r = substr($color, 0, 2);
$g = substr($color, 2, 2);
$b = substr($color, 4, 2);
$r = (float) hexdec($r);
$g = (float) hexdec($g);
$b = (float) hexdec($b);
$rr = abs(intval($r*$amount)); if ($rr > 255) $rr=255;
$gg = abs(intval($g*$amount)); if ($gg > 255) $gg=255;
$bb = abs(intval($b*$amount)); if ($bb > 255) $bb=255;
$hex_r = sprintf("%02X",$rr);
$hex_g = sprintf("%02X",$gg);
$hex_b = sprintf("%02X",$bb);
$color = $hex_r .$hex_g .$hex_b;
return $color;
}
These are all part of something coming soon....
I'm developing EE with PHP5/Apache 2 and I've got not IM or GD2 problems. GD2 is inbuilt in PHP5 so it should work right away. Do the above changes and let me know if you still have problems. Check your directory permissions, though.
kolohe
27th of December 2004 (Mon), 17:29
Setting register_long_arrays did the trick. Doing the edits globally broke something - not quite sure what.
FYI - I believe there is a type in your reply. In the line that starts with $rr=, I imagine that the if statement should reference $rr as opposed to $gg.
Now I'm off to define my camera, my lens, my locations, etc. The first exhibition creation worked.
Thanks for your help and extremely prompt response.
Paul
Pekka
30th of December 2004 (Thu), 10:20
FYI - I believe there is a type in your reply. In the line that starts with $rr=, I imagine that the if statement should reference $rr as opposed to $gg.
Thanks, I missed that :) It's now corrected to the first post on this thread.
lucas3d
12th of July 2006 (Wed), 00:03
Hi
My server recently switch to php5.
I try to do Pekka path on EE but I don't understand all.
Now, I can't see photo in my gallery :-( I see only empty page.
Keep register_globals always OFF.
Where I need to change this ?
In PHP5's (plain install) php.ini you must set
register_long_arrays = On
DONE
for EE 1.5RC. OR else, replace all
$HTTP_POST_VARS with $_POST
$HTTP_GET_VARS with $_GET
$HTTP_COOKIE_VARS with $_COOKIE
$HTTP_POST_FILES with $_FILES
$HTTP_SERVER_VARS with $_SERVER
Where I need to change this ?
Also, with PHP5 replace function ee_hexcolorshifter (in fetchsettings.php) with
DONE
Right now, I can't access to my admin section, i think i lost my password.
So reset it, but I still block on login page.
Strange because EE say "Last successful login" but I see only the login page.
Thanks for any help !
devenh
12th of July 2006 (Wed), 12:30
Have you tested EE 2.0 with MySQL 5?
Deven
lucas3d
12th of July 2006 (Wed), 13:44
Have you tested EE 2.0 with MySQL 5?
Deven
EE 2.0 is available ??
I don't find it anywhere...
lucas3d
14th of July 2006 (Fri), 07:57
My server recently switch to php5.
I try to do Pekka path on EE but I don't understand all.
No any help available ?
Thanks
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.