Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Replace Shtml With Php?, I don't know jack....
gunbound
post Apr 6 2005, 01:51 AM
Post #1


PhilosopherX
*******

Group: Members
Posts: 106
Joined: 5-February 05
From: Planet X
Member No.: 3,613



I don't know anything about PHP, except that I use phpBB and have modified my forums template files.

I used to make web sites years ago and just got back into it a couple months ago. I wonder if I should stop using shtml and switch to php. I don't really have time to learn php (at least not yet), but if it's easy to replace my Server Side Include with php (just to be more "modern") I would be willing to do so.

Anyone have any suggestions about me doing so? Am I'm too old school for using shtml? Lol laugh.gif I never see any web sites that use it anymore.

If there's an easy way for me to learn how to use PHP, specifically for includes (as that's all I think I should want to use it for), I would appreciate the help.
Go to the top of the page
 
+Quote Post
snlildude87
post Apr 6 2005, 02:32 AM
Post #2


Moderator
***************

Group: Members
Posts: 2,325
Joined: 8-March 05
From: Mawson, Antarctica
Member No.: 4,254



Ahh yes, the good ole include. It's really easy for PHP, by the way, and I'm someone who have very little knowledge of PHP.

To include a file with PHP, simple place the code:
CODE
<?php include("file.txt"); ?>
anywhere in your page. This code assumes that file.txt is in the same directory as the calling page. You can modify this, of course, by using absolute URLs instead of a relative one. The filename, .txt, can be any file name (as far as I'm concerned).

Hope that helped! smile.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Help With Preg_replace(3)
  2. Preg_replace Problems(7)
  3. Php Preg Replace(1)
  4. Preg Replace Problem(1)
  5. A Simple Preg_replace Help Please.(2)


 



- Lo-Fi Version Time is now: 5th September 2008 - 09:49 AM