Can I have help fixing my code?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
neal41835
Forum Newbie
Posts: 2
Joined: Mon Jan 01, 2007 6:15 pm

Can I have help fixing my code?

Post by neal41835 »

feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Here is my index.php:

Code: Select all

<!--

NOTICE:
ANYTHING INSIDE OF THESE ARROWS TELLS YOU WHAT SOMETHING DOES AND HOW TO EDIT IT! EZ-EDIT!

-->

<HTML>
<HEAD><TITLE>Poker Chips Store: Great Prices</TITLE>
</HEAD>
<BODY MARGINHEIGHT="0" MARGINWIDTH="0" LEFTMARGIN="0" RIGHTMARGIN="0" TOPMARGIN="0" BOTTOMMARGIN="0">
<TABLE BORDER="0" ROWS="3" WIDTH="100%" CELLSPACING="0">
<?php include "top-menu.php"; ?>

<!--
OPEN THE FILE CALLED "top-menu.php" TO EDIT THE MENU AND LINKS!
-->

<?php include "categories.php"; ?>

<!--
OPEN THE FILE CALLED "categories.php" TO EDIT THE LINKS AND TEXT
TO THE TABLE LOCATED TO THE LEFT ON THE FRONT PAGE!
-->

</TD>
<td valign="top">
<table border="0" align="center" cellspacing="0">
<td>
<?php include "main-text.php"; ?> 

<!-- 
OPEN THE FILE CALLED "main-text.php" AND EDIT THE TEXT IN THERE AND IT WILL CHANGE THE
TEXT THAT IS ON THE FRONT PAGE!
-->

</td></table>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
Why won't this load? It becomes: http://neal41835.freepgs.com/pokerchips ... blic_html/ (I have all the files in this fixed too)

Do I need an index.html? If I do how do I link to this?


Thanks just fix the code and repost if you guys know how I appriciate it.


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
timclaason
Forum Commoner
Posts: 77
Joined: Tue Dec 16, 2003 9:06 am
Location: WI

index

Post by timclaason »

Actually, it looks like PHP may not be running, or something weird is going on with your php configuration. If PHP is running properly, having the tag: <?php should invoke your server to compile it as PHP code. Since it's not, the conclusion is there's something weird with your php configuration or php is not running.
neal41835
Forum Newbie
Posts: 2
Joined: Mon Jan 01, 2007 6:15 pm

Post by neal41835 »

So there is nothing wrong with this code? Can you check my other code?

Thanks
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: Can I have help fixing my code?

Post by John Cartwright »

neal41835 wrote:Thanks just fix the code and repost if you guys know how I appriciate it.
Sorry it's not how it works around here. This is not a php-code issue, but a server configuration issue. Considering your entire web-root is accessible to the public you should contact your host immediatly and this is a pretty serious security problem.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

Drat. And I'd scheduled the rest of my day to author his website :(
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

:lol:
Post Reply