RE: [PHP] IP to country DB and script

2006-05-21 Thread Kevin Davies
snip Can anybody recommend a IP to country (or better still IP-city) database and script? /snip Ryan, I've used Tracewatch (a web stats package) on a couple of sites, and it comes with a CSV of IP to Country conversions I believe. URL: www.tracewatch.com HTH, Kev -- PHP General Mailing

RE: [PHP] IP to country DB and script

2006-05-21 Thread Kevin Davies
snip URL: www.tracewatch.com /snip Seems like their data is sourced from here: http://ip-to-country.webhosting.info/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Encryption Advice

2006-05-20 Thread Kevin Davies
snip So let's say that I want to integrate a shopping cart with a PSP, right up to the moment they get to the checkout, they see my client's URL. They hit the Checkout button and then they will see the URL of the PSP? Then once they place the order then they are redirected back to my client's

[PHP] Header(Location: ... or Header(Refresh: 0;...

2006-05-16 Thread Kevin Davies
Hi All, I'd really appreciate your advice with this one... I have a cart. Visitors can browse a catalogue, click 'Add to cart', and are taken to the shopping cart with the new item added... This is working perfectly for 99.9% of visitors, although 2 separate support calls have reported they

[PHP] Filter out MS Word 'quotes' for RSS

2006-04-26 Thread Kevin Davies
Hi All, I've got a forum/blog system which is displaying correctly in the browser. However, I've also got an RSS feed that is created from the data entered. It seems that some of the users are copying and pasting from MS Word or other packages, and this means that strange quote marks (among

[PHP] Completing forms offline with PHP/MySQL

2006-04-07 Thread Kevin Davies - Bonhurst Consulting
Hi, Apologies if this is the wrong place for this question, but I'm sure there are some experts out there who might be able to point me in the right direction... :) I'm doing some work at the moment where remote teams can submit reports through to our database when connected over the internet to

RE: [PHP] Parsing variables within string variables

2006-04-07 Thread Kevin Davies - Bonhurst Consulting
David, Is this what you're looking for? $bar = 'Hello '.$bar HTH, Kevin -Original Message- From: David Clough [mailto:[EMAIL PROTECTED] Sent: 07 April 2006 17:37 To: php-general@lists.php.net Subject: [PHP] Parsing variables within string variables I've been bashing my head against

RE: [PHP] Re: setcookie security concerns [medium]

2006-03-17 Thread Kevin Davies - Bonhurst Consulting
I just picked up this thread, so excuse me if I'm repeating or have totally missed the point. Another concern I picked up from a PHP security book is using '--' - which simply comments out the remainder of the line (with MySQL anyway). Therefore if your SQL is SELECT * FROM table WHERE user =

RE: [PHP] displaying documents stored under web root

2006-03-10 Thread Kevin Davies - Bonhurst Consulting
Hi Adrian, I had the same dilemma on a project I was working on, and came across this: http://www.vibralogix.com/linklokurl/index.php It basically adds an authentication code, which can lock the download to an IP address and also you can limit the life of the URL to a length of time. You can

RE: [PHP] Mailto members..?

2006-03-01 Thread Kevin Davies - Bonhurst Consulting
snip Others here have mentioned the use of a mailer class I can't remember the name of (phpmailer maybe?). /snip PHPMailer is really good for sending HTML/Text/Both emails - I'm using it on a few different sites. Link: http://phpmailer.sourceforge.net/ Also, if you're going to use PHPMailer an