php-windows Digest 24 Dec 2005 11:14:34 -0000 Issue 2855

Topics (messages 26590 through 26593):

Include problem
        26590 by: Ken Yarbrough
        26591 by: Ken Yarbrough

PHP include problem
        26592 by: Ken Yarbrough
        26593 by: El Bekko

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
I recently allowed one of my friends to host their site on my server, and we 
realized that when you click a link, it doesn't include the content into the 
main page. I'm not sure what would cause this, but the include code is the 
following:

    <?php
                         if ($page == "")
                         {
                           include("news.php");
                         }
                         else
                         {
                         include "$arp.php";
                         }
                         ?>

The function is to by default, include "news.php" and then when you click a 
link, it should include the new page's content into the content box on the 
website. Instead, it doesn't show anything. I thought it might have been a 
browser problem, but I tested it with the newest FireFox and IE.

Any help would be highly appreciated.

Regards,
Ken Yarbrough 

--- End Message ---
--- Begin Message ---
I recently allowed one of my friends to host their site on my server, and we 
realized that when you click a link, it doesn't include the content into the 
main page. I'm not sure what would cause this, but the include code is the 
following:

    <?php
                         if ($page == "")
                         {
                           include("news.php");
                         }
                         else
                         {
                         include "$arp.php";
                         }
                         ?>

The function is to by default, include "news.php" and then when you click a 
link, it should include the new page's content into the content box on the 
website. Instead, it doesn't show anything. I thought it might have been a 
browser problem, but I tested it with the newest FireFox and IE.

Any help would be highly appreciated.

Regards,
Ken Yarbrough 

--- End Message ---
--- Begin Message ---
I recently allowed one of my friends to host their site on my server, and we
realized that when you click a link, it doesn't include the content into the
main page. I'm not sure what would cause this, but the include code is the
following:

    <?php
                         if ($page == "")
                         {
                           include("news.php");
                         }
                         else
                         {
                         include "$arp.php";
                         }
                         ?>

The function is to by default, include "news.php" and then when you click a
link, it should include the new page's content into the content box on the
website. Instead, it doesn't show anything. I thought it might have been a
browser problem, but I tested it with the newest FireFox and IE.

Any help would be highly appreciated.

If anyone is confused by my description, you can simply visit the webpage at 
' http://www.ohhol.com/tar/main.php '
In the Navigation, under 'Rants' click 'Mission Statement' and it SHOULD 
load http://www.ohhol.com/tar/rants/mstatement.php - But for me it doesn't. 
=\

Regards,
Ken Yarbrough 

--- End Message ---
--- Begin Message ---
Ken Yarbrough wrote:
I recently allowed one of my friends to host their site on my server, and we
realized that when you click a link, it doesn't include the content into the
main page. I'm not sure what would cause this, but the include code is the
following:

    <?php
                         if ($page == "")
                         {
                           include("news.php");
                         }
                         else
                         {
                         include "$arp.php";
                         }
                         ?>

The function is to by default, include "news.php" and then when you click a
link, it should include the new page's content into the content box on the
website. Instead, it doesn't show anything. I thought it might have been a
browser problem, but I tested it with the newest FireFox and IE.

Any help would be highly appreciated.

If anyone is confused by my description, you can simply visit the webpage at ' http://www.ohhol.com/tar/main.php ' In the Navigation, under 'Rants' click 'Mission Statement' and it SHOULD load http://www.ohhol.com/tar/rants/mstatement.php - But for me it doesn't. =\

Regards,
Ken Yarbrough
Try:

<?php
if ($page == "")
        {
        include("news.php");
        }
        else
        {
        include($arp . ".php");
        }
?>

--- End Message ---

Reply via email to