Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-15 Thread Rodrigo Reis da Rocha
Just adding one line to the topic... Interfaces are like C or C++ headers files. Them are used to another class(program in C) to call methods without care the implementation. In other hand abstract classes are (as the name says) an abstract way to use multiple specializations of the same group of c

[PHP] Help with SSH2 persistent connection in php

2008-04-11 Thread Rodrigo Reis da Rocha
Hi, I want to make an persistent connection via ssh2 to a server with php, but all I can get with the present API is an temporary connection that is lost at end of the script. Anyone have an idea of how I can save the Resource and reuse it on future scripts instead of having to reconnect over and o

[PHP] Please help

2001-05-10 Thread Rodrigo Reis da Rocha
Hi, I have a problem with the session variables. nome_usuario = "vazio"; $this->webmaster_mail = "[EMAIL PROTECTED]"; $this->acao = "inicio"; $this->url_sistema = "http://localhost/web/ "; } function autorizaSistema($param_usuario, $param_passwd){ //Verificar no banco se o usuario exis

[PHP] Problems with session

2001-05-10 Thread Rodrigo Reis da Rocha
Hi, I have a problem with the session variables. nome_usuario = "vazio"; $this->webmaster_mail = "[EMAIL PROTECTED]"; $this->acao = "inicio"; $this->url_sistema = "http://localhost/web/ "; } function autorizaSistema($param_usuario, $param_passwd){ //Verificar no banco se o usuario exis

[PHP] session

2001-05-09 Thread Rodrigo Reis da Rocha
Hi, I have a problem with the session variables. nome_usuario = "vazio"; $this->webmaster_mail = "[EMAIL PROTECTED]"; $this->acao = "inicio"; $this->url_sistema = "http://localhost/web/ "; } function autorizaSistema($param_usuario, $param_passwd){ //Verificar no banco se o usuario exis

[PHP] session question

2001-05-08 Thread Rodrigo Reis da Rocha
I have a question about session variables. In my page the session variables are not seen by the pages where tem are not declared. I´ve used "session_register(variable)" and so after at another page I´ve called "echo $variable;" and it generate a message that the variable does not exists. The sess

[PHP] session question

2001-05-08 Thread Rodrigo Reis da Rocha
I have a question about session variables. In my page the session variables are not seen by the pages where tem are not declared. I´ve used "session_register($variable)" and so after at another page I´ve called "echo $variable;" and it generate a message that the variable does not exists. The ses