Novice@PHP Posted October 2, 2010 Share Posted October 2, 2010 Sorry if this is a silly question lol. I want to know if there is an online tool I can use to check and see what PHP code will ouput server side. For example: <?php $tomorrow = mktime(0, 0, 0, date("m") , date("d")+1, date("Y")); ?> Quote Link to comment https://forums.phpfreaks.com/topic/214991-online-tool-to-see-what-php-outputs-server-side/ Share on other sites More sharing options...
jskywalker Posted October 2, 2010 Share Posted October 2, 2010 php -r '$tomorrow = mktime(0, 0, 0, date("m") , date("d")+1, date("Y")); echo $tomorrow; ' above is tested on Linux, for some reason, if you are on Windows you should do: php -r "$tomorrow = mktime(0, 0, 0, date('m') , date('d')+1, date('Y')); echo $tomorrow; " Quote Link to comment https://forums.phpfreaks.com/topic/214991-online-tool-to-see-what-php-outputs-server-side/#findComment-1118352 Share on other sites More sharing options...
trq Posted October 3, 2010 Share Posted October 3, 2010 http://codepad.viper-7.com/xBDEwg Quote Link to comment https://forums.phpfreaks.com/topic/214991-online-tool-to-see-what-php-outputs-server-side/#findComment-1118454 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.