RE: [PHP] Small LAMP install/distro

2007-06-21 Thread Warren Vail
I can recommend Fedora Core 6, it has more uptodate Apache, PHP and MySQL, than does Red Hat Enterprise 4, which is what the company I consult for installed on their VM-ware environment. We spent a lot of time upgrading everything on the VM Host because the RH Enterprise was so far behind. I run

RE: [PHP] Small LAMP install/distro

2007-06-21 Thread tg-php
Yeah.. I'm aware. As I stated in my original email: "Ideally I'd like to keep using my traditional Windows apps to do development..." I'm comfortable moving around in linux, but the tools and OS I choose to use are all Windows-centric. But instead of installing Apache and PHP and MySQL on m

RE: [PHP] Small LAMP install/distro

2007-06-21 Thread Robert Cummings
On Thu, 2007-06-21 at 16:05 -0700, Warren Vail wrote: > Did you know that VM-ware actually runs under RH linux? Doesn't it run under pretty much every OS? Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com |

Re: [PHP] Reoccuring task manager feature enhancement

2007-06-21 Thread Chris
Jason Pruim wrote: Okay, so I don't even have the whole system up and working quite yet that Dan Brown typed out for me in another e-mail and I have people wanting new features... They would like to be able to schedule things to happen every other week, once a month on a certain day, quarterly,

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] strtotime returns 00:00 for 7am

2007-06-21 Thread Greg Donald
On 6/20/07, Phil Princely <[EMAIL PROTECTED]> wrote: using this code: function test_time($time_string) { echo strftime("%X %A, %b %e\n", strtotime($time_string)); You should be testing the strtotime() call's return value, it returns false on failure. if (($timestamp = strtotime($str)) ===

Re: [PHP] Is There a Function to .... to [yada] ..... [/yada]?

2007-06-21 Thread Greg Donald
On 6/21/07, Stephen <[EMAIL PROTECTED]> wrote: I am hoping for something that checks for matching open and closing markup, and will leave < and > unchanged, otherwise. You'll get much more help by posting your own (broken) attempt at coding this than just "hoping" for someone to do it for yo

RE: [PHP] Small LAMP install/distro

2007-06-21 Thread Warren Vail
Did you know that VM-ware actually runs under RH linux? Warren -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 21, 2007 1:16 PM To: php-general@lists.php.net Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Small LAMP install/distro Yeah, I took a quick

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Greg Donald
On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: > Cool, please go to the following url and clickthe button: > > http://gpcc.tijnema.info/ Where's the 'no' option ? I call shenanigans. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Tijnema
On 6/21/07, Justin P. Goldberg <[EMAIL PROTECTED]> wrote: Matt Cutts blogged about color-coding messages in his inbox like Mutt does, http://www.mattcutts.com/blog/keep-it-coming-gmail/ and the solution he found, http://www.mattcutts.com/blog/other-googlers-you-should-read/ This doesn't do wha

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Justin P. Goldberg
Matt Cutts blogged about color-coding messages in his inbox like Mutt does, http://www.mattcutts.com/blog/keep-it-coming-gmail/ and the solution he found, http://www.mattcutts.com/blog/other-googlers-you-should-read/ This doesn't do what you want though. I think a firefox addon or greasemonkey

Re: [PHP] Small LAMP install/distro

2007-06-21 Thread tg-php
Yeah, I took a quick look at Damn Small Linux. And have been playing around with Puppy Linux (which is pretty cool too). I may end up using one of those. Wanted to see if there was a distro with everything built into it already (Damn Small seems to have a lot of average user apps and not rea

Re: [PHP] Small LAMP install/distro

2007-06-21 Thread Daniel Brown
On 6/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Ok, done all my googling and experimenting, now I'm tossing it to you guys. Can anyone recommend a small, no frills, LAMP-centric linux package/distro? What I'm doing is setting up a test/development environment in a VMWare virtual machi

Re: [PHP] If statement duplicating mysql records?

2007-06-21 Thread Jim Lucas
Jason Pruim wrote: On Jun 21, 2007, at 1:58 PM, Roberto Mansfield wrote: Jason Pruim wrote: It's not quite making sense to me though... My understanding of IF statements is if the condition is met it ignores all the other if's. Is that not correct? At this point it's just me trying to figure

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Daniel Brown
On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: On 6/21/07, Daniel Brown <[EMAIL PROTECTED]> wrote: > On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: > > On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > On Thu, 2007-06-21 at 15:04 -0400, Daniel Brown wrote: > > > > On 6/21/07, Robert Cu

[PHP] Small LAMP install/distro

2007-06-21 Thread tg-php
Ok, done all my googling and experimenting, now I'm tossing it to you guys. Can anyone recommend a small, no frills, LAMP-centric linux package/distro? What I'm doing is setting up a test/development environment in a VMWare virtual machine to keep things all nice and comparmentalized. It's goin

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Tijnema
On 6/21/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: > On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Thu, 2007-06-21 at 15:04 -0400, Daniel Brown wrote: > > > On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Thu, 2007-

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Daniel Brown
On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Thu, 2007-06-21 at 15:04 -0400, Daniel Brown wrote: > > On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > On Thu, 2007-06-21 at 14:50 -0400, Daniel Brown wrote: > > > > On 6/21/07

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.

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Tijnema
On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Thu, 2007-06-21 at 15:04 -0400, Daniel Brown wrote: > On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Thu, 2007-06-21 at 14:50 -0400, Daniel Brown wrote: > > > On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > So

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Robert Cummings
On Thu, 2007-06-21 at 15:04 -0400, Daniel Brown wrote: > On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Thu, 2007-06-21 at 14:50 -0400, Daniel Brown wrote: > > > On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > Someone else is doing it too... ;) > > > > > > > c

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Tijnema
On 6/21/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Thu, 2007-06-21 at 14:50 -0400, Daniel Brown wrote: > > On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > Someone else is doing it too... ;) > > > > > curl_setopt( $

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Tijnema
On 6/21/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Thu, 2007-06-21 at 14:50 -0400, Daniel Brown wrote: > > On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > Someone else is doing it too... ;) > > > > > curl_setopt( $

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Daniel Brown
On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Thu, 2007-06-21 at 14:50 -0400, Daniel Brown wrote: > On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > Someone else is doing it too... ;) > > > curl_setopt( $ch, CURLOPT_HEADER, 0 ); > > curl_setopt( $ch, CURLOPT

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Tijnema
On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Thu, 2007-06-21 at 14:50 -0400, Daniel Brown wrote: > On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > Someone else is doing it too... ;) > > > curl_setopt( $ch, CURLOPT_HEADER, 0 ); > > curl_setopt( $ch, CURLOPT

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Robert Cummings
On Thu, 2007-06-21 at 14:50 -0400, Daniel Brown wrote: > On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > Someone else is doing it too... ;) > > > curl_setopt( $ch, CURLOPT_HEADER, 0 ); > > curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ); > > curl_setopt( $ch, CURLO

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Daniel Brown
On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Thu, 2007-06-21 at 20:25 +0200, Tijnema wrote: > > On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: > > > On 6/21/07, Dan <[EMAIL PROTECTED]> wrote: > > > > Seconded :D > > > > > > Cool, pleas

[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

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Tijnema
On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Thu, 2007-06-21 at 20:47 +0200, Tijnema wrote: > On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Thu, 2007-06-21 at 20:25 +0200, Tijnema wrote: > > > On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: > > > > On 6/21/07, Dan <[EM

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Daniel Brown
On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: Someone else is doing it too... ;) curl_setopt( $ch, CURLOPT_HEADER, 0 ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ); curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); curl_setopt( $ch, CURLOPT_TIMEOUT,

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Robert Cummings
On Thu, 2007-06-21 at 20:47 +0200, Tijnema wrote: > On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Thu, 2007-06-21 at 20:25 +0200, Tijnema wrote: > > > On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: > > > > On 6/21/07, Dan <[EMAIL PROTECTED]> wrote: > > > > > Seconded :D > > > > > >

Re: [PHP] Re: php framework, large site

2007-06-21 Thread Daniel Brown
My Spam filter got sick from over-eating. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Tijnema
On 6/21/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Thu, 2007-06-21 at 20:25 +0200, Tijnema wrote: > On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: > > On 6/21/07, Dan <[EMAIL PROTECTED]> wrote: > > > Seconded :D > > > > Cool, please go to the following url and clickthe button: > > > > http

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Daniel Brown
On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: On 6/21/07, Daniel Brown <[EMAIL PROTECTED]> wrote: > On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: > > On 6/21/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > > > > > > On Jun 21, 2007, at 2:25 PM, Tijnema wrote: > > > > > > > On 6/21/07, Tijnema <[EM

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Tijnema
On 6/21/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: > On 6/21/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > > > > On Jun 21, 2007, at 2:25 PM, Tijnema wrote: > > > > > On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: > > >> On 6/21/07, Dan <[EMAIL PROTE

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Mohamed Yusuf
cool idea, but me thinks gmail will not implement it. On 6/21/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: > On 6/21/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > > > > On Jun 21, 2007, at 2:25 PM, Tijnema wrote: > > > > > On 6/21/07, Tijnema <[EMAIL

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Robert Cummings
On Thu, 2007-06-21 at 20:25 +0200, Tijnema wrote: > On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: > > On 6/21/07, Dan <[EMAIL PROTECTED]> wrote: > > > Seconded :D > > > > Cool, please go to the following url and clickthe button: > > > > http://gpcc.tijnema.info/ > > > > Tijnema > > Go, go, go peo

[PHP] Reoccuring task manager feature enhancement

2007-06-21 Thread Jason Pruim
Okay, so I don't even have the whole system up and working quite yet that Dan Brown typed out for me in another e-mail and I have people wanting new features... They would like to be able to schedule things to happen every other week, once a month on a certain day, quarterly, etc. etc... No

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Daniel Brown
On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: On 6/21/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > > On Jun 21, 2007, at 2:25 PM, Tijnema wrote: > > > On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: > >> On 6/21/07, Dan <[EMAIL PROTECTED]> wrote: > >> > Seconded :D > >> > >> Cool, please go to th

Re: [PHP] Strange Fatal Error Possibly Memory

2007-06-21 Thread Tijnema
On 6/21/07, Dan <[EMAIL PROTECTED]> wrote: I'm using Delphi4PHP so a lot of the code is prewritten components, libraries, etc. Here's some code that I can post without giving away too much. As you can see it's not your typical PHP, it is using a ton of specific functions. Nah, the code is pr

RE: [PHP] Is There a Function to .... to [yada] ..... [/yada]?

2007-06-21 Thread Stephen
"Vo, Lance" <[EMAIL PROTECTED]> wrote:str-replace? http://us.php.net/manual/en/function.str-replace.php I am hoping for something that checks for matching open and closing markup, and will leave < and > unchanged, otherwise. And also a function to convert back. Thanks Stephen

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Tijnema
On 6/21/07, Jason Pruim <[EMAIL PROTECTED]> wrote: On Jun 21, 2007, at 2:25 PM, Tijnema wrote: > On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: >> On 6/21/07, Dan <[EMAIL PROTECTED]> wrote: >> > Seconded :D >> >> Cool, please go to the following url and clickthe button: >> >> http://gpcc.tijnem

Re: [PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Jason Pruim
On Jun 21, 2007, at 2:25 PM, Tijnema wrote: On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: On 6/21/07, Dan <[EMAIL PROTECTED]> wrote: > Seconded :D Cool, please go to the following url and clickthe button: http://gpcc.tijnema.info/ Tijnema Go, go, go people :) 5 users have clicked yet :)

Re: [PHP] Strange Fatal Error Possibly Memory

2007-06-21 Thread Dan
I'm using Delphi4PHP so a lot of the code is prewritten components, libraries, etc. Here's some code that I can post without giving away too much. As you can see it's not your typical PHP, it is using a ton of specific functions. require_once("vcl/vcl.inc.php"); // main PHP file, sets

Re: [PHP] If statement duplicating mysql records?

2007-06-21 Thread Jason Pruim
On Jun 21, 2007, at 1:58 PM, Roberto Mansfield wrote: Jason Pruim wrote: It's not quite making sense to me though... My understanding of IF statements is if the condition is met it ignores all the other if's. Is that not correct? At this point it's just me trying to figure things out for

[PHP] PHP Color Coding in Gmail (was: open a file in a folder without knowing the filename)

2007-06-21 Thread Tijnema
On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: On 6/21/07, Dan <[EMAIL PROTECTED]> wrote: > Seconded :D Cool, please go to the following url and clickthe button: http://gpcc.tijnema.info/ Tijnema Go, go, go people :) 5 users have clicked yet :) Tijnema > "Tijnema" <[EMAIL PROTECTED]> wro

Re: [PHP] Is There a Function to .... to [yada] ..... [/yada]?

2007-06-21 Thread Richard Heyes
Stephen wrote: I can't find one. Thanks Stephen Ahh yes, you want the yada() function. Alternatively if you're after something to turn into [yada] you could try the regex functions (PCRE). -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpD

Re: [PHP] Is There a Function to .... to [yada] ..... [/yada]?

2007-06-21 Thread Tijnema
On 6/21/07, Stephen <[EMAIL PROTECTED]> wrote: I can't find one. Thanks Stephen preg_replace? http://www.php.net/preg_replace Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Is There a Function to .... to [yada] ..... [/yada]?

2007-06-21 Thread Vo, Lance
str-replace? http://us.php.net/manual/en/function.str-replace.php -Original Message- From: Stephen [mailto:[EMAIL PROTECTED] Sent: Thursday, June 21, 2007 1:17 PM To: php-general@lists.php.net Subject: [PHP] Is There a Function to to [yada] . [/yada]? I can't find one.

[PHP] Is There a Function to .... to [yada] ..... [/yada]?

2007-06-21 Thread Stephen
I can't find one. Thanks Stephen

Re: [PHP] Strange Fatal Error Possibly Memory

2007-06-21 Thread Tijnema
On 6/21/07, Dan <[EMAIL PROTECTED]> wrote: I cleared all my logs, then ran the app having problems a few times. There were no error messages in the Apache logs. Does PHP have error logs somewhere? - Dan Hmm, do you have some code? Can you narrow down the problem? Google returns problems wit

Re: [PHP] open a file in a folder without knowing the filename

2007-06-21 Thread Tijnema
On 6/21/07, Dan <[EMAIL PROTECTED]> wrote: Seconded :D Cool, please go to the following url and clickthe button: http://gpcc.tijnema.info/ Tijnema "Tijnema" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 6/21/07, Daniel Brown <[EMAIL PROTECTED]> wrote: >> On 6/21/07, Tijne

Re: [PHP] Strange Fatal Error Possibly Memory

2007-06-21 Thread Dan
I cleared all my logs, then ran the app having problems a few times. There were no error messages in the Apache logs. Does PHP have error logs somewhere? - Dan "Tijnema" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On 6/21/07, Dan <[EMAIL PROTECTED]> wrote: I keep geting th

Re: [PHP] Strange Fatal Error Possibly Memory

2007-06-21 Thread Tijnema
On 6/21/07, Dan <[EMAIL PROTECTED]> wrote: I keep geting this fatal error at the bottom of a php application Fatal error: Exception thrown without a stack frame in Unknown on line 0 It sounds like it would be a problem with the memory stack, but all I'm doing is uploading a file, writing, and r

Re: [PHP] If statement duplicating mysql records?

2007-06-21 Thread Roberto Mansfield
Jason Pruim wrote: > > It's not quite making sense to me though... My understanding of IF > statements is if the condition is met it ignores all the other if's. Is > that not correct? At this point it's just me trying to figure things out > for my knowledge :) No, that's not how it works. If the

[PHP] Strange Fatal Error Possibly Memory

2007-06-21 Thread Dan
I keep geting this fatal error at the bottom of a php application Fatal error: Exception thrown without a stack frame in Unknown on line 0 It sounds like it would be a problem with the memory stack, but all I'm doing is uploading a file, writing, and reading it. Any ideas on what this error c

Re: [PHP] If statement duplicating mysql records?

2007-06-21 Thread Jason Pruim
On Jun 21, 2007, at 1:42 PM, Roberto Mansfield wrote: Jason Pruim wrote: The code I had worked out, originally was something along the lines of: if($row[5] =="Level1") ( echo "$row[0] "; echo "$row[1] "; echo "InstructionsA>"; echo "Click here!"; } if($row[5] =="Level2"){

[PHP] Re: Interesting article about PHP security exploit by GIF files

2007-06-21 Thread Dan
What's with all this checking of mime types, etc? As long as you check that it doesn't have .php at the end of it's filename then you're fine. Unless you have PHP set to run on every filetype or something strange. Isn't it obvious not to allow anything.anything.php as an upload? - Dan "Tij

Re: [PHP] If statement duplicating mysql records?

2007-06-21 Thread Roberto Mansfield
Jason Pruim wrote: > > > The code I had worked out, originally was something along the lines of: > > if($row[5] =="Level1") ( > echo "$row[0] "; > echo "$row[1] "; > echo "Instructions"; > echo " href='update.php?taskid=$row[0]'>Click here!"; > } > > if($row[5] =="Level2"){ > e

Re: [PHP] open a file in a folder without knowing the filename

2007-06-21 Thread Dan
Seconded :D "Tijnema" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On 6/21/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: > I like that disclaimer :) > > I write a lot of code for this list in my mail.. Yeah, I think I use the "Gmai

Re: [PHP] Re: php framework, large site

2007-06-21 Thread Robert Cummings
On Thu, 2007-06-21 at 10:21 -0700, Jim Lucas wrote: > Robert Cummings wrote: > > > > I bothered to jump into the thread in the first place because I dislike > > when someone jumps on a question with an answer that belittles the > > attempt to do something for which a person is requesting help. Sinc

Re: [PHP] Integer Overflow Error

2007-06-21 Thread Jochem Maas
Suhas Pharkute wrote: > Ok, I am sorry, but not sure what do you mean here? the feeling is mutual. it's rather like I asked you what color the sky is ... and you answered 'yes'. > Is there any error? > > If so it will not even run the code > > Suhas > > On 6/21/07, Jochem Maas <[EMAIL PROTECT

Re: [PHP] Re: php framework, large site

2007-06-21 Thread Jim Lucas
Robert Cummings wrote: On Thu, 2007-06-21 at 09:15 -0700, Jim Lucas wrote: Since this has really nothing to do with helping the OP with his original question, and honestly sounds like a bitch fest from hell. Why don't you take your disagreement of list Please. The one thing I hate is whe

Re: [PHP] open a file in a folder without knowing the filename

2007-06-21 Thread Tijnema
On 6/21/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: > I like that disclaimer :) > > I write a lot of code for this list in my mail.. Yeah, I think I use the "Gmail PHP IDE" more than I use ViM! ;-P -- Daniel P. Brown Let's send a future reque

Re: [PHP] Integer Overflow Error

2007-06-21 Thread Suhas Pharkute
Ok, I am sorry, but not sure what do you mean here? Is there any error? If so it will not even run the code Suhas On 6/21/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Suhas Pharkute wrote: > Hi, > > I tried to search on this mailing list and I saw the bug was reported and > fixed. I am using PH

Re: [PHP] open a file in a folder without knowing the filename

2007-06-21 Thread Daniel Brown
On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: I like that disclaimer :) I write a lot of code for this list in my mail.. Yeah, I think I use the "Gmail PHP IDE" more than I use ViM! ;-P -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- PHP General Mailing

Re: [PHP] phpinfo displays blank page

2007-06-21 Thread Daniel Brown
On 6/21/07, Tijnema <[EMAIL PROTECTED]> wrote: Good point, but that doesn't affect the PHP CLI ;) Tijnema Yes, I'm aware of that but if the CGI/module displays the correct stuff, then it can narrow the problems down to the CLI itself. With regard to the CLI, try a few things from t

Re: [PHP] Integer Overflow Error

2007-06-21 Thread Robert Cummings
On Thu, 2007-06-21 at 18:16 +0200, Tijnema wrote: > On 6/21/07, Suhas Pharkute <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I tried to search on this mailing list and I saw the bug was reported and > > fixed. I am using PHP 4.4.7 and GD 2 > > > > The error that I am getting is at statement > > > > $i

Re: [PHP] Re: php framework, large site

2007-06-21 Thread Robert Cummings
On Thu, 2007-06-21 at 09:15 -0700, Jim Lucas wrote: > Since this has really nothing to do with helping the OP with his original > question, and honestly > sounds like a bitch fest from hell. Why don't you take your disagreement of > list Please. > > The one thing I hate is when I see emai

Re: [PHP] Integer Overflow Error

2007-06-21 Thread Jochem Maas
Suhas Pharkute wrote: > Hi, > > I tried to search on this mailing list and I saw the bug was reported and > fixed. I am using PHP 4.4.7 and GD 2 you make it sound like there is only one bug. > > The error that I am getting is at statement > > $img_t = imagecreatetruecolor(100,100);*

Re: [PHP] open a file in a folder without knowing the filename

2007-06-21 Thread Tijnema
On 6/21/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 6/21/07, Edward Kay <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Graham Shaw [mailto:[EMAIL PROTECTED] > > > > I'm probably missing something really obvious here but how would > > I go about > > opening a file or multip

Re: [PHP] phpinfo displays blank page

2007-06-21 Thread Tijnema
On 6/21/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 6/20/07, Tijnema <[EMAIL PROTECTED]> wrote: > On 6/21/07, Jeff Schwartz <[EMAIL PROTECTED]> wrote: > > You're right, that works. So why doesn't my script work? All it contains is: > > > > > phpinfo(); > > ?> > > Hard to say, as this just *sh

Re: [PHP] Integer Overflow Error

2007-06-21 Thread Tijnema
On 6/21/07, Suhas Pharkute <[EMAIL PROTECTED]> wrote: Hi, I tried to search on this mailing list and I saw the bug was reported and fixed. I am using PHP 4.4.7 and GD 2 The error that I am getting is at statement $img_t = imagecreatetruecolor(100,100);* Fatal error*: Possible integer overflow

Re: [PHP] Re: php framework, large site

2007-06-21 Thread Jim Lucas
Since this has really nothing to do with helping the OP with his original question, and honestly sounds like a bitch fest from hell. Why don't you take your disagreement of list Please. The one thing I hate is when I see emails from one person telling them that their opinion is more corre

[PHP] Integer Overflow Error

2007-06-21 Thread Suhas Pharkute
Hi, I tried to search on this mailing list and I saw the bug was reported and fixed. I am using PHP 4.4.7 and GD 2 The error that I am getting is at statement $img_t = imagecreatetruecolor(100,100);* Fatal error*: Possible integer overflow in memory allocation (4 * -91750400 + 0) in *actions.p

Re: [PHP] Program Execution and reading results

2007-06-21 Thread makhan
Thanks guys for your response. I think this output from reply can solve my problem. Becuase I can return some value like ' fileready == true' as the output from the executable program. And when fileready is true I can read the output text file. Can you please explain a little bit what kind of outp

Re: [PHP] Re: php framework, large site

2007-06-21 Thread Robert Cummings
On Thu, 2007-06-21 at 22:41 +0800, Crayon Shin Chan wrote: > On Wednesday 20 June 2007 03:27, Robert Cummings wrote: > > > > 1) study a selection of frameworks and learn from their strengths and > > > weaknesses then go on to create a kickass framework based on what > > > you've learnt > > > > Now

Re: [PHP] Counting Capital Letters

2007-06-21 Thread tedd
At 12:32 AM +0100 6/21/07, Richard Davey wrote: Hi, I've written a short regexp which will *count* how many capital letters are in a given string (the woefully simple: '/[A-Z]/') Although it's an English language web site, I'm curious how you'd count capital letters that span beyond just the st

Re: [PHP] Re: php framework, large site

2007-06-21 Thread Crayon Shin Chan
On Wednesday 20 June 2007 03:27, Robert Cummings wrote: > > 1) study a selection of frameworks and learn from their strengths and > > weaknesses then go on to create a kickass framework based on what > > you've learnt > > Now, now, let's not pretend that you even nearly suggested that in your > or

Re: [PHP] Interesting article about PHP security exploit by GIF files

2007-06-21 Thread tedd
At 9:27 PM +0200 6/20/07, Tijnema wrote: On 6/20/07, tedd <[EMAIL PROTECTED]> wrote: If you are worried about evil code being in the image, you could always resample the image (larger or smaller). Not that I have personal experience, but I would think that any piece of code that is resampled is

Re: [PHP] open a file in a folder without knowing the filename

2007-06-21 Thread Daniel Brown
On 6/21/07, Edward Kay <[EMAIL PROTECTED]> wrote: > -Original Message- > From: Graham Shaw [mailto:[EMAIL PROTECTED] > > I'm probably missing something really obvious here but how would > I go about > opening a file or multiple files in a folder without knowing the filename > ahead of tim

Re: [PHP] Program Execution and reading results

2007-06-21 Thread Daniel Brown
On 6/21/07, Zoltán Németh <[EMAIL PROTECTED]> wrote: 2007. 06. 21, csütörtök keltezéssel 10.46-kor Richard Heyes ezt írta: > > hmm I thought the OP's question was about how can he get output/return > > value from the external program (the file name for example) - maybe it > > was my misunderstand

Re: [PHP] phpinfo displays blank page

2007-06-21 Thread Daniel Brown
On 6/20/07, Tijnema <[EMAIL PROTECTED]> wrote: On 6/21/07, Jeff Schwartz <[EMAIL PROTECTED]> wrote: > You're right, that works. So why doesn't my script work? All it contains is: > > phpinfo(); > ?> Hard to say, as this just *should* work. What you can try is to hook up the processor with some

RE: [PHP] open a file in a folder without knowing the filename

2007-06-21 Thread Edward Kay
> -Original Message- > From: Graham Shaw [mailto:[EMAIL PROTECTED] > > I'm probably missing something really obvious here but how would > I go about > opening a file or multiple files in a folder without knowing the filename > ahead of time? Read the files in the directory and place the na

Re: [PHP] open a file in a folder without knowing the filename

2007-06-21 Thread Paul Scott
On Thu, 2007-06-21 at 01:49 +0100, Graham Shaw wrote: > I'm probably missing something really obvious here but how would I go about > opening a file or multiple files in a folder without knowing the filename > ahead of time? You can use the glob function http://www.php.net/glob to build an arra

[PHP] open a file in a folder without knowing the filename

2007-06-21 Thread Graham Shaw
Hi, I'm probably missing something really obvious here but how would I go about opening a file or multiple files in a folder without knowing the filename ahead of time? Loading a file in and sending the contents to a databse I can do but everywhere i've looked all require the filename to be kn

Re: [PHP] Program Execution and reading results

2007-06-21 Thread Zoltán Németh
2007. 06. 21, csütörtök keltezéssel 10.46-kor Richard Heyes ezt írta: > > hmm I thought the OP's question was about how can he get output/return > > value from the external program (the file name for example) - maybe it > > was my misunderstanding > > In which case I would still use shell_exec():

Re: [PHP] Program Execution and reading results

2007-06-21 Thread Richard Heyes
hmm I thought the OP's question was about how can he get output/return value from the external program (the file name for example) - maybe it was my misunderstanding In which case I would still use shell_exec(): -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Bas

Re: [PHP] Program Execution and reading results

2007-06-21 Thread Zoltán Németh
2007. 06. 21, csütörtök keltezéssel 10.08-kor Richard Heyes ezt írta: > > use exec() instead of shell_exec() > > Why? hmm I thought the OP's question was about how can he get output/return value from the external program (the file name for example) - maybe it was my misunderstanding greets Zoltá

Re: [PHP] Program Execution and reading results

2007-06-21 Thread Richard Heyes
use exec() instead of shell_exec() Why? -- Richard Heyes 0844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Program Execution and reading results

2007-06-21 Thread Richard Heyes
makhan wrote: Thanks Paul for your response. my issue is not just reading from the output text file. But my issue is what I would do in the php script while the program is execting( i.e after issueing shell_exec() command) and how would i know that file has been written so that i can read it usin

Re: [PHP] Counting Capital Letters

2007-06-21 Thread Robin Vickery
On 21/06/07, Richard Davey <[EMAIL PROTECTED]> wrote: Hi, I've written a short regexp which will *count* how many capital letters are in a given string (the woefully simple: '/[A-Z]/') Although it's an English language web site, I'm curious how you'd count capital letters that span beyond just

Re: [PHP] Program Execution and reading results

2007-06-21 Thread Zoltán Németh
2007. 06. 21, csütörtök keltezéssel 01.13-kor makhan ezt írta: > Thanks Paul for your response. my issue is not just reading from the output > text file. But my issue is what I would do in the php script while the > program is execting( i.e after issueing shell_exec() command) and how would > i kno

Re: [PHP] Program Execution and reading results

2007-06-21 Thread Paul Scott
On Thu, 2007-06-21 at 01:13 -0700, makhan wrote: > Thanks Paul for your response. my issue is not just reading from the output > text file. But my issue is what I would do in the php script while the > program is execting( i.e after issueing shell_exec() command) and how would > i know that file h

Re: [PHP] Program Execution and reading results

2007-06-21 Thread makhan
Thanks Paul for your response. my issue is not just reading from the output text file. But my issue is what I would do in the php script while the program is execting( i.e after issueing shell_exec() command) and how would i know that file has been written so that i can read it using php. Thanks