php - Flowplayer Video source error -


i have php script helps me display video flowplayer.

$filepath =  str_replace('/','\\', $_server['document_root']. video_path . $video->video_path_original_quality); 

gives me filepath as

c:\wamp\www\xyz\admin\uploads\videos\video-800-old_original.mp4

where video_path = xyz\admin\uploads\videos.

my problem video source in html still shows blank value. code have written is

<video>           <source type="video/mp4" src="<?php str_replace('/','\\',$filepath);?>"/> 

can let me know what's wrong ? have tried 'echo' well, doesn't either. working on codeigniter

you don't echo anything:

<?php str_replace… 

should be:

<?php echo str_replace… 

or, more typically:

<?= str_replace… 

Comments