Re: [PHP] PHP for Android

2010-11-02 Thread Daniel P. Brown
On Tue, Nov 2, 2010 at 19:21, Daniel P. Brown wrote: > >    Yeah, I gave it a shot when it came out.  Didn't work well at all > for me, but I have a feeling that's more to do with the version of > Android that Verizon pushed out.  Our DROIDs became little better than > $300/mo. paperweights.

Re: [PHP] PHP for Android

2010-11-02 Thread Daniel P. Brown
On Tue, Nov 2, 2010 at 19:10, Daevid Vincent wrote: > http://www.slideshare.net/ivmos/phpforandroid-en Yeah, I gave it a shot when it came out. Didn't work well at all for me, but I have a feeling that's more to do with the version of Android that Verizon pushed out. Our DROIDs became littl

[PHP] PHP for Android

2010-11-02 Thread Daevid Vincent
http://www.slideshare.net/ivmos/phpforandroid-en

Re: [PHP] Re: optimizing PHP for microseconds

2010-03-29 Thread Nathan Rixham
acts - then compare. For example if 3 users run the script at the same time with PHP doing the heavy lifting, will it max out the processor or push the web server in to using swap memory? If something fails (a known / handled exception) then does the process take a double hit and need run a second t

Re: [PHP] Re: optimizing PHP for microseconds

2010-03-29 Thread Peter Lind
t; >> Per Jessen wrote: >> >>> Tommy Pham wrote: >> >>> >> >>>> (I remember a list member, not mentioning his name, does optimization >> >>>> of PHP coding for just microseconds.  Do you think how much more he'd >>

Re: [PHP] Re: optimizing PHP for microseconds

2010-03-29 Thread Per Jessen
Bastien Helders wrote: > I have a question as a relatively novice PHP developper. > > Let's say you have this Intranet web application, that deals with the > generation of file bundles that could become quite large (let say in > the 800 MB) after some kind of selection process. It should be > ava

Re: [PHP] Re: optimizing PHP for microseconds

2010-03-29 Thread Bastien Helders
> >>>> (I remember a list member, not mentioning his name, does optimization > >>>> of PHP coding for just microseconds. Do you think how much more he'd > >>>> benefit from this?) > >>> Anyone who optimizes PHP for microseconds has lost to

[PHP] Re: optimizing PHP for microseconds

2010-03-28 Thread Nathan Rixham
ore he'd >>>> benefit from this?) >>> Anyone who optimizes PHP for microseconds has lost touch with reality - >>> or at least forgotten that he or she is using an interpreted language. >> But sometimes it's just plain fun to do it here on the list with &g

Re: [PHP] RE: optimizing PHP for microseconds

2010-03-26 Thread Per Jessen
Daevid Vincent wrote: > Was that someone me? I do that. And if you don't, then you're the kind > of person I would not hire (not saying that to sound mean). If you do, I'd would be careful about hiring you. To me, optimizing for microseconds in PHP means loss of focus. > I use single quotes in

Re: [PHP] RE: optimizing PHP for microseconds

2010-03-25 Thread Robert Cummings
Tommy Pham wrote: On Thu, Mar 25, 2010 at 8:15 PM, Robert Cummings wrote: Daevid Vincent wrote: -Original Message- From: Robert Cummings [mailto:rob...@interjinn.com] Sent: Thursday, March 25, 2010 7:16 PM Daevid Vincent wrote: If I have to wait 3 seconds for a page to render, that

Re: [PHP] RE: optimizing PHP for microseconds

2010-03-25 Thread Tommy Pham
On Thu, Mar 25, 2010 at 8:15 PM, Robert Cummings wrote: > Daevid Vincent wrote: >> >> >>> >>> -Original Message- >>> From: Robert Cummings [mailto:rob...@interjinn.com] Sent: Thursday, March >>> 25, 2010 7:16 PM >>> >>> Daevid Vincent wrote: If I have to wait 3 seconds for a page

Re: [PHP] RE: optimizing PHP for microseconds

2010-03-25 Thread Robert Cummings
Daevid Vincent wrote: -Original Message- From: Robert Cummings [mailto:rob...@interjinn.com] Sent: Thursday, March 25, 2010 7:16 PM Daevid Vincent wrote: If I have to wait 3 seconds for a page to render, that wait is noticeable. Dumb users will click refresh, and since (unbelievab

RE: [PHP] RE: optimizing PHP for microseconds

2010-03-25 Thread Daevid Vincent
> -Original Message- > From: Robert Cummings [mailto:rob...@interjinn.com] > Sent: Thursday, March 25, 2010 7:16 PM > > Daevid Vincent wrote: > > > > If I have to wait 3 seconds for a page to render, that wait > is noticeable. > > Dumb users will click refresh, and since (unbelievably

Re: [PHP] RE: optimizing PHP for microseconds

2010-03-25 Thread Robert Cummings
Daevid Vincent wrote: If I have to wait 3 seconds for a page to render, that wait is noticeable. Dumb users will click refresh, and since (unbelievably in this day and age) PHP and mySQL don't know the user clicked 'stop' or 'refresh', and therefore mySQL will execute the same query a second tim

[PHP] RE: optimizing PHP for microseconds

2010-03-25 Thread Daevid Vincent
> > Tommy Pham wrote: > > > >> (I remember a list member, not mentioning his name, does optimization > >> of PHP coding for just microseconds. Do you think how much more he'd > >> benefit from this?) > > > > Anyone who optimizes PHP for micro

[PHP] Help on compiling PHP for MIPS, Bus Error thrown

2010-01-22 Thread Angel Sánchez
Hi guys! I've been trying to cros-compile PHP for an embedded MIPS device with no luck, so I decided to build a developing environment inside a virtual machine with QEMU for developing PHP inside first. I have been trying different options for configure and all I get is a Bus Erro 138

Re: [PHP] for the security minded web developer - secure way to login?

2009-02-15 Thread German Geek
Hi All again, What makes it so expensive to have a certificate? I mean, wouldn't it be possible to setup a new authority that doesn't charge as much or nothing at all? Wouldn't the major browsers be willing to support an authority that is free or costs next to nothing? I pay about $200 a year for

Re: [PHP] for the security minded web developer - secure way to login?

2009-02-15 Thread Michael A. Peters
German Geek wrote: OK, i hear about this self signed certificate. Whenever i signed anything it just came up with all these warnings in FF which confuses users and i think is not good at all. Can someone paste a link in here to a website with a self signed cert please? Would like to see if there

Re: [PHP] for the security minded web developer - secure way to login?

2009-02-15 Thread German Geek
OK, i hear about this self signed certificate. Whenever i signed anything it just came up with all these warnings in FF which confuses users and i think is not good at all. Can someone paste a link in here to a website with a self signed cert please? Would like to see if there are any warnings etc.

Re: [PHP] for the security minded web developer - secure way to login?

2009-02-14 Thread Michael A. Peters
Sudheer wrote: Michael A. Peters wrote: Sites (like mine) that don't want to pay a certificate authority can use a self-signed cert. Even Red Hat does for some of their stuff (IE I believe their bugzilla server) Firefox scares its users when they encounter a website with self signed certif

Re: [PHP] for the security minded web developer - secure way to login?

2009-02-14 Thread Sudheer
Firefox scares its users when they encounter a website with self signed certificate. If your website users aren't worried about the warning Firefox throws at them, self signed cert works well. I just realized Dotan Cohen already mentioned this. -- With warm regards, Sudheer. S Busines

Re: [PHP] for the security minded web developer - secure way to login?

2009-02-14 Thread Sudheer
Michael A. Peters wrote: German Geek wrote: Hi gang, Was just thinking of a cheap solution for sites that don't require absolute security. A SSL cert cost about $150 a year. Sites like facebook could use this... Sites (like mine) that don't want to pay a certificate authority can use a se

Re: [PHP] for the security minded web developer - secure way to login?

2009-02-14 Thread Michael A. Peters
German Geek wrote: Hi gang, Was just thinking of a cheap solution for sites that don't require absolute security. A SSL cert cost about $150 a year. Sites like facebook could use this... Sites (like mine) that don't want to pay a certificate authority can use a self-signed cert. Even Red Hat

Re: [PHP] for the security minded web developer - secure way to login?

2009-02-14 Thread German Geek
Hi gang, Was just thinking of a cheap solution for sites that don't require absolute security. A SSL cert cost about $150 a year. Sites like facebook could use this... Of course it's not for banks etc. You could degrade gracefully when javascript is turned off to just sending the form and checkin

Re: [PHP] for the security minded web developer - secure way to login?

2009-02-14 Thread Michael A. Peters
Dotan Cohen wrote: Have you seen the fit Firefox 3 makes for self-signed certs? So far as the end user is concerned, the site is inaccesible. Yes I have. That's why on my site I have an instruction page - and a demonstration of how Opera does it, which is just as secure and less of a PITA,

Re: [PHP] for the security minded web developer - secure way to login?

2009-02-14 Thread Dotan Cohen
> I think just use a flippin' ssl server and be done with it. > ++$i > When I go to a website that requires me to let them execute JavaScript I > rarely go back. > Many people do this, I hope that the OP realizes this. > You can use SSL for the login and only the login - I know that it means >

Re: [PHP] for the security minded web developer - secure way to login?

2009-02-14 Thread Per Jessen
Michael A. Peters wrote: > German Geek wrote: > > > What do you think? > > I think just use a flippin' ssl server and be done with it. > That was my thought too. > You can use SSL for the login and only the login - I know that it > means either using a self signed cert or paying big bucks,

Re: [PHP] for the security minded web developer - secure way to login?

2009-02-14 Thread Michael A. Peters
German Geek wrote: > What do you think? I think just use a flippin' ssl server and be done with it. When I go to a website that requires me to let them execute JavaScript I rarely go back. You can use SSL for the login and only the login - I know that it means either using a self signed cer

[PHP] for the security minded web developer - secure way to login?

2009-02-14 Thread German Geek
Hi All, A few months ago it came to my mind, that it might be possible to make non-https session (reasonably) secure by at least not letting people login that shouldn't because they might have sniffed the password from a user. Please let me know if you can find a loop hole in this process. I think

Re: [PHP] for the sake of conversation - syntax

2008-09-30 Thread Stut
On 30 Sep 2008, at 17:40, Nathan Rixham wrote: Stut wrote: Consider this... file1.php: package arse { class bandit { ... } } package nipple { class clamp { ... } } file2.php: import file1 as chest; Which package have I aliased as chest in file2.php? This could be

Re: [PHP] for the sake of conversation - syntax

2008-09-30 Thread tedd
At 3:36 PM +0100 9/30/08, Stut wrote: There was a cracking suggestion a week or so ago that the $ prefix for variables should be removed. Can you imagine the community backlash at such a pointless change!! -Stut Well... there's always one. I try hard not to be it. :-) I just learned the ot

Re: [PHP] for the sake of conversation - syntax

2008-09-30 Thread Nathan Rixham
Stut wrote: On 30 Sep 2008, at 16:57, Nathan Rixham wrote: Stut wrote: On 30 Sep 2008, at 14:00, Nathan Rixham wrote: Stut wrote: On 29 Sep 2008, at 12:47, Nathan Rixham wrote: import com.anotherdom.MysqlDbHandler as DbHandlerA; import com.somedom.DbHandler as DbHandlerB; # "as" makes this e

Re: [PHP] for the sake of conversation - syntax

2008-09-30 Thread Stut
On 30 Sep 2008, at 16:57, Nathan Rixham wrote: Stut wrote: On 30 Sep 2008, at 14:00, Nathan Rixham wrote: Stut wrote: On 29 Sep 2008, at 12:47, Nathan Rixham wrote: import com.anotherdom.MysqlDbHandler as DbHandlerA; import com.somedom.DbHandler as DbHandlerB; # "as" makes this easier impo

Re: [PHP] for the sake of conversation - syntax

2008-09-30 Thread Nathan Rixham
Stut wrote: On 30 Sep 2008, at 14:00, Nathan Rixham wrote: Stut wrote: On 29 Sep 2008, at 12:47, Nathan Rixham wrote: import com.anotherdom.MysqlDbHandler as DbHandlerA; import com.somedom.DbHandler as DbHandlerB; # "as" makes this easier import com.mydom.thatpackage.RssParser; # we don't have

Re: [PHP] for the sake of conversation - syntax

2008-09-30 Thread Stut
On 30 Sep 2008, at 14:00, Nathan Rixham wrote: Stut wrote: On 29 Sep 2008, at 12:47, Nathan Rixham wrote: import com.anotherdom.MysqlDbHandler as DbHandlerA; import com.somedom.DbHandler as DbHandlerB; # "as" makes this easier import com.mydom.thatpackage.RssParser; # we don't have to "as" Woul

Re: [PHP] for the sake of conversation - syntax

2008-09-30 Thread Nathan Rixham
Stut wrote: On 29 Sep 2008, at 12:47, Nathan Rixham wrote: Last week I got to thinking about PHP vs other languages.. sparing the details this is what I decided I'd like my code to look like :) [what *I* /as an OO developer/ need(?want)] Looks a lot like Java, not that that's a bad thing.

Re: [PHP] for the sake of conversation - syntax

2008-09-30 Thread Stut
On 29 Sep 2008, at 12:47, Nathan Rixham wrote: Last week I got to thinking about PHP vs other languages.. sparing the details this is what I decided I'd like my code to look like :) [what *I* /as an OO developer/ need(?want)] Looks a lot like Java, not that that's a bad thing. { Comple

[PHP] for the sake of conversation - syntax

2008-09-29 Thread Nathan Rixham
Afternoon All, Last week I got to thinking about PHP vs other languages.. sparing the details this is what I decided I'd like my code to look like :) [what *I* /as an OO developer/ need(?want)] xmlString = TidySpace::tidy_repair_string( $xml ); } } } } ?> all purely a made up e

Re: [PHP] quick php for perl coder question

2008-09-11 Thread Kirk . Johnson
Thomas Bolioli <[EMAIL PROTECTED]> wrote on 09/11/2008 01:10:18 PM: > I want to return an array from a function. > I have this: > return array($found, $username, $email, $nickname); > as my code. I have a bug in the code and I am not sure where yet. Should > the above statement with this: > > a

Re: [PHP] quick php for perl coder question

2008-09-11 Thread Jochem Maas
Thomas Bolioli schreef: I want to return an array from a function. I have this: return array($found, $username, $email, $nickname); as my code. I have a bug in the code and I am not sure where yet. Should the above statement with this: array($vars); not sure what you meant with the line abov

[PHP] quick php for perl coder question

2008-09-11 Thread Thomas Bolioli
I want to return an array from a function. I have this: return array($found, $username, $email, $nickname); as my code. I have a bug in the code and I am not sure where yet. Should the above statement with this: array($vars); $vars = function($type, $abc, $xyz); $found = $vars[0]; $use

[PHP] for loop inside a switch

2007-08-31 Thread jekillen
On Aug 31, 2007, at 6:26 PM, Robert Cummings wrote: On Fri, 2007-08-31 at 15:56 -0700, Dan wrote: Sanjeev is right. You're thinking about the problem backwards. You're trying to build a Switch inside a loop. Remember, if you ever have to do some operating multiple times you're using a forlo

Re: [PHP] for loop inside a switch

2007-08-31 Thread Robert Cummings
On Fri, 2007-08-31 at 15:56 -0700, Dan wrote: > Sanjeev is right. You're thinking about the problem backwards. You're > trying to build a Switch inside a loop. Remember, if you ever have to do > some operating multiple times you're using a forloop, then the thing that > you want to repeat(swi

Re: [PHP] for loop inside a switch

2007-08-31 Thread Dan
age- From: Hulf [mailto:[EMAIL PROTECTED] Sent: Thursday, August 16, 2007 3:11 PM To: php-general@lists.php.net Subject: [PHP] for loop inside a switch Hi, switch ($q) { for ($i=0; $i <21; $i++) { case 'faq$i': echo $faq1; break; } } I just want to loop out a b

Re: [PHP] for/foreach speed

2007-08-26 Thread Richard Lynch
On Mon, August 20, 2007 11:50 am, Sascha Braun, CEO @ fit-o-matic wrote: > could somebody please explain me, what loop construct is > faster? The for, while or foreach. If you are doing anything where the speed of for/while/foreach matters, you shouldn't have done that in PHP in the first place, b

Re: [PHP] for/foreach speed

2007-08-20 Thread Sascha Braun, CEO @ fit-o-matic
Thank you very much. When we might have time for testing we can wager :)) Am Montag, den 20.08.2007, 13:21 -0400 schrieb Robert Cummings: > On Mon, 2007-08-20 at 18:50 +0200, Sascha Braun, CEO @ fit-o-matic > wrote: > > Hi people, > > > > could somebody please explain me, what loop construct is >

Re: [PHP] for/foreach speed

2007-08-20 Thread Robert Cummings
On Mon, 2007-08-20 at 18:50 +0200, Sascha Braun, CEO @ fit-o-matic wrote: > Hi people, > > could somebody please explain me, what loop construct is > faster? The for, while or foreach. I haven't bothered testing but I'd wager $5 that the following is the fastest loop: Depending on bytecode cre

[PHP] for/foreach speed

2007-08-20 Thread Sascha Braun, CEO @ fit-o-matic
Hi people, could somebody please explain me, what loop construct is faster? The for, while or foreach. I at the moment don't know if there are more. And thanks to the person who is missusing the list here for sending trojan horses everywhere. Since I write to the PHP General list I am receiving

RE: [PHP] for loop inside a switch

2007-08-17 Thread Sanjeev N
16, 2007 3:11 PM To: php-general@lists.php.net Subject: [PHP] for loop inside a switch Hi, switch ($q) { for ($i=0; $i <21; $i++) { case 'faq$i': echo $faq1; break; } } I just want to loop out a big long list of cases. -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] for loop inside a switch

2007-08-16 Thread Jim Lucas
Hulf wrote: Hi, switch ($q) { for ($i=0; $i <21; $i++) { case 'faq$i': echo $faq1; break; } } I just want to loop out a big long list of cases. are the case's that you want to create with the loop going to be the only case statements in the switch? -- Jim Lucas "Some men are

Re: [PHP] for loop inside a switch

2007-08-16 Thread Dimiter Ivanov
On 8/16/07, Hulf <[EMAIL PROTECTED]> wrote: > Hi, > > switch ($q) { > > for ($i=0; $i <21; $i++) { > case 'faq$i': > echo $faq1; > break; > } > } > > > I just want to loop out a big long list of cases. Maybe you want this kind of functionality : http://www.php.net/manual/en/language.varia

Re: [PHP] for loop inside a switch

2007-08-16 Thread Stut
Hulf wrote: Hi, switch ($q) { for ($i=0; $i <21; $i++) { case 'faq$i': echo $faq1; break; } } I just want to loop out a big long list of cases. That's not a valid construct, but if I understand what you're trying do, this should work... $faqs = array(); for ($i = 0; $i < 21; $i+

Re: [PHP] for loop inside a switch

2007-08-16 Thread Mohamed Yusuf
I don't think it is going to work. IMO On 8/16/07, Hulf <[EMAIL PROTECTED]> wrote: > > Hi, > > switch ($q) { > > for ($i=0; $i <21; $i++) { > case 'faq$i': > echo $faq1; > break; > } > } > > > I just want to loop out a big long list of cases. > > -- > PHP General Mailing List (http://www.p

[PHP] for loop inside a switch

2007-08-16 Thread Hulf
Hi, switch ($q) { for ($i=0; $i <21; $i++) { case 'faq$i': echo $faq1; break; } } I just want to loop out a big long list of cases. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Latest PHP for Mac OS X 10.3.9 (Panther)

2007-06-21 Thread Greg Donald
On 6/21/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote: Is there any other way to get latest PHP releases for Mac OS X 10.3.9? In my opinion building from source is the best option. You'll not be depending on someone else to provide it for your specific OS version nor will you be tied to t

Re: [PHP] Latest PHP for Mac OS X 10.3.9 (Panther)

2007-06-21 Thread Eric Butera
On 6/21/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote: Ave, I¹m looking for the latest PHP releases (5.2.2 or higher) for Mac OS X 10.3.9 (Panther). Entropy.ch is only providing releases for Mac OS X 10.4 (Tiger), in fact there stable PHP 5.2.2 release won¹t even install on < 10.4 Mac¹s.

[PHP] Latest PHP for Mac OS X 10.3.9 (Panther)

2007-06-21 Thread Rahul Sitaram Johari
Ave, I¹m looking for the latest PHP releases (5.2.2 or higher) for Mac OS X 10.3.9 (Panther). Entropy.ch is only providing releases for Mac OS X 10.4 (Tiger), in fact there stable PHP 5.2.2 release won¹t even install on < 10.4 Mac¹s. Is there any other way to get latest PHP releases for Mac OS

[PHP] For those who havent seen this

2006-12-19 Thread Ólafur Waage
http://dbug.ospinto.com/ Turns arrays into a table for visual debugging. I've been using this for a few things here and there, it itsnt so often here that we link nifty little gadgets so here is one. - Olafur -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

[PHP] Re: Mail que system written in PHP for Linux?

2006-07-16 Thread Manuel Lemos
Hello, on 07/15/2006 01:07 AM eastcoastguyz said the following: > I have a client who's web site needs to send out opt-in e-mail. I > contacted the web hosting service who they intend to host this with and > they have a limit of 500 e-mail messages sent per hour. I suspect most > web hosting servi

Re: [PHP] For Loop

2006-06-20 Thread D. Dante Lorenso
Albert Padley wrote: Thanks everyone. Always nice to know there is more than one direction to go in. A alternative to variable variables might use these: http://us3.php.net/manual/en/function.compact.php http://us3.php.net/manual/en/function.extract.php 'extract' looks like it might be

Re: [PHP] For Loop

2006-06-20 Thread Robert Cummings
On Tue, 2006-06-20 at 19:19, Albert Padley wrote: > Thanks everyone. Always nice to know there is more than one direction > to go in. > > Albert > > > On Jun 20, 2006, at 4:52 PM, Ray Hauge wrote: > > > On Tuesday 20 June 2006 15:28, Adam Zey wrote: > >> Ray Hauge wrote: > >>> On Tuesday 20 J

Re: [PHP] For Loop

2006-06-20 Thread Albert Padley
Thanks everyone. Always nice to know there is more than one direction to go in. Albert On Jun 20, 2006, at 4:52 PM, Ray Hauge wrote: On Tuesday 20 June 2006 15:28, Adam Zey wrote: Ray Hauge wrote: On Tuesday 20 June 2006 15:14, Albert Padley wrote: I have a regular for loop - for($i=1; $

Re: [PHP] For Loop

2006-06-20 Thread Ray Hauge
On Tuesday 20 June 2006 15:28, Adam Zey wrote: > Ray Hauge wrote: > > On Tuesday 20 June 2006 15:14, Albert Padley wrote: > >> I have a regular for loop - for($i=1; $i<100; $i++) > >> > >> Within the loop I need to create variables named: > >> > >> $p1name; > >> $p2name; > >> $p3name; > >> etc. > >

Re: [PHP] For Loop

2006-06-20 Thread David Tulloh
Are you sure that you don't want an array? Arrays are normally much better for this type of thing. That said, ${"p{$i}name"} = 'foo'; David Albert Padley wrote: > I have a regular for loop - for($i=1; $i<100; $i++) > > Within the loop I need to create variables named: > > $p1name; > $p2name;

Re: [PHP] For Loop

2006-06-20 Thread Adam Zey
Ray Hauge wrote: On Tuesday 20 June 2006 15:14, Albert Padley wrote: I have a regular for loop - for($i=1; $i<100; $i++) Within the loop I need to create variables named: $p1name; $p2name; $p3name; etc. The integer portion of each variable name needs to be the value of $i. I can't seem to ge

Re: [PHP] For Loop

2006-06-20 Thread Jeffrey Sambells
for($i=1; $i<100; $i++) { ${'p'.$i.'name'} = 'whatever'; } - jeff On 20-Jun-06, at 6:14 PM, Albert Padley wrote: I have a regular for loop - for($i=1; $i<100; $i++) Within the loop I need to create variables named: $p1name; $p2name; $p3name; etc. The integer portion of each variable

Re: [PHP] For Loop

2006-06-20 Thread Ray Hauge
On Tuesday 20 June 2006 15:14, Albert Padley wrote: > I have a regular for loop - for($i=1; $i<100; $i++) > > Within the loop I need to create variables named: > > $p1name; > $p2name; > $p3name; > etc. > > The integer portion of each variable name needs to be the value of $i. > > I can't seem to ge

[PHP] For Loop

2006-06-20 Thread Albert Padley
I have a regular for loop - for($i=1; $i<100; $i++) Within the loop I need to create variables named: $p1name; $p2name; $p3name; etc. The integer portion of each variable name needs to be the value of $i. I can't seem to get my syntax correct? Can someone point me in the right direction? Tha

[PHP] Re: PHP for Mac

2006-01-15 Thread David Hall
Richard Correia wrote: Hi, I want to install PHP5 on Mac powerbook G4. Can someone please let me know where I can find it and it's related module? I am mainly looking for GD and mingswf module on Mac. http://www.phpmac.com/articles.php?view=244 very good instructions on compiling. As shown

Re: [PHP] PHP for Mac

2006-01-13 Thread Ted Zeng
Go here: http://www.entropy.ch/home/ Download the installer you want and run it. Easy and works great for me. GD is included I believe. Ted zeng On 1/12/06 10:29 PM, "Richard Correia" <[EMAIL PROTECTED]> wrote: > Hi, > > I want to install PHP5 on Mac powerbook G4. Can someone please let m

Re: [PHP] PHP for Mac

2006-01-13 Thread David Grant
Richard, Caveat: I'm not a OS X user, so this information may not help you. Richard Correia wrote: > I want to install PHP5 on Mac powerbook G4. Can someone please let me know > where I can find it and it's related module? The installation instructions for OS X on PHP.net[1] points to this[2] r

[PHP] PHP for Mac

2006-01-12 Thread Richard Correia
Hi, I want to install PHP5 on Mac powerbook G4. Can someone please let me know where I can find it and it's related module? I am mainly looking for GD and mingswf module on Mac. Thanks Richard

Re: [PHP] Using PHP for accsess control, preventing access to static files

2005-10-29 Thread Richard Lynch
On Thu, October 27, 2005 11:05 am, Dan Trainor wrote: > It's been suggested to use readfile() to accomplish this, by > forwarding > content from outside of the document root - but this just sounds odd. > On top of being (what I think would be) incredibly slow, it just > doesn't > sound "right". A)

Re: [PHP] Using PHP for accsess control, preventing access to static files

2005-10-28 Thread Richard Heyes
Dan Trainor wrote: Hello, all - I'm designing a controlled access system in PHP, and it's coming along quite well. It's very simple, and just sets a session varibale, such as $_SESSION['authenticated'] = 1, not a whole lot. If you do this this, you must make sure you have some sort of session

Re: [PHP] Using PHP for accsess control, preventing access to staticfiles

2005-10-27 Thread Jeffrey Sambells
I ran into a similar problem and came up with a slightly different solution... As an alternative to passing the file directly through PHP, if you are running apache, you could DENY access to all files in a directory and then use PHP to dynamically update a local .htaccess file with valid

Re: [PHP] Using PHP for accsess control, preventing access to staticfiles

2005-10-27 Thread Dan Trainor
Ben wrote: > Dan Trainor said the following on 10/27/2005 01:34 PM: > >> Ben wrote: >> >>> Move the files outside the document root so that they aren't available >>> via a direct URL, then create a 'file access page' in php that will >>> check for the session variable and either send or not send t

Re: [PHP] Using PHP for accsess control, preventing access to staticfiles

2005-10-27 Thread Ben
Dan Trainor said the following on 10/27/2005 01:34 PM: Ben wrote: Move the files outside the document root so that they aren't available via a direct URL, then create a 'file access page' in php that will check for the session variable and either send or not send the file based on whether the us

Re: [PHP] Using PHP for accsess control, preventing access to staticfiles

2005-10-27 Thread Dan Trainor
Ben wrote: > Dan Trainor said the following on 10/27/2005 10:39 AM: > >> Jason Motes wrote: > > However, how do people protect against the downloading of real files, ones which are not parsed by PHP? .WMV, .MOV, .ZIP, .EXE and so on? I want to protect access to these as well, an

Re: [PHP] Using PHP for accsess control, preventing access to staticfiles

2005-10-27 Thread Ben
Dan Trainor said the following on 10/27/2005 10:39 AM: Jason Motes wrote: However, how do people protect against the downloading of real files, ones which are not parsed by PHP? .WMV, .MOV, .ZIP, .EXE and so on? I want to protect access to these as well, and if a visitor just types in a URL

Re: [PHP] Using PHP for accsess control, preventing access to static files

2005-10-27 Thread Dan Trainor
Jason Motes wrote: >> >> I'm designing a controlled access system in PHP, and it's coming along >> quite well. It's very simple, and just sets a session varibale, such as >> $_SESSION['authenticated'] = 1, not a whole lot. >> >> Now I run a small sniplet of code on the top of each HTML and PHP fil

Re: [PHP] Using PHP for accsess control, preventing access to static files

2005-10-27 Thread Jason Motes
I'm designing a controlled access system in PHP, and it's coming along quite well. It's very simple, and just sets a session varibale, such as $_SESSION['authenticated'] = 1, not a whole lot. Now I run a small sniplet of code on the top of each HTML and PHP file, which checks for this variable,

[PHP] Using PHP for accsess control, preventing access to static files

2005-10-27 Thread Dan Trainor
Hello, all - I'm designing a controlled access system in PHP, and it's coming along quite well. It's very simple, and just sets a session varibale, such as $_SESSION['authenticated'] = 1, not a whole lot. Now I run a small sniplet of code on the top of each HTML and PHP file, which checks for th

Re: [PHP] use php for non-web development

2005-03-31 Thread Marek Kilimajer
DemonGloom wrote: subj. its really to develop on php language applications with GUI (for windows/linux), but not php-gtk. Go ahead and implement wxWindows extension. Or Qt, or fltk, or... :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] use php for non-web development

2005-03-31 Thread DemonGloom
subj. its really to develop on php language applications with GUI (for windows/linux), but not php-gtk. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [PHP-WIN] setting php for accepting the urls... phpinfo.php/extra/information/

2005-03-21 Thread Elizabeth Smith
Leif Gregory wrote: Hello Rob, Saturday, March 19, 2005, 2:39:08 AM, you wrote: R> could someone possibly point me in the right direction for allow R> PHP on IIS 6 to accept urls with the query string seperated by R> slashes.. This is called "slash arguments" and IIS can not natively handle it. I r

[PHP] Re: [PHP-WIN] setting php for accepting the urls... phpinfo.php/extra/information/

2005-03-19 Thread Leif Gregory
Hello Rob, Saturday, March 19, 2005, 2:39:08 AM, you wrote: R> could someone possibly point me in the right direction for allow R> PHP on IIS 6 to accept urls with the query string seperated by R> slashes.. This is called "slash arguments" and IIS can not natively handle it. I ran into this issue

Re: [PHP] For HomeSite users...

2005-01-20 Thread daniel
> > .org don't work but www.phpeclipse.de does. > Sorry yeh , anyway it took me a while to change, but with all the added plugins i now have a cooolIDE which does cvs, debugging, xml, html, xsl testing, db schema, db modeller, uml, java, tomcat,team syncing, the list goes on. One thing i cant ma

Re: [PHP] For HomeSite users...

2005-01-20 Thread Danny Brow
.org don't work but www.phpeclipse.de does. Dan. On Fri, 2005-01-21 at 12:06 +1100, [EMAIL PROTECTED] wrote: > I havent used Homesite in years, I am now an Eclipse advocate :) > > www.phpeclipse.org :) > > > > OMG! > > > > This is quite possibly the coolest thing I've found in a while, and it

Re: [PHP] For HomeSite users...

2005-01-20 Thread daniel
I havent used Homesite in years, I am now an Eclipse advocate :) www.phpeclipse.org :) > OMG! > > This is quite possibly the coolest thing I've found in a while, and it > breathes new life into my aging HomeSite+ v5.2 (now that Macromedia > isn't really updating it and is focusing more on their

[PHP] For HomeSite users...

2005-01-20 Thread Daevid Vincent
OMG! This is quite possibly the coolest thing I've found in a while, and it breathes new life into my aging HomeSite+ v5.2 (now that Macromedia isn't really updating it and is focusing more on their DreamWeaver line). http://www.wilk4.com/asp4hs/installation.htm#parser http://www.wilk4.com/asp4h

[PHP] for win, does sapi/cgi fastcgi handle only 1 request at a time?

2004-12-30 Thread Xuefer Tinys
seems it will block all other php requests i've looked into the source, and seems it's only pre-fork under *nix not win any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] want a binary PHP for SCO OpenServer 5.0.5

2004-12-19 Thread shimuqiheb
I want to a binary php,used in SCO 5.0.5 ,Who can help me.

Re: [PHP] For Loop

2004-12-08 Thread Travis Conway
ot; <[EMAIL PROTECTED]> Sent: Wednesday, December 08, 2004 3:41 PM Subject: [PHP] For Loop I have a question about the following code: ** $months_arr = array("JAN", "FEB", "MAR", "APR", "MAY", "JUN&qu

Re: [PHP] For Loop

2004-12-08 Thread hitek
ed PM 04:41:00 EST > To: "'PHP general'" <[EMAIL PROTECTED]> > Subject: [PHP] For Loop > > I have a question about the following code: > > ** > > $months_arr = array("JAN", "FEB", &

Re: [PHP] For Loop

2004-12-08 Thread Gareth Williams
What happens is (if I understand it correctly): First, PHP sets $i to equal 0, and then immediately sets $i to $months_arr_length. Every time the loop executes, it resets $1 to $months_arr_length, so you are stuck in an infinite loop. The reason behind this is you are using assignment equals (=

[PHP] For Loop

2004-12-08 Thread R. Van Tassel
I have a question about the following code: ** $months_arr = array("JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC"); $months_arr_length = count($months_arr); for($i = 0; $i = $months_arr_length; $i++){ echo $m

Re: [PHP] Re: Which PHP for MySQL 4.1

2004-11-12 Thread Sebastian Mendel
Mario Bittencourt wrote: I could not compile php 5.0.2 with the latest mysql 4.1.7. I've installed the rpms (server,max,client,devel,shared) from mysql.com. ./configure --with-mnogosearch --with-xml --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config --with-apxs2 --enable-soap When I compile I g

Re: [PHP] Re: Which PHP for MySQL 4.1

2004-11-12 Thread John Nichel
Mario Bittencourt wrote: I could not compile php 5.0.2 with the latest mysql 4.1.7. I've installed the rpms (server,max,client,devel,shared) from mysql.com. ./configure --with-mnogosearch --with-xml --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config --with-apxs2 --enable-soap When I compile I g

Re: [PHP] Re: Which PHP for MySQL 4.1

2004-11-12 Thread Mario Bittencourt
I could not compile php 5.0.2 with the latest mysql 4.1.7. I've installed the rpms (server,max,client,devel,shared) from mysql.com. ./configure --with-mnogosearch --with-xml --with-mysql=/usr --with-mysqli=/usr/bin/mysql_config --with-apxs2 --enable-soap When I compile I get tons of messages li

[PHP] Re: Which PHP for MySQL 4.1

2004-11-12 Thread Sebastian Mendel
C.F. Scheidecker Antunes wrote: Hello, I would like to migrate my MySQL servers from 4.0 to 4.1. As I use PHP as well as Java with these servers I wonder what PHP 4 version would be compatible with MySQL 4.1. Has anyone used MySQL 4.1 with PHP yet? I appreciate your thoughts. Thanks. i run 4.1.x

  1   2   3   4   >