rastaman46 Posted April 12, 2012 Share Posted April 12, 2012 How can i use php in java? code below dont work hdwebplayer({ id : 'player', swf : 'cinema/player.swf', width : '640', height : '360', video : 'cinema/videos/'.$video_name.'', autoStart: 'true' }); Link to comment https://forums.phpfreaks.com/topic/260833-php-in-java/ Share on other sites More sharing options...
xyph Posted April 12, 2012 Share Posted April 12, 2012 Of course it doesn't work, you've posted a string of meaningless data. JavaScript won't be parsed by a client unless it's surrounded by the <script> tag. PHP won't be parsed by a server unless the server is PHP-ready, the file extension is one that the web server recognizes as a PHP script, and the code is surrounded by <?php and ?>. Link to comment https://forums.phpfreaks.com/topic/260833-php-in-java/#findComment-1336862 Share on other sites More sharing options...
KevinM1 Posted April 12, 2012 Share Posted April 12, 2012 Not to mention that Java and JavaScript are not related at all.... Link to comment https://forums.phpfreaks.com/topic/260833-php-in-java/#findComment-1336863 Share on other sites More sharing options...
Masna Posted April 12, 2012 Share Posted April 12, 2012 Quote Not to mention that Java and JavaScript are not related at all.... Lol yeah that was my first though. Sometimes, just sometimes, I can't tell the difference between a troll and an extremely ignorant person. No offense OP, no offense. Link to comment https://forums.phpfreaks.com/topic/260833-php-in-java/#findComment-1336866 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.