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
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
Follow me!: Follow @EricTheCoder_ Here is my cheat sheet I created along my learning journey. If… » DEV Community | dev.to
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
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
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
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. ...
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
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. ...
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
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