Page 1 of 1

i'm having issue with php / "" '' etc

Posted: Fri Dec 25, 2009 12:30 pm
by Mysoogal
i'm trying to code a video streaming script based on videolan plugin, and ssh to do the backend ffmpeg,mencoder etc

i'm done so far a index.php which lists thumbnails and file url

but im stuck here

Code: Select all

<a href="#" onclick="vlc_controls.play('http://code.revolunet.com/VLCjs/rambo.mpg')">rambo trailer</a> 
my issue is how to enable the onclick vlc in this section of code

Code: Select all

echo "<div class=\"photo\"><a href=\"movies/$file.mkv\"><span></span><img src=\"data/$file\" alt=\"$file\" /></a>       </div> ";
i've tried to code it like this but doesnt work

Code: Select all

echo "<div class=\"photo\>]<a href=\"movies/$file.mkv\" onclick=\"vlc_controls.play(movies/$file.mkv)\">$file</a><span></span><img src=\"data/$file\" alt=\"$file\" /></a>       </div> ";

but its just gives me issues, im not sure how to put the \ into the vlc onclick :cry:

please advice me on this

thank you

Re: i'm having issue with php / "" '' etc

Posted: Fri Dec 25, 2009 12:33 pm
by Mysoogal
Image

Re: i'm having issue with php / "" '' etc

Posted: Fri Dec 25, 2009 1:57 pm
by Mysoogal
i got it to work after all lol took me such long time

Code: Select all



echo " <div class=\"photo\">
        <a href=\"#\" onclick=\"vlc_controls.play('http://89.238.172.210/movies/$file.mkv')\">
        <span>
        </span>
        <img src=\"data/$file\" alt=\"$file\" /> </a>
        </div> ";

 

Re: i'm having issue with php / "" '' etc

Posted: Fri Dec 25, 2009 2:03 pm
by Mysoogal
does anybody know why that above code is not working on firefox ? :cry:

it works on IE8 and IE7 why not firefox ?

Re: i'm having issue with php / "" '' etc

Posted: Sun Dec 27, 2009 11:14 am
by Neo
Hello! thought all are out for vacation :)

There are many differences between firefox and IE in parsing CSS files.
Fix CSS Div incompatibility in Firefox is added as an example.

In addition to that make sure when you use php for a css file you need to add the following at the top of the file:

Code: Select all

<?php header("Content-type: text/css"); ?>

Re: i'm having issue with php / "" '' etc

Posted: Sun Dec 27, 2009 12:38 pm
by Mysoogal
thanks,top my menu had div and would overflow in ff.

thanks for fix :D