Jump to content

Question on include


jeff5656

Recommended Posts

I want to include a file (lets say test.php) that resides on a server on the intranet.

 

The main file can be accessed from anywhere since it resides on the internet.

 

If someone is on the intranet they will see both files, but if they're at home they will see an error in the <td> that has the include file.

 

How do I suppress errors in the main page for this so that the person will see all of the main file but the include file will give  ablank?

 

Something like this?

<table>

<td> content of main page </td>
<td><?php include "http://intranetserver/directory/test.php" or die (???);?></td>
<td> rest of content from main page

 

BTW, does anyone notice that if you goto phpfreaks.com and sign in, then you click forums it says "welcome guest" and you have to sign in again?? Weird (and ironic for a site specializing in web-design/programming/code)

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/136126-question-on-include/
Share on other sites

BTW, does anyone notice that if you goto phpfreaks.com and sign in, then you click forums it says "welcome guest" and you have to sign in again?? Weird (and ironic for a site specializing in web-design/programming/code)

 

Just thought I would let you know, they are 2 different backends, one is a forum the other is probably a CMS. It is hard to integrate two systems not related to each other for a dual login purpose.

Link to comment
https://forums.phpfreaks.com/topic/136126-question-on-include/#findComment-709888
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.