|
|
Joined: Mar 2000
Posts: 63
Member
|
Member
Joined: Mar 2000
Posts: 63 |
Hi, can you tell me if the ouptput from ubbtnews.php can only be included in another php file, rather than say as an SSI in a shtml file. I've been trying with the code below inserted into the shtml file with no luck (path and permissions are correct and I can access the output directly through http://...vle-cc/addons/ubbtnews.php)CODE INSERTED INTO SHTML FILE <!--#exec cgi="/vle-cc/addons/ubbtnews.php"--> Thanks for any help.
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
|
|
|
|
Joined: Jun 2002
Posts: 375
Enthusiast
|
Enthusiast
Joined: Jun 2002
Posts: 375 |
That would depend on your web server software. I doubt it will be compiled because the page extension of .shtml does not tell the server to run the .php code before being sent to the browser. This is what happens on IIS 4.0 when a .php page is included in an .asp page. Probably the same thing is happening on your server.
Now if you turn the page into frames, and have the .php page in its own frame, then it will compile.
|
|
|
|
Joined: May 1999
Posts: 1,715
Addict
|
Addict
Joined: May 1999
Posts: 1,715 |
In Apache .shtml are parsed by the server and it is no problem including any other file that the server can parse. You just have to use this SSI statement: <!--#include virtual="anyfile.php"-->
If it is not supposed to be parsed (because it is a plain HTML file or something) include file can be used instead, which is a bit faster.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 808
Joined: July 2001
|
|
Forums63
Topics37,575
Posts293,932
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|