Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > PHP

Reply
 
LinkBack Thread Tools
Old August 19th, 2008, 03:14 PM   #1
New Member
 

Join Date: Aug 2008
Location: Norfolk
Posts: 15
Thanks: 5
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 lscott is on a distinguished road
Error message

Hi,

I am still quite new to php. I have just started making this new website but my browser just keeps on displaying an error message. This is the bit I don't understand - Fatal error: Call to undefined function virtual(). I am using dreamweaver. If you have had the same problem please let me know how you fixed it. I have tried everything obvious.

Thanks,

Laurence
lscott is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 19th, 2008, 04:26 PM   #2
WebForumz Admin Badge
SuperMember
 
Marc's Avatar
 

Join Date: Apr 2007
Location: Scotland, UK
Posts: 2,086
Thanks: 2
Thanked 23 Times in 23 Posts
Rep Altering Power: 89 Marc is just really nice Marc is just really nice Marc is just really nice Marc is just really nice
Re: Error message

Can you show us your code?
Marc is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 19th, 2008, 09:55 PM   #3
New Member
 

Join Date: May 2008
Location: Colorado
Age: 20
Posts: 29
Thanks: 0
Thanked 1 Time in 1 Post
Rep Altering Power: 0 luv2php is on a distinguished road
Re: Error message

That error means it cannot find the function defined anywhere, if its in an external script, are you including it in that particular file where the error is?
luv2php is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 20th, 2008, 02:57 AM   #4
New Member
 

Join Date: Aug 2008
Location: Norfolk
Posts: 15
Thanks: 5
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 lscott is on a distinguished road
Re: Error message

Quote:
Originally Posted by luv2php View Post
That error means it cannot find the function defined anywhere, if its in an external script, are you including it in that particular file where the error is?
The script is in an external file which is the MSQL connection to the database as far as I understand. Here is the code...

Code:
<?php virtual('/Connections/connRadiate.php'); ?>
lscott is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 20th, 2008, 08:09 AM   #5
Most Reputable Member
 

Join Date: May 2007
Location: Cornwall, England
Posts: 1,421
Blog Entries: 8
Thanks: 18
Thanked 14 Times in 14 Posts
Rep Altering Power: 0 Jack Franklin will become famous soon enough
Re: Error message

You could try switching the word 'virtual' to 'include' and see if that works.
__________________
Yours is the Earth and everything that's in it
And - which is more - you'll be a Man my son!
Jack Franklin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 22nd, 2008, 09:11 AM   #6
New Member
 

Join Date: Aug 2008
Location: Norfolk
Posts: 15
Thanks: 5
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 lscott is on a distinguished road
Re: Error message

Quote:
Originally Posted by Jack Franklin View Post
You could try switching the word 'virtual' to 'include' and see if that works.
It is displaying even more errors now.
lscott is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 23rd, 2008, 09:29 AM   #7
Aso
Most Reputable Member
 

Join Date: Oct 2007
Location: UK
Posts: 1,633
Blog Entries: 2
Thanks: 22
Thanked 84 Times in 79 Posts
Rep Altering Power: 0 Aso is on a distinguished road
Re: Error message

Quote:
virtual() is an Apache-specific function which is similar to <!--#include virtual...--> in mod_include.
@lscott: That would explain the original errors you were getting (i.e. you're running PHP < 4 or don't have it installed as an Apache Module).

The reason why Jack's 'include' solution didn't work is most likely to do with your relative paths and php.ini configuration (and not forgetting the fact that connRadiate.php may not even exist at that location).

1. In which folder is your script running from (in the form [drive]:/path/folder/scriptname.php) ?
2. Where is your connRadiate.php file located (in the form [drive]:/path/folder/connRadiate.php) ?
3. Copy and paste the errors you're currently getting
Aso is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 23rd, 2008, 11:50 AM   #8
New Member
 

Join Date: Aug 2008
Location: Norfolk
Posts: 15
Thanks: 5
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 lscott is on a distinguished road
Re: Error message

Quote:
Originally Posted by Aso View Post
@lscott: That would explain the original errors you were getting (i.e. you're running PHP < 4 or don't have it installed as an Apache Module).

The reason why Jack's 'include' solution didn't work is most likely to do with your relative paths and php.ini configuration (and not forgetting the fact that connRadiate.php may not even exist at that location).

1. In which folder is your script running from (in the form [drive]:/path/folder/scriptname.php) ?
2. Where is your connRadiate.php file located (in the form [drive]:/path/folder/connRadiate.php) ?
3. Copy and paste the errors you're currently getting
I know that PHP 5 is difinatly installed.

The connRadiate.php is in /Users/laurence/Sites/radiate/Connections on my computer. I have checked it was in the Connections folder when I uploaded it.

Here are all the errors I am currently getting...

Warning: include(/Connections/connRadiate.php) [function.include]: failed to open stream: No such file or directory in C:\Inetpub\vhosts\thegate-norwich.com\httpdocs\index2.php on line 1

Warning: include() [function.include]: Failed opening '/Connections/connRadiate.php' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\thegate-norwich.com\httpdocs\index2.php on line 1

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in C:\Inetpub\vhosts\thegate-norwich.com\httpdocs\index2.php on line 3

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\Inetpub\vhosts\thegate-norwich.com\httpdocs\index2.php on line 5

Last edited by lscott; August 23rd, 2008 at 11:53 AM..
lscott is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 24th, 2008, 09:02 AM   #9
Aso
Most Reputable Member
 

Join Date: Oct 2007
Location: UK
Posts: 1,633
Blog Entries: 2
Thanks: 22
Thanked 84 Times in 79 Posts
Rep Altering Power: 0 Aso is on a distinguished road
Re: Error message

Try;
Code:
include '/Users/laurence/Sites/radiate/Connections/connRadiate.php'
Aso is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 24th, 2008, 09:38 AM   #10
New Member
 

Join Date: Aug 2008
Location: Norfolk
Posts: 15
Thanks: 5
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 lscott is on a distinguished road
Re: Error message

Quote:
Originally Posted by Aso View Post
Try;
Code:
include '/Users/laurence/Sites/radiate/Connections/connRadiate.php'
It is displaying basicly the same errors. The site is all ready on a web server so surly that is why that is not working?
lscott is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 29th, 2008, 01:27 PM   #11
New Member
 

Join Date: Aug 2008
Location: Norfolk
Posts: 15
Thanks: 5
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 lscott is on a distinguished road
Re: Error message

Quote:
Originally Posted by Aso View Post
don't have it installed as an Apache Module
How can I install it?
lscott is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 29th, 2008, 01:55 PM   #12
Most Reputable Member
 

Join Date: Feb 2008
Location: In My Own Little World
Age: 16
Posts: 1,345
Blog Entries: 9
Thanks: 2
Thanked 45 Times in 45 Posts
Rep Altering Power: 0 CloudedVision is on a distinguished road
Re: Error message

If you have a shared host, you'll have to contact them and ask them to install it.
__________________
Theron Luhn
CloudedVision is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 29th, 2008, 02:23 PM   #13
New Member
 

Join Date: Aug 2008
Location: Norfolk
Posts: 15
Thanks: 5
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 lscott is on a distinguished road
Re: Error message

Quote:
Originally Posted by CloudedVision View Post
If you have a shared host, you'll have to contact them and ask them to install it.
It isn't my server. All I know is that it is a virtual privarate server.
lscott is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
error message of webmail begeiste PHP 2 May 27th, 2008 03:39 PM
Keep getting error message Microsoft VBScript runtime error '800a01a8' cpando1974 Classic ASP 2 August 7th, 2007 08:00 AM
Please Help Fix This Error Message DannyP43 JavaScript 3 September 26th, 2006 06:04 PM
Why error message in status bar? Sofie PHP 11 May 13th, 2006 02:23 PM
error message cant get straight monkboy12345 PHP 1 April 15th, 2005 05:34 PM


Search Engine Optimization by vBSEO 3.2.0 RC8