/    Sign up×
Community /Pin to ProfileBookmark

php code showing in browser

hey lads i bought a php script from codecanyon and cant seem to get it working. I tried contacting the creator but he aint answering. For some reason after following all the instructions which where very easy, I just see the php script rather than the website.. Its a php script for shoutcast player. Here is the domain where you can see the problem [url]http://www.reloadradio.org/player/[/url]

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@chrisranjanaDec 06.2014 — For starters insert a space [B]<?php define("ThemeUrl"[/B]
Copy linkTweet thisAlerts:
@Stephen_PhilbinDec 06.2014 — It looks like the file isn't getting passed to the PHP module of your Web Server (assuming there actually is one). Do you have any other PHP scripts on the host that actually run as expected? Like if you run a file that contains just &lt;?php echo 'Hello!'; ?&gt; do you just see Hello! in the web browser, or do you see the PHP code too?

If you see "Hello!", then it's more likely to be a problem with the script. If you see the PHP code too, then it's more likely to be a problem with the server configuration. My guess is that the server isn't properly configured for handling PHP files, or that if it is, the file has a different name extension than the sever is configured to look for. Like, for example, the server might be configured (somewhat unwisely) to only treat files with names ending in ".html" as PHP files. This would then cause the server to treat files with names like index.php as text/html or text/ plain and transmit them to Web Browsers without any processing at all. This would cause exactly the behaviour we're seeing from your page now.

Of course, this is just one of [b]many[/b] ways you can have misconfigured a server so that it [i]almost[/i] works how you want, but doesn't quite. Your actual problem might be caused by something slightly different, but it hopefully won't be far off. If it's a hosting provider that you're with, then you might just need to ask them to activate PHP on your account if it isn't already.
Copy linkTweet thisAlerts:
@gnaliDec 15.2014 — When i trying to access your site. I got 404 Not Found. http://prntscr.com/5h1la1


---------------------
*** links removed by moderator - please do not spam this site ***
Copy linkTweet thisAlerts:
@daviddakaraiDec 16.2014 — When i trying to access your site. I got 404 Not Found.
×

Success!

Help @reloadradio 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 5.19,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...