2 posts tagged with "php"
![](/static/9b81f8a49070b31504ce777249f10819/eee8e/pexels-kindel-media-7054757.jpg)
How to read remote files using PHP
When I was implementing pingback functionality in my custom blogging software, I needed to read files from a remote server. As long as allow_url_fopen is enabled in your php.ini configuration you can use HTTP and FTP urls with a majority of the functions that use a…
![](/static/0ed754f553b134696a737bef068216e3/0132d/pexels-tirachard-kumtanom-733857.jpg)
Removing empty elements from an array
When dealing with tag inputs from users, I find myself having to make sure they they don’t enter in any blank or empty tags. Then I realized that I needed to find out how to remove undesirable elements not only from the Php side, but also from the Javascript side as…