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

2007-06-18 Thread Robert Cummings
On Tue, 2007-06-19 at 13:41 +0800, Crayon Shin Chan wrote: > On Tuesday 19 June 2007 09:35, Robert Cummings wrote: > > > Ah but it is quite possible that the OP will go ahead and try to build > > a framework, he may fail miserably, all the while learning from his > > mistakes. Then he may try agai

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

2007-06-18 Thread Crayon Shin Chan
On Tuesday 19 June 2007 09:35, Robert Cummings wrote: > Ah but it is quite possible that the OP will go ahead and try to build > a framework, he may fail miserably, all the while learning from his > mistakes. Then he may try again and subsequently build a kickass > framework. In the pragmatic wo

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

2007-06-18 Thread Crayon Shin Chan
On Tuesday 19 June 2007 09:12, Nathan Nobbe wrote: > it seems to me most people use the terms flavor and distribution > interchangeably when referring to linux. Yeah and most people forget that linux (the kernel) is only a tiny part of a "linux distribution". > although gentoo linux [the only o

Re: [PHP] Php script diagnostic app?

2007-06-18 Thread Guillaume Theoret
Thanks a lot for that post Paul. It brings up a question though. You said to never ever use that on a production server (an important disclaimer!) so I was wondering what people here used to log and simulate loads. I've used OpenSTA ( http://opensta.org/ ) and I was pleased with the results but i

Re: [PHP] RE: [Updated] Previous and Next Month and Year

2007-06-18 Thread Robert Cummings
On Mon, 2007-06-18 at 21:36 -0600, Keith Spiller wrote: > Hi Guys, > > RE: [Updated] Previous and Next Month and Year > > Here is part of my code: > > $month = 6; > // Current month value, but changes changes with next/prev links. > // Value used by a mini calendar script "phpcalendar"...

[PHP] RE: [Updated] Previous and Next Month and Year

2007-06-18 Thread Keith Spiller
Hi Guys, RE: [Updated] Previous and Next Month and Year Here is part of my code: $month = 6; // Current month value, but changes changes with next/prev links. // Value used by a mini calendar script "phpcalendar"... // Originally derived via: $month = date('n', time()); // And updated wi

Re: [PHP] Date

2007-06-18 Thread Larry Garfield
On Monday 18 June 2007, Robert Cummings wrote: > On Mon, 2007-06-18 at 21:57 -0400, Ron Piggott wrote: > > If > > > > $expiry_date = "2007-10-17"; > > > > How do I add 7 days to this? I know the strtotime("+7 days"); command, > > but don't know how to make it work with a date that isn't today. > >

Re: [PHP] Date

2007-06-18 Thread Robert Cummings
On Mon, 2007-06-18 at 21:57 -0400, Ron Piggott wrote: > If > > $expiry_date = "2007-10-17"; > > How do I add 7 days to this? I know the strtotime("+7 days"); command, > but don't know how to make it work with a date that isn't today. You would do: strtotime( '+7 days', $time ); The $time

[PHP] Date

2007-06-18 Thread Ron Piggott
If $expiry_date = "2007-10-17"; How do I add 7 days to this? I know the strtotime("+7 days"); command, but don't know how to make it work with a date that isn't today. (Please respond directly to my e-mail address) Ron

Re: [PHP] Comparing string to array

2007-06-18 Thread Larry Garfield
Perhaps you're looking for in_array()? On Monday 18 June 2007, Richard Davey wrote: > Hi all, > > Ok it's 2am, my brain has gone to mush and I am having trouble > figuring out an easy way to do this, can anyone shed some light? > > Take a peek at the following code: > > // START > > print_r(

Re: [PHP] generate images of register definitions

2007-06-18 Thread Mike Frysinger
On 6/9/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Sat, June 9, 2007 4:27 pm, Mike Frysinger wrote: > anyone know of some software to generate images like this: > http://wh0rd.org/register.png > idea is i have a list of registers and their bit meanings, and i want > to automatically generate

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

2007-06-18 Thread Robert Cummings
On Mon, 2007-06-18 at 21:12 -0400, Nathan Nobbe wrote: > On 6/18/07, Crayon Shin Chan <[EMAIL PROTECTED]> wrote: > > > > and you never know a new one could just become the best one. > > > > Look, if the OP has what it takes to build "the best" framework he would > > have just gone ahead and did it

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

2007-06-18 Thread Robert Cummings
On Tue, 2007-06-19 at 05:31 +0800, Crayon Shin Chan wrote: > On Tuesday 19 June 2007 02:18, Robert Cummings wrote: > > > I put that exact phrase (double quoted of course) into Google and > > turned up the following: > > > > Your search - "there's a fine line between personal satisfaction > >

[PHP] Comparing string to array

2007-06-18 Thread Richard Davey
Hi all, Ok it's 2am, my brain has gone to mush and I am having trouble figuring out an easy way to do this, can anyone shed some light? Take a peek at the following code: // START red green blue red2 green2 blue2 // END From the code above I'm trying to figure out how to tell if the $

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

2007-06-18 Thread Nathan Nobbe
On 6/18/07, Crayon Shin Chan <[EMAIL PROTECTED]> wrote: On Tuesday 19 June 2007 02:04, Nathan Nobbe wrote: > discouraging new framework development is like telling the people of > the world never to develop a new flavor of linux. There are no new flavours of linux. You're probably mixing it up

Re: [PHP] Controlling project version

2007-06-18 Thread Larry Garfield
On Monday 18 June 2007, Chris wrote: > >> Compare that to: > >> > >> cvs tag -b "branch name" module_name > >> > >> ;) > > > > Ok, this is where you need to understand the fundamental difference > > between how CVS and Subversion work. For CVS branching and tagging are > > operations in themselves

[PHP] fsocketopen not returning data properly

2007-06-18 Thread Dan
I'm having trouble with sockets in PHP, if anyone has the time to help out that would be awesome. I am trying to get the result of a post echo httpSocketConnection("www.google.com", "POST", "/search", "q=test", "80"); This should post to google.com with a query of test. Then give me the res

Re: [PHP] PHP calling an ISAPI Extension

2007-06-18 Thread Jim Lucas
Dan wrote: I wish I could, I can't count on the script being on a linux machine. I also can't expect people to rebuild PHP with the curl library just to use my script. Is there any other way to do a post to a page from a php function? - Daniel "Jim Lucas" <[EMAIL PROTECTED]> wrote in messa

Re: [PHP] PHP calling an ISAPI Extension

2007-06-18 Thread Dan
I wish I could, I can't count on the script being on a linux machine. I also can't expect people to rebuild PHP with the curl library just to use my script. Is there any other way to do a post to a page from a php function? - Daniel "Jim Lucas" <[EMAIL PROTECTED]> wrote in message news:[EMA

Re: [PHP] PHP calling an ISAPI Extension

2007-06-18 Thread Dan
For example, I could use function fsockopen but that seems like it would probably be pretty slow doing all that, and if there's a php function or small script that would be preferable over the 50/60 lines you would need to do it properly with fsockopen. - Daniel ""Jay Blanchard"" <[EMAIL PROT

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

2007-06-18 Thread tedd
At 1:39 AM +0800 6/19/07, Crayon Shin Chan wrote: On Monday 18 June 2007 04:00, Robert Cummings wrote: > Maybe so, but much science and many breakthroughs are still done by the > lone inventory/researcher. Particularly in the field of astronomy where amateurs are still able to contribute great

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

2007-06-18 Thread tedd
At 2:18 PM -0400 6/18/07, Robert Cummings wrote: On Tue, 2007-06-19 at 01:39 +0800, Crayon Shin Chan wrote: > On Monday 18 June 2007 04:00, Robert Cummings wrote: -snip- Looks like someone released the Kraken. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com http

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

2007-06-18 Thread tedd
At 1:48 AM +0800 6/19/07, Crayon Shin Chan wrote: On Tuesday 19 June 2007 00:36, tedd wrote: What about the wasted time in searching through "billions of half-baked to fully-baked frameworks" to find one that works for you? That's really a waste of time. Well search through the fully-bake

Re: [PHP] PHP calling an ISAPI Extension

2007-06-18 Thread Jim Lucas
Dan wrote: I would normaly do it with an AJAX call but I need to do a post from WITHIN a PHP function, so when it's doing php stuff ex. function something() { echo 'whatever'; $response = post some data to a ISAPI Extension eg. post to http://domain.com/scripts/app.dll return $response . "othe

Re: [PHP] PHP calling an ISAPI Extension

2007-06-18 Thread Dan
I would normaly do it with an AJAX call but I need to do a post from WITHIN a PHP function, so when it's doing php stuff ex. function something() { echo 'whatever'; $response = post some data to a ISAPI Extension eg. post to http://domain.com/scripts/app.dll return $response . "other data"; }

RE: [PHP] PHP calling an ISAPI Extension

2007-06-18 Thread Jay Blanchard
[snip] I'm in need of a way to contact an ISAPI Extension from a PHP function. Does anyone know how I would be able to do this? Usually you would post a page to their URL/actionname. Can I do a POST from a PHP function without reloading the page, and get a result back? That's one tall order.

[PHP] PHP calling an ISAPI Extension

2007-06-18 Thread Dan
I'm in need of a way to contact an ISAPI Extension from a PHP function. Does anyone know how I would be able to do this? Usually you would post a page to their URL/actionname. Can I do a POST from a PHP function without reloading the page, and get a result back? That's one tall order. Anyone

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

2007-06-18 Thread Crayon Shin Chan
On Tuesday 19 June 2007 02:04, Nathan Nobbe wrote: > discouraging new framework development is like telling the people of > the world never to develop a new flavor of linux. There are no new flavours of linux. You're probably mixing it up with linux distributions of which there are many. Most of

Re: [PHP] file_exists, Windows, and EasyPHP

2007-06-18 Thread Daniel Brown
On 6/18/07, Jim Lucas <[EMAIL PROTECTED]> wrote: Daniel Brown wrote: > On 6/18/07, Jim Lucas <[EMAIL PROTECTED]> wrote: >> First off, don't jack someone else's thread. > >Am I not getting all of the list messages today? I didn't see > where the thread hijacking occurred > -- Jim Lucas

Re: [PHP] file_exists, Windows, and EasyPHP

2007-06-18 Thread Jim Lucas
Daniel Brown wrote: On 6/18/07, Jim Lucas <[EMAIL PROTECTED]> wrote: First off, don't jack someone else's thread. Am I not getting all of the list messages today? I didn't see where the thread hijacking occurred -- Jim Lucas "Some men are born to greatness, some achieve greatne

Re: [PHP] file_exists, Windows, and EasyPHP

2007-06-18 Thread Myron Turner
Jim Lucas wrote: First off, don't jack someone else's thread. Secondly, I think it might have something to do with the space in the file name. Try changing all spaces to %20 and see what happens. $string = str_replace(' ', '%20', $string); should do the trick -- Jim Lucas "Some men ar

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

2007-06-18 Thread Crayon Shin Chan
On Tuesday 19 June 2007 02:18, Robert Cummings wrote: > I put that exact phrase (double quoted of course) into Google and > turned up the following: > > Your search - "there's a fine line between personal satisfaction > and egotism" - did not match any documents. > > I'm going to guess you

Re: [PHP] file_exists, Windows, and EasyPHP

2007-06-18 Thread Daniel Brown
On 6/18/07, Jim Lucas <[EMAIL PROTECTED]> wrote: First off, don't jack someone else's thread. Am I not getting all of the list messages today? I didn't see where the thread hijacking occurred -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- PHP General

Re: [PHP] file_exists, Windows, and EasyPHP

2007-06-18 Thread Jim Lucas
Myron Turner wrote: I've written a plugin for DokuWiki which uses the following DokuWiki function for reading files: function io_readFile($file,$clean=true){ $ret = ''; if(@file_exists($file)){ if(substr($file,-3) == '.gz'){ $ret = join('',gzfile($file)); }el

Re: [PHP] file_exists, Windows, and EasyPHP

2007-06-18 Thread Myron Turner
Edward Vermillion wrote: On Jun 18, 2007, at 3:30 PM, Myron Turner wrote: I've written a plugin for DokuWiki which uses the following DokuWiki function for reading files: function io_readFile($file,$clean=true){ $ret = ''; if(@file_exists($file)){ if(substr($file,-3) == '.gz'){ $ret = join('

Re: [PHP] file_exists, Windows, and EasyPHP

2007-06-18 Thread Edward Vermillion
On Jun 18, 2007, at 3:30 PM, Myron Turner wrote: I've written a plugin for DokuWiki which uses the following DokuWiki function for reading files: function io_readFile($file,$clean=true){ $ret = ''; if(@file_exists($file)){ if(substr($file,-3) == '.gz'){ $ret = jo

[PHP] file_exists, Windows, and EasyPHP

2007-06-18 Thread Myron Turner
I've written a plugin for DokuWiki which uses the following DokuWiki function for reading files: function io_readFile($file,$clean=true){ $ret = ''; if(@file_exists($file)){ if(substr($file,-3) == '.gz'){ $ret = join('',gzfile($file)); }else if(substr($file,-4

RE: [PHP] subtracting time from date and time

2007-06-18 Thread Richard Kurth
You are right I was looking at it as 0735 was in the morning sorry about that. In that case it works perfect > -Original Message- > From: Jim Lucas [mailto:[EMAIL PROTECTED] > Sent: Monday, June 18, 2007 12:21 PM > To: Richard Kurth > Cc: php-general@lists.php.net > Subject: Re: [PHP] s

Re: [PHP] subtracting time from date and time

2007-06-18 Thread Jim Lucas
Richard Kurth wrote: -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED] Sent: Monday, June 18, 2007 10:55 AM To: Brad Bonkoski; Richard Kurth Cc: php-general@lists.php.net Subject: Re: [PHP] subtracting time from date and time Something like this will get it into a time

RE: [PHP] subtracting time from date and time

2007-06-18 Thread Chris Boget
> This works great tell you get to 8 hours ago > it shows the correct time but it does not change > the date to the day before. 8 hours ago should be > 06/16/2007 11:35:00 but what it shows is 06/17/2007 > 11:35:00 Your code works for me. Though, I had to change the format of $str slightly to

RE: [PHP] subtracting time from date and time

2007-06-18 Thread Richard Kurth
> -Original Message- > From: Chris Boget [mailto:[EMAIL PROTECTED] > Sent: Monday, June 18, 2007 10:55 AM > To: Brad Bonkoski; Richard Kurth > Cc: php-general@lists.php.net > Subject: Re: [PHP] subtracting time from date and time > > > Something like this will get it into a time stamp.

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

2007-06-18 Thread Robert Cummings
On Tue, 2007-06-19 at 01:39 +0800, Crayon Shin Chan wrote: > On Monday 18 June 2007 04:00, Robert Cummings wrote: > > > Typo... *yawn*. > > Please lookup the real meaning of typo . >From Webster's: an error (as of spelling) in typed or typeset material I misspelled your as you're. Are you sugg

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

2007-06-18 Thread Nathan Nobbe
discouraging new framework development is like telling the people of the world never to develop a new flavor of linux. we all know its a massive undertaking, but there is merit and purpose in it nonetheless. and you never know a new one could just become the best one. -nathan On 6/18/07, Crayon

Re: [PHP] subtracting time from date and time

2007-06-18 Thread Chris Boget
Something like this will get it into a time stamp...and then you can do your calculations with ease, and reformat... Even easier: $timestamp = strtotime( $str ); http://us2.php.net/manual/en/function.strtotime.php $oneMinute = 60; // seconds $oneHour= $oneMinute * 60; $oneDay = $oneH

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

2007-06-18 Thread Crayon Shin Chan
On Tuesday 19 June 2007 00:36, tedd wrote: > What about the wasted time in searching through "billions of > half-baked to fully-baked > frameworks" to find one that works for you? That's really a waste of > time. Well search through the fully-baked frameworks only, and don't create another half-

Re: [PHP] subtracting time from date and time

2007-06-18 Thread Brad Bonkoski
Something like this will get it into a time stamp...and then you can do your calculations with ease, and reformat... -Brad Richard Kurth wrote: I am trying to figure out what is the most accurate way to find the time after I subtract 5 min,15 min, 30 min 1 hour 2 hours and 5 hours from a date

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

2007-06-18 Thread Crayon Shin Chan
On Monday 18 June 2007 04:00, Robert Cummings wrote: > Typo... *yawn*. Please lookup the real meaning of typo . > You knew what was intended. Of course. I'm not a computer and can make judgements based on context and experience. I only brought it up because you seem to delight in grammatical

[PHP] subtracting time from date and time

2007-06-18 Thread Richard Kurth
I am trying to figure out what is the most accurate way to find the time after I subtract 5 min,15 min, 30 min 1 hour 2 hours and 5 hours from a date and time that is formatted like this 20070617T193500 this is the way it has to be formatted to work in a vcalendar

[PHP] Aggressive PHP Smart Caching

2007-06-18 Thread Alexander Romanovich
I'm a PHP developer looking for feedback on a caching approach I put together recently. It's informed by thoughts people have shared on this newslist and other places over the years. My goal was to come up with an extremely lightweight flat file caching system which solves various concerns about p

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

2007-06-18 Thread tedd
On Monday 18 June 2007 00:12, Robert Cummings wrote: > Good reasons to write your own: It's an extremely inefficient use of precious time. Inventing the wheel over and over. Surely out of the billions of half-baked to fully-baked frameworks out there must be something suitable for everyone. How

Re: [PHP] Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Robert Cummings
On Mon, 2007-06-18 at 17:52 +0200, Jochem Maas wrote: > Robert Cummings wrote: > > On Mon, 2007-06-18 at 17:24 +0200, Jochem Maas wrote: > >> Daniel Brown wrote: > >>> On 6/18/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > >> > >> > >>>Keep in mind, though, that a good part of the time h

Re: [PHP] Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Jochem Maas
Robert Cummings wrote: > On Mon, 2007-06-18 at 17:24 +0200, Jochem Maas wrote: >> Daniel Brown wrote: >>> On 6/18/07, Robert Cummings <[EMAIL PROTECTED]> wrote: >> >> >>>Keep in mind, though, that a good part of the time here in the >>> United States, employment is gained by knowing someon

Re: [PHP] Re: [BULK] Re: [PHP] OK to have many files in one folder?

2007-06-18 Thread Robert Cummings
On Mon, 2007-06-18 at 08:41 -0700, Jim Lucas wrote: > Daniel Brown wrote: > > On 6/18/07, Tijnema <[EMAIL PROTECTED]> wrote: > >> On 6/18/07, Daniel Brown <[EMAIL PROTECTED]> wrote: > >> > On 6/18/07, Tijnema <[EMAIL PROTECTED]> wrote: > >> > > On 6/18/07, Daniel Brown <[EMAIL PROTECTED]> wrote: >

[PHP] Re: Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Colin Guthrie
Robert Cummings wrote: > Things I learned to do while obtaining my B.C.S. degree: > ... ... snip of lots of interesting/funny stuff ... > For me going to university was a little bit about getting a piece of > paper and a lot about having fun and meeting people (I met my wife > there). One thing th

Re: [PHP] Re: [BULK] Re: [PHP] OK to have many files in one folder?

2007-06-18 Thread Jim Lucas
Daniel Brown wrote: On 6/18/07, Tijnema <[EMAIL PROTECTED]> wrote: On 6/18/07, Daniel Brown <[EMAIL PROTECTED]> wrote: > On 6/18/07, Tijnema <[EMAIL PROTECTED]> wrote: > > On 6/18/07, Daniel Brown <[EMAIL PROTECTED]> wrote: > > > On 6/18/07, Colin Guthrie <[EMAIL PROTECTED]> wrote: > > > > clive

Re: [PHP] Re: [BULK] Re: [PHP] OK to have many files in one folder?

2007-06-18 Thread Robert Cummings
On Mon, 2007-06-18 at 11:25 -0400, Daniel Brown wrote: > On 6/18/07, Tijnema <[EMAIL PROTECTED]> wrote: > > On 6/18/07, Daniel Brown <[EMAIL PROTECTED]> wrote: > > > > >Referring to one of my earlier posts in this thread, as a > > > > > refresher, database information is stored in files. So to

Re: [PHP] Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Daniel Brown
On 6/18/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Tijnema wrote: > On 6/18/07, Brad Bonkoski <[EMAIL PROTECTED]> wrote: ... >> >> Edward > > Yes, but if you pay $10K for you study, and you get $1K extra each > year, you need to work 10 years to get your money back, and I didn't > even count th

Re: [PHP] Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Robert Cummings
On Mon, 2007-06-18 at 17:24 +0200, Jochem Maas wrote: > Daniel Brown wrote: > > On 6/18/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > >> > > > >Keep in mind, though, that a good part of the time here in the > > United States, employment is gained by knowing someone (not > > nec

Re: [PHP] Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Jochem Maas
Robert Cummings wrote: ... > > Cheers, > Rob. great story Robert (look spelt it correctly that time ;-)) - made my day! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Jochem Maas
Daniel Brown wrote: > On 6/18/07, Tijnema <[EMAIL PROTECTED]> wrote: >> On 6/18/07, Daniel Brown <[EMAIL PROTECTED]> wrote: >> > On 6/18/07, Tijnema <[EMAIL PROTECTED]> wrote: >> > > Yes, but if you pay $10K for you study, and you get $1K extra each >> > > year, you need to work 10 years to get you

Re: [PHP] Re: [BULK] Re: [PHP] OK to have many files in one folder?

2007-06-18 Thread Daniel Brown
On 6/18/07, Tijnema <[EMAIL PROTECTED]> wrote: On 6/18/07, Daniel Brown <[EMAIL PROTECTED]> wrote: > On 6/18/07, Tijnema <[EMAIL PROTECTED]> wrote: > > On 6/18/07, Daniel Brown <[EMAIL PROTECTED]> wrote: > > > On 6/18/07, Colin Guthrie <[EMAIL PROTECTED]> wrote: > > > > clive wrote: > > > > >> >

Re: [PHP] Re: Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Robert Cummings
On Mon, 2007-06-18 at 15:18 +0100, Colin Guthrie wrote: > so another key thing I'd personally like > to see is the commitment to the cause! If someone comes on board for 6 > months this is not ideal, but if they stick around for 2 years+ then > this is perfect! This is always hard to judge for eve

Re: [PHP] Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Jochem Maas
Daniel Brown wrote: > On 6/18/07, Robert Cummings <[EMAIL PROTECTED]> wrote: >> > >Keep in mind, though, that a good part of the time here in the > United States, employment is gained by knowing someone (not > necessarily political, but someone may ask, "hey, do you know anyone > who kn

Re: [PHP] Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Jochem Maas
Tijnema wrote: > On 6/18/07, Brad Bonkoski <[EMAIL PROTECTED]> wrote: ... >> >> Edward > > Yes, but if you pay $10K for you study, and you get $1K extra each > year, you need to work 10 years to get your money back, and I didn't > even count the costs of your valuable time... Tijnema your showi

Re: [PHP] Re: [BULK] Re: [PHP] OK to have many files in one folder?

2007-06-18 Thread Tijnema
On 6/18/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 6/18/07, Tijnema <[EMAIL PROTECTED]> wrote: > On 6/18/07, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On 6/18/07, Colin Guthrie <[EMAIL PROTECTED]> wrote: > > > clive wrote: > > > >> > > > >> I have no clue how big the files are, but you migh

Re: [PHP] Re: [BULK] Re: [PHP] OK to have many files in one folder?

2007-06-18 Thread Daniel Brown
On 6/18/07, Tijnema <[EMAIL PROTECTED]> wrote: On 6/18/07, Daniel Brown <[EMAIL PROTECTED]> wrote: > On 6/18/07, Colin Guthrie <[EMAIL PROTECTED]> wrote: > > clive wrote: > > >> > > >> I have no clue how big the files are, but you might want to store them > > >> in a database. That can speed up t

[PHP] Re: Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Colin Guthrie
Jochem Maas wrote: > Edward Kay wrote: > > ... > >> But the advert is for a GRADUATE developer ;) Whilst your messages to this >> list show you know a lot about PHP, I doubt you've managed to fit a degree >> in yet :) > > What does a graduate php developer earn in Scotland? and is it > the the p

Re: [PHP] Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Daniel Brown
On 6/18/07, Tijnema <[EMAIL PROTECTED]> wrote: On 6/18/07, Daniel Brown <[EMAIL PROTECTED]> wrote: > On 6/18/07, Tijnema <[EMAIL PROTECTED]> wrote: > > Yes, but if you pay $10K for you study, and you get $1K extra each > > year, you need to work 10 years to get your money back, and I didn't > > e

Re: [PHP] Re: [BULK] Re: [PHP] OK to have many files in one folder?

2007-06-18 Thread Tijnema
On 6/18/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 6/18/07, Colin Guthrie <[EMAIL PROTECTED]> wrote: > clive wrote: > >> > >> I have no clue how big the files are, but you might want to store them > >> in a database. That can speed up things, but don't ask me how much ;) > >> > >> Tijnema > >

Re: [PHP] Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Tijnema
On 6/18/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 6/18/07, Tijnema <[EMAIL PROTECTED]> wrote: > Yes, but if you pay $10K for you study, and you get $1K extra each > year, you need to work 10 years to get your money back, and I didn't > even count the costs of your valuable time... > Ten

Re: [PHP] Unable to use exec() in php

2007-06-18 Thread Daniel Brown
On 6/18/07, MIKE YRABEDRA <[EMAIL PROTECTED]> wrote: Is there a special way to allow only a specific user to execute the system_exec() and exec() calls? on 6/18/07 10:31 AM, Daniel Brown at [EMAIL PROTECTED] wrote: > On 6/18/07, Crayon Shin Chan <[EMAIL PROTECTED]> wrote: >> On Monday 18 Ju

Re: [PHP] Unable to use exec() in php

2007-06-18 Thread Daniel Brown
On 6/18/07, Tijnema <[EMAIL PROTECTED]> wrote: On 6/18/07, Daniel Brown <[EMAIL PROTECTED]> wrote: > On 6/18/07, Crayon Shin Chan <[EMAIL PROTECTED]> wrote: > > On Monday 18 June 2007 13:15, makhan wrote: > > > > Stop top posting. > > > > > I am also using shell_exec('matlab -r myscript') to run

Re: [PHP] Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Daniel Brown
On 6/18/07, Tijnema <[EMAIL PROTECTED]> wrote: Yes, but if you pay $10K for you study, and you get $1K extra each year, you need to work 10 years to get your money back, and I didn't even count the costs of your valuable time... Ten thousand dollars for a college degree? Where the hell is

Re: [PHP] Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Daniel Brown
On 6/18/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Mon, 2007-06-18 at 10:40 -0400, Robert Cummings wrote: > On Mon, 2007-06-18 at 16:22 +0200, Tijnema wrote: > > On 6/18/07, Brad Bonkoski <[EMAIL PROTECTED]> wrote: > > > Jochem Maas wrote: > > > > Edward Kay wrote: > > > > > > > > ... > >

Re: [PHP] Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Tijnema
On 6/18/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Mon, 2007-06-18 at 10:40 -0400, Robert Cummings wrote: > On Mon, 2007-06-18 at 16:22 +0200, Tijnema wrote: > > On 6/18/07, Brad Bonkoski <[EMAIL PROTECTED]> wrote: > > > Jochem Maas wrote: > > > > Edward Kay wrote: > > > > > > > > ... > >

Re: [PHP] Re: [BULK] Re: [PHP] OK to have many files in one folder?

2007-06-18 Thread Daniel Brown
On 6/18/07, Colin Guthrie <[EMAIL PROTECTED]> wrote: clive wrote: >> >> I have no clue how big the files are, but you might want to store them >> in a database. That can speed up things, but don't ask me how much ;) >> >> Tijnema >> > no dude, while database are convenient, files systems are fast

Re: [PHP] Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Robert Cummings
On Mon, 2007-06-18 at 10:40 -0400, Robert Cummings wrote: > On Mon, 2007-06-18 at 16:22 +0200, Tijnema wrote: > > On 6/18/07, Brad Bonkoski <[EMAIL PROTECTED]> wrote: > > > Jochem Maas wrote: > > > > Edward Kay wrote: > > > > > > > > ... > > > > > > > > > > > >> But the advert is for a GRADUATE dev

Re: [PHP] Unable to use exec() in php

2007-06-18 Thread MIKE YRABEDRA
Is there a special way to allow only a specific user to execute the system_exec() and exec() calls? on 6/18/07 10:31 AM, Daniel Brown at [EMAIL PROTECTED] wrote: > On 6/18/07, Crayon Shin Chan <[EMAIL PROTECTED]> wrote: >> On Monday 18 June 2007 13:15, makhan wrote: >> >> Stop top posting. >

Re: [PHP] Unable to use exec() in php

2007-06-18 Thread Tijnema
On 6/18/07, Daniel Brown <[EMAIL PROTECTED]> wrote: On 6/18/07, Crayon Shin Chan <[EMAIL PROTECTED]> wrote: > On Monday 18 June 2007 13:15, makhan wrote: > > Stop top posting. > > > I am also using shell_exec('matlab -r myscript') to run > > my matlab script. > > Using shell_exec('matlab -r /path

Re: [PHP] Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Robert Cummings
On Mon, 2007-06-18 at 16:22 +0200, Tijnema wrote: > On 6/18/07, Brad Bonkoski <[EMAIL PROTECTED]> wrote: > > Jochem Maas wrote: > > > Edward Kay wrote: > > > > > > ... > > > > > > > > >> But the advert is for a GRADUATE developer ;) Whilst your messages to > > >> this > > >> list show you know a l

Re: [PHP] Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Robert Cummings
On Mon, 2007-06-18 at 10:08 -0400, Brad Bonkoski wrote: > Jochem Maas wrote: > > Edward Kay wrote: > > > > ... > > > > > >> But the advert is for a GRADUATE developer ;) Whilst your messages to this > >> list show you know a lot about PHP, I doubt you've managed to fit a degree > >> in yet :) >

Re: [PHP] Unable to use exec() in php

2007-06-18 Thread Daniel Brown
On 6/18/07, Crayon Shin Chan <[EMAIL PROTECTED]> wrote: On Monday 18 June 2007 13:15, makhan wrote: Stop top posting. > I am also using shell_exec('matlab -r myscript') to run > my matlab script. Using shell_exec('matlab -r /path/to/myscript') would be a better idea. -- Crayon -- PHP General

Re: [PHP] Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Tijnema
On 6/18/07, Brad Bonkoski <[EMAIL PROTECTED]> wrote: Jochem Maas wrote: > Edward Kay wrote: > > ... > > >> But the advert is for a GRADUATE developer ;) Whilst your messages to this >> list show you know a lot about PHP, I doubt you've managed to fit a degree >> in yet :) >> > > What does a gradu

Re: [PHP] generating an html intro text ...

2007-06-18 Thread Jochem Maas
Stut wrote: > Jochem Maas wrote: >> Stut wrote: >>> I'm sure Tidy could be employed to do this job. Grab your target length >>> of text, backtrack until you find < or >. If it's a < then chop that bit >>> off. Then give it to Tidy to fix the HTML. That should close off any >>> open tags and give yo

Re: [PHP] Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Brad Bonkoski
Jochem Maas wrote: Edward Kay wrote: ... But the advert is for a GRADUATE developer ;) Whilst your messages to this list show you know a lot about PHP, I doubt you've managed to fit a degree in yet :) What does a graduate php developer earn in Scotland? and is it the the piece of pap

Re: [PHP] Re: Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Tijnema
On 6/18/07, Colin Guthrie <[EMAIL PROTECTED]> wrote: Tijnema wrote: > Well, I have a lot experience with PHP, HTML and MySQL. Also some > experience with Unix system administration. I'm 15 years old, so > could I apply for the job? :) We can offer a competitive package that involves free milk a

Re: [PHP] generating an html intro text ...

2007-06-18 Thread Stut
Jochem Maas wrote: Stut wrote: I'm sure Tidy could be employed to do this job. Grab your target length of text, backtrack until you find < or >. If it's a < then chop that bit off. Then give it to Tidy to fix the HTML. That should close off any open tags and give you a properly formed snippet.

Re: [PHP] Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Jochem Maas
Edward Kay wrote: ... > > But the advert is for a GRADUATE developer ;) Whilst your messages to this > list show you know a lot about PHP, I doubt you've managed to fit a degree > in yet :) What does a graduate php developer earn in Scotland? and is it the the piece of paper that's important or

Re: [PHP] Re: Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Chris Boget
PS free milk and cookies and an afternoon nap actually sounds quite good now I come to think about it.. :p Almost better than healthcare and retirement benefits... :) thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] generating an html intro text ...

2007-06-18 Thread Jochem Maas
Stut wrote: > Edward Kay wrote: ... >> >> A few thoughts I've had on this problem: >> >> Assuming it is well formed HTML, you could use a stack. Parse the string >> putting all opening tags on the stack and then removing them when the >> close >> tag is found. This will leave you with all the un-

RE: [PHP] Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Edward Kay
> -Original Message- > From: Tijnema [mailto:[EMAIL PROTECTED] > Sent: 18 June 2007 14:25 > To: Colin Guthrie > Cc: php-general@lists.php.net > Subject: Re: [PHP] Edinburgh, Scotland: PHP Developer Position > > > On 6/18/07, Colin Guthrie <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Don't wan

[PHP] Re: Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Colin Guthrie
Tijnema wrote: > Well, I have a lot experience with PHP, HTML and MySQL. Also some > experience with Unix system administration. I'm 15 years old, so > could I apply for the job? :) We can offer a competitive package that involves free milk and cookies, a nap time in the afternoon and a note to g

Re: [PHP] generating an html intro text ...

2007-06-18 Thread Stut
Edward Kay wrote: -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: 18 June 2007 13:18 To: tedd Cc: [php] PHP General List Subject: Re: [PHP] generating an html intro text ... tedd wrote: At 11:39 AM +0200 6/14/07, Jochem Maas wrote: original string: ... The pr

Re: [PHP] Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Tijnema
On 6/18/07, Colin Guthrie <[EMAIL PROTECTED]> wrote: Hi, Don't want to spam the list, but figured after the London Salaries topic recently, that I'd post this! We're needing a PHP/MySQL developer, preferably with experience of general server admin too. The details can be found here if anyone i

RE: [PHP] generating an html intro text ...

2007-06-18 Thread Edward Kay
> -Original Message- > From: Jochem Maas [mailto:[EMAIL PROTECTED] > Sent: 18 June 2007 13:18 > To: tedd > Cc: [php] PHP General List > Subject: Re: [PHP] generating an html intro text ... > > > tedd wrote: > > At 11:39 AM +0200 6/14/07, Jochem Maas wrote: > >> original string: > >> > > .

[PHP] Re: Controlling project version

2007-06-18 Thread Colin Guthrie
Jochem Maas wrote: > Colin Guthrie wrote: >> One other good thing about Subversion is the flexibility of it's hooks. >> You can setup scripts to automatically deploy your changes to a live >> environment. It's ace! > > 2 points I'd like to make: > > 1. I'd be very wary of using an auto deployment

Re: [PHP] Session persistent objects

2007-06-18 Thread Stut
Please include the list when replying. Markus Feier wrote: I thought I read somewhere, there could be a problem storing objects in sessions. Do you mean $_SESSION['objectid']=new classx... I do indeed mean that. There are a few things you need to be aware of... * When you call session_start(

Re: [PHP] Re: Controlling project version

2007-06-18 Thread Shafiq Rehman
Hello, I use CVS in office and home -- Shafiq Rehman (ZCE) http://www.phpgurru.com | http://shafiq.pk Cell: +92 300 423 9385 On 6/18/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Colin Guthrie wrote: > Stut wrote: >>> I don't like the branching in subversion, it's a lot easier to work with >>>

Re: [PHP] Re: Controlling project version

2007-06-18 Thread Jochem Maas
Colin Guthrie wrote: > Stut wrote: >>> I don't like the branching in subversion, it's a lot easier to work with >>> in CVS. ... > > One other good thing about Subversion is the flexibility of it's hooks. > You can setup scripts to automatically deploy your changes to a live > environment. It's a

Re: [PHP] Session persistent objects

2007-06-18 Thread Stut
Markus Feier wrote: In a browser-application, whenever receiving a GET, php will have to create all involves objects. I wonder, if there is a way to keep php objects, including all actual propertys, during a whole session Yeah, erm, store the in the session. Too obvious? -Stut -- http://st

  1   2   >