Category: Code Snippets

Code snippets and hints

aMember
0 1981

Remove amember.css from Render

Remove the css from the generated code template, install into site.php

drop table
0 2105

Drop table like

Drop table from a database using a pattern, see the ‘like’ statement

Find & Delete
0 2115

Find & Delete

Example of how to recursively delete files

css reset
0 2123

Eric Meyer’s reset reloaded + HTML 5

CSS reset to clear all those pesky settings

File Permissions
0 1497

Set File Permissions

Most php servers require that files be ‘-rw-r–r–‘ and directories ‘rwxr-xr-x’ running the example in the directory you want will change all these recursively for…

PHP Log reporting
0 1954

Send PHP Error Logs

Check through your web sites for those pesky PHP error logs You need to have PHP writing errors to the file name ‘error.log’ Save the…