View Full Version : Need help

03-26-2011, 09:06 AM
Ok, so i made a include:


But it doesn't show i don't now what the problem is.
I made another page for it and putted the code in it and when i open the page it says i need to download it.
I just started dreamweaver so i don't now how to get it right.

03-26-2011, 09:11 AM
Do you have php running on your hosting?

03-26-2011, 09:13 AM
Yes php and mysql

03-26-2011, 09:23 AM
and your page extention is .php or you are handling .html as php through .htaccess?

03-26-2011, 09:25 AM
i justed .php

03-26-2011, 09:29 AM
Hmmmm..... Curious. Think you might need to go through your syntax one more time.

03-26-2011, 09:34 AM
I think i forgot to metion that i putted the link of the php file in a iframa code. But i don't think thats the problem because it won't even show in my php file because it says i need to the file download it.

03-26-2011, 09:36 AM
Then you may well be in file path hell. Why an iframe of all things??

03-26-2011, 09:43 AM
But if it's the path shouldn't it show a error page instead of nothing?http://img860.imageshack.us/img860/4765/blogx.png
this is what my .php file code looks like.

03-26-2011, 12:02 PM

03-26-2011, 01:16 PM
Why the 'public/sites' bit in the path? Maybe trim it down to the www.

03-26-2011, 07:05 PM
Worst topic. ever. 8)

03-27-2011, 07:32 AM
those are my foldors?

03-27-2011, 07:36 AM
it still opens like a download if i change it...

03-28-2011, 06:31 PM
Are you able to see the included content when you view the page in a browser?
The reason I ask is that your screenshot shows Dreamweaver's split view, which would not display such a thing (and instead would show "php" placeholder that is appearing in your screenshot).

If you are expecting the content to appear within Dreamweaver, you would need to do both of the following:
- Configure a PHP-enabled server as a "Testing Server" for in you Dreamweaver site definition.
- Enable Live View

If the content also fails to appear when looking at the live page in a web browser, then I would be inclined to think that it is a path issue as others have mentioned.

Hope this helps!

03-28-2011, 06:39 PM
Is your path correct the one you stated has three full stops for example you had ../.../

To get back to the root just use /

You don't need ../../../../../ etc