[PHP] OT - HTML Terminal ?

2004-09-26 Thread Dave Restall - System Administrator,,,
Hi, this is severely off topic so please feel free to ignore it :-) I have an intranet application that currently is accessed using a browser, no problems there, however I have been asked if I can get rid of the browser so that the user's are not encouraged to surf so readily. I initially thought

Re: RE: [PHP] convert degrees to heading

2004-09-15 Thread Dave Restall - System Administrator,,,
Hi Trevor, > Very nice solution, Dave. I like simple, elegant and effective > solutions like this. I was wracking my brain yesterday to come up with > something like this, but my brain wasn't working. Hah. Good job! Thanks for the compliments - my head is now a bit bigger :-) I thought 0 deg

Re: [PHP] convert degrees to heading

2004-09-14 Thread Dave Restall - System Administrator,,,
Hi, > Alternatively, try :- > > $Compass = array('West', 'North Westerly', 'North', 'North Easterly', > 'East', 'South Easterly', 'South', > 'South Westerly'); > > print $Compass[round($Degrees / 45)] . "\n"; > > This can be expanded easily by adding

Re: [PHP] convert degrees to heading

2004-09-14 Thread Dave Restall - System Administrator,,,
Hi, Alternatively, try :- $Compass = array('West', 'North Westerly', 'North', 'North Easterly', 'East', 'South Easterly', 'South', 'South Westerly'); print $Compass[round($Degrees / 45)] . "\n"; This can be expanded easily by adding 'North North W

Re: [PHP] Is a PECL a black whole?

2004-09-03 Thread Dave Restall - System Administrator,,,
> It took me a while to find an explanation of what a PECL is. I kept reading > comments about things being moved to a PECL but I saw nothing about what is > in a PECL or how to get anything out of a (the?) PECL. As far as I knew, > there is a danger of all of PHP being in a PECL. > > I could

[PHP] Mime type and PECL::Fileinfo.

2004-08-29 Thread Dave Restall - System Administrator,,,
Hi, PHP 4.3.8, Apache 1.3.31, Debian/GNU Linux Is anybody using PECL extensions ? I want to let people upload data to a site I'm building and want to avoid using mime_content_type because from the manual :- "This extension has been deprecated as the PECL extension fileinfo provides the same fun

Re: [PHP] looking for php talent...

2004-03-05 Thread Dave Restall - System Administrator,,,
Hi, > we're looking for some PHP development talent. however, we don't want to > post here if this is not the right group/list. please let us know if it > is/isn't appropriate to post our requirements. if it is, we'll go ahead and > post what we're looking for. There seem to be a few lists availa

[PHP] Do not use Apache 2.0 and PHP in a production environment neither on Unix nor on Windows.

2003-10-02 Thread Dave Restall - System Administrator
Hi, not sure if this is the right place to ask but does anybody have any ideas how long it will be before PHP/Apache 2 is considered stable enough to be used in a production environment ?. I set up a test box with them both on nearly a year ago and the online documentation still cautions against

RE: [PHP] If you ever had a Vic20

2003-08-15 Thread Dave Restall - System Administrator
Hi, > $found =3D 0; > while ($mydata =3D mysql_fetch_object($news)) > { > if ($mydata->StudentId =3D=3D $StudentId) > {$found =3D 1; break;} > } > > if ($found=3D=3D1){do this}else{do that} Why not re-oganise your SQL statement s

[PHP] Is there an RTFM for 'use strict' ?

2003-06-23 Thread Dave Restall - System Administrator
Hi, Done a lot of Perl & PHP coding over the years and one thing I _really_ liked about Perl is its 'use strict;' directive. For those of you not familiar with Perl, this made the script die if you don't (among other things) declare your variables before using them. Once the fingers are flying,