Jump to content

PHP newbie - include question


Dant27

Recommended Posts

Hi everyone,I`m a PHP n00b :) I have got a basic re-direct code below:

<?php $URL="http://elpasso.burnthefat.hop.clickbank.net";header ("Location: $URL");exit();?>

What I am looking to do is replace the "elpasso" part of the code with some text from a text file. Lets call it "example.txt"So I am guessing that I would use the include function but I have been struggling with the correct syntax. Would someone be able to post an example of the above link using the include function and the correct syntax?Thanks in advance!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...