Tag php

wfn.ro

This project is a custom WordPress theme designed for presenting images. It was built after the provided design.
Read More

Set internal encoding to UTF-8 for php

Use the following code in your script to set the internal php encoding to UTF-8: [crayon-5e8fb86479e26536687030/] Also, for mysql and postgres you should take into consideration the following two commands: SET character_set_results = ‘utf8’, character_set_client = ‘utf8’, character_set_connection = ‘utf8’,…
Read More

PHP, PostgreSQL and bytea

The following two lines have been lifesavers for the situation where a picture is properly inserted into the PostgreSQL, but cannot be taken out and displayed, even if the headers and whatever else needed is properly in place: [crayon-5e8fb8647a36a377617377/] Hope…
Read More

DigitalOcean Status Monitor

The script checks if a droplet is alive by opening a specified port. If the connection is successful, then it tries to retrieve a php file which locally checks the services on the droplet (in our example, just the MySQL…
Read More

PHP Javascript Proxy

PHP Javascript Proxy acts like a PHP proxy, expecially for avoiding javascript cross domain issues. The sources are available here: https://github.com/cristidraghici/PHP-javascript-proxy
Read More

verysimplecaching

verysimplecaching is a yet not-very-friendly standalone php one-file caching system. This file was created for usage with WordPress, in order to bypass the heavy MySQL queries on rather “static” websites. It is intended to be used together with WordPress Total…
Read More

Zend Certification Obtained

There isn’t much more I can write about the certification. I’d say that it’s like an Oscar that’s been awarded for a few years of experience in PHP programming and a couple of months of hard learning. And like every…
Read More