View Full Version : PHP pages do not preview on Server

04-02-2009, 02:37 PM
I am developing my php pages on my localhost using MAMP using Dreamweaver. Everything works great, register.php, master/detail pages, login.php, etc. But when I try to view them thru my server, I get FATAL ERROR: virtual (/Connections/connTMP)...

Every page has this problem. I have replaced virtual with require_once with no luck. This prevents my pages from working on localhost which does not help me too much if I want to keep working in Dreamweaver. How do I get around this?

04-02-2009, 03:25 PM
I use something like this. But I'm not the sharpest when pHP is all about.
Try it in case ;)
<?php require_once('Connections/connTMP.php'); ?>

04-03-2009, 12:57 AM
yes thats right mangofreak but it might be the path you have
rjmiyake (http://www.dreamweaverclub.com/forum/member.php?u=26986) is using

"/" and no .php