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' }); Quote 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 ?>. Quote 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.... Quote 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 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. Quote Link to comment https://forums.phpfreaks.com/topic/260833-php-in-java/#findComment-1336866 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.