Yes, I believe your understanding is correct... This is my understanding as
well.
In line 1 below, you are creating a new object and using the class constructor
to initialize $a and $b.
In line 2 below, you are creating a new object, with $a and $b's default
values.
In line 3 below, $a and
Hi Guys,
Given below is a PHP script. Can someone help me with the output of the
code. According to my understanding the output should be 3, 50, 20, 10. Can
someone elaborate on the same and provide me an explanation on the flow?
Thanks a lot in advance.
a= $a;
}
if(!is_null($b))
{
$this-‐>b
While not sure it's perfectly handled, have done similar things in past, and
right at tope of page, I just check if the relevant session variable is set,
if so, then might check that the value is relevant, or else use
header("Location: index.php"); followed by exit(); to reroute them back to
login
Hi-
Since you are checking the authtype variable in the environmental variable
for each page which is requested, There cannot be any chance for a intruder
to get access to the page. But then, for an enhanced security, do maintain
a table in db with relation between authtype and access to page and
Hey,
I am working on the application, thought its not OOP currently, I plan to
take it further in a year or so.
Right now, I have 4 access levels which define what the users can do on the
application.
Based on the access levels defined, a session varialble is set called
$_SESSION['authtype'], and