Skip to content

This script opens up all *.php and *.inc files, searches for PHP4 Sessions and replaces them with the PHP5 equivalent. All edits are stored in a log file.

Notifications You must be signed in to change notification settings

JohnCarlosReed/php4to5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Fix PHP SESSION

  • After upgrading to PHP5 from PHP4, your SESSION variable will break. This script searches the current directory and subdirectories(or file/directory inputed as a cmd line parameters) for *.php and *.inc files.
It then takes every instance of:
   "session_register("name")" and replaces it with $_SESSION['name']
It also replaces every variable of $name with $_SESSION['name']

About

This script opens up all *.php and *.inc files, searches for PHP4 Sessions and replaces them with the PHP5 equivalent. All edits are stored in a log file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages