RE: [PHP] Help with IF ELSE

2008-12-05 Thread Chrome
> -Original Message- > From: Sándor Tamás (HostWare Kft.) [mailto:[EMAIL PROTECTED] > Sent: 05 December 2008 14:58 > To: php-general@lists.php.net > Subject: Re: [PHP] Help with IF ELSE > > In fact, if I have to redirect, and I am not sure about headers are > sent or > not, I usually do:

RE: [PHP] [News] Affordable Independent Web Developer - Search Engine Optimization Services - March 19th, 2009

2009-03-20 Thread Chrome
> George Larson schreef: > > Not only that but, judging from the phone number, Samantha cleans > also > > cleans houses: > > http://betterthancleanmaidandmaintenanceservices.com/choose- > us/contact-us-mainmenu-3/12-contacts/1-name.h > > what a busy girl :-) Kudos points to the first person to fi

RE: [PHP] 2 ifs embedded?

2009-07-31 Thread Chrome
> On 7/31/09 9:53 AM, "Bastien Koert" wrote: > > On Fri, Jul 31, 2009 at 10:28 AM, Miller, > Terion wrote: > > > > > > > > On 7/31/09 8:58 AM, "m0s" wrote: > > > > (!empty($row['notes']) && IsAlpha($row['notes'])) > > > > I tried that and this one: > > > > If (!empty($row['notes']) && ctype_alph

[PHP] Regular expressions

2006-10-16 Thread Chrome
*edit* sorry I didn't think and just hit reply on this instead of reply all... sorry Richard */edit* [snip] .*? is kinda silly -- .* mean "0 or more characters", and ? means "maybe" but putting them together has no added value, so lose the ? [/snip] I could be wrong (and under the considerable kn

RE: [PHP] Regular expressions

2006-10-16 Thread Chrome
[snip] ? means "maybe" in some other place in PCRE. Or maybe that's POSIX. Never have figured that one out. [/snip] ? directly after an expression is equivalent to {0,1} (maybe) but after a quantifier (*, +, {}) means ungreedy I'm sure I'll be corrected if I'm wrong :) Dan -- http://chrome.m

RE: [PHP] Regular expressions

2006-10-16 Thread Chrome
>On 10/16/06, Chrome <[EMAIL PROTECTED]> wrote: >> [snip] >> ? means "maybe" in some other place in PCRE. Or maybe that's POSIX. >> Never have figured that one out. >> [/snip] >> >> ? directly after an expression is equivalent to {0,1}

RE: [PHP] Case issue with eregi_replace in text highlight function

2006-02-22 Thread Chrome
How about function highlight_text($text, $highlight) { return preg_replace('/(' . $highlight . ')/i', '$1', $text); } Case should be retained and the search is case insensitive HTH Dan --- http://chrome.me.uk -Original Message- From: Nicolas Verhaeghe [mailto:[EMA

RE: [PHP] PHP, SQL, AJAX, JS and populating a SelectBox?

2006-03-18 Thread Chrome
Ajax can be made to use POST by adding req.open("POST", url, true); // true creates an asynchronous connection req.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); where req is the XHR object Also why not use the same style of formatting for the response as the request uses.

RE: [PHP] Why does this work on one server, but not another?

2006-03-23 Thread Chrome
[snip author="Michael Crute"] I would base64encode the image string before puting it into the database then you would probably not run in to quoting issues. [/snip] Have you tried this? I realise a base64 increases the size of the target but it recognised as the best way of storing an image in a

RE: [PHP] Div-element at same vert. position?

2006-03-28 Thread Chrome
Try drag-drop without absolute ;-) Dan --- http://chrome.me.uk -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: 28 March 2006 21:21 To: Jochem Maas Cc: PHP General Subject: RE: [PHP] Div-element at same vert. position? [snip] what's wrong with

RE: [PHP] Re: mysql_fecth_array() and function call as parameter

2006-04-03 Thread Chrome
Maybe try NOW() or CURRENT_DATE()? Just a guess and sorry if it's already been mentioned Dan --- http://chrome.me.uk -Original Message- From: Joe Wollard [mailto:[EMAIL PROTECTED] Sent: 04 April 2006 00:38 To: Paul Goepfert Cc: Jon Drukman; php-general@lists.php.net

RE: [PHP] php, sessions and ie

2006-04-04 Thread Chrome
I let GC and cookie expiration handle ending the session... The cookie was only set for 15 minutes Dan --- http://chrome.me.uk -Original Message- From: Dallas Cahker [mailto:[EMAIL PROTECTED] Sent: 04 April 2006 19:41 To: php-general@lists.php.net Subject: Re: [PHP]

RE: [PHP] Need a CRM recommendation

2006-04-04 Thread Chrome
Apparently vTiger is quite good but I've had no experience of it http://www.vtiger.com/ Dan --- http://chrome.me.uk -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: 04 April 2006 17:50 To: php-general@lists.php.net Subject: [PHP] Need a CRM rec

RE: [PHP] redirect using php

2006-04-04 Thread Chrome
http://uk.php.net/manual/en/function.header.php --- http://chrome.me.uk -Original Message- From: Schalk [mailto:[EMAIL PROTECTED] Sent: 04 April 2006 22:21 To: php-general@lists.php.net Subject: [PHP] redirect using php Greetings All, In JSP I have access to a funct

RE: [PHP] int to string

2006-04-05 Thread Chrome
Won't work 20 would become 'two zero' not 'twenty' as the for loop identifies 1 character at a time Don't have any suggestions... Just critisms :-D... hehe sorry Dan --- http://chrome.me.uk -Original Message- From: Peter Hoskin [mailto:[EMAIL PROTECTED] Sent: 06 Apr

RE: [PHP] int to string

2006-04-05 Thread Chrome
Please accept my apologies... I only scanned then reread and spotted the obvious (deliberate) omissions It is late here :) Sorry Dan --- http://chrome.me.uk -Original Message- From: Peter Hoskin [mailto:[EMAIL PROTECTED] Sent: 06 April 2006 01:06 To: Chrome; php

RE: [PHP] Parsing variables within string variables

2006-04-07 Thread Chrome
Or change the quote style to double (") Just another option Dan (If I'm right this time... I really can't afford 88AUD/hr... :) ) --- http://chrome.me.uk -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: 07 April 2006 18:12 To: David Clough; php-g

RE: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Chrome
Backticks (`) encapsulate table or database names I was thinking maybe if the array references were encapsulated in curly braces {}: $_POST['model'] to {$_POST['model']} Of course if the field in the DB isn't numeric this would be '{$_POST['model']}' Dan --- http://chrome.me.u

RE: [PHP] php varible in Javascript alert()

2006-04-11 Thread Chrome
Does $errorMessage have any single quotes in it? Eg: Can't connect to DB Because if it does it will cause a Javascript error: alert('Can't connect to DB'); Just another thing to look for :) Dan --- http://chrome.me.uk -Original Message- From: Mace Eliason [mailto:[E

RE: [PHP] php varible in Javascript alert()

2006-04-11 Thread Chrome
-- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anthony Ettinger Sent: 12 April 2006 00:58 To: Chrome Cc: Mace Eliason; php-general@lists.php.net Subject: Re: [PHP] php varible in Javascript alert() On 4/11/06, Chrome <[EMAIL PROTECTED]> wrote: > Does $errorMessage have an

RE: [PHP] php varible in Javascript alert()

2006-04-11 Thread Chrome
vars... It's not necessary :) HTH Dan PS Thinking on it why not just: alert('error found: <?php echo addslashes($phpError) ?>'); --- http://chrome.me.uk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anthony E

RE: [PHP] RADICORE ramework released

2006-04-13 Thread Chrome
[snip] Is anything better than .NET? [/snip] Odd... I always thought it was .NOT --- http://chrome.me.uk -Original Message- From: Tony Marston [mailto:[EMAIL PROTECTED] Sent: 13 April 2006 17:26 To: php-general@lists.php.net Subject: Re: [PHP] RADICORE ramework releas

RE: [PHP] interview

2006-04-13 Thread Chrome
[snip] How would you like it if someone who didn't have a clue as to your expertise, interviewed you and then judged you as to what you know? [/snip] Like upper management? ;) Dan --- http://chrome.me.uk -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: 1

RE: [PHP] 2 questions: Search in array and detect JS

2006-04-15 Thread Chrome
[snip] [/snip] My only concern with this method is that it constitutes an exit trap... For example, if a user connects to your index page from, say, Google they will be redirected over to your Ajax page... All good, except if they click Bac

RE: [PHP] 2 questions: Search in array and detect JS

2006-04-15 Thread Chrome
How about I know that would work but does it give the desired effect? Dan --- http://chrome.me.uk -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: 15 April 2006 15:10 To: Chrome; 'Ryan A'; 'php' Cc: '&qu

RE: [PHP] 2 questions: Search in array and detect JS

2006-04-15 Thread Chrome
Yep just realised my half-witted mistake (and what tedd was getting at) Sorry about that Dan --- http://chrome.me.uk -Original Message- From: cajbecu [mailto:[EMAIL PROTECTED] Sent: 15 April 2006 15:40 To: Chrome Cc: 'tedd'; 'Ryan A'; 'p

RE: [PHP] Include Problem

2006-04-15 Thread Chrome
Try include($_SERVER['DOCUMENT_ROOT'] . "/cms/templates/footer.php"); maybe? Dan --- http://chrome.me.uk -Original Message- From: Shaun [mailto:[EMAIL PROTECTED] Sent: 15 April 2006 20:05 To: php-general@lists.php.net Subject: [PHP] Include Problem Hi, I am havin

RE: [PHP] how to keep spaces in parameters in URL?

2006-04-24 Thread Chrome
http://php.net/manual/en/function.urlencode.php Should get you what you need :) Dan -- http://chrome.me.uk -Original Message- From: Bing Du [mailto:[EMAIL PROTECTED] Sent: 24 April 2006 22:42 To: php-general@lists.php.net Subject: [PHP] how to keep spaces in parameters in URL? Hello

RE: [PHP] Re: php <-> js (was Javascript Navigation)

2006-04-28 Thread Chrome
> >> Java > > ... Sucks. > Because? You know why! Um I don't... Would you mind explaining for the hard of thinking please? (that's me by the way :) ) Cheers Dan -- http://chrome.me.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] 代理合作

2006-05-08 Thread Chrome
Strange the spam email came to me from [EMAIL PROTECTED] Virtua is my host Anyone else? Dan -- http://chrome.me.uk -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: 09 May 2006 00:04 To: [EMAIL PROTECTED] Cc: PHP-General Subject: Re: [PHP] 代理合作 Is it a compli

RE: [PHP] 代理合作

2006-05-09 Thread Chrome
It came thru with an incomplete sender envelope, and most mail servers will append it's own domain to that (hint: good way to configure your mail server to catch this; don't allow mis-formed senders) Thanks John that clears up a lot... I'm going to put your advice into action Cheers Dan --

RE: [PHP] Regex Help for URL's

2006-05-16 Thread Chrome
> -Original Message- > From: Robert Samuel White [mailto:[EMAIL PROTECTED] > Sent: 16 May 2006 21:32 > To: php-general@lists.php.net > Subject: RE: [PHP] Regex Help for URL's > > Don't be rude. I've already don't all of that. Nothing came up. I've > been > programming for 20 years (sinc

RE: [PHP] Regex Help for URL's [ANSWER]

2006-05-16 Thread Chrome
> -Original Message- > From: Robert Samuel White [mailto:[EMAIL PROTECTED] > Sent: 17 May 2006 01:16 > To: php-general@lists.php.net > Subject: RE: [PHP] Regex Help for URL's [ANSWER] > > All pages used by my content management system must be in a valid format. > > Old-school style pages

RE: [PHP] Regex Help for URL's [ANSWER]

2006-05-16 Thread Chrome
make use of this limitation. > > -Original Message- > From: Chrome [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 16, 2006 8:24 PM > To: 'Robert Samuel White'; php-general@lists.php.net > Subject: RE: [PHP] Regex Help for URL's [ANSWER] > > > > ---

RE: [PHP] Regex Help for URL's [ANSWER]

2006-05-16 Thread Chrome
> -Original Message- > From: Robert Samuel White [mailto:[EMAIL PROTECTED] > Sent: 17 May 2006 01:42 > To: php-general@lists.php.net > Subject: RE: [PHP] Regex Help for URL's [ANSWER] > > > > If we are talking clickable links, why not focus on the construct > > itself? Otherwise URLs are

RE: [PHP] Filtering (was storing single and double quote in MySQL)

2006-05-25 Thread Chrome
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 25 May 2006 22:19 > To: tedd > Cc: Eric Butera; php > Subject: Re: [PHP] Filtering (was storing single and double quote in > MySQL) > > As you said: Filtering. My next queston. > > I have small form to activa

RE: [PHP] Filtering (was storing single and double quote in MySQL)

2006-05-25 Thread Chrome
[snip] 1. Anytime you put anything into a dB then use mysql_real_escape_string() function. If you are NOT going to put it in a dB, then you don't need mysql_real_escape_string() function -- understand? [/snip] Untrue... It isn't just inserting into a DB that requires this function... Consider: Us

RE: [PHP] Filtering (was storing single and double quote in MySQL)

2006-05-25 Thread Chrome
> -Original Message- > From: tedd [mailto:[EMAIL PROTECTED] > Sent: 26 May 2006 02:27 > To: Chrome; 'tedd'; [EMAIL PROTECTED] > Cc: 'Eric Butera'; 'php' > Subject: RE: [PHP] Filtering (was storing single and double quote in > MySQL) >

RE: [PHP] Graph type

2008-08-08 Thread Chrome
> -Original Message- > From: tedd [mailto:[EMAIL PROTECTED] > Sent: 08 August 2008 15:32 > To: php-general@lists.php.net > Subject: Re: [PHP] Graph type > > >Hi, > > > >Anyone know what this graph type is called? > > > >http://picasaweb.google.com/richard.heyes > > > > A European road s

RE: [PHP] Output text status on a long class

2008-10-14 Thread Chrome
> -Original Message- > From: uaca man [mailto:[EMAIL PROTECTED] > Sent: 14 October 2008 16:10 > To: php-general@lists.php.net > Subject: Re: [PHP] Output text status on a long class > > Dan, > > Try > echo "some text"; > ob_flush() ; >

RE: [PHP] Output text status on a long class

2008-10-14 Thread Chrome
> Stut wrote: > > On 14 Oct 2008, at 15:56, Chrome wrote: > >> I have a class that takes a while to run and am wanting to push some > >> output > >> to the browser while it's doing its stuff. Is that possible? > >> > >> Here's what I

RE: [PHP] Output text status on a long class

2008-10-14 Thread Chrome
> On 14 Oct 2008, at 16:51, Chrome wrote: > > For the record I have included a 256 char long whitespace string > > along with any prospective output but still no joy > > > > Opera 9.60 reliably informs me it's received 258 bytes but displays > > nothing > &

RE: [PHP] Output text status on a long class

2008-10-14 Thread Chrome
> On Tue, Oct 14, 2008 at 11:30 AM, Chrome <[EMAIL PROTECTED]> wrote: > >> Stut wrote: > >> > On 14 Oct 2008, at 15:56, Chrome wrote: > >> >> I have a class that takes a while to run and am wanting to push > some > >> >> output >

[PHP] Output text status on a long class

2008-10-14 Thread Chrome
Hi all I have a class that takes a while to run and am wanting to push some output to the browser while it's doing its stuff. Is that possible? Here's what I'd like: Connecting to server... Done! Retrieving categories... Done! ... All I can get it to do is output all of the text at the end of

RE: [PHP] Politics

2008-10-21 Thread Chrome
> -Original Message- > From: Amy [mailto:[EMAIL PROTECTED] > Sent: 21 October 2008 11:58 > To: php-general@lists.php.net > Subject: [PHP] Politics > > > representations emphasizing leksr matching thirds painfully wakesleep > ekswiezeezeewie accompanied Have you tried restarting Apache? :

RE: [PHP] mysql/php date functions..

2005-09-26 Thread Chrome
/function.time.php for time()... instead of using time(), use date() and format it for MySQL http://uk.php.net/manual/en/function.date.php That will allow you to use < and > in the SQL statements HTH ---- Chrome™ http://www.chrome.me.uk -Original Message- From: bruce [mailto:[EMAIL PRO

RE: [PHP] Session problems

2006-02-16 Thread Chrome
Hi I've checked the PHP ini and session.auto_start is off (0) [snip] Looks like your Session ID that you are trying to insert into the database in your session_start_handler function is a duplicate of an existing session. [/snip] It IS the existing session... I've verified this by being the only