php-windows Digest 28 Oct 2001 07:48:15 -0000 Issue 825

Topics (messages 10065 through 10070):

Re: [PHP] What is a class
        10065 by: Olexandr Vynnychenko

IIS PHP
        10066 by: Josh Seward

php.ini
        10067 by: sharan

php_cpdf.dll
        10068 by: Hace

Re: What is a class
        10069 by: Hace

Toronto PHP user group active.
        10070 by: Dariush

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


Hello Jack,

Saturday, October 27, 2001, 1:51:01 PM, you wrote:

J> Dear all
J> I'm fresh on PHP, there is a question which i don't understand , even i had
J> read the book about PHP.
J> There is a Class and object in PHP, but i don't quite understand what is
J> that for.
J> I had look at some of the Example in PHP.net and i know most of it, but
J> there is a operator :
J> $this->edible = $edible;
J> What is the "$this -> " stand for?

J> Could someone please tell me more???
J> Thx

"$this" is object where the function (which uses "$this") is
declared. Here is an example:

class A
{
  var $aaa = "foo";
  var $bbb;

  function fff()
  {
    echo $aaa;    //$aaa is a local variable
  }

  function ggg()
  {
    echo $this->aaa;    //$aaa is a member of object of class A
  }

  function hhh($newval)
  {
    $aaa = $newval;
  }

  function iii($newval)
  {
    $this->aaa = $newval;
  }

  function jjj()
  {
    ggg();
  }

  function kkk()
  {
    $this->ggg();
  }
}

$obj = new A;      //creating object (or instance) of class A
echo $obj->aaa;    //printing object member variable $aaa
//foo
$obj->fff();       //fff() prints its own local variable $aaa (no value)
//
$obj->ggg();       //ggg() prints object member $aaa
//foo
$obj->hhh("bla");  //hhh() changes local variable's value to "bla"
echo $obj->aaa;
//foo
$obj->iii("bla");  //iii() changes object member's value to "bla"
echo $obj->aaa;
//bla
$obj->jjj();       //jjj() tries to call function ggg() that doesn't exists
//!!!error!!!
$obj->kkk();       //kkk() tries to call object member function ggg()
//bla


-- 
Best regards,
 Olexandr                            mailto:[EMAIL PROTECTED]






I am having trouble with my IIS server. When I restart the site runs fine, But only 
for one visit. If I leave the page or close the browser and try to return the page 
cannot be found. 

Can somebody explain this to me?

Thanks, 





Hey all,

My php.ini file is not in the WINNT directory.  But phpinfo() functions
tells me it is.  Anywhere else i should look for the file.  I am using .dll
file with apache 1.3.20.

Thanks in Advance,
Pritpal Dhaliwal







Looking at:

http://www.php.net/manual/en/ref.cpdf.php

Does anybody know where the patched php_cpdf.dll for windows, as
suggested above by Justin (bottom of page), can be downloaded?

Unfortunately, Justin already responded to me that he runs linux and
therefore is not able to compile a dll for windows
himself. So if somebody else with C-expertise could help me out and
put the dll for download I would be delighted.

Thanks in advance,

-- 
  http://hace.cjb.net




Jack schreef:

>there is a operator :
>$this->edible = $edible;
>What is the "$this -> " stand for?

$this-> refers to the class itself.

So,

class myclass {

  function write() {
     ...some code
  } // end function write

  function checkfirst() {
    ... somecode
    $this->write();
  } // end function checkfirst

} // end class myclass

>Could someone please tell me more???

hth,
Hace

-- 
  http://hace.cjb.net




Toronto PHP user group active.

Welcoming all php developers with questions and answers.

If we get enough people we will be setting up meetings but again based
on how many people we can have.

www.realsoftstudio.com
[EMAIL PROTECTED]




Reply via email to