html5 player

I just created this for you… its basic but should do the job… after this you can look at SQL and retrieving from database, but should be simple enough. Put it in one file called index.php or something along those lines.

[php]

<?php $season = mysql_real_escape_string($_GET['season'] - 1); $episode = mysql_real_escape_string($_GET['episode'] - 1); $url = array( array( 'URL FOR VIDEO 1 SEASON 1', 'URL FOR VIDEO 2 SEASON 1', 'URL FOR VIDEO 3 SEASON 1' ), array( 'URL FOR VIDEO 1 SEASON 2', 'URL FOR VIDEO 2 SEASON 2', 'URL FOR VIDEO 3 SEASON 2' ) ); echo ' '; ?>

[/php]

or the patience of a saint 8)

Lol i spose, i just love being a God lol.

is not working (you are sure what i want??)

Show me the screenshot of the website… and it not working…

I’m beginning to think somebody is copying these code snippets literally without making the necessary changes to arrays or paths…

and i don’t want to put this in every post, all my sources will be in all.php

Do not put any other code in it… With a blank document shows that the code im giving works, AFTER that you can start putting your others in, if you wanted you could use the php function to include the document… but that screenshot doesnt show the address bar… Have you included the session and episode variables… send a screenshot … including your desktop… of a normal web browser… with the page loaded…

but how i get the episode 3 or 40??

In the address bar you have:

localhost/test/test.php

this needs to be:

localhost/test/test.php?season=1&episode=1

works but in post 1 or 2 or 400 the include or echo is not working

[php] <?php
include(“http://localhost/test/all.php?season=1&episode=2”);
?>

 <?php

echo ‘http://localhost/test/all.php?season=1&episode=2’;
?>[/php]

Just put this in all.php

[php]$url = array(
array(
‘URL FOR VIDEO 1 SEASON 1’,
‘URL FOR VIDEO 2 SEASON 1’,
‘URL FOR VIDEO 3 SEASON 1’
),
array(
‘URL FOR VIDEO 1 SEASON 2’,
‘URL FOR VIDEO 2 SEASON 2’,
‘URL FOR VIDEO 3 SEASON 2’
)
);[/php]

and put include(‘all.php’);

The rest you keep in that document…

i have this in all.php

[php]

<?php $season = mysql_real_escape_string($_GET['season'] - 1); $episode = mysql_real_escape_string($_GET['episode'] - 1); $url = array( array( 'https://googledrive.com/host/0B_4b_1HlxqypYmlncHBEUE03aU0/%5Bhttp:%2F%2Fan1me.info%5D%20Gintama%20001', 'https://googledrive.com/host/0B_4b_1HlxqypYmlncHBEUE03aU0/%5Bhttp:%2F%2Fan1me.info%5D%20Gintama%20002', 'https://googledrive.com/host/0B_4b_1HlxqypYmlncHBEUE03aU0/%5Bhttp:%2F%2Fan1me.info%5D%20Gintama%20003' ) ); echo ' '; ?>

[/php]
and in post i want to include only one from video like this

<?php include("http://localhost/test/all.php?season=1&episode=2"); ?>

Doubt it…

Thats because you are not linking locally… instead of include(“http://localhost/test/all.php?season=1&episode=2”);

you should be using:
include(“all.php?season=1&episode=2”);

Else you will get the error - unless you change your php.ini config.

i test in my website and i get blank page no error and not video

Thats because you are trying to pass variables through include.

Just do it the way i said…

[php]

<?php $season = mysql_real_escape_string($_GET['season'] - 1); $episode = mysql_real_escape_string($_GET['episode'] - 1); $url = array( array( 'https://googledrive.com/host/0B_4b_1HlxqypYmlncHBEUE03aU0/%5Bhttp:%2F%2Fan1me.info%5D%20Gintama%20001', 'https://googledrive.com/host/0B_4b_1HlxqypYmlncHBEUE03aU0/%5Bhttp:%2F%2Fan1me.info%5D%20Gintama%20002', 'https://googledrive.com/host/0B_4b_1HlxqypYmlncHBEUE03aU0/%5Bhttp:%2F%2Fan1me.info%5D%20Gintama%20003' ) ); echo ' '; ?>

[/php]

OR

all.php
[php]
$url = array(
array(
‘URL FOR VIDEO 1 SEASON 1’,
‘URL FOR VIDEO 2 SEASON 1’,
‘URL FOR VIDEO 3 SEASON 1’
),
array(
‘URL FOR VIDEO 1 SEASON 2’,
‘URL FOR VIDEO 2 SEASON 2’,
‘URL FOR VIDEO 3 SEASON 2’
)
);
[/php]

index.php
[php]

<?php $season = mysql_real_escape_string($_GET['season'] - 1); $episode = mysql_real_escape_string($_GET['episode'] - 1); include('all.php'); echo ' '; ?>

[/php]

I am not replying to anymore.

xaxaxa ok, like this is working but i don’t get the specific video only the first if i try to put all.php?season=1&episode=2 is not working :frowning: :frowning: :frowning: :frowning:

Well thats probs cus you didn’t copy the code right…

[php]
$url = array(
array( /* EACH OF THESE ARRAYS ARE THE SEASON. THIS IS SEASON 1 /
“”, /
EACH OF THESE ARRAYS ARE THE EPISODE./
“”
),
array( /
THIS IS SEASON 2 /
“”, /
THIS IS SEASON 2 AND EPISODE 1 /
“” /
THIS IS SEASON 2 AND EPISODE 2 */
)
);[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service