[PHP] suhosin and 5.4 onwards

2013-08-02 Thread Nick Edwards
Ok, so I know this might start flame wars, but... here goes ;) It seems suhosin is dead as far as 5.4 goes, now, some make allegations that it is no longer needed since php has allegedly incorporated much of its safe guards, but these claims are from self proclaimed experts (a term i use very loo

Re: [PHP] Binding object instances to static closures

2013-05-31 Thread Nick Whiting
This will not work. As stated in the PHP documentation "Static closures cannot have any bound object " A static Closure has no context of "this" just as with any other static object. A workaround is to pass in the Closure as a parameter to achieve a similar result. class TestClass { public

Re: [PHP] Random

2013-05-24 Thread Nick Pratley
number 1-30 for my site. > >>> > >>> function rand_from_1_to_30() { > >>> return 4; > >>> } > >>> > >> > > Did you actually try that? > > Thanks, > Ash > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- - Nick

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-16 Thread Nick Khamis
interface Shape { public double getArea(); } class Circle implements Shape { double radius; public Circle(int double radius) { this.radius = radius; } public double getArea() { return (radius * radius * 3.1415); } } class Square implements Shape { double side; public

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-16 Thread Nick Khamis
OO comes from the heart. You know you have it when everything you look at turn into objects, attributes, accessors, mutators, and constructors. When IBM transitioned from functional to OO level programming, they had their top level engineers walk into a room and tell their employees that 80% of th

Re: [PHP] Having a problem with clone.

2013-05-10 Thread Nick Whiting
Do you have a backtace for this? What is the gender class doing? Have u done a global search for keyword "clone"? On Friday, May 10, 2013, Richard Quadling wrote: > Hi. > > I'm having an issue where I get ... > > Fatal error: Trying to clone an uncloneable object of class Smarty_Variable > in

Re: [PHP] Introduction ... !

2013-03-01 Thread Nick Whiting
On Fri, Mar 1, 2013 at 6:32 PM, tamouse mailing lists < tamouse.li...@gmail.com> wrote: > On Fri, Mar 1, 2013 at 11:56 AM, Daniel Brown wrote: > > On Fri, Mar 1, 2013 at 12:54 PM, Jim Giner > wrote: > >> > >> What gives you such optimism? I recently saw a list of languages in > use and > >> PHP

Re: [PHP] Holding "datetimes" in a DB.

2013-03-01 Thread Nick Whiting
On Fri, Mar 1, 2013 at 7:04 PM, Sebastian Krebs wrote: > 2013/3/2 tamouse mailing lists > > > On Fri, Mar 1, 2013 at 11:53 AM, Matijn Woudt wrote: > > > On Fri, Mar 1, 2013 at 11:49 AM, Richard Quadling > >wrote: > > > > > >> Hi. > > >> > > >> My heads trying to remember something I may or may

[PHP] Introduction ... !

2013-03-01 Thread Nick Whiting
Hello PHP'ers! Just thought I would introduce myself to the mailing list since I've worked with PHP for almost 10 years now and yet haven't really been community active ... I've developed quite a few open-source projects over the years that I hope someone here will find as useful as I have ... th

Re: [PHP] database hell

2012-07-15 Thread Nick Edwards
On 7/12/12, Ashley Sheridan wrote: > > > "ma...@behnke.biz" wrote: > >> >> >> >>Nick Edwards hat am 12. Juli 2012 um 14:00 >>geschrieben: >> >>> On 7/12/12, Gibbs wrote: >>> >>> > mysql_query("DE

Re: [PHP] database hell

2012-07-12 Thread Nick Edwards
On 7/12/12, Gibbs wrote: >>> $connmy=mysql_connect("host","user","pass", TRUE); >>> >>> http://php.net/manual/en/function.mysql-connect.php >>> >> >> Thanks, will give that a shot >> > I forgot to add your queries will need the new link too. So > > mysql_query("DELETE from userprefs where clientr

Re: [PHP] database hell

2012-07-12 Thread Nick Edwards
On 7/12/12, Adam Nicholls wrote: > > >> -Original Message----- >> From: Nick Edwards [mailto:nick.z.edwa...@gmail.com] >> Sent: 12 July 2012 12:30 >> To: php-general@lists.php.net >> Subject: [PHP] database hell >> >> Hi >> >> W

Re: [PHP] database hell

2012-07-12 Thread Nick Edwards
On 7/12/12, Gibbs wrote: > On 12/07/12 12:29, Nick Edwards wrote: >> Hi >> >> We have a program that manages users, throughout all database calls >> >> created as: >> $connect = mysql_connect($db_host--other variables); >> mysql_query("Delete f

[PHP] database hell

2012-07-12 Thread Nick Edwards
Hi We have a program that manages users, throughout all database calls created as: $connect = mysql_connect($db_host--other variables); mysql_query("Delete from clients where id=$User"); All this works good, but, we need, in the delete function to delete from another database $connmy=mysql_conn

Re: [PHP] Destructor not called when extending SimpleXMLElement

2012-07-03 Thread Nick Chalk
tor. I've been playing with that today, and it looks like a workable solution. Thanks for your help! Nick. -- Nick Chalk. Loadbalancer.org Ltd. Phone: +44 (0)870 443 8779 http://www.loadbalancer.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Destructor not called when extending SimpleXMLElement

2012-07-02 Thread Nick Chalk
destructor is not called. The XMLConfig2 class, which does not use inheritance, does have its destructor called. The test platform is CentOS 6.2, with PHP version 5.3.3. What am I missing? Thanks for your help. Nick. -- Nick Chalk. Loadbalancer.org Ltd. Phone: +44 (0)870 443 8779 http

Re: [PHP] Stuck on undefined function mysql_connect()

2011-10-13 Thread Nick Khamis
Correct. Extensions, such as those found in the PECL repository, are added in that manner. Things compiled into the core, such as what you're doing with MySQLi, are automatically loaded regardless, because they're statically-built into the PHP binary itself.

Re: [PHP] Stuck on undefined function mysql_connect()

2011-10-13 Thread Nick Khamis
I was just going to try recompilign with mysql instead of mysqli... I hope this fixes it. In terms of mysql being compiled into the core, does this mean I do not have to add extension=mysqli.so extension_dir=/usr/local/php/ include/php/ext/ Thanks in Advance,

[PHP] Stuck on undefined function mysql_connect()

2011-10-13 Thread Nick Khamis
* mysqli.max_linksUnlimitedUnlimited mysqli.max_persistentUnlimited Unlimited mysqli.reconnectOffOff However, there is no mysqli.so or mysql.so found anywhere? Please help, I have fallen behind because of this. Nick.

[PHP] Compile PHP with MySQLi (With MySQL on a remote server)

2011-10-13 Thread Nick Khamis
ql support, but actually mysql is installed on a different server? Can I download a precompile mysqli anywhere? The PHP version is 5.1.49 as noted earlier. Thanks in Advance, Nick

[PHP] Compile PHP with MySQL support

2011-10-13 Thread Nick Khamis
ql support, but actually mysql is installed on a different server? Can I download a precompile mysqli anywhere? The PHP version is 5.1.49 as noted earlier. Thanks in Advance, Nick

Re: [PHP] PHP session replication

2011-03-17 Thread Nick Williams
Interesting. When I went to it I got no such 404 error. Came right up. Thought-provoking article, too. N On Mar 17, 2011, at 10:22 AM, Richard Quadling wrote: > On 17 March 2011 15:18, Stuart Dallas wrote: >> On Thursday, 17 March 2011 at 15:15, Nathan Nobbe wrote: >> On Wed, Mar 16, 2011 at 1

Re: [PHP] PHP session replication

2011-03-17 Thread Nick Williams
I have successfully and efficiently used MySQL-based database session storage for years, even on a website with 5,000 (very) active simultaneous users. I would highly recommend it. N On Mar 17, 2011, at 9:44 AM, Dan Joseph wrote: > On Thu, Mar 17, 2011 at 12:06 AM, Alessandro Ferrucci < > ales

Re: [PHP] Joomla FrameWork ::

2010-05-02 Thread Nick Balestra
Thank a lot for pointing me to this, as you wrote u are right, haven't started yet with oo so of course i wasn't able to understand what was this all about. thanks again Nick On May 2, 2010, at 4:52 PM, viraj wrote: > hi nick, > :: is what we call 'scope resolution ope

[PHP] Re: Joomla FrameWork ::

2010-05-02 Thread Nick Balestra
I think si related to class and methods, JRequest Class have a method called setVar, right? if this is correct sorry for posting the question, i just haven't started yet classes and methods...;-) On May 2, 2010, at 4:41 PM, Nick Balestra wrote: > I am trying to understand how th

[PHP] Joomla FrameWork ::

2010-05-02 Thread Nick Balestra
#x27;view, 'single'); how do you read it and how do you manage it? Cheers, Nick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] multi dimensional array question

2010-05-01 Thread Nick Balestra
Thanks! I'll agree with you abotu ur points, i just started php few days ago..so i am in the first phase of learnign it...and this list is so gr8! thanks evrybody cheers, Nick On May 1, 2010, at 6:11 PM, Programming Guides wrote: > On Fri, Apr 30, 2010 at 7:33 PM, Nick Balestr

Re: [PHP] multi dimensional array question

2010-04-30 Thread Nick Balestra
thanks Piero! i was trying to solve an excercise on "learning php5" (O'reilyl) book. I am happy abotut his solution with the array_sum funtion you suggested, and my multidimensional array make much more sense to mee then they suggested solution that also much more line of code comapred... loo

[PHP] multi dimensional array question

2010-04-30 Thread Nick Balestra
hello everybody here is my array(s) $us_census = array('NY' => array('New York' => 8008278), 'CA' => array('Los Angeles' => 3694820, 'San Diego' => 1223400), 'IL

Re: [PHP] escape \n

2010-04-23 Thread Nick Balestra
Thanks everybody! On Apr 23, 2010, at 10:05 AM, Ashley Sheridan wrote: > On Fri, 2010-04-23 at 09:51 +0200, Nick Balestra wrote: >> >> Hello guys i am trying to figure out what is worng with thoose special >> escaped character, like \n \t \r ... >> >> A

[PHP] escape \n

2010-04-23 Thread Nick Balestra
d like to understand this. Cheers, Nick

Re: [PHP] replying to list

2010-04-21 Thread Nick Balestra
to all and replace "to" with the "cc". I think the best practice is to take this 5 second to take care of this in order to avoid duplicate message to others. cheers Nick On Apr 21, 2010, at 12:45 PM, Karl DeSaulniers wrote: > Exactly. > :) > > Karl > >

[PHP] Hello everybody - php newbie from switzerland

2010-04-20 Thread Nick Balestra
Hello everybody, I am NIck, from Locarno (southern switzerland) i am getting into php development for my own start-up company, maybe there are other people near me that would be nice to know for networking and alike. I will post here all my questions if i don't find any answer already on

RE: [PHP] Header function

2010-02-27 Thread Nick allan
27;Content-Type: application/msword'); header("Content-Disposition: attachment; filename=PurchaseReq.doc"); -Original Message- From: Richard Quadling [mailto:rquadl...@googlemail.com] Sent: Saturday, 27 February 2010 8:45 PM To: Nick allan Cc: php-general@lists.php.net Subject: Re

[PHP] Header function

2010-02-26 Thread Nick allan
logue, but with preq.doc instead of PurchaseReq.doc Preq.php is the calling php file. It has worked before so I'm not sure what I've changed to have it stop working. Thanks in advance for any suggestions. Regards Nick

[PHP] header function query

2010-02-25 Thread Nick allan
but I haven't been able to find anything using google. Thanks in advance for any suggestions. Regards Nick

Re: [PHP] PHP String convention

2009-10-28 Thread Nick Cooper
2009/10/28 Jim Lucas: > Nick Cooper wrote: >> Hi, >> >> I was just wondering what the difference/advantage of these two >> methods of writing a string are: >> >> 1) $string = "foo{$bar}"; >> >> 2) $string = 'foo'.$bar; >&

[PHP] PHP String convention

2009-10-28 Thread Nick Cooper
would use a generic search engine but not sure what the first method is called so don't know where to begin my search. Thanks for any help. Nick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP 5.3.0 Released!

2009-07-02 Thread Nick Cooper
Does anyone have any further information on the PECL Binaries for 5.3, will they be released? 2009/6/30 pan > Lukas Kahwe Smith wrote: > >> Hello! > >> > >> The PHP Development Team would like to announce the immediate release > >> of PHP 5.3.0. This release is a major improvement in the 5.X ser

Re: [PHP] $_GET verses $_POST

2009-04-14 Thread Nick Cooper
$_REQUEST is not any less secure then $_POST/$_GET/$_COOKIE, they all contain raw user data. The way $_REQUEST is being used in this example is not less secure then using $_GET. It does open up an exploit but this is not because $_REQUEST is less secure. The same exploit exists with $_GET, I could

Re: [PHP] PHP bandwidth control

2009-04-07 Thread Nick Cooper
Sorry to side track the issue, but when did this happen to you on GoDaddy? I have never experienced this problem. I have been using them for two years and I often leave domains in the checkout and come back sometimes days later and they're still $7.95. 2009/4/7 Michael Kubler > DO NOT USE GO-DAD

Re: [PHP] Tripple The Fun

2009-03-24 Thread Nick Cooper
2009/3/24 Marc > $RCDCE0CB7B12D0116B987F9A96911A37B = array('2','3','w',' > d','q','o','e','i','3','p','p','2','e','s','a','n','u','y','d','q','z','s'); > for ($REDCEC4A793439846D7944E29AD2898E9=1; > $REDCEC4A793439846D7944E29AD2898E9 % 3)){echo > $RCDCE0CB7B12D0116B987F9A96911A37B[$REDCEC4A79

Re: [PHP] Tripple The Fun

2009-03-24 Thread Nick Cooper
2009/3/24 abdulazeez alugo > > Hello guys, > > The list seems boring to me today so I've come up with an idea (you can > call it a challenge). What if we all wrote to this thread in PHP codes. on't > get the gist yet? well all it means is that, on this thread, all that we > should see must be w

Re: [PHP] A couple of questions

2009-03-16 Thread Nick Cooper
2009/3/16 Stuart > 2009/3/16 Payne > > > I had a page working on my opensuse 11.0 32bit, had to upgrade to 11.1 > > 64bit. I have two strange issues. > > > > The first my code is being display when I call the page, I looked at the > > logs and I don't see any errors that explain why this happen.

Re: [PHP] Re: spl_object_hash not hashing unqiue objects BUG

2009-02-12 Thread Nick Cooper
4: 45701af64172cbc2a33069dfed73fd07 a5: 09d264fcececf51c822c9382b40e3edf 2009/2/12 Jochem Maas : > Colin Guthrie schreef: >> 'Twas brillig, and Jochem Maas at 12/02/09 12:47 did gyre and gimble: >>> Colin Guthrie schreef: >>>> 'Twas brillig, and Nick Cooper

[PHP] spl_object_hash not hashing unqiue objects BUG

2009-02-12 Thread Nick Cooper
I am having a problem with spl_object_hash() creating non unique hashes. I understand with MD5 it is possible to have the same hash for different strings but this doesn't seem like that problem. I have created a simple test below, should I report this as a bug or am I doing something wrong. PHP

[PHP] Senior Software Engineer / PHP Developer Job opportunity in Boulder, CO

2009-01-14 Thread Nick Gasparro
, Prototype, Scriptaculous, Moo * Previous experience with version control systems, esp. SVN * Building distributed systems and/or large scale database applications. If you are interested please send resume to: n...@remycorp.com Nick Gasparro Managing Partner, REMY Corp. Denver, CO 80202 303-539-0448

[PHP] Job opportunity in Denver, CO - Jr. PHP developer needed

2008-12-05 Thread Nick Gasparro
and able to multi-task and project manage well -- Nick Gasparro Managing Partner, REMY Corp. Denver, CO 80202 303-539-0448 Direct 303-547-7469 Cell [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]> www.remycorp.com<http://www.remycorp.com/> Click here<http://www.linkedin.com/inviteFromPro

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

[PHP] Job Opportunity - User Experience Designer / Boulder, CO

2008-08-05 Thread Nick Gasparro
tool * Advanced to Expert Photoshop / Illustrator CS3 skills * Extremely comfortable in a mixed computing environments (Mac, Windows, Linux) Please reply back with your resume and contact information if you are interested in the opportunity. Best, Nick Gasparro Managing Partner, REMY Corp. Denver

[PHP] Sr. PHP Engineer job opportunity / Denver

2008-06-05 Thread Nick Gasparro
. Software Development Experience with the Following: * Linux, Apache, PHP 4, PHP 5, MySQL * Object-oriented design and distributed systems * Open source development tools, languages and application servers. * Competent with JavaScript, Prototype, Scriptaculous, Moo Best, Nick

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] Denver PHP opportunity - Senior Software Engineers

2008-04-21 Thread Nick Gasparro
have some interest and I would be happy to set up a time to talk. Best, Nick Gasparro Managing Partner, REMY Corp. Denver, CO 80202 303-539-0448 Direct 303-547-7469 Cell [EMAIL PROTECTED] www.remycorp.com   Come visit our booth!!! Web 2.0 Expo San Francisco 2008 http://www.web2expo.com/sf San

[PHP] Denver PHP opportunity - Senior Software Engineers

2008-04-21 Thread Nick Gasparro
otype, Scriptaculous, Moo * OOP, SQL, Linux, HTML Nick Gasparro Managing Partner, REMY Corp. 1637 Wazee Street Denver, CO 80202 303-539-0448 Direct 303-547-7469 Cell [EMAIL PROTECTED] www.remycorp.com <http://www.remycorp.com/> Nick Gasparro Managing Partner, REMY Corp. Denve

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

[PHP] Hot job opportunity - Sr. Software Developer/Architect

2008-02-28 Thread Nick Gasparro
at if you are interested. Nick Gasparro Managing Partner, REMY Corp. 1637 Wazee Street Denver, CO 80202 303-539-0448 Direct 303-547-7469 Cell [EMAIL PROTECTED] www.remycorp.com

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
Petrus Bastos wrote: > Hi Nick, > > Sorry, but I forgot to tell you that I can't use this exec neither > system commands because they are disabled for security precautions. So, Do > you have any other ideas on how can I do that? > > Thanks for your help, > Petrus

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

[PHP] Sr. Software Engineer / PHP developer -Denver opportunities

2008-02-11 Thread Nick Gasparro
regards, Nick Gasparro Managing Partner, REMY Corp. 1637 Wazee Street Denver, CO 80202 303-539-0448 Direct 303-547-7469 Cell <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] <http://www.remycorp.com> www.remycorp.com

[PHP] What does "<<<" mean?

2007-04-30 Thread Nick Gorbikoff
lt;<< Regards, -- Nick __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __

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

  1   2   3   4   5   6   7   8   >