Forum Moderators: coopster

Message Too Old, No Replies

External PHP script

         

TGecho

2:10 am on May 30, 2003 (gmt 0)

10+ Year Member



I'm trying to do something with PHP and I want to know how to set up an external PHP script that can be run from all the pages in a site. Is this possible?

Note: my experience with PHP started about five hours ago. I've done searches but can't find anything. Maybe I'm not looking for the right thing?

Thanks

jatar_k

2:18 am on May 30, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



don't worry everything will be fine ;)

external PHP script

What do you mean by external, on another site?

outrun

2:21 am on May 30, 2003 (gmt 0)

10+ Year Member



Depends if your content types on your server allow htm or html as php it will work, or if the php script outputs javascript.

regards,
Mark

dingman

2:31 am on May 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do you mean you want to have a bit of code that runs on every one of your pages without having to write it over and over? If so, look into require() [php.net] and include() [php.net]. If they aren't perfect, look at the rest of the stuff cross-referenced from require().