From your terminal launch this command:
$>: hexdump -s 0x33 -n 2 -v -d <FILE_NAME>.frm | awk '{ print "Mysql version " $2; exit }'
Example output: Mysql version 50530
, which means version 5.5.30
<?php | |
$e = new Economics(); | |
print_r($e->Property()); | |
print_r($e->LabourTheory()); | |
print_r($e->InvisibleHand()); | |
?> |
<?php | |
print PhysicsTheories::BohmTheory(); | |
?> |
<?php | |
interface PhilosophicalContexts { | |
/** | |
* The concept of Property | |
* @see http://www.iep.utm.edu/prop-con/ | |
*/ | |
public function Property(); | |
} | |
interface PhilosophicalTheories extends PhilosophicalContexts { | |
/** |
<?php | |
abstract class Physics { | |
/** | |
* The Planck's law | |
* @param integer $J An integer that represent an energy measure | |
* @param integer $s An integer that represent a time measure | |
*/ | |
public static function Planck($J, $s) { | |
$h = 6.62607004 * pow(10, -34) * ($J * $s); | |
return $h; |
From your terminal launch this command:
$>: hexdump -s 0x33 -n 2 -v -d <FILE_NAME>.frm | awk '{ print "Mysql version " $2; exit }'
Example output: Mysql version 50530
, which means version 5.5.30
(function($) { | |
$.fn.imageSelector = function() { | |
$(this).each(function() { | |
var $el = $(this); | |
$el.hide(); | |
var $imageWrapper = $('<a href="javascript:void(0);" class="image-wrapper" />').insertAfter($el); | |
var $remove = $('<a href="javascript:void(0);" class="remove-image" >Remove image</a>').insertAfter($imageWrapper); | |
$el.change(function() { | |
if($el.val() == '') { | |
$remove.hide(); |
// version 0.1 | |
(function () { | |
/** | |
* vanilla JS implementation of jQuery.extend() | |
*/ | |
d3._extend = function(defaults, options) { | |
var extended = {}, | |
prop; | |
for(prop in defaults) { | |
if(Object.prototype.hasOwnProperty.call(defaults, prop)) { |
Mai successo che un cliente "sparisca" e faccia il furbetto non pagandovi?
Con questo script, da sostituire al file index.php
del sito, ad ogni caricamento di pagina da parte dei suoi utenti verrà mostrato un messaggio di errore e a lui arriverà una mail che lo incentiverà a chiamarvi e a chiedervi di risolvere.
L'incentivo sta nel fatto che si ritroverà la posta intasata di messaggi inviati inconsapevolmente dai suoi stessi utenti...
Quanto è efficace
Se i rapporti non sono pessimi è molto facile che vi chiamino per sapere cosa è successo, diversamente verrà chiamato un altro sviluppatore (che quasi sicuramente verrà sfruttato come hanno fatto con voi).
<?php | |
header("Content-type: text/plain"); | |
print $_POST["topology"]; | |
?> |