|
|
|
|
![]() ![]() |
Jul 11 2005, 10:18 PM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 240 Joined: 9-July 05 Member No.: 9,213 |
You can see at cerb.trap17.com how I have my menus set up. For each of the 3 side menus, I would like to use a PHP include script, rather than iFrames. This is the code I've been playing around with:
CODE <?php include('myframe.htm'); ?> With myframe.htm being the page I want to include in that cell. For some reason it will not include the page. Is that the correct code for doing such a thing? Am I doing something wrong; leaving something out. maybe? Thanks. |
|
|
|
Jul 11 2005, 10:26 PM
Post
#2
|
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 1,161 Joined: 9-May 05 From: Brisbane, QLD Member No.: 6,818 |
You'll have to include the full path so it will probably be something like '/public_html/yourdirectory/myframe.htm'.
|
|
|
|
Jul 11 2005, 11:28 PM
Post
#3
|
|
|
Ephesians 6:10-17 ![]() Group: [MODERATOR] Posts: 1,918 Joined: 22-June 05 From: The World of Gentoo Member No.: 8,528 |
QUOTE(Tyssen @ Jul 11 2005, 06:26 PM) You'll have to include the full path so it will probably be something like '/public_html/yourdirectory/myframe.htm'. You dont have to include the full path. Only the file "myframe.htm" has to be in the same folder as the file using the php include code. |
|
|
|
Jul 11 2005, 11:41 PM
Post
#4
|
|
|
Moderator ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 2,325 Joined: 8-March 05 From: Mawson, Antarctica Member No.: 4,254 |
QUOTE(Tyssen @ Jul 11 2005, 07:26 PM) I thought the full path is '/home/[cpanel login name]/public_html/[filename]'?
|
|
|
|
Jul 11 2005, 11:51 PM
Post
#5
|
|
|
$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3 ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 6,561 Joined: 21-September 04 From: 9r33|\| 399$ 4|\|D 5P4/\/\ Member No.: 1,218 ![]() |
truefusion is right most people put the php scripts with the file that they are using to make it run smoothly. it could e something else though, but the php coding is right, did you change your index file to index.php?
|
|
|
|
Jul 12 2005, 12:33 AM
Post
#6
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 240 Joined: 9-July 05 Member No.: 9,213 |
Doh! I just didn't change the extension on my index page etc.
|
|
|
|
Jul 12 2005, 05:08 AM
Post
#7
|
|
|
Ephesians 6:10-17 ![]() Group: [MODERATOR] Posts: 1,918 Joined: 22-June 05 From: The World of Gentoo Member No.: 8,528 |
QUOTE(Cerb @ Jul 11 2005, 08:33 PM) Doh! I just didn't change the extension on my index page etc. If you want html documents to work like php documents, then you should do this: QUOTE Go to mime types from your cpanel and add a mime type: application/x-httpd-php : .html
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 12th October 2008 - 03:52 PM |