RE: [PHP] About MySQL Tables

2007-08-06 Thread Chris Aitken
roductcode You could do it via 2 selects (ie, the first query simply lists all items in PRODUCT, then within this loop, a second query lists all entries in IMAGES which have the productcode, with a "limit 1" in the query. Personally, I'd go with the Group By option, and be clever

RE: [PHP] Re: Which PHP-Editor to use?

2007-08-02 Thread Chris Aitken
I know I've been away from this list for years and have missed the several reincarnations of this thread over time, but has anyone ever used a kickass little program called Notepad2? I discovered this about 2 years ago and it's the most brilliant little application I've ever found. Sure, it doesn'

[PHP] Re: Pirate PHP books online? - ENOUGH ALREADY

2007-07-30 Thread Chris Aitken
flame button). Let it die already. There's more important things to waste bandwidth on... like discussing ... I dunno who's hotter... Oprah Winfrey or Roseanne? Regards Chris Aitken The Web Hub Designer and Programmer Phone : 02 4648 0808 Mobile

RE: [PHP] Malformed Email Date Header

2007-07-26 Thread Chris Aitken
0 Date: Wed, 04 Jul 2007 10:11:39 ?1000 -- Note the above how it puts the correct +1000 on the internal header, but the one that becomes more of an external (or visible) header, has the ?1000 Regards Chris Aitken The Web Hub Designer and Programmer Pho

RE: [PHP] Hide the real URL

2007-07-26 Thread Chris Aitken
n KNOW they have a printscreen button just like most typical users don't know there is ANOTHER kind of browser :) Regards Chris Aitken The Web Hub Designer and Programmer Phone : 02 4648 0808 Mobile : 0411 132 075 --

RE: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Chris Aitken
;header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past >?> > But wouldn't that make every image on the page be uncached and reloaded each time? Not very efficient if the shell of the site keeps getting loaded if only 1 or 2 images need to be forced. Re

RE: [PHP] Re: Malformed Email Date Header

2007-07-26 Thread Chris Aitken
rrect timestamp) and the *nix mail filter I came across reported it as being a bad header. Regards Chris Aitken The Web Hub Designer and Programmer Phone : 02 4648 0808 Mobile : 0411 132 075 - Making The Web Work Th

RE: [PHP] Is it possible to stop an image from being cached?

2007-07-26 Thread Chris Aitken
the U variable pretty much guarantees a random string each time its loaded. image.jpg?".date("U")." Regards Chris Aitken The Web Hub Designer and Programmer Phone : 02 4648 0808 Mobile : 0411 132 075 -

[PHP] Malformed Email Date Header

2007-07-25 Thread Chris Aitken
this particular server. I have other hosting accounts on other windows and linux PHP boxes which do not have this issue. Just one this one server. Regards Chris Aitken The Web Hub Designer and Programmer Phone : 02 4648 0808 Mobile

[PHP] Mozilla/Opera issue

2007-02-20 Thread Chris Aitken
mething wasn't valid. Any help will be appreciated. Regards Chris Aitken The Web Hub Designer and Programmer Phone : 02 4648 0808 Mobile : 0411 132 075 - Making The Web Work The Web Hub <http://www.thewebhub.com.au/>

[PHP] Apache2 and PHP4.2.3 - errors

2002-10-02 Thread Chris Aitken
Hi all, I have recently upgraded to apache2 on my FreeBSD 4.6 box, and the upgrade worked well, the daemon was running and serving pages etc. So I installed the latest PHP build in my ports tree (4.2.3) and it compiled no problems, but when I added the required lines into my httpd.conf to make

[PHP] Compiling PHP with GD2.0 ?

2002-01-07 Thread Chris Aitken
Hi, I have just upgraded my system (FreeBSD4.4 box with Apache/PHP/MySQL) and I want to use GD2.0.1 with PHP. I have installed GD 2.0.1 from /usr/ports onto the system so the package is actually there, but I have no idea how to compile GD2 ability into PHP. If anyone can lend some assistance

[PHP] textarea, carriage returns and formatting

2001-11-20 Thread Chris Aitken
Hi, Something ive been trying to find out but cant seem to get the wording right to find the answers in the archives. What I have is a mysql database, and in that DB I have a field which is just a 'text' field. What I want to be able to do is write whatever text is typed from the webforms textar

[PHP] GD 2.0

2001-10-18 Thread Chris Aitken
cannot seem to get to the actual GD site so im not sure whats up there, but has anyone else installed GD 2 and if so, any suggestions on whats the best way to go about it would be appreciated. Cheers Chris -- Chris Aitken - Administration/Database Designer - IDEAL Internet email: [EMAIL

[PHP] ereg checking if its only numbers

2001-10-04 Thread Chris Aitken
"123456abc" how would I check either string with an IF statement and make it continue on string 1 (ie, all numbers) and error on string 2 (not all numbers). Any suggestions ? Thanks Chris -- Chris Aitken - Administration/Database Designer - IDEAL Internet email: [EMAIL PROT

[PHP] Getting an Email into a PHP/pl script

2001-10-04 Thread Chris Aitken
perl script). Once I have the body of the email as a variable, I can do all my parsing and extracting etc to do with it as I need, but im baffled on where to start looking to get this done. Any help would be greatly appreciated. Cheers Chris Chris Aitken - Administration/Database

[PHP] Spawning an Expect Script

2001-09-23 Thread Chris Aitken
ect script back to the browser when its called. Any suggestions ? Thanks Chris -- Chris Aitken - Administration/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2

[PHP] script waiting for an output

2001-09-09 Thread Chris Aitken
know how to go about waiting for some form of output in FreeBSD, when it happens fire off a script. I dont know if what im talking about makes sense, or is even doable, but if anyone has any ideas or suggestions it'd be appreciated. Thanks Chris -- Chris Aitken - Administratio

Re: [PHP] newbie : how to access functions in seperate files???

2001-09-02 Thread Chris Aitken
seems synonymous with a function not being in an included file anywhere, or having a typo in the function name defined. Chris -- Chris Aitken - Administration/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax

[PHP] PHP / MySQL Hosting Charges

2001-08-23 Thread Chris Aitken
price to add PHP and MySQL access to his current www/cgi-bin/logs website. I wont mention the prices hes been quoted yet because I want to see some uninfluenced posts. Cheers in advance. Chris -- Chris Aitken - Administration/Database Designer - IDEAL Internet email: [EMAIL PROTECTED

[PHP] Sorting IP Address Data

2001-08-22 Thread Chris Aitken
? Thanks Chris -- Chris Aitken - Administration/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 __-__ *** Big Brother *** It just shows that the dull will

[PHP] Strings with Spaces in URLS

2001-08-21 Thread Chris Aitken
header("Location: http://www.blah.com/foo.php?search=$search";); then it brings it up properly in the browser. Any suggestions ? Cheers Chris -- Chris Aitken - Administration/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61

[PHP] Directory Listing in an Array

2001-08-20 Thread Chris Aitken
Chris -- Chris Aitken - Administration/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 __-__ *** Big Brother *** It just shows that the dull will rule the

[PHP] Imlib Errors Still

2001-08-15 Thread Chris Aitken
imlib2 into PHP. Im trying the way the (very small) INSTALL file says that comes with php_imlib but doesnt seem to want to make it work. Any help would be greatly appreciated. Chris -- Chris Aitken - Administration/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone

Re: [PHP] Compiling with Imlib2

2001-08-15 Thread Chris Aitken
or the compile of php. Chris -- Chris Aitken - Administration/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 __-__ *** Big Brother *** It just shows th

[PHP] Compiling with Imlib2

2001-08-15 Thread Chris Aitken
as the path to Imlib2 here. Im installing it on a FreeBSD 4.3 box, with apache 1.3.20 can anyone point me in the right direction ? Thanks Chris -- Chris Aitken - Administration/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890

[PHP] foreach and multiple arrays

2001-07-29 Thread Chris Aitken
run) $title="Banana"; $value="Yellow"; $size1="10"; $size2="20"; etc. The function may have any number of entries (1 onwards) etc. I have played with foreach() and other variants, but I just cant seem to find the right combo of code to get it working. A

[PHP] Weekly Separation

2001-07-18 Thread Chris Aitken
ideas they might be able to throw at me so I can make this a more simple method. Thanks Chris -- Chris Aitken - Administration/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2

[PHP] PHP based statistics/Graphs

2001-07-17 Thread Chris Aitken
popularity, monthly income etc etc. Just doing some research and figured you guys are the best place to get some info. Cheers Chris -- Chris Aitken - Administration/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890

[PHP] .htaccess logout sequence

2001-06-20 Thread Chris Aitken
see if anyone else has had any success (without changing to a different method of auth :) Cheers Chris Chris Aitken - Webmaster/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890

Re: [PHP] Multipe Tables, Single Query Problem

2001-06-19 Thread Chris Aitken
At 01:57 PM 6/06/2001, you wrote: >Hi all, > >I have three tables in my (mysql) database: > >videos - ID, title, description, etc.. >links - ID, videoID, actorID >actors - ID, name, dateofbirth, gender, etc... > >what i need to do is return a particular video and all it's staring actors >with just

[PHP] Funky PHP Stuff

2001-05-22 Thread Chris Aitken
which tells the time in plain engligh (It's almost half past eight) etc. But im looking for some other bizarre things which really dont do much except entertain and make people wonder "but why ?" :) Cheers Chris -- Chris Aitken - Webmaster/Database Designer - IDEAL

[PHP] Something like, but not Webexplorer

2001-05-09 Thread Chris Aitken
webexplorer that it isnt a viable option. Any suggestions ? Chris -- Chris Aitken - Webmaster/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 Unix -- because a

[PHP] PHP based Reminder System

2001-05-06 Thread Chris Aitken
system has already been written doing this. Cheers Chris -- Chris Aitken - Webmaster/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 Unix -- because a computer

[PHP] Keyboard Hotkeys

2001-05-03 Thread Chris Aitken
, or simulate a click to a link which is on the page. Im not confident of a "yes" response, but I figured I would ask just incase. Cheers Chris -- Chris Aitken - Webmaster/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2

RE: [PHP] redirection to another page function

2001-04-22 Thread Chris Aitken
here at work and I know everyone has the same system/software/setup or b) where its only an enhancement and it wont affect the usability of the system if its not there. Ill always try and use PHP and server side solutions before resorting to client side solutions Chris. -- Chris Ait

RE: [PHP] redirection to another page function

2001-04-22 Thread Chris Aitken
tem will work, but the header() function works better. Surely its better to write your code trying not to exclude any user if at all possible. Chris -- Chris Aitken - Webmaster/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 46

[PHP] Incrementing a String Name

2001-04-22 Thread Chris Aitken
Hi Just a quick puzzle I cant seem to get around at the moment... Im trying to create a loop that increments the string name by a digit. For example, if I had the following 4 strings submitted to a script. $name1 $name2 $name3 $name4 What I want to do is create a while loop that will prin

[PHP] Lynx, Cron and PHP

2001-04-19 Thread Chris Aitken
need to add to my cron entry, or do I need to force some sort of death via the php script ? Thanks Chris -- Chris Aitken - Webmaster/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890

[PHP] Weird Ordering & Queries

2001-04-18 Thread Chris Aitken
so much easier if I could do it. Thanks Chris -- Chris Aitken - Webmaster/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 Unix -- because a computer's a terrib

[PHP] Importing Data from Text File

2001-04-17 Thread Chris Aitken
each line into a table (Mysql DB) that had 6 fields (5 for each of the above plus an autoincremented ID field stock_id stock_name stock_desc stock_length stock_qty stock_price Any suggestions and direction pointing will be greatly appreciated. -- Chris Aitken - Webmaster/Database

Re: [PHP] Calling Functions without all the arguments

2001-04-13 Thread Chris Aitken
On Fri, 13 Apr 2001, Rasmus Lerdorf wrote: >If a function has not been defined to take optional arguments, then you >*must* provide these arguments when you call the function. The fact that >previous versions of PHP incorrectly let you do this was at best an >undocumented misfeature, but more li

Re: [PHP] Calling Functions without all the arguments

2001-04-13 Thread Chris Aitken
On Fri, 13 Apr 2001, Hardy Merrill wrote: >I found the same problem - when we upgraded to PHP4, function calls >that used to work and NOT provide all the parameters, started failing. > >The way I fixed it was to give each parameter a default value *IN* >the function definition, like: > >function

[PHP] Calling Functions without all the arguments

2001-04-13 Thread Chris Aitken
On Fri, 13 Apr 2001, Chris Aitken wrote: >--- > >Warning: Missing argument 2 for stripe() in /location/to/included/file.php on line 257 >Warning: Missing argument 3 for stripe() in /location/to/included/file.php

[PHP] Weird Messages upon install upgrade

2001-04-13 Thread Chris Aitken
Hi All, Ive just run into some bizarre problem. I upgraded to a more recent version of PHP and have run into some bizarre problem. We were running version 4.0bsomething on a FreeBSD box with Apache and ive just installed 4.0.3pl1 and ive managed to get pretty much everything working, except for

Re: [PHP] page counter

2001-04-09 Thread Chris Aitken
problem, but a regular user may not have this ability to change it. Chris -- Chris Aitken - Webmaster/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 Unix -- because

Re: [PHP] Curious

2001-03-27 Thread Chris Aitken
ings like ALT tags, I use \" because spaces are required in the value of the ALT tag. Chris -- Chris Aitken - Webmaster/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 --

Re: [PHP] parse error on line after last one???

2001-02-27 Thread Chris Aitken
At 06:31 PM 27/02/2001, Jaxon wrote: >Hi all, > >Can anyone tell me why I¹m getting an unhelpful error when trying to pull up >a file? > >The index.php I¹m calling is including a functions file ­ functions.inc.php > >I¹m getting a parse error on line 144 ­ but functions.inc.php only has 143 >lines

RE: [PHP] Forcing htaccess login again

2001-02-26 Thread Chris Aitken
At 12:26 AM 27/02/2001, Sander Pilon wrote: >The request for a password is usually generated by a 401 header. Just do >this - > >Header("WWW-authenticate: basic realm=\"Some realm\""); >Header("HTTP/1.1 401 Unauthorized"); >exit; > >That should pop up a box. Just make sure you check the values of

[PHP] Forcing htaccess login again

2001-02-26 Thread Chris Aitken
Now im even getting more confused. Ive been doing some more research into the subject, and cant seem to find any answers. All of the PHP documentation about headers() talks about auth via PHP, but doesnt mention anything about htaccess as the auth system. On my main.php screen, this is where t

[PHP] Logging out a user

2001-02-25 Thread Chris Aitken
e to start looking cause I have a feeling im off the track on what im searching for in TFM and in TFA. Chris -- Chris Aitken - Webmaster/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2

[PHP] Mathematical prob

2001-02-12 Thread Chris Aitken
Okay, im a little stumped. I have been asked to use a formula which calculates Monthly Repayments on a mortgage loan. The formula I have been given is M = P * ( J / (1 - (1 + J) ** -N)) My problem is, the last part. It explains it in english as "then take that to the -N (minus N) power" My p

Re: [PHP] E-mail valid

2001-02-01 Thread Chris Aitken
-- Chris Aitken - Webmaster/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 Unix -- because a computer's a terrible thing to waste! -- PHP General Mailing

[PHP] Directory Listing with PHP

2001-02-01 Thread Chris Aitken
I just relieving myself into the wind ? Thanks Chris -- Chris Aitken - Webmaster/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 Unix -- because a computer

[PHP] Naughty Word Catcher

2001-01-30 Thread Chris Aitken
Hi all, Ive just been asked whether I can do the following task. When a block of text is submitted via a web form, for it to be checked for offensive words, and rejected if there is. So I put my brain hard to work and came up with a possibly solution. I know this method should work but im

[PHP] Ultimate Editor

2001-01-18 Thread Chris Aitken
At 06:47 PM 18/01/2001, you wrote: >What I'd like an editor to do for me is help out with how the page looks. >One I set up a page that looks half-way decent - even if I use stock >templates or style sheets - I can always plop the code in later by hand and >that's no biggie. It's just that initia

[PHP] Extracting Data from a URL output

2001-01-17 Thread Chris Aitken
I have a bit of a question which ive tried to look into, but I cant seem to find the right commands to check into or what the best method of attack it. Basically, I want to grab a URLs data, make the data a string (which im doing with fopen and fread). But now I have the entire html as a strin

Re: [PHP] < Levels of Access >

2001-01-17 Thread Chris Aitken
At 10:36 PM 17/01/2001, you wrote: >Hey Guys, > >I wonder if anyone can shed light... >I have a system that internal users access - > >I have separated access levels into 1, 2, 3 etc. So if you have access 1 >you can view certain things - If you are 2 then you can view more or other >things. > >H

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-16 Thread Chris Aitken
At 09:06 PM 16/01/2001, Kath wrote: >Hey, > >To get Frontpage to recognize PHP files (at least to let you edit them), do >the following (I'm assuming FP2000): > >1 - Open FP >2 - Click on Tools >3 - Click on Options >4 - Click on the Configure Editors tab >5 - Hit Add >6 - Make file type "php" >7