PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Old March 20th, 2008, 05:18 AM
sassenach sassenach is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 83 sassenach User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 41 m 24 sec
Reputation Power: 7
Uploading audio files using PHP

Hi,

This is my first time uploading audio files.
I am not sure if im going about it the correct way.

Do I use the same procedure as uploading a file?
e.g. $_FILES
ereg("(wma|mp3)\$",$_FILES[$filename_audio]['type']
$_FILES[$filename_audio]['error'] != 4

Can anyone help me out with a code for uploading audio files?

Thanks

Reply With Quote
Old March 20th, 2008, 11:03 AM
Andrew's Avatar
Andrew Andrew is offline
Contributing User
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,944 Andrew User rank is Private First Class (20 - 50 Reputation Level)Andrew User rank is Private First Class (20 - 50 Reputation Level)  Folding Points: 2429 Folding Title: Novice Folder
Time spent in forums: 4 Days 6 h 36 m 39 sec
Reputation Power: 8
A file is a file, if you just want to upload it then you can use the same method as you would with any other file really...
__________________
Ubuntu User #13389

Reply With Quote
Old March 20th, 2008, 11:06 AM
sassenach sassenach is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 83 sassenach User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 41 m 24 sec
Reputation Power: 7
hi there,

i did succeed in uploading it, just as i do with image.
are there any other tricks with php in regards to media/audio files?

cheers

Reply With Quote
Old March 20th, 2008, 11:58 AM
NetSurfer NetSurfer is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Posts: 82 NetSurfer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 16 h 46 m
Reputation Power: 7
I dont think so. Everything that differs is mime-type that's spcified in $_FILES['name_of_the_input_field']['type'] and file extension.
__________________
Light travels faster than sound. This is why some people appear bright until you hear them speak.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > Uploading audio files using PHP


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap