954,136 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to upload a file in PHP ?

Hi,
i am a new comer in PHP and i have to upload a file in my php web form. I have read some tutorials in which they mentioned that when we go to upload a file in php it saves by default in a temporary directory and after that we move or copy that file into our mentioned directory or folder. The name of that temporary folder / directory can be change in php.ini file.

My question is that how to access to php.ini file and how do i change it? Please help me if anyone having command on php.

Thank you in adavnce,
Noman Soofi

noman
Newbie Poster
2 posts since Jul 2007
Reputation Points: 10
Solved Threads: 0
 

Are you running PHP on windows or linux?

dr4g
Junior Poster
136 posts since Apr 2007
Reputation Points: 35
Solved Threads: 5
 

i m running this script on PHP not windows not linux

noman
Newbie Poster
2 posts since Jul 2007
Reputation Points: 10
Solved Threads: 0
 

You are running PHP on an operating system, which one is it ?

dr4g
Junior Poster
136 posts since Apr 2007
Reputation Points: 35
Solved Threads: 5
 

I need this information as well - I need a page that users can upload and download a file. I'm pretty green at PHP - is there a reference or tutorial I need to study?

TIA,

jej1216

jej1216
Newbie Poster
6 posts since Jun 2007
Reputation Points: 10
Solved Threads: 0
 

Oh yeah - PHP on Linix for my development, but possibly PHP on Windows for production (still fighting over that one).

jej1216

jej1216
Newbie Poster
6 posts since Jun 2007
Reputation Points: 10
Solved Threads: 0
 

If your production server is on a shared hosting you can't change anything in your php.ini file. Otherwise just edit the file with a text editor, save the changes and reload the server.

Besides: Linux is more suitable for PHP. Windows is better for ASP and ASP.NET

cereal
Practically a Master Poster
699 posts since Aug 2007
Reputation Points: 214
Solved Threads: 118
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You