Skip to main content
Known Participant
April 9, 2008
Question

PHP page not displaying

  • April 9, 2008
  • 1 reply
  • 406 views
Help...
I am have just started working with php and need some help. I have a hosted site I am working with php and mysql. I can connect to the mysql databse and set recordsets and server behaviors. The problem occurs when I upload the page...nothing shows up. I have done some investigation and this is what I have discovered. I am pretty sure it has something to do with the connection file and how it is getting pointed to. Here is the code I am working with.

Now if I remove this line the one pointing to the connection file <?php virtual('/Connections/connAdmin.php'); ?> and replace it with this <?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_connAdmin = "getascendent.ipowermysql.com";
$database_connAdmin = "trial_users408";
$username_connAdmin = "asc302";
$password_connAdmin = "myphp";
$connAdmin = mysql_pconnect($hostname_connAdmin, $username_connAdmin, $password_connAdmin) or trigger_error(mysql_error(),E_USER_ERROR);
?>
it all appears as it should.

Can someone point me in the right direction.
Any help is greatly appreciated...
This topic has been closed for replies.

1 reply

Inspiring
April 9, 2008
TC5Racer wrote:
> <?php virtual('/Connections/connAdmin.php'); ?>

Dreamweaver uses virtual() if you select links relative to the site root
in your site definition. Unfortunately, virtual() works only if PHP is
installed as an Apache module. Replace the above line with this:

<?php require_once('Connections/connAdmin.php'); ?>

The path inside require_once needs to be relative to the document, not
to the site root.

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
TC5RacerAuthor
Known Participant
April 10, 2008
Thank you, thats excactly what is was.