Simple PHP question - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Programming > PHP Development

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 05-20-2010, 06:33 PM   #1 (permalink)
Junior Member
 
Join Date: May 2010
Posts: 5
Default Simple PHP question

Code:
<?php

    @include("header.html");
    @include("middle.html");

        if ($_GET["action"]) {
            $includeFile = $_GET["action"] .".php";
                if (@file_exists($includeFile))
                    @include($includeFile);
                else
                    echo "Coming Soon!";
        }
        else {
            @include("content.php");
        }

    @include("footer.html");

?>
That is the code in which one of my sites is driven by.

I'm not very PHP savvy, and I was wondering how I could include 404.shtml into where the "Coming Soon!" is.

I'm just not sure how to include a file in an echo.

Sorry for the newb question
Curtis is offline   Reply With Quote
Sponsored Links
Old 05-20-2010, 06:48 PM   #2 (permalink)
Regular User
 
Join Date: Apr 2010
Posts: 444
Default Re: Simple PHP question

I would assume you would add the same @include("404.shtml"); type of format to where it is.

I am not that super advanced as you can see. Maybe check out http://myhosting.com/forums/

That is where I learned my PHP. You can do a quick search or even ask a guru. The forums is full of them.
standingoten is offline   Reply With Quote
Old 05-20-2010, 06:57 PM   #3 (permalink)
Junior Member
 
Join Date: May 2010
Posts: 5
Default Re: Simple PHP question

Thanks, I'll give that a shot and check those forums out too. I'll let you know how it goes.
Curtis is offline   Reply With Quote
Old 05-21-2010, 05:27 AM   #4 (permalink)
Junior Member
 
Join Date: May 2010
Posts: 1
Default Re: Simple PHP question

If you have sat down at your computer and read information on PHP you may have been left with the feeling that you are not even sure what you read. When you decide to make the investment in Simple PHP, you will be amazed at the simplicity of being able to personalize your pages, put code on games and even use JavaScript with PHP. I bet you never even thought that was possible and of you did you have no idea how to make it happen.
knowyourart is offline   Reply With Quote
Old 05-21-2010, 05:00 PM   #5 (permalink)
Member
 
Join Date: Apr 2010
Posts: 132
Default Re: Simple PHP question

If my tip didn't work. Check the myhosting.com forums and they might recommend a PHP checker. It will auto-correct most issues.
chrisphs09 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 07:50 PM.


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting