php-general Digest 4 Jul 2008 08:40:11 -0000 Issue 5549

Topics (messages 276256 through 276278):

Re: PHPExcel
        276256 by: David Giragosian
        276257 by: Boyd, Todd M.
        276258 by: Dan Shirah
        276259 by: Robert Cummings
        276260 by: Dan Shirah
        276261 by: Dan Shirah
        276263 by: Richard Heyes
        276264 by: Richard Heyes
        276265 by: Richard Heyes
        276266 by: Mario Guenterberg
        276267 by: Dan Shirah
        276270 by: Shawn McKenzie
        276271 by: Shawn McKenzie
        276272 by: Jim Lucas
        276273 by: Jim Lucas

Re: Inspiration for a Tombstone.
        276262 by: Dotan Cohen

PHP 5 Web Developer Position in Mountain View, CA
        276268 by: Abby Knight

[confirm: ffd06320e87b4e72f197eae8dfdde17a [EMAIL PROTECTED]
        276269 by: axis

Installed 5.2.6 but phpinfo() still says 5.0.2
        276274 by: x0ml
        276275 by: x0ml
        276276 by: Shawn McKenzie
        276278 by: Colin Guthrie

Static Member Overloading
        276277 by: Ryan Panning

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
On 7/3/08, Shawn McKenzie <[EMAIL PROTECTED]> wrote:

> Richard Heyes wrote:
>
>>  Happy 4th of July!
>>>>
>>>
>>> How did you know it was my sisters birthday today? Been an exciting
>>> week, first Canada's birthday was on Monday, now my sister's birthday
>>> today. What a thrill ride.
>>>
>>
>> Isn't it the 3rd?
>>
>> It is in the great Republic of Texas.
>
> -Shawn


It is even in the sub-tropical part of Texas known as Houston.

But this isn't a day of celebration for you guys, Richard, to be sure.

Do you all just ignore the day, or do you hold some kind of
anti-celebration?

David

--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: David Giragosian [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 03, 2008 11:19 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] PHPExcel
> 
> On 7/3/08, Shawn McKenzie <[EMAIL PROTECTED]> wrote:
> 
> > Richard Heyes wrote:
> >
> >>  Happy 4th of July!
> >>>>
> >>>
> >>> How did you know it was my sisters birthday today? Been an exciting
> >>> week, first Canada's birthday was on Monday, now my sister's
> birthday
> >>> today. What a thrill ride.
> >>>
> >>
> >> Isn't it the 3rd?
> >>
> >> It is in the great Republic of Texas.
> 
> 
> It is even in the sub-tropical part of Texas known as Houston.
> 
> But this isn't a day of celebration for you guys, Richard, to be sure.
> 
> Do you all just ignore the day, or do you hold some kind of
> anti-celebration?

Heh... almost got in trouble at work for laughing so loud at that one. Vive le 
revolucion!


Todd Boyd
Web Programmer




--- End Message ---
--- Begin Message ---
So how would I go about getting each result from my query into the
columns/rows?

Should I do my query, and then assign the first column to an array, the
second to another array, etc?

And then try to loop it using $i to count each row?

And just FYI, I put Happy 4th (even though today is the 3rd) because I won't
be checking my email tomorrow :)

--- End Message ---
--- Begin Message ---
On Thu, 2008-07-03 at 16:36 +0100, Richard Heyes wrote:
> >> Happy 4th of July!
> > 
> > How did you know it was my sisters birthday today? Been an exciting
> > week, first Canada's birthday was on Monday, now my sister's birthday
> > today. What a thrill ride.
> 
> Isn't it the 3rd?

*doh* I took for granted someone else had the date right... I rarely
know what day it is :)

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


--- End Message ---
--- Begin Message ---
GOT IT!!!

I changed my code to the following:


$sql = "SELECT * FROM brev_pending_summary_detail WHERE name =
'$name_code'";
 if (!empty($case_age)) {
  $sql.=" AND case_age_group = '$case_age'";
 }
 if (!empty($case_cat)) {
  $sql.=" AND case_category = '$case_cat'";
 }
 if (!empty($case_status)) {
  $sql.=" AND case_status = '$case_status'";
 } // Start our query of the database
$query = ifx_query($sql, $connect_id);
$row = ifx_fetch_row($query);
$results = array();

echo date('H:i:s') . " Add some data<br />\n";

for ($i = 3, $j = 0; $i <= $count; $i++, $j++) {
 $results[$j] = ifx_fetch_row($query);

 $objPHPExcel->getActiveSheet()->setCellValue('A' . $i,
$results[$j]['stat_year']);
 $objPHPExcel->getActiveSheet()->setCellValue('B' . $i,
$results[$j]['stat_month']);
 $objPHPExcel->getActiveSheet()->setCellValue('C' . $i,
$results[$j]['name']);
 $objPHPExcel->getActiveSheet()->setCellValue('D' . $i,
$results[$j]['case_age_group']);
 }



I created a seperate query to get the row count...created an empty array (
$results = array(); )

I set $i = 3 so my results will start printing on line 3 of the spreadsheet

I set $j = 0 so the row data will start at the first row of the results from
my query

Then I made the loop repeat until $i became equal to the total number of
rows

And I then set the value of my previsouly empty array equal to the current
counted row of my query results

And to round it all off I echo'd out my results by using the new
$results($j) value appended with my database column names ['stat_year'] etc.

AWESOME! I hope someone else learns from this or can use this!

--- End Message ---
--- Begin Message ---
UGH!

I am now constantly getting an error of "PHP Fatal error: Allowed memory
size of 16777216 bytes exhausted (tried to allocate 936 bytes) on line 689"

Is there a way to continuously write to the file and avoid getting this
error?



On 7/3/08, Dan Shirah <[EMAIL PROTECTED]> wrote:
>
> GOT IT!!!
>
> I changed my code to the following:
>
>
> $sql = "SELECT * FROM brev_pending_summary_detail WHERE name =
> '$name_code'";
>  if (!empty($case_age)) {
>   $sql.=" AND case_age_group = '$case_age'";
>  }
>  if (!empty($case_cat)) {
>   $sql.=" AND case_category = '$case_cat'";
>  }
>  if (!empty($case_status)) {
>   $sql.=" AND case_status = '$case_status'";
>  } // Start our query of the database
> $query = ifx_query($sql, $connect_id);
> $row = ifx_fetch_row($query);
> $results = array();
>
> echo date('H:i:s') . " Add some data<br />\n";
>
> for ($i = 3, $j = 0; $i <= $count; $i++, $j++) {
>  $results[$j] = ifx_fetch_row($query);
>
>  $objPHPExcel->getActiveSheet()->setCellValue('A' . $i,
> $results[$j]['stat_year']);
>  $objPHPExcel->getActiveSheet()->setCellValue('B' . $i,
> $results[$j]['stat_month']);
>  $objPHPExcel->getActiveSheet()->setCellValue('C' . $i,
> $results[$j]['name']);
>  $objPHPExcel->getActiveSheet()->setCellValue('D' . $i,
> $results[$j]['case_age_group']);
>  }
>
>
>
> I created a seperate query to get the row count...created an empty array (
> $results = array(); )
>
> I set $i = 3 so my results will start printing on line 3 of the spreadsheet
>
> I set $j = 0 so the row data will start at the first row of the results
> from my query
>
> Then I made the loop repeat until $i became equal to the total number of
> rows
>
> And I then set the value of my previsouly empty array equal to the current
> counted row of my query results
>
> And to round it all off I echo'd out my results by using the new
> $results($j) value appended with my database column names ['stat_year'] etc.
>
> AWESOME! I hope someone else learns from this or can use this!
>

--- End Message ---
--- Begin Message ---
But this isn't a day of celebration for you guys, Richard, to be sure.

Depends how you look at it. My passing out parade (Navy not booze) was on the 4th July.

Do you all just ignore the day, or do you hold some kind of
anti-celebration?

Well for me personally it's just another day. Can't speak for the rest of the populace.

--
Richard Heyes

Employ me:
http://www.phpguru.org/cv

--- End Message ---
--- Begin Message ---
*doh* I took for granted someone else had the date right... I rarely
know what day it is :)

It's not often I know what day it is... :-)

--
Richard Heyes

Employ me:
http://www.phpguru.org/cv

--- End Message ---
--- Begin Message ---
Richard Heyes wrote:
*doh* I took for granted someone else had the date right... I rarely
know what day it is :)

It's not often I know what day it is... :-)

Oops, sorry, I read your message wrong.

--
Richard Heyes

Employ me:
http://www.phpguru.org/cv

--- End Message ---
--- Begin Message ---
On Thu, Jul 03, 2008 at 02:36:18PM -0400, Dan Shirah wrote:
> UGH!
> 
> I am now constantly getting an error of "PHP Fatal error: Allowed memory
> size of 16777216 bytes exhausted (tried to allocate 936 bytes) on line 689"
> 
> Is there a way to continuously write to the file and avoid getting this
> error?

Hi Dan...

change the value of memory_limit in your php.ini to a greater
value than 16M.

Greetings
Mario

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/CM d- s++: a+ C++++>$ UBL*++++$ P++ L+++ E--- W+++ N+ o-- K- w O- M-
V-- PS++ PE++ Y PGP+++ t--- 5 X++++ R++ tv- b+++ DI D++++  G++ e* h----
r+++ y++++
------END GEEK CODE BLOCK------

--- End Message ---
--- Begin Message ---
I changed the max memory limit to 512MB and the max timeput to 60...

I'm trying to export a report that only has 3,600 rows and it still exceeds
my memory size/timeout.

any suggestions that I could make to my code to make it more efficient and
not use up so much memory?


On 7/3/08, Mario Guenterberg <[EMAIL PROTECTED]> wrote:
>
> On Thu, Jul 03, 2008 at 02:36:18PM -0400, Dan Shirah wrote:
> > UGH!
> >
> > I am now constantly getting an error of "PHP Fatal error: Allowed memory
> > size of 16777216 bytes exhausted (tried to allocate 936 bytes) on line
> 689"
> >
> > Is there a way to continuously write to the file and avoid getting this
> > error?
>
> Hi Dan...
>
> change the value of memory_limit in your php.ini to a greater
> value than 16M.
>
> Greetings
> Mario
>
> --
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.12
> GCS/CM d- s++: a+ C++++>$ UBL*++++$ P++ L+++ E--- W+++ N+ o-- K- w O- M-
> V-- PS++ PE++ Y PGP+++ t--- 5 X++++ R++ tv- b+++ DI D++++  G++ e* h----
> r+++ y++++
> ------END GEEK CODE BLOCK------
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Dan Shirah wrote:
UGH!

I am now constantly getting an error of "PHP Fatal error: Allowed memory
size of 16777216 bytes exhausted (tried to allocate 936 bytes) on line 689"

Is there a way to continuously write to the file and avoid getting this
error?



On 7/3/08, Dan Shirah <[EMAIL PROTECTED]> wrote:
GOT IT!!!

I changed my code to the following:


$sql = "SELECT * FROM brev_pending_summary_detail WHERE name =
'$name_code'";
 if (!empty($case_age)) {
  $sql.=" AND case_age_group = '$case_age'";
 }
 if (!empty($case_cat)) {
  $sql.=" AND case_category = '$case_cat'";
 }
 if (!empty($case_status)) {
  $sql.=" AND case_status = '$case_status'";
 } // Start our query of the database
$query = ifx_query($sql, $connect_id);
$row = ifx_fetch_row($query);
$results = array();

echo date('H:i:s') . " Add some data<br />\n";

for ($i = 3, $j = 0; $i <= $count; $i++, $j++) {
 $results[$j] = ifx_fetch_row($query);

 $objPHPExcel->getActiveSheet()->setCellValue('A' . $i,
$results[$j]['stat_year']);
 $objPHPExcel->getActiveSheet()->setCellValue('B' . $i,
$results[$j]['stat_month']);
 $objPHPExcel->getActiveSheet()->setCellValue('C' . $i,
$results[$j]['name']);
 $objPHPExcel->getActiveSheet()->setCellValue('D' . $i,
$results[$j]['case_age_group']);
 }



I created a seperate query to get the row count...created an empty array (
$results = array(); )

I set $i = 3 so my results will start printing on line 3 of the spreadsheet

I set $j = 0 so the row data will start at the first row of the results
from my query

Then I made the loop repeat until $i became equal to the total number of
rows

And I then set the value of my previsouly empty array equal to the current
counted row of my query results

And to round it all off I echo'd out my results by using the new
$results($j) value appended with my database column names ['stat_year'] etc.

AWESOME! I hope someone else learns from this or can use this!


What is on and around line 689?

Unless you need the $results array later after the for loop you should overwrite it each time, so use $results = ifx_fetch_row($query); instead. Maybe this:

$i = 3;
while ($results = ifx_fetch_row($query)) {
 $objPHPExcel->getActiveSheet()->setCellValue('A' . $i,
  $results['stat_year']);
 $objPHPExcel->getActiveSheet()->setCellValue('B' . $i,
  $results['stat_month']);
 $objPHPExcel->getActiveSheet()->setCellValue('C' . $i,
  $results['name']);
 $objPHPExcel->getActiveSheet()->setCellValue('D' . $i,
  $results['case_age_group']);
 $i++;
}


-Shawn

--- End Message ---
--- Begin Message ---
On 7/3/08, Dan Shirah <[EMAIL PROTECTED]> wrote:
GOT IT!!!

I changed my code to the following:


$sql = "SELECT * FROM brev_pending_summary_detail WHERE name =
'$name_code'";
 if (!empty($case_age)) {
  $sql.=" AND case_age_group = '$case_age'";
 }
 if (!empty($case_cat)) {
  $sql.=" AND case_category = '$case_cat'";
 }
 if (!empty($case_status)) {
  $sql.=" AND case_status = '$case_status'";
 } // Start our query of the database
$query = ifx_query($sql, $connect_id);

Also, why are you fetching a row here? Then in your loop you will have missed the first one.

$row = ifx_fetch_row($query);
$results = array();

echo date('H:i:s') . " Add some data<br />\n";

for ($i = 3, $j = 0; $i <= $count; $i++, $j++) {
 $results[$j] = ifx_fetch_row($query);

 $objPHPExcel->getActiveSheet()->setCellValue('A' . $i,
$results[$j]['stat_year']);
 $objPHPExcel->getActiveSheet()->setCellValue('B' . $i,
$results[$j]['stat_month']);
 $objPHPExcel->getActiveSheet()->setCellValue('C' . $i,
$results[$j]['name']);
 $objPHPExcel->getActiveSheet()->setCellValue('D' . $i,
$results[$j]['case_age_group']);
 }



I created a seperate query to get the row count...created an empty array (
$results = array(); )

I set $i = 3 so my results will start printing on line 3 of the spreadsheet

I set $j = 0 so the row data will start at the first row of the results
from my query

Then I made the loop repeat until $i became equal to the total number of
rows

And I then set the value of my previsouly empty array equal to the current
counted row of my query results

And to round it all off I echo'd out my results by using the new
$results($j) value appended with my database column names ['stat_year'] etc.

AWESOME! I hope someone else learns from this or can use this!


What is on and around line 689?

Unless you need the $results array later after the for loop you should overwrite it each time, so use $results = ifx_fetch_row($query); instead. Maybe this:

$i = 3;
while ($results = ifx_fetch_row($query)) {
 $objPHPExcel->getActiveSheet()->setCellValue('A' . $i,
  $results['stat_year']);
 $objPHPExcel->getActiveSheet()->setCellValue('B' . $i,
  $results['stat_month']);
 $objPHPExcel->getActiveSheet()->setCellValue('C' . $i,
  $results['name']);
 $objPHPExcel->getActiveSheet()->setCellValue('D' . $i,
  $results['case_age_group']);
 $i++;
}


-Shawn

--- End Message ---
--- Begin Message ---
Dan Shirah wrote:
GOT IT!!!

I changed my code to the following:


$sql = "SELECT * FROM brev_pending_summary_detail WHERE name =
'$name_code'";
 if (!empty($case_age)) {
  $sql.=" AND case_age_group = '$case_age'";
 }
 if (!empty($case_cat)) {
  $sql.=" AND case_category = '$case_cat'";
 }
 if (!empty($case_status)) {
  $sql.=" AND case_status = '$case_status'";
 } // Start our query of the database
$query = ifx_query($sql, $connect_id);
$row = ifx_fetch_row($query);
$results = array();

echo date('H:i:s') . " Add some data<br />\n";

for ($i = 3, $j = 0; $i <= $count; $i++, $j++) {
 $results[$j] = ifx_fetch_row($query);

 $objPHPExcel->getActiveSheet()->setCellValue('A' . $i,
$results[$j]['stat_year']);
 $objPHPExcel->getActiveSheet()->setCellValue('B' . $i,
$results[$j]['stat_month']);
 $objPHPExcel->getActiveSheet()->setCellValue('C' . $i,
$results[$j]['name']);
 $objPHPExcel->getActiveSheet()->setCellValue('D' . $i,
$results[$j]['case_age_group']);
 }


Give this a try, should save you some memory!

<?php

$sql = "SELECT   *
        FROM     brev_pending_summary_detail
        WHERE    name = '{$name_code}'";
if (!empty($case_age)) {
        $sql.=" AND case_age_group = '{$case_age}'";
}
if (!empty($case_cat)) {
        $sql.=" AND case_category = '{$case_cat}'";
}
if (!empty($case_status)) {
        $sql.=" AND case_status = '{$case_status}'";
} // Start our query of the database


$query = ifx_query($sql, $connect_id);

echo date('H:i:s') . " Add some data<br />\n";

$offSet = 3;

$row = ifx_fetch_row($query, "NEXT");

while ( is_array($row) ) {

        $objPHPExcel->getActiveSheet()->setCellValue('A' . $offSet,
                                                $row['stat_year']);
        $objPHPExcel->getActiveSheet()->setCellValue('B' . $offSet,
                                                $row['stat_month']);
        $objPHPExcel->getActiveSheet()->setCellValue('C' . $offSet,
                                                $row['name']);
        $objPHPExcel->getActiveSheet()->setCellValue('D' . $offSet,
                                                $row['case_age_group']);

        $offSet++;

        $row = ifx_fetch_row($query, "NEXT");
}
ifx_free_result($query);

?>

--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare


--- End Message ---
--- Begin Message ---
Shawn McKenzie wrote:
On 7/3/08, Dan Shirah <[EMAIL PROTECTED]> wrote:
GOT IT!!!

I changed my code to the following:


$sql = "SELECT * FROM brev_pending_summary_detail WHERE name =
'$name_code'";
 if (!empty($case_age)) {
  $sql.=" AND case_age_group = '$case_age'";
 }
 if (!empty($case_cat)) {
  $sql.=" AND case_category = '$case_cat'";
 }
 if (!empty($case_status)) {
  $sql.=" AND case_status = '$case_status'";
 } // Start our query of the database
$query = ifx_query($sql, $connect_id);

Also, why are you fetching a row here? Then in your loop you will have missed the first one.

$row = ifx_fetch_row($query);
$results = array();

It looks like he was following the example on the ifx_fetch_row() manual page.

If you look at the arguments and examples, you will see that same type of concept. Problem is he didn't follow it in the for loop.

Check my other email for the example that I submitted that he should try.

--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare


--- End Message ---
--- Begin Message ---
2008/7/2 Daniel Brown <[EMAIL PROTECTED]>:
>> Fatal error: Call to undefined function shawn() in /home/shawn/life.php on
>> line 1
>
>    I like it.  ;-P
>

I think that a 500 internal service error would be more appropriate at
that stage...

Dotan Cohen

http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

--- End Message ---
--- Begin Message ---
Please contact me if you are interested in learning more:

Abby Knight
EQQUS Technologies
555 Bryant Street, Suite 700
Palo Alto, CA 94301
650-234-1000 ext. 355
[EMAIL PROTECTED]
------------------------------------------------------------------------

My client is venture funded startup building the World’s most comprehensive
and powerful shopping search engine. Utilizing patent-pending technology
crawls and indexes products from every store on the Internet. Applying its
exclusive Product Ranking Engine (PRE), products are then displayed in an
order that delivers the most relevant search results for consumers on the
very first page of results. Their search results are ranked algorithmically
based on popularity, market demand and other key attributes.

 

LOCATION:               Mountain View, CA

 

ROLE:                        
You will be responsible for developing UI technology for the large scale,
high performance shopping search engine. You will work closely with the
design and product management groups to define and implement user interface
for the website. You will work closely with server-side engineers during the
implementation process.

This position requires:

 

·   3+ years experience developing User Interfaces for web-based companies

 

·   Strong knowledge and ability to program with object-oriented PHP 5.
Familiarity with Smarty templating a plus.

 

·   Strong knowledge of HTML, CSS, DHTML, JavaScript, and AJAX

 

·   Experience with database (MySQL) applications, including strength in SQL
is a plus

 

·   Familiarity with third-party APIs (Google/Yahoo Maps, Facebook, etc)
preferred

 

·   Quick learner, who is anxious to contribute immediately

 

COMPENSATION: Competitive base salary & Stock Options 


-- 
View this message in context: 
http://www.nabble.com/PHP-5-Web-Developer-Position-in-Mountain-View%2C-CA-tp18268090p18268090.html
Sent from the PHP - General mailing list archive at Nabble.com.


--- End Message ---
--- Begin Message ---
[confirm: ffd06320e87b4e72f197eae8dfdde17a [EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
I've installed PHP version 5.2.6 but phpinfo() and php -v both report back 
the old version 5.0.2.  I even copied php.ini-dist from the distribution to 
/etc/php.ini and restarted the physical server.  It still does show version 
5.2.6 as the current version.

As a sidenote, I'm having the same thing occur with my Apache upgrade that I 
just did too.  It still thinks its version 2.0.54 instead of version 2.0.63. 
I tweaked my httpd.conf file, didn't make any difference.

I'm running Fedora 2.6.11-1.1369_FC4.  Any ideas where to look?

Mark



--- End Message ---
--- Begin Message ---
For some reason this first post didn't "post" to this newsgroup...


"x0ml" <[EMAIL PROTECTED]> wrote in message news:...
> I've installed PHP version 5.2.6 but phpinfo() and php -v both report back 
> the old version 5.0.2.  I even copied php.ini-dist from the distribution 
> to /etc/php.ini and restarted the physical server.  It still does show 
> version 5.2.6 as the current version.
>
> As a sidenote, I'm having the same thing occur with my Apache upgrade that 
> I just did too.  It still thinks its version 2.0.54 instead of version 
> 2.0.63. I tweaked my httpd.conf file, didn't make any difference.
>
> I'm running Fedora 2.6.11-1.1369_FC4.  Any ideas where to look?
>
> Mark
>
> 



--- End Message ---
--- Begin Message ---
x0ml wrote:
I've installed PHP version 5.2.6 but phpinfo() and php -v both report back the old version 5.0.2. I even copied php.ini-dist from the distribution to /etc/php.ini and restarted the physical server. It still does show version 5.2.6 as the current version.

As a sidenote, I'm having the same thing occur with my Apache upgrade that I just did too. It still thinks its version 2.0.54 instead of version 2.0.63. I tweaked my httpd.conf file, didn't make any difference.

I'm running Fedora 2.6.11-1.1369_FC4.  Any ideas where to look?

Mark


Depends upon how you installed it, rmp, yum? Were the previous versions installed the same way? You may have multiple binaries and the init scripts are pointing to the old ones.

-Shawn

--- End Message ---
--- Begin Message ---
x0ml wrote:
I've installed PHP version 5.2.6 but phpinfo() and php -v both report back the old version 5.0.2. I even copied php.ini-dist from the distribution to /etc/php.ini and restarted the physical server. It still does show version 5.2.6 as the current version.

As a sidenote, I'm having the same thing occur with my Apache upgrade that I just did too. It still thinks its version 2.0.54 instead of version 2.0.63. I tweaked my httpd.conf file, didn't make any difference.

I'm running Fedora 2.6.11-1.1369_FC4.  Any ideas where to look?

We'll need details on *how* you installed it. I'm guessing you did it from source and did a simple ./configure && make && su make install right?

This is probably a BAD way to go on a system that controls things with packages, far better to upgrade the package (which is just as simply/difficult as compiling source really - well slightly more complex but not much!).

If you just did ./configure with out specifying --prefix it will defautl to /usr/local as an install path. Can you run /usr/local/bin/php -v ?

Col


--- End Message ---
--- Begin Message --- Does anyone know if static member overloading was added in PHP 5.3? I noticed that static method overloading was (__callStatic). Thought I'd ask here before attempting to ask in the internals. Ex:

__setStatic()
__getStatic()
__isset()
__unset()

--- End Message ---

Reply via email to