Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

PHP page not displaying

New Here ,
Apr 09, 2008 Apr 09, 2008
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...
TOPICS
Server side applications
378
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Apr 09, 2008 Apr 09, 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/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 09, 2008 Apr 09, 2008
LATEST
Thank you, thats excactly what is was.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines