RE: [PHP]{so far OT it boggles} BTML 2.0 released!!!

2003-11-07 Thread Craig Lonsbury
> > Personally, these emails don't help me at all in my search > for help, or > helping people with php problems. Could I suggest that you guys maybe > put a forum up for anybody who wants to bitch about this > topic? OR maybe > someone could setup a php-arguments list for topics such as these! >

RE: [PHP] Re: High bandwidth application tips

2003-11-07 Thread Craig Lonsbury
another small tweak is to limit or remove html comments. this doesn't directly speed up code, but makes for less strain on your outbound pipe (good for you) and smaller downloads for the users (think dial-up). i usually try to put my comments in the php code. this reduces the bytes sent, maintain

RE: [PHP] dictionary

2003-11-05 Thread Craig Lonsbury
are you using windows or *nix? There is a good dictionary (I think it is called dict) built into most *nix distros,and have yet to find a good dictionary for windows. maybe someone else knows a good one =) Craig > -Original Message- > From: pete M [mailto:[EMAIL PROTECTED] > Sent: Novem

RE: [PHP] How can i print out the files in a directory?

2003-10-17 Thread Craig Lonsbury
This has been working for me... just pass the function the path to the directory you want the listing for. function getDirFiles($dirPath){ if ($handle = opendir($dirPath)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { $fil

[PHP] nested require_once

2003-10-16 Thread Craig Lonsbury
Hi All, I just wanted to confirm that require_once works as I think it should, but the manual isn't too clear about nesting scripts (or i'm just thick =). What I think is/should be happening is that dbLib.ink is only included in index.php once, but when I run helperLib.php on its own, it has dbLib

RE: [PHP] Credit Card Validation

2003-10-08 Thread Craig Lonsbury
this is a good explanation of the validation you can do. http://www.beachnet.com/~hstiles/cardtype.html if you are trying to validate client-side you'll need javascript, which is why there may not be anything on phpbuilder i have no idea about the bank side, but post any info you find out back he

RE: [PHP] why does this script mysteriously die?

2003-10-03 Thread Craig Lonsbury
it's not a time limit or safe mode issue, the script is currently running, and has been for about 10 minutes. it's not a fast script =( Craig >Is safe mode on? > >Craig Lonsbury wrote: >> Hi All, >> I have a script that takes a directory of user uploaded f

[PHP] why does this script mysteriously die?

2003-10-03 Thread Craig Lonsbury
Hi All, I have a script that takes a directory of user uploaded files and resizes them to the required sizes. I was given ~750 test pix to run through, and my solution only sorta works. The problem is that it won't get through the whole batch without dying. It will process anywhere between 13 to 35

RE: [PHP] Help with treeview

2003-10-02 Thread Craig Lonsbury
This should get you started... http://www.sitepoint.com/article/1105/1 it is a great article assuming that you will be using a db to store your data. hth, Craig -Original Message- From: Stephen [mailto:[EMAIL PROTECTED] Sent: October 1, 2003 11:19 PM To: [EMAIL PROTECTED] Subject: [PHP

RE: [PHP] Flash Chat

2003-09-18 Thread Craig Lonsbury
> -Original Message- > From: Dan J. Rychlik [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 18, 2003 12:22 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Flash Chat > > > Hello, > > I was wondering if my solution would work in theory in providing > a Flash chat application. > > I would u

RE: [PHP] Feeling a bit brain dead, please help in maths: averages

2003-09-17 Thread Craig Lonsbury
> -Original Message- > From: Ryan A [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 17, 2003 3:21 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: [PHP] Feeling a bit brain dead, please help in maths: > averages > > > Hey, > Thanks for replying. > > Actually I made that e

RE: [PHP] Feeling a bit brain dead, please help in maths: averages

2003-09-17 Thread Craig Lonsbury
off the top of my head: SELECT AVG(age), SUM(salTotal) FROM blah WHERE section = 3 i'm not sure if you can use the 2 functions in the same query, you might have to break it into 2 queries. Craig -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 200

RE: [PHP] Whats wrong with my code?

2003-09-16 Thread Craig Lonsbury
no semicolon after "include ($include)" hope that helps, Craig -Original Message- From: Stevie D Peele [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 3:11 PM To: [EMAIL PROTECTED] Subject: [PHP] Whats wrong with my code? Can someone spot what Is wrong with my code?