Re: [PHP] Controlling project version

2007-06-18 Thread Chris
Stut wrote: Chris wrote: That's odd since this is one of the major advantages that Subversion has over CVS (for me at any rate). When you branch or tag in CVS it will sit there and create a copy of every single file in the repository. Depending on the size of your projects this can take a while.

Re: [PHP] Controlling project version

2007-06-18 Thread clive
svn is what I prefer. clive -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pack vs. serialize

2007-06-18 Thread Richard Heyes
Nathan Nobbe wrote: all, i have recently stumbled upon the packmethod. can this be used as a substitute for serialize ? No. pack() is for creating binary representations of data, while seriali

Re: [PHP] if test

2007-06-18 Thread Jochem Maas
please keep posts on list. jekillen wrote: > > On Jun 17, 2007, at 12:18 PM, Jochem Maas wrote: > >> jekillen wrote: >>> Hello again; >>> does the following test pass if the file is successfully included: >>> if( include( some file ) ) >>> >>> or does it pass with: >>> if( ! include( some file )

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

2007-06-18 Thread clive
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 faster, I mean thats what they were designed for, serving files. For lots of files I

[PHP] Re: Controlling project version

2007-06-18 Thread Colin Guthrie
Stut wrote: >> I don't like the branching in subversion, it's a lot easier to work with >> in CVS. > > That's odd since this is one of the major advantages that Subversion has > over CVS (for me at any rate). When you branch or tag in CVS it will sit > there and create a copy of every single file

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

2007-06-18 Thread Colin Guthrie
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 faster, I mean > thats what they were designed for, serving

[PHP] Edinburgh, Scotland: PHP Developer Position

2007-06-18 Thread Colin Guthrie
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 is interested: http://www.tribalogic.net/tribalogic/jobs

[PHP] Session persistent objects

2007-06-18 Thread Markus Feier
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 Markus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

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

2007-06-18 Thread Jochem Maas
tedd wrote: > At 11:39 AM +0200 6/14/07, Jochem Maas wrote: >> original string: >> ... > > The problem as I see it is covering all the possibilities that may occur > even if the text is well formed. Like what if someone introduces a span > that sets a color for a paragraph, such as: > > Dolore m

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

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] 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] 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(

[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] 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: > >> > > .

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 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

[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] 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

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] 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] 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] 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] 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] 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] 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 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] 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 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] 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] 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] 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] 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] 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 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] 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 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] 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] 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] 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] 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 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

[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] 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

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] 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] 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] 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] 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] 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] 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 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 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] 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] 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

[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 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: >

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] 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] 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

[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

[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

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

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 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 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 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] 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] 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] 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 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 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

[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] 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

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 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 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] 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 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] 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 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] 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

[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] 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.

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 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] 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] 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: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] 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] 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 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

[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] 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

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

[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 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 > >

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] 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

  1   2   >