How To Set PHP Version Parity in Your Shell and in Laravel

Whatever it is, though, make sure there’s parity between PHP and Laravel. This way, whenever you run a script, you’ll have consistent results. » Tom McFarlin | tommcfarlin.com

25 de agosto de 2023 · 1 min · 28 palabras · Nacho Cano

My beloved PHP cheat sheet

Follow me!: Follow @EricTheCoder_ Here is my cheat sheet I created along my learning journey. If… » DEV Community | dev.to

19 de diciembre de 2020 · 1 min · 21 palabras · Nacho Cano

Redux in 30 lines of PHP

To get the full details behind Redux, Sorin Nunca has recreated it using PHP: As I usually try to understand the tools I’m using, the following tries to be a toy implementation of Redux in PHP, in the hopes of gaining a deeper understanding of the concepts behind Redux. Also… » Posted by | bram.us

25 de febrero de 2020 · 1 min · 55 palabras · Nacho Cano

How we made editing Wikipedia twice as fast

HipHop Virtual Machine, or HHVM, reduces the median page-saving time for editors from about 7.5 seconds to 2.5 seconds, and the mean page-saving time from about 6 to 3 seconds. Below, I’ll explain the technical background for HHVM on MediaWiki and some of the far-reaching benefits of this change that will go beyond the recent performance gains. » Ori Livneh | blog.wikimedia.org

11 de enero de 2015 · 1 min · 62 palabras · Nacho Cano

Command-line Forensics of hacked PHP.net

The good people from Barracuda Labs were kind enough to share a PCAP file from the PHP.net compromize on their blog. I decided to have a closer look at that PCAP file to see what can be extracted from it. Since the PCAP contains Windows malware I played safe and did all the analysis on a Linux machine with no Internet connectivity. » Erik Hjelmvik | netresec.com

5 de noviembre de 2013 · 1 min · 67 palabras · Nacho Cano

Utilizando un tema hijo en WordPress

Un tema hijo en WordPress es un tema que hereda la funcionalidad de otro, el tema padre, permitiendo modificar el estilo o añadir funcionalidades a éste. Es la forma más sencilla y segura de modificar un tema existente, ya sean cambios grandes o pequeños. Si utilizamos un tema de otros, ya sea gratuito o de pago, crear un tema hijo es una buena idea. ¿Por qué crear un tema hijo? Porqué en algún momento cambiaremos algo del tema que estamos usando, y en algún momento posterior es posible que haya una actualización de dicho tema. En el mejor de los casos, nos deberemos preocupar de guardar los cambios que hemos hecho en el tema y aplicarlos de nuevo tras la actualización. En el peor, perderemos los cambios que hemos hecho. ...

13 de julio de 2013 · 3 min · 442 palabras · Nacho Cano

From SQL injection to shell

This course details the exploitation of SQL injection in a PHP based website and how an attacker can use it to gain access to the administration pages. Then, using this access, the attacker will be able to gain code execution on the server. The attack is divided into 3 steps: Fingerprinting: to gather information on the web application and technologies in use. Detection and exploitation of SQL injection: in this part, you will learn how SQL injections work and how to exploit them in order to retrieve information. Access to the administration pages and code execution: the last step in which you will access the operating system and run commands. » pentesterlab.com

8 de octubre de 2012 · 1 min · 112 palabras · Nacho Cano

Saltar a una entrada aleatoria en WordPress

Si queremos añadir un enlace que nos permita saltar a una entrada aleatoria de un blog en WordPress, basta crear un archivo que contenga lo siguiente: <?php require('wp-blog-header.php'); query_posts(array('orderby' => 'rand', 'showposts' => 1)); if (have_posts()) : the_post(); $url = get_permalink($post->id); header("Location: " . $url); endif; wp_reset_query(); ?> Guardamos el archivo en una ruta accesible, por ejemplo en la raíz del blog. Sólo queda añadir el enlace para que nos lleve a una entrada aleatoria. ...

27 de julio de 2012 · 1 min · 147 palabras · Nacho Cano

Definitive PHP security checklist

There was a recent question about a PHP security checklist on a forum I frequent, and I’ve decided to write my own comprehensive checklist to fill the void. There’s something for everyone but the security expert. In fact, you might find an issue that you never thought about. Securing PHP web applications would be a better title for this article. » sk89q.com

6 de julio de 2012 · 1 min · 62 palabras · Nacho Cano

PHP Database Access: Are You Doing It Correctly?

We’ve covered PHP’s PDO API a couple of times here on Nettuts+, but, generally, those articles focused more on the theory, and less on the application. This article will fix that! To put it plainly, if you’re still using PHP’s old mysql API to connect to your databases, read on! » tutsplus.com

25 de junio de 2012 · 1 min · 52 palabras · Nacho Cano