Slashdot Mirror


User: codegoat

codegoat's activity in the archive.

Stories
0
Comments
7
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 7

  1. Re:Still re-coding for register_global_variables.. on PHP 5 Beta 1 · · Score: 1

    oh sure, make me look like a dumbass.

    Thanks, didn't know that one.

  2. Re:Requires Microsoft Visual C++ on PHP 5 Beta 1 · · Score: 0

    ahhh... It is a hassle, I know... but this is why I have both :)

    Actually, all 3. Windows, Linux and OS X ;)

  3. Re:Still re-coding for register_global_variables.. on PHP 5 Beta 1 · · Score: 0

    sonova, selected something wrong. ;)
    ---

    if you have a huge site, doing that is a quite a tedious job.

    If you want a quick fix. Do the following for all of the variable arrays.
    --

    foreach( $HTTP_GET_VARS as $key => $value )
    {
    $$key = $value;
    }

    --
    As I said, just do that for POST, COOKIE, SESSION etc. Also, you can change the order so that POST has more weight than get (POST variables overwrite GET variables.) by simply doing the POST after the GET :)

    Do this in one file and include it in the top of every page. (If you have a config file, do it there, so you don't have to go and include it throughout your entire site)

    This is an easy fix for doing what you want.

    -goat

  4. Re:Still re-coding for register_global_variables.. on PHP 5 Beta 1 · · Score: 1, Informative

    if you have a huge site, doing that is a quite a tedious job. If you want a quick fix. Do the following for all of the variable arrays. -- foreach( $HTTP_GET_VARS as $key => $value ) { $$key = $value; } -- As I said, just do that for POST, COOKIE, SESSION etc. Also, you can change the order so that POST has more weight than get (POST variables overwrite GET variables.) by simply doing the POST after the GET :) Do this in one file and include it in the top of every page. (If you have a config file, do it there, so you don't have to go and include it throughout your entire site) This is an easy fix for doing what you want. -goat

  5. Re:Requires Microsoft Visual C++ on PHP 5 Beta 1 · · Score: 0

    It is all free in linux ;)

  6. Re:mysql? on PHP 5 Beta 1 · · Score: 0

    yeah, I have both php4 and 5 running... just to see how 5 is ;) .php5

  7. mysql? on PHP 5 Beta 1 · · Score: 0, Redundant
    "Due to issues surrounding the MySQL 4.0 license, the MySQL are no longer bundled with PHP. For more information on these licensing changes, please refer to the MySQL Licensing Policy."
    I am going to assume this will be addressed and fixed by the time php5 releases... But that is rediculous. Does anybody know how to add the support for mysql?