[PHP-DB] Renaming a file uploaded by a form.

2003-01-01 Thread [EMAIL PROTECTED]
I have a script that uploads form data to a MySQL server then emails the
form data to alert people that an upload occurred.

I am having trouble getting the form to upload my file with the actual
filename.  The filename seems to be created by the PHP machine (wild guess)
but it looks like this:

/var/tmp//phptkYxkV

Any ideas on how to get it to look like: filename.doc  would be greatly
appreciated.

/Tim


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] Renaming a file uploaded by a form.

2003-01-01 Thread Jason Wong
On Thursday 02 January 2003 07:25, [EMAIL PROTECTED] wrote:
 I have a script that uploads form data to a MySQL server then emails the
 form data to alert people that an upload occurred.

 I am having trouble getting the form to upload my file with the actual
 filename.  The filename seems to be created by the PHP machine (wild guess)
 but it looks like this:

 /var/tmp//phptkYxkV

 Any ideas on how to get it to look like: filename.doc  would be greatly
 appreciated.

RTFM section on Handling  file uploads, in your code print_r($_FILES).

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *


/*
Plumber mistook routing panel for decorative wall fixture
*/


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] Renaming a file uploaded by a form.

2003-01-01 Thread Jeffrey_N_Dyke

copy($_FILES['userfile']['tmp_name'],/real/path/to/$_FILES['userfile']
['name']);

what you really want is...
http://www.php.net/manual/en/features.file-upload.php

hth
jeff


   
 
Info@Best-IT 
 
infoTo: [EMAIL PROTECTED]
 
 cc:   
 
01/01/2003   Subject: [PHP-DB] Renaming a file 
uploaded by a form.  
06:25 PM   
 
   
 
   
 




I have a script that uploads form data to a MySQL server then emails the
form data to alert people that an upload occurred.

I am having trouble getting the form to upload my file with the actual
filename.  The filename seems to be created by the PHP machine (wild guess)
but it looks like this:

/var/tmp//phptkYxkV

Any ideas on how to get it to look like: filename.doc  would be greatly
appreciated.

/Tim


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DB] Drawing chart

2003-01-01 Thread Matthias Steiner
I'd like to have PHP drawing a chart based on temperature data in a mySQL
database.

Before I start inventing the wheel: does anybody know about finished code
which produces a *.png-Chart from a table of values in a database?

Gruss,
Matthias


--
Steiner Matthias
Student of Telematics
University of Technology, Graz, Austria
http://web.utanet.at/steiner/




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] Drawing chart

2003-01-01 Thread Jason Wong
On Thursday 02 January 2003 07:27, Matthias Steiner wrote:
 I'd like to have PHP drawing a chart based on temperature data in a mySQL
 database.

 Before I start inventing the wheel: does anybody know about finished code
 which produces a *.png-Chart from a table of values in a database?

google  jpgraph

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *


/*
The longest part of the journey is said to be the passing of the gate.
-- Marcus Terentius Varro
*/


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] Drawing chart

2003-01-01 Thread John Coder
On Wed, 2003-01-01 at 18:27, Matthias Steiner wrote:
 I'd like to have PHP drawing a chart based on temperature data in a mySQL
 database.
 
 Before I start inventing the wheel: does anybody know about finished code
 which produces a *.png-Chart from a table of values in a database?

I've already reinvented the wheel and it's at 

http://www.php.net/manual/en/function.imagefilledarc.php 
in the user comment section.

John Coder


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] Drawing chart

2003-01-01 Thread John Coder
On Wed, 2003-01-01 at 21:37, John Coder wrote:
 On Wed, 2003-01-01 at 18:27, Matthias Steiner wrote:
  I'd like to have PHP drawing a chart based on temperature data in a mySQL
  database.
  
  Before I start inventing the wheel: does anybody know about finished code
  which produces a *.png-Chart from a table of values in a database?
 
 I've already reinvented the wheel and it's at 
 
 http://www.php.net/manual/en/function.imagefilledarc.php 
 in the user comment section.
 
 John Coder

 This is a for a pie chart which may or may not help.

John Coder


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] Drawing chart

2003-01-01 Thread Cal Evans
check 
www.zend.com 
www.freshmeat.net
http://www.planetsourcecode.com/vb/default.asp?lngWId=8

to start with.

*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
 

-Original Message-
From: Matthias Steiner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 01, 2003 5:28 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Drawing chart


I'd like to have PHP drawing a chart based on temperature data in a mySQL
database.

Before I start inventing the wheel: does anybody know about finished code
which produces a *.png-Chart from a table of values in a database?

Gruss,
Matthias


--
Steiner Matthias
Student of Telematics
University of Technology, Graz, Austria
http://web.utanet.at/steiner/




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php