Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - krappleby

Pages: [1]
1
PHP / help with include_once
« on: November 27, 2017, 03:26:02 PM »
Hi guys,

At first i thought this may be a database problem but i think its a php problem somehow..

here is the gist.. i cannot run any queries on a database using the mysql_query function, it comes back with the error access denied for user ''@'localhost'(Using password NO)

anyway.. i have been doing some additional work and investigation and i have found that for some reason my settings file is not being processed properly..

let me explain..

i have a file, i have called settings.php which contains the DB connection string, as well as a login checker system that verifies if a user is logged in, if not it changes the page that is displayed..

Now, every page on my site, loads up and the first command used is

Include_once("settings.php");

so this should pull the settings file into the page.. however

to display the page required i use a variable called $pagetoshow
if a user is not logged in the page to show variable is set to Login
the script then calls the page in the following manner

iframe src="<? echo $pagetoshow; ?>.php"

now.. if i place the login code on the actual page, it works fine. but when its in the settings file its not working..

any ideas as to why the script is not being processed, and the page updated accordingly?

cheers
any help apreciated..

keith

2
MySQL / Access denied for user ''@'localhost' (using password: NO)
« on: November 27, 2017, 04:30:08 AM »
Hi guys,

OK. before i get started, i need to inform you the following.. i am using php 5.3 as it is the only php i know, :)..

so i have installed everything, the cwp on centos, as explained in the installation, have set up the whole server with no problems, set up the website with no problems, but having major problems with the mysql connection.

Code: [Select]
$link = mysql_connect("localhost", "user", "password")
  or die("Unable to connect to MySQL" . mysql_error());
 
$db_selected = mysql_select_db("table", $link);
if (!$db_selected) {
   die ('Can\'t use table: ' . mysql_error());

I get no errors from the above connection attempt, but as soon as i try to run a query i get the main error

Access denied for user ''@'localhost' (using password: NO)

now i can see that for some reason the user details, and password are not being recieved or processed in the DB.

i have rebooted everything, changed passwords, (i cannot access on either root password, or my account password or an additional mysql account set up )

any idea what the problem is..

This has been set up on an internal network. the system does have access to the internet, but is mainly for internal use only..

any help would be appreciated..

3
Installation / OK.. So where is the download
« on: November 25, 2017, 10:01:57 PM »
Hi guys,

Maybe its just me, but i have scoured this website, and i cannot find the files to download the control panel anywhere.. all i see on the install page is .

Request CentOS Web Panel Installation from the experts

No files to download nothing.. i have been right through the instructions, and nothing.. am i doing something wrong?

where are the actual files, im trying to get hold of the 64 bit version..

cheers
keith

Pages: [1]