This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function foo(){ | |
// Stuff | |
$output = array( | |
'size'=>12-$size, | |
'colour'=>$colour, | |
'hostname' => $hostname | |
) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$siteURL='http://example.com/' | |
# Set file name | |
$File = '.\urls.txt' | |
# Process lines of text from file and assign result to $NewContent variable | |
$NewContent = Get-Content -Path $File | | |
ForEach-Object { | |
# First we create the request. | |
$HTTP_Request = [System.Net.WebRequest]::Create($siteURL + $_) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
SETLOCAL ENABLEEXTENSIONS | |
SET logPath=c:\php\logs\ | |
SET currentLog=PHP54_errors.log | |
FOR /F %%A IN ('WMIC OS GET LocalDateTime ^| FINDSTR \.') DO @SET B=%%A | |
MOVE %logPath%%currentLog% %logPath%%B:~0,4%-%B:~4,2%-%B:~6,2%.log |