Search found 4 matches

by playuk
Fri Sep 22, 2006 4:54 pm
Forum: General Discussion
Topic: General question about PHP
Replies: 14
Views: 4127

I did an amount of dev in ASP.NET using C# a while ago. There are positives and negatives to the language. As AKA Panama Jack says you do get some cryptic error messages with ASP and some of the ways in which you have to do things are a bit backwards. In its defence it can be a lot quicker for getti...
by playuk
Thu Sep 21, 2006 5:17 am
Forum: PHP - Code
Topic: Problems with Variable Scope using Include_Once
Replies: 4
Views: 941

OK, thanks for the help...

For some reason I think my local install of PHP and apache was having a funny 5 minutes because when I have run the same code today, it is now working...

That is computers for you :)
by playuk
Wed Sep 20, 2006 11:29 am
Forum: PHP - Code
Topic: Problems with Variable Scope using Include_Once
Replies: 4
Views: 941

Code: Select all

$link = mysql_connect($host, $user, $password) or die("Connection to database could not be made");
mysql_select_db($database, $link);
There is no function / method defined within this file.

I have tried giving the include_once a local filesystem path instead, but I face the same problem.
by playuk
Wed Sep 20, 2006 11:07 am
Forum: PHP - Code
Topic: Problems with Variable Scope using Include_Once
Replies: 4
Views: 941

Problems with Variable Scope using Include_Once

Hello, I am fairly new to programming PHP, however I have knowledge of a few other languages. I am sure that there is a simple solution to this problem, but I may just be unable to see it. Details about my setup... PHP Version: 5.0.0 Display Errors: On Error Level: E_ALL Register Globals: Off The Pr...