Astahost.com   Mar 22, 2010
Open Discussion & Free Web Hosting > Computers & Tech > Programming > Scripting > PHP

Question On Depecrated Tracking Variables In Php

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Programming > Scripting > PHP

Question On Depecrated Tracking Variables In Php

shaldengeki
It seems I can no longer use the <?php_track_vars?> line... it returns an error saying this:

Warning: <?php_track_vars?> is no longer supported - please use the track_vars INI directive instead in <insert filepath here> on line 1

So what do I replace the track_vars command with? O_o Any help would be appreciated.

Comment/Reply (w/o sign-up)

OpaQue
The code you are using was used before which acted like the READPARSE() function in perl. This code automatically puts all the values passed to a script by get, post etc in an array. But after PHP 4.0.3 this was removed and was enabled by default in the forum of track_vars. So in other words, you simply dont have to include it.

The Following Explanation is given in the PHP Manual.
CODE
If enabled, then Environment, GET, POST, Cookie, and Server variables can be found in the global associative arrays $_ENV, $_GET, $_POST, $_COOKIE, and $_SERVER.
The thing that you are using is quite outdated and if enabled..
Note that as of PHP 4.0.3, track_vars is always turned on.


I hope the above information is useful.

-OpaQue.

Comment/Reply (w/o sign-up)

shaldengeki
Ah, I see. I'd originally put that just in case, since I wasn't exactly sure if it was defaulted or not. Anyways, thank you for the help!

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : question, depecrated, tracking, variables, php

  1. Php Long Variables
    How do you make them? (5)
  2. Quickly Create Form Variables
    simple form, variable creation, referer check, safe guard variables (5)
    The reason I wanted to share this is I've seen so many people do this with their forms when
    using PHP. CODE $username = $_POST ; $password = sha1($_POST ); $another_var = $_POST ; ...
    and so on, just imagine if you had a large number of form inputs, do you really want to create each
    and every variable name? Why people do this, is probably due to most of the examples I've seen
    on the web, that does not show an easier and much quicker way of doing it. Though my way might be
    much easier and quicker, it does introduce security concerns which I've tried....
  3. User Authentication Session Handling Problems
    Authorization server variables not staying across pages (14)
    This is quite a bit of problem I am facing, and I cannot point exactly where I am going wrong. I
    have been lurking around here at the Asta Host forums with regard to login and user authentication
    scripts and I have got as far as this: - Starting a session - Registering a session variable -
    Using the variable to check if the user is authenticated or not. - Authenticating the user through
    MySQL database - Logging of the user, by setting the session variable to un-authenticated I have
    been able to achive the following things too that I think is not related to this proble....
  4. Php : Variables Included Dont Work In Functions
    Variables from Included files dont work (4)
    Today, I came up with this strange PHP behaviour. Just wanted to know if anyone has any
    suggestions! I make a common variable/function file called config.php. I put in my generally used
    functions in it. Suppose this is my file CODE // -----VARIABLES --- // $a=10,$b.... //
    -----FUCTIONS--- // function doit() { print "A value is " . $a; } ?> Here, suppose we execute
    this file directly. Since A has a global scope, it does work perfectly. But if this same file is
    imported in another file say, mainfile.php CODE // -----VARIABLES --- // $c,$d.... include &#....

    1. Looking for question, depecrated, tracking, variables, php



See Also,

*SIMILAR VIDEOS*
Searching Video's for question, depecrated, tracking, variables, php
advertisement




Question On Depecrated Tracking Variables In Php

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com



Creative Commons License