Hello,
All is in the title. Here is the code which doesn't work :
<Files ****.php>
AuthName "Acces restreint"
AuthType Basic
AuthUserFile "/home/****/public_html/.htpasswd"
Require valid-user
</Files>
Is there something that miss with recent changes to Apache ?
Thank you for your answers.
Up.
Please. It's been a long time, now.
Some of my webpages are protected by htpasswd.
It used to work, but since weeks, it doesn't ask anymore for login and password. It displays a 401 error.
Any idea to fix the problem ?
Thanks in advance.
I finally found a way. I created an archive via Cpanel and then downloaded it from my browser.
We saw more convenient, but it works.
It would still be nice to do something so that we can use ftp.
Thanks again.
Hello,
I've been trying for several days to make a backup of my website, without success. To reflect the new limitations, I set FileZilla so that there is only one connection. But a number of files do not download. The download bar freezes, then the software indicates again "421 Too many...
Hello,
I have problems with my website since yesterday.
For the second times, i'm unable to access to it.
It says : "Unable to connect to database ! MySQL said: Too many connections"
Somebody else have this matter ?
Thank you.
EDIT : I'm on level
Thank you all. Everything is fine now.
Here's the code :
date_default_timezone_set('Europe/Paris');
$dt=new DateTime();
$offset=$dt->format("P");
try
{
$bdd = new PDO('mysql:host=localhost;dbname=****', '****', '*****');
$bdd->exec("SET time_zone='$offset';");
}
catch(Exception $e)
{...
Thanks
It seems to be something like that but "mysql_query(“SET time_zone = ‘-6:00′”)" gives :
Warning: mysql_query(): Access denied for user '***'@'localhost' (using password: NO) in /home/***/public_html/minichat.php on line 11
Warning: mysql_query(): A link to the server could not be...
Thank you for your answers.
I've tried bdistler's script. It works but it doesn't help.
It seems that the problem comes from the database and not from php, as i thought.
Any idea ?
Thank you again.
Hello,
Since php 5.4 is used by x10hosting, date_default_timezone_set('Europe/Paris') doesn't work.
My website returns server's hour instead of Paris' hour.
I've not found any documentation which says that the function is deprecated or something like that.
I don't know how to solve the...