Re: [PHP] PHP broadcast mailer

2009-10-20 Thread Tom Chubb
2009/10/18 Paul M Foster pa...@quillandmouse.com On Sat, Oct 17, 2009 at 01:41:03AM -0400, Brian Hazelton wrote: I am in charge of an email newsletter list and making sure it gets sent out in time. My problem is I have never done broadcast emailing and right now we have 400 subscribers

Re: [PHP] String scrambling

2009-09-11 Thread Tom Chubb
!niBgo /* $str = Bingo!; str_shuffle($str); */ :)

Re: [PHP] Converting URL's to hyperlinks.

2009-09-04 Thread Tom Chubb
2009/9/4 Daevid Vincent dae...@daevid.com -Original Message- From: Lupus Michaelis [mailto:mickael+...@lupusmic.orgmickael%2b...@lupusmic.org ] Sent: Friday, September 04, 2009 7:46 AM To: php-general@lists.php.net Subject: Re: [PHP] Converting URL's to hyperlinks.

Re: [PHP] Re: Directory Listing

2009-08-26 Thread Tom Chubb
2009/8/26 Ashley Sheridan a...@ashleysheridan.co.uk: On Tue, 2009-08-25 at 17:08 +0100, Tom Chubb wrote: I've been playing about more and now I have the following code: ? error_reporting(E_ALL); ini_set('display_errors', true); function getDirectory($path = '.', $ignore

Re: [PHP] Re: Directory Listing

2009-08-26 Thread Tom Chubb
2009/8/26 Ashley Sheridan a...@ashleysheridan.co.uk: On Wed, 2009-08-26 at 09:50 +0100, Tom Chubb wrote: 2009/8/26 Ashley Sheridan a...@ashleysheridan.co.uk: On Tue, 2009-08-25 at 17:08 +0100, Tom Chubb wrote: I've been playing about more and now I have the following code

Re: [PHP] Re: Directory Listing

2009-08-26 Thread Tom Chubb
Works Terms v1.1 (22.05.08).pdftab here29/07/2009 /Tender Docs/UNWANTED TAB HEREHealth and Safety Questionnaire 14/08/2009 -- Tom Chubb t...@tomchubb.com | tomch...@gmail.com 07912 202846 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Directory Listing

2009-08-26 Thread Tom Chubb
should really be enclosed in quotation marks if you go down this route just in-case) Thanks, Ash http://www.ashleysheridan.co.uk Thanks Ash, I've learnt quite a lot trying to get this working! And yeah I think I might change it to csv now. -- Tom Chubb t...@tomchubb.com | tomch

Re: [PHP] Re: Directory Listing

2009-08-26 Thread Tom Chubb
2009/8/26 hack988 hack988 hack...@dev.htwap.com: your means Health and Safety Questionnaireis directory? so you want it display like this full dir path tab filenametabdate Yes. I did try using if(is_dir($file)) { insert tab } but couldn't get it to work. Also tried counting the length of the

[PHP] Directory Listing

2009-08-25 Thread Tom Chubb
Hi gang, I'm trying to create a script to read the files in a folder (approx 2000) and get the filename, path and last modified date in a tabulated format to copy into excel. (We have been issued a CD and need to get all files documented and assigned to an owner.) I've tried loads of different

Re: [PHP] Re: Directory Listing

2009-08-25 Thread Tom Chubb
2009/8/25 Ashley Sheridan a...@ashleysheridan.co.uk: On Tue, 2009-08-25 at 12:06 +0200, Ralph Deffke wrote: I would say foreach( $dirTree as $key = $value ){     echo $key .br;     foreach( $value as $v){         echo $v .br;     } } something like that ralph_def...@yahoo.de Tom Chubb

Re: [PHP] Re: Directory Listing

2009-08-25 Thread Tom Chubb
2009/8/25 Ralph Deffke ralph_def...@yahoo.de: I would say foreach( $dirTree as $key = $value ){    echo $key .br;    foreach( $value as $v){        echo $v .br;    } } something like that ralph_def...@yahoo.de Tom Chubb tomch...@gmail.com wrote in message news

Re: [PHP] Re: Directory Listing

2009-08-25 Thread Tom Chubb
I've been playing about more and now I have the following code: ? error_reporting(E_ALL); ini_set('display_errors', true); function getDirectory($path = '.', $ignore = '') { $dirTree = array (); $dirTreeTemp = array (); $fileDate = array (); $ignore[] = '.'; $ignore[] = '..';

Re: [PHP] php.net down?

2009-07-16 Thread Tom Chubb
2009/7/16 Thijs Lensselink p...@addmissions.nl Anybody noticed php.net is down? It's responding to pings. But no pages load. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php UK servers are working: uk2.php.net

Re: [PHP] Scrapping email content

2009-07-15 Thread Tom Chubb
2009/7/15 Areba Collins arebacoll...@gmail.com Hello guys, i have a quick one: Im working on an app that reads email and converts it into a post on a forum, everything works fine except the threaded comments at the bottom. I would like to delete everything that is from a previous email

[PHP] MySQL Queries in PHP

2009-07-14 Thread Tom Chubb
Hi List, Just wanted to pick your brains please? I'm trying to standardise on the way I query databases and move away from the Dreamweaver built-in functions (which I know you all hate!) ;) I've been on this list for about 5 years now and I don't think I've ever heard anyone mention the Pear

Re: [PHP] MySQL Queries in PHP

2009-07-14 Thread Tom Chubb
2009/7/14 Eddie Drapkin oorza...@gmail.com On Tue, Jul 14, 2009 at 2:29 AM, Tom Chubbtomch...@gmail.com wrote: Hi List, Just wanted to pick your brains please? I'm trying to standardise on the way I query databases and move away from the Dreamweaver built-in functions (which I know you

Re: [PHP] Sessions

2009-07-03 Thread Tom Chubb
2009/7/3 Luke l...@blog-thing.com 2009/7/3 Daniel Brown danbr...@php.net On Thu, Jul 2, 2009 at 23:27, Jason Carsonja...@jasoncarson.ca wrote: Hello all, Do I have to add session_start() at the beginning of every page so that the $_SESSION variables work on all pages or do I use

Re: [PHP] Sessions

2009-07-03 Thread Tom Chubb
2009/7/3 Ashley Sheridan a...@ashleysheridan.co.uk On Friday 03 July 2009 09:41:40 Tom Chubb wrote: 2009/7/3 Luke l...@blog-thing.com 2009/7/3 Daniel Brown danbr...@php.net On Thu, Jul 2, 2009 at 23:27, Jason Carsonja...@jasoncarson.ca wrote: Hello all, Do I have

Re: [PHP] Regarding Accesing mp3 with php

2009-06-26 Thread Tom Chubb
2009/6/26 Gautam Bhatia mail2gautambha...@gmail.com: hello all,             Is there anyway in php by which i can get the total play time of a mp3 , I found some information while doing the google thing using some 3rd party plug ins like getID3 but without any luck, Any help in this case

Re: [PHP] Calendar

2009-06-19 Thread Tom Chubb
http://lmgtfy.com/?q=javascript+calendar -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] difference between two times? Date_diff and DateTime::diff

2009-06-16 Thread Tom Chubb
version of PHP you're running, use: phpversion() or phpinfo() -Original Message- From: Matthew Croud [mailto:m...@obviousdigital.com] Sent: 16 June 2009 12:42 To: Tom Chubb Cc: PHP General list Subject: Re: [PHP] difference between two times? Date_diff and DateTime::diff Hi Tom

Re: [PHP] Google Calendar Integration

2009-06-05 Thread Tom Chubb
2009/6/5 Leonard Burton leonardbur...@gmail.com HI All, Has anyone used Google Calendar (of course via PHP) to allow clients to schedule appointments from the business's webpage? If so, would you please tell me how you made it so it would only show the client times which were available and

Re: [PHP] forms problem

2009-06-03 Thread Tom Chubb
2009/6/3 PJ af.gour...@videotron.ca: The code: ...snip div id=loginbox        form name=login method=post action=? echo $_SERVER['PHP_SELF'] ?            h2accegrave;s client br /input type=text name=title value=? echo $user; ? size=10 /br /            mot de passe br /input type=text

Re: [PHP] templating engine options

2009-05-25 Thread Tom Chubb
Sometimes I'm the windshield and sometimes I'm the bug Ha ha! Love that!

Re: [PHP] Let me google that for you.

2009-04-17 Thread Tom Chubb
2009/4/17 Jay Blanchard jblanch...@pocket.com [snip] I was thinking that you create a form with one input box, which would insert into the search box for the lmgtfy link. One of the questions I have is how would I convert or insert a + sign in between the search words. For example, if I

[PHP] Anyone fancy getting paid to improve my PHP in London?

2009-03-13 Thread Tom Chubb
Do any experienced PHP programmers in London fancy helping me improve my PHP? I'd like to know where my code could be improved and to be shown how an experienced programmer would approach a new site. I'd rather pay the right person a high amount than find someone cheap! Thanks, Tom PS - May as

Re: [PHP] Anyone fancy getting paid to improve my PHP in London?

2009-03-13 Thread Tom Chubb
2009/3/13 Robert Cummings rob...@interjinn.com On Fri, 2009-03-13 at 17:16 +, Tom Chubb wrote: Do any experienced PHP programmers in London fancy helping me improve my PHP? I'd like to know where my code could be improved and to be shown how an experienced programmer would approach

Re: [PHP] sms interfaces?

2008-10-09 Thread Tom Chubb
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 Chubb [EMAIL PROTECTED] | [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 Agreed, funniest

Re: [PHP] The Data Literacy Test

2008-09-26 Thread Tom Chubb
2008/9/24 Shelley [EMAIL PROTECTED] http://phparch.cn/index.php/php/34-php-basics/202-the-data-literacy-test 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 WTF! Don't you

[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

[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

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. I've tried loads of different

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 junk/spam folders. I've tried loads

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 delivered to junk/spam folders

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 server,

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] mailto: [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

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 to only

[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

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 best way: then just do something like: Here's how I do it in SQL

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 would be easy but it seems that I need to convert each postcode to Lat/Long using Geocoding

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 ?PHP header(Content-type:

[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] Big companies that use PHP?

2008-04-24 Thread Tom Chubb
take? Thanks, Thiago Pojda Wasn't there something you could append to any file in the URL that would show if it had been parsed using PHP? -- Tom Chubb [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Quick email address check

2008-03-27 Thread Tom Chubb
Can anyone recommend anything that would be good to use on an existing mailing list that is a few years old and didn't have any bounce handling? On 27/03/2008, Manuel Lemos [EMAIL PROTECTED] wrote: Hello, on 03/26/2008 02:28 PM Al said the following: I'm scripting a simple registry where

Re: [PHP] Strtotime returns 02/09/2008 for next Saturday....

2008-01-31 Thread Tom Chubb
On 31/01/2008, Mike Morton [EMAIL PROTECTED] wrote: I have been using: $nextSaturday= date(m/d/Y,strtotime(next saturday)); For months long time now with out problems, but in the last two days, it went kind of funky. It is now returning: 02/09/2008 instead of the expected 02/02/2008. I

Re: [PHP] Strtotime returns 02/09/2008 for next Saturday....

2008-01-31 Thread Tom Chubb
monday)); 02/11/2008 print date(m/d/Y,strtotime(next tuesday)); 02/12/2008 print date(m/d/Y,strtotime(next wednesday)); 02/13/2008 print date(m/d/Y,strtotime(next thursday)); 02/07/2008 So from today to next Thursday, the dates are all 1 week off? On 1/31/08 11:03 AM, Tom Chubb [EMAIL

[PHP] [Slightly OT] Apple MacBook MAMP and Logic

2008-01-31 Thread Tom Chubb
I am looking to buy a Mac in a couple of weeks primarily for writing music using Apple Logic Studio 8 which will run absolutely fine on a MacBook. However, I am considering installing something like MAMP and using that as my development server too at which point I'm wondering whether I should

Re: [PHP] Need assistance using sendmail or mail()

2008-01-31 Thread Tom Chubb
On 31/01/2008, philip [EMAIL PROTECTED] wrote: Nathan Nobbe wrote: On Jan 30, 2008 2:47 AM, Per Jessen [EMAIL PROTECTED] wrote: Philip, please state what sort of problems you are having. mail() and sendmail are both easy to use from php. And please don't post another 2000 lines of

Re: [PHP] [Slightly OT] Apple MacBook MAMP and Logic

2008-01-31 Thread Tom Chubb
On 31/01/2008, Richard Lynch [EMAIL PROTECTED] wrote: On Thu, January 31, 2008 11:29 am, Tom Chubb wrote: I am looking to buy a Mac in a couple of weeks primarily for writing music using Apple Logic Studio 8 which will run absolutely fine on a MacBook. However, I am considering

Re: [PHP] Re: [Slightly OT] Apple MacBook MAMP and Logic

2008-01-31 Thread Tom Chubb
On 31/01/2008, Colin Guthrie [EMAIL PROTECTED] wrote: Tom Chubb wrote: Thanks for all your responses. Rich, I guess you're right! Anyway PHP is only a hobby for personal sites, so I shouldn't really worry too much but wanted to get a general feel from people. The only big advantage

Re: [PHP] Need assistance using sendmail or mail()

2008-01-30 Thread Tom Chubb
On 30/01/2008, Per Jessen [EMAIL PROTECTED] wrote: philip wrote: Hi everyone, I need assistance using sendmail or mail() as my web hosting service does not allow opening sockets. This is the code I use: Philip, please state what sort of problems you are having. mail() and

Re: [PHP] (Slightly OT) are email address could be spammed

2008-01-24 Thread Tom Chubb
On 24/01/2008, Stut [EMAIL PROTECTED] wrote: On 24 Jan 2008, at 15:42, Eric Butera wrote: I used to be hardcore pop only but now that I use gmail I don't care about any other mail client. It beats Thunderbird and Mail.app hands down. If you don't look at the right hand side you won't

[PHP] Word Wrap on highlight_file

2008-01-16 Thread Tom Chubb
Can anyone tell me how to wrap the results of highlight_file so it doesn't mess up the size of my table div? I tried the following and doesn't work! if ($ext == phps) { $showcode = highlight_file($pathtoscripts . $_GET['file']); echo wordwrap($showcode, 70); } else { echo Nice try, but

Re: [PHP] Word Wrap on highlight_file

2008-01-16 Thread Tom Chubb
On 16/01/2008, Jochem Maas [EMAIL PROTECTED] wrote: Tom Chubb schreef: Can anyone tell me how to wrap the results of highlight_file so it doesn't mess up the size of my table div? use CSS to control the visual display in the browser. not to mention that 'table div' doesn't make much sense

Re: [PHP] checking user input of MM-DD-YYYY

2008-01-15 Thread Tom Chubb
On 15/01/2008, Adam Williams [EMAIL PROTECTED] wrote: I'm having users enter dates in MM-DD- format. is there a way to check if what they have entered is invalid (like if they enter 1-15-2008 instead of 01-15-2008) ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] why is option '97' selectedJapan/option not highlighted

2007-12-31 Thread Tom Chubb
On 31/12/2007, Mary Anderson [EMAIL PROTECTED] wrote: in my select scrolling list? Here is the offending code (abbreviated) select name=sr_location_id class= size=10 option value='94' Italy/option option value='97' selectedJapan/option option value='252' Jersey/option option value='294'

[PHP] Glob

2007-11-29 Thread Tom Chubb
Please can someone help me understand the following: I have 4 images with a .jpg extension in a folder. The following reads all four: $files = glob(thumbs/{*.gif,*.jpg,},GLOB_BRACE); All good, however, I noticed that if the extension is in capital letters, eg .JPG it doesn't work. Apparently this

Re: [PHP] Glob

2007-11-29 Thread Tom Chubb
On 29/11/2007, Robert Cummings [EMAIL PROTECTED] wrote: On Thu, 2007-11-29 at 17:19 +, Tom Chubb wrote: Please can someone help me understand the following: I have 4 images with a .jpg extension in a folder. The following reads all four: $files = glob(thumbs/{*.gif,*.jpg,},GLOB_BRACE

[PHP] Gallery Script

2007-11-27 Thread Tom Chubb
Hi all, I have a working gallery script which reads a directory then shows all thumbnails, each linking to the full size image. I'm trying to change it so that the page shows an image (fullsize) then links to the previous/next images in the sequence then all the thumbnails below (the bit that's

Re: [PHP] Re: Gallery Script

2007-11-27 Thread Tom Chubb
On 27/11/2007, Colin Guthrie [EMAIL PROTECTED] wrote: Tom Chubb wrote: Hi all, I have a working gallery script which reads a directory then shows all thumbnails, each linking to the full size image. I'm trying to change it so that the page shows an image (fullsize) then links

Re: [PHP] Re: Gallery Script

2007-11-27 Thread Tom Chubb
and next files to the link: $pictureLink = a href=picture.php?picture=pic2.jpegprev=pic1.jpegnext=pid3.jpegPicture 2/a Make sense? -Andrew PS - You could also google PHP Photo Gallery, there are TON of scripts out there. On Nov 27, 2007 7:20 AM, Tom Chubb [EMAIL PROTECTED] wrote

Re: [PHP] Help securing a server : Owned by W4n73d H4ck3r

2007-11-09 Thread Tom Chubb
Me too. Guess a lot of us can learn something here from another's misfortune. Thanks Robert and good luck On 09/11/2007, Edward Kay [EMAIL PROTECTED] wrote: I'd be interested in reading this thread. OK with me to keep it on the list. Ditto. -- PHP General Mailing List

Re: [PHP] trouble trying to connect to gmail server.

2007-09-27 Thread Tom Chubb
in total? -- Postgresql php tutorials http://www.designmagick.com/ -- Tom Chubb [EMAIL PROTECTED] 07912 202846 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Merging PDF Documents

2007-09-24 Thread Tom Chubb
timesheets instead of different files every week. What I'd like to know is which function I can use on PHP4? Is it PDF_begin_page_ext? Any help appreciated. Thanks, Tom -- Tom Chubb [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] Merging PDF Documents

2007-09-24 Thread Tom Chubb
need to be able to run exec() or shell() to use itext, but its free and quick. Let me know if you want more info. George in Edinburgh -Original Message- From: Tom Chubb [mailto:[EMAIL PROTECTED] Sent: 24 September 2007 1:24 pm To: PHP General List Subject: [PHP] Merging PDF

[PHP] Changing URLs from Relative to Absolute

2007-07-30 Thread Tom Chubb
.jpg;. That is easy enough and I created a regexp, but I found that some people call the img tag differently such as: img a=A photo src=images/1.jpg Does anyone have experience of this? How can I create a regexp that will find it in every case? Thanks in advance. Tom -- Tom Chubb [EMAIL PROTECTED]

Re: [PHP] ftp_put() problem??

2007-05-24 Thread Tom Chubb
Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Are you using the correct syntax? Make sure you are specifying the remote file first, then the local file. ftp_put($conn_id, $remote_file, $file, FTP_ASCII) -- Tom Chubb [EMAIL PROTECTED]

[PHP] PHP Dynamic Form Generator

2007-04-16 Thread Tom Chubb
phpclasses.org and sourceforge and I'm sure someone out there knows exactly what I'm looking for. Thanks in advance, Tom -- Tom Chubb [EMAIL PROTECTED]

Re: [PHP] warning message to hide

2007-04-14 Thread Tom Chubb
PHP 5 -- Tom Chubb [EMAIL PROTECTED]

Re: [PHP] simple page not found 404 script - PHP

2007-03-30 Thread Tom Chubb
I think I'm missing something, but this works: http://arubaguide.org/arubaguide/index.php?page=advertise and if I put in a type such as: http://arubaguide.org/arubaguide/index.php?page=advertisd I get the 404 error page. I think the problem with using $_GET[catcode]??? On 30/03/07, Dwayne

Re: [PHP] List all files in directory

2007-03-06 Thread Tom Chubb
On 06/03/07, Helder Lopes [EMAIL PROTECTED] wrote: Hi people How to php give to me a list of all files in one directory to make an editor??? http://php.net/readdir -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Readdir

2006-11-28 Thread Tom Chubb
What would be the best way to retrieve a list of files from an upload folder that are called id where the extension could be .doc .txt or .pdf For example, I have a folder where people can upload a document and the document is renamed as their user id. They can upload a PDF, DOC or TXT file. They

Re: [PHP] Readdir

2006-11-28 Thread Tom Chubb
){ $pics[]=$filename; } vincent -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Tue 28/11/2006 10:59 To: Tom Chubb Cc: [php] PHP General List Subject: Re: [PHP] Readdir Tom Chubb wrote: What would be the best way to retrieve

Re: [PHP] Detecting naughty sites

2006-11-28 Thread Tom Chubb
On 28/11/06, Dave Goodchild [EMAIL PROTECTED] wrote: Hi all. I am building a web app and as part of it advertisers can upload their ad image and website URL to go with their ad. Is there a good way to detect whether that site is a porn site via php? -- http://www.web-buddha.co.uk I remember

Re: [PHP] Readdir

2006-11-28 Thread Tom Chubb
; while ($i = 3) { //Check there is a value before displaying if(!empty($cvs[$i])) { $cv = str_replace($path, , $cvs[$i]) ; echo a href=\$cvs[$i]\$cv/a; echo br; } echo \n; $i++; } ? On 28/11/06, Tom Chubb [EMAIL PROTECTED] wrote

Re: [PHP] Hide Warnings

2006-11-17 Thread Tom Chubb
Choose one of the following, but if you are getting warnings, something is wrong and you should address it. ?php // Turn off all error reporting error_reporting(0); // Report simple running errors error_reporting(E_ERROR | E_WARNING | E_PARSE); // Reporting E_NOTICE can be good too (to report

Re: [PHP] file_get_contents

2006-11-17 Thread Tom Chubb
On 17/11/06, Jochem Maas [EMAIL PROTECTED] wrote: Tom Chubb wrote: Confused! I'm now getting: file_get_contents(http://www.tnhosting.co.uk/scripts/gclub/player.php) [function.file-get-contents]: failed to open stream: Connection refused in /home/sites/tnhosting.co.uk/public_html/scripts

Re: [PHP] file_get_contents

2006-11-17 Thread Tom Chubb
Very interesting! I have a reseller account and on another site, the DNS entries were messed up by the host. Could be a similar problem. Thanks On 17/11/06, Stut [EMAIL PROTECTED] wrote: Tom Chubb wrote: Confused! I'm now getting: file_get_contents(http://www.tnhosting.co.uk/scripts/gclub

Re: [PHP] file_get_contents

2006-11-17 Thread Tom Chubb
The host support team told me that: Our servers do not allows a HTTP connection onto itself. This is a security precaution to stop recursive code. You can try to reference the code by path rather than HTTP ...which works fine! On 17/11/06, Tom Chubb [EMAIL PROTECTED] wrote: Very interesting

[PHP] file_get_contents

2006-11-16 Thread Tom Chubb
I am trying to read the contents of a PHP page for an audio player and put it into a textarea to be copied and pasted into an HTML page. The trouble is the textarea shows unparsed PHP code and I just want the HTML. The code is: $player = file_get_contents('player.php'); //Strip out unnecessary

Re: [PHP] file_get_contents

2006-11-16 Thread Tom Chubb
indeed eval is probably not the answer. (Hmmm...) Any help much appreciated. Tom -- Tom Chubb [EMAIL PROTECTED] 07915 053312 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file_get_contents

2006-11-16 Thread Tom Chubb
variables in player.php. $song_url $song_title, are read from a seperate file after upload and that is what's being updated by this script, but the textarea was showing the php code. Thanks for your patience, guys. T On 16/11/06, Jochem Maas [EMAIL PROTECTED] wrote: Tom Chubb wrote: Thanks Jochem

Re: [PHP] Function Misbehaving

2006-11-15 Thread Tom Chubb
On 15/11/06, Programmer [EMAIL PROTECTED] wrote: Problem solved: the reason print($url) caused the program to work is because the page calling Secure_Login no longer existed and therefore the print forced a die--I assume. I included a die in the redirect function and all was well. Including

[PHP] Call to undefined function

2006-11-14 Thread Tom Chubb
I have just encountered a fatal error using file_put_contents() on a PHP4 box. After a bit of research I found a simple function within the php.net user comments. I just wanted to know what happens if I then tried to run this script on a PHP 5 box, whereby I'd be defining a function that already

Re: Fwd: [PHP] Highjack?

2006-11-14 Thread Tom Chubb
Posts like this are what makes this list so great! It's better to read this here than experience it first hand! Thanks Tedd, for highlighting the problem. Tom On 14/11/06, tedd [EMAIL PROTECTED] wrote: At 9:13 PM + 11/14/06, Stut wrote: Ok, so badscript.php is a bad name for this script.

[PHP] Max File Upload Size

2006-11-12 Thread Tom Chubb
This is a really stupid question, but I've not been able to find an answer for it. I have always thought that your max upload size is limited to the value in the php.ini file. However I recently changed a site to a new server which had problems with memory on one of the image resizing scripts. I

[PHP] Image Destroy

2006-08-15 Thread Tom Chubb
I know this will be really simple, but I'm struggling to get my head round the use of imagedestroy() I have some code which uploads an image, resizes to create a smaller image and thumbnail then deletes the source image. My question is which images need to be destroyed? I've read the even reusing

Re: [PHP] readdir() question

2006-08-15 Thread Tom Chubb
On 15/08/06, John Meyer [EMAIL PROTECTED] wrote: I have a script to list the files in a directory: select name=letters ?php $open = opendir(.); while ($file = readdir($open) != false) { ? option value=?=$file??=$file?/option ?php } ? /select /form And all I am

Re: [PHP] What's the regex for this...?

2006-07-05 Thread Tom Chubb
List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Tom Chubb [EMAIL PROTECTED] 07915 053312

Re: [PHP] PHP 5, Windows, and MySQL

2006-06-26 Thread Tom Chubb
://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Tom Chubb [EMAIL PROTECTED] 07915 053312

[PHP] HTML Mail script reading text from MySQL

2006-06-02 Thread Tom Chubb
I can't work out how to load the text from a recordset result into a variable for sending using mail in a script. I have a script which creates a dynamic table then I want to load the table's HTML into a variable which will be echoed in the mail function. I can't work out how to do this. I've

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

2006-06-02 Thread Tom Chubb
) but just can't work out how to do it. Any help would be greatly appreciated. PS - I know there are many Mail classes out there, but I also realise that this is something I will want to know how to do at a later time. Thanks, Tom -- Tom Chubb [EMAIL PROTECTED] 07915 053312

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 table /table 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 table eg: table

Re: [PHP] Bar codes

2006-04-19 Thread Tom Chubb
special bar code lib? Thanks for your time Best regards Emil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Tom Chubb [EMAIL PROTECTED] 07915 053312

Re: [PHP] Parse Error on SQL Insert [Solved]

2006-04-08 Thread Tom Chubb
-Original Message- From: Joe Henry [mailto:[EMAIL PROTECTED] Sent: 07 April 2006 20:53 To: php-general@lists.php.net; [EMAIL PROTECTED] Subject: Re: [PHP] Parse Error on SQL Insert On Friday 07 April 2006 1:37 pm, Tom Chubb wrote: $insertSQL = INSERT INTO cars (model, `year`, details

[PHP] Parse Error on SQL Insert

2006-04-07 Thread Tom Chubb
was getting an image1 cannot be null error which I couldn't work out either. That's gone, but I still can't work out what's going on. Many thanks, Tom -- Tom Chubb [EMAIL PROTECTED] 07915 053312

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Tom Chubb
insert wizard. On 07/04/06, Brad Bonkoski [EMAIL PROTECTED] wrote: why do you have single quotes around year? -B Tom Chubb wrote: I'm working on an insert record page with a multiple file upload script of which I understand the fundamentals. However, on submission I am getting

Re: [PHP] Here is a silly question

2006-04-04 Thread Tom Chubb
://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Tom Chubb [EMAIL PROTECTED] 07915 053312

Re: [PHP] Here is a silly question

2006-04-03 Thread Tom Chubb
-- 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   >