[PHP] Apache - Virtual Name
How can I configure the apache, so that my local access is different from http://localhost. I want to access my local server through a virtual name (Example: http://www.test.com). I only want to change the name "localhost" for any other name. I already possess a domain (Example: www.test.com) and I want to use this same name also in my local server in case I am not connected in the internet, only to simulate some cases of PHP. Thanks, André -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail()
I have been installing NuSphere (Apache and PHP 4.0.6). As that I configure the Apache or PHP, so that I get to use and to test the command mail in my computer? André -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Age
Could anybody find out the simplest method of calculating the age? The date of birth is in the format string ('01/01/1977'). André -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Segurança de arquivos no servidor (SORRY)
SORRY WRONG MAILINGLIST André Alguém poderia me informar algum tutorial ou poderia até mesmo me esclarecer algumas dúvidas sobre como manter segurança dos arquivos no servidor. Em alguns arquivos PHP eu possuo algumas chamadas: -> include "arquivo.inc" Qual modo (CHMOD) este arquivo deverá ter para que este arquivo não seje chamado ou baixado por alguma pessoa? -> require "arquivo.req" Qual modo (CHMOD) para este arquivo? pode ser o mesmo do include ... ? Possuo na página vários arquivos compactados (.ZIP). http://www.?.com/arquivos/teste1.zip (*) Como que eu devo fazer, para que a pessoa não baixe automaticamente este arquivo colocando essa linha no navegador. Eu sei que posso fazer algumas manobras nos meus links como: http://www.?.com/download.php?Arq=teste1 A pessoa não sabe o diretório (/arquivos/teste1.zip), mas se ele descobrir e mesmo assim baixar da formar (*), tem como travar? Abraços, André -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Segurança de arquivos no servidor
Alguém poderia me informar algum tutorial ou poderia até mesmo me esclarecer algumas dúvidas sobre como manter segurança dos arquivos no servidor. Em alguns arquivos PHP eu possuo algumas chamadas: -> include "arquivo.inc" Qual modo (CHMOD) este arquivo deverá ter para que este arquivo não seje chamado ou baixado por alguma pessoa? -> require "arquivo.req" Qual modo (CHMOD) para este arquivo? pode ser o mesmo do include ... ? Possuo na página vários arquivos compactados (.ZIP). http://www.?.com/arquivos/teste1.zip (*) Como que eu devo fazer, para que a pessoa não baixe automaticamente este arquivo colocando essa linha no navegador. Eu sei que posso fazer algumas manobras nos meus links como: http://www.?.com/download.php?Arq=teste1 A pessoa não sabe o diretório (/arquivos/teste1.zip), mas se ele descobrir e mesmo assim baixar da formar (*), tem como travar? Abraços, André -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] echo " HTML code ";
Personal, I think I expressed myself wrong, because it is like this that I use, but the one that I want to know, if the echo" HTML code " it is much slower than if I put the HTML code out of the PHP block. Can these several echo's harm the processing of the server? Can that turn slow the visualization of the page? Should I remove the maximum possible of echo"... HTML Code ... "; or can I leave how it is? André At 11:04 31/1/2002 -0300, you wrote: >I have a PHP file that I show values of variables in several parts, and >for that I put in almost the whole page > >echo"... HTML code + PHP codes (variables, functions, etc.) + HTML code... "; > > >I don't know nor why I put, I think it went to not to be finishing and >beginning PHP parts as: > > HTML code echo"$variable"; PHP functions; etc.?> HTML code PHP functions; etc.?> HTML code > >Can these several echo's harm the processing of the server? Can that turn >slow the visualization of the page? Should I remove the maximum possible >of echo"... HTML Code ... "; or can I leave how it is? > > >André > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] echo " HTML code ";
I have a PHP file that I show values of variables in several parts, and for that I put in almost the whole page echo"... HTML code + PHP codes (variables, functions, etc.) + HTML code... "; I don't know nor why I put, I think it went to not to be finishing and beginning PHP parts as: HTML code HTML code HTML code Can these several echo's harm the processing of the server? Can that turn slow the visualization of the page? Should I remove the maximum possible of echo"... HTML Code ... "; or can I leave how it is? André -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]