Re: [PHP] Random 404 screens

2013-02-09 Thread Geoff Shang
n the error document? If it does, then this would rule out your home network, as 404 is a response code returned by the webserver. Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Some date() oddities

2013-01-08 Thread Geoff Shang
ng strftime. I'd guess that date would also have flags for these. Cheers, Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2013-01-03 Thread Geoff Shang
fopen("foo", "r")) { ... } Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Wrong time being displayed by PHP!

2012-10-17 Thread Geoff Shang
ngeles then we've got a bigger problem. Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Time

2012-07-02 Thread Geoff Shang
. There's probably others. Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] slicing and dicing strings

2012-06-28 Thread Geoff Shang
an't remember which string function I want, I can search for *any* string function and I'll get the list of all of them, along with a quick summary to help me find the one I want. Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] regexp novice

2012-05-20 Thread Geoff Shang
ct field that has am and pm as options. As it appears that accepting only 12-hour input is part of the brief, Jim is IMHO doing the right thing. Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strftime silliness

2012-04-10 Thread Geoff Shang
to achieve this. You could also use %-I as this will also drop leading zeros if present. I forget where I read about this. I'm almost certain that it was *not* in any PHP documentation. HTH, Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] basic captcha

2012-02-17 Thread Geoff Shang
eding a CAPTCHA in the first place. I once (and only once) struck a test like this on a New Zealand government website. I nearly died of shock. And I was able to use it with lynx with no problems at all. Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Update mailing list docs - How to unsubscribe?

2012-01-23 Thread Geoff Shang
listed for unsubscribing involves sending an email to mailinglist-unsubscr...@example.org, which in this case would be mailinglist-unsubscr...@lists.php.net which sends back a lovely "invalid email address" response). list-unsubscribe: <mailto:php-general-unsubscr...@lists.php.net>

Re: [PHP] Sniping on the List

2011-11-22 Thread Geoff Shang
output will vary depending on which timezone is in use. $ php -r 'date_default_timezone_set ("UTC"); echo date ("r", null);' Thu, 01 Jan 1970 00:00:00 + $ php -r 'date_default_timezone_set ("America/New_York"); echo date ("r", null);' Wed, 31 Dec 1969 19:00:00 -0500 Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sniping on the List

2011-11-20 Thread Geoff Shang
NO I won't, and timezones do matter. I've copied your code to http://quitelikely.com/~geoff/strtotime/ Sorry if any of the visuals are mangled, I had to massage the script a little to pullin the header and footer, and I downloaded your logo, but I didn't go and dig out your CSS o

Re: [PHP] Parsing the From field

2011-11-20 Thread Geoff Shang
only use their first name and people who use some kind of alias. I think you did well to abandon this. Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sniping on the List

2011-11-20 Thread Geoff Shang
t that it returns anything is surprising. Now, where are my observations wrong? The code is shown in the demo. To summarise, your observations are wrong because they do not take timezone into account and do not show the time, only the date. And some of your observations as given above do not match what your script outputs. Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sniping on the List

2011-11-17 Thread Geoff Shang
relatively recently. Anyway, as I was going to say, the correct way to find out what null is is to do something like: echo date ("r", null); But this thread has gone through so many twists now that I can't remember if this is where we began or not. Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Think I found a PHP bug

2011-11-16 Thread Geoff Shang
this won't help in this case. date_default_timezone_get() is returning the wrong timezone. Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Think I found a PHP bug

2011-11-16 Thread Geoff Shang
ng there either, which seems to suggest that this in fact is not the case. In case it wasn't obvious in my original post, this worked just fine during UK summer time. It's only since the clocks changed two weeks ago that PHP has been thinking that the server timezone is UTC rather than

[PHP] Think I found a PHP bug

2011-11-15 Thread Geoff Shang
Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies I realise this is 5.3.3 and that 5.3.8 is now out. It's possible that this has been fixed but I could not find any traces of such a fix in the changelogs. I'd be interested to know if anyone else can confirm this bug and, if confirmed, what I should do about it. Thanks, Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] question about best practice for coding sql statements

2011-11-12 Thread Geoff Shang
mething to view the SQL statement, and also if there's an error, emit the SQL statement. I do this. This means that when a user encounters an error, they can actually give you a meaningful error report which should reduce the time it takes to fix it by a considerable amount. Geoff.

Re: [PHP] Execute permission question

2011-10-28 Thread Geoff Shang
table. The Apache module, for example, does not because Apache loads it into Apache which is already running. If you're not actually running programs on the host itself via a shell, then you probably won't need execute permissions most of the time. Geoff. -- PHP General Ma

Re: [PHP] Variable question

2011-10-01 Thread Geoff Shang
as $field) echo ucwords($field) . ': ' . $$field . ''; The above comes from a function which manages only a single record, so no real need to use an array. I could of course, e.g. record['title'] etc, but I don't see much could be gained unless I needed

Re: [PHP] scroll down list -visible, but not possible to choose

2011-08-31 Thread Geoff Shang
as appropriate. A simple if statement could be used to set the "disabled" attribute for the "Resolved" selection only. IMHO this is vastly preferable to any trickery you may use with javascript to prevent the user from selecting Resolved. I've never struck a select fie

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

2011-08-29 Thread Geoff Shang
x27;t need modification. Of course, it's easier to be cleverer after the event. Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dreaded Premature end of script headers

2011-08-26 Thread Geoff Shang
HP instead of via your webserver. E.g.: php -f IMHO, 2 would be the better way to go if you can do this. HTH, Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Using stand-alone PHP scripts with Drupal

2011-08-24 Thread Geoff Shang
their site surrounding the output from my scripts. Is there an easy way to include the PHP in a page on their site? Not sure which version of Drupal they're running, trying to find out. Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Login with Remember me Feature

2011-08-14 Thread Geoff Shang
$access_name = "newbie"; $page_suffix = "newbe"; break; case advanced: $access_name = "advanced"; $page_suffix = "advanced"; break; } // end switch on $usr_level ?> Redirecting... "> You have successfully been logged in. You can now access the area. The above also assumes your index_* files are in the webroot, you can edit the refresh line if this is wrong. HTH, Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Closing PHP tag best practice?

2011-07-24 Thread Geoff Lane
so many versions of PHP 'in the wild'. So, is Jeffrey correct when he says that omitting the closing PHP tag is best practice? Also, are there any 'gotchas' to doing this? TIA, -- Geoff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Escaping '

2011-07-22 Thread Geoff Lane
? Check the manual for 'Magic Quotes GPC': http://php.net/manual/en/security.magicquotes.php However, you may want to rething enabling this as it's deprecated and judging by the discussions I've seen it will be removed in the not too distant future. HTH, -- Geoff --

Re: [PHP] using wget in shell for download(snort)

2011-07-10 Thread Geoff Shang
ooks suspicious. That's the problem. The "\" should be a space. Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What type of PHP5 shall I install to learn PHP5 together with Apache, Please specify the Apache type too Since There are Two Apache types also

2011-07-08 Thread Geoff Shang
everything you need. HTH, Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Constants in strings

2011-07-06 Thread Geoff Lane
On Wednesday, July 6, 2011, Dave Wilson wrote: > OK. We all know that constants cannot be accessed directly via their > name in double-quoted or heredoc strings. FWIW, this looked like it might be a right royal PITA for me ATM. However, I've got a work-around. With about a dozen scripts written

[PHP] Re: I want to use POST when redirect via PHP Header function.

2011-06-30 Thread Geoff Lane
e versa, ampersands in place of dollar signs, and other typos! I think the moral is that one should never code when tired ;( -- Geoff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I want to use POST when redirect via PHP Header function.

2011-06-30 Thread Geoff Lane
the body onLoad event. However, this does require JS on the client and so cannot be guaranteed. HTH, -- Geoff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Time zones are spinning my brain

2011-06-29 Thread Geoff Shang
your site is hosted. But all you need to do is change hosting providers to one somewhere else, or for someone who's not careful to mess something up on the system, and the script will break all because you assumed it would always be right. So better to set it and know it's righ

Re: [PHP] Time zones are spinning my brain

2011-06-29 Thread Geoff Shang
putting " +" at the end of the string. HTH, Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Time zones are spinning my brain

2011-06-29 Thread Geoff Shang
, but I just need someone to double check my spinning head. Will this give me the PayPal transactions that arrived during California's yesterday, or do I need to change something? Assuming your timezone is set to California time ( date_default_timezone_set ('America/Los_Angeles'

[PHP] Re: URL Rewriting

2011-06-23 Thread Geoff Lane
is because it makes site maintenance much easier for me rather than because of any SEO benefit - real or imagined. -- Geoff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: URL Rewriting

2011-06-22 Thread Geoff Lane
t is unique to each page defined separately and without needing to embed the top-level page structure in each page. It also gives me 'search-engine-friendly' URIs. HTH, -- Geoff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Submit Using An Image Form Processing

2011-06-18 Thread Geoff Lane
rash_can.png"; WIDTH="20" HEIGHT="20" style="float: right;border:0;" alt="Remove Product From Shopping Cart" name="remove_product" /> Then in the called script, you could use: if (isset($_POST['remove_product_x'])){ // do stu

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

2011-06-07 Thread Geoff Lane
If specific output from this server would help, I may be able to give this to you off-list. HTH, -- Geoff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2011-06-07 Thread Geoff Lane
php -r "var_dump(__DIR__);" on this machine shows that __DIR__ is undefined. Executing both commands in an intranet-visible, php script shows the same thing. HTH, -- Geoff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2011-06-05 Thread Geoff Shang
te happy to let me view tweets unauthenticated on their site with Lynx. If I want to login, I need to use their mobile site. Not a problem - if I try to use their main site and it doesn't work, it doesn't work. At least they let me try. Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2011-06-05 Thread Geoff Shang
ose to use it, it's on my own head, which is fine by me. If you really want a half arsed user experience then set your browser string ;) Would that not work for you? It probably would. But this tangent began with the principle of "Use IE or Firefox" and how we hated sites that sai

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

2011-06-05 Thread Geoff Shang
the mobile one. I don't even bother clicking because I know Facebook won't even try to send me the page I want. Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2011-06-05 Thread Geoff Shang
with your unsupported browser, which might well work if you're clicking on a link to a particular status update. Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: [PHP-WEBMASTER] encoding issue

2011-06-02 Thread Geoff Shang
/Digital_Millennium_Copyright_Act. Note that the DMCA is United States legislation and may not be relevant. Copyright law is pretty universal though and you could get into trouble with this anyway. Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] smart auto download file

2011-05-31 Thread Geoff Shang
Of course, this is the resulting HTML you want to produce (or something like it). You'll obviously get PHP to echo the appropriate URL. This approach has the benefit that it'll work on anything. My prefered browser does not support javascript, so you look me out of your site if you u

Re: [PHP] iPhone sadness

2011-05-30 Thread Geoff Shang
f course, the single reason (IMHO) why it's likely more people top-post - it's less work. Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] iPhone sadness

2011-05-29 Thread Geoff Shang
ntly an apology. Ironicly, it's on by default. It can be turned off, however. Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Detecting HTTPS connections under Apache

2011-05-28 Thread Geoff Shang
8. HTTP/1.1 200 OK 9. Data transfer complete So it's definitely secure, but I'm not seeing anything in $_SERVER that says so. So I'm wondering if Apache is not exporting something properly. Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Detecting HTTPS connections under Apache

2011-05-27 Thread Geoff Shang
ly helpful. Surely I can't be the only person in the universe who has experienced this. I'm running a minimally-altered stock Debian Apache and PHP setup. Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Detecting HTTPS connections under Apache

2011-05-26 Thread Geoff Shang
d and continue to use it. This makes my code separate from whatever the webmaster decides to do regarding being secure or not. Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Detecting HTTPS connections under Apache

2011-05-26 Thread Geoff Shang
I have full access to the VPS, so if something needs tweeking in Apache (or anything else) then I can do this. Thanks in advance, Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Date validation

2011-05-21 Thread Geoff Lane
/m/y. Those writing for places where m/d/y is the convention will probably want to alter the tests in the second if ... elseif construct. It's a bit long-winded, but by all means use or modify if it's any use to you. Best regards, Geoff ---8<---

[PHP] Re: Date validation

2011-05-20 Thread Geoff Lane
yst that gets my sleeves rolled up, a large pot of strong, black coffee on the hob, and me finally trying that little bit harder to get my head around regular expressions! I was hoping that PHP would have an equivalent to VBScript's IsDate() function but it looks like I'll have to roll my own!

[PHP] Re: Date validation

2011-05-20 Thread Geoff Lane
me() to convert input strings to date/time. Rather than fail when presented with an invalid date, strtotime() returns the 'best fit' if possible. This can be seen from: $date = new DateTime('30 Feb 1999'); echo $date->format('Y-m-d'); which results in "1

[PHP] Re: Date validation

2011-05-20 Thread Geoff Lane
ferred. With all that said, I still have no 'out of the box' method to validate a user-input date string and I haven't been able to find the code I used with PHP 3.something before my sojourn into the depths of ASP to know how I used to do this! -- Geoff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Date validation

2011-05-20 Thread Geoff Lane
27;, $date) - outputs nothing. Also, AFAICT createFromFormat fails if the date is not formatted according to the first parameter. So, for example: $date = DateTime::createFromFormat('d M Y', '5/2/10') fails ... (at least, it does on my system :( ) -- Geoff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Date validation

2011-05-20 Thread Geoff Lane
s cannot properly handle string input values. This seems to be such a common requirement that I suspect I've missed something basic. I'd thus be grateful for any pointers as to how to properly validate user-input string representation of dates. Cheers, -- Geoff Lane -- PHP Gene

[PHP] Wierd cookie behaviour

2011-05-16 Thread Geoff Lane
o longer happens. I'd forgotten to put the opening and closing html, head, and body tags and the issue went away as soon as I did that. However, I'd appreciate info on why as I need to run some scripts within a validated user session where those scripts do their processing and then use t

Re: [PHP] dynamic copyright in page footer?

2011-04-30 Thread Geoff Lane
27;Y') != '2011' ? '2011-' : '') . date('Y'); However, you might want to change that to: echo '2011-' . date('Y'); at the first review after the start of 2012! HTH, -- Geoff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP delete confirmation

2011-04-29 Thread Geoff Lane
['jstest'] == 1){ // the client called us via Javascript::confirm, so we know the // use really wants to delete } else { // We weren't called via Javascript::confirm, so we need to // handle the confirmation in PHP } HTH, -- Geoff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: What's faster using if else or arrays?

2011-04-28 Thread Geoff Lane
ly changing the global array. However, using the long if construct mandates that I must amend the code of every page that uses the mapping, which makes for a lot of extra work and is just plain silly IMO. IOW, using an array can help avoid coding inconsistencies. -- Geoff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Javascript detection

2011-04-28 Thread Geoff Lane
aphics and so is inherently unavailable to the visually impaired. It makes no sense whatever to try to make such content work in speech and Braille browsers. Thus making a site that's unusable without Javascript doesn't necessarily constitute unlawful discrimination! -- Geoff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Destroying cookies... not working

2011-04-28 Thread Geoff Lane
just now. However, this should return false if the cookie has been destroyed but if just set to null or an empty string via Rick's code I suspect it'd return true. -- Geoff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Javascript detection

2011-04-28 Thread Geoff Lane
e.g: Click Here The form is submitted if the browser has JS and so the hidden input field is posted. However, if the browser doesn't have JS the default behaviour occurs when the link is clicked and so the field is not posted. Hence we can use isset($_POST['wehavejs']) to determine whether or not the browser has JS capability. Thanks again, -- Geoff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Detecting Javascript (was Re: Newsgroup status)

2011-04-27 Thread Geoff Lane
able and make an 'interim form submission' if it's not. However, it would be so much simpler if I could tell straight off and for sure whether JS was available; but if this isn't possible I guess it'll be a limitation of HTTP rather than PHP. Thanks again, Geoff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Newsgroup status

2011-04-27 Thread Geoff Lane
s available on the client without using client-side Javascript to create a form and hence pass a variable that will only be set if Javascript is available on the client? Is there something in $_SERVER etc. that can provide this info? TIA, -- Geoff -- PHP General Mailing List (http://www.php.n

Re: [PHP] Last Name extraction in query

2011-04-04 Thread Geoff Lane
.com). HTH, -- Geoff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: is there any syntax to save a file in mysql?

2011-03-28 Thread Geoff Lane
e same filename, although it doesn't let one user have more than one file with the same name (which might be required for a CMS etc.) Others can download files by clicking on hyperlinks to the target files. HTH, -- Geoff -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] Re: opening a new window from php script

2011-03-25 Thread Geoff Lane
ved from 'link' elements, which many have apparently wrongly taken to mean it's been removed from hyperlinks (i.e. anchor tags). However, and are not the same thing! An example of each: click here HTH, -- Geoff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: echo?

2011-03-23 Thread Geoff Lane
browser is 'obligingly' making sense of the 'bad formatting' and this is why you're getting characters. BTW, an alternative to your for construct would be to use a while loop to iterate through a data table. e.g. in your case, I'd have used: $q = 'select *

[PHP] Re: $_POST variable

2011-03-12 Thread Geoff Lane
Hi Kirk, On Saturday, March 12, 2011, 4:09:24 AM, you wrote: > On 3/11/2011 2:43 PM, Geoff Lane wrote: > [snip] >> You could use foreach to iterate through the post variables until you >> encounter a match: >> >> foreach ($_POST as $key => $value){ >>

[PHP] Re: $_POST variable

2011-03-11 Thread Geoff Lane
les until you encounter a match: foreach ($_POST as $key => $value){ if (substr($key, 0, 6) == "radio_") { $buttonName = $key; $buttonValue = 4value; break 2; } } I haven't tried the above code, but I hope someone will correct my efforts if I'm wro

Re: [PHP] Regular Expression just one step away from what I need....

2007-08-17 Thread Geoff Nicol
I am no regex expert but wouldn't preg_match_all( "/'([^']+)'/Ui", $theString, $matches); Be more flexible? On 8/17/07, Thijs Lensselink <[EMAIL PROTECTED]> wrote: > > > If it's only real words this will do: > > $theString = "'foo''bar''glorp'"; > preg_match_all( "/'([a-z]+)'/Ui", $theString, $ma

Re: [PHP] Re: Which CAPTCHA is the besta?

2007-08-17 Thread Geoff Nicol
There are several PHP Captcha classes available as well. A few examples are: http://www.white-hat-web-design.co.uk/articles/php-captcha.php http://milki.erphesfurt.de/captcha/ http://nogajski.de/horst/php/captcha/

Re: [PHP] manual vs. meta refresh

2007-08-11 Thread Geoff Nicol
ose on an incomplete solution, as people apparently don't read the thread history ;) -Geoff On 8/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Sat, 2007-08-11 at 18:26 -0700, Geoff Nicol wrote: > > And if they do a manual refresh on the page you re-directed to, the

Re: [PHP] manual vs. meta refresh

2007-08-11 Thread Geoff Nicol
' this has been pretty beat to death. On 8/11/07, Richard Lynch <[EMAIL PROTECTED]> wrote: > > On Fri, August 10, 2007 6:51 pm, Geoff Nicol wrote: > > That was my first thought as well but you will still have to use a > > session > > variable or cookie for the

Re: [PHP] audio recorder

2007-07-30 Thread Geoff Nicol
ne. I provide the above link and info only as an example of one approach; kindly confirm all proper licensing requirements prior to making any use of this applet. If you do find a solution with a viable license kindly update me (or the list) as I too would be interested in this. -Geoff On 7/30/07, M. So

Re: [PHP] Beware of OS X PHP security update...

2006-03-03 Thread Geoff Martin
talled the update successfully, no effect on PHP 5. Perhaps you need to look elsewhere Geoff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP mysql data result set compression

2006-02-06 Thread Geoff
d be appreciated- thanks. You could try using the LIMIT keyword with an offset number to get records in more manageble chunks, then write out each chunk, freeing its resources before loading the next one. Geoff. > > David > > -- > PHP General Mailing List (http://www.php.net/

[PHP] automating creation of thumbnails

2006-01-26 Thread Geoff
they do not exceed a given width or height. The images are loaded as true color to preserve the quality as much as possible during the rescale operation. Currently, the images can be loaded and saved in the JPEG and GIF formats." Geoff. -- PHP General Mailing List (http://www.ph

Re: [PHP] absolute vs relative path?

2006-01-25 Thread Geoff
On 25 Jan 2006 at 15:22, Barry wrote: > Geoff wrote: > > On 25 Jan 2006 at 15:19, William Stokes wrote: > > > > > >>Hello, > >> > >>I Have a web site on one server and a test site on another. How can I build > >>the hyperlin

Re: [PHP] absolute vs relative path?

2006-01-25 Thread Geoff
uot;/test.php", if the script containing that link is already in /www. Thus your links will look the same on both versions. php-based solution: If you must have absolute URLs (maybe to do redirects or SSL) use: $_SERVER["SERVER_NAME"] it will return either "www.domain.com&

[PHP] POP3 or other servers in php

2006-01-23 Thread Geoff
What I'm now seeking is real-world examples. Many thanks, Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can PHP works with telnet?

2006-01-22 Thread Geoff
->disconnect(); -- In that same manual page, there is lots of other information and suggestions on making telnet connections. Note that cURL will also allow telnet. Geoff. On 23 Jan 2006 at 9:56, HoWang Wang wrote: > Hi al

[PHP] (Fwd) Re: [PHP] Question about Thumbnailing, Watermarking, and

2006-01-22 Thread Geoff
whoops, that should be "phpclasses.org" (no hyphen) Geoff. --- Forwarded message follows --- From: Geoff <[EMAIL PROTECTED]> To: Jon Grimes <[EMAIL PROTECTED]> Subject:Re: [PHP] Question about Thumbnaili

[PHP] anyone know a good php proxy

2006-01-21 Thread Geoff
pages are coming from. Thanks in advance, Geoff. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Determining number of days in a selected month

2006-01-21 Thread Geoff
hour/min/sec differences that might push the timestamp over into the next day. A small thing, but since I deploy code in a number of places, it has saved me countless headaches. Geoff. On 20 Jan 2006 at 13:51, Jeffrey Pearson wrote: > The java mailing list I belong to recently had this sam

Re: [PHP] URL -> stream context

2006-01-19 Thread Geoff
handlers. Or, you might want to look into a 3rd party library, or a command line option like "lynx -dump -connect_timeout=n " which is multi-resource aware. Geoff. On 19 Jan 2006 at 17:28, Richard Lynch wrote: > On Thu, January 19, 2006 4:08 pm, Geoff wrote: > > I honestly have

Re: [PHP] (Fwd) inserting text into a mime message

2006-01-19 Thread Geoff
r implies that there is SOME kind of software available > to do it... ...but many of them are in commercial packages, or are plugins to MSExchange or similar. And most of the open-source ones only stick the footer in the first piece of text/plain that they find, without being aware of mult

[PHP] (Fwd) inserting text into a mime message

2006-01-19 Thread Geoff
Nobody got any ideas on this? I would be interested to hear from anyone who has successfully adjusted parts of an email message while it is in transit, by ANY method. I'm getting desparate and will try anything, even if it is not 100% PHP. All ideas, suggestions greatly appreciated.

Re: [PHP] New to PHP

2006-01-19 Thread Geoff
r web server is running. Geoff. On 19 Jan 2006 at 16:02, Jedidiah wrote: > I mentioned earlier that I recently switched my site over to PHP. I had a > couple of reasons for this: > > 1: I was using Server Side Includes, and had been told that PHP includes > were better and def

Re: [PHP] URL -> stream context

2006-01-19 Thread Geoff
ms to work in a similar way to fopen, in terms of having wrappers that are aware of multiple resource types. It might also be worth taking a look at cURL or similar libraries that are also multi-resource aware, but give you greater control of connections parameters and timeouts. Geoff. On 1

Re: [PHP] Grouping

2006-01-19 Thread Geoff
string when there is no change, or the delimiter if the letter has changed. Geoff. On 19 Jan 2006 at 10:19, Jeffrey Pearson wrote: > OK. I know I did this a LONG time ago but I don't remember how I did > it. Thus, my post. > > I have a list of last names from a MySQL

[PHP] inserting text into a mime message

2006-01-19 Thread Geoff
the PEAR manual]. I'm not hung up about what to use, it doesn't have to be PEAR, I will use any library or code that will do the job. Alternatively, if it is possible to do this with encode(), I would love to see an example, as I couldn't get it to work that way myself. Many than

Re: [PHP] Decision table/business rule parser?

2005-11-23 Thread Geoff - Creative Living
you'll find it's itertwined with his development framework, so I'm not sure how useful it would be as a standalone in any case. Geoff Caplan Creative Living -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Decision table/business rule parser?

2005-11-22 Thread Geoff - Creative Living
e parted ways. He has written it up here: http://www.tonymarston.net/php-mysql/workflow.html Geoff Caplan Creative Living Direct: 0121 515 1154 General: 01803 840 607 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Decision table/business rule parser?

2005-11-21 Thread Geoff - Creative Living
reliability by inter-operating with the Java VM. Geoff Caplan Creative Living -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Decision table/business rule parser?

2005-11-21 Thread Geoff - Creative Living
ide choice of native solutions. ---- Geoff Caplan Creative Living -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   3   >