svgmx5
Members-
Posts
301 -
Joined
-
Last visited
Profile Information
-
Gender
Male
-
Location
US
svgmx5's Achievements
Advanced Member (4/5)
0
Reputation
-
I'm looking around to see if i can find a player that can play a live stream i have. Its in Rtmp format and is streamed from unreal media server. Anyone have any ideas? I've looked into jplayer but no luck there so far.
-
Did you try contacting them? maybe they can give you a little more help if that's the case. Because i know that a php script needs to have the path to where the php is located at on the server in order to execute properly. Other than that, good luck, hopefully you find a solution
-
I had this same issue a while back, what did the trick for me was to log if the web page was access at all by the cron job. The other thing you might want to do is add /usr/bin/php or find out where the php is located at, in my case it was that. If i'm correct the command should look something like this */5 0 *** /usr/bin/php /home/a9645958/djtimbutterfield.hostzi.com/tteeth/mailtest.php
-
Hey everyone - Here's the issue that i'm having.... I have set up a player that streams the mp3 file via a php file so the url looks something like this "domain.com/stream.php?file=11222.mp3 The issue is that on chrome and on some other browsers (not all) the player cannot be replayed once the audio file is done nor can the user fast forward or back while the file is playing. Below is the code: $file = 'path to file'; if(file_exists($file)){ header('Content-type: audio/mpeg'); header('Content-Length: '.filesize($file)); header("Expires: -1"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); readfile($file); }else{ header("HTTP/1.0 404 Not Found"); } My question what is that i'm doing wrong that is causing this issue? i know it somewhere in there i just can't pin point it, any help is greatly appreciated Thanks!
-
So i'm been tasked with this project for work. We are looking to see how we can build an interface where a user can click a button from a custom built web interface and call the number. This is similar to using the TAPI driver in outlook or the windows application dialer.exe, where they input the number, it calls their phone and then connects them to their destination number. I know there is the php COM object but that is only for windows php machines, ours is linux. So i'm just trying to find more information on how to go about it, if anyone here has done something similar then your help is greatly appreciated. Another thing we are trying to find about is if there is any software out there that we can use where a use inputs their phone number on a webpage and they click connect to call us. I've seen this used in some sites, i just don't know if there is something already out there or if we need to build this from scratch, if so then does anyone have any guides or links. I've been on google to see what i can find but so far nothing useful has come up. Again any help you guys have would be great
-
mod_rewrite rules no longer working on my file
svgmx5 replied to svgmx5's topic in Apache HTTP Server
No we haven't been able to fix this. We ended having to move it from a shared hosting to a Virtual Dedicated Hosting environment since it was working there. -
True that, but the way the site is set up is that the user has to log in to access the files. So i set it up in a way where it checks if the user has an active session along with a few more things in order to only allow the user who is already logged in access to stream the file. At this point that's the best i can do, i realize that nothing on the net is safe, but i feel that for the average user this will work for now. Of course if anyone else has any other suggestions on what else i can do i'm all ears
-
Ok so i think i got this issue taken care off. What i did was put all the files outside the root folder and i created a PHP script to stream them. So now all i do is use the <audio> tag and use a url that looks like this "streamtest.phpf?file=file123.mp3" this seems to do the job for now.
-
Ok, so my issue is the following: Currently the application i have has rules to access pages that look like this " locations/city-state-country" however all of the sudden this url no longer works and takes the user to either a page in the website but with out any styles or anything just blank or it returns a 404 error page. The code on my .htaccess file is the following <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine on RewriteRule (.*)-(.*)-(.*)$ index.php?name=$1&state=$2&country=$3 Options +FollowSymLinks RewriteEngine on RewriteRule (.*)-(.*)$ index.php?name=$1&country=$2 </IfModule> This code had been working for the past year and half and like i said it has all of the sudden stop working. The site is hosted on GoDaddy on a shared hosting. I had contacted them and all i could get was that there was something on the scripting on the .htaccess file that was no longer working. I have looked over and over and i just can't figure out what it could be, so i'm hoping someone else can help me out with this. The Apache version on the server is 2.2. Also, i uploaded the whole site up to a different server with out making any modification to the files and it works just fine there. I know the apache version on the other server is 2.2.15. Not sure if this makes any difference. Also both servers are Linux servers. Again any help would be greatly appreciated. Thank you
-
darn..that's what i was afraid off. Well thank you for the response eitherway
-
The issue i'm having is that i have several audio files that i don't want to allow anyone else to gain access to them. Each file is in a separate folder inside a main folder, that i'll call "download" for now. So "download" has several other directories, and inside each directory are audio files. Those audio files are played with in a web app on the system. The issue is that right now anyone can type in the full address of the file "localhost.com/download/dir/file.mp3" and play the audio file. This is what i want to prevent from happening, i want those files to only stream when they are access or streamed from our application. I tried the following on the .htaccess file deny from all This just returned an 403 forbidden page, but i was unable to stream the file from the application RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)localhost.com/.*$ [NC] RewriteRule \.(mp3|wav)$ - [F] This just disabled the stream all together did not return a 403 or anything it just did not stream from neither the application or direct access Finally i'm using ajax to call the script that holds the files to be streamed, could this be the issue? are there any options i can use? Thanks in advanced
-
Reading Unix Timestamp Into A Regular Date Expression
svgmx5 replied to svgmx5's topic in Other RDBMS and SQL dialects
Yes the date is in an integer format, and i believe the SQL is 5 Well what i ended up doing was just a BETWEEN Query. I found a site where i can convert a date into a UNIX time stamp and just search in between two values SELECT SUM(your row) FROM your_table WHERE your_row BETWEEN your_value AND your_value; If anyone has a different idea i'm open to hearing it Thanks -
I'm trying to test a connection via imap. however I keep getting a 500 error at times. Below is the example of the script that i use and this gets me a 500 error. The server is um.domainanem.com this is a Telinta PORTAUM system and their support said to use that as the server name. I have also tried adding um.domainanme.com:143 & um.domainname.com:143/imap $server = 'um.domainname.com'; $login = '12345656@um.domainname.com'; $password = '1234'; $connection = imap_open("{".$server."}", $login, $password); The weird thing is that when i use brackets on the server i get a 500 error, and if i don't use brackets i get nothing on the page. So with the example below i don't get an error, i just get a blank page. $connection = imap_open($server, $login, $password); I'm assuming that i need the brackets....anyways, if anyone can help me out that would be great or let me know if'm writing it correctly. Again thank you
-
That's what i figured, but thought it be worth a shot asking. Anyways, thank you for your help i guess this has been resolved!