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

[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

[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

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'

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,

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

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

[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

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

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

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

[PHP] PHP and Modbus

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

Re: [PHP] Downloading a file

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

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

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

[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

[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

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

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

[PHP] Playing Audio

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

[PHP] Help with Functions

2005-07-30 Thread Tom Chubb
I am trying to start using functions on some pages to layout a header row in a table. I have defined the function as below... ?php function (headerrow) { ? table width=750 border=0 cellpadding=0 cellspacing=0 bgcolor=#FF0066 tr td class=table_head?php echo $tablehead;

Re: [PHP] Help with Functions

2005-07-30 Thread Tom Chubb
on) function make_table($arg1, $arg2){ echo ENDOFTABLE table tr td$arg1/td td$arg2/td /tr /table ENDOFTABLE; } On 7/30/05, Tom Chubb [EMAIL PROTECTED] wrote: I am trying to start using functions on some pages to layout a header row

[PHP] Help with a Parse Error

2005-07-31 Thread Tom Chubb
tell me where I'm going wrong please? Thanks, Tom -- Tom Chubb [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with a Parse Error

2005-07-31 Thread Tom Chubb
No article selected I kmow this will disappear when I turn off error reporting, but how can I suppress it properly? On 31/07/05, Edward Vermillion [EMAIL PROTECTED] wrote: Tom Chubb wrote: I am trying to create my own news system and to start with I'm using static news pages until I get the db

Re: [PHP] Help with a Parse Error

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

[PHP] The Naming of Directories

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

[PHP] Using File to count number of lines

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

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

2005-08-04 Thread Tom Chubb
putting everything on a single array key.. Tom Chubb wrote: I'm having a problem with the following code: ?php $file = http://www.mysite.co.uk/mailing_list_database.list;; $lines = count(file($file)); echo $lines ; ? I'm trying to show the number of subscribers to my visitors from

[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 It'll show in 17/03/2006 format Tom Chubb wrote: Please can you help

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

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

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

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

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

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 Hosting

2005-09-30 Thread Tom Chubb
recommendations on good host providers for PHP 5? Bonus points if they support SSH access and a PHP compiler like Zend. Thanks, Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Tom Chubb [EMAIL PROTECTED] 07915 053312 -- PHP

Re: [PHP] Web based editor

2005-11-27 Thread Tom Chubb
-- Tom Chubb [EMAIL PROTECTED] 07915 053312

[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: * html head titleUntitled Document/title meta

RE: [PHP] tracking ip and its location

2004-05-14 Thread Tom Chubb
Try: http://www.1phpstreet.com/vb/scripts/ShowCode.asp?txtCodeId=318lngWId=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

[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

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

[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

[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

RE: [PHP] Posting Data to MySQL

2004-06-24 Thread Tom Chubb
. The 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] Posting Data

[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
] [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 end of each week. I want

[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

[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

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

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

Re: [PHP] warning message to hide

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

  1   2   >