View Full Version : Using Existing Include Files
kmattera
01-27-2005, 12:14 PM
I'm trying to integrate the calendar into an existing ASP file, but the include files don't seem to work. I can't tell if its just a syntax problem, or if I have to rename my include files to PHP in order for them to work with this file.
Thanks for your help!
Kellie
http://www.chime.net/oncall/index3.php
Brian
01-27-2005, 12:15 PM
Everything appears to be working?
kmattera
01-27-2005, 12:17 PM
The header and the left hand navigation are include files, and those aren't appearing, at least on my end. Are they showing up on yours???
Thanks!
Brian
01-27-2005, 12:20 PM
Ok. No they do not show up on the page. How are you including them? With the PHP require("fileName.php"); command?
kmattera
01-27-2005, 12:25 PM
Nope... didn't do that.
So I assume that means that I need to rename my ASP includes to PHP files? And then use
require("fileName.php");
wherever I need the file to display?
Sorry, I'm PHP illiterate.
Kellie
Brian
01-27-2005, 12:29 PM
I don't know that you need to rename the ASP pages, but, with PHP, to include a file, you should use the require or include commands. As long as there is no ASP specific code in your header or navigation menu, you should be able to include them just as they are.
kmattera
01-27-2005, 12:53 PM
Brian,
I got it partially working, but doesn't look like any of my "if / then" statements are working. At least I think thats the problem. Can you point me in the right direction?
Thanks bunches!!
Kellie
http://www.chime.net/oncall/index3.php
Brian
01-27-2005, 01:05 PM
I don't believe that you're not going to be able to mix ASP and PHP. Your header and navigation menu will need to be static or reprogrammed in PHP.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.