Place the following code on a file ex. ListAllPlugins.php and then navigate to http://yourdomain.com/ListAllPlugins.php This is a PowerShell script to automate some of the information
Category: PHP
Ubuntu – WordPress Install
These steps are based on Ubuntu 14.10 Server 64-bit but can be applied to virtually any Debian based UNIX distribution.
PHP Facebook WebCal Parse
I have seen various ways to parse webcal (ical, ics) files in PHP but they tend to get a little more complicated than they need to in some cases or simply do not work.
Token String
This PHP function will assist in splitting a string based on characters. Source: http://www.php.net/manual/en/function.strtok.php
Facebook Event List
This is not my work (Mike Dalisay), simply posting as I found this code useful. After creating an app, we’ll have the following codes on our index.php file Credit Goes To: Mike Dalisay @ http://www.codeofaninja.com/2011/07/display-facebook-events-to-your-website.html
Prevent Browser Cache
Sources: ASP – http://support.microsoft.com/kb/311006/en-us PHP – http://www.php.net/manual/en/function.header.php ColdFusion – http://www.bpurcell.org/blog/index.cfm?entry=1075&mode=entry JSP – http://www.jguru.com/faq/view.jsp?EID=377&page=2
PHP – File Size
Example: [insert_php] function getsize($file,$type) { $size = filesize(“$file”); if($type = ‘Bytes’) { echo $size; } elseif($type = ‘Kb’) { $kbmath = 1024 * $size; echo $kbmath; } elseif($type = ‘Mb’) { $mbmath = 1024 * $kbmath; echo $mbmath; } } echo getsize(getcwd() . $_SERVER[‘PHP_SELF’],’Bytes’) . ‘ Bytes’; [/insert_php]