Skip to content

Instantly share code, notes, and snippets.

View webandphp's full-sized avatar

Web & PHP Magazine webandphp

View GitHub Profile
<?php
echo <<<_END
<font face='Courier New' size='4'><pre>
<ul>
<b><u>PHP PICTURE PROCESSOR</u>
<form method='post' action='picproc.php'
enctype='multipart/form-data'>
UPLOAD : <input type='file' name='p' size='1'>
ACTION : <select name='a'>
@webandphp
webandphp / gist:7548706
Last active December 28, 2015 19:09
Taken from Joey Rivera's tutorial on Phing in the December 2013 issue of Web & PHP Magazine. For more info, see http://webandphp.com/
<?xml version="1.0" encoding="UTF-8"?>
<project name="DB Post Deploy Restore" default="run">
<property file="properties" />
<!-- find out what db's need to be restored and loop through the process for each -->
<target name="run">
<input propertyname="production.user">(Required) Please enter your ssh user name:</input>
<foreach list="${dbs}" param="db" target="prepare" />