How to upload a file in PHP ?

Reply

Join Date: Jul 2007
Posts: 2
Reputation: noman is an unknown quantity at this point 
Solved Threads: 0
noman noman is offline Offline
Newbie Poster

How to upload a file in PHP ?

 
0
  #1
Jul 25th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 136
Reputation: dr4g is an unknown quantity at this point 
Solved Threads: 5
dr4g's Avatar
dr4g dr4g is offline Offline
Junior Poster

Re: How to upload a file in PHP ?

 
0
  #2
Jul 25th, 2007
Are you running PHP on windows or linux?
GardCMS :: Open Source CMS :: Gardcms.org
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 2
Reputation: noman is an unknown quantity at this point 
Solved Threads: 0
noman noman is offline Offline
Newbie Poster

Re: How to upload a file in PHP ?

 
0
  #3
Jul 25th, 2007
i m running this script on PHP not windows not linux
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 136
Reputation: dr4g is an unknown quantity at this point 
Solved Threads: 5
dr4g's Avatar
dr4g dr4g is offline Offline
Junior Poster

Re: How to upload a file in PHP ?

 
0
  #4
Jul 25th, 2007
You are running PHP on an operating system, which one is it ?
GardCMS :: Open Source CMS :: Gardcms.org
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 6
Reputation: jej1216 is an unknown quantity at this point 
Solved Threads: 0
jej1216's Avatar
jej1216 jej1216 is offline Offline
Newbie Poster

Re: How to upload a file in PHP ?

 
0
  #5
Aug 8th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 6
Reputation: jej1216 is an unknown quantity at this point 
Solved Threads: 0
jej1216's Avatar
jej1216 jej1216 is offline Offline
Newbie Poster

Re: How to upload a file in PHP ?

 
0
  #6
Aug 8th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 42
Reputation: cereal is an unknown quantity at this point 
Solved Threads: 4
cereal cereal is offline Offline
Light Poster

Re: How to upload a file in PHP ?

 
0
  #7
Aug 8th, 2007
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC