|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Web Coding | |
Making a PHP Block
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) | ||||||||||||
|
Programmer
![]() |
Hello, I was looking to get some well needed help from you guys as I am new to PHP and can't find anything on the internet about this. Well, basically I have this code that I want to put on my website to show if the server is up or down and the ping of it. But in order to do that I must first place it in a PHP Block. the problem is... I don't know what a PHP Block is and how to make one. Here is a link to the page that has the code and some information: Website Server Status Code Page
If anyone could help me with this and maybe explaining in a little detail(if you want, if not I understand) of how to make this or how to get this working it would be much obliged. Thank anyone for their time in explaining this to me. =)
__________________
Join me and my friends in Khan Wars 2.0: Clan Merciless Think you can beat [OCN]Blade? Give it a try... New i7 Rig Project — Funds: $-267/$1,169 — [|||||||||||||||||||||||]
|
||||||||||||
|
|
|
|
|
#2 (permalink) | ||||||||||||||
|
First Time Build
![]() |
are you using tiny portal? (note: tiny portal works as an package-addon for SMF 'simple machines forum software')
if you aren't using both (or either) it would be more difficult to help you.
__________________
8800GT FTW ![]() Quote:
|
||||||||||||||
|
|
|
|
|
#3 (permalink) | |||||||||||
|
WaterCooler
![]() |
Change your .html page extension to .php then wherever you want the php code put it inside like this:
<?php --php code goes here ?> It won't work if you keep the html extension
__________________
|
|||||||||||
|
|
|
|
|
#4 (permalink) | ||||||||||
|
New to Overclock.net
|
Like randomizer said, copy all of the code, place it inside PHP tags like so:
__________________Code:
<?php //---The code you copied goes here. ?> Then upload it to your web server and go to it (http://www.yoursite.com/status.php)
|
||||||||||
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|