RE: [PHP] Re: OOP methodology

2004-02-02 Thread chris . neale
Thanks - very useful way of looking at things. I think I'll opt for applying this principle to the way I plan to improve my system. Currently far too bulky. Of course, now the project has progresse, finding time to refactor and effectively build most of it from scratch, is quite hard. Cheers

[PHP] Flash interface to CLI PHP Script vs GTK

2004-02-02 Thread chris . neale
I'm sure people have had wilder ideas, but this is what I'm trying to do. I'm disappointed by the lack of clear documentation and examples for GTK and the strange way the package insists on using its own binary php.exe (for win32) instead of being just a simple extension. And I've yet to find a

RE: [PHP] The PHP Problem

2004-02-02 Thread chris . neale
I was in the same shoes a few years ago and used this. http://www.net-language.com/workshops/Default.asp?workshop=21 It's a good guide, shows you how to set up a web server, php and mysql on your own PC (win32). As it's for a slightly older version of PHP some parts of the guide don't no longer

[PHP] OOP methodology

2004-01-30 Thread Chris Neale
This is a long one - I'm trying to get to grips with my understanding of OOP. I'm not sure that I understand object oriented programming as well as I could to benefit from using it in PHP. Although I've used it to produce working applications, of the few objects I've produced nearly all have

RE: [PHP] I need answers for the questions

2003-11-18 Thread chris . neale
Ha ha. This looks like your homework. At school some people used to pay money for other people to do their homework for them (which may have inspired 'sub-contracting' and consultancy). Minimal research will get you the answers. RTFM, look on Google, buy a book, try it for yourself, use your

RE: [PHP] Microsoft .NET arguement

2003-11-17 Thread chris . neale
I agree. I've found MS SQL (and MS Access databases) to be extremely fast when well optimised, even with massive databases. As you can interface with them using ODBC I prefer to use MS database backends when my clients already have them installed alongside PHP for Win32. C -Original

RE: [PHP] Change text size with GD

2003-10-27 Thread chris . neale
I use the function imageTTFtext allows you to specify a string with a font and a font point size. Hope that helps. Chris -Original Message- From: Cranky [mailto:[EMAIL PROTECTED] Sent: 27 October 2003 10:16 To: [EMAIL PROTECTED] Subject: [PHP] Change text size with GD Hello, I would

RE: [PHP] php header function

2003-10-24 Thread chris . neale
http://uk.php.net/header Have a look at that. As it says, sends an HTTP header. Useful if you want to specify content type in the page that isn't HTML (maybe an image or a pdf). Read the above for more info. Regards Chris -Original Message- From: Shaun van den Berg [mailto:[EMAIL

[PHP] Calling object variables is untidy and lengthy - any other ideas?

2003-10-20 Thread chris . neale
Here's the problem. I have a php script which generates a Year-on-Year change graph, works fine, does the job. I want to turn it into an object. Unfortunately I have to rename all references to variables in the object to $this-width for example. Is there a way I can just refer to them as before.

[PHP] Building associative arrays

2003-10-03 Thread chris . neale
I'm stuck. I'm trying to build an associative array from a database result. How can I assign a new key and value pair eg mysql_fetch_row etc { dbRowCol1 = myarray(key) dbRowCol2 = myarray(value) } You get the general idea. Can't find any examples. I'm trying to lookup a key and retrieve

RE: [PHP] How to swap the table's bg color with php

2003-10-03 Thread chris . neale
Try using stylesheets instead of javascript. I think you need to use :hover on either the td element and then specify a style. background-color I think it is. I haven't got my HTML reference handy and can't remember the specifics, but that's the general idea. Hope that's of some use. Regards

RE: [PHP] Building associative arrays

2003-10-03 Thread chris . neale
Perfect. Thanks for that. I can't think associative arrays first thing in the morning. Seems a bit clearer now... C -Original Message- From: Eugene Lee [mailto:[EMAIL PROTECTED] Sent: 03 October 2003 12:07 To: [EMAIL PROTECTED] Subject: Re: [PHP] Building associative arrays On Fri, Oct

RE: [PHP] Compare dates

2003-09-29 Thread chris . neale
I always use Unix timestamps until I need to format it to a (what's the word) date for presentation. Then you can just to a if $x $y then it happened before $y. look for mktime(), time(), date() in the manual. C -Original Message- From: Shaun [mailto:[EMAIL PROTECTED] Sent: 29

RE: [PHP] MerlinWork PHP Framework

2003-09-29 Thread chris . neale
I like I like. Look like it might cut a lot of tedious leg-work out. Regards Chris -Original Message- From: Fabrizio Balliano [mailto:[EMAIL PROTECTED] Sent: 29 September 2003 12:37 To: [EMAIL PROTECTED] Subject: [PHP] MerlinWork PHP Framework Hi to all, I'd like to present show you

RE: [PHP] PHP coders spare time [OT}

2003-09-29 Thread chris . neale
And possibly the best looking site I've seen in years. Colours, curves - bring it on PLENTY of spare time I think... C -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: 29 September 2003 13:00 To: Justin French; Curt Zirzow Cc: [EMAIL PROTECTED] Subject: RE:

RE: [PHP] RE : [PHP] PHP Rading excel files

2003-09-29 Thread chris . neale
I'd consider using COM to work with Excel files if you can't find another way to get the information out. The PHP Handbook (O'Reilly) has a good chapter on that sort of thing. Then you can just refer to a cell as you would in Excel VBA. Sorry I can't think of anything better! C -Original

RE: [PHP] RE : [PHP] PHP Rading excel files

2003-09-29 Thread chris . neale
Just thought that it might be worth considering putting some functionality into the Excel spreadsheet to trigger the PHP application. I've created Excel spreadsheets in the past with a VBA macro or two in it which allows users to update information on a intranet site from the spreadsheet. They

RE: [PHP] How to accept file through http from curl c program??

2003-09-26 Thread chris . neale
At a first glance: $fp=fopen(brianLog1, w+); brianlog1 should either be in quotes if that's the name of the file and the file doesn't have an extension. Or maybe it's a variable in which case you'll need to put the $ in front of it.. Hope that helps Regards Chris -Original

RE: [PHP] Databases

2003-09-25 Thread chris . neale
You find a reasonable example if you go googling for 'PHP tutorial' and then sit down for an evening and read the manual. C -Original Message- From: Shaun van den Berg [mailto:[EMAIL PROTECTED] Sent: 25 September 2003 07:14 To: [EMAIL PROTECTED] Subject: [PHP] Databases Hi Im kinda

RE: [PHP] Refresh php section

2003-09-25 Thread chris . neale
Consider 4 IFRAMEs on one page, with meta refreshes in each header which point to your php script with a get parameter of whichever 'section' you're dealing with. Regards Chris -Original Message- From: ascll [mailto:[EMAIL PROTECTED] Sent: 25 September 2003 08:48 To: [EMAIL PROTECTED]

RE: [PHP] Am stuck

2003-09-25 Thread chris . neale
Try Str_len and str_pad Regards Chris -Original Message- From: Chris Grigor [mailto:[EMAIL PROTECTED] Sent: 25 September 2003 13:10 To: php Subject: [PHP] Am stuck Good day all I have a txt file that has values from various strings written to it. What Im looking for is the

RE: [PHP] Add a leading zero

2003-09-24 Thread chris . neale
Maybe use strlen to check the length of the $i then if it's less than 2 do $i = 0.$i Quick and dirty, but I've done that trick myself in the past. C -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: 24 September 2003 12:43 To: Shaun Cc: [EMAIL PROTECTED] Subject:

RE: [PHP] Add a leading zero

2003-09-24 Thread chris . neale
Duh Sorry didn't realise I was replying to a reply to the original message. And to add insult to injury str_pad looks like it does the job a lot better... C -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED] Sent: 24 September 2003 12:43 To: Shaun Cc: [EMAIL

RE: [PHP] 3 mins of your time please...logic problem

2003-09-24 Thread chris . neale
You could take it further and only allow one vote per user and then log their IP address as well. There won't be many people who are determined to sway the vote by going through the hassle of creating a new user and then voting again. But there may be some. You can weed these out by looking

RE: [PHP] Mail problem

2003-09-22 Thread chris . neale
Have you timed it? You might want to check it doesn't take longer than the max_execution_time directive in php.ini allows (you'll have to check if that's the correct name for it). I've also used set_time_limit(0) at the top of my scripts when I know it's going to take a while... Regards Chris

[PHP] Ways to connect to Access DB without using ODBC?

2003-09-17 Thread chris . neale
Has anyone got any idea how I might be able to connect to an access database without using the ODBC drivers? I logged a bug with the PHP developers (#25472) about a problem I've been having with memory leaks when using them for looping through hundreds of queries in sequence. Does anyone have any

RE: [PHP] Object in session and include

2003-09-17 Thread chris . neale
I was under the impression that if you used include_once then the script would only include the class definition if it was required within the script. You might want to check the manaul or get a second opinion on that, but that's what I've always done. Regards Chris -Original Message-

RE: [PHP] consistent PHP function names?

2003-09-17 Thread chris . neale
The English language can be just as confusing at times, and is full of exceptions to rules - people just get used to them. The same can apply to a programming language. I'm not of why PHP's naming conventions are like this, but I can only assume it's to do with the way the language has evolved,

RE: [PHP] Branching to a page

2003-09-15 Thread chris . neale
I don't understand what this achieves? Tell me more... C -Original Message- From: Todd Cary [mailto:[EMAIL PROTECTED] Sent: 15 September 2003 03:30 To: [EMAIL PROTECTED] Subject: [PHP] Branching to a page Back in the earlier days of PHP, pages were not cached so I developed a method

RE: [PHP] Mailing List Programme

2003-09-11 Thread chris . neale
, but it does the trick. Kind regards Chris Neale Somerfield Stores Ltd. -Original Message- From: Sheni R. Meledath [mailto:[EMAIL PROTECTED] Sent: 11 September 2003 13:23 To: PHP Masters Subject: [PHP] Mailing List Programme Hello: I have created an application to read email addresses from

RE: [PHP] Mailing List Programme

2003-09-11 Thread chris . neale
With max_execution_time directive in PHP.ini? I suppose I must have changed that at some point too. I've tried using flush() before but without much luck, and from what I've read in the manual I think it might be because I'm running my setup on a Windows machine with IE6. A problem with

RE: [PHP] storing quotes into a variable

2003-09-11 Thread chris . neale
$perf_mod = 'a href=# onclick=popWindow(\'popup.php\')'; using \ to escape the ' \ escapes special characters. See the manual. Regards Chris -Original Message- From: Doug Parker [mailto:[EMAIL PROTECTED] Sent: 11 September 2003 15:44 To: [EMAIL PROTECTED] Subject: [PHP] storing quotes

[PHP] Memory leak in PHP 5 / ODBC?

2003-09-10 Thread chris . neale
to remain fairly constant throughout execution, but it keeps on rising and not always at a constant rate. Can anyone shed any light on this? Is this a bug in PHP? Kind regards, Chris Neale Contract Developer Somerfield Stores Ltd. If you are not the intended recipient of this e-mail, please