Re: [PHP] HTML Mail script reading text from MySQL

2006-06-02 Thread Tom Chubb
Mark Cain - Original Message ----- From: "Tom Chubb" <[EMAIL PROTECTED]> To: "[php] PHP General List" Sent: Friday, June 02, 2006 10:59 AM Subject: [PHP] HTML Mail script reading text from MySQL >I can't work out how to load the text from a recordset resul

Re: [PHP] HTML Mail script reading text from MySQL

2006-06-02 Thread Tom Chubb
I've just read a similar post and think that I should use file_get_contents and the preg_match for the & tags. ...But if anyone knows a better way I'm all ears! On 02/06/06, Tom Chubb <[EMAIL PROTECTED]> wrote: Sorry Mark, What I meant is say a page outputs an HTML

[PHP] PHP and Modbus

2008-07-10 Thread Tom Chubb
Hi List, Has anyone on this list had any application experience of polling Modbus devices with PHP? Thanks

Re: [PHP] Downloading a file

2008-07-16 Thread Tom Chubb
On 16/07/2008, Robbert van Andel <[EMAIL PROTECTED]> wrote: > > I am having trouble getting a file to download to work in Internet > Explorer. > The site works fine in FireFox. The page retrieves the contents of a file > from a database and outputs the following > > > > > > > header("Content-typ

[PHP] Google Maps Distance Between UK Postcodes

2008-09-01 Thread Tom Chubb
Has anyone tried to work this out? All I'm trying to get is the rough distance in miles between two UK postcodes using Google Maps API for a basic auto quote script based on mileage travelled. I thought it would be easy but it seems that I need to convert each postcode to Lat/Long using Geocoding a

Re: [PHP] Re: Google Maps Distance Between UK Postcodes

2008-09-01 Thread Tom Chubb
On 01/09/2008, Colin Guthrie <[EMAIL PROTECTED]> wrote: > > Tom Chubb wrote: > >> I thought it would be easy but it seems that I need to convert each >> postcode >> to Lat/Long using Geocoding and then work it out from there. >> > > That's the bes

Re: [PHP] Re: Google Maps Distance Between UK Postcodes

2008-09-01 Thread Tom Chubb
On 01/09/2008, Michal Sokolowski <[EMAIL PROTECTED]> wrote: > > > > 2008/9/1 Tom Chubb <[EMAIL PROTECTED]> > >> On 01/09/2008, Colin Guthrie <[EMAIL PROTECTED]> wrote: >> > >> > Tom Chubb wrote: >> > >> >> I thought it

Re: [PHP] Altering the error_reporting

2008-09-03 Thread Tom Chubb
2008/9/3 n3or <[EMAIL PROTECTED]> > [EMAIL PROTECTED] schrieb: > >> I am looking for a way to alter the error_reporting(E_All) >> This displays Parse error: parse error, unexpected '}' in >> /var/www/html/test.php on line 7 >> >> I want to remove the file location and line number from the error >

Re: [PHP] Re: New Server Install

2008-09-11 Thread Tom Chubb
2008/9/11 Ashley Sheridan <[EMAIL PROTECTED]> > I believe that MySQL uses a particular port when connecting over a > network such as you're doing. I can't remember the exact port number, > but you can Google it. Just check that there's nothing blocking this > port either on your computer, the serv

Re: [PHP] Re: New Server Install

2008-09-11 Thread Tom Chubb
2008/9/11 Shawn McKenzie <[EMAIL PROTECTED]> > > > Tom Chubb wrote: > >> >> >> 2008/9/11 Ashley Sheridan <[EMAIL PROTECTED] > [EMAIL PROTECTED]>> >> >>I believe that MySQL uses a particular port when connecting over a >>ne

[PHP] Email - Best practice/advice please

2008-09-12 Thread Tom Chubb
I have generally been using the PHP mail function for sending emails from contact forms on websites, but have recently had problems with a lot of mails being delivered to junk/spam folders. I've tried loads of different headers, etc and almost every contact form on sites I've done is different. I t

Re: [PHP] Email - Best practice/advice please

2008-09-12 Thread Tom Chubb
2008/9/12 Aschwin Wesselius <[EMAIL PROTECTED]> > Tom Chubb wrote: > > I have generally been using the PHP mail function for sending emails from > contact forms on websites, but have recently had problems with a lot of > mails being delivered to junk/spam folders.

Re: [PHP] Email - Best practice/advice please

2008-09-12 Thread Tom Chubb
2008/9/12 Stut <[EMAIL PROTECTED]> > On 12 Sep 2008, at 11:55, Tom Chubb wrote: > >> I have generally been using the PHP mail function for sending emails from >> contact forms on websites, but have recently had problems with a lot of >> mails being delivered to ju

Re: [PHP] Re: Email - Best practice/advice please

2008-09-12 Thread Tom Chubb
2008/9/12 Ross McKay <[EMAIL PROTECTED]> > On Fri, 12 Sep 2008 11:55:03 +0100, Tom Chubb wrote: > > >I have generally been using the PHP mail function for sending emails from > >contact forms on websites, but have recently had problems with a lot of > >mails being

[PHP] Email Verification

2008-09-17 Thread Tom Chubb
Can anyone offer advice on best practices for email address verification? Obviously for user registration it's common to click a link in your email to complete the process thereby verifying the email, but if you want to keep things very simple for the end user, what are the best methods? I have bee

Re: [PHP] The Data Literacy Test

2008-09-26 Thread Tom Chubb
2008/9/24 Shelley <[EMAIL PROTECTED]> > >The > Data Literacy Test: > > > http://www.phparch.cn/index.php/php/34-php-basics/202-the-data-literacy-test > > -- > With best regards, > Shelley Shyan > http://www.phparch.cn >

Re: [PHP] sms interfaces?

2008-10-09 Thread Tom Chubb
ailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > I agree with -Stut, I didn't like their documentation though but managed to find a class for it on phpclasses I think. Let me know if you want me to dig out the link for you -- Tom Chub

Re: [PHP] Login

2008-10-09 Thread Tom Chubb
> > > > I'd like to take this back to the heart of this message and state that > redirecting malicious usage to ratemypoo seems like a perfectly delightful > means of security. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Agr

[PHP] Playing Audio

2005-07-26 Thread Tom Chubb
This seems really silly, but I can't find a way of doing it! How can I play/stream an audio file, that may be upto an hour long and keep it playing while visitors view other pages? Is it possible to use sessions so that the file will continue playing when they hit the next page. (It wouldn't really

[PHP] Help with Functions

2005-07-30 Thread Tom Chubb
I am trying to start using functions on some pages to layout a header row in a table. I have defined the function as below... What I can't seem to work out is a way to set the text. Here I've echoed the $tablehead value, but it I was t

Re: [PHP] Help with Functions

2005-07-30 Thread Tom Chubb
(although tbh you should wait until you have more > experience before you read on) > > function make_table($arg1, $arg2){ > echo << > >$arg1 >$arg2 > > > ENDOFTABLE; > } > > > > > O

[PHP] Help with a Parse Error

2005-07-31 Thread Tom Chubb
#x27;t understand why this isn't working and I've tried looking into this for 2 hours! Can anyone tell me where I'm going wrong please? Thanks, Tom -- Tom Chubb [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with a Parse Error

2005-07-31 Thread Tom Chubb
e: Undefined index: id in /home/5217/tomchubb/public_html/index.php on line 14 No article selected I kmow this will disappear when I turn off error reporting, but how can I suppress it properly? On 31/07/05, Edward Vermillion <[EMAIL PROTECTED]> wrote: > Tom Chubb wrote: > > I am

Re: [PHP] Help with a Parse Error

2005-07-31 Thread Tom Chubb
Thanks Jochem, useful info. I've changed that now, but why is there still an Undefined index: id error? Any ideas? On 31/07/05, Jochem Maas <[EMAIL PROTECTED]> wrote: > Tom Chubb wrote: > > I have changed it a bit, and don't have the old code now!!! > > I saw a

[PHP] The Naming of Directories

2005-08-04 Thread Tom Chubb
e string inserts %20 for the spaces, which is fine, but are there any reasons why I shouldn't be doing this? Many thanks, Tom -- Tom Chubb [EMAIL PROTECTED] 07915 053312 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Using File to count number of lines

2005-08-04 Thread Tom Chubb
I'm having a problem with the following code: http://www.mysite.co.uk/mailing_list_database.list";; $lines = count(file($file)); echo "$lines "; ?> I'm trying to show the number of subscribers to my visitors from a text file, but it returns a value of 1 when it should be 5000. I think it's to

Re: [PHP] Using File to count number of lines

2005-08-04 Thread Tom Chubb
a value of 1 it is likely putting everything on a > single array key.. > > > > Tom Chubb wrote: > > >I'm having a problem with the following code: > > > > >$file = "http://www.mysite.co.uk/mailing_list_database.list";; > >$lines =

Re: [PHP] PHP 5 Hosting

2005-09-30 Thread Tom Chubb
Sep 29, 2005, at 8:29 PM, Ed Lazor wrote: > > > Any recommendations on good host providers for PHP 5? Bonus points > > if they support SSH access and a PHP compiler like Zend. > > > > Thanks, > > > > Ed > > > > -- > PHP General Mailing List (http:/

Re: [PHP] Web based editor

2005-11-27 Thread Tom Chubb
t; > > > I don't know if one is better than the next, but I've used TinyMCE in > > the past and it has served me well. > > http://tinymce.moxiecode.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Tom Chubb [EMAIL PROTECTED] 07915 053312

<    1   2