How to check if a button is pressed using php .. π if (isset($_POST[‘button’])){ echo “button pressed”; } else { echo “button not pressed” ; } <form class=”form-horizontal” action=”check_button_pressed.php” method=”post”> <div class=”form-group”> <div class=”col-sm-offset-2 col-sm-10″><button class=”btn btn-default” name=”button” type=”submit”>Test</button></div> </div> </form> Will on button click display button pressed .. π
Microsoft has just released the first episode of Minecraft Story Mode for free on Windows 10. It is now availble for download via the windows store at no cost. π Just open your official Microsoft Windows store and search for Minecraft: Story Mode – A telltale game series. Enjoy
Imagine if you could take an existing sql database and turn it into a RESTful JSON based web service, then access the data via the API from perhaps an android application or an other third party application.Β I wondered about this and then I stumbled upon PHP DATA SERVICES (PHPDS) built by Chatura DilanΒ PHPDS
Here is a very simple way to use PHP to zip up (archive) a folder.
How to get the full address URL using PHP .. /**** * Get the url address */ function getAddress() { // check for https $protocol = (isset( $_SERVER[‘https’]) == ‘on’ ? ‘https’ : ‘http’); //return address return $protocol.’://’.$_SERVER[‘HTTP_HOST’].$_SERVER[‘REQUEST_URI’]; } //usage echo getAddress(); Will output the full URL π