Re: [PHP] PHP broadcast mailer

2009-10-20 Thread Tom Chubb
2009/10/18 Paul M Foster > 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 but want to build

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 > > > > -Original Message- > > From: Lupus Michaelis > > [mailto:mickael+...@lupusmic.org > ] > > Sent: Friday, September 04, 2009 7:46 AM > > To: php-general@lists.php.net > > Subject: Re: [PHP] Converting URL's to hyperlinks. > > > > Daevid Vincent a écrit : > >

Re: [PHP] [SOLVED] Re: Directory Listing

2009-08-26 Thread Tom Chubb
2009/8/26 Steve : > Ashley Sheridan wrote: >> >> On Wed, 2009-08-26 at 09:50 +0100, Tom Chubb wrote: >> >>> >>> 2009/8/26 Ashley Sheridan : >>> >>>> >>>> On Tue, 2009-08-25 at 17:08 +0100, Tom Chubb wrote: >>

Re: [PHP] Re: Directory Listing

2009-08-26 Thread Tom Chubb
2009/8/26 hack988 hack988 : > your means "Health and Safety Questionnaire"is directory? > so you want it display like this > full dir path <> filename<>date > 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 $file value and an

Re: [PHP] Re: Directory Listing

2009-08-26 Thread Tom Chubb
aces, etc) to line up field data (although field values 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 wo

Re: [PHP] Re: Directory Listing

2009-08-26 Thread Tom Chubb
/Tender Docs/<<>>BAA Works Terms v1.1 (22.05.08).pdf<<>>29/07/2009 /Tender Docs/<<>>Health 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
2009/8/26 Ashley Sheridan : > On Wed, 2009-08-26 at 09:50 +0100, Tom Chubb wrote: >> 2009/8/26 Ashley Sheridan : >> > 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
2009/8/26 Ashley Sheridan : > 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 getDirec

Re: [PHP] Re: Directory Listing

2009-08-25 Thread Tom Chubb
I've been playing about more and now I have the following code: $folder ){ echo "\n"; //Don't need folders as they're shown with the files foreach( $folder as $file){ echo str_replace("./", "", $key) . "\t" . $file . "\t\n"; //Pad out with a tab for easy import into excel } } pri

Re: [PHP] Re: Directory Listing

2009-08-25 Thread Tom Chubb
2009/8/25 Ralph Deffke : > I would say > foreach( $dirTree as $key => $value ){ >    echo $key .""; >    foreach( $value as $v){ >        echo $v ."; >    } > } > > something like that > > ralph_def...@yahoo.de > "Tom Chubb" w

Re: [PHP] Re: Directory Listing

2009-08-25 Thread Tom Chubb
2009/8/25 Ashley Sheridan : > On Tue, 2009-08-25 at 12:06 +0200, Ralph Deffke wrote: >> I would say >> foreach( $dirTree as $key => $value ){ >>     echo $key .""; >>     foreach( $value as $v){ >>         echo $v ."; >>     } >>

[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 scr

Re: [PHP] php.net down?

2009-07-16 Thread Tom Chubb
2009/7/16 Thijs Lensselink > 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 > 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 (which usually begins

Re: [PHP] MySQL Queries in PHP

2009-07-14 Thread Tom Chubb
2009/7/14 Eddie Drapkin > On Tue, Jul 14, 2009 at 2:29 AM, Tom Chubb 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

[PHP] MySQL Queries in PHP

2009-07-13 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 packag

Re: [PHP] Sessions

2009-07-03 Thread Tom Chubb
2009/7/3 Ashley Sheridan > On Friday 03 July 2009 09:41:40 Tom Chubb wrote: > > 2009/7/3 Luke > > > > > 2009/7/3 Daniel Brown > > > > > > > On Thu, Jul 2, 2009 at 23:27, Jason Carson > wrote: > > > > > Hello all, > > >

Re: [PHP] Sessions

2009-07-03 Thread Tom Chubb
2009/7/3 Luke > 2009/7/3 Daniel Brown > > > On Thu, Jul 2, 2009 at 23:27, Jason Carson 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 session_start() > on > > > the first page

Re: [PHP] Regarding Accesing mp3 with php

2009-06-26 Thread Tom Chubb
2009/6/26 Gautam Bhatia : > 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 would be helpful. Thank you

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
fully >> - >> I would be sceptical of any webhost which rolls out RCs on production >> servers). >> >> If you need to know what version of PHP you're running, use: >> phpversion() or phpinfo() >> >> -Original Message- >>> From:

Re: [PHP] Google Calendar Integration

2009-06-05 Thread Tom Chubb
2009/6/5 Leonard Burton > 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 of course not lis

Re: [PHP] forms problem

2009-06-03 Thread Tom Chubb
2009/6/3 PJ : > The code: > ...snip > >         >            accès client name="title" value="" size="10" /> >            mot de passe >             value="      entrez     " /> >             Inscription >         >     snip... > > PROBLEM 1: On Firefox3, the first input (accès client) does not

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 > [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 created the in

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

2009-03-13 Thread Tom Chubb
2009/3/13 Robert Cummings > On Fri, 2009-03-13 at 17:16 +0000, 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 prog

[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 we

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

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] 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 >

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

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] 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.

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

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

[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] 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] 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
> > > Do any of you know? > > > > And what % of the web market share does PHP 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?

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 w

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 g

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

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 ano

[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 inves

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

2008-01-31 Thread Tom Chubb
ot;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 PROTECTED]> wrote: >

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 0

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.

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 yo

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 me

[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, bu

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 unsubs

Re: [PHP] why is Japan not highlighted

2007-12-31 Thread Tom Chubb
On 31/12/2007, Mary Anderson <[EMAIL PROTECTED]> wrote: > in my scrolling list? > > Here is the offending code (abbreviated) > > Italy > Japan > Jersey > Jiangsu > Jiangxi > > I have data series which have a location specified. I wish to edit the > data series. I select the location from the da

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 +0000, 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: > > $

[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 thi

Re: [PHP] Re: Gallery Script

2007-11-27 Thread Tom Chubb
Photo Gallery", there are TON of scripts out > there. > > > > > On Nov 27, 2007 7:20 AM, Tom Chubb <[EMAIL PROTECTED]> wrote: > > > > > > > > On 27/11/2007, Colin Guthrie <[EMAIL PROTECTED]> wrote: > > > Tom Chubb wrote: > > &g

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 p

[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 w

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 L

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

2007-09-27 Thread Tom Chubb
n(): Couldn't open stream { > > > pop.gmail.com:995/pop3}INBOX<http://pop.gmail.com:995/pop3%7DINBOX>in > > > c:\arquivos de programas\easyphp1-8\www\index.php on line 4 > > > Fatal error: Maximum execution time of 30 seconds exceeded in > > c:\arquivos de > >

Re: [PHP] Merging PDF Documents

2007-09-24 Thread Tom Chubb
produced in a wp/ocr package. You 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: 2

[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.ph

[PHP] Changing URLs from Relative to Absolute

2007-07-30 Thread Tom Chubb
gh and I created a regexp, but I found that some people call the img tag differently such as: 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-23 Thread Tom Chubb
"remote" and "local". Thanks -- PHP General 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
looking at 8 of them from 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
Windows XP SP2 PostgreSQL 8.1.4 Apache 2.0.58 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 He

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

Re: [PHP] Readdir

2006-11-28 Thread Tom Chubb
Got it working fine. Thanks Vincent and Jochem for pointing me in the right direction. Here is the code I used in case anyone's interested... $cv"; echo ""; } echo "\n"; $i++; } ?> On 28/11/06, Tom Chubb <[EMAIL PROTECT

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
, GLOB_BRACE) as $filename){ $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 b

[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. The

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 inter

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.tnh

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/site

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. On 16/11/06, Stein Ivar Johnsen <[EMAIL PROTECTED]> wrote: Hi.. How can I hide Warning messages so they are not shown on screen..: Warning: Call-time pass-by-reference has been deprecat

Re: [PHP] file_get_contents

2006-11-16 Thread Tom Chubb
bject ok, but I'm echoing 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 PRO

Re: [PHP] file_get_contents

2006-11-16 Thread Tom Chubb
r, you're almost certainly asking the > wrong question. -- Rasmus Lerdorf, BDFL of PHP 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

[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 unnecessa

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 d

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] 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 e

[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 m

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: And all I am getting are "1"s. I think I'm doing it right, what is the disconnect? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

[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] What's the regex for this...?

2006-07-05 Thread Tom Chubb
= ' http://dinki.mine.nu/weblog/'; else $url_test = $_SERVER['HTTP_REFERER']; $new_title = return_title ($url_test); //print $new_title; $new_name = stripslashes("$new_title\n"); $new_URL = stripslashes("$referer\n"); fwrite($fp,$new_URL); fwrite($fp,$new_name); fclose($fp); $fp = fopen($filename, "r"); $file = implode('', file ($filename)); $foo = preg_split("//",$file); $number = count($foo); //print $number; if ($number > 11) { fclose($fp); $fp = fopen($filename, "w"); $count = $number - 10; while ($count < $number) { $print1 = $foo[$count]; $print2 = $foo[$count+1]; print " "; print " $print2 <http://arif-blog.blogspot.com$print1/>"; //print $count; $count += 2; $new_name = stripslashes("$print2"); $new_URL = stripslashes("$print1"); fwrite($fp,$new_URL); fwrite($fp,$new_name); } fclose($fp); } //print_r($foo); else { $count = 1; while ($count <= $number) { $print1 = $foo[$count]; $print2 = $foo[$count+1]; print " "; print " $print2 <http://arif-blog.blogspot.com$print1/>"; //print $count; $count += 2; } fclose($fp); } ?> On 05/07/06, Brian Dunning <[EMAIL PROTECTED]> wrote: I have the source of a web page stored in $here and I want to set $this to whatever appears between '' and ''. Example: $here contains (amid tons of other stuff): This is a statement. I want to set $this to "This is a statement." Seems simple but I'm banging my head against a wall and can't figure out how to do it... can anyone help out a dude on the 4th of July?? :) :) - Brian -- 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] PHP 5, Windows, and MySQL

2006-06-26 Thread Tom Chubb
General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- 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 & 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

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

[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 trie

Re: [PHP] Bar codes

2006-04-19 Thread Tom Chubb
t it out? Is it just as a regulat font, or do I need > some 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
the field in the DB isn't numeric this would be > > '{$_POST['model']}' > > > > Dan > > > > --- > > http://chrome.me.uk > > > > > > -Original Message- > > From: Joe Henry [mailto:[

Re: [PHP] Parse Error on SQL Insert

2006-04-07 Thread Tom Chubb
[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 ge

[PHP] Parse Error on SQL Insert

2006-04-07 Thread Tom Chubb
Image3: I've been slaving away for an hour and it's probably something really obvious but I'd really appreciate it if someone could point it out to me please? Previously I 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] Here is a silly question

2006-04-04 Thread Tom Chubb
t; > > Scandog > > > > I didn't see anybody else mention this, so: > > $mydir = dirname(__FILE__); > include($mydir . '/../nav/menu.php'); > > works every time and you don't have to rely on document_root being set > properly etc. > > -- > Postgresql & php tutorials > http://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

  1   2   >