getButterfly
Resume

NAVIGATION

ATTRIBUTION

getButterfly
Dublin, Ireland

All Content Copyright ©2019
getButterfly

Tiny WordPress

Tiny WordPress – tinywp.php – is a quick (but not dirty) PHP script which auto-installs WordPress on any host. Just upload it via (S)FTP and run it.

<?php
$n = basename($_SERVER['SCRIPT_NAME']);
unlink($n);
copy('https://wordpress.org/latest.zip', 'wordpress.zip');

$b = new ZipArchive;
$b->open('wordpress.zip');

for($i = 0; $i < $b->numFiles; $i++) {
    $f = $b->getNameIndex($i);
    $b->renameName($f, str_replace('wordpress/', '', $f));
}
$b->close();

$b = new ZipArchive;
$b->open('wordpress.zip');
$b->extractTo('./');
$b->close();

unlink('wordpress.zip');
header('Location: https://' . $_SERVER['HTTP_HOST'] . str_replace($n, 'wp-admin/setup-config.php', $_SERVER['REQUEST_URI']));

Use it when you have a slow (S)FTP connection or an SSH-only connection.

Added by Ciprian on Tuesday, August 27, 2019 in Blog

Do you want better SEO? More traffic? More conversions? More growth? We help companies exponentially grow their traffic and conversions, while outranking their competitors. With more than 10 years of experience, we’ve learned what is valuable to our clients.
SEO Dublin | SEO Malta

Related Articles

My Battle Tested Recommendations
Disclaimer: These recommendations contain affiliate links.

Jetpack
Dreamhost
WordPress.com
CodeCanyon
SEMrush
SEMrush

Privacy Policy