Lin 44 In /views/video-management/play-video.php reads:
<?php echo substr($videoFile, -3); ?>
This seems to be echoing out the the filetype and I have no idea why… is this intentional and getting used somehow?
I would have assumed it should be:
<?php $videoPath = substr($videoFile, 0, -4); ?>
to get the filename without the extension, but it doesn’t seem to be for that purpose, in fact it seems to haven o purpose (that I can tell).
Any input appreciated….
- The topic ‘Echoing file type? play-video.php:44’ is closed to new replies.