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")); ?> 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; " 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 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
Archived
This topic is now archived and is closed to further replies.