Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: Including another file through a psp page Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
onhiatus
Senior Member
Senior Member
Avatar

Joined: May 12 2004
Location: United States
Online Status: Offline
Posts: 279
Posted: June 13 2006 at 23:53 | IP Logged Quote onhiatus

Is it possible to include a file in the web directory in a psp page?

I'd like to do something like:
     <HTML>
     <HEAD></HEAD>
     <BODY>
       Today's Appointments:<BR>
       <span name="TimeStamp">
        <%ph_INCLUDE_FILE("cal0.txt") %>
       </span>
     </BODY>
     </HTML>

Thanks!
Back to Top View onhiatus's Profile Search for other posts by onhiatus Visit onhiatus's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: June 14 2006 at 07:53 | IP Logged Quote TonyNo

Use ph_readfile.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
onhiatus
Senior Member
Senior Member
Avatar

Joined: May 12 2004
Location: United States
Online Status: Offline
Posts: 279
Posted: June 14 2006 at 18:55 | IP Logged Quote onhiatus

Arghh! I'm an idiot. I am using ph_readfile to save the contents to a global within ph. It never even occured to me that I could do it directly.

I guess I still haven't gotten in the mode of thinking in psp mode.

Thanks.
Back to Top View onhiatus's Profile Search for other posts by onhiatus Visit onhiatus's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: June 14 2006 at 20:23 | IP Logged Quote TonyNo

It'll come to you!
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum