Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2000
Posts: 63
Member
Member
Offline
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.

Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
Hi spiffy,

I'm not sure but did you see this post:

https://ubbdev.com/threads/php/...&sb=5&o=31&fpart=1#Post56230

Joined: Jun 2002
Posts: 375
Enthusiast
Enthusiast
Offline
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.

Joined: Mar 2000
Posts: 63
Member
Member
Offline
Joined: Mar 2000
Posts: 63
[]Hi spiffy,

I'm not sure but did you see this post:

https://ubbdev.com/threads/php/...&sb=5&o=31&fpart=1#Post56230



Yep, saw it and thanks for taking the time.

cheers.

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 2
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)