[PHP] mcrypt_create_iv - why so slow?

2013-05-31 Thread Nathan Nobbe
to succeed despite the warning. So wondering: * can the call to mcrypt_create_iv be sped up * is there an alternative (faster) way to create a proper iv * how big a risk is it to 'ride dirty' here and not use mcrypt_create_iv thanks, -nathan

[PHP] Re: mcrypt_create_iv - why so slow?

2013-05-31 Thread Nathan Nobbe
? #morbidcuriosity -nathan On Fri, May 31, 2013 at 12:40 AM, Nathan Nobbe quickshif...@gmail.comwrote: Hi folks, This code: ?php $iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC), MCRYPT_DEV_RANDOM); var_dump($iv); Takes just over a minute to run on my

Re: [PHP] Is there a PHP based authentication library?

2013-04-02 Thread Nathan Nobbe
, so YMMV. -nathan bash-3.2$ ls -1 modules/ InfoCard adfs aggregator aggregator2 aselect authX509 authYubiKey authcrypt authfacebook authlinkedin authmyspace authorize authtwitter authwindowslive autotest cas casserver cdc consent consentAdmin consentSimpleAdmin core cron discopower

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-21 Thread Nathan Nobbe
don't think changing the value of the string is entirely supported though that notation. php $str = 'blah'; php $str[3] = ''; php echo $str . PHP_EOL; bla php echo strlen($str); 4 -nathan

Re: [PHP] Strange string stuff -- maybe everything is ending...

2012-12-21 Thread Nathan Nobbe
On Fri, Dec 21, 2012 at 4:10 PM, Nathan Nobbe quickshif...@gmail.comwrote: On Fri, Dec 21, 2012 at 3:27 PM, Jim Giner jim.gi...@albanyhandball.comwrote: On 12/21/2012 5:16 PM, Tedd Sperling wrote: On Dec 21, 2012, at 4:58 PM, Jim Giner jim.gi...@albanyhandball.com wrote: Never

Re: [PHP] Variables with - in their name

2012-11-18 Thread Nathan Nobbe
the “minus” sign that is really a hyphen? php ${distributor-42-2} = 5; php echo ${distributor-42-2}; 5 I think that's it. -nathan

Re: [PHP] PDO

2012-10-22 Thread Nathan Nobbe
FROM bloggen ORDER BY date DESC LIMIT 0,5); if (!$query) {die(Execute query error, because: . $db-errorInfo());} That looks like you've not connected to the database successfully inside of db.php. -nathan

[PHP] APC expunge notices

2012-08-17 Thread Nathan Nobbe
could be implemented. Your feedback appreciated, -nathan

[PHP] Bazar behavior w/ private member variables

2012-07-12 Thread Nathan Nobbe
for member variables, is this supposed to be a feature? -nathan

Re: [PHP] Bazar behavior w/ private member variables

2012-07-12 Thread Nathan Nobbe
On Thu, Jul 12, 2012 at 8:38 PM, Tommy Pham tommy...@gmail.com wrote: On Thu, Jul 12, 2012 at 7:19 PM, Nathan Nobbe quickshif...@gmail.com wrote: Hi all, Strangely PHP seems to let each class have its own layer of private scope for member variables. If a subclass defines a member

Re: [PHP] Bazar behavior w/ private member variables

2012-07-12 Thread Nathan Nobbe
On Thu, Jul 12, 2012 at 9:23 PM, Nathan Nobbe quickshif...@gmail.comwrote: On Thu, Jul 12, 2012 at 8:38 PM, Tommy Pham tommy...@gmail.com wrote: On Thu, Jul 12, 2012 at 7:19 PM, Nathan Nobbe quickshif...@gmail.com wrote: Hi all, Strangely PHP seems to let each class have its own layer

[PHP] problem loading php extension: undefined reference to __gxx_personality_v0‏

2012-05-02 Thread Nathan Ridge
Hi, I'm having trouble loading a PHP extension that I made. When starting PHP, I get the following error: PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/libtg.so' - /usr/lib/php5/20090626/libtg.so: undefined symbol: __gxx_personality_v0 in Unknown on line

[PHP] date() confustion

2012-04-25 Thread Nathan Nobbe
is consistent in both environments. Something's going on in the first case, but I'm unsure what; any ideas? Your help appreciated as always. -nathan

Re: [PHP] date() confustion

2012-04-25 Thread Nathan Nobbe
On Wed, Apr 25, 2012 at 10:44 PM, Simon J Welsh si...@welsh.co.nz wrote: On 26/04/2012, at 4:40 PM, Nathan Nobbe wrote: Hi everyone, Does anybody know what might influence the output of the date() function besides date.timezone setting? Running through some code in an app I'm

[PHP] Jobs in Denver

2012-03-05 Thread Nathan Nobbe
Hey gang, Anyone looking for solid PHP gigs in the Denver area, (or would consider moving to Denver b/c it's so awesome!) contact me offline; I've got the hookup! -nathan

Re: [PHP] [php] static html search engine for php static html site

2011-12-27 Thread Nathan Nobbe
based on mysql fulltext, not something i would go for, but may be viable on your shared hosting solution. -nathan

[PHP] Friday Distraction

2011-10-28 Thread Nathan Nobbe
! -nathan

Re: [PHP] Friday Distraction

2011-10-28 Thread Nathan Nobbe
On Fri, Oct 28, 2011 at 5:23 PM, Eric Butera eric.but...@gmail.com wrote: On Fri, Oct 28, 2011 at 7:07 PM, Daniel Brown danbr...@php.net wrote: On Fri, Oct 28, 2011 at 18:36, Nathan Nobbe quickshif...@gmail.com wrote: Hi gang, Thinking database i/o would be the slowest part of a request

Re: [PHP] Friday Distraction

2011-10-28 Thread Nathan Nobbe
On Fri, Oct 28, 2011 at 5:26 PM, Eric Butera eric.but...@gmail.com wrote: On Fri, Oct 28, 2011 at 7:24 PM, Nathan Nobbe quickshif...@gmail.com wrote: On Fri, Oct 28, 2011 at 5:23 PM, Eric Butera eric.but...@gmail.com wrote: On Fri, Oct 28, 2011 at 7:07 PM, Daniel Brown danbr

Re: [PHP] Exporting large data from mysql to html using php

2011-10-27 Thread Nathan Nobbe
varnish to cache the generated html. you'll be able to handle a couple thousand requests per second against the proxy in no time. might be worth pre-generating some of the pages if they are still really slow after db optimization. -nathan

Re: [PHP] Friday Distraction

2011-10-21 Thread Nathan Nobbe
nice one! On Fri, Oct 21, 2011 at 10:27 AM, Daniel Brown danbr...@php.net wrote: I'll get this week's Friday distraction kicked off here with something shared with me by a Facebook friend. If you're on Facebook, try this. It's pretty sweet (and safe for work and kids).

Re: [PHP] Friday Distraction

2011-10-21 Thread Nathan Nobbe
Friday :P On Fri, Oct 21, 2011 at 10:35 AM, Daniel Brown danbr...@php.net wrote: On Fri, Oct 21, 2011 at 12:34, Nathan Nobbe quickshif...@gmail.com wrote: nice one! Quit top-posting! ;-P -- /Daniel P. Brown Network Infrastructure Manager http://www.php.net/

Re: [PHP] Friday Distraction

2011-10-21 Thread Nathan Nobbe
for this stuff. Cheers, tedd tedd, even older folks are getting on there these days. sure there are lame aspects as there are w/ just about anything; but it is a nice way to stay in touch w/ folks youd probly otherwise have lost touch w/. my 2c. -nathan

Re: [PHP] Re: Repetitive answers . . .

2011-09-15 Thread Nathan Nobbe
, and many spins on how to approach the problem, including alternative perspectives on life..; the ebb--flow of php-general ;) -nathan

[PHP] Installer for 5.3 on Windows ?

2011-08-23 Thread Nathan Nobbe
Hey gang, Wondering where the installer for php 5.3 on Windows is? Not seeing it here: http://windows.php.net/download/ Any clues appreciated, -nathan

[PHP] Re: Installer for 5.3 on Windows ?

2011-08-23 Thread Nathan Nobbe
On Tue, Aug 23, 2011 at 4:06 PM, Nathan Nobbe quickshif...@gmail.comwrote: Hey gang, Wondering where the installer for php 5.3 on Windows is? Not seeing it here: http://windows.php.net/download/ Any clues appreciated, -nathan Hmm, I have found some .msi files on this page: http

Re: [PHP] Doctrine madness!

2011-06-20 Thread Nathan Nobbe
On Mon, Jun 20, 2011 at 5:16 AM, Ford, Mike m.f...@leedsmet.ac.uk wrote: -Original Message- From: Nathan Nobbe [mailto:quickshif...@gmail.com] Sent: 16 June 2011 17:51 [...] Here's what's going on, I instantiate a model object for the product table from my application

Re: [PHP] Doctrine madness!

2011-06-18 Thread Nathan Nobbe
On Fri, Jun 17, 2011 at 1:19 PM, Jim Lucas li...@cmsws.com wrote: On 6/16/2011 3:15 PM, Nathan Nobbe wrote: what it really amounts to is php is good at doing 1 thing and 1 thing only, generating web pages. for anything else, including command line scripts that run for more than 30

[PHP] Doctrine madness!

2011-06-16 Thread Nathan Nobbe
be greatly appreciated as google hasn't been able to point me to the answer thus far. thx, -nathan

Re: [PHP] Doctrine madness!

2011-06-16 Thread Nathan Nobbe
On Thu, Jun 16, 2011 at 1:58 PM, Eric Butera eric.but...@gmail.com wrote: On Thu, Jun 16, 2011 at 12:51 PM, Nathan Nobbe quickshif...@gmail.com wrote: Hi gang, If anyone out there has some experience w/ Doctrine now would be a great time to share it! So I'm writing a batch importer

Re: [PHP] Doctrine madness!

2011-06-16 Thread Nathan Nobbe
On Thu, Jun 16, 2011 at 3:58 PM, Eric Butera eric.but...@gmail.com wrote: On Thu, Jun 16, 2011 at 5:37 PM, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Nathan Nobbe [mailto:quickshif...@gmail.com] Sent: Thursday, June 16, 2011 9:51 AM To: php-general

RE: [PHP] Doctrine madness!

2011-06-16 Thread Nathan Nobbe
, 2011 at 5:37 PM, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Nathan Nobbe [mailto:quickshif...@gmail.com] Sent: Thursday, June 16, 2011 9:51 AM To: php-general@lists.php.net Subject: [PHP] Doctrine madness! Hi gang, If anyone out there has

Re: [PHP] Doctrine madness!

2011-06-16 Thread Nathan Nobbe
-general@lists.php.net Subject: Re: [PHP] Doctrine madness! On Thu, Jun 16, 2011 at 5:37 PM, Daevid Vincent dae...@daevid.com wrote: -Original Message- From: Nathan Nobbe [mailto:quickshif...@gmail.com] Sent: Thursday, June 16, 2011 9:51 AM To: php-general@lists.php.net

Re: [PHP] phpsadness

2011-05-28 Thread Nathan Nobbe
as well. -nathan

Re: [PHP] phpsadness

2011-05-28 Thread Nathan Nobbe
On Sat, May 28, 2011 at 1:34 PM, Andre Polykanine an...@oire.org wrote: Hello Nathan, Do you mean $x{8}? yup, that or $x[8]; That is good but not for all situations. I need sometimes to make an array with letters as keys and numbers as values, like this (I give English alphabet

Re: [PHP] What's up with Quercus?

2011-05-28 Thread Nathan Nobbe
given minor release of php where is the parallel from quercus. also, the professional version of resin costs money. these are probly the main reasons why the resin community isn't blowing up. -nathan

Re: [PHP] phpsadness

2011-05-27 Thread Nathan Nobbe
of the things listed are things which give PHP character and history. Too bad it's not a blog post with a comments section. I'd point him to the internals list :) -nathan

Re: [PHP] semaphore release before acquire warning

2011-05-02 Thread Nathan Nobbe
(and signals) exactly for performance reasons L perhaps try pcntl_signal() to signal the c program rather than sem_release(). -nathan

[PHP] Re: dynamic copyright in page footer?

2011-04-30 Thread Nathan Rixham
David Mehler wrote: Hello, I am trying to use php to put a copyright notice in a page footer. I'm using the date function with the Y value for the year. Here's the code: ?php echo date ('Y'); ? echo implode(,, range(2011,date(Y))); -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Flattery will get you nowhere

2011-04-28 Thread Nathan Rixham
tedd wrote: At 4:58 PM -0400 4/27/11, Robert Cummings wrote: Tedd who? ;) Cheers, Rob. Rob what? ;-) Cheers, tedd flirting? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] JavaScript Injection ???

2011-04-25 Thread Nathan Rixham
because the code was sent in the request, just check the javascript console and you'll see something like: Refused to execute a JavaScript script. Source code of script found within request. Best, Nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] str_replace

2011-04-25 Thread Nathan Rixham
Jim Lucas wrote: On 4/24/2011 8:44 AM, Ron Piggott wrote: I am trying to figure out a syntax that will replace each instance of % with a different letter chosen randomly from the string $puzzle_filler. $puzzle_filler is populated with the letters of the alphabet, roughly in the same ratio as

Re: [PHP] $_POST vars

2011-04-14 Thread Nathan Nobbe
On Wed, Apr 13, 2011 at 3:30 PM, Stuart Dallas stu...@3ft9.com wrote: On Wednesday, 13 April 2011 at 19:47, Nathan Nobbe wrote: On Wed, Apr 13, 2011 at 12:34 PM, Stuart Dallas stu...@3ft9.com wrote: On Wednesday, 13 April 2011 at 19:15, Nathan Nobbe wrote: On Wed, Apr 13, 2011 at 12:04

Re: [PHP] $_POST vars

2011-04-14 Thread Nathan Nobbe
On Thu, Apr 14, 2011 at 2:53 AM, Stuart Dallas stu...@3ft9.com wrote: On Thursday, 14 April 2011 at 07:11, Nathan Nobbe wrote: On Wed, Apr 13, 2011 at 3:30 PM, Stuart Dallas stu...@3ft9.com wrote: On Wednesday, 13 April 2011 at 19:47, Nathan Nobbe wrote: I never make any assumptions about

Re: [PHP] $_POST vars

2011-04-13 Thread Nathan Nobbe
typically populated by the environment. It would probly be cleaner to have the display portion of your script read from an arbitrary array. Said arbitrary array could be populated by $_POST in one case and the results of a query in another case. -nathan

Re: [PHP] $_POST vars

2011-04-13 Thread Nathan Nobbe
On Wed, Apr 13, 2011 at 12:04 PM, Stuart Dallas stu...@3ft9.com wrote: On Wednesday, 13 April 2011 at 18:55, Nathan Nobbe wrote: On Wed, Apr 13, 2011 at 11:49 AM, Jim Giner jim.gi...@albanyhandball.com wrote: Can one create a set of $_POST vars within a script or is that not do-able

Re: [PHP] $_POST vars

2011-04-13 Thread Nathan Nobbe
Shrug, it's called reply-all and it's been brought up here before :) -nathan On Wed, Apr 13, 2011 at 12:25 PM, Jim Giner jim.gi...@albanyhandball.comwrote: No need to email me AND send to the list. Is that the standard practice on this forum? Not encountered it before.

Re: [PHP] $_POST vars

2011-04-13 Thread Nathan Nobbe
On Wed, Apr 13, 2011 at 12:34 PM, Stuart Dallas stu...@3ft9.com wrote: On Wednesday, 13 April 2011 at 19:15, Nathan Nobbe wrote: On Wed, Apr 13, 2011 at 12:04 PM, Stuart Dallas stu...@3ft9.com wrote: On Wednesday, 13 April 2011 at 18:55, Nathan Nobbe wrote: On Wed, Apr 13, 2011 at 11:49

[PHP] xinetd vs php socket server

2011-03-28 Thread Nathan Nobbe
implementation xinetd cons . time tradeoff learning xinetd configuration vs coding in support directly in php implementation . potentially less maintainable depending on staff, likely php dev team more capable of maintaining 100% php solution Interested in your thoughts! -nathan

Re: [PHP] xinetd vs php socket server

2011-03-28 Thread Nathan Nobbe
with this, basically, why reinvent the wheel w/ the daemon code when xinetd is available. i suppose those php libraries you mentioned are an argument against that, but then there is the speed benefit of xinetd. i guess it just comes down to a battle of tradeoffs. -nathan

Re: [PHP] xinetd vs php socket server

2011-03-28 Thread Nathan Nobbe
apache is typically configured to fork. right? -nathan

Re: [PHP] PHP session replication

2011-03-18 Thread Nathan Nobbe
think they start to loose their benefits on large sites. The way I see it they can be a great way to cope with startup costs and server-side complexity on low traffic sites. -nathan

Re: [PHP] PHP session replication

2011-03-18 Thread Nathan Nobbe
On Fri, Mar 18, 2011 at 11:56 AM, Stuart Dallas stu...@3ft9.com wrote: On Friday, 18 March 2011 at 17:36, Nathan Nobbe wrote: On Fri, Mar 18, 2011 at 11:19 AM, Stuart Dallas stu...@3ft9.com wrote: On Friday, 18 March 2011 at 17:14, Torsten Rosenberger wrote: I'm curious to know what

Re: [PHP] PHP session replication

2011-03-18 Thread Nathan Nobbe
On Fri, Mar 18, 2011 at 11:58 AM, Richard Quadling rquadl...@gmail.comwrote: On 18 March 2011 17:36, Nathan Nobbe quickshif...@gmail.com wrote: On Fri, Mar 18, 2011 at 11:19 AM, Stuart Dallas stu...@3ft9.com wrote: On Friday, 18 March 2011 at 17:14, Torsten Rosenberger wrote: I'm

Re: [PHP] PHP session replication

2011-03-17 Thread Nathan Nobbe
a performance bottleneck. Here's the post from google groups if you're interested: http://groups.google.com/group/memcached/browse_thread/thread/7ed750db888e6b1b?pli=1 -nathan

Re: [PHP] PHP session replication

2011-03-17 Thread Nathan Nobbe
a persistent store; membase offers replication + persistent store so it seems well suited for session storage. -nathan

Re: [PHP] Somewhat OT - Stored Procedures

2011-03-09 Thread Nathan Nobbe
On Wed, Mar 9, 2011 at 3:18 AM, Richard Quadling rquadl...@gmail.comwrote: On 7 March 2011 23:37, Nathan Nobbe quickshif...@gmail.com wrote: On Fri, Mar 4, 2011 at 7:29 AM, Richard Quadling rquadl...@gmail.com wrote: On 3 March 2011 18:30, Nathan Nobbe quickshif...@gmail.com wrote

Re: [PHP] Somewhat OT - Stored Procedures

2011-03-07 Thread Nathan Nobbe
On Fri, Mar 4, 2011 at 7:29 AM, Richard Quadling rquadl...@gmail.comwrote: On 3 March 2011 18:30, Nathan Nobbe quickshif...@gmail.com wrote: Hey gang, (Yes Tedd, I like your style, when it pertains to how you address the list :)) I have a new curiosity that's arisen as a result

Re: [PHP] Re: Somewhat OT - Stored Procedures

2011-03-07 Thread Nathan Nobbe
in this area if anyone knows where to find them. -nathan

[PHP] Re: Regex for extracting quoted strings

2011-03-05 Thread Nathan Rixham
Mark Kelly wrote: Hi. I'm hoping someone can help me extract text between double quotes from a string. $regex = 'some magic'; $r = preg_match($regex, $sentence, $phrases); So, if $sentence = 'Dave said This is it. Nope, that is the wrong colour she replied.'; I want $phrases to contain

[PHP] Re: Delaying $(document).ready() in jQuery until php script finish

2011-03-04 Thread Nathan Rixham
Richard Sharp wrote: I have been banging my head trying to figure out how to delay $(document).ready() command until my php script finish running and load data into a csv file. Any ideas *which* PHP script? are you returning an HTML document then keeping the script going in the background,

[PHP] Re: Somewhat OT - Stored Procedures

2011-03-04 Thread Nathan Rixham
Hi Nathan, Nathan Nobbe wrote: Also, bear in mind that personally I tend to favor OO paradigms for application development so would prefer feedback that incorporates that tendency. Initial thoughts are Bad: . Not well suited for ORM, particularly procedures which return multiple result sets

Re: [PHP] Somewhat OT - Stored Procedures

2011-03-04 Thread Nathan Rixham
Richard Quadling wrote: At a fundamental level, my PHP code isn't concerning itself with any physical data structures. As much as possible my PHP code treats the sql data source as a processor ready to supply data in a standardized form (even hierarchical) and to accept data for storage (again

Re: [PHP] something about dates in mysql

2011-03-03 Thread Nathan Rixham
Richard Quadling wrote: On 3 March 2011 10:09, Webforlaget.dk i...@web-forlaget.dk wrote: I need help to know Why this dont work ? - $thisdate =date(Y-m-d,mktime(0,0,0,$mth, $day, $year)); $sql = SELECT id,case,startdate,enddate

[PHP] Somewhat OT - Stored Procedures

2011-03-03 Thread Nathan Nobbe
it offers are the features folks are really looking, one of those 80/20 things... I stumbled into this link on a google search, it's from '04 but looks to be relevant to this day http://www.codinghorror.com/blog/2004/10/who-needs-stored-procedures-anyways.html Your thoughts appreciated, -nathan

Re: [PHP] Somewhat OT - Stored Procedures

2011-03-03 Thread Nathan Nobbe
On Thu, Mar 3, 2011 at 12:23 PM, Steve Staples sstap...@mnsi.net wrote: On Thu, 2011-03-03 at 11:30 -0700, Nathan Nobbe wrote: Hey gang, (Yes Tedd, I like your style, when it pertains to how you address the list :)) I have a new curiosity that's arisen as a result of a new contract

Re: [PHP] Somewhat OT - Stored Procedures

2011-03-03 Thread Nathan Nobbe
On Thu, Mar 3, 2011 at 12:59 PM, Paul M Foster pa...@quillandmouse.comwrote: On Thu, Mar 03, 2011 at 11:30:49AM -0700, Nathan Nobbe wrote: Hey gang, (Yes Tedd, I like your style, when it pertains to how you address the list :)) I have a new curiosity that's arisen as a result

[PHP] Re: using BOTH GET and POST in the same page.

2011-02-12 Thread Nathan Rixham
template. It's worth reading up on both HTTP and HTML Forms when using PHP, since PHP is a Pre Hypertext Processor and HTTP is the Hypertext transfer protocol, and HTML is the Hypertext markup language :) Best, Nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: using BOTH GET and POST in the same page.

2011-02-12 Thread Nathan Rixham
template. It's worth reading up on both HTTP and HTML Forms when using PHP, since PHP is a Pre Hypertext Processor and HTTP is the Hypertext transfer protocol, and HTML is the Hypertext markup language :) Best, Nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: Simplifying MySql queries

2011-02-12 Thread Nathan Rixham
Andre Polykanine wrote: and here goes the question: is there a way to make these four in one so strictly one random question is selected from all of the four categories? SELECT * FROM `CandidateQuestions` WHERE `Category` IN(1,2,3,4) ORDER BY RAND() LIMIT 4 note the limit 4, you'll

[PHP] Re: query strings and other delights

2011-01-13 Thread Nathan Rixham
kbai...@howlermonkey.net wrote: Your turn! :-D $_GET and if you do post.. (can you guess?) $_POST usage: http://www.foo.org/item1/delivery.php?item=namecode=DATA ?php $_GET['item']; // == name $_GET['code']; // == DATA Best, Nathan -- PHP General Mailing List (http

[PHP] Re: Rewriting string

2011-01-13 Thread Nathan Rixham
David McGlone wrote: Hi everyone, I think the subject is right, or somewhere close. Anyway I am trying to perform a little trickery here with links. In the following code you can see where I am trying to replace the link on the current page so it's not a link when on that page. I think I got

Re: [PHP] Re: query strings and other delights

2011-01-13 Thread Nathan Rixham
kbai...@howlermonkey.net wrote: ...Holy cow... nothing to extract the query string, it's automatically part of the environment. So I just do work with the $_GET string, it's in there already... yikes. yup OK, so $_GET is an array keyed to keywords; plug in the key, out comes the value. What

[PHP] Re: query strings and other delights

2011-01-13 Thread Nathan Rixham
kbai...@howlermonkey.net wrote: Your turn! :-D just in case I totally misunderstood, and you simply have the string and want to rip out the component parts of the query string, then: ?php $querystring = parse_url($url, PHP_URL_QUERY); parse_str($querystring, $data); print_r(

Re: [PHP] Re: Rewriting string

2011-01-13 Thread Nathan Rixham
Admin wrote: $categorys = array('home', 'services', 'gallery', 'about_us', 'contact_us', 'testimonials'); If(in_array($_GET['page'], $categories)) { echo 'lia href=index.php?page='.$_GET['page'].''.str_replace(_, ,$_GET['page']).'/a/li'; }else{ echo 'li'.str_replace(_, ,$_GET['page']).'/li'; }

Re: [PHP] Re: Rewriting string

2011-01-13 Thread Nathan Rixham
Nathan Rixham wrote: Admin wrote: $categorys = array('home', 'services', 'gallery', 'about_us', 'contact_us', 'testimonials'); If(in_array($_GET['page'], $categories)) { echo 'lia href=index.php?page='.$_GET['page'].''.str_replace(_, ,$_GET['page']).'/a/li'; }else{ echo 'li'.str_replace

[PHP] Re: Craigslist Jobs

2011-01-11 Thread Nathan Rixham
, then you're doing well :) Best, Nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] First PHP job

2011-01-10 Thread Nathan Nobbe
pretty handy. -nathan

Re: [PHP] Command line PHP

2011-01-07 Thread Nathan Nobbe
work with the web and a typical deployment environment like a linux server, the second language of choice most likely would be a client side one like javascript. -nathan

Re: [PHP] Command line PHP

2011-01-07 Thread Nathan Nobbe
On Fri, Jan 7, 2011 at 11:54 AM, Joshua Kehn josh.k...@gmail.com wrote: On Jan 7, 2011, at 1:48 PM, Nathan Nobbe wrote: shrug, you must not be too familiar with php then. 9 times out of 10 it's the natural, perfect choice for a cli program. there are situations where you get past what php

Re: [PHP] Command line PHP

2011-01-07 Thread Nathan Nobbe
On Fri, Jan 7, 2011 at 12:53 PM, tedd tedd.sperl...@gmail.com wrote: At 12:16 PM -0700 1/7/11, Nathan Nobbe wrote: On Fri, Jan 7, 2011 at 11:54 AM, Joshua Kehn josh.k...@gmail.com wrote: Why bother learning other languages? Is this a joke? Why should someone stop learning *ever

Re: [PHP] Command line PHP

2011-01-07 Thread Nathan Nobbe
On Fri, Jan 7, 2011 at 2:52 PM, tedd tedd.sperl...@gmail.com wrote: At 1:24 PM -0700 1/7/11, Nathan Nobbe wrote: On Fri, Jan 7, 2011 at 12:53 PM, tedd mailto:tedd.sperl...@gmail.com tedd.sperl...@gmail.com wrote: much of the gripe comparing php to python -nathan I try to stay away from

[PHP] PHP Docs update

2011-01-06 Thread Nathan Rixham
To whoever did it, it being http://docs.php.net/ - congrats, v nice, and v quick! Best, Nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Global or include?

2011-01-05 Thread Nathan Nobbe
in all your files, via something like require_once on the file which defines load_config(). the result is the configuration will only be read once on a given page load, thereafter its contents will come from memory. this is actually very similar to the singleton approach in OOP. -nathan

Re: [PHP] Global or include?

2011-01-05 Thread Nathan Nobbe
On Wed, Jan 5, 2011 at 4:27 PM, Nathan Nobbe quickshif...@gmail.com wrote: On Wed, Jan 5, 2011 at 3:40 PM, Paul Halliday paul.halli...@gmail.comwrote: Say you have 10 or so scripts and a single config file. If you have main.php, functions1.php, functions2.php, functions3.php.. Does is hurt

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-31 Thread Nathan Rixham
Tamara Temple wrote: On Dec 28, 2010, at 2:11 PM, Joshua Kehn wrote: Specifically: Dotan Cohen wrote: I seem to have an issue with users who copy-paste their usernames and passwords coping and pasting leading and trailing space characters. Users should not be copy-pasting passwords or

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-31 Thread Nathan Rixham
Tamara Temple wrote: Sorry, I was mislead by your use of the phrase Users should not be copy-pasting passwords or usernames above. I'd love to hear what you think is an alternative to identifying with web app that keeps track of information about someone that is more secure. client side ssl

Re: [PHP] Regex for telephone numbers

2010-12-31 Thread Nathan Rixham
Ethan Rosenberg wrote: FYI [to all the list] -- I thank all for their input. I only needed US phones, and I am forcing the user of the form to conform to xxx-xxx- as the input format. out of interest, why are you forcing you're users to conform to that input format? you could simply

Re: [PHP] Regex for telephone numbers

2010-12-31 Thread Nathan Rixham
Ethan Rosenberg wrote: At 07:11 AM 12/31/2010, Nathan Rixham wrote: Ethan Rosenberg wrote: FYI [to all the list] -- I thank all for their input. I only needed US phones, and I am forcing the user of the form to conform to xxx-xxx- as the input format. out of interest, why are you

[PHP] Re: Hot Topics

2010-12-30 Thread Nathan Rixham
their eyes - it was hardly 4chan grade trolling! Best happy new year to you, Nathan Daniel Brown wrote: First, I have to admit that what I did was wrong. I had assumed (ASS-umed) that the other party in a discussion under a different thread would understand and appreciate the irony of my

[PHP] Re: Do you trim() usernames and passwords?

2010-12-28 Thread Nathan Rixham
, Nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-28 Thread Nathan Rixham
Joshua Kehn wrote: Trim usernames but not passwords. agree. nice catch, I was thinking about passwords specifically and forgot usernames was in the topic too! On Dec 28, 2010, at 2:57 PM, Nathan Rixham wrote: Dotan Cohen wrote: I seem to have an issue with users who copy-paste

[PHP] Re: Do you trim() usernames and passwords?

2010-12-28 Thread Nathan Rixham
Dotan Cohen wrote: On Tue, Dec 28, 2010 at 21:57, Nathan Rixham nrix...@gmail.com wrote: Don't trim or limit the range of input characters, but far more importantly /don't send passwords in clear text/, indeed don't generate passwords at all, let users enter there desired password

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-28 Thread Nathan Rixham
Joshua Kehn wrote: On Dec 28, 2010, at 3:18 PM, Dotan Cohen wrote: I'm toying with the idea of having the passwords hashed twice: they're already in the database hashed, and javascript hashes them on the client before sending them over, but I'm thinking about sending an additional salt to the

Re: [PHP] Re: Do you trim() usernames and passwords?

2010-12-28 Thread Nathan Rixham
Dotan Cohen wrote: On Tue, Dec 28, 2010 at 22:30, Joshua Kehn josh.k...@gmail.com wrote: indeed, and on reflection, if you're putting this much effort in to it, and security is a worry, then forget username and passwords, and issue each user with a client side RSA v3 certificate and identify

Re: [PHP] how would I do this?

2010-12-27 Thread Nathan Nobbe
', 'natural_debris_removal', 'leaf_cleanup_removal', 'snow_plowing'); Could anyone give me a hand? Obviously I don't understand arrays very well :-/ looks more like it's the strings you're struggling with ;) -nathan

Re: [PHP] String passed to object constructor turning into aninstance of that object?

2010-12-16 Thread Nathan Nobbe
On Thu, Dec 16, 2010 at 3:21 PM, Kris Deugau kdeu...@vianet.ca wrote: Nathan Nobbe wrote: Why not test for the type of $name at each point of interest in the SelectBoxOption constructor? If you're passing a string value to the constructor it almost has to be getting changed by the Tag

Re: [PHP] String passed to object constructor turning into an instance of that object?

2010-12-16 Thread Nathan Nobbe
On Thu, Dec 16, 2010 at 4:04 PM, Kris Deugau kdeu...@vianet.ca wrote: Nathan Nobbe wrote: probly something screwy going on w/ the old style of naming constructors. 2 things, 1. can you post the Tag constructor as it reads now? function Tag($tag='', $tagContent='') { $this-tagContent

Re: [PHP] String passed to object constructor turning into aninstance of that object?

2010-12-16 Thread Nathan Nobbe
On Thu, Dec 16, 2010 at 3:21 PM, Kris Deugau kdeu...@vianet.ca wrote: Nathan Nobbe wrote: Why not test for the type of $name at each point of interest in the SelectBoxOption constructor? If you're passing a string value to the constructor it almost has to be getting changed by the Tag

Re: [PHP] Does ReflectionMethod::setAccessible() do anything?

2010-12-16 Thread Nathan Nobbe
to invoke the function from the context of the ReflectionMethod instance ?php class Foo { protected function bar() { echo foobar\n; } } $m = new ReflectionMethod('Foo', 'bar'); $m-setAccessible(true); $m-invokeArgs(new Foo(), array()); ? -nathan

  1   2   3   4   5   6   7   8   9   10   >