Real Audio Download Limiter
i'm running a site with .ra and .ram files, when some visitor download or stream all these files at the same time it causes an huge bandwidth consumption.
so i'd like to limit the download per each IP to a certain number of .ra and .ram files at time.
i wonder if i can use some php script with cookies session but i'm new to this and i don't know where to start.
View Complete Forum Thread with Replies
Related Forum Messages:
Real Audio Http Streaming Without .ram File
I wanted a way to (http) stream Real Audio files without the need to use ..ram files. In case there are others interested in this, the following is the solution that worked for me: <?php Header("Content-Type: audio/x-pn-realaudio"); echo "http://www.domain.com/audiofolder/track1.rm"; ?>
View Replies !
Download Limiter
im creating a basic site for a friend that allows registered users to login with an ID number. Once in the site they can see their personal details, and can also download a piece of software. The site also has an admin section where the admin user can add/edit/delete users, and the admin user will also be able to set the number of times that the software can be downloaded per month. Code:
View Replies !
Session Cache Limiter - Warning: Session_start(): Cannot Send Session Cache Limiter - Headers Already Sent
I was paying with my code and put in a couple of lines that did not work....so ok I changed my mind just cut off the new lines so in a way the rest of the code was never touched but I keep getting this error over and over ...and nothing has changed it workrd just fine before. So what is that? ---------------------------------------------------------------------- Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/public_html/search.php:2) in /home/public_html/conn.php on line 36 ----------------------------------------------------------------------
View Replies !
A Real Challenge For Real PHP Programmers
<?php /* A challenge to every PHP programmer.The one who's gonna solve this problem would be deemed as PSP(PHP Supreme Programmer).The problem is this : You have to write a script that displays a list of categories and subcategorieslike this one: <select name="category"> <option value="1">Main</option> <option value="2">Main > Computers</option> <option value="4">Main > Computers > Hardware </option> <option value="8">Main > Computers > Hardware > PC</option> <option value="7">Main > Computers > Hardware > Mac</option> <option value="9">Main > Computers > Hardware > Atari</option> <option value="11">Main > Computers > Hardware > PC > History of Pc</option> <option value="">etc...</option> </select> The categories and subcategories details are stored in these two tables in a MySQL database. -categories : the categories names and ids. -cat_relations : the relations between categories.It shows which subcategory belongs to which category. The belongings between categories can go very deep and the number of categories is unlimited. This script will create the two tables and fill them with sample data. All you need to do is to change the four variables below. You can send the script back to this email : yasbergy@yahoo.com. */ //Here starts the script. Please change the values of these variables to fit your settings $user = "prospective_PSP"; $database = "db"; $server = "localhost" ; $pwd = "" ; //Connection to the database that you created mysql_connect($server,$user,$pwd) ; mysql_select_db($database); //Creation of the two tables : categories and cat_relations $categories = " CREATE TABLE `categories` (`id` INT not null AUTO_INCREMENT, `name` VARCHAR(100) not null , PRIMARY KEY (`id`), INDEX (`id`), UNIQUE (`id`)) comment = 'The categories details' "; mysql_query($categories) ; $cat_relations = "CREATE TABLE `cat_relations` (`id` INT not null AUTO_INCREMENT, `daughter_id` INT not null, `mother_id` INT not null , PRIMARY KEY (`id`), INDEX (`id`), UNIQUE (`id`)) comment = 'Which category is the daughter of which category'"; mysql_query($cat_relations) ; //Filling the two tables with sample data $cats = array('Main','Computers','Countries','Hardware','S oftware','Programming languages','Mac','PC','Atari','Winamp','History of the PC','IBM','Components','High level','USA','NYC','LA','Manhattan','India','Winzi p'); for ($i=0;$i<count($cats);$i++){ $sql = mysql_query("insert into categories (name) values('".$cats[$i]."')"); } mysql_query("insert into cat_relations (daughter_id,mother_id) values (2,1),(3,1),(4,2),(5,2),(6,2),(7,4),(8,4),(9,4),(1 1,8),(12,8),(13,8),(10,5),(20,5),(14,6),(15,3),(16 ,15),(17,15),(18,16),(19,3)"); //Now you can have a look on them through phpMyAdmin ?>
View Replies !
Cache-limiter Error
I am getting the following error. I've changed the paths and file names here to protect my client's confidentiality. Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /www/html/app/includes/someincludescript.php:2) in /www/html/app/includes/session.php on line 3 The main script has <? include("/www/html/app/includes/someincludescript.php"); include("/www/html/app/includes/session.php"); .... ?> Of course, session.php has a session_start() in it. My understanding of this error is that someincludescript.php has some kind of output going out of it at line 2. This would cause the session_start() function to hiccup and give the warning. Examining someincludescript.php, it has nothing that should be outputting to the browser. The earliest output in the main script comes after session.php is included. To complicate my problem more, all of it works fine on my development server. When I ship the scripts off to my client and he installs them on his server, the warning happens. I have taken steps to ensure that the DOS/UNIX difference in line endings is not a problem. Both the development and production servers run RedHat Linux. However, the scripts are sent via ftp (ASCII xfer mode) to my Windows machine, emailed to client's Windows machine, ftp'd (ASCII xfer mode) to his machine. His doesn't work. Part of my frustration is that I have no direct influence over the production server. I can accept that, but it makes it very hard to debug problems like this. He says that his PHP errors log doesn't show any errors. I have three suspicions: 1. There is some system setting somewhere, perhaps in php.ini, that is different between the two servers. 2. My client is not installing the scripts correctly (unintentionally) and causing the error. 3. The someincludescript.php script is causing an error at line 2 that tries to write a warning to the browser, which triggers the warning.
View Replies !
Session Cache Limiter
I am getting this error when using quickcart and clicking on the add to basket button (as an aside, I have the same problem with my CMS). Cannot send session cookie - headers already sent by (output started at C:WWW iknetcartheader.php:13) in C:WWW iknetcartactions_clientorders.php on line 3 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:WWW iknetcartheader.php:13) in C:WWW iknetcartactions_clientorders.php on line 3 Warning: Cannot modify header information - headers already sent by (output started at C:WWW iknetcartheader.php:13) in C:WWW iknetcartactions_clientorders.php on line 27 I can understand that the headers have been sent by the HTML (the system is fine without them) however I want to include a header to identify this as my page,part of my website. Is there a way of "ignoring" the html headers, or forcing the php to come in first?
View Replies !
Cannot Send Session Cache Limiter
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/minipla/public_html/cart.php:2) in /home/minipla/public_html/cart.php on line 8
View Replies !
Set_ini Cache Limiter Sessions
I always have problems with sessions and the page has expired problem. Until now I asked my server to set the cache.limiter in the ini file to 'none'. But it seems they update the ini file regularly because the problem reoccurs all the time. I think it is possible to set the cache limiter by code using set_ini but it doesn't seem to work. Can anyone let me know what the correct code is and where exactly I should put it?
View Replies !
Cannot Send Session Cache Limiter - Headers Already Sent..
I am using xampp and developed a simple page with the session_start() function. But whenever I browse the page it just shows the following warning just on the first line and the whole page is being browsed from the next line of the warning. Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:Program FilesxampphtdocsprojectMain.php:1) in C:Program FilesxampphtdocsprojectMain.php on line 3 That's the problem. We are using xampp version 1.5.5. Could someone plz help me find the problem? Another information is I've sent it to another person and he said it's okay at his PC with apache2triad.So what could be the possible solutions?
View Replies !
Warning: Cannot Send Session Cache Limiter -
I have a login page and whenever I enter the user name and password and hit enter i get the following message: " Warning: Cannot send session cache limiter - headers already sent (output started at /var/www/html/packet/checklogin.php:6) in /var/www/html/packet/checklogin.php on line 23 " sometimes I have to login 2-3 times before i actually get transferred to the next page.
View Replies !
Warning: Cannot Send Session Cache Limiter - Headers Already Sent
Here is the error message I get in my page: Warning: Cannot send session cookie - headers already sent by (output started at /web/sites/79/wdhead/www.webheadsolutions.f2s.com/index.php:6) in /web/sites/79/wdhead/www.webheadsolutions.f2s.com/index.php on line 352 Warning: Cannot send session cache limiter - headers already sent (output started at /web/sites/79/wdhead/www.webheadsolutions.f2s.com/index.php:6) in /web/sites/79/wdhead/www.webheadsolutions.f2s.com/index.php on line 352
View Replies !
Warning: Session_start(): Cannot Send Session Cache Limiter
Im getting this line in my browser window : Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /usr/www/users/charbut/calpropertysearch/account-login.php:9) in /usr/www/users/charbut/calpropertysearch/login.php on line 2 Can you tell me what I remove in login.php or account-login.php to prevent that error? Line 2 of login.php is: session_start(); When I remove it I can no longer login to any accounts, but the error doesn't appear at the top of the page. What do I do?
View Replies !
Problem With Session_start() - Cannot Send Session Cookie/cache Limiter
Hi, i am getting the following errors when running my php script: Warning: Cannot send session cookie - headers already sent by (output started at c:apacheapache2htdocs hegainindex.php:4) in c:apacheapache2htdocs hegainindex.php on line 19 Warning: Cannot send session cache limiter - headers already sent (output started at c:apacheapache2htdocs hegainindex.php:4) in c:apacheapache2htdocs hegainindex.php on line 19 ....the script i am trying to run is as follows: <?php session_start(); //start session to get session variables //this code is to check if a custom session variable exists. if none, create one. if (!isset($custom_sessid)) { $custom_sessid = md5($_SERVER['REMOTE_ADDR'] . " " . date("Y-m-d H:i:s")); // create a session id session_register("custom_sessid"); // register newly ceated session variable } $indate = date("Y-m-d H:i:s"); $page_id = 1; //each page will have its own number $insert = "INSERT INTO tracker (tracker_id, page_id, indate, custom_sessid) values (null, $page_id, '$indate', '$custom_sessid')"; $result = mysql_query($insert);....
View Replies !
Annoying Error - Warning: Cannot Send Session Cache Limiter
i keep getting Warning: Cannot send session cookie - headers already sent by (output started at /home/httpd/vhosts/tactical-fusion.com/subdomains/gbullet/httpdocs/tutorials/index.php:2) in /home/httpd/vhosts/tactical-fusion.com/subdomains/gbullet/httpdocs/tutorials/conn.php on line 2 Warning: Cannot send session cache limiter - headers already sent (output started at /home/httpd/vhosts/ymdd/subdomains/gbullet/httpdocs/tutorials/index.php:2) in /home/httpd/vhosts/ymdd/subdomains/gbullet/httpdocs/tutorials/conn.php on line 2 Warning: Cannot add header information - headers already sent by (output started at /home/httpd/vhosts/ymdd/subdomains/gbullet/httpdocs/tutorials/index.php:2) in /home/httpd/vhosts/ymdd/subdomains/gbullet/httpdocs/tutorials/conn.php on line 3 and i put in: header("Cache-control:private");
View Replies !
PHP + AUDIO CD
Is it possible to read the following things in PHP and if it is possible then how to do that? Please give me some examples, I will be very grateful for that. I would like to read: - track time lengths from audio cd (*.wav) - the name of tracks from this audio cd (*.wav) Moreover is it possible to read length time tracks from mp3 files and if so, how to to that?
View Replies !
Download Files From My Site Via A Download Page And Id Variable
i want users to be able to download files from my site via a download page and id variable eg.. download.php?file_id=24 BUT i want this to be the only way for my users to access the files, ie they shouldn't be able to type in: http://www.mysite.com/download/myfile.zip so ill be storing the files below the viewable area on my site. so to access the files i need a way of making the file download, i tried to look up some cleevr things to do with headers but these seem only to work if youve made a file on the server side, any ideas how i can do this ?
View Replies !
Audio Files - *.mp3
I have the following test for uploading audio files: if (strncmp($_FILES['filename']['type'],"audio", 5)) { I can successfully upload a "*.mid" file, but it fails on a "*.mp3" file. Since the "*.mp3" is an audio file, why does it fail?
View Replies !
Audio To Text
Anyone know of any PHP classes or packages I can use that will allow me to run speech recognition on audio files such as WAV or MP3? It doesn't have to be perfect I just need to create something that will interpret audio to text in an automated fashion that can be used in a web application.
View Replies !
Audio / Video
I have a project which is an online classroom, is there a php class out there that is available for this kind of project or can anyone tell me where could i find tutorials/articles on how to access/display data comming from the webcam and the microphone using PHP or any language possible. the audio and video must be real time as possible.
View Replies !
Audio + Video
I'd like to be able to offer users to upload audio files. Not sure even where to start. I saw some offer apps written in Flash to playback the file... Anybody has any experience? Please point me in the right direction.
View Replies !
Web Cam/audio Application?
I'm just wondering what kind of work would be involved in developing this kind of application? Any pointers would be useful, would want to make it as "simple" as possible...
View Replies !
Audio Recorder
I was wondering if it is possible to use PHP and flash to create a Audio recoder that has a list of songs stored in a database and when a song is selected it is played. While it is playing the user can sing in the their mic and have this be recorded in MP3 format. Is this possible or would I have to use Java to get that result?
View Replies !
Audio Recording Over The Web
I had an idea for something that I can't find any evidence if it exists, or if it can be done. I assume it can be done. What I'd like to be able to do, is to allow people who come to my website, click a button on the page to begin submitting an audio stream to the server. Basically, once the "record" button was hit by the client, an audio stream would be generated by the client's microphone and would be sent over port 80 (just like all other web data) and would be recorded on the server, encoded as an MP3. I figure, when you upload a file, it sends 0s and 1s in a stream that is written as a file on the server, why not 0s and 1s generated by a microphone rather than reading from a file on the client's hard drive? The point would be to allow web users to record short audio MP3s directly to the server without any other software than their browser, and with only a standard microphone. Files would be saved, and then added to a Podcast automatically, thus creating a sort of audio message board or blog. Has this ever been done? Is it possible?
View Replies !
Streaming Audio
I need help about my mp3 music files, I have a mp3 files saved from my old server. I have a new server working which is the one I'm using right now. I want to link my mp3 files from my old server to my new server using PHP script without tracking my old server by the user or client. ex. <embed in media player> mp3.oldserver.com/demo - demo.mp3 and change it into www.newserver.com/stream.php?id=demo - demo something like that and unable tobe download by the users. I've tried surfing the net and i could find one. tnx 4 helping me.
View Replies !
Audio Type
I had a problem with uploading images in that some files did not have a type of "image/something" from the $_FILES['the_field_name']['type'] which I used for my verification. Someone (THANK YOU) suggested using getimagesize() which has the third element in the returned array being a number representing the image type. That worked perfectly for me, enabling me to check that it was, indeed, an image file that I had uploaded. Now I ask if there is a similar function call for audio types. I want to be able to verify that the file I upload is, indeed, an audio file. I would like this function because I am reasoning that if the "type" obtained from $_FILES['the_field_name']['type'] is not reliable for images, then it probably isn't reliable for audio either.
View Replies !
Audio Captcha
hi i got php source for a captcha, anyway the picture captcha works but the audio one dosent i just get said the characters are and no characters....... i followed instructions from here: http://www.ejeliot.com/pages/php-captcha any help...
View Replies !
Audio Chat
I am looking for an audio chat or messenger that is compatible with PHP/MySQL. It cannot be flash or uses flash communication server.
View Replies !
Audio Filtering Via PHP, Program
I have been tasked with trying to find a way to complete this project... I'm not sure if it is possible, but hopefully you guys can provide some insight... I need to create a web application that will allow a visitor to record their voice into an audio file, then apply different filters/effects to it (like robot, lady, etc.), and send it to a friend. I haven't the slightest clue where to begin on doing something such as this. I searched google for a similar functionality, and have come up empty handed. Has anyone seen anything like this done, or an application that would do something like this, PHP or otherwise?
View Replies !
Header Voodoo For Audio
You know when you use php to generate or choose an image on the fly and then when you output it from the php routine you preceed it with a image header so that you can say <img src='randpicture .php' ....... /> in your html code and it's just I am doing that with audio--good ol' ".wav" I glue various bits of audio together on the fly and the resulting files are valid audio files. I have tested that the files work if I download them via SCP. what header or headers to I use so that I can generate these things when a user clicks an icon, and then play them without losing the page.
View Replies !
Library For Digital Audio
i am working on a library for digital audio, and as such streaming would be nice, i was implementing streaming by creating a playlist with the value of $_GET[path] from when the user selects the file to be streamed Code:
View Replies !
Audio Video Chat
how we can using audio video chat like using netmeeting on windows. i want bring voip used netmeeting to web using php, is it possible?
View Replies !
Uploaded Audio Conversion
Is it possible to convert audio files once they have ben uploaded? I need to convert uploaded WMA files to MP3 format. I know FFMPEG-PHP does this for video files. Does anyone know a tool that does the same for mp3's?
View Replies !
Sending Audio Files
I have a recommend a friend program in PHP which can send a form filled details to around 5 Email Ids at a time. I want people to use this with their voice custom message. Can they record and attaché with this recommendation form and send that to email. What is the procedure involved so that the receiver can play the audio file by embedding any controls?
View Replies !
How To Create Audio Messages With Php?
MSN and Yahoo "messengers" have a feature I'd like to duplicate with PHP... I'm thinking this would be an 'across-the-web' tool between me and my staff, not something on a public site. Sound files would have to be limited to 3mb or below, or 20-30 secs, whatever's easiest to do. I want to create sound files (.wav in Windows' case - recorded) by specific people when they're visiting a web page, then save the sound file to the server, then automatically send a link to the file to another user or admin by email. I know how to do the email/file link stuff, but don't know how to create the recorded sound file. I'm assuming in Windows you'd call the "Sound Recorder" into play, and of course, the person recording the sound file would have to have a mic, etc.
View Replies !
Secure Audio Content
except for right now and I engineer mp3s for some publixhers but I need to work on my own with a secure sight that will expose music in the mp3 format, although only certain people are supposed to even see this much less hear it. Right now it is a URL by invitation only! So it must be secure for several reasons besides licensing, can I do this sucessfully with PHP alone or should I do something entirely differernt?
View Replies !
Listen Audio Files
Is it possible to write a PHP script that would allow users to click on a music sound track and listen to it with out having to download the track or any software/plug-ins to their computers. If so how would I search the manual or other sites on how to write sucj a script of function?
View Replies !
MP4, M4A, And Other Audio Format Tags.
I have a music site in which when a person uploads mp3 files, it reads the id3 tags and stores them in a database which is than called back later. This dosen't help me with ther audio formats(specifically m4a and mp4).
View Replies !
Upload Audio Mp3 Files
I have a form for uploading audio files. I have made the validation only allow real audio, wma, mp3 files. the real audio and wma files work fine but when i try to upload the mp3 file it doesnt work. I am not completely sure what all the MIME types are for mp3 files but i have tried a few that i have found and the do not work. Here is my code: ....
View Replies !
Ecnoding Audio Files
Completely random thought process im having, but this even possible or anyone know of such thing which can even act in away hich is website?
View Replies !
Convert Audio Files
In my app I need convert different audio files to mp3, which seems to be more complicated than I thought. To put it straight: I'm a noob at linux. PHP isn't a problem but as soon as I need to do something more advanced in linux I'm lost. So my problem: I want to convert .m4a to .mp3 files, which I figured out works with FAAD2 and LAME. Now this might not be the best or nicest way, but it works. So the commands i use in the shell are: $ faad file.m4a #this converts the file to .wav $ lame file.wav file.mp3 #this converts the file to .mp3 This works fine, but as soon as I try to execute the code with PHP the problems start shell_exec("faad file.m4a") just returns an empty string and executes no command the strange thing is that when executing shell_exec("faad")it returns Usage:faad infile.aac....so faad seems to be found When executing lame, nothing happens at all. even shell_exec("lame")returns an empty string I installed lame and faad as root, so there might be some kind of rights problem, but I really have no clue how to solve it.. don't know if this info helps but "which lame", and "which faad" return "/usr/local/bin/lame" and "/usr/bin/faad/"
View Replies !
Putting Audio In A Database
How can I save my audio's location in the database and the code the webpage so when you click on the link it plays the audio file that is saved in the same row as the rest of the text?
View Replies !
Converting Audio Formats
I would like to allow my users to upload a large wav file and have it converted to one of the following: a smaller wav file, an MP3, RA or WMA. My users have access to only large files, and it is not an option to ask them to do the converting on their own. I've done a little research, but can't seem to find anything on this. Can PHP do this. Should I have PHP call an outside program? which one? how? My server's OS is XP.
View Replies !
|