[phpug] PHP and C++

2009-01-04 Thread Michael
It has been suggested to me in another forum to stay with the PHP code, except for the part that is running really s-l-o-w and code this in C/C++. How is this done? Does the PHP call another program or can I include C/C++ code in the .php file? (ps: The file is CLI, run at the command line).

[phpug] Re: PHP and C++

2009-01-04 Thread Brenda Wallace
On Mon, Jan 5, 2009 at 4:26 PM, Michael mich...@networkstuff.co.nz wrote: It has been suggested to me in another forum to stay with the PHP code, except for the part that is running really s-l-o-w and code this in C/C++. How is this done? Does the PHP call another program or can I include

[phpug] Re: PHP and C++

2009-01-04 Thread Michael
How is this done? Does the PHP call another program or can I include C/C++ code in the .php file? (ps: The file is CLI, run at the command line). Maybe a dumb question but I needed to ask. compile the C++ into an executable. call it from php: ?php shell_exec('command to

[phpug] Re: PHP and C++

2009-01-04 Thread Brenda Wallace
On Mon, Jan 5, 2009 at 4:34 PM, Michael mich...@networkstuff.co.nz wrote: How is this done? Does the PHP call another program or can I include C/C++ code in the .php file? (ps: The file is CLI, run at the command line). Maybe a dumb question but I needed to ask. compile the

[phpug] Re: PHP and C++

2009-01-04 Thread Calvin Jeong
I agree with Brenda. Save the processed data somewhere then let php handles it afterwards. On 5/01/2009, at 4:36 PM, Brenda Wallace wrote: On Mon, Jan 5, 2009 at 4:34 PM, Michael mich...@networkstuff.co.nz wrote: How is this done? Does the PHP call another program or can I include

[phpug] OT - Quick Linux question

2009-01-04 Thread Michael
Could anyone running a **Intel Core2 Duo** CPU do 'cat /proc/cpuinfo' at the command line and get back to me with the results please? Thanks, Michael --~--~-~--~~~---~--~~ NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to

[phpug] PHP Developer Role - Auckland

2009-01-04 Thread James McGlinn
Hi team, The role below is available through Jens Carlson - please apply to Jens at jens.carl...@hays.net.nz or on the number below. Kind regards, James McGlinn __ CTO Eventfinder Limited Suite 106, Heards Building 2 Ruskin Street, Parnell, Auckland 1052

[phpug] Re: OT - Quick Linux question

2009-01-04 Thread Phill Coxon
On Mon, 2009-01-05 at 17:08 +1300, Michael wrote: Could anyone running a **Intel Core2 Duo** CPU do 'cat /proc/cpuinfo' at the command line and get back to me with the results please? cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 15

[phpug] Re: OT - Quick Linux question

2009-01-04 Thread Phill Coxon
On Mon, 2009-01-05 at 17:31 +1300, Michael wrote: On Mon, 05 Jan 2009 17:27:57 Phill Coxon wrote: On Mon, 2009-01-05 at 17:08 +1300, Michael wrote: Could anyone running a **Intel Core2 Duo** CPU do 'cat /proc/cpuinfo' at the command line and get back to me with the results please?

[phpug] Re: PHP and C++

2009-01-04 Thread Julian Melville
(Prior to this part the code has recursively scanned a directory and created an array with all the path / file names). How big is the array, is something breaking out of the processor cache at this point? (something like 3 or 6 MB depending on which flavour of Core Duo you've got, I seem to

[phpug] Re: OT - Quick Linux question

2009-01-04 Thread Grant Paton-Simpson
Hi Michael, processor: 0 vendor_id: GenuineIntel cpu family: 6 model: 23 model name: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz stepping: 6 cpu MHz: 1998.000 cache size: 6144 KB physical id: 0 siblings: 2 core id: 0 cpu cores: 2

[phpug] Re: OT - Quick Linux question

2009-01-04 Thread Grant Paton-Simpson
Linux ubuntu 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686 GNU/Linux But email me directly for more Michael wrote: On Mon, 05 Jan 2009 17:27:57 Phill Coxon wrote: On Mon, 2009-01-05 at 17:08 +1300, Michael wrote: Could anyone running a **Intel Core2 Duo** CPU do 'cat

[phpug] Re: OT - Quick Linux question

2009-01-04 Thread Dmitry Ruban
Michael: On Mon, 05 Jan 2009 17:27:57 Phill Coxon wrote: On Mon, 2009-01-05 at 17:08 +1300, Michael wrote: Could anyone running a **Intel Core2 Duo** CPU do 'cat /proc/cpuinfo' at the command line and get back to me with the results please? cat /proc/cpuinfo processor : 0 vendor_id