Re: [PHP] Launching multiple PHP threads via Scheduled Tasks

2008-10-27 Thread Nick Stinemates
On Mon, Oct 27, 2008 at 11:44:50AM -0700, Brian Dunning wrote: > I've got a script that downloads files queued from a server, and it's > launched by a Windows Scheduled Task that launches every minute. My > understanding of the default behavior is that if the task is still > running a minute

Re: [PHP] Interactive canvas example

2008-10-26 Thread Nick Stinemates
On Sun, Oct 26, 2008 at 10:57:19AM +, Richard Heyes wrote: > Hi, > > Had to show this off - I'm so proud. READ: full of myself... I've > tried it in Firefox 3, Opera 9.6, Chrome and Safari, all on Windows. > > http://dev.rgraph.org/examples/interactive.html > > -- > Richard Heyes > > HTML5

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nick Stinemates
On Fri, Apr 25, 2008 at 11:29:05AM -0600, Nathan Nobbe wrote: > here we are back at the classic syntactic sugar argument. at least weve > moved past abstract classes and interfaces ! for now :) -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- PHP General M

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nick Stinemates
#x27;t imagine working with someones code where they liberally use these types of lazy things. I like structured, ordered code, and, somehow, using something like this technique doesn't seem structured or ordered. -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -

Re: [PHP] the most amazing php code i have ever seen so far

2008-04-25 Thread Nick Stinemates
ething else! > } > } > } > > > Why is this useful? Because you can add functionality to your save > page without touching it. This is very powerful when you have a > shared code base and need to add some parts to it without breaking > other sites. Since it is ex

Re: [PHP] Re: php framework vs just php?

2008-04-25 Thread Nick Stinemates
'Can you just add XXX' :( > > So they actually ask for a porn site? > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > :D lol -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- PH

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Nick Stinemates
s/method, > what data is actually allowed to be injected into that variable. Whereas > the second example would allow you to stuff any type of data into that > class variable. That might not be a good thing. > That's a relatively narrow minded response to my point, since I gave

Re: [PHP] need "pop-up" in progress alert

2008-04-18 Thread Nick Stinemates
h the event processing > end loop > } > > the other, probably better option would be to have a progress area, that > was/is a jscript/ajax based, that talked/polled the server to determine the > overall status of the "action" as it's being performed. > > w

Re: [PHP] PHP console script vs C/C++/C#

2008-04-18 Thread Nick Stinemates
On Fri, Apr 18, 2008 at 09:58:14AM -0600, Nathan Nobbe wrote: > On Thu, Apr 17, 2008 at 5:46 PM, Nick Stinemates <[EMAIL PROTECTED]> > wrote: > > > > If I wrote the console application in a c language (and compiled) would > > one > > > expect to see any i

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Nick Stinemates
On Fri, Apr 18, 2008 at 10:25:29AM -0600, Nathan Nobbe wrote: > On Thu, Apr 17, 2008 at 5:43 PM, Nick Stinemates <[EMAIL PROTECTED]> > wrote: > > > On Thu, Apr 17, 2008 at 10:05:11AM +0200, Michael Preminger wrote: > > > Hello! > > > > > > Seems th

Re: [PHP] need "pop-up" in progress alert

2008-04-18 Thread Nick Stinemates
quite a few questions my self.. You can't do a > progress bar in PHP since by the time it gets to the browser, PHP is done > doing what it does. This is actually false, at least on my system(s). Try this out: -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org --

Re: [PHP] PHP console script vs C/C++/C#

2008-04-18 Thread Nick Stinemates
anks for the consideration and > looking into those. > > At this point some of you may encourage me to go to C++ so i stop with this > question...but I'd like to hear if you all agree that perhaps it is time to > pull out the 50 lbp lump hammer? Still disagree. I have

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Nick Stinemates
On Thu, Apr 17, 2008 at 10:05:11AM +0200, Michael Preminger wrote: > Hello! > > Seems that PHP gets more and more object oriented, which is good. > > I am now running a course in PHP, using PHP 5, where we are going to > use the *DOM* interface. I am trying to teach them good OO practices, > meanin

Re: [PHP] PHP console script vs C/C++/C#

2008-04-18 Thread Nick Stinemates
e would you > recommend? Depends on the task, but based on this e-mail I have a feeling you'll encounter the same problem. -- Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] More than one values returned?

2008-02-21 Thread Nick Stinemates
Greg Donald wrote: > On 2/19/08, Nick Stinemates <[EMAIL PROTECTED]> wrote: > >> I said, simply, returning an array of objects was usually an indication >> of poor design. >> > > No it's not. Nearly every MVC framework in existence implements som

Re: [PHP] Sending SMS via PHP

2008-02-20 Thread Nick Stinemates
channel for your users to interact with you, and for you to (potentially) respond to them. You're looking for SMPP packages. -- == Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM: Nick Stinemates MSN: [EMAIL PROTECTED] Yahoo: [EMAIL PROTECTED] == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] More than one values returned?

2008-02-20 Thread Nick Stinemates
Nathan Nobbe wrote: > On Mon, Feb 18, 2008 at 9:06 PM, Nick Stinemates <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Thats a good example, and a good reason for passing values by > Reference > instead of by Value. > > I have fo

Re: [PHP] More than one values returned?

2008-02-20 Thread Nick Stinemates
Jim Lucas wrote: > Nick Stinemates wrote: >> Nathan Rixham wrote: >>> Robert Cummings wrote: >>>> On Mon, 2008-02-18 at 21:09 -0600, Larry Garfield wrote: >>>>> On Monday 18 February 2008, Nick Stinemates wrote: >>>>> >>>

Re: [PHP] More than one values returned?

2008-02-19 Thread Nick Stinemates
Robert Cummings wrote: > On Tue, 2008-02-19 at 21:51 -0800, Nick Stinemates wrote: > >> Robert Cummings wrote: >> >>> On Tue, 2008-02-19 at 21:24 -0800, Nick Stinemates wrote: >>> >>> >>>> I said, simply, returning an array

Re: [PHP] xpath question

2008-02-19 Thread Nick Stinemates
n use: $result = $xml->xpath('//coordinates'); I have a feeling you'll want to do more parsing than that, thought. In the case of your example, I believe it should be the following: $result = $xml->xpath('Folder/Placemark/LineString/coordinates'); _or_ $

Re: [PHP] unsure how to do this any help appreciated

2008-02-19 Thread Nick Stinemates
ille fwrite($fp, $out); //send the headers while (!feof($fp)) { $buff .= fgets($fp, 128); //read the response } fclose($fp); //close the socket if (strstr($buff, "404")) { //analyze. echo "no alerts"; } else { echo "alerts"; } ?&g

Re: [PHP] More than one values returned?

2008-02-19 Thread Nick Stinemates
Robert Cummings wrote: > On Tue, 2008-02-19 at 21:24 -0800, Nick Stinemates wrote: > >> I said, simply, returning an array of objects was usually an indication >> of poor design. >> > > Please elaborate as to the "why" of it being an indication of

Re: [PHP] More than one values returned?

2008-02-19 Thread Nick Stinemates
Nathan Nobbe wrote: > On Feb 19, 2008 11:52 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > > >> On Feb 19, 2008 9:27 PM, Nick Stinemates <[EMAIL PROTECTED]> wrote: >> >>> Support != good design habits. >>> >> So you pr

Re: [PHP] More than one values returned?

2008-02-19 Thread Nick Stinemates
Greg Donald wrote: > On 2/18/08, Nick Stinemates <[EMAIL PROTECTED]> wrote: > >> I have found, however, that if I ever need to return /multiple/ values, >> it's usually because of bad design and/or the lack of proper encapsulation. >> > > Yeah, t

Re: [PHP] More than one values returned?

2008-02-19 Thread Nick Stinemates
Nathan Rixham wrote: > Robert Cummings wrote: >> On Mon, 2008-02-18 at 21:09 -0600, Larry Garfield wrote: >>> On Monday 18 February 2008, Nick Stinemates wrote: >>> >>>>>> I have found, however, that if I ever need to return /multiple/ >>>>

Re: [PHP] System errno in PHP

2008-02-19 Thread Nick Stinemates
al page for that function - it will tell you how to detect >> errors. >> >> -Stut >> >> -- >> http://stut.net/ >> >> > > http://php.net/fopen -- == Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM: Nick Stinemat

Re: [PHP] More than one values returned?

2008-02-18 Thread Nick Stinemates
Robert Cummings wrote: > On Mon, 2008-02-18 at 18:06 -0800, Nick Stinemates wrote: > >> C.R.Vegelin wrote: >> >>> >> $in = 4; >>> calcpows($in, $pow2, $pow4); >>> echo "in = $in pow2=$pow2 pow4=$pow4"; >>> >>

Re: [PHP] More than one values returned?

2008-02-18 Thread Nick Stinemates
> > > HTH > Thats a good example, and a good reason for passing values by Reference instead of by Value. I have found, however, that if I ever need to return /multiple/ values, it's usually because of bad design and/or the lack of proper encapsulation. -- == N

Re: [PHP] classes

2008-02-18 Thread Nick Stinemates
thunderbird for looking like you responded to me. -- == Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM: Nick Stinemates MSN: [EMAIL PROTECTED] Yahoo: [EMAIL PROTECTED] == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] classes

2008-02-18 Thread Nick Stinemates
t;; > } > } > ?> > > Outputs the expected. Must be an error, maybe fatal or parse before the > method call or maybe your method does execute you just are expecting > something different? > > -Shawn > > What part of my example was unclear? -- ==

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Nick Stinemates
Petrus Bastos wrote: > I'm testing on FreeBSD. I can use any command through system(), but the zip > command doesn't works! I don't know why. > > > On Feb 18, 2008 4:06 PM, Nick Stinemates <[EMAIL PROTECTED]> wrote: > > >> Petrus Bastos wrote: &

Re: [PHP] classes

2008-02-18 Thread Nick Stinemates
e testing... test(); ?> Definitely works. -- == Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM: Nick Stinemates MSN: [EMAIL PROTECTED] Yahoo: [EMAIL PROTECTED] == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Nick Stinemates
> > Thanks again and sorry for the inconvenience, > Petrus Bastos. > > On Feb 18, 2008 2:37 PM, Nick Stinemates <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Petrus Bastos wrote: > > Richard, > > > > Unfortunately, I can

Re: [PHP] separating strings from extensions

2008-02-18 Thread Nick Stinemates
orking/looking for the exact type, it's time to use MIME as it is more reliable than something like a filename. http://us2.php.net/manual/en/ref.mime-magic.php Good luck. ====== Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM: Nick Stinemates MSN: [EMAIL P

Re: [PHP] Check time in between times

2008-02-18 Thread Nick Stinemates
invent the wheel to a square, just in case they got it wrong. [= -- == Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM: Nick Stinemates MSN: [EMAIL PROTECTED] Yahoo: [EMAIL PROTECTED] == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Nick Stinemates
o get creative, Petros. You're in a bind, and I assume you need to get this done, so you have the following options (in the order I would do it in..) -> Turn on exec() -> You can use/modify an app I wrote (in python) which accepts UDP packets and executed commands based off of it.

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Nick Stinemates
Richard Lynch wrote: > On Sun, February 17, 2008 1:57 pm, Nick Stinemates wrote: > >> Petrus Bastos wrote: >> >>> Hi Nick, >>> >>> Sorry, but I forgot to tell you that I can't use this exec >>> neither >>> system com

Re: [PHP] Protected ZIP file with password

2008-02-17 Thread Nick Stinemates
ge/File_Archive >> >> -- >> Postgresql & php tutorials >> http://www.designmagick.com/ >> >> > > I'm sure you know what you're doing, but maybe you'd be better off letting us know the task / process to better understand wh

Re: [PHP] separating strings from extensions

2008-02-17 Thread Nick Stinemates
John Meyer wrote: > Børge Holen wrote: >> On Monday 18 February 2008 00:10:30 John Meyer wrote: >> >>> Daniel Brown wrote: >>> On Feb 17, 2008 5:37 PM, nihilism machine <[EMAIL PROTECTED]> >> wrote: >> > i am using this code to get the extension of a filename: > >>>

Re: [PHP] Protected ZIP file with password

2008-02-17 Thread Nick Stinemates
Bastos. > > On Feb 17, 2008 5:15 AM, Nick Stinemates <[EMAIL PROTECTED]> wrote: > > >> Petrus Bastos wrote: >> >>> Hey folks, >>> >>> Do you know how can I create a protected zip file with password? Is >>> there anyway?

Re: [PHP] Protected ZIP file with password

2008-02-17 Thread Nick Stinemates
the relatively weak encryption provided by standard zipfile utilities.) == Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM: Nick Stinemates MSN: [EMAIL PROTECTED] Yahoo: [EMAIL PROTECTED] == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session destruction problem

2008-02-17 Thread Nick Stinemates
Adil Drissi wrote: > Hi everybody, > > I need help with sessions. > I have a simple authentification relying only on > sessions (i don't use cookies). After the user submits > his username and password, the script checks if that > corresponds to a record in a mysql table. If this is > the case "$_S

Re: [PHP] Fwrite Function

2008-02-16 Thread Nick Stinemates
$NAMEFORMAT . $data[0] . ""; // print the name echo $MESSAGEFORMAT . $data[1]; // print the text } fclose($boardFileHandle); ?> If you have any questions regarding the implementation I suggest the following reading material: http://us3.php.net/manual/en/function.f

Re: [PHP] Script to generate a site thumbnails

2007-01-21 Thread Nick Stinemates
An example: Hope it helps! -- == Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM: Nick Stinemates MSN: [EMAIL PROTECTED] Yahoo: [EMAIL PROTECTED] == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Month display calendar

2007-01-19 Thread Nick Stinemates
iling List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- You can take a look at: http://projects.stinemates.org/ And click on the 'View Source' link. == Nick Stinemates ([EMAIL PROTECTED]) http://nick.stinemates.org AIM

Re: [PHP] email validation string.

2007-01-18 Thread Nick Stinemates
I just got this from: http://php.net/preg_match Hope it works out for you. - Nick Stinemates On Thu, Jan 18, 2007 at 01:40:36PM -0700, Don wrote: > I'm trying to get this line to validate an email address from a form and it > isn't working. > > if (ereg("[EMAIL

Re: [PHP] Going back with multiple submits to the same page

2007-01-18 Thread Nick Stinemates
> I already do and currently I just jump to that page but it would be nice > > to go backwards so the user doesn't have to enter the same values all > > the time. If that is the case, you can also store their values