Forum Moderators: coopster

Message Too Old, No Replies

linking to external php script, possible?

like for javascript

         

stef25

7:16 pm on Jul 10, 2005 (gmt 0)

10+ Year Member



im asking this as a php novice so forgive me if its a stupid question:

is there any way of placing php code in an external file, and then link to it? id like to do this to avoid too much code in my pages

for javascript the following solution exists:
<script type="text/javascript" src="images.js">

thanks
stef

DanA

8:37 pm on Jul 10, 2005 (gmt 0)

10+ Year Member



You can use
include("filename");
or
require("filename");
with your script :
[us2.php.net...]