php-general Digest 18 Jun 2007 13:25:23 -0000 Issue 4855

2007-06-18 Thread php-general-digest-help
php-general Digest 18 Jun 2007 13:25:23 - Issue 4855 Topics (messages 257248 through 257277): Controlling project version 257248 by: Miguel Vaz 257250 by: Larry Garfield 257251 by: Jim Lucas 257252 by: Chris 257256 by: Stut 257258 by: Chris

Re: [PHP] Controlling project version

2007-06-18 Thread Stut
Chris wrote: Miguel Vaz wrote: Hi, I recently finished a project for our local city hall and some people asked me to do some version control for future updates. They suggested the use of a linux script called Recursive Version Control, which i never even heard anything about.

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

2007-06-18 Thread Jim Lucas
makhan wrote: Thanks jim for your reponse , from no success means I am not able to get any output. I am also using shell_exec('matlab -r myscript') to run my matlab script. I see a new matlab.exe process starting in the windows task manager. And the browser keeps busy trying to open this php

Re: [PHP] Controlling project version

2007-06-18 Thread Chris
I fail to see the difference between just a script and a proper program, but regardless... I think of a script as something like a firewall script - where-as cvs/subversion have a bunch of different commands to do different things. All interpretation I guess :P I use cvs at work (because

Re: [PHP] Controlling project version

2007-06-18 Thread Stut
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. Maybe

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

2007-06-18 Thread Crayon Shin Chan
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 Mailing List (http://www.php.net/) To unsubscribe,

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

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 packhttp://www.php.net/manual/en/function.pack.phpmethod. can this be used as a substitute for serializehttp://www.php.net/manual/en/function.serialize.php ? No. pack() is for creating binary representations of data, while

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 ) ) have you tried

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

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

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

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

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: span color:yellow;

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

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. snip lots of interesting stuff about SVN in action... One other good thing about Subversion is the flexibility of it's hooks. You can setup scripts to automatically deploy

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 in CVS.

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

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

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: ... The problem

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 is

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

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

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 want to spam the

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

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 is

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

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 and

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

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 you a properly

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

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 :) What does

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 lot about PHP, I doubt you've

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

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. I am

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 developer ;) Whilst your messages

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 faster, I mean

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: ... But the

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: ... But the

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

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 June

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 no dude, while

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

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

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 things, but don't ask

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 might want to store them

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

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 knows how to

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

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: I have no clue how big

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 your money back, and I

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 necessarily

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 the costs of

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

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 wrote: I

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

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: On 6/18/07, Colin

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 someone (not

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 here in the United

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

[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... ?php $str = 20070617T193500; list($date, $time) = explode(T,$str); $year = substr($date, 0, 4); $mon = substr($date, 4, 2); $day =

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

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... ?php $str = 20070617T193500; list($date, $time) = explode(T,$str); ? Even easier: $timestamp = strtotime( $str );

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 suggesting

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

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 get

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]

[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

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 =

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 =

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

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 just

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

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

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 Some

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.

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 .

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

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

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

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

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

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 message

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

  1   2   >