sedlav

How to compare objects in PHP

PHP offers a simple way to compare objects using the comparison (==) and identity (===) operators.

When using the comparison operator (==), object variables are compared in a simple manner: Two object instances are equal if they have the same attributes and values and are instances of the same class.

When using the identity operator (===), object variables are identical if and only if they refer to the same instance of the same class.

How to compare objects in PHP Read More »

How to install Debian, expert mode

Debian GNU/LinuxDebian is a highly recommended distribution for server environments due to:

  • His version release philosophy. Debian does not have a fixed cycle to release new versions, but each version is released once the development team considers it stable enough (released when it is ready).
  • Packages inclusion policy: only stable and well-tested packages are included.
  • Its robustness and stability.

How to install Debian, expert mode Read More »

How to download files using curl


curl is a tool to transfer data from or to a server, using one of the supported protocols: HTTP, HTTPS, FTP, FTPS, SMB… (see the curl Manual for a list of supported protocols). curl also supports HTTP POST, authentication, cookies, metalinks, file downloading and more. curl is an excelent download manager because support progress bar and allows to pause/resume the download from the last downloaded byte.

How to download files using curl Read More »