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

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

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

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

[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] 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 ."; >>     } >>

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

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

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

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

[PHP] Trouble with using isset and form posting

2004-05-13 Thread Tom Chubb
I think I'm missing something here really obvious! I am using a script where you get a variable from one page and post to another. I've just realised that some people are jumping straight to the second page (it rates higher in search engines) so the variable (yourname) remains unset. I want to use

RE: [PHP] What is the GD library and what can I do with it ?

2004-05-11 Thread Tom Chubb
Pete, I thought I should send you another reply as I felt that depending on your experience, you may not fully understand the resonses from other members. Firstly, create a new .php file and using the following source code: * Untitled Document *

RE: [PHP] tracking ip and its location

2004-05-14 Thread Tom Chubb
Try: http://www.1phpstreet.com/vb/scripts/ShowCode.asp?txtCodeId=318&lngWId=8 Regards, Tom -Original Message- From: adwinwijaya [mailto:[EMAIL PROTECTED] Sent: 14 May 2004 07:39 To: PHP Subject: [PHP] tracking ip and its location Hello PHP, Is there any function/class to search the l

[PHP] PHP Sockets

2004-05-14 Thread Tom Chubb
This may sound a bit cheeky, but I've spent most of today looking for some examples of sockets. I've managed to create a socket and it's connecting ok, but next I need to find a way of sending an ASCII string to the remote computer and echo-ing the results back to my screen. (Using a text box to su

[PHP] How to find path for PHP script

2004-05-10 Thread Tom Chubb
Does anyone know a quick way to find the full path on a shared hosting plan to use in an include file? Thanks, Tom

[PHP] File Upload within form

2004-05-26 Thread Tom Chubb
I am trying to design a custom form script and I've stumbled across a small problem. I want to implement a file upload into the form, but rather than posting to another file I want to refresh the form and then show that there has been a file uploaded. I know about changing the form action to: Bu

[PHP] ISSET problem with Form

2004-05-27 Thread Tom Chubb
If you use ISSET together with a hidden field when posting a form to itself to enter a second-state, is there a way of using it again to get to a third-state. Basically, I'm trying to convert a 3 file script into a single file and first I check to see if it's been submitted and then using ELSE I e

[PHP] Test Email

2004-06-01 Thread Tom Chubb
Sorry if anyone else gets this, but I'm not receiving any emails at the moment and wanted to check my subscription.

[PHP] Posting Data to MySQL

2004-06-24 Thread Tom Chubb
I am trying to design a form that posts the data to a DB, but being new to PHP/MySQL, it takes me ages to hand write the code and I'm sure there must be an easier way to do it? My form has 100 fields using 20 rows and 5 columns and it's taking me ages to write the code for it. Can anyone advise how

RE: [PHP] Posting Data to MySQL

2004-06-24 Thread Tom Chubb
database table also has a datepost so I can select from the week ending when I posted them. Thanks to everyone who has responded. Tom -Original Message- From: Robert Sossomon [mailto:[EMAIL PROTECTED] Sent: 24 June 2004 15:30 To: 'Tom Chubb'; [EMAIL PROTECTED] Subject: RE: [PHP] Po

[PHP] Date Select

2004-06-25 Thread Tom Chubb
How can I query a MySQL table to get the latest results from a date field? Basically, I am inserting several records at a time at the end of each week. I want to have a page that displays the results for the last week only. The date format in the field is -MM-DD

[PHP] RE: [PHP-DB] Date Select

2004-06-25 Thread Tom Chubb
EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 25 June 2004 12:15 To: Tom Chubb Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP-DB] Date Select >How can I query a MySQL table to get the latest results from a date field? >Basically, I am inserting several records at a time at the

[PHP] Error Reporting

2004-06-28 Thread Tom Chubb
I ave a strange problem with my error reporting! I have set php.ini to: error_reporting = E_ALL but I don't see any errors. (After I was happy things were working on my Apache Test Server, I uploaded to my web host and discovered errors.) Thanks, Tom -- PHP General Mailing List (http://www.php

[PHP] Send a page using mail()

2004-06-28 Thread Tom Chubb
I've read the manual for the mail function and extensively searched google, but I can't work out how I can email an html page (actually a php page). I want to query a DB and the email the displayed table to the user. Any help most appreciated. Tom -- PHP General Mailing List (http://www.php.net

[PHP] Best table structure

2004-06-30 Thread Tom Chubb
Please can someone let me know their opinion on the following: I have written some code for submitting a top 20 music chart online. I use the following to insert into mysql: INSERT INTO chart (name, chartpos, artist, title, label) VALUES ('$name', '1', '$artist', '$title', '$label'), ('$name', '

[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

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

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

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

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

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

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

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

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

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

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

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

[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

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.

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

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

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

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

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

[PHP] Date Question

2006-03-17 Thread Tom Chubb
Please can you help me. I've created a page where problems are posted into a database and I am using the datetime format in MySQL and trying to find the best way to display it in the 17/03/06 format. I've found a way of doing it (so you don't think I haven't googled, RTFM) but don't think it's the

Re: [PHP] Re: Date Question [SOLVED]

2006-03-17 Thread Tom Chubb
Thanks guys. On 17/03/06, João Cândido de Souza Neto <[EMAIL PROTECTED]> wrote: > > select date_format(date,"%d/%m/%y") as date from table > > It'll show in 17/03/06 format > > select date_format(date,"%d/%m/%Y") as date from table > >

Re: [PHP] Here is a silly question

2006-04-03 Thread Tom Chubb
to have my include files in a > >>>> common place that works and keeps the links right. > >>>> > >>>> Scandog > >>> > >>> > >>> Ok, I this may only help part of your problem. Within your "menu.php" > >>> file, you could make all the links absolute: > >>> > >>> Place A > >>> Place B > >>> > >>> instead of relative: > >>> > >>> Place A > >>> Place B > >>> > >>> That means you can use only 1 menu.php file and all the links will > >>> work from wherever. Of course, this does not fix this issue: > >>> > >>> or > >>> or > >>> > >>> > >>> for each of your files that includes the menu. Maybe another clever > >>> person has an idea. > >>> > >>> ~Philip > > > > --PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- > 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-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

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

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

[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

  1   2   >