s4n7h0 / xvwa

XVWA is a badly coded web application written in PHP/MySQL that helps security enthusiasts to learn application security.
GNU General Public License v3.0
1.69k stars 339 forks source link

Code needs to be updated to run with PHP 7.0.x #17

Closed imdadvs closed 7 years ago

imdadvs commented 8 years ago

_mysqlconnect, _mysql_fetcharray(), _mysql_selectdb() and other MySQL PHP functions are used which doesn't work with updated version of PHP. I had to replace it with mysqli_connect and similarly for others. Also this error is common with new version of PHP PHP Notice: Undefined variable: input in C:\xvwa\vulnerabilities\xpath\home.php on line 35

Code needs to be updated to run with PHP 7.0.x

Eg : _PHP Fatal error: Uncaught Error: Call to undefined function mysql_selectdb()

s4n7h0 commented 8 years ago

@imdadvs Thanks for the input. That would surely a bit lot of code changes. I will look into it for next update release.

s4n7h0 commented 7 years ago

@imdadvs hey, changes are done :) Thanks for suggesting.