i need to serve content (cheats in particular) to other domains.
the type of script i am trying to build would work like this:
Clients Domain (Receiving Content)
[code=html]<html>
<head>
<title>((DOCTITLE))</title>
</head>
<body>
<div class=”title”>((TITLE))</div>
<div class=”content”>((CONTENT))</div>
</body>
</html>
The client should also in some way include a PHP script on their site [url]http://mydomain.com/cheatserve/codes.php
The PHP code is what i am stuck on.
I think i can use str_replace to replace the ((TITLE)) etc with the title’s text.
Initially the ((CONTENT)) should include a list of games consoles, Playstation 3 etc.
then after the ((CONTENT)) should change to games consoles games, eg ps3 games. Maybe by storing a variable $consoles then $ps3 then using an IF statement to include a file from my website, do you know if this can be done? (am very new to php ? )