open files php with vlc

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
Antho87
New Cone
New Cone
Posts: 7
Joined: 14 Sep 2009 17:32

open files php with vlc

Postby Antho87 » 14 Sep 2009 17:49

Hello,

I am French, excuse me for the faults :D

on my site, I open a file php with this code :

<?php

$fp = fopen("http://mysite.fr/compteur.txt","r+");

$nbvisites = fgets($fp,10);

if ($nbvisites=="") $nbvisites = 0;

$nbvisites++;

fseek($fp,0);

fputs($fp,$nbvisites);

fclose($fp);

header("Content-Type: audio/mpeg-url");

readfile("http://mysite.fr/playlist.m3u);

?>

The objective is to count the number of choices where the playlist is charged.

With mozilla firefox, no playlist functions and with internet explorer, only some playlist.

And if I' open the file php with the software vlc, all functions correctly...

thank's!

Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 3 guests