d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Minecraft Php Ban Page Is Not Loading Correctly > Index.php
12Next
Add Reply New Topic New Poll
Member
Posts: 9,069
Joined: Jun 6 2009
Gold: 0.00
Sep 4 2013 09:47am
So the website page is suppose to look like this...


and... here is the result when I try to view the file/page while on my computer , and or on my web host.



I was hoping someone might have ran into a similar issue, and may be able to give me some help if its not too much trouble.

This post was edited by conetopia on Sep 4 2013 09:47am
Member
Posts: 29,723
Joined: Jun 11 2007
Gold: 279.52
Sep 4 2013 09:51am
looks like you have some open php tags, its displaying your code as html rather than php
Member
Posts: 11,610
Joined: Oct 28 2008
Gold: 1,795.00
Sep 4 2013 12:56pm
Quote (AkuuZ @ Sep 4 2013 10:51am)
looks like you have some open php tags, its displaying your code as html rather than php


This, get a word processor like notepad++ to check all tags are closed

Also could be your file extension isn't .php
Member
Posts: 9,069
Joined: Jun 6 2009
Gold: 0.00
Sep 4 2013 01:09pm
Quote (0n35 @ 4 Sep 2013 12:56)
This, get a word processor like notepad++ to check all tags are closed

Also could be your file extension isn't .php


I have notepad++
everything seems to be fine.
There is probably some extra stupid config file or .php that I am missing.
For awhile, I was thinking that You needed some type of .php browser... aka not firefox,googlechrome,IE.

But I viewed another page that actually had theirs working, so yea.. its just me lol
The developer Probably missed a file or something when he released it.

Or simply just outdated material.

This post was edited by conetopia on Sep 4 2013 01:11pm
Member
Posts: 237
Joined: Aug 6 2011
Gold: 6,026.00
Sep 4 2013 01:09pm
Possibly an open quote (") error. Shove it all in a GDE it should flag the line with the error
Member
Posts: 2,736
Joined: Nov 28 2009
Gold: 34.00
Sep 13 2013 02:22am
Do you even have a PHP server running..?
Member
Posts: 9,069
Joined: Jun 6 2009
Gold: 0.00
Sep 14 2013 04:13am
Quote (eagl3s1ght @ 13 Sep 2013 02:22)
Do you even have a PHP server running..?


On my computer, All I have is a .html /database that came in a folder.
They did not provide any info requiring a php program/server.

Where could I obtain this?

But my website host has myphpadmin, so I don't see why it still wouldn't show up.

This post was edited by conetopia on Sep 14 2013 04:15am
Member
Posts: 237
Joined: Aug 6 2011
Gold: 6,026.00
Sep 14 2013 05:54am
Quote (conetopia @ Sep 14 2013 12:13pm)
On my computer, All I have is a .html /database that came in a folder.
They did not provide any info requiring a php program/server.

Where could I obtain this?

But my website host has myphpadmin, so I don't see why it still wouldn't show up.



There could be rules set to prevent your php page to run from the folder it's saved in.

You should install something like apache server with php ready to go on your own machine and attempt to run your code from localhost, will make it easier to debug.
Member
Posts: 9,069
Joined: Jun 6 2009
Gold: 0.00
Sep 14 2013 05:58am
Quote (flyinggoat @ 14 Sep 2013 05:54)
There could be rules set to prevent your php page to run from the folder it's saved in.

You should install something like apache server with php ready to go on your own machine and attempt to run your code from localhost, will make it easier to debug.


Thanks, I will give this Apache thing a try. :)
Member
Posts: 2,227
Joined: Jul 1 2008
Gold: 519.50
Sep 16 2013 11:00am
For a quick and easy dev Apache/MySQL setup, grab XAMPP http://xampp.org
Go Back To Programming & Development Topic List
12Next
Add Reply New Topic New Poll