Cerb
Jul 11 2005, 10:18 PM
| | 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
Jul 11 2005, 10:26 PM
You'll have to include the full path so it will probably be something like '/public_html/yourdirectory/myframe.htm'.
Reply
truefusion
Jul 11 2005, 11:28 PM
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
Jul 11 2005, 11:41 PM
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
Jul 11 2005, 11:51 PM
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
Jul 12 2005, 12:33 AM
Doh! I just didn't change the extension on my index page etc.
Reply
truefusion
Jul 12 2005, 05:08 AM
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
Similar Topics
Keywords : php script- Directory Script
- (1)
- 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?...
Redirec Script
- (7)
I need a scrip that redirects to my forum to index_cm.php, i cant change the name of that file...
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...
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...
Good Billing Script
- (0)
does anybody here know of any good billing script like merchant bil;l that are free or very cheap...
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...
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. ...
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...
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...
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,...
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
|
|