Warning: virtual() [function.virtual]: Unable to include
Posted by: salmagundi (---.range86-134.btcentralplus.com)
Date: October 29, 2006 08:48PM

hi i am new to the whole PHP Apache MySQL gubbins.I am currently following a handy tutorial on building a blog from:

[www.adobe.com]

I have completed this tutorial before and it worked so i know the code is sound.

I have instaled WAMP5 on my PC but amcreates i keep getting
Warning: virtual() [function.virtual]: whenever i try and use the following code:

<?php virtual ('/Connections/blg_cnx.php'); ?>

Connections/blg_cnx.php is a file dreweaver creates which stores the MySQL database connction info ($hostname_blg_cnx = "localhost"; $database_blg_cnx = "blog"; etc)

Is anyone able to help?

Many thanks

Options: ReplyQuote
Re: Warning: virtual() [function.virtual]: Unable to include
Posted by: CyberSpatium (71.237.217.---)
Date: October 31, 2006 12:46AM

change it to this


<?php include_once('/Connections/blg_cnx.php'); ?>


CyberSpatium
WAMP English Forum Administrator

Options: ReplyQuote
Re: Warning: virtual() [function.virtual]: Unable to include
Posted by: salmagundi (---.nhs.uk)
Date: October 31, 2006 02:39PM

CyberSpatium

Many thanks i'll try this soon as i get home tonight.

Are you able to tell me why I actually get the Warning: virtual() [function.virtual]: message in the first place? I have trawlled the internet for a solution and a couple of sites suggested that it was becasue PHP was not set as an apache module. I followed the instructions for setting this, but found that the apache config file did in fact appear to have PHP set as an apache module already.

Many Thanks again

Salmagundi

Options: ReplyQuote
Re: Warning: virtual() [function.virtual]: Unable to include
Posted by: CyberSpatium (71.237.217.---)
Date: October 31, 2006 07:25PM

you get the message because you dont include files virtually

Options: ReplyQuote


Sorry, only registered users may post in this forum.