Jump to content

Archived

This topic is now archived and is closed to further replies.

pillot1005

PHP First Time User Question

Recommended Posts

I don\'t know how to set up a database for a membership PHP script that I want to put on my website. I read a lot of articles and forums on this site but I still cannot find what I am looking for. This is what has occured on my site since I installed the script through my FTP.

 

Warning: mysql_pconnect(): Access denied for user: \'cdlocal@host.maximahost.us\' (Using password: YES) in /home/cdlocal/public_html/db.php on line 11

Couldn\'t connect to server.

 

Could anyone tell me what I am doing wrong? I just took the script I found on this site and sent it through my FTP with some modifications where they were needed.

 

Regards,

Christopher

Share this post


Link to post
Share on other sites
Guest Psycho

Hi pillot1005,

 

The error means that the username that you use is incorrect.

You could use this script to try connecting.

 


<?php

$ftp_server = "IP-Adress";

$ftp_user = "Your Uername";

$ftp_pass = "Your password";



// set up a connection or die

$conn_id = ftp_connect($ftp_server) or die("Couldn\'t connect to $ftp_server"); 



// try to login

ftp_login($conn_id, $ftp_user, $ftp_pass) or die ("Wrong username or password");

?>

 

Hope this helps

Have a nice day

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.