PDA

View Full Version : PHP pages do not preview on Server


rjmiyake
04-02-2009, 03: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?

mangofreak
04-02-2009, 04: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'); ?>

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

"/" and no .php