IIS 6- Setting up a write only FTP directory
So, you want to set up a write only ftp directory on IIS? One where you can upload files, but not list them?
Easy…
(more…)
So, you want to set up a write only ftp directory on IIS? One where you can upload files, but not list them?
Easy…
(more…)
I’ve been doing some performance tests on WordPress to see how much of a difference the WordPress Super Cache plugin made.
It turns out that the plugin makes a huge difference. (more…)
So, you’re using sendmail to try and send emails from php/wordpress and it’s not working?
Are your mail logs (/var/log/mail.log) showing nrcpts=0 ??
Make sure the sendmail_path in your php.ini file (/etc/php5/apache2/php.ini) is set up correctly.
It should probably be…
1 | sendmail_path = /usr/sbin/sendmail -t -i |
This page has the permalink http://www.john.geek.nz/2010/04/wordpress-permalinks-and-404-errors But internally its default URL is http://www.john.geek.nz/?p=1495.
Permalinks help people see the topic of a page before it’s visited and generally mean that search engines will rank them higher too.
OK, so you’re getting 404′s as soon as you enable permalinks other than the default?
(more…)
I’ve taken the plunge, and this time I’m not doing it by halves.
I’m moving from my Windows Server 2003 physical co-located server to a Virtual Private Server (VPS) running Linux.
All of the websites have been transferred across, everything else is still to be moved over.
In the meantime, if you find any problems, or anything 404′s, please flick me an email at b…@john.geek.nz
I’ve been using DateTimeUTC for quite some time in batch files to get a nicely formatted date.
This is the first major revision of DateTimeUTC where you can now add or subtract from the current date. This is very useful if you want yesterday’s date.
Get the latest version from here: DateTimeUTC
The main usage of the application is:
datetimeutc [-options]
Options:
-fFORMAT Set output format
-z Set output time to Local Time (Not UTC)
-help View full online help
Example formats:
yyyyMMddTHHmmssZ 20081121T100227Z
“yyyy-MM-dd HH:mm:ss UTC” 2008-11-21 10:02:27 UTC
“dd MMMM yyyy” 21 November 2008
ddd Fri
dddd Friday
fff (Milliseconds)
Use double quotes when the format includes a space
Use backslashes to escape reserved character
Now, to add or subtract from the time, the format of the option is:
-[timeunit][value]
[timeunit] is one of YMdHms for Year, Month, Day, hour, Minute or Second
[value] is an integer and can be positive or negative
The following will print the UTC time one day ago:
datetimeutc -fyyyyMMddTHHmmssZ -d-1
Do get the output into a batch file, try this:
for /f “usebackq” %%a in (`datetimeUTC.exe -fyyyyMMddTHHmmssZ`) do (set UTCdts=%%a%)
echo %UTCdts%
Job done