Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Paul M Foster
inventory labels or whatever (I don't recall the context of your original post). Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Date +30 comparison

2009-09-01 Thread Paul M Foster
, many time zones have two days each year when the number of seconds in a day is not 86400. This and the 2038 bug are reasons to do this type of calculation with Julian days, as opposed to seconds. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] OO and Singleton class

2009-09-01 Thread Paul M Foster
(!array_key_exists($index, self::$cfg)) $write = true; if ($write) { self::$cfg[$index] = $value; return true; } else return false; } }; Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] IRC and English

2009-09-01 Thread Paul M Foster
in the first place. And if it's not English, then I've just done you the favor of parsing it for you. (You can send cash to thank me. ;-) Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OO and Singleton class

2009-09-01 Thread Paul M Foster
On Tue, Sep 01, 2009 at 06:06:24PM -0400, Eddie Drapkin wrote: On Tue, Sep 1, 2009 at 5:16 PM, Paul M Fosterpa...@quillandmouse.com wrote: I'm a little fuzzy on some of the PHP implementation details for some stuff. In PHP (5 = phpversion() 5.3), I'd like a configuration class which can

Re: [PHP] I'm not crazy I swear it... IE vs Safari and Firefox - The impossible!

2009-08-31 Thread Paul M Foster
, try exporting the installation to a Linux server and see if you have the same problem. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] IRC and English

2009-08-31 Thread Paul M Foster
trying to decypher it, and sometimes an *attitude* (after which, I blacklist the poster). Am I the only one? It's okay if I am. Just wondering. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IRC and English

2009-08-31 Thread Paul M Foster
On Mon, Aug 31, 2009 at 09:10:54PM -0400, Stephen wrote: Paul M Foster wrote: I'm sorry, but is anyone else annoyed by people who attempt to use IRC jargon on mailing lists? For example, substituting u for you. Oddly enough, I'm seeing this primarily in foreign language posters

[PHP] What is the best way to process live data?

2009-08-29 Thread Paul Halliday
For those of you that remember (not likely but anyway) I am working on some code that splits CLF records and feeds them into a database. What I need to do now is automate it. So what I have is a program (urlsnarf) that redirects its output (simple cmd file.txt) to a file. The script currently

Re: [PHP] Re: Best way to test for form submission?

2009-08-28 Thread Paul M Foster
) 0) // Just tests whether any data was POSTed FWIW, the CodeIgniter framework uses this latter method internally. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can't find the server path when, in http.conf, using Alias and DirectoryIndex

2009-08-27 Thread Paul Gardiner
Torben Wilson wrote: 2009/8/26 Paul Gardiner li...@glidos.net: Paul Gardiner wrote: I want to write a simple indexing script to display a directory full of photos as a gallery of thumbnails. (There are various solutions out there for this, but they're all a bit more complicated than I need

Re: [PHP] phpmailer send() always return true even the email address is invalid

2009-08-27 Thread Paul M Foster
. But I got the impression that his view was a minority one. It sounds like you're saying his view has become the majority view. Does your job put you in a position to confirm this with authority? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] phpmailer send() always return true even the emailaddress is invalid

2009-08-27 Thread Paul M Foster
On Thu, Aug 27, 2009 at 10:06:03AM -0500, Shawn McKenzie wrote: Paul M Foster wrote: On Thu, Aug 27, 2009 at 09:00:24AM -0400, Bob McConnell wrote: The return code only tells you the local server accepted the mail. It is unlikely that server knows the address is invalid since it can only

Re: [PHP] phpmailer send() always return true even the emailaddress is invalid

2009-08-27 Thread Paul M Foster
know of the RFCs, SMTP servers are supposed to reject bad addresses with a 5xx error during the SMTP conversation, as you describe. But it appears that a lot of servers don't follow the RFCs. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Can't find the server path when, in http.conf, using Alias and DirectoryIndex

2009-08-26 Thread Paul Gardiner
Paul Gardiner wrote: I want to write a simple indexing script to display a directory full of photos as a gallery of thumbnails. (There are various solutions out there for this, but they're all a bit more complicated than I need). I've added a file in /etc/apache2/conf.d that looks like

Re: [PHP] Re: unset() something that doesn't exist

2009-08-26 Thread Paul M Foster
marriage to a woman I can spend hours talking about nothing to. Etc. My step-brother is a smart guy. He spends all his waking time trying to figure out how to make more money. He's rich. I don't, and I'm not. It's okay. I don't mind. Paul -- Paul M. Foster -- PHP General Mailing List (http

Re: [PHP] How to output a NULL field?

2009-08-26 Thread Paul M Foster
On Thu, Aug 27, 2009 at 12:25:35AM +0800, hack988 hack988 wrote: I'm sorry for my poor English,what is OP? I don't kown what is OP mean. OP = Original Poster. That's usually the person who first started (posted) a thread on a list. Paul -- Paul M. Foster -- PHP General Mailing List (http

Re: [PHP] How to output a NULL field?

2009-08-26 Thread Paul M Foster
products whenever possible. BTW, you can also find books on PHP and PostgreSQL, which, also in my *opinion* is a superior choice over MySQL. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: unset() something that doesn't exist

2009-08-26 Thread Paul M Foster
On Wed, Aug 26, 2009 at 09:52:49AM -0700, sono...@fannullone.us wrote: On Aug 26, 2009, at 9:28 AM, Paul M Foster wrote: and having a great marriage to a woman I can spend hours talking about nothing to. I'm jealous. Does she have a sister who's not spoken for? =;) She and her

Re: [PHP] Re: unset() something that doesn't exist

2009-08-26 Thread Paul M Foster
On Thu, Aug 27, 2009 at 02:27:32AM +0800, hack988 hack988 wrote: this post is away from the point :),but everyone's reply is interesting 2009/8/27 Paul M Foster pa...@quillandmouse.com: On Wed, Aug 26, 2009 at 09:52:49AM -0700, sono...@fannullone.us wrote: On Aug 26, 2009, at 9:28 AM

Re: [PHP] How to output a NULL field?

2009-08-25 Thread Paul M Foster
. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] anchor inside form

2009-08-25 Thread Paul M Foster
off Javascript... Thanks, Ash http://www.ashleysheridan.co.uk Oh no, here we go again Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What if this code is right ? It worked perfectly for years!!

2009-08-24 Thread Paul M Foster
it has succeeded or failed. If it fails, check the mail logs on the server to find what the mail server thinks is wrong. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] inserting php value in html shorter wayand downloading winword mp3 files the fancy way

2009-08-24 Thread Paul M Foster
['fullname'] expression. Yes, you can remove the final space after $user['fullname']; and before the tag closure (?). But there's no reason to. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What if this code is right ? It worked perfectly for years!!

2009-08-24 Thread Paul M Foster
. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Can't find the server path when, in http.conf, using Alias and DirectoryIndex

2009-08-23 Thread Paul Gardiner
[PHP_SELF] is /cgi-bin/index.php, so no use either. How can I do this? Is there a way to interrogate the alias, or can I set a variable in the conf file that PHP can pick up? Cheers, Paul. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Re: How to download and configure php mvc website locally

2009-08-21 Thread Paul M Foster
table rows). Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Form Spam

2009-08-20 Thread Paul M Foster
spam is a huge minority because it's so labor-intensive. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sanitizing mysql inserts of user data

2009-08-17 Thread Paul M Foster
someone else can answer that part of your query. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Another date exercise

2009-08-16 Thread Paul M Foster
our dates are goofy. I think we all ought to be on the metic system, too, but America and the UK seem intent on sticking to Imperial measure.) Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Calendar Problem

2009-08-11 Thread Paul M Foster
. I'm curious, how would you guys solve this? Convert to julian days, then add or subtract days as desired. Then convert back to gregorian. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how to say inverse your value (to a boolean)?

2009-08-10 Thread Paul M Foster
quick and simple: tr class=?php echo ($dr = !$dr) ? dataRow1 : dataRow2 ? (I just couldn't resist! ;-) Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] navigation include not functioning (RESOLVED)

2009-08-05 Thread Paul M Foster
programmers for exactly this reason. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need quick got written up yesterday!! OUCH (RESOLVED)

2009-08-04 Thread Paul M Foster
are, and no matter how well you do the other parts of your job. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Need quick got written up yesterday!! OUCH (RESOLVED)

2009-08-04 Thread Paul M Foster
On Tue, Aug 04, 2009 at 06:10:30PM -0400, HallMarc Websites wrote: [HallMarc Websites] God I love this planet. I agree with Paul. Yeah, great planet, this. A little touristy, but still a good travel value. ;-} Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: Dan Brown

2009-08-03 Thread Paul Scott
through experience. Congratulations! Welcome to the club :) We just had a very similar (we don't have a basement) experience with baby #2, so I feel you! It gets better, sleep is for sissies anyway :) -- -- Paul http://www.paulscott.za.net/ http://twitter.com/paulscott56 http

Re: [PHP] Re: Dan Brown

2009-08-03 Thread Paul M Foster
their space limits. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP programming strategy

2009-08-01 Thread Paul M Foster
this, as far as performance goes. However, remember, you have to *maintain* this code. In a trade-off between performance and maintainability, I'd opt for maintainability. You'll thank yourself in the future. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] PHPBB Speed Issues

2009-07-31 Thread Paul Scott
. Use a RAM based cache system like memcacheD and give your db a breather 5. FINALLY, throw more hardware at it. -- -- Paul http://www.paulscott.za.net/ http://twitter.com/paulscott56 http://avoir.uwc.ac.za -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Clean break.

2009-07-31 Thread Paul Halliday
Whats the cleanest (I have a really ugly) way to break this: [21/Jul/2009:00:00:47 -0300] into: date=21/jul/2009 time=00:00:47 Caveats: 1) if the day is 10 the beginning of the string will look like [space1/... 2) the -0300 will differ depending on DST or TZ. I don't need it though, it just

Re: [PHP] Re: Clean break.

2009-07-31 Thread Paul Halliday
:22:21 +0300, Paul Halliday paul.halli...@gmail.com wrote: Whats the cleanest (I have a really ugly) way to break this: [21/Jul/2009:00:00:47 -0300] into: date=21/jul/2009 time=00:00:47 ... Why not just use regexp ? For example: $string = long text.. multiply lines...        [21/Jul

Re: [PHP] Can a range be passed to a query?

2009-07-31 Thread Paul M Foster
Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Script to Compare Database Structures

2009-07-31 Thread Paul M Foster
WHERE table_name = 'tablename' ORDER BY ordinal_position This will not tell you the relations between tables, nor which columns are primary keys, etc. There may be another way to get this out of information_schema. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net

Re: [PHP] fileinfo returning wrong mime type for Excel files

2009-07-29 Thread Paul M Foster
. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Fwd: [PHP] newbie: problem with $_Post[]

2009-07-27 Thread Paul M Foster
the user responds. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] JS alert that links to a file

2009-07-26 Thread Paul M Foster
is client-side. You might be able to have javascript scan for the existence/closing of the file in question and then alert the user. Or you could have PHP, when the file is complete, launch a new page which contains the javascript code to alert the user. Paul -- Paul M. Foster -- PHP General

Re: [PHP] This is the kind of [expletives deleted] answer that iscertain to prevent bugs being reported.

2009-07-25 Thread Paul M Foster
environment, but not with the CLI. Per's right that in a *nix environment, the default behavior is to honor the environment locale settings. Having to set the locale within a CLI is silly and counterintuitive with respect to *nix applications. I can't speak for Windows here. Paul -- Paul M

Re: [PHP] Structure of PHP files

2009-07-23 Thread Paul M Foster
to it afterward (compiling, compressing, caching, whatever) is another issue. You've still loaded 150k of code. The question is whether you actually need to load 150k of code from the start. If not, why waste the resources? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net

Re: [PHP] Mediawiki's url confusion

2009-07-23 Thread Paul M Foster
feature can be turned on in the Apache configuration file, which, on a public server, you have no access to. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie - Is there a calendar module for date entry?

2009-07-22 Thread Paul M Foster
machines by then.) Thus, the class generally doesn't consult Unix timestamps This makes duration and date calculations simple. If you like, I can email you the class privately. Store times as a separate field. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net

Re: [PHP] How to build an FF extension

2009-07-22 Thread Paul M Foster
the appropriate venue for such a question. Firefox/Mozilla lists would be a better place to ask. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mediawiki's url confusion

2009-07-22 Thread Paul M Foster
on wikipedia.org for these terms or google for them, and find full explanations. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Converting SQL Dialects

2009-07-21 Thread Paul M Foster
of one SQL dialect to another on anyone. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] why does PHP parse *.html files in one subdir/ but not in another?

2009-07-19 Thread Paul M Foster
to decode. The PHP engine itself does not parse the HTML which is interspersed in and amongst your PHP code. The web server does that. Unless some php internals person says otherwise, that's the story. At best, the PHP engine would simply echo non-PHP text to the browser, which is not parsing it. Paul

Re: [PHP] Re: Newbie: Composition by Association - Pagination Class general question.

2009-07-19 Thread Paul M Foster
is a view? Otherwise, how would you handle this? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] why does PHP parse *.html files in one subdir/ but not in another?

2009-07-18 Thread Paul M Foster
also parses PHP files, using a different library. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Add php.net to my browser search box

2009-07-17 Thread Paul M Foster
On Thu, Jul 16, 2009 at 12:59:00PM -0300, Martin Scotta wrote: Hi all! I'd like to add php.net to my browser search box. snip Gee, I just keep a tab open to php.net at all times. Just like having Programming PHP on my desk at all times. Paul -- Paul M. Foster -- PHP General Mailing

Re: [PHP] Back from the dead with a racing question!

2009-07-17 Thread Paul M Foster
should protect you in this area. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Error handling

2009-07-15 Thread Paul M Foster
() is called. So if I set up an error handler function like: function my_error_handler() { switch ($errno) { case E_ERROR: die('Something or other'); break; ... } } the parts which reference errors like those above won't actually execute? Paul -- Paul M

Re: [PHP] MySql Injection advice

2009-07-12 Thread Paul M Foster
discount the use of prepared statements? The PDO class emphasizes that you're safe from SQL injection exploits, which seems a big plus. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I am RTFM, but still stumbling on how to get built-in functions parsed in heredoc

2009-07-12 Thread Paul M Foster
On Sat, Jul 11, 2009 at 11:23:11AM -0400, Daniel Brown wrote: snip I used $html =HTML because it then syntax-highlights as HTML+PHP in Vim, and as many know, almost everything I do is from the command line and Vim. Vim FTW! (And mutt for the pwnage!) Paul -- Paul M. Foster -- PHP

Re: [PHP] phpscriptor.com

2009-07-12 Thread Paul M Foster
dollar, you can have to domainname. And if you want, you get the website free with it. You don't want to make a profit, yet you're selling it for $200? Those two statements are contradictory. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Simple login form with cookies

2009-07-08 Thread Paul M Foster
. Previous versions allowed bottom posting and even handled the attribution markup correctly. Also, Tony's mail reader is broken-- Microsoft Outlook Express 6. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: SESSION variables: How much is too much?

2009-07-08 Thread Paul M Foster
* need to remember a bunch of information from page to page. The need to do so may well be a result of lazy programming habits. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php/sqlite3

2009-07-08 Thread Paul M Foster
() just for fun. As I recall, I ran into this at one point. The documentation for this particular module is rather poor by php.net standards. It doesn't help that the author of sqlite changed all the routine names at version 3. Paul -- Paul M. Foster -- PHP General Mailing List (http

Re: [PHP] best way to properly build an include path *regardless* from where I am calling the include?

2009-07-06 Thread Paul M Foster
is essentially the document root for *your* site. Presumably, you know the *relative* directories of all your files. Simply append those relative directories + filenames to the $site_root variable, and you're done. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Advise on starting a web store site

2009-07-06 Thread Paul M Foster
), but it stands to reason that other similar ecommerce suites would allow the same capability. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] porting C code to php

2009-07-06 Thread Paul M Foster
() and unpack(), as these will, to some extent, read and write binary values. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-06 Thread Paul M Foster
(E_ALL ^ E_DEPRECATED); See http://us2.php.net/manual/en/function.error-reporting.php for more info and examples. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Epiphany - a salute to APC

2009-07-05 Thread Paul Scott
or something beforehand. -- Paul http://www.paulscott.za.net/ http://twitter.com/paulscott56 http://avoir.uwc.ac.za -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Simple login form with cookies

2009-07-05 Thread Paul M Foster
through, you check the returned values against your database and set your cookie. Checking the value in the cookie is as you detail it above: $_COOKIE['blahblah']. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Writing to a file

2009-07-03 Thread Paul Scott
Jason Carson wrote: How would I go about writing stuff to a file but in between the ?php ? tags? http://www.php.net/file_put_contents -- Paul http://www.paulscott.za.net/ http://twitter.com/paulscott56 http://avoir.uwc.ac.za -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Dom PDF Problem

2009-07-02 Thread Paul M Foster
-position(. Can anyone please give me some way to solve this. I had an error something like this when using FPDF. It would hack up the second PDF. I didn't investigate it a lot, but my solution was to instantiate the class *once*, and loop on the *rest* of it. Paul -- Paul M. Foster

Re: [PHP] Re: Scope woe

2009-06-30 Thread Paul M Foster
to headaches? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] check a variable after EACH function

2009-06-30 Thread Paul M Foster
, but not have to change your existing code. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cleaning up automatically when leaving a page

2009-06-30 Thread Paul M Foster
this with Javascript. I'm not good with Javascript, but maybe there's some OnExit event which you could use to cause a Javascript function to do an AJAX call to a PHP script which cleans up. I dunno.) Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] check a variable after EACH function

2009-06-30 Thread Paul M Foster
On Tue, Jun 30, 2009 at 11:21:03PM -0400, Phpster wrote: On Jun 30, 2009, at 10:48 PM, Paul M Foster pa...@quillandmouse.com wrote: snip FWIW, I've had to do this exact thing with regard to form validation, except I'm not looping. Check each condition, and if it fails, never mind

Re: [PHP] This Friday's OT Thread

2009-06-26 Thread Paul M Foster
Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-24 Thread Paul M Foster
On Wed, Jun 24, 2009 at 05:26:11PM -0400, Daniel Brown wrote: On Wed, Jun 24, 2009 at 17:19, Michael A. Petersmpet...@mac.com wrote: Jane, a non technical person [...] Betty's webmail account is compromised [...] Bottom line: hax0r5 hate g1rls. Or hax0r5 hate grrls. Paul

Re: [PHP] Progressbar

2009-06-24 Thread Paul M Foster
an operation is underway? I like the last one (#39). Perfect for a progress bar. ;-} Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] isset question

2009-06-20 Thread Paul M Foster
On Sat, Jun 20, 2009 at 12:20:56PM +0100, Ashley Sheridan wrote: On Sat, 2009-06-20 at 00:19 -0400, Paul M Foster wrote: On Fri, Jun 19, 2009 at 07:52:40PM +0100, Ashley Sheridan wrote: On Fri, 2009-06-19 at 12:36 +0100, Ford, Mike wrote: On 18 June 2009 20:25, LAMP advised

Re: [PHP] Users Online?

2009-06-20 Thread Paul M Foster
a query of the table(s), looking for the number of records where the logout field is empty. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP MySQL 500 Internal Error

2009-06-19 Thread Paul Scott
and that it ownds the directory etc -- Paul http://www.paulscott.za.net http://twitter.com/paulscott56 http://avoir.uwc.ac.za -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] isset question

2009-06-19 Thread Paul M Foster
is not set. -- so protecting empty() with an isset() is a total waste of time, space and cpu cycles. snip To be honest, you're still opening yourself up to attack that way. Why and how? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] aesthetic beauty in conception, execution

2009-06-18 Thread Paul M Foster
in the Avacado Jungle of Death. Yep, insane. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] aesthetic beauty in conception, execution

2009-06-18 Thread Paul M Foster
lower budget. Priceless! ;-} Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multi-Sort -- how to do this?

2009-06-17 Thread Paul M Foster
( 100, 300, 11, 50 ); $arrays = array( $d, $a, $b, $c ); tedd_sort( $arrays ); print_r( $a ); print_r( $b ); print_r( $c ); print_r( $d ); ? Wow, tedd has a sort named after him! I'm sooo jealous. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Preventing XSS Attacks

2009-06-15 Thread Paul M Foster
pg_escape_string() which probably performs a function similar to MySQL's function. See http://us2.php.net/manual/en/function.pg-escape-string.php But you'll still need other functions (as above in this thread) to do a thorough job. Paul -- Paul M. Foster -- PHP General Mailing List (http

Re: [PHP] php applications

2009-06-10 Thread Paul M Foster
, there are typical ways that humans think about accomplishing programming tasks, which are reflected in the way that humans design programming languages. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How does caching work?

2009-06-09 Thread Paul M Foster
, or fetches it if not. But if a page is populated with variables from a database (for example) which could change from time to time, how could a caching engine possibly cache it? How would it determine whether to re-fetch the page or use the cached version? Paul -- Paul M. Foster -- PHP General

Re: [PHP] php applications

2009-06-09 Thread Paul M Foster
which allow it to do some very unusual things. Same is true for C (but in C, they're libraries). I'm just playing devil's advocate here. Normally I would use Python or Bash for anything shell, and some GUI apps. But I haven't heard a really compelling reason yet for *not* using PHP. Paul -- Paul

Re: [PHP] php applications

2009-06-08 Thread Paul M Foster
coded a bit in Python, and parts of it really annoy me. I much prefer PHP, as it's more C-ish. Why wouldn't you use PHP for production applications? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Graphing Libraries...?

2009-06-04 Thread Paul M Foster
you'll have to call it via a system call. I use Gnuplot every week to graph the statistics of my business. It's extremely flexible, and will output not only to graphics formats, but to PDF format, if I'm not mistaken. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net

Re: [PHP] Web friendly file names

2009-06-03 Thread Paul M Foster
that anything which doesn't match these characters gets whatever the next parameter is. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Best Encryption Algorithm

2009-06-03 Thread Paul M Foster
On Wed, Jun 03, 2009 at 07:57:32PM +0100, Ashley Sheridan wrote: snip A single-phase Caesar cypher is by far the best. It worked for Julias Caesar, and damn it, it will work for us! ROT13 FTW! Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Web application design considerations - a good reference ?

2009-06-02 Thread Paul M Foster
how all this should be done as there are developers. I'm just giving you advice on how I've done it. Feel free to ask other questions. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Web application design considerations - a good reference?

2009-06-02 Thread Paul M Foster
On Tue, Jun 02, 2009 at 03:49:03PM +0100, Tony Marston wrote: Paul M Foster pa...@quillandmouse.com wrote in message news:20090602134327.gk14...@quillandmouse.com... On Tue, Jun 02, 2009 at 02:50:36PM +1000, Angus Mann wrote: snip I would advise against this as hidden fields in forms

Re: [PHP] PCI compliance issue

2009-06-02 Thread Paul M Foster
compliance test comprising upwards of 200 questions. Not only that, but I have to *pay* for the test and be penalized if I don't take it. If I didn't have to take credit cards to stay in business, I'd tell the credit card companies to go pound sand. Paul -- Paul M. Foster -- PHP General Mailing

Re: [PHP] [php] most recent row from table

2009-06-02 Thread Paul M Foster
of the array you get from SELECT. Count the records in the obtained SELECT array, and take the last of these records. Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [php] most recent row from table

2009-06-02 Thread Paul M Foster
select top 1 from table where id = xx any solution -- www.bemycandy.com select top 1 from table where id = xx order by date_field desc What database(s) support a TOP clause in SELECT statements? Paul -- Paul M. Foster -- PHP General Mailing List (http://www.php.net/) To unsubscribe

<    1   2   3   4   5   6   7   8   9   10   >