LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 10: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, 10: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, 03: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, 06: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, 06: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



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 11:24 AM
Starting httpd: /etc/init.d/httpd: line 40: 10243 Segmentation fault LANG=C grep RMLinux Linux - Newbie 10 12-01-2008 10:17 PM
Starting httpd: httpd: Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Syntax sethukpathi Linux - Networking 6 04-12-2008 11:26 AM
Failed to start apache :Starting httpd: Syntax error on line 1027 of /etc/httpd/conf/ payjoe Linux - Newbie 3 09-21-2007 07:24 AM
service httpd status, results in httpd dead but subsys locked squadja Red Hat 2 09-11-2004 10:31 PM

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

All times are GMT -5. The time now is 07:26 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
Open Source Consulting | Domain Registration