Archive for the ‘Snippets’ Category

PHP Build Path Function

Wednesday, January 25th, 2017

This function taks multiple arguments or an array of arguments (let's say folder and an ending file name) and build a full path to the folder or file using DIRECTORY_SEPARATOR constant so it may be used on any OS.

Tags: ,
Posted in Snippets | Comments Off on PHP Build Path Function

Simple server status image generator (Needs cleanup)

Thursday, December 1st, 2016

A simple generator, that generates a small list of servers, and their statuses in an image. Needs cleanup. Sorry for the hacky low quality code. I am pretty sleep deprived right now. :)

Tags: ,
Posted in Snippets | Comments Off on Simple server status image generator (Needs cleanup)

Add a new icon font family to vc_icon

Thursday, December 1st, 2016

this function add new icon font family to the default vc_icon of visual composer

Tags: ,
Posted in Snippets | Comments Off on Add a new icon font family to vc_icon

Selenium Webdriver Automation Testing Example

Monday, May 2nd, 2016

Learn Selenium browser automation testing with java. [url=http://seleniumwebdrivertrainings.com/selenium-training-with-java/]SeleniumWebdriverTrainings.com[/url]

Tags: ,
Posted in Snippets | Comments Off on Selenium Webdriver Automation Testing Example

Automation Testing with Selenium Webdriver

Monday, May 2nd, 2016

Usually, hugely professional websites will provide you realistic classes on live projects. It's constantly better to do functional times in live tasks while the tailor made tasks will not offer you enough contact with the true life troubles. Consequently, you ought to enquire concerning the useful period before joining a course in [url=http://itelearn.com/course/selenium-training-video-tutorials/]ITeLearn.com[/url]

Tags: ,
Posted in Snippets | Comments Off on Automation Testing with Selenium Webdriver

Grade Averager

Monday, April 25th, 2016

Grade Averager with Factor

Tags: ,
Posted in Snippets | Comments Off on Grade Averager

formelement generator

Tuesday, September 29th, 2015

This is select element generator section of my form helper.

Tags: ,
Posted in Snippets | Comments Off on formelement generator

Accurate IP address if user is using proxy

Tuesday, September 29th, 2015

this code snippet will show the accurate ip address of a user. Most of the examples lack the ability to use the php code for proxy as well. [url=http://topgravity.com/find-my-ip-address/]Demo[/url]

Tags: ,
Posted in Snippets | Comments Off on Accurate IP address if user is using proxy

Escape user input before preg_replace

Tuesday, September 29th, 2015

Sometimes you need to do preg_replace on user input. Don't forget to escape all special characters or you'll get funny results.

Tags: ,
Posted in Snippets | Comments Off on Escape user input before preg_replace

Take web screenshots with PHP

Tuesday, September 29th, 2015

You can get your application key and secret by registering at [url=http://grabz.it]GrabzIt[/url].

Tags: ,
Posted in Snippets | Comments Off on Take web screenshots with PHP