PHP (23)


plesk / phpmyadmin database export.php not found

good old plesk and phpmyadmin combination nightmare that’s been an issue for several years… the problem: export.php not found occasionally when exporting databases from phpmyadmin you will get the file not found error. which is a stupid error because the file is in fact there, it’s caused by the attempted export of large databases and […]




Displaying your facebook status on your website

you need 3 things: your user id, your app id and app secret, you can do this from within the app edit screen on facebook. once you have these keys, we need to generate an access_token. we can get this by visiting an url using our app id and secret: https://graph.facebook.com/oauth/access_token?grant_type=client_credentials&client_id=123456789012345&client_secret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx you will see your […]




Postcode Anywhere API: PHP Class

The PHP Class This is my php class for postcode anywhere. You must have a valid license key and account code. This code is for a postcode anywhere php address lookup using a postcode. This PHP Postcode Anywhere code was adopted by Postcode Anywherethe for their Postcode Anywhere PHP code examples on their examples pages. […]




Display facebook status & wall posts on your website

first you need 3 things: your user id, your app id and app secret, you can do this from within the app edit screen on facebook. once you have these keys, we need to generate an access_token. we can get this by visiting an url using our app id and secret: https://graph.facebook.com/oauth/access_token?grant_type=client_credentials&client_id=123456789012345&client_secret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx you will see […]




split string using multiple delimiters

let’s break apart the incoming string on n (new line) or r (carriage return) [code language=”php”]$data = preg_split(‘/(n|r)/’, $incoming);[/code] or break up a string on commas, full stops, semi-colons: [code language=”php”] $string = "a string. of words, and more, words; some words, and even more. the end"; $bits = preg_split(‘/[\.,;]/’, $string); [/code]