[PHP] PHP build exits @ "bad magic number (not a Mach-O file)". Ideas?

2007-09-24 Thread Aliya Harbouri
Hi everybody! I'm working on building a few "similar" Dev machines on different OSs. I've finished a source build of PHP_5_2 branch cvs on a FreeBSD box. Went smoothly! I've tried the same on an OSX box. It's got mostly the same built-from-source prereqs in place as the FreeBSD box. But, build

Re: [PHP] Re: Strategy for Secure File Storage

2007-09-24 Thread brian
Kevin Murphy wrote: Ok, I'm almost there. I took what everyone said (and a few Google searches later) and built this, which works great on Firefox and Safari (both mac and PC). The $path leads to a directory outside the web root, and there is also an array with all the mime types in it ($mi

Re: [PHP] trouble trying to connect to gmail server.

2007-09-24 Thread Chris
Array ( [0] => Host not found (#11001): pop3.gmail.com ) So pop3.gmail.com doesn't exist. http://pop.gmail.com:995/pop3%7DINBOX>', '@gmail.com', '); print_r(imap_alerts()); print_r(imap_errors()); $num_mens_not_read = imap_num_recent($mbox); imap_close($mbox); ?> I get these errors: Warnin

Re: [PHP] Questions about overloading and visibility in PHP5

2007-09-24 Thread Larry Garfield
On Tuesday 18 September 2007, Andrew Ballard wrote: > > I'm guessing that the answer to all of my questions is some how > > wrapped up in visibility and overloading. Unfortunately I cannot find > > any resource that documents the interactions. TIA. > > As I understand it, the __get and __set do

Re: [PHP] Re: Strategy for Secure File Storage

2007-09-24 Thread Kevin Murphy
Ok, I'm almost there. I took what everyone said (and a few Google searches later) and built this, which works great on Firefox and Safari (both mac and PC). The $path leads to a directory outside the web root, and there is also an array with all the mime types in it ($mimetype). $file_pa

Re: [PHP] Regex æøå email validation?

2007-09-24 Thread mike
On 9/24/07, Per Jessen <[EMAIL PROTECTED]> wrote: > > Hi guys > > > > Im helping a friend with hes internet site, and I have found this > > regex email validation regex on the internet: > > > > var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a- > > z]{2,6}(?:\.[a-z]{2})?)$/i; > >

Re: [PHP] Regex æøå email validation?

2007-09-24 Thread Per Jessen
Søren Neigaard wrote: > Hi guys > > Im helping a friend with hes internet site, and I have found this > regex email validation regex on the internet: > > var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a- > z]{2,6}(?:\.[a-z]{2})?)$/i; > if(!filter.test(email)) { > return false

[PHP] Re: article: 7 reasons I switched back to PHP after 2 years on Rails

2007-09-24 Thread Colin Guthrie
Robert Cummings wrote: > On Mon, 2007-09-24 at 12:52 -0500, XIMvad wrote: >> hohoho .. maaanya :D >> http://www.oreillynet.com/ruby/blog/2007/09/7_reasons_i_switched_back_to_p_1.html > > > DUPE!!! > > Posted yesterday! :) This is why everyone accuses us PHPites o

[PHP] Re: Strategy for Secure File Storage

2007-09-24 Thread Colin Guthrie
Kevin Murphy wrote: > 1) Write secure files to MySQL as a blob (only secure files would be > written there) Personally I don't like this strategy but it is always a hot topic on this list. I don't mind storing a few small images in the db but when you start to store >200-300Megs it just complicate

Re: [PHP] Strategy for Secure File Storage

2007-09-24 Thread Jon Anderson
Kevin Murphy wrote: I'm working on a intranet site that uses an LDAP server to authenticate users and then a integrated CMS (kind of like a wiki with security features so only certain people can post things or upload files) runs the whole thing. (The CMS is custom built with PHP). I've got a

[PHP] Strategy for Secure File Storage

2007-09-24 Thread Kevin Murphy
I'm working on a intranet site that uses an LDAP server to authenticate users and then a integrated CMS (kind of like a wiki with security features so only certain people can post things or upload files) runs the whole thing. (The CMS is custom built with PHP). I've got a need to make certa

[PHP] Regex æøå email validation?

2007-09-24 Thread Søren Neigaard
Hi guys Im helping a friend with hes internet site, and I have found this regex email validation regex on the internet: var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a- z]{2,6}(?:\.[a-z]{2})?)$/i; if(!filter.test(email)) { return false; } It works fine, but my

Re: [PHP] article: 7 reasons I switched back to PHP after 2 years on Rails

2007-09-24 Thread Robert Cummings
On Mon, 2007-09-24 at 12:52 -0500, XIMvad wrote: > hohoho .. maaanya :D > http://www.oreillynet.com/ruby/blog/2007/09/7_reasons_i_switched_back_to_p_1.html DUPE!!! Posted yesterday! :) Cheers, Rob. -- ... S

[PHP] article: 7 reasons I switched back to PHP after 2 years on Rails

2007-09-24 Thread XIMvad
hohoho .. maaanya :D http://www.oreillynet.com/ruby/blog/2007/09/7_reasons_i_switched_back_to_p_1.html -- Cordialmente Victor Anaya / Analista Programador * Apisdev S.A.C. - Integral Solutions http://www.apisdev.com [EMAIL PROTECTED] Tel: (511) 271-7154 A

[PHP] trouble trying to connect to gmail server.

2007-09-24 Thread Fábio Generoso
Thanks for offer your help. I will try to explain in details what I did. First of all, on file php.ini I removed the comments for the line below: extension=php_imap.dll After that, I have followed the Gmail instructions to enable POP in my Gmail account as below: 1. Log in to your Gmail account

Re: [PHP] imagecreatefromgif fails for a valid image

2007-09-24 Thread Thushara Wijeratna
Hi Tijnema It does appear to be a GIF. See output from file command below: for now, to get by I have copied over a libgd.so verion from a working centos installation over /usr/lib/libgd.so thanks, thushara >> file >> /home/thushw/mocha_src/LiveMocha/trunk/src/wwwroot/app/webroot/img/new/button-mi

Re: [PHP] imagecreatefromgif fails for a valid image

2007-09-24 Thread Tijnema
On 9/24/07, thushw <[EMAIL PROTECTED]> wrote: > > I get a failure in creating a gif. php error log shows this: > > Sep 24 00:25:47 thushw-laptop apache2: PHP Warning: imagecreatefromgif() [ > function.imagecreatefromgif function.imagecreatefromgif ]: > '/home/thushw/mocha_src/LiveMocha/trunk/src/w

[PHP] Re: Data request

2007-09-24 Thread Colin Guthrie
Stut wrote: > Have you tried Google? It knows a lot about most things and a little > about the rest. Failing that you could try asking Henry's cat. You must know Henry's cat? He knows everything about nothing and not to much about that. So if you know someone who know what he knows then you must k

[PHP] Re: Merging PDF Documents

2007-09-24 Thread Colin Guthrie
Tom Chubb wrote: > Unfortunately I can't use shell or install anything on my shared box. > Any other suggestions? I can't remember the syntax but I'm sure there is an easy way to get one PDF to reference another and distil it into one... I remember this from way back when (and using Adobe tools wh

Re: [PHP] Merging PDF Documents

2007-09-24 Thread Tom Chubb
Unfortunately I can't use shell or install anything on my shared box. Any other suggestions? On 24/09/2007, George Pitcher <[EMAIL PROTECTED]> wrote: > Tom, > > I use a Java app called itext to merge PDFs. In my case, it's to add a PDF > cover created in PHP to a file produced in a wp/ocr package.

RE: [PHP] Access name of variable in $_POST array

2007-09-24 Thread Eric Lommatsch
-Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Friday, September 21, 2007 4:12 PM To: Eric Lommatsch Cc: php-general@lists.php.net Subject: Re: [PHP] Access name of variable in $_POST array Please include the list when replying. Eric Lommatsch wrote: > -Original Messag

RE: [PHP] Access name of variable in $_POST array

2007-09-24 Thread Eric Lommatsch
Hello Dan, First off I am sorry for not getting back to you sooner, I had a weekend and was not checking my work email The reason that I want both the name of the variable and the value of the variable is because what I need to do is create a text file that another program I am integrating with i

Re: [PHP] Data request

2007-09-24 Thread Paul Scott
On Mon, 2007-09-24 at 14:14 +0100, Stut wrote: > Have you tried Google? It knows a lot about most things and a little > about the rest. Also try have a look at the models used in flightgear - http://www.flightgear.org --Paul All Email originating from UWC is covered by disclaimer http://www.

Re: [PHP] Data request

2007-09-24 Thread Stut
Christian Hänsel wrote: as this is not directly related to PHP, I put "OT" into the subject line... Just trying to stop them watchdogs from biting me ;o) No you didn't. Chomp! Anyhow, I am looking for data, preferrably in CSV format, concerning aircraft. I do have a list of all aircraft which

[PHP] Data request

2007-09-24 Thread Christian Hänsel
Good afternoon folks, as this is not directly related to PHP, I put "OT" into the subject line... Just trying to stop them watchdogs from biting me ;o) Anyhow, I am looking for data, preferrably in CSV format, concerning aircraft. I do have a list of all aircraft which are currently crossing our

RE: [PHP] Merging PDF Documents

2007-09-24 Thread Edward Kay
> > Please can someone tell me if this is easy to do or whether I should > use a package already available... > > I want to upload a pdf file to a folder then for each subsequent > upload, I want it to be appended to the original file. Each pdf is a > timesheet, so I want to end up with one file fo

[PHP] Merging PDF Documents

2007-09-24 Thread Tom Chubb
Please can someone tell me if this is easy to do or whether I should use a package already available... I want to upload a pdf file to a folder then for each subsequent upload, I want it to be appended to the original file. Each pdf is a timesheet, so I want to end up with one file for all timeshe

Re: [PHP] Limiting connection to mysql using old mysql module (not mysqli)

2007-09-24 Thread Per Jessen
Chris wrote: >> "Happening at the same time; simultaneous." >> >>> 100 people come to your website - that's still going to be 100 >>> connections to the database, regardless of where the results come >>> from. >> >> But if that is one every hour for a hundred hours, your max >> concurrency is 1.

Re: [PHP] Limiting connection to mysql using old mysql module (not mysqli)

2007-09-24 Thread Chris
Per Jessen wrote: Chris wrote: Err yes - a query replied to out of cache will take less time to complete, therefore the connection will be given up faster, therefore less _concurrent_ connections. I guess my idea of concurrency is different to yours. http://en.wiktionary.org/wiki/concurrent

Re: [PHP] Limiting connection to mysql using old mysql module (not mysqli)

2007-09-24 Thread Per Jessen
Chris wrote: >> Err yes - a query replied to out of cache will take less time to >> complete, therefore the connection will be given up faster, therefore >> less _concurrent_ connections. > > I guess my idea of concurrency is different to yours. http://en.wiktionary.org/wiki/concurrent "Happeni

Re: [PHP] Limiting connection to mysql using old mysql module (not mysqli)

2007-09-24 Thread Chris
The number of connections is presumably only important if we speak about the number of concurrent connections. If each query can be dealt with faster due to caching, the number of concurrent connections should drop. Err no - it still has to connect to the database (thus use a connection slot)

Re: [PHP] Players Table

2007-09-24 Thread Christoph
Players NFL_Team ( varchar32 ) Fantasy_team ( varchar32 ) I player can definitely be part of only 1 NFL Team. But how are you handling your league? Is this just for a single small group of people? Or is this database to be set up for lots of leagues? If the latter,

[PHP] imagecreatefromgif fails for a valid image

2007-09-24 Thread thushw
I get a failure in creating a gif. php error log shows this: Sep 24 00:25:47 thushw-laptop apache2: PHP Warning: imagecreatefromgif() [ function.imagecreatefromgif function.imagecreatefromgif ]: '/home/thushw/mocha_src/LiveMocha/trunk/src/wwwroot/app/webroot/img/new/button-middle.gif' is not a v