[PHP] strftime silliness

2012-04-10 Thread Tim Streater
I want to format a date/time using a 12 hour representation of the time part. I can do this with, say, "%d %b %Y %l:%M %p", where the first time format specifier is the lower-case L. But, this gives me a leading space in the case that the hour is less than 12. I don't want this space. Anyone kno

[PHP] Re: strftime silliness

2012-04-10 Thread Tim Streater
On Apr 10th, 2012 at 10:40pm, Tim Streater wrote: > I want to format a date/time using a 12 hour representation of the time part. > I can do this with, say, "%d %b %Y %l:%M %p", where the first time format > specifier is the lower-case L. But, this gives me a leading space

Re: [PHP] strftime silliness

2012-04-11 Thread Tim Streater
On 11 Apr 2012 at 01:47, Geoff Shang wrote: > On Wed, 10 Apr 2012, Tim Streater wrote: > >> I want to format a date/time using a 12 hour representation of the time >> part. I can do this with, say, "%d %b %Y %l:%M %p", where the first time >> format specif

Re: [PHP] php in windows

2012-04-11 Thread Tim Streater
On 11 Apr 2012 at 03:13, Kirk Bailey wrote: > It means it does nothing. I have a small server in the computer that > works fine. I also installed python in this box- and it worked > perfectly without having to do anything to the server. Php on the > other hand merely occupies disk space. So you

Re: [PHP] url string being split

2012-04-27 Thread Tim Streater
On 27 Apr 2012 at 16:56, Chris Stinemetz wrote: > On Thu, Apr 26, 2012 at 12:58 PM, Stuart Dallas wrote: >> On 26 Apr 2012, at 18:37, Jim Giner wrote: >> >>> I"m no expert, but why would you expose a query to the world thru the use of >>> a GET?  Why not just collect the params and build the st

Re: [PHP] Re: Function size

2012-06-03 Thread Tim Streater
On 03 Jun 2012 at 10:02, Tony Marston wrote: > "tamouse mailing lists" wrote in message > news:cahuc_t__sw-_yhrw4n4uqr-fa46+cebunzgehboaatrafla...@mail.gmail.com... >> There is a point: if you are unfamiliar with code, wading through >> screens and screens of a function to find things like blo

Re: [PHP] Hungarian Notation interest with PHP

2012-06-04 Thread Tim Streater
On 04 Jun 2012 at 15:43, Mihamina Rakotomandimby wrote: > I have a colleague stuck with this thing named "Hungarian Notation" > http://goo.gl/xYv8O > > We try to define our internal coding standards, which is very close to > the Symfony ones http://goo.gl/f2rcO > > But we're in conflict because

Re: [PHP] embedding php inside of php

2012-07-01 Thread Tim Streater
On 01 Jul 2012 at 01:00, Tim Dunphy wrote: > I am trying to get the hang of php using some examples that I found > in a book. I've been making progress lately, but one thing has me a > bit stumped. > > In an HTML form that I am echoing through PHP I would like to embed > smaller chunks of php in

Re: [PHP] Unexpected Notice message

2012-07-04 Thread Tim Streater
On 04 Jul 2012 at 16:51, Marc Guay wrote: >> Notice: Use of undefined constant QUERY_STRING - assumed 'QUERY_STRING' in > > I would guess that it's asking you to add quotes around QUERY_STRING...? As in: if (strlen($_SERVER['QUERY_STRING']) > 0) { -- Cheers -- Tim -- PHP General Mailing

Re: [PHP] Creating drop-down menus

2012-07-16 Thread Tim Streater
On 16 Jul 2012 at 21:19, Jen Rasmussen wrote: > Sometimes I need to use javascript to fill a drop down box based on the > value of a previous drop down box. However, the information to fill the > latter is stored in mysql and can be a lot, what I have been doing is that, > using PHP, I create h

Re: [PHP] Creating drop-down menus

2012-07-17 Thread Tim Streater
On 17 Jul 2012 at 21:58, Paul M Foster wrote: > On Wed, Jul 18, 2012 at 08:45:34AM +1200, James Newman wrote: > >> Just to put my 2cents in, you might want to try jQuery if you're going to >> go down the AJAX road. > > JQuery is a LOT of code to include if you're just going to do an AJAX > call

Re: [PHP] What do you call the end-user?

2012-07-20 Thread Tim Streater
On 19 Jul 2012 at 18:26, Tedd Sperling wrote: > First question: > > What do you call the people who ultimately use your code? I expect I'll call her "Dear". See, my app, a replacement for Eudora, is used by yours truly only at the mo. However, come time to upgrade SWMBO's Mini, which will run

[PHP] Re: PHP Re: Programmers and developers needed

2012-09-19 Thread Tim Streater
On 19 Sep 2012 at 16:32, Matijn Woudt wrote: > "unless they were a majority" is the thing that bothers me. Getting a > majority is hard, take for example the Dutch Politics [1]. Our country > is now led by a parliament of 10 different political parties. Getting > things done now is really hard,

[PHP] Re: PHP Bounce messages

2012-09-21 Thread Tim Streater
On 21 Sep 2012 at 08:40, Lester Caine wrote: > I know that the php list are one of the 'reply to sender' email handling camp > rather than reply to list. I don't understand this. I reply (not that I mail that often) just to the list, if possible. Why would I do anything else? -- Cheers -- T

[PHP] Re: PHP Re: PHP Bounce messages

2012-09-21 Thread Tim Streater
On 21 Sep 2012 at 20:56, tamouse mailing lists wrote: > On Fri, Sep 21, 2012 at 4:17 AM, Tim Streater wrote: >> On 21 Sep 2012 at 08:40, Lester Caine wrote: >> >>> I know that the php list are one of the 'reply to sender' email handling >>> ca

[PHP] Re: problem with my login script

2012-10-02 Thread Tim Streater
On 02 Oct 2012 at 12:07, Maciek Sokolewicz wrote: > On 02-10-2012 11:59, Bálint Horváth wrote: >> The problem was already solved. I forgot to send a copy to the list... >> >> Rodrigo, break!? Ohh man, it's a crazy idea... A developer DOES NOT use >> break at all (in a loop)... (switch is an excep

[PHP] Re: Differences

2012-10-04 Thread Tim Streater
On 04 Oct 2012 at 01:48, David McGlone wrote: > Hi everyone, I have been playing around with some code the list helped me with > a while back and I'm not grasping the concept between return and echo and the > PHP manual doesn't answer this, unless I'm missing something. There is an > example at t

[PHP] Re: limiting

2012-10-09 Thread Tim Streater
On 09 Oct 2012 at 20:46, Matijn Woudt wrote: > For example your previous post, you > could have just looked up what the 'echo' and 'return' statements do > in the PHP manual, and they are probably explained pretty OK in those > books you own too. You probably could have answered the questions you

[PHP] Re: limiting

2012-10-10 Thread Tim Streater
On 10 Oct 2012 at 19:17, David McGlone wrote: >> >> BTW - in any of your other computer languages didn't they utilize a >> 'return' statement? PHP's is no different. > > back in like '85, I learned Pascal that's the only language I learned and I > don't recall if it used return. Mmmm. There's

[PHP] Re: limiting

2012-10-10 Thread Tim Streater
On 10 Oct 2012 at 19:53, David McGlone wrote: > On Wednesday, October 10, 2012 07:36:00 PM Tim Streater wrote: >> On 10 Oct 2012 at 19:17, David McGlone wrote: >>>> BTW - in any of your other computer languages didn't they utilize a >>>> 'return'

[PHP] Re: appreciation

2012-10-12 Thread Tim Streater
On 12 Oct 2012 at 12:36, Maciek Sokolewicz wrote: > However, this is likely not what the OP wants. What he likely does want > is to check if the filename is not '.' or > '..'. Of course, there are numerous ways to do this. From very simple > things like: > if ( $filename != '.' && $filename != '

[PHP] Re: Switch - Case Statement Questions

2012-11-16 Thread Tim Streater
On 16 Nov 2012 at 12:10, Omar Muhsin wrote: > Hello, > > I was just wondering after writting the code in version 2 here below, it turns > out in testing that it actually PHP is not validating the expressions instead > always I get the first case. > > 1.Using nested if statement {THE INTENDED BEH

[PHP] Re: Switch - Case Statement Questions

2012-11-17 Thread Tim Streater
On 17 Nov 2012 at 01:33, Iñigo Medina wrote: > On Fri, 16 Nov 2012, Jim Giner wrote: >> Maybe I'm way out of touch, but when I look at php.net for the syntax of the >> switch statement I see: >> switch($var){ >> case (value): >> (do something) >> case (other value): >>

[PHP] Re: Switch - Case Statement Questions

2012-11-19 Thread Tim Streater
On 18 Nov 2012 at 14:44, Jim Giner wrote: > 2. Using Switch {ALWAYS FIRST CASE!!!} > > //$boxes = 1; > //switch ($count) { > //case ($count > 14): > //$boxes = 3; > //break; > //case ($count >

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

2012-12-22 Thread Tim Streater
On 22 Dec 2012 at 16:50, Tedd Sperling wrote: > On Dec 21, 2012, at 8:06 PM, Jim Giner wrote: >>> That actually makes sense tho. Afterall, a string is truly only one memory >>> allocation whereas array elements are basically multiple vars having the >>> same name. So - how can you unset one c

[PHP] Re: Boolean type forced on string assignment inside if statement

2013-01-02 Thread Tim Streater
On 02 Jan 2013 at 16:05, Stephen wrote: > On 13-01-02 10:53 AM, Marc Guay wrote: >> Hi folks, >> >> if ($a = "foo" && $b = "bar"){ >> echo $a."".$b; >> } >> >> Returns: >> 1 >> bar >> >> I expect: >> foo >> bar >> >> Is this documented? >> > > && takes precedence over = > > http://php.net/m

[PHP] Re: Strip emails from a document

2013-01-26 Thread Tim Streater
On 26 Jan 2013 at 16:24, Tedd Sperling wrote: > I thought I had a function to strip emails from a document, but I can't find > it. > > So, before I start writing a common script, do any of you have a simple script > to do this? I have a function that will take a comma separated string consisting

[PHP] Re: Open form in new window

2013-03-04 Thread Tim Streater
On 04 Mar 2013 at 17:10, John Taylor-Johnston wrote: > Submit will not > submit the form contents. Nothing to stop your OpenWindow() function doing a submit as in: Submit function OpenWindow (formPtr) { // Some actions formPtr.submit (); } Personally I never submit

[PHP] Re: Open form in new window

2013-03-04 Thread Tim Streater
On 04 Mar 2013 at 20:17, Paul M Foster wrote: > On Mon, Mar 04, 2013 at 05:39:00PM +0000, Tim Streater wrote: >> Personally I never submit forms. I use ajax to communicate with PHP >> scripts and do something with the data that is returned by the script. >> You can see a s

[PHP] Re: Populate input from another form

2013-03-08 Thread Tim Streater
On 08 Mar 2013 at 19:45, John Taylor-Johnston wrote: > I have a form > > target="_CRTP"> > > OnSubmit, I want to include data from another form (form="DPRform"). > > value=""> > > I should use a hidden identical field and use form="CRTP_Query": > > "> What purpose does this field serve? > B

[PHP] Re: rather a HTML Q; however 2-FRAME

2013-03-15 Thread Tim Streater
On 15 Mar 2013 at 11:00, tamouse mailing lists wrote: > Frames are not only deprecated, they are unsupported entirely in HTML5 > (not that browsers won't continue to display them; just that they > won't validate). Meaning, in other words, that they *are* supported. It's unlikely in any case th

[PHP] Re: Undefined index....

2013-03-15 Thread Tim Streater
On 15 Mar 2013 at 13:10, Jay Blanchard wrote: > I have inherited a mess of a home-grown PHP framework that literally > fills the error_log with 100's of thousands of messages each day. First > order of business was rotating the logs, now we are working through each > error to solve them. This i

[PHP] Re: One more newbie question. About foreach..

2013-06-23 Thread Tim Streater
On 23 Jun 2013 at 16:11, Karl-Arne Gjersøyen wrote: > // Foreach get all given serialnumbers as I want it >foreach($serialnumber as $snr){ > > // I got the number of serialnumbers given in the array > $count = count($serialnumber); Why not do this *before* the foreach loop? > // I though

[PHP] Re: mongo usage

2013-07-06 Thread Tim Streater
On 06 Jul 2013 at 23:27, Tim Dunphy wrote: > | You seem to spell the variable differently (1 'd' vs. 2 'd's)? > > Thanks! Fixed the type-o. Still no change. > > $connection = new Mongo(); > >$db = $connection->jfdb; > >//$collection = $db->addresses; > >$adresses = $connection->jfd

[PHP] Re: htaccess

2013-07-08 Thread Tim Streater
On 07 Jul 2013 at 21:22, Tedd Sperling wrote: > Confirmed. Those two lines cause the problem. > > However, commenting out those lines causes other problems. > > Are there similar statements to these: > > AddType application/x-httpd-php .php .htm .html This one tells apache to recognise .php,

[PHP] Re: Foreach and mydql_query problem

2013-07-22 Thread Tim Streater
On 22 Jul 2013 at 12:56, Karl-Arne Gjersøyen wrote: > Yes, i know that only one a singe row is updated and that is the problem. > What can I do to update several rows at the same time? Which several rows? The row that will be updated is that (or those) that match your WHERE clause. Seems to me

[PHP] Re: how to see all sessions sets in server

2013-08-04 Thread Tim Streater
On 04 Aug 2013 at 11:28, Ashley Sheridan wrote: > Like Matijn said, unless you're using some kind of client-side method to > continually poll the server, you can't know if they've just closed their > browser. There are Javascript events for exiting a page, but they don't > work correctly on Safa

[PHP] Re: PHP vs JAVA

2013-08-21 Thread Tim Streater
On 20 Aug 2013 at 23:59, PHP List wrote: > While I don't have any references to back it up - my guess would be that > Java may be seen as more versatile in general programming terms. A > staggering number of enterprise level web applications are built with > Java, add to that the possibility of

[PHP] Re: exec and system do not work

2013-08-26 Thread Tim Streater
On 26 Aug 2013 at 22:01, PhD Ethan Rosenberg wrote: >>> if( !file_exists("/var/www/orders.txt")); ^ | What's the semicolon doing there ---+ >>> { >>> echo system("touch /var/www/orders.txt", $ret);

[PHP] Re: Friday's Question

2013-09-20 Thread Tim Streater
On 20 Sep 2013 at 17:51, Tedd Sperling wrote: > Age: Fast approaching doddering old fossil stage > Mousepad: Yes. I use an Apple Mighty Mouse so that I can scroll my Excel > spreadsheet in two directions at once while moving the mouse pointer across > the screen. The optics works slightly bett

[PHP] Re: Friday's Question

2013-09-20 Thread Tim Streater
On 20 Sep 2013 at 18:20, Jen Rasmussen wrote: > -Original Message- > From: Tedd Sperling [mailto:t...@sperling.com] > 70Toothpaste, Deodorant, Aftershave, Minoxidil, Preparation-H, Bag > Bomb, Fixodent > LOL. What in the heck is a Bag Bomb? I have no idea what most of these items

[PHP] Re: Apache

2013-09-23 Thread Tim Streater
On 23 Sep 2013 at 11:37, Domain nikha.org wrote: > The problem is the weak PHP upload mechanism! I'd have said the problem is weak metadata provision - overloading the filename for other purposes. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

[PHP] Spaces in filename or path

2011-04-30 Thread Tim Streater
Does it matter to PHP filesystem functions if a path/to/file/name contains spaces? IOW, is this handled OK by design or should I replaces such spaces by backslash-space or would doing that present problems? Thanks -- tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: Re: [PHP] Spaces in filename or path

2011-04-30 Thread Tim Streater
On 30 Apr 2011 at 22:33, Richard Quadling wrote: > On 30 April 2011 22:07, Tim Streater wrote: >> Does it matter to PHP filesystem functions if a path/to/file/name contains >> spaces? IOW, is this handled OK by design or should I replaces such spaces by >> backslash-spac

Re: [PHP] Re: postgresql database access failure

2011-05-02 Thread Tim Streater
On 02 May 2011 at 11:05, e-letter wrote: >> >> Here's the URL of the relevant manual page: >> http://www.php.net/manual/en/function.pg-fetch-result.php >> > > The manual page did not explain the purpose of the text 'die', so was > ignored (;)). What, you mean this? $db = pg_connect("dbnam

Re: Re: [PHP] passing control to a separate script

2011-05-02 Thread Tim Streater
On 02 May 2011 at 15:40, tedd wrote: >> At 2:48 PM +0100 5/2/11, Stuart Dallas wrote: >> Sent from my leaf blower > > Leaf blower? > > I suppose some day soon, we will send stuff from our watches. From a > leaf blower would be pushing technologies invasion into our personal > lives a bit much --

Re: [PHP] Bold links

2011-05-07 Thread Tim Streater
On 07 May 2011 at 18:42, Michael Simiyu wrote: > hey, straw. > some php 101 here guys :) > > i want to bold the first name and last name in the code below... It's not PHP 101, it's HTML 101. tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: Re: [PHP] mysql problems

2011-05-12 Thread Tim Streater
On 11 May 2011 at 19:25, Curtis Maurand wrote: > $_cartTotal="$0.00"; Surely that should be: $_cartTotal = "0.00"; tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Error recovery - fatal errors

2011-05-14 Thread Tim Streater
I would like, in my app, to recover from as many run-time errors as possible, so that I can tidy up. And unsolicited output generated by the standard error system is really unhelpful as it becomes part of the ajax reply to the browser. So I've added my own error handler, but it seems that I can'

Re: Re: [PHP] Error recovery - fatal errors

2011-05-16 Thread Tim Streater
On 14 May 2011 at 15:05, Peter Lind wrote: > On 14 May 2011 12:33, Tim Streater wrote: >> I would like, in my app, to recover from as many run-time errors as possible, >> so that I can tidy up. And unsolicited output generated by the standard error >> system is really un

Re: [PHP] Error recovery - fatal errors

2011-05-16 Thread Tim Streater
On 16 May 2011 at 21:34, Peter Lind wrote: > You were trying to call a method on a non-object - how do you expect > PHP to handle that if not with a fatal error? > Anyway, good to hear you solved the issue - I misunderstood what you > wanted to do (shut down in a proper fashion, not actually rec

Re: Re: [PHP] A Review Request

2011-05-18 Thread Tim Streater
On 18 May 2011 at 20:31, Joshua Kehn wrote: > On May 18, 2011, at 3:22 PM, tedd wrote: >> What do you people think? > I can say I really don't like your bracing style. I completely disagree - having the braces lined up is the only way to go. Means I don't have to search all over creation for

Re: Re: [PHP] A Review Request

2011-05-18 Thread Tim Streater
On 18 May 2011 at 22:22, Peter Lind wrote: > On 18 May 2011 23:12, tedd wrote: >> This is just one way to give-back. > > Suggesting people that they copypaste your code is a very bad way of > giving back. Suggesting that they read and understand the code is a > great way. I hope you see the di

Re: Re: [PHP] Warning: session_start()

2011-05-19 Thread Tim Streater
On 19 May 2011 at 10:20, Richard Quadling wrote: > On 18 May 2011 19:15, Nazish wrote: >> Hi everyone, >> >            WHEN USER CLICKS 'ENTER' TO LOGIN >> >> > ?> > > The session cookie must be sent prior to any output. Including, but > not limited to, comments, whitespace, HTML code, etc.

Re: Re: [PHP] A Review Request

2011-05-20 Thread Tim Streater
On 20 May 2011 at 04:03, Alex Nikitin wrote: > but here is a brief example: > > (!DEBUG) || error_log("Fetch Data: ".memory_get_usage()/1048576); > > reads and writes a lot better and faster then: > > if(DEBUG) { >$memory = memory_get_usage()/1048576; >error_log("Fetch Data: ".$memory);

Re: Re: [PHP] A Review Request

2011-05-20 Thread Tim Streater
On 19 May 2011 at 23:47, Adam Richardson wrote: > You did make several other great points (session hijacking, multiple login > attempts), but to be fair to Tedd, there are many levels of security, and I > doubt he's trying to educate PHP developers with your background. In the > same way that so

Re: Re: [PHP] how to use echo checkboxes in php when i don't have access to $_POST

2011-05-28 Thread Tim Streater
On 28 May 2011 at 14:11, Igor Konforti wrote: > It means that array $_POST does not have a key called "negin". > Simple If statement before line 4 would fix this. > On Sat, May 28, 2011 at 16:03, Negin Nickparsa wrote: >> suppose that i have this SIMPLE code: >> > echo""; >> echo $_POST['negi

Re: Re: [PHP] iPhone sadness

2011-05-30 Thread Tim Streater
On 30 May 2011 at 19:07, jean-baptiste verrey wrote: > I like how people just like to complain about everything^^ > But as the debate is raging I had a look over internet and > http://www.caliburn.nl/topposting.html gave the best argument ever : > we read from *top* to *bottom *so top posting m

Re: [PHP] Announcing New PHP Extension: System Detonation Library (was: phpsadness)

2011-06-04 Thread Tim Streater
On 03 Jun 2011 at 16:56, Daniel Brown wrote: > First of all, a happy Friday to all here. Hopefully some of you > will be able to pass this on to your boss and get sent home early. > >Second, as dreamed up in the previous thread, I've decided to take > a few moments this morning to build and

Re: Re: [PHP] phpsadness - P.C. shmee seee.

2011-06-05 Thread Tim Streater
On 05 Jun 2011 at 06:08, Tamara Temple wrote: > On Jun 3, 2011, at 3:52 PM, Daevid Vincent wrote: >> ...actually, I do have some good ones here: >> http://daevid.com/content/examples/procmail.php > > "It appears your browser does not support some of the advanced > features this site requires. >

Re: Re: [PHP] Re: phpsadness - P.C. shmee seee.

2011-06-05 Thread Tim Streater
On 05 Jun 2011 at 16:23, Geoff Shang wrote: > On Sun, 5 Jun 2011, Richard Riley wrote: > >>> I don't. I just don't want them to lock out my browser just because they >>> don't >>> support it. Many pages which don't work optimally under Lynx can still be >>> read, >>> which is all I'm wanting

Re: Re: [PHP] Re: phpsadness - P.C. shmee seee.

2011-06-05 Thread Tim Streater
On 05 Jun 2011 at 21:28, Geoff Shang wrote: > On Sun, 5 Jun 2011, Richard Riley wrote: > >> If they allowed incompatible browsers that caused havoc then before you >> know it the great unwashed would be demanding more and better support or >> complaining about lack of functionality. Doing what t

Re: [PHP] What do you get for ...

2011-06-07 Thread Tim Streater
On 07 Jun 2011 at 11:35, Richard Quadling wrote: > What do you get for ... > > php -r "var_dump(realpath(null));" OS X: string(10) "/Users/tim" -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] jQuery to PHP

2011-06-22 Thread Tim Streater
On 22 Jun 2011 at 19:44, Ethan Rosenberg wrote: > I have a PHP program which will generate a chess board with a form in > the program. I wish to fill the form by clicking one of the > squares in the chess board. I am trying to use jQuery and Aja to do > this. The Ajax call works, but the valu

Re: Re: [PHP] jQuery to PHP

2011-06-22 Thread Tim Streater
On 22 Jun 2011 at 20:56, Jim Lucas wrote: > On 22/6/2011 12:43 PM, Tim Streater wrote: >> On 22 Jun 2011 at 19:44, Ethan Rosenberg wrote: >> >>> I have a PHP program which will generate a chess board with a form in >>> the program. I wish to fill the form by cl

Re: Re: Re: [PHP] jQuery to PHP

2011-06-22 Thread Tim Streater
On 22 Jun 2011 at 21:56, Ethan Rosenberg wrote: > At 04:30 PM 6/22/2011, you wrote: >> On 22 Jun 2011 at 20:56, Jim Lucas wrote: >> So the OP is using the form's action to reload the page, and >> seemingly making an ajax call under some circumstance that will also >> retrieve the whole content

Re: [PHP] jQuery to PHP

2011-06-23 Thread Tim Streater
On 23 Jun 2011 at 14:56, Ethan Rosenberg wrote: > At 05:21 PM 6/22/2011, you wrote: >> 2) Instead of doing alert("yippee"), seems to me you should alert on >> the results of the ajax call. I don't know how you get at those with >> jquery, but I imagine that is where you'll find the results of d

Re: [PHP] Re: Php filter validate url

2011-06-27 Thread Tim Streater
On 27 Jun 2011 at 00:15, Richard Riley wrote: > In addition your content type in your post is incorrect. > > Your header contains > > Content-Type: multipart/alternative; > boundary=00151747b53cf2927204a6a46ebb > > But its not multipart. This happens a lot in this group and I dont > experience i

Re: Re: [PHP] Re: [PHP-DB] Re: radio form submission

2011-06-27 Thread Tim Streater
On 27 Jun 2011 at 13:18, Steve Staples wrote: > On Sat, 2011-06-25 at 16:11 -0500, Tamara Temple wrote: >> Well played, sir, well played. I think we should go through all the >> xkcd comics that relate to programming somehow and insert them in the >> php.net documentation :) >> >> > Tamara, kin

Re: [PHP] PHP 5.4.0alpha1 released

2011-06-28 Thread Tim Streater
On 28 Jun 2011 at 22:39, David Soria Parra wrote: > You can read more information about this release here: > http://www.php.net/archive/2011.php#id2011-06-28-1 Not quite yet, perhaps? -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: Re: [PHP] Time zones are spinning my brain

2011-06-29 Thread Tim Streater
On 29 Jun 2011 at 17:25, Richard Quadling wrote: > And UTC is not the same as GMT. Ish. Yes it is. > GMT is only valid for 6 months of the year. Then, due to DST, it becomes BST. No, the UK is on GMT for 5 months a year and then on BST (GMT+1) for 7 months. -- Cheers -- Tim -- PHP Gener

Re: [PHP] PHP EOL

2011-07-04 Thread Tim Streater
On 04 Jul 2011 at 08:01, Stuart Dallas wrote: > On Mon, Jul 4, 2011 at 7:11 AM, Karl DeSaulniers wrote: > >> Hello Stuart, >> After some closer look at the RFC Compliant manuals you suggested, >> I have determined that the creator of that code was in fact RFC821 >> Compliant. >> Being that this

Re: [PHP] Top Posting

2011-07-05 Thread Tim Streater
On 05 Jul 2011 at 15:29, ad...@buskirkgraphics.com wrote: > Since this is the 3rd time I have been chewed out for top posting. > > Anyone know how to make Outlook changes its reply position. > > I am using outlook 2007 and I do not find an option for this. > > I have to scroll down to the bottom

Re: Re: [PHP] Re: Re: Top Posting

2011-07-06 Thread Tim Streater
On 06 Jul 2011 at 20:03, Jim Giner wrote: >> You are currently listed in my /etc/postfix/helo_checks file as >> >> 64.118.87.45 REJECT Your mail server is a source of SPAM. Fix it! >> > My mail server is my isp's. It is a shared server and not under my control. > They are aware that is listed

Re: Re: [PHP] Re: Re: Top Posting

2011-07-06 Thread Tim Streater
On 06 Jul 2011 at 20:03, Jim Giner wrote: > Frankly, I don't know why you are getting mail from me - I'm not sending you > any. You're sending mail to all of us. Here's what I got from you: To: php-general@lists.php.net From:Jim Giner Subject: Re: [PHP] Re: Re: Top Posting Date:W

[PHP] What is a label?

2011-07-13 Thread Tim Streater
Looking over the definition of a function today I see: Function names follow the same rules as other labels in PHP. but I can't find the definition of a label anywhere. I can't see it listed in the contents - have I overlooked it? If not, how can I request the the doccy be upd

Re: Re: [PHP] What is a label?

2011-07-13 Thread Tim Streater
On 13 Jul 2011 at 22:39, Micky Hulse wrote: > They must mean labels as in "general naming convention rules for > programming"... Like not naming a variable/function "label" with a number at > the front. > > Here's a page about variables: > > http://www.php.net/manual/en/language.variables.basics

Re: Re: [PHP] Your language sucks because...

2011-07-14 Thread Tim Streater
On 14 Jul 2011 at 01:59, Lester Caine wrote: > Daevid Vincent wrote: >> (at the risk of starting another $h!t storm like the last time) >> >> http://wiki.theory.org/YourLanguageSucks#PHP_sucks_because: > > Perhaps when they get around to checking the facts ... most of the content > will > be del

Re: [PHP] How to sum monetary variables

2011-07-18 Thread Tim Streater
On 18 Jul 2011 at 23:00, Martín Marqués wrote: > I'm building a table (which is a report that has to be printed) with a > bunch of items (up to 300 in some cases) that have unitary price > (stored in a numeric(9,2) field), how many there are, and the total > price for each item. At the end of th

[PHP] Use of preg_replace

2011-07-24 Thread Tim Streater
I need to be able to convert a line of the form: >>>From to have either one more or one less > at the front. A web site tells me that the regexps to use are: 1,$s/^>*From />&/ and 1,$s/^>(>*From )/\1/ respectively (there is a single space after "From"). So, if my text string is in $line, I

Re: RE: [PHP] Use of preg_replace

2011-07-24 Thread Tim Streater
On 24 Jul 2011 at 19:35, Dajka Tamás wrote: > I lost trail, what do you want to do? > > You want to convert > From > > to this: > >>> From The number of > in front of "From " is not known. I want to be able to add or remove one. -- Cheers -- Tim -- PHP General Mailing List (http://ww

Re: RE: RE: [PHP] Use of preg_replace

2011-07-24 Thread Tim Streater
On 24 Jul 2011 at 19:57, Dajka Tamás wrote: > You want to do it in a greater text, I think. > > 1,$s/^>(>*From )/\1/ > > $line = preg_replace ($pattern, $replacement, $line); > > Adding one '>': > > preg_replace('/(^[>]+From )/','>$1', $line) > > Removing one '>': > > preg_replace('/(^>([>]+From

Re: RE: RE: [PHP] Use of preg_replace

2011-07-24 Thread Tim Streater
On 24 Jul 2011 at 19:57, Dajka Tamás wrote: > You want to do it in a greater text, I think. See below. > 1,$s/^>(>*From )/\1/ > > $line = preg_replace ($pattern, $replacement, $line); > > Adding one '>': > > preg_replace('/(^[>]+From )/','>$1', $line) > > Removing one '>': > > preg_replace('/(

[PHP] pathinfo function

2011-07-26 Thread Tim Streater
Is it to be expected that, if a file has no extension, and I do this: $info = pathinfo ($myfile); that I will get an error if I try to reference $info["extension"] ?? -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] pathinfo function

2011-07-27 Thread Tim Streater
On 26 Jul 2011 at 23:55, Micky Hulse wrote: > On Tue, Jul 26, 2011 at 3:47 PM, Tim Streater wrote: >> that I will get an error if I try to reference $info["extension"] ?? > > From what I can tell via reading the docs: > > "The following associative

Re: RE: Re: [PHP] pathinfo function

2011-07-27 Thread Tim Streater
On 27 Jul 2011 at 11:09, Mike Ford wrote: >> -Original Message- >> From: Tim Streater [mailto:t...@clothears.org.uk] >> Seems to me that's the case. However the doc is ambiguous, >> especially as I *asked* for that key to be returned. IMO it should >&g

Re: Re: [PHP] Re: testing

2011-08-04 Thread Tim Streater
On 04 Aug 2011 at 15:48, Jim Giner wrote: > Sounds like time for me to move on. > Thanks for the info Dan. Say Jim, Why don't you pick it up as mail like the rest of us? -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] pass text variables to next page

2011-08-09 Thread Tim Streater
On 09 Aug 2011 at 13:30, Chris Stinemetz wrote: > Not sure if I am doing it right. It looks like the last single quote > is being escaped. > > When I dump the query I get: > > SELECT store_id, store_subject FROM stores WHERE store_subject = > 'Bella Roe 4980 Roe Blvd\' > > > I am thinking maybe

Re: [PHP] Using function prototypes in code

2011-08-10 Thread Tim Streater
On 10 Aug 2011 at 02:10, Frank Thynne wrote: > In the interest of clarity and maintainability I would like to be able > to write code that makes it clear what kind of arguments a function > expects and what it returns. So add the appropriate comments to your functions. > This is what I tried:

Re: Re: [PHP] text insertion

2011-08-10 Thread Tim Streater
On 10 Aug 2011 at 22:39, Daniel P. Brown wrote: > On Wed, Aug 10, 2011 at 17:37, Chris Stinemetz > wrote: >> No luck. Thanks. > >Per list rules, please don't top-post. > >If the situation you're describing is accurate and correct, then > is indeed what you want. But can you put a ins

Re: Re: [PHP] text insertion

2011-08-10 Thread Tim Streater
On 10 Aug 2011 at 22:07, Chris Stinemetz wrote: >> >>    Use HTML 'pre' tags: >> >>         >> > > I just tried that and that puts all the text on a single line. You could write the string into another textarea, which you could make readonly for this purpose. -- Cheers -- Tim -- PHP Gener

Re: [PHP] Problem with inserting numbers...

2011-08-11 Thread Tim Streater
On 11 Aug 2011 at 02:22, Jason Pruim wrote: > while ($num != "1") { >while($row = mysql_fetch_assoc($result)) { >$padnum = number_pad($num, "4"); >echo $row['areacode'] . "-" . $row['prefix'] . "-" . $padnum . ""; >$num++; >} > > > } This is certain to fail.

Re: Re: [PHP] Login with Remember me Feature

2011-08-14 Thread Tim Streater
On 14 Aug 2011 at 14:23, Alekto Antarctica wrote: > *function loggedin()* > *{* > * if (isset($_SESSIONS['username']) || isset($_COOKIE['username']))* > * {* > * $loggedin = true;* > * return $loggedin;* > * }* > *}* Why not justreturn true; And what happens if your "if" doesn't evaluate t

Re: [PHP] How to catch an irregular end of an application?

2011-08-26 Thread Tim Streater
On 26 Aug 2011 at 01:33, Andreas wrote: > what is the best practice to catch an irregular end of an application? > The browser might crash or the user closes accidently the browser window > decides to jump away to his favourite bloq without loging out of my > application. > Is there some way to

Re: Re: [PHP] Re: Code should be selv-maintaining!

2011-08-29 Thread Tim Streater
On 29 Aug 2011 at 21:32, George Langley wrote: > "The One True Brace Style": > > > > Didn't know there was a name for the way I learned to indent! Make sense to me > - looks so much cleaner and less scrolling/printing. > And, I already add a comm

Re: Re: [PHP] Code should be selv-maintaining!

2011-09-01 Thread Tim Streater
On 01 Sep 2011 at 11:42, Richard Quadling wrote: > On 30 August 2011 23:25, Richard Quadling wrote: >> On 30 August 2011 20:09, Robert Cummings wrote: >>> You're just saying that so Tedd will be your friend!! Come now, let's be >>> honest with everyone... Whitesmith's is -GLEE! ;)

Re: [PHP] Opening Multiple Files

2011-09-07 Thread Tim Streater
On 07 Sep 2011 at 15:21, Ron Piggott wrote: > Hi Everyone > > I am trying to load an HTML book into mySQL. The book was distributed with > each chapter being it’s own HTML file. > > The only way I know how to open a file is by specifying the file name. Such > as: > > $myFile = "B01C001.htm"; >

Re: Re: [PHP] What would you like to see in most in a text editor?

2011-09-14 Thread Tim Streater
On 14 Sep 2011 at 12:40, Richard Quadling wrote: > On 14 September 2011 01:23, tamouse mailing lists > wrote: >> On Tue, Sep 13, 2011 at 3:35 PM, Robert Cummings >> wrote: >>> I'm a big fan of editors that work in the terminal. >> >> You'll get my emacs when you pry it out of my cold dead hand

Re: Re: Re: [PHP] What would you like to see in most in a text editor?

2011-09-14 Thread Tim Streater
On 14 Sep 2011 at 17:52, Paul M Foster wrote: > Eventually I switched to Vim (counter-intuitively) because 1) there's no > *unix variant on which it's not available; 2) at some point, you're > probably going to *have* to know how to operate Vi if you move around > among foreign machines and netw

Re: Fwd: [PHP] Bug?

2011-09-15 Thread Tim Streater
On 15 Sep 2011 at 22:43, tamouse mailing lists wrote: > For the floats, http://us2.php.net/operators.comparison makes it > pretty clear (and this has been a well-known thing about floats as far > back as Uni for me, in 1979). The fact that floating point hardware has limited precision has been

  1   2   >