Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Php Include Script, How to add into a table
Cerb
post 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.
Go to the top of the page
 
+Quote Post
Tyssen
post 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'.
Go to the top of the page
 
+Quote Post
truefusion
post Jul 11 2005, 11:28 PM
Post #3


Ephesians 6:10-17
Group Icon

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.
Go to the top of the page
 
+Quote Post
snlildude87
post 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)
You'll have to include the full path so it will probably be something like '/public_html/yourdirectory/myframe.htm'.
*

I thought the full path is '/home/[cpanel login name]/public_html/[filename]'?
Go to the top of the page
 
+Quote Post
Saint_Michael
post 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
T17 GFX Crew



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?
Go to the top of the page
 
+Quote Post
Cerb
post 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.
Go to the top of the page
 
+Quote Post
truefusion
post Jul 12 2005, 05:08 AM
Post #7


Ephesians 6:10-17
Group Icon

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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Could Someone Make A Php Script For Me?(3)
  2. Many Php Script Sites(16)
  3. [help] Java Script: Window.open(10)
  4. Web Surfing- Script Needed(2)
  5. Guestbook (cgi-script) Problems(5)
  6. Delay X Seconds In Flash(1)
  7. Verifying Email Addresses(9)
  8. Ie Table Width In A Div Tag(5)
  9. Adding Rows & Columns In Html Table Using Javascript(1)
  10. Watermark Your Image With Simple Php Script(35)
  11. Trap17 Link Exchange Script Introduced(28)
  12. Jsp Or Java Chat Script Like Mig33(5)
  13. Very Simple Online Now Script(4)
  14. Background Image Swap Script(15)
  15. Invite Script..(2)
  1. Loaing Script(3)
  2. Php Downloads Script(4)
  3. Login Script For Vbulletin.(9)
  4. Guessing Php Script(2)
  5. Phpizabi Social Network Script(1)
  6. Php Guest Online Script(3)
  7. How To Make Php Newsletter Script(3)
  8. Browser Compatibility Problem With Firefox - Javascript + Css(3)
  9. Seeking Help With Javascript(1)
  10. [request] Avatar For Trap17 Users(0)
  11. Java Script To Hide The Url In Address Bar(6)
  12. Firefox And Ie: Table Layouts Look Different In Us!(3)
  13. Need Help With Javascript Drag And Drop Script(2)


 



- Lo-Fi Version Time is now: 12th October 2008 - 03:52 PM