Jump to content


mi7chael

Member Since 05/07/2005
Offline Last Active 26/04/2010, 15:26
-----

Posts I've Made

In Topic: Segurança: Trojan Vindo Via _Get

30/03/2010, 16:19

ninguém ??

In Topic: Meu Primeiro Login E Senha

26/03/2010, 00:10

vc salvou o arquivo como .php ou .html ?

In Topic: Segurança: Trojan Vindo Via _Get

25/03/2010, 21:42

Dei uma olhada, e inicialmente pensei em descartar o mime_content_type e estudar o fileinfo, mas estou apanhando pra caramba aqui. Tô tentandoa char um tutorial, ou algo assim, pq tem q instalar algumas coisas, configurar, etc. Se eu não conseguir, posto aqui novamente... :)

É... não deu certo
Tentei fazer algumas coisas seguindo o manual do PHP, mas tem várias coisas q eu não sei como faz.
Na parte da instalação diz:

It is really strange to find that installing filenfo extension on windows is not yet fully explained. Here are the latest most up-to-date steps to make this work:

1. Add php_fileinfo.dll to the list of enabled extensions
extension=php_fileinfo.dll

2. Download GNU file package for windows
get it from here: http://gnuwin32.sour...ile-bin-zip.php

Extract the folder from the archive called shared\file which contains 4 magic files (magic, magic.mgc, magic.mime, magic.mime.mgc).

3. Place these 4 files in a known place

4. Add system enviroment variable MAGIC that points to the file called magic. For example if you placed magic files in folder called magic in c:\php that means that the propper path is c:\php\magic\magic

5. If you use IIS restart it and fileinfo is ready for use

5a. If you use apache you will have to restart operating system for the service to acknowledge MAGIC env. variable.


O número 1 eu já não entendi o q q é pra fazer...
Baixei o conteúdo do link do tópico 2, mas ele não tem os 4 arquivos dentro do endereço especificado, só tem 2.

Alguém me ajuda ??
O PHP instalado no meu pc é o 5.2.3, e o do servidor q eu utilizo, é o 5.2
Link pro manual: http://br.php.net/ma...nstallation.php

In Topic: Omitir Mysql_Real_Escape_String

25/03/2010, 20:06

Valeu man, brigadão

In Topic: Segurança: Trojan Vindo Via _Get

25/03/2010, 16:12

Estou tentando utilizar, mas só dá erro.
Tô pondo assim:

echo mime_content_type('imagemteste.jpg');

E aí dá:

Fatal error: Call to undefined function mime_content_type() in D:\AppServ\www\teste2.php on line 35

IPB Skin By Virteq