Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to save a file using php

Status
Not open for further replies.

pichi

Programmer
Nov 12, 2000
156
EC
hi everybody i am new in php, i want to create a page so my users can save their files, like a documents database, where they can save and write some things about it, like title, description, date, etc, so how can i allow my users to do that, (i use postgreSQL)
thanks in advance

Pichi
 
Create either a script or a static HTML that creates a POST-method form on the page. Add an input of type "file" and some additional comment inputs of type text.

Then create a script which writes the file to the filesystem and enters the accompanying information into the tables. Have your form submit to that script.


Take a look at file uploads in the PHP manual, paying attention to the example code:
Take a look at PHP's PostgreSQL family of functions: .
Want the best answers? Ask the best questions: TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top