CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 [RESOLVED] Included Pages

Print topic Send  topic

Author Message
Shaftsbury

Posts: 22
Posted: 06/03/2008, 6:08 AM

I just started a new project and I'm having problems including a header and footer.

The pages were written within CCS but they do not seem to render when I view them on the live site.

All I get is: {header} {footer}

My last project was written in asp and I did not have the same issue, is there something I am missing?
View profile  Send private message
wkempees


Posts: 1679
Posted: 06/03/2008, 6:13 AM

Check the URL, you are probably doing:
\\localhost\pagename or \\localhost\pagename.html

you should do \\localhost\pagename.php

Check that first, if true, there are several ways to overcome this default behaviour.

Walter


_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
mentecky

Posts: 321
Posted: 06/03/2008, 6:17 AM

Walter is correct, but your server config is probably defaulting to "index.html" before "index.php". If you are using IIS there is a setting that configures index pages... you need to move PHP above HTML

Rick
_________________
http://www.ccselite.com
View profile  Send private message
Shaftsbury

Posts: 22
Posted: 06/03/2008, 6:22 AM

Thanks, yes that seems to be the problem alright.

I don't own my own server is there anything I can do in that case?
View profile  Send private message
mentecky

Posts: 321
Posted: 06/03/2008, 6:24 AM

What OS is your server running?

_________________
http://www.ccselite.com
View profile  Send private message
wkempees


Posts: 1679
Posted: 06/03/2008, 6:38 AM

In Project Setting set template directory to 'template'
Delete all stuff generated in target server and regenerate.
CCS will now publish all HTML in template directory, all scripting in webroot.
Now when you call pagename, there is no HTML version so the PHP will be executed.
And that is all there is to it.

Next step could be .htaccess.

Walter



_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
Shaftsbury

Posts: 22
Posted: 06/03/2008, 9:17 AM

Thanks guys,

Richard I'm really not sure what they are running I can use either ASP or PHP but i'm on a shared server so they won't make any changes to the settings, my best bet is to try a solution within CCS.

Walter I have another PHP application ( forums ) running in a different directory and it runs exactly as you described, I think that is going to be the preferred solution.

Barry
View profile  Send private message
wkempees


Posts: 1679
Posted: 06/03/2008, 9:24 AM

Please change title of thread to [RESOLVED]....

BTW, the changes Richard meant can be done through .htaccess in which case you do not neet any interaction from Hoster.

You're welcome

Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
mentecky

Posts: 321
Posted: 06/03/2008, 9:28 AM

Nice Job Walter
_________________
http://www.ccselite.com
View profile  Send private message
rew-NZ

Posts: 21
Posted: 06/03/2008, 7:51 PM

Hi Guys,
I followed this advice because I had the same problem with my index page but now when I publish even just a page it takes ages before it actually finishes and becomes available live. Before it would be quite quick for a single page. My web server is on my local network on a Win 2003 server so transfer speeds should be as good as it gets. It seems to generate the page dependencies at the same rate but when it come to the "Publishing to" it takes ages.

I might need to change back and edit my apache config to look for .php first instead cos this will drive me nuts. (well more than I am already!)

Rew
View profile  Send private message
datadoit
Posted: 06/04/2008, 5:50 AM

rew-NZ wrote:
> Hi Guys,
> I followed this advice because I had the same problem with my index page but
> now when I publish even just a page it takes ages before it actually finishes
> and becomes available live. Before it would be quite quick for a single page. My
> web server is on my local network on a Win 2003 server so transfer speeds should
> be as good as it gets. It seems to generate the page dependencies at the same
> rate but when it come to the "Publishing to" it takes ages.
>
> I might need to change back and edit my apache config to look for .php first
> instead cos this will drive me nuts. (well more than I am already!)
>
> Rew
> ---------------------------------------

You have a different issue. Please repost this with a new Subject line.

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.