{less}

html, javascript, php, web No Comments »

 

PHP template systems

php, web No Comments »

Some Savant3 examples here

Easy replace php short open tags with long php open tags

linux, php No Comments »
#!/bin/sh

#!/bin/sh
# Written by Marius van Witzenburg <info@mariusvw.com>
 
path="."
if [ ! -z "$1" ] && [ -d "$1" ]
then
    path="$1"
elif [ ! -z "$1" ]
then
    echo "Invalid path defined, using default."
fi
 
echo "Searching for php short open tags…"
echo "Starting path: $path"
find $path -name '*.php' -type f -exec perl -i -wpe 's/<\?=/<\?php echo /g' '{}' \;
find $path -name '*.php' -type f -exec perl -i -wpe 's/<\?/<\?php/g' '{}' \;
find $path -name '*.php' -type f -exec perl -i -wpe 's/<\?phpphp/<\?php/g' '{}' \;
find $path -name '*.ctp' -type f -exec perl -i -wpe 's/<\?=/<\?php echo /g' '{}' \;
find $path -name '*.ctp' -type f -exec perl -i -wpe 's/<\?/<\?php/g' '{}' \;
find $path -name '*.ctp' -type f -exec perl -i -wpe 's/<\?phpphp/<\?php/g' '{}' \;
find $path -name '*.inc' -type f -exec perl -i -wpe 's/<\?=/<\?php echo /g' '{}' \;
find $path -name '*.inc' -type f -exec perl -i -wpe 's/<\?/<\?php/g' '{}' \;
find $path -name '*.inc' -type f -exec perl -i -wpe 's/<\?phpphp/<\?php/g' '{}' \;
find $path -name '*.thtml' -type f -exec perl -i -wpe 's/<\?=/<\?php echo /g' '{}' \;
find $path -name '*.thtml' -type f -exec perl -i -wpe 's/<\?/<\?php/g' '{}' \;
find $path -name '*.thtml' -type f -exec perl -i -wpe 's/<\?phpphp/<\?php/g' '{}' \;
 
echo 'Done!'

http://mariusvw.com/2010/03/03/easy-replace-php-short-open-tags-with-long-php-open-tags/

PHP command line syntax check

linux, php No Comments »
php -l file.php

Check all PHP files in the current directory

for i in *.php; do php -l $i; done

Check all PHP files in the current directory and all subdirectories

find . -name \*.php -exec php -l "{}" \;

find

linux, php No Comments »

Find word in php files

find . -iname '*php' | xargs grep 'find_what' -sl

Find php short tags in php files

find . -name '*.php' -exec grep -H "<?[^pPxX]" {} \;

Dropbox

apps, win No Comments »

Dropbox is the easiest way to store, sync, and, share files online.

HeidiSQL

apps, mysql, win No Comments »

HeidiSQL is an easy-to-use interface and a “working-horse” for web-developers using the popular MySQL-Database. It allows you to manage and browse your databases and tables from an intuitive Windows® interface.

HTML optgroup

html No Comments »
<select>
  <optgroup label="Cars">
    <option value="BMW">BMW</option>
    <option value="Opel">Opel</option>
  </optgroup>
  <optgroup label="Phones">
    <option value="Nokia">Nokia</option>
    <option value="Samsung">Samsung</option>
  </optgroup>
</select>

optgroup

Visual Qquery

jquery No Comments »

http://www.visualjquery.com/

Adminer

blogroll, mysql, php No Comments »

Adminer

Adminer (formerly phpMinAdmin) is a full-featured MySQL management tool written in PHP. Conversely to phpMyAdmin, it consist of a single file ready to deploy to the target server

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in