/    Sign up×
Community /Pin to ProfileBookmark

creating a content server

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>[/code]

The client should also in some way include a PHP script on their site [url]http://mydomain.com/cheatserve/codes.php[/url]

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 ? )

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @danpoulton spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...