php-windows Digest 16 Apr 2008 14:45:42 -0000 Issue 3457

Topics (messages 28854 through 28858):

Re: Upload Files!
        28854 by: Jarrett Meyer

security for hersh site
        28855 by: Dale Hersowitz

windows iis 7 questions from hersh corporation
        28856 by: Dale Hersowitz

Window Server New Version Hersh Corporation
        28857 by: Dale Hersowitz

php and webservices
        28858 by: Juan Ignacio Borda

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message --- Files and all associated properties are saved in the $_FILES[] variable. From here, you can get the file name, file size, etc.

I would recommend that you come up with your own name for the file. My code may not be right, but it will be close.

$LocalFilePath = /path/to/local/files/
$LocalFileName = md5($_FILES[<formfield>]["name"]);

// perform an action to save the file locally.

Assuming that you have the user name from the session data,

$Sql = "insert into UserFiles
        (User, Filename, Extension, Date)
        values
        ($_SESSION["user"]
        ,$LocalFileName
        ,$_FILE[<formfield>]["type"]
        ,time())";

Now you've got a database of all files saved by user.

See http://us3.php.net/features.file-upload for more info about the $_FILES variable.

Jarrett M

Matthew Gonzales wrote:
Hello,

I am wondering if anyone out might be able to point me in the right direction on uploading files from a website into MySQL Databses. I am trying to create a way for members to upload files and associate them with there user profile. What data type must I use. Thanks for your help in advance.

Matt G


--
Jarrett M. T. Meyer, M.B.A.
[EMAIL PROTECTED]
http://www.jarrettmeyer.com

--- End Message ---
--- Begin Message ---
Hi,
I would like to ensure that our php.ini is fully locked down to prevents
individuals from any exploiting vulnerabilities in our site.
(hershonline.com) What sites do you recommend to gather this information?

Do you recommend running tools like securitymetrics.com? I ran this on our
site (hersh) and found no real errors. However, I want to make sure that
hersh site is fully secure.

Thanks for the advice.

Thanks,
Dale Hersowitz
Hersh Corporaton
hershonline.com 



--- End Message ---
--- Begin Message ---
We are going to get ready to migrate a few our boxes to the new version of 
windows server running iis 7.0. What are some of the items we need to be 
aware of? We are currently running our main domains (hershonline.com for the 
hersh corporation) on iis 6.0. What sites do you recommend to review to prep 
for the migration of our site?

Thanks
Dale Hersh
Hersh Corporation 



--- End Message ---
--- Begin Message ---
We are going to get ready to migrate a few our boxes to the new version of 
windows server running iis 7.0. What are some of the items we need to be 
aware of? We are currently running our main domains (hershonline.com for the 
hersh corporation) on iis 6.0. What sites do you recommend to review to prep 
for the migration of our site?

Thanks
Dale Hersh
Hersh Corporation



--- End Message ---
--- Begin Message ---
Hi i'm new to this subject so i'm calling for advise here...
1 .-does anyone work with web services (server and client)
2.- which libraries classes are commonly used to this (like nuphp)
3.-which standard has best deployment escenario (soap xml-rpc...)

Thanks in advance
Juan Ignacio Borda



--- End Message ---

Reply via email to