Tag Archive for 'webmaster'

Fix PHP Warning: ob_gzhandler()

essential configurations from the 'php.ini' file:

output_buffering = 4096
output_handler =
zlib.output_compression = Off
implicit_flush = Off
unserialize_callback_func=
allow_call_time_pass_reference = Off

If I set "output_handler = ob_gzhandler" and remove theob_start("ob_gzhandler")
 from the script it's working on 4.3.0 as well.However, this way the compression
 is always on and I can't determinemyself when to use it.
Source http://bugs.php.net/bug.php?id=21228

How can I extract a tar.gz or .tgz file?

How can I extract a tar.gz or .tgz file?

Files with extension tar.gz or .tgz are tar files compressed with gzip. On Unix extract them with:

    gunzip < file.tar.gz | tar xvf -
gunzip < file.tgz    | tar xvf -

Wget - descargar archivos via ssh

con este comando puedes instalar directamente a tu servidor, sin tener que descargarlo y volver a subirlo en una conexion lenta como infinitum

Linux / Unix Command: wget
Command Library
NAME
wget - GNU Wget Manual
SYNOPSIS
wget [option]… [URL]…
DESCRIPTION
GNU Wget is a free utility for non-interactive download of files from the Web. It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies.

Wget is non-interactive, meaning that it can work in the background, while the user is not logged on. This allows you to start a retrieval and disconnect from the system, letting Wget finish the work. By contrast, most of the Web browsers require constant user’s presence, which can be a great hindrance when transferring a lot of data.

Wget can follow links in HTML pages and create local versions of remote web sites, fully recreating the directory structure of the original site. This is sometimes referred to as “recursive downloading.” While doing that, Wget respects the Robot Exclusion Standard (/robots.txt). Wget can be instructed to convert the links in downloaded HTML files to the local files for offline viewing.

Continue reading ‘Wget - descargar archivos via ssh’