[PHP] retrieving form checkbox values

2003-07-17 Thread caspar kennerdale
I have a form which I want to post multiple values from one function to another using checkboxes. Having one value is simple- the form submits the value $File and is then retrieved in the target function via $_Request['File'] So far so good. Now I want to have multiple values for $File,

RE: [PHP] Moving Files/ Temporary Names

2003-07-15 Thread caspar kennerdale
Thanks for everyones help -Original Message- From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED] Sent: 15 July 2003 10:19 To: 'caspar kennerdale'; Php-General Subject: RE: [PHP] Moving Files/ Temporary Names -Original Message- From: caspar kennerdale [mailto:[EMAIL PROTECTED

[PHP] Moving Files/ Temporary Names

2003-07-14 Thread caspar kennerdale
I was hoping someone might clarify what may seem like a basic point. I looked in the archives but didnt seem to get my answer. I am creating a basic set of functions that will form the back bone of an image gallery and a directory handler. I am trying to crate the function that will allow the

RE: [PHP] Moving Files/ Temporary Names

2003-07-14 Thread caspar kennerdale
I am trying to crate the function that will allow the administrator to Move a selected file to a different folder. I have looked at move_uploaded_file () and it seems that the source file to move needs to actually be the file's temp name. If the file has recently been uploaded then the

RE: Re[2]: [PHP] Moving Files/ Temporary Names

2003-07-14 Thread caspar kennerdale
In your application code ... you can implement a move() function that can either call the unix (mv) or windows (move) commands to move the file to another location (same permission restrictions apply). The thing about move is, its a copy + delete function in one, so you have to be careful about

[PHP] Multiple queries

2002-05-31 Thread Caspar Kennerdale
Sorry If this is the wrong list for this topic, I hope someone can shed some light onto my problem. I am building a php/ Mysql web site for a client which is a picture gallery. The web site has 3 frames (required by the designer so that the whole thing doesnt refresh all the time). Frame 1-

RE: [PHP] PHP editor for windows

2002-04-22 Thread Caspar Kennerdale
www.editplus.com -Original Message- From: Scott St. John [mailto:[EMAIL PROTECTED]] Sent: 22 April 2002 06:26 To: .ben Cc: PHP Subject: Re: [PHP] PHP editor for windows Macromedia/Allaire Home Site 5.0 has PHP color coding, not auto-complete, but you can customize it for auto-complete

RE: [PHP] functions

2002-04-12 Thread Caspar Kennerdale
function firstfunction(){ code; code; code; secondfunction(); } -Original Message- From: Alia Mikati [mailto:[EMAIL PROTECTED]] Sent: 12 April 2002 06:38 To: [EMAIL PROTECTED] Subject: [PHP] functions hi i would like now how can we call a function within another function in php?

[PHP] declaring properties

2002-03-31 Thread caspar kennerdale
Is declaring properties at the beginning of a class imperative or good programming practice. All the documentation I have seen states that you must do this,however if the properties I am setting in each function are listede in the parenthesis i.e function test($var1,$var2){ } then my classes

[PHP] class extends

2002-03-30 Thread caspar kennerdale
can you use class extends feature to refernce more than one class- so a class called contnet could call functions fromone called html and one called db? thanks in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Qmail Question

2002-03-30 Thread caspar kennerdale
after your last two spams I'd be surprised if anyone would be will to answer your questions -Original Message- From: Vins [mailto:[EMAIL PROTECTED]] Sent: 30 March 2002 10:15 To: [EMAIL PROTECTED] Subject: [PHP] Qmail Question I have qmail on my server. I've set up and email address to

RE: [PHP] SPAM

2002-03-30 Thread caspar kennerdale
And a message for bvr and caspe kennerdale. You are obviousely Americans setting the record straight- this is a huge assumption- and I'm not american, and you didnt even spell my name correctly! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] RE: oh no

2002-03-30 Thread caspar kennerdale
and what of it -Original Message- From: Vincent Kruger [mailto:[EMAIL PROTECTED]] Sent: 30 March 2002 14:08 To: caspar kennerdale Subject: oh no you a fucking pommy. god dam

[PHP] classes- getting their slowly but surely I think

2002-03-28 Thread Caspar Kennerdale
just a quick query, hopefully someone can help (sorry for these repeat schooboy questions) re classes- Can you create an instance of a class and use its 'value' within an instance of another instance of the same class? For example I have created two classes- html.class and db.class I am

[PHP] class question 2

2002-03-27 Thread Caspar Kennerdale
Sorry Another question- Do instances of classes remain in 'communication' with each other if declared my different functions in a case switch statement. At present I have an admin.php which is one long swtich statement. Wihin each is a list iof functions which created the elements of the page

[PHP] Class/ DB Question

2002-03-27 Thread Caspar Kennerdale
I'm in the slow process of transferring my contetn management system over to full object oreinted code. I have a function within a class which gets the field name and type information from a mysql table, puts this into an array and then returns a table with a form field for each field. I

[PHP] mysql fetch field

2002-03-17 Thread caspar kennerdale
I seem to be getting unexpected information from a mysql fetch field query. My table has three fields- here is the schema- CREATE TABLE template ( id smallint(6) NOT NULL auto_increment, name mediumtext NOT NULL, multiple tinyint(4) DEFAULT '0' NOT NULL, PRIMARY KEY (id), UNIQUE

RE: [PHP] mysql fetch field

2002-03-17 Thread caspar kennerdale
Actually I've alreasdy worked it out- sorry -Original Message- From: caspar kennerdale [mailto:[EMAIL PROTECTED]] Sent: 17 March 2002 10:31 To: [EMAIL PROTECTED] Subject: [PHP] mysql fetch field I seem to be getting unexpected information from a mysql fetch field query. My table has

[PHP] server load

2002-03-16 Thread caspar kennerdale
Would a 10kb file which has 5kb of comments take longer to process in php than the same file wihout the comments which is 5kb? Or are the comments ignored as far as server load and speed to delivery are concerned? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] server load

2002-03-16 Thread caspar kennerdale
So you could have as much commented text without any detriment to the pages performance? great -Original Message- From: Andrey Hristov [mailto:[EMAIL PROTECTED]] Sent: 16 March 2002 17:17 To: caspar kennerdale Cc: [EMAIL PROTECTED] Subject: Re: [PHP] server load Flex - the tools

RE: [PHP] server load

2002-03-16 Thread caspar kennerdale
version which goes live and a commented version which I compile the html fromand also distribute. Does anyone here have experience with phpdoc? -Original Message- From: Andrey Hristov [mailto:[EMAIL PROTECTED]] Sent: 16 March 2002 17:29 To: caspar kennerdale Cc: [EMAIL PROTECTED] Subject: Re

[PHP] array within an array

2002-03-15 Thread Caspar Kennerdale
I have an sql query which calls * rows from a table. Each row is an array of table field values. This is how I understand the heirachy $table_row_array[0] = $field_row_array[] $table_row_array[1] = $field_row_array[] $table_row_array[2] = $field_row_array[] Now $table_row_array is being drawn

RE: [PHP] array within an array

2002-03-15 Thread Caspar Kennerdale
access multi-dimensional arrays. Niklas -Original Message- From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]] Sent: 15. maaliskuuta 2002 15:18 To: [EMAIL PROTECTED] Subject: [PHP] array within an array I have an sql query which calls * rows from a table. Each row is an array of table field

RE: [PHP] array within an array (one more query)

2002-03-15 Thread Caspar Kennerdale
can you therefore have $array[0][9][2][3] if you had an array within an array within an array within an array. (not sure i'd want to, but you never know) $array[0][1] is how you access multi-dimensional arrays. Niklas -Original Message- From: Caspar Kennerdale [mailto:[EMAIL

[PHP] Update File Woe (Maybe OT!)

2002-03-14 Thread Caspar Kennerdale
This is not truly a php programming question but a problem I have when programming php on which I was hoping someone would shed some light. When I write php code I generally upload directly to a server via ftp. As I am on a pretty fast adsl line I have never seen toi the need to have a sever

RE: [PHP] Opening new browser window.

2002-03-13 Thread Caspar Kennerdale
embed the javascript within the php using echo or print -Original Message- From: Way, Paul [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 16:26 To: '[EMAIL PROTECTED]' Subject: [PHP] Opening new browser window. Is there anyway that I can open a new browser window in php,

[PHP] accessing data from classes

2002-03-12 Thread caspar kennerdale
I am just getting my head around classes, so forgive me if this is a schoolboy error! In order to learn I am re-writing my content management system and am in the process of writing an HTML.class and a MYSQL.class. so far so good. I spawn new instances of a table for example, sending

[PHP] cron test

2002-01-01 Thread caspar kennerdale
-Original Message- Sorry this is offtopic I have set up a cron job and this is the message I havereceived Your terminal lacks the ability to clear the screen or position the cursor. any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] mail attachment query

2001-12-10 Thread caspar kennerdale
so i have a mail script which allows people to send attachments. This is activated by an htmlform, which allows users to select the file from their hard drive and post to the recipient. The problem I have is this- The file attachment is sent via email as a .dat file. If I specify the name of

[PHP] folver view options

2001-12-05 Thread Caspar Kennerdale
I have just installed mandrake something that is annoying me with KDE is that the default view within the file manager is with icons. Is is possible to have the tree or detailed view as the default. I briefly looked at the prefences and could find it anywhere Thanks -- PHP General Mailing

[PHP] fresh install woes

2001-11-30 Thread Caspar Kennerdale
I've insatlled mandrake 8.1 from the ISO's I downloaded frrom their site. Everything seems fine, but when I try to execute any software ie startx or even pico from the command line then I get a cannot be found message As I navigate through the directoires it seems that they have not been

[PHP] email info

2001-11-26 Thread Caspar Kennerdale
can anyone recommend a site or discussion list relating to email I have a form to mail script which sends attachments - it all works if I have my private email address as the recipient, however if I use my work email address the mail comes out with no attachment but displays gobbledigook like-

RE: [PHP] Flash programming

2001-11-22 Thread Caspar Kennerdale
I was under the impression you could only edit flash within proprietary products like flash itself, livemotion especially if the file has already been exported to swf -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 22, 2001 02:32 To: [EMAIL

[PHP] php- cgi

2001-11-21 Thread Caspar Kennerdale
I have a script that when I execute via a browser retrieves information. Ultimately I want this automated. There has been mention on these lists about compliling php as cgi, which I think may help This also may help out with some timeout issues that arise. can anyone point me in the right

RE: [PHP] php- cgi

2001-11-21 Thread Caspar Kennerdale
issue thanks -Original Message- From: Brian Clark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 21, 2001 16:04 To: PHP is not a drug. Subject: Re: [PHP] php- cgi Hi Caspar, @ 10:54:13 AM on 11/21/01, Caspar Kennerdale wrote: I have a script that when I execute via a browser

RE: [PHP] php- cgi

2001-11-21 Thread Caspar Kennerdale
Thanks I'll give it a go -Original Message- From: Brian Clark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 21, 2001 16:26 To: PHP is not a drug. Subject: Re: [PHP] php- cgi Hi Caspar, @ 11:11:25 AM on 11/21/01, Caspar Kennerdale wrote: yes ideally with cron- I know nothing

[PHP] timing

2001-11-16 Thread Caspar Kennerdale
I have a script that when is executed parses and html file and writes the contents to a text file. I need to then read this text file from another apllication Is there a way of timing this operation, so that my other app does not try to access the file before being written? -- PHP General

RE: [PHP] timing

2001-11-16 Thread Caspar Kennerdale
. Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]] Sent: Friday, November 16, 2001 11:00 AM To: Php-General Subject: [PHP] timing I have a script that when is executed parses and html file and writes the contents

[PHP] quick friday query

2001-11-16 Thread Caspar Kennerdale
I am writing files to my server using $fp = fopen(myfile.txt, w); this all works. However in the php manual it says that by using the w switch that php will create the file if it doesn exist However this does not seem to work I can only write to a file that already exists and has CHMOD 777

RE: [PHP] quick friday query

2001-11-16 Thread caspar kennerdale
ahh write permission the folder- duh- not thinkingtoday thank alot -Original Message- From: R'twick Niceorgaw [mailto:[EMAIL PROTECTED]] Sent: 16 November 2001 18:14 To: Caspar Kennerdale; Php-General Subject: Re: [PHP] quick friday query check under what user Apache is running

[PHP] cron not allowed

2001-11-13 Thread Caspar Kennerdale
I have a php script I'd like to run at regular intervals, but my isp will not set a cron job for it but will for a perl script Is there anyway round tis, or does anyone one know of a perl script that might then execute the php script if I can get that to be automated? thanks -- PHP General

RE: [PHP] cron not allowed

2001-11-13 Thread Caspar Kennerdale
thanks for the ideas -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 15:23 To: Jon Haworth; [EMAIL PROTECTED] Subject: RE: [PHP] cron not allowed thanks jonwas more of a 'how are you going to' rather than 'how is it possible' :-)

RE: [PHP] Attachments again

2001-11-12 Thread Caspar Kennerdale
On the attachment subject, does anyone know how to specify multiple mime types? I have my attachment script, however people may be using it to send gifs, swfs, or text files I am specifyinmg the mime types like this $type = image/gif; $header .= Content-Type: $type; wuld I do something