HTML Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   SEO Chat ForumsOtherHTML Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread SEO Chat Forums Sponsor:
  #1  
Old December 27th, 2006, 10:00 PM
spartan396's Avatar
spartan396 spartan396 is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 40 spartan396 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 29 m 20 sec
Reputation Power: 5
Php include files

Hello all, Its been a while since I have posted. I am currently working on the build of a site that uses simple PHP include files within html coding. I found that the server will not parse the include files. So I then put over an .htaccess file and went back on the site to see if that helped and it did seem to- being that the server did parse the include files. I then logged back on the site, and I got a message asking me if I wanted to download a file.... ?????? so I took the .htaccess file back out, and then the site pages worked, but the include files did not. I talked to the hosting company that has the server, and they said They are running PHP 4.3.11, and the feature I am trying to use was offered in version PHP 4.3.2 -- any Ideas -- as to what I am doing wrong or what I can do different,

Thanks so much -- I hope I posted this in the right category.

Last edited by spartan396 : December 27th, 2006 at 10:03 PM.

Reply With Quote
  #2  
Old December 28th, 2006, 08:56 AM
5ybarite's Avatar
5ybarite 5ybarite is offline
SE Au-Naturale
SEO Chat Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Location: Cincinnati
Posts: 62 5ybarite User rank is Private First Class (20 - 50 Reputation Level)5ybarite User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 20 h 42 m 53 sec
Reputation Power: 3
Send a message via Yahoo to 5ybarite
Quote:
Originally Posted by spartan396
Hello all, Its been a while since I have posted. I am currently working on the build of a site that uses simple PHP include files within html coding. I found that the server will not parse the include files. So I then put over an .htaccess file and went back on the site to see if that helped and it did seem to- being that the server did parse the include files. I then logged back on the site, and I got a message asking me if I wanted to download a file.... ?????? so I took the .htaccess file back out, and then the site pages worked, but the include files did not. I talked to the hosting company that has the server, and they said They are running PHP 4.3.11, and the feature I am trying to use was offered in version PHP 4.3.2 -- any Ideas -- as to what I am doing wrong or what I can do different,

Thanks so much -- I hope I posted this in the right category.



what is the extension of the file that your using to call the include?

standard htm files or html files won't do it (to my knowledge). you have to either have to go with .shtml or with the php extension to accomplish this. If you're already calling from a .php extension then you may want to either question your need for php or your host.

should just be able to do:
Code:
<?php include 'path to file.html'; ?>
in the php tags.

Otherwise with a .shtml extension you can:
Code:
<!--#include virtual="includes/main_top_nav.html"-->
like that.

Make sense?
~5yb
Comments on this post
tommy2toes agrees: html files can't call php files, php files can call html files

Reply With Quote
  #3  
Old January 6th, 2007, 06:03 PM
tommy2toes tommy2toes is offline
Contributing User
SEO Chat Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 68 tommy2toes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 h 38 m 29 sec
Reputation Power: 3
To make sure PHP is working on your server make a file called test.php and put this code in it:

<html>
<head>
<title> PHP Test Script </title>
</head>
<body>
<?php
phpinfo( );
?>
</body>
</html>

Reply With Quote
Reply

Viewing: SEO Chat ForumsOtherHTML Coding > Php include files


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT