0
PHP page not displaying
New Here
,
/t5/dreamweaver-discussions/php-page-not-displaying/td-p/359142
Apr 09, 2008
Apr 09, 2008
Copy link to clipboard
Copied

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...
TOPICS
Server side applications
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/dreamweaver-discussions/php-page-not-displaying/m-p/359143#M92620
Apr 09, 2008
Apr 09, 2008
Copy link to clipboard
Copied
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/
> <?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/
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
TC5Racer
AUTHOR
New Here
,
LATEST
/t5/dreamweaver-discussions/php-page-not-displaying/m-p/359144#M92621
Apr 09, 2008
Apr 09, 2008
Copy link to clipboard
Copied
Thank you, thats excactly what is was.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

