First, Lets find out what version of PHP we're running (To find out if it's the default version).
To do that, Within the terminal, Fire this command:
which php
<?php | |
function removeCommonWords($input){ | |
// EEEEEEK Stop words | |
$commonWords = array('a','able','about','above','abroad','according','accordingly','across','actually','adj','after','afterwards','again','against','ago','ahead','ain\'t','all','allow','allows','almost','alone','along','alongside','already','also','although','always','am','amid','amidst','among','amongst','an','and','another','any','anybody','anyhow','anyone','anything','anyway','anyways','anywhere','apart','appear','appreciate','appropriate','are','aren\'t','around','as','a\'s','aside','ask','asking','associated','at','available','away','awfully','b','back','backward','backwards','be','became','because','become','becomes','becoming','been','before','beforehand','begin','behind','being','believe','below','beside','besides','best','better','between','beyond','both','brief','but','by','c','came','can','cannot','cant','can\'t','caption','cause','causes','certain','certainly','changes','clearly','c\'mon','co','co.','com','come','comes','concerni |
<?php | |
/************************************************************************ | |
* Example Nested For VC | |
* vc_map() stuff should only be included when VC is enabled. | |
* | |
* This is just for a copy/paste test purpose. | |
*************************************************************************/ |
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<!-- Quitar los slash '/' del final de la ruta --> | |
<rule name="RewriteRequestsToPublic"> | |
<match url="^(.*)$" /> | |
<conditions logicalGrouping="MatchAll" trackAllCaptures="false"> | |
</conditions> |
$ts = gmdate("D, d M Y H:i:s") . " GMT"; | |
header("Expires: $ts"); | |
header("Last-Modified: $ts"); | |
header("Pragma: no-cache"); | |
header("Cache-Control: no-cache, must-revalidate"); | |
$imgPath = \URL::to( 'exiting_images/exiting.jpg' ); | |
$save_image = 'user_images/test.jpg'; | |
$save_to = public_path($save_image); | |
$(".drop_area").droppable({ | |
tolerance: "intersect", | |
accept: ".drop_item", | |
greedy: true, | |
drop : function(event, ui) { | |
$(this).droppable( "option", "disabled", true ); | |
}, | |
out : function(event, ui) { | |
$(this).droppable( "option", "disabled", false ); | |
}, |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-2.1.4.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<style> |
git archive --output=test_zip.zip HEAD $(git diff --name-only HASH1 HASH2) |
function dq($query){ | |
$sql = $query->toSql(); | |
foreach($query->getBindings() as $key => $binding){ | |
$sql = preg_replace('/\?/', "'$binding'", $sql, 1); | |
} | |
dd($sql); | |
} |