944,175 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1472
  • PHP RSS
Jul 25th, 2007
0

How to upload a file in PHP ?

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
noman is offline Offline
2 posts
since Jul 2007
Jul 25th, 2007
0

Re: How to upload a file in PHP ?

Are you running PHP on windows or linux?
Reputation Points: 35
Solved Threads: 5
Junior Poster
dr4g is offline Offline
136 posts
since Apr 2007
Jul 25th, 2007
0

Re: How to upload a file in PHP ?

i m running this script on PHP not windows not linux
Reputation Points: 10
Solved Threads: 0
Newbie Poster
noman is offline Offline
2 posts
since Jul 2007
Jul 25th, 2007
0

Re: How to upload a file in PHP ?

You are running PHP on an operating system, which one is it ?
Reputation Points: 35
Solved Threads: 5
Junior Poster
dr4g is offline Offline
136 posts
since Apr 2007
Aug 8th, 2007
0

Re: How to upload a file in PHP ?

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jej1216 is offline Offline
6 posts
since Jun 2007
Aug 8th, 2007
0

Re: How to upload a file in PHP ?

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

jej1216
Last edited by jej1216; Aug 8th, 2007 at 9:58 am.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jej1216 is offline Offline
6 posts
since Jun 2007
Aug 8th, 2007
0

Re: How to upload a file in PHP ?

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
Reputation Points: 201
Solved Threads: 86
Posting Pro
cereal is offline Offline
524 posts
since Aug 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Next Link Help!!
Next Thread in PHP Forum Timeline: Photo Gallery.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC