Jul 24, 2008

Php Include Script - How to add into a table

Free Web Hosting, No Ads > CONTRIBUTE > The Internet > Website Discussion

free web hosting

Php Include Script - How to add into a table

Cerb
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.

Reply

Tyssen
You'll have to include the full path so it will probably be something like '/public_html/yourdirectory/myframe.htm'.

Reply

truefusion
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.

Reply

snlildude87
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]'?

Reply

Saint_Michael
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?

Reply

Cerb
Doh! I just didn't change the extension on my index page etc.

Reply

truefusion
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

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : php script

  1. Directory Script - (1)
  2. Redirect Script Depending On User's Browser - (13)
    Hi everyone, oik so there is this design im doing for a new site and the problem is that the site
    does not display properly in Internet Explorer but it does in firefox. How do i get the site to
    redirect you to a page that says somthing like "you need to have firefox instalkled to view this
    page" if you are not running firefox?...
  3. Redirec Script - (7)
    I need a scrip that redirects to my forum to index_cm.php, i cant change the name of that file...
  4. Forum Script Error - (3)
    hey, im getting this error when im trying to view a message on my forum, QUOTE Parse error:
    syntax error, unexpected T_VARIABLE in /home/luki/public_html/forum/viewtopic.php on line 26 and
    this is what is on line 26 in that file.. i don't know waht's wrong with it. QUOTE
    LIMIT$start, ".$board_config ; and this is what it loks like all together... QUOTE
    define('IN_PHPBB', true); define('IN_CASHMOD', true); define('CM_VIEWTOPIC',
    true); LIMIT$start, ".$board_config ; $cm_viewtopic->generate_column...
  5. Referral Script - (2)
    Hey everyone, I need 2 Different kind of refferal system scripts. One is a non registering one and
    the other one is a registering one. Okay well ill explain what i need for each script. For the non
    registering one i need: It to log what SITES sent users to my site. It also needs to automaticly
    list the sites that have sent a curtain number of people to the site, and the number of people needs
    to be custamizable by eather a control panel or a scipt option. And for the registering one i need
    the script to automaticly provide my users with a Referral URL. It also need...
  6. Good Billing Script - (0)
    does anybody here know of any good billing script like merchant bil;l that are free or very cheap...
  7. Web Hosting Script - (5)
    Hey everyone, Im wondering if any of you know of a Web Hosting Script. The primary use of this
    script will be to give the users of my site we space. I already have my server set up. My server
    currently uses a 100 GB space system With apatche running on the servering computer and it is all on
    High Speed DSL. If you could, link the script from where it came from. And Also please make sure
    it is an ACTUAL Web hosting script not just a register script. thanks...
  8. Mp3 Player For A Webpage - script? (8)
    anyone know where you can get a mp3 player to put on the site? where you can upload your own music
    and choose a song to play it? it can be any language, so if you know any, giev me the link. Made
    topic descriptive. ...
  9. Login Script Problem - (0)
    i have created a login script that enables my costomours to login into there cPanel,web mail and if
    there a reseller WHM. But when i test the script on the webserver its dosnt work on some pages, on
    the pages that dont work i get this error message QUOTE Method Not Allowed The requested method
    POST is not allowed for the URL /index.htm. Apache/1.3.34 Server at www.mxweb.co.uk Port 80 and
    i know its nothing to do with the frontpage server extentions, and what gets me is that it works on
    some pages but not others. Ive tried everything in my knowlage to get it worki...
  10. No Right Click - Javascript - No Right Clicking Script (6)
    I made this script for disabling the right-click option. It works with all major web browsers (IE,
    Mozilla, Firefox, Netscape...). Just put it into the head section of your document. QUOTE
    <script language="JavaScript"> var message="Sorry, no right clicking!"; isIE=document.all;
    isNN=!document.all&&document.getElementById; isN4=document.layers; if (isIE||isNN) {
    document.oncontextmenu=block; }else{ document.captureEvents(Event.MOUSEDOWN || Event.MOUSEUP);
    document.onmousedown=block; } function block(e) { if (isN4) { if (e.which==2||e.which==3) { aler...
  11. Need Some Help With A Little Php Script... - Thanks (7)
    I have found on the net a free script with, what I think is, a small bug! Since I don't know
    anything about php (i'm programming in delphi) i'm looking for someone who is familiar with
    this php and it is wants to help me. If so please PM for me to give the details.... Thanx a lot,...
  12. Bloging Script - Is there any? (9)
    Is there any applications like PHPNuke which is able to post blogs to your personal website?...



Looking for php, include, script, add, table

Searching Video's for php, include, script, add, table
advertisement



Php Include Script - How to add into a table



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE