its doesnt use things like .....$_POST,$_GET......a variables of one page is available in another page directly when page is called..
i am using php 4 in local computer . under default config...where i think global registers are off...
so i can see all the warning..notice all over ..some pages works but application doesnt work completely..i made many part of application using GET and POST ..where required...but there too many..(the script is not syntaxically no where wrong but it has not used any get,post...and may be was written with global reg on)
i uploaded the original files to my server..internet server..(with out edit) it worked perfectly fine with out any notices..and errors...
(i think global reg are on)
so should i continue with the script...or should i abandon it...(should i turn my local setting global reg on)..and just continue it..
will be there any security problem using such pre script....i have no second option as i didn found any other free script for it...
well i think its is supressing those notices...online..is it good practice to do so...
please any suggestion...
example of programming..
Code: Select all
<?php //begin of page
s
if ($random == 1) {
$jokeid = get_random_joke(1);
} else {
$jokeid = $id;
}//directlty $random is used with any pre declare so is $id so it gives notice...
actually think that roughly should be
$jokeid = ( isset($_GET['id']) ) ? $_GET['id'] : $_POST['id'] ; //this script is so..
second example
<?php
if ($listtype == "") {
$listtype = 1;
}
if ($catid != "") {
$listtype = 4;
}
/*$listtype directly used ...actually that list type is being passed from another page in GET array...but it is directly accessible...so is that catid*/
//even all the POST of form are used so..
loggedin = true;
session_register("loggedin");..old style session..