Board index   FAQ   Search  
Register  Login
Board index PHP PHP Installation

PHP Version 5.3.7RC1

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

PHP Version 5.3.7RC1

Postby rpruitt625 » Sun Jul 03, 2011 8:43 pm

I have installed 5.3.7RC1, but am having a date error. Please see attached screen shot. I have adjusted php.ini to date.timezone = 'America/Chicago', that with or with out single or double quotes - restarted httpd - even restarted the server. Nothing seems to stick, and the error remains. It is impacting a script. Any ideas?

php1.jpg
php1.jpg (77.38 KiB) Viewed 602 times
rpruitt625
New php-forum User
New php-forum User
 
Posts: 6
Joined: Sun Jul 03, 2011 8:32 pm

Re: PHP Version 5.3.7RC1

Postby jorgepinho » Wed Jul 06, 2011 10:59 am

Hi,

have you tried to write another timezone ?

Have you tried using the function "date_default_timezone_set()" it needs to be on the beginnig of the script

--
Jorge
Live Help on Skype: lets.talk.about.help
(languages: english, portuguese)
jorgepinho
New php-forum User
New php-forum User
 
Posts: 101
Joined: Tue Jul 05, 2011 5:41 am
Location: Portugal

Re: PHP Version 5.3.7RC1

Postby rpruitt625 » Wed Jul 06, 2011 8:38 pm

Jorge, great idea! I tried 'America/New_York'.

My info.php file has not changed. In fact, I'm finding out that no changes I make on php.ini show up.

# locate php.ini
/etc/php.ini
/etc/php.ini.rpmnew
/usr/share/doc/php-common-5.3.7/php.ini-development
/usr/share/doc/php-common-5.3.7/php.ini-production

The path is right, and that's what it shows in info.php as well. I went ahead and changed all 4 of the files listed above just to not leave any stone unturned. Everything works pretty good (I no longer care about that other script), but I don't know have any idea where the configuration files are read, or how it has the information is does have, like memory limit - which is 128M, even though php.ini shows 64M. This is really weird and I have no ideas at all. It looks like I messed something up.

Maybe I should 'yum remove php' & start over.
rpruitt625
New php-forum User
New php-forum User
 
Posts: 6
Joined: Sun Jul 03, 2011 8:32 pm

Re: PHP Version 5.3.7RC1

Postby jorgepinho » Thu Jul 07, 2011 2:03 am

Hi,

You can use php.exe to view the information that you need.

on PHP install folder (where php.exe is) write on a command line:

php --ini

this wiil show you loaded .ini files

Also, you can write on an empty .php file

Code: Select all
<?php
phpinfo();
?>


This wiill show you everything on PHP

--
Jorge
Live Help on Skype: lets.talk.about.help
(languages: english, portuguese)
jorgepinho
New php-forum User
New php-forum User
 
Posts: 101
Joined: Tue Jul 05, 2011 5:41 am
Location: Portugal

Re: PHP Version 5.3.7RC1

Postby rpruitt625 » Thu Jul 07, 2011 3:42 am

Thanks Jorge, I know it. The mystery is - php is not reading this php.ini file - which is located in /etc/php.ini
I do not know how this can be. For instance I have set in php.ini -- memory_limit = 64M

Yet phpinfo() shows memory limit set to 128M. That's where I had it set prior to this current install. Somehow, whatever was set before I installed this version is still set, and no changes I make on php.ini are ever reflected in phpinfo().

I did not uninstall my prior version of PHP prior to installing this 5.3.7RC1 version. I have no clue at all how this works, but I suspect it has to do with not uninstalling the previous version first. This is just a dev machine, so it's the perfect educational tool for me. All my programs do work fine, php run fine - I cannot adjust any settings however. The previous php.ini file is stuck someplace in the twilight zone I guess, and is still in command.
php2.jpg
php2.jpg (131.92 KiB) Viewed 591 times
rpruitt625
New php-forum User
New php-forum User
 
Posts: 6
Joined: Sun Jul 03, 2011 8:32 pm


Return to PHP Installation

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron