Jump to content

Dreamweaver won't show my .php page!?


Recommended Posts

Hi there,

 

didn't know wether to post this in the newbie bit or here but anyway - I'm new to dreamweaver/php/mysql and dynamic websites. I'm using Dreamweaver MX 2004, PHP version 4.3.4, MySQL version 4.0.15-standard and apache (1.3.29 (Unix)). I've struggled valiantly to create a database through my server cPanel and create a mysql connection to it from dreamweaver (called it "con1"). I've created a recordset and plopped it into my php page. Now when I use the dreamweaver live link option a load of errors come up along the lines of my testing server has disappeared in a puff of smoke or - its ignoring .php files. If I preview in browser I get this error on a separate browser page:

 

Warning: main(Connections/con1.php): failed to open stream: No such file or directory in /home/mcpalmer/public_html/dynaSite/dynaSite.php on line 1

 

Fatal error: main(): Failed opening required 'Connections/con1.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mcpalmer/public_html/dynaSite/dynaSite.php on line 1

 

Now, please forgive me for my stupidity, but i don't know what the problem is. Is it my testing server? I had a lot of trouble initially with the URL prefix which is:

 

http://www.mysite.org.uk/dynaSite/

 

I had to avoid using public_html bit for some reason. I couldn't get any other prefix to work but this.

 

Is it that first line of my php script? This is:

 

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

 

Now con1.php is sitting on my server ok but i cannot view but can edit it, which seems strange.

 

I'm sure (hope) there is a simple solution to all this but its beyond me at the moment. Any help you can give would be much appreciated!

 

thanks,

 

M

 

 

 

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.