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.


Messages - krappleby

Pages: [1]
1
PHP / Re: help with include_once
« on: November 27, 2017, 07:02:35 PM »
ADDITIONAL

ok.. so after further investigation there is somehting strange happening..

i have a html page. set up. which creates a table and puts an image inside the table.. now. if i set a variable, lets say $totalcost = 100; at the top of the page, and then put echo $totalcost at hte bottom of hte page, nothing shows..

however if i put the $totalcost = 100 a line or two above the echo statement it prints the variable to the screen.. for example

Code: [Select]
<?
$totalcost = 100;
?>
<html>
<head>
</head>
<body>
</body>
</html>
<?
echo $totalcost;
?>
 

This does not work

Code: [Select]
<html>
<head>
</head>
<body>
</body>
<?
$totalcost = 100;
?>
</html>
<?
echo $totalcost;
?>

This works..

i really dont understand this

2
PHP / Re: help with include_once
« on: November 27, 2017, 03:28:32 PM »
ADDITIONAL INFO

There is no problem sending variables from one page to another, my login form sends both the username and password across to a second script no problem, of course i cant use the data to check the db because of the settings file not being included properly..

Cheers
keith

3
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

4
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..

5
Installation / Re: OK.. So where is the download
« on: November 25, 2017, 10:14:50 PM »
just to iterate, i am quite capable of installing the software myself, however,

based on the only way i can see to get this software installed is to pay a donation

note however, a donation is a free payment out of the goodness of my heart (which i have no problem in doing) what i don't agree with is being forced to pay a fee and being told its a donation, because its not.

don't get me wrong, i have no problem paying if that's the only way, but don't call it a donation.

6
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]