> Began with one question, but some how I figure it out some stuff that
I
> will need, and before I forget to ask, better I'll do, and are from
> different topics related to the php. No more than one message is sent,
> because the traffic on the list. Hope that in some time I get the
responde
> of my questions.
> 
> 1) Does somebody know were to find a free server that supports php to
make
> some tests before using my own server? For the security I can't put
and
> delete or replace the same file more than 5 time on the same day (for
the
> corrections, add new stuff and so), then I wanted to have one server
in
> that I can send, delete or replace the same file more than 5 times at
the
> same day.

I don't know of any off hand, but I know they exist. A search on google
will turn up some. Why not just set up a development server on your own
machine, though? Apache and PHP are free and simple to set up (depending
upon your OS), so you can test everything before you even upload it. 
 
> 2) Does somebody know how to get the error string, in the case of one
> occurs, and change the language of the string that the program sends
and
> translate into spanish (my own language) by example, or change the
> explanation of the error?

Take a look at the set_error_handler() function.
www.php.net/set_error_handler You can trap the errors with that and then
apply any translation you need. Gettext may be of some use here, but
I've never used it. www.php.net/get_text

> 3) It must be a way to known the prefered language to show a page (eg.
ES,
> ES-GT, DE, etc.), but I don't know wich one is in php. Can somebody
help
> me?

This one is tricky because you're relying on something from the client
side. You don't know if it's correct or not. The best option is to just
offer them a simple drop down to choose their language and then remember
it for them (with a cookie) after that point. 

> 4) Does somebody know about the md5 encryption algorithm? (I want to
know
> some stuff to implement passwords on a php programs usign JavaScript
as
> support with html). Any idea?

MD5() creates a 32 character hash of a string. There is no way to get
the original string or password back. You must use md5() on the password
that the user supplies and compare that to the md5() values you have
stored. There is an md5() implementation within JavaScript that I've
heard about. 

> By the way I joined the list the 2nd day of march (about the 22 GMT),
and
> I can't chech in older messages if one of my questions were answered
> before.

Welcome to the list. There is an archive that you can search. 

http://marc.theaimsgroup.com/?l=php-general

---John Holmes...



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

Reply via email to