LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-30-2010, 11:21 PM   #1
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Rep: Reputation: 16
httpd


Hi

How do i upload files using apache configurations. please can anyone help me. ho do i do that. i am using centos.

because my client wants upload files through httpd.
thanks
 
Old 11-30-2010, 11:48 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
It's easy to do, you have many different options.

For example, here's how you might do it in PHP:
Quote:
http://w3schools.com/PHP/php_file_upload.asp

1. Create an HTML form for the user to select the local file to upload.
Specify method="post", enctype="multipart/form-data" and the name of your PHP script on the server

2. Your PHP script will validate the input and call the built-in function "move_uploaded_file()"

3. Voila! File upload accomplished
You have similar options for Ruby/Ruby on Rails, Java/Tomcat, or whatever server-side web platform you prefer.
 
Old 12-01-2010, 04:35 AM   #3
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Original Poster
Rep: Reputation: 16
httpd

Quote:
Originally Posted by paulsm4 View Post
It's easy to do, you have many different options.

For example, here's how you might do it in PHP:


You have similar options for Ruby/Ruby on Rails, Java/Tomcat, or whatever server-side web platform you prefer.

Thanks for reply.
Ok i know but file size is huge. like 2gb data how we upload.
 
Old 12-01-2010, 07:44 AM   #4
z99
Member
 
Registered: Aug 2009
Location: Iran-Sari
Distribution: CentOS,Fedora,Slitaz
Posts: 136

Rep: Reputation: 20
what about a php forum? like:
www.phpfreaks.com
maybe it helps
 
Old 12-01-2010, 07:44 AM   #5
z99
Member
 
Registered: Aug 2009
Location: Iran-Sari
Distribution: CentOS,Fedora,Slitaz
Posts: 136

Rep: Reputation: 20
what about a php forum? like:
www.phpfreaks.com
maybe it helps
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can not restart httpd”File size limit exceeded(core dumped) $HTTPD -DSSL” sreejithedl Linux - Server 2 10-12-2009 12:24 PM
Starting httpd: /etc/init.d/httpd: line 40: 10243 Segmentation fault LANG=C grep RMLinux Linux - Newbie 10 12-01-2008 11:17 PM
Starting httpd: httpd: Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Syntax sethukpathi Linux - Networking 6 04-12-2008 12:26 PM
Failed to start apache :Starting httpd: Syntax error on line 1027 of /etc/httpd/conf/ payjoe Linux - Newbie 3 09-21-2007 08:24 AM
service httpd status, results in httpd dead but subsys locked squadja Red Hat 2 09-11-2004 11:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration