PHP include, include_once, require and require_once
PHP include, include_once, require and require_once are all different ways to make a file load within another, they each do roughly the same thing but what are the differences and…
PHP include, include_once, require and require_once are all different ways to make a file load within another, they each do roughly the same thing but what are the differences and…
A free way to get currency conversion rates within in an api callback is api.fixer.io https://api.fixer.io/latest?base=USD Returns {“base”:”USD”,”date”:”2017-11-20″,”rates”:{“AUD”:1.3235,”BGN”:1.6601,”BRL”:3.2585,”CAD”:1.2788,”CHF”:0.99109,”CNY”:6.634,”CZK”:21.703,”DKK”:6.3164,”GBP”:0.75494,”HKD”:7.8122,”HRK”:6.4212,”HUF”:265.21,”IDR”:13524.0,”ILS”:3.5139,”INR”:65.103,”JPY”:112.13,”KRW”:1095.9,”MXN”:18.97,”MYR”:4.1481,”NOK”:8.2589,”NZD”:1.4636,”PHP”:50.727,”PLN”:3.5915,”RON”:3.9482,”RUB”:59.542,”SEK”:8.453,”SGD”:1.3557,”THB”:32.77,”TRY”:3.9225,”ZAR”:14.055,”EUR”:0.84882}} Now its about simply using a json decode inside a function that…
You can do a lot with PHP and creating an image is one of them. You can add text or even other images onto your base image, here is how:…
An easy way to check if a Twitch user is streaming in PHP can be done with the following function and PHP code: $streamer = ‘kyr_sp33dy’;//the streamers username function is_channel_live($channel)…
Bootstrap and Bulma share so many similarities, both open sourced CSS frameworks. Both are fully responsive and obviously open source. Bulma was created by Jeremy Thomas as an alternative to…
HTML inside a PHP file is a common occurrence when building web applications, you can easily have a bootstrap page that uses PHP to show data. You can either echo…
This is something i had trouble with at first. I wanted to select the highest number (user_id) add 1 onto it (+1) and then insert it back into the database…
From reading devlopment forums, boards and reddit you see alot of jokes poked at PHP and many people talking it down. My gist was because it was a noob language…
PHP comparison operators can be confusing for beginners, here is a quick run down and example to help out. Setting variable a to 2 and b to 10 $a =…
PHP functions, a very simple way to prevent repetitive code and save you time. An example of a PHP function: function test($a, $b){ $var = $a + $b; return $var;…