[PHP] FTP + Password ?

2007-02-14 Thread Helder Lopes

i people. I need a help.

How to put a password in a folder, in the ftp, via a script?

Anybody knows??

Im pt, Sorry for my english!!


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP]Password and FTP Folder

2007-02-15 Thread Helder Lopes

Hi people

hi have a problem

i need a script for make a ftp folder that have a password for enter

Have anyway to do this??


/mrpostiga


[PHP]Transform a block of code in PHP

2007-02-23 Thread Helder Lopes

how to transform a block of code in html to php??
for example this,


  P.M.R. Leiria  -  Produtos para Mec. e
Racionalização Informática, Lda.
Av. Dr. Francisco Sá Carneiro nº 1448 2415-376
Leiria
Telefones: 244850010 Fax: 244850019
E-mail: mailto:[EMAIL PROTECTED]">
mailto:[EMAIL PROTECTED]
">[EMAIL PROTECTED]
  Url: http://www.pmrleiria.pt/";>
http://www.pmrleiria.pt/
   
  Ver Mapa da Localização
   

    

   
P.M.R. - Produtos para Mecanização e
Racionalização Informática, Lda.
Rua Sarmento de Beires nº 23-B 1900-410 Lisboa
Telefones: 218472590/1/2 Fax: 2184472589
E-mail:mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]

   

    

   
   SISPOR  - Sistemas, Programação
e Organização Informática,Lda.
   Rua Arquitecto Cassiano Barbosa,44 Escritório nº4
4100-009 Porto
   Telefones: 226105257/59 Fax: 226105262
   E-mail: mailto:[EMAIL PROTECTED]">
[EMAIL PROTECTED]
   Url: http://www.sispor.com/";>
http://www.sispor.com/
   
help me please in this journey

/mrpostiga


[PHP] Error in Script!!!

2007-03-05 Thread Helder Lopes

Erro no banco de
dados!");//line 23
$total = mysql_num_rows($result_id);
// Caso o usuário tenha digitado um login válido o número de linhas será 1..

if($total)
{

   // Obtém os dados do usuário, para poder verificar a senha e passar os
demais dados para a sessão

   $dados = mysql_fetch_array($result_id);



   // Agora verifica a senha

   if(!strcmp($senha, $dados["password"]))

   {
   // TUDO OK! Agora, passa os dados para a sessão e redireciona o
usuário
   $_SESSION["username"]   = $dados["username"];
   $_SESSION["realname"]   = $dados["realname"];
   $_SESSION["gid"]= $dados["gid"];
   require_once ('../utilizadores/listar.php');
   exit;
   }

   // Senha inválida
   else
   {
   echo "Senha inválida!";
   exit;
   }
}
// Login inválido
else
{
   echo "Error";
   exit;
}
?>

Why this script give me a error:


*Warning*: mysql_query(): supplied argument is not a valid MySQL-Link
resource in *ver.php* on line *23*


[PHP] error in Script

2007-03-05 Thread Helder Lopes

In other file

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] RE:[[PHP] Error in Script!!!

2007-03-05 Thread Helder Lopes

Helder Lopes wrote:

Erro no banco de
dados!");//line 23

Where is $con defined???
-B

$total = mysql_num_rows($result_id);
// Caso o usuário tenha digitado um login válido o número de linhas será 1..


if($total)
{

  // Obtém os dados do usuário, para poder verificar a senha e passar os
demais dados para a sessão

  $dados = mysql_fetch_array($result_id);



  // Agora verifica a senha

  if(!strcmp($senha, $dados["password"]))

  {
  // TUDO OK! Agora, passa os dados para a sessão e redireciona o
usuário
  $_SESSION["username"]   = $dados["username"];
  $_SESSION["realname"]   = $dados["realname"];
  $_SESSION["gid"]= $dados["gid"];
  require_once ('../utilizadores/listar.php');
  exit;
  }

  // Senha inválida
  else
  {
  echo "Senha inválida!";
  exit;
  }
}
// Login inválido
else
{
  echo "Error";
  exit;
}
?>

Why this script give me a error:


**Warning**: mysql_query(): supplied argument is not a valid MySQL-Link
resource in **ver.php** on line *23*

in a file with a name mysql.php
the $con is correct
with the other that results


[PHP] RE:[[PHP] Error in Script!!! - SOLVED

2007-03-05 Thread Helder Lopes

Thanxs for helping!

The error has that i was not calling the database, neither the connection!!

Im so stupid!  Sorry for your time lost!


[PHP] Session_Start() error

2007-03-05 Thread Helder Lopes

*hi people,

Hi have this error in the session cookie, how to solve this???

Warning*: session_start()
[function.session-start]:
Cannot send session cache limiter - headers already sent (output started at
D:\PHP\xampp\htdocs\index.php:10) in *D:\PHP\xampp\htdocs\verifica.php* on
line *3*


[PHP] List all files in directory

2007-03-06 Thread Helder Lopes

Hi people

How to php give to me a list of all files in one directory to make an
editor???


[PHP] How to verify Folder Existence?

2007-03-09 Thread Helder Lopes

Hi people,

how to verify if folder exists in server??


[PHP] Flash animation without install Flash!

2007-03-21 Thread Helder Lopes

Hi people,

Because the problems with virus in internet the people dont install activex
controls.
My question is:

How to put a flash in the website without asking the person to install
activex control??

/Helder Lopes