97 articles Code Snippets
Free code snippets are available here. We put them here to save time and trouble looking for the same solutions to yesterday’s challenges and figure why not make some ad revenue money along the way?
Are you looking for a PHP developer, a Symfony expert or Wordpress web developer? Perhaps a business system architect that specializes in scalable MySQL business system design and deployment? We have reliable, fast and professional developers that meets your organization’s needs! Contact us for your next web development project and schedule a free consultation today.
Javascript
Javascript: A simple way when validating forms to ensure at least one checkbox is checked
0Get the image width and height of an image file at a remote URL in Javascript
0Get date of last day of current month for special processing like for credit card expiration dates
0Javascript: Basic Date Object for Quick Reference
0Disable/Remove ShareThis appended hashtag from site URLs
MySQL
MySQL: Exclude ‘group by’ group if field A in any row has value B with “Natural Join”
0Finding missing records of the right joined table in MySQL
0Copying MySQL databases at the command line is fast and easy
0PHP Developers: MySQLi & PDO forcing errors helpful for debugging queries when accessing private or protected isolated classes
0Mysql PDO standard insert (persist) of data to a table with placeholders to protect from MySQL injection attacks
PHP
Rendering Twig templates from Symfony Repository without Using Dependency Injection (DIC)
0PHP: Checking if a form was posted with “REQUEST_METHOD” server global
0General API interface with CURL: A simple way to access most APIs — use as is or extend as necessary
0PHP Developers: Pre-made state pulldown lists for HTML forms
0ZIP and password protect any file with simple script using PHP
Server & .htaccess
.htaccess: Password protecting single files on your website
0Solving “Network Error: Connection Refused” errors when trying to Putty into LAMP stack
0Linux command line to delete all files and folders in current directory
0Unzip file to destination folder in LAMP command line
1Excluding a specific folder from .htaccess rewrites
Symfony
Fabien Potencier is a mad genius, he's the man behind Sensio Labs and the Symfony PHP framework, which I have grown to really appreciate. For one, any business with a web development team needs to be on a framework. Period. Collaboration will improve exponentially while development time will decrease as your systems become more stable and scalable. PHP frameworks are a necessity for any company with serious skin in the web!
Looking for a PHP developer, a Symfony expert or Wordpress web developer? Perhaps a business system architect that specializes in scalable MySQL business system design and deployment? We have reliable, fast and professional developers that meets your organization's needs! Contact us for your next web development project and schedule a free consultation today.