+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: PHP Screwing Up

  1. #1
    masterjake is offline x10Hosting Member masterjake is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    73

    PHP Screwing Up

    OK now I'm lost. I thought DIV tags were the reason my site was screwing up but I rebuilt it using only tables and STILL. Everytime I include a php code like

    Code:
    <?php
    include("file.php");
    ?>
    it always ****s up the page and my html won't render. Here's a preview

    http://masterjakeonline.com/index.php

    Help =/
    Edit:
    Oh yeah, and if you Right click - view source on that page you will notice it stops, the first lines of code right after that is

    Code:
    <?php
    include("thefile.php");
    ?>
    so as soon as it's reaching the php code it stops rendering... WHY??? =/
    Last edited by masterjake; 10-20-2008 at 01:48 PM. Reason: Automerged Doublepost

  2. #2
    xmakina's Avatar
    xmakina is offline x10 Lieutenant xmakina is an unknown quantity at this point
    Join Date
    May 2008
    Location
    England
    Posts
    265

    Re: PHP Screwing Up

    Your src has two /'s

    The error is probably in "thefile.php". Put lots of echos after each line and look for when the echos stop. Check your filepaths as well
    IF($this->$post.content() == "SEE SIG"){
    w3Schools and Google
    }

  3. #3
    masterjake is offline x10Hosting Member masterjake is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    73

    Re: PHP Screwing Up

    IDK because I just put this in the included file

    <?php

    echo "hello";
    echo "hello again";
    echo "etc etc etc";

    ?>

    and it still doesnt include it. somethings effed up with php including because if i just echo code or something instead of including a file it will work but when i try including a php file it ****s up. whats wrong =/?

  4. #4
    Salvatos's Avatar
    Salvatos is offline x10 Lieutenant Salvatos is an unknown quantity at this point
    Join Date
    Jun 2006
    Location
    Québec, Canada
    Posts
    271

    Re: PHP Screwing Up

    You should definitely show us what's inside thefile.php. As many have said before (in this thread or the other one), I'm pretty sure the error comes from inside of it, not the including itself.
    Last edited by Salvatos; 10-20-2008 at 09:02 PM. Reason: Typo

  5. #5
    freecrm's Avatar
    freecrm is offline x10 Elder freecrm is an unknown quantity at this point
    Join Date
    May 2008
    Location
    UK
    Posts
    629

    Re: PHP Screwing Up

    Quote Originally Posted by masterjake View Post
    IDK because I just put this in the included file

    <?php

    echo "hello";
    echo "hello again";
    echo "etc etc etc";

    ?>

    and it still doesnt include it. somethings effed up with php including because if i just echo code or something instead of including a file it will work but when i try including a php file it ****s up. whats wrong =/?
    Really stupid question here but is this the entire content of the included file?

    i.e. - is this part of a <body> or just as is?

    I know this is basics but lots of people get it wrong and it causes all sorts of problems.

  6. #6
    masterjake is offline x10Hosting Member masterjake is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    73

    Re: PHP Screwing Up

    That's whats in the included file yes and since so many people want to see it all I'll include the entire source.

    index.php
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <head>
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
    <link rel="stylesheet" type="text/css" href="http://masterjake.x10hosting.com/default.css" media="screen"/>
    <title>Master Jake Online</title>
    </head>
    
    <body>
    <center>
    
    <table border="0" cellspacing="0" cellpadding="0">
    <tr><td class="container">
    
    <table border="0" cellspacing="0" cellpadding="0">
    <tr><td colspan="2">
    
    <table border="0" cellspacing="0" cellpadding="0">
    <tr>
    	<td class="header">Master Jake Online</td>
    </tr>
    </table>
    
    </td><td rowspan="2" valign="top">
    
    <table border="0" cellspacing="0" cellpadding="0">
    <tr>
    	<td class="main_right" valign="top" align="left">
    
    <table border="0" cellspacing="0" cellpadding="0">
    <tr>
    		<td class="padded" valign="top" align="left"> 
    			
    <?php
    include("http://masterjake.x10hosting.com/include/right_table.php");
    ?>
    
    		</td>
    </tr>
    </table>
    
    	</td></tr>
    </table>
    
    </td></tr>
    <tr><td valign="top">
    
    <table border="0" cellspacing="0" cellpadding="0">
    <tr>
    	<td class="subnav" valign="top" align="left">
    
    <?php
    include("http://masterjake.x10hosting.com/include/navigation.php");
    ?>
    
    	</td>
    </tr>
    </table>
    
    </td><td valign="top">
    	
    <table border="0" cellspacing="0" cellpadding="0">
    <tr>	
    	<td class="main" align="left" valign="top">
    
    <table border="0" cellspacing="0" cellpadding="0">
    <tr>
    		<td class="padded" align="left" valign="top">
    
    <blockquote>Last update: <b>Sunday, October 19, 2008</b></blockquote><br>
    			<h1>Master Jake Online Released</h1>
    			<p class="meta">Posted by <b>Master Jake</b> on <b>Sunday, October 19, 2008</b></p>
    <p>Welcome! If you are an active member of the Master Jake Community then you have been itching for the release of the new Multi-Genre website from the Master Jake Website Series. The newest site, Master Jake Online, is the first ever website from Jake Chappell that includes multi-genre activity and content a long with it's very first .com domain. All websites by Jake Chappell are considered BETA due to their openness to the ideas of viewers for expansion and remodeling. This means, your opinion <b>DOES MATTER</b> greatly here. Post your opinion today on the "Post Your Opinion" page. Thanks and enjoy!</p><br>
    <h1>How Can You Help?</h1>
    <p class="meta">Posted by <b>Master Jake</b> on <b>Sunday, October 19, 2008</b></p>
    <p>Probably the biggest way you can help the website is by using and enjoying it. Become an active member of the Master Jake Community and encourage others to be active. This method will bring more users to Master Jake Online quickly and will allow the website to expand in variety and entertainment. Another way to help the website would of course be donating. By donating to the website you are helping to pay for the domain and services as well as helping Jake Chappell as the creator to buy new equipment. You can find the donate button below.<br><br>
    <center>
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHNwYJKoZIhvcNAQcEoIIHKDCCByQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYBDUrABb5/A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0ew9V+IxX22TGEib4dg+dTqov9I9m-----END PKCS7-----
    ">
    <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="">
    <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </form>
    </center>
    </p>
    				
    		</td>
    </tr>
    </table>
    
    	</td>
    </tr>
    </table>
    
    </td></tr>
    </table>
    	
    <?php
    include("http://masterjake.x10hosting.com/include/body_footer.php");
    ?>
    
    </td></tr>
    </table>
    
    </center>
    </body>
    
    </html>
    right_table.php
    Code:
    <?php
    
    echo "hello";
    echo "hello again";
    echo "etc etc etc";
    
    ?>
    navigation.php
    Code:
    <h1>Main Menu</h1>
    <ul>
    <li><a href="http://masterjake.x10hosting.com/index.php">Home</a></li>
    </ul>
    body_footer.php
    Code:
    <div class="clearer"><span></span></div>
    <div class="footer">
    <span class="left">Copyright &copy; 2008 Jake Chappell. All rights reserved.</span>
    <span class="right">Design by <a href="http://arcsin.se/">Arcsin</a></span>
    <div class="clearer"><span></span></div>
    </div>
    NOTE: The files are so small because this is for my new site which I was kindly working on until this php problem complicated things. Also, I've built many sites before exactly like this without problems.

  7. #7
    freecrm's Avatar
    freecrm is offline x10 Elder freecrm is an unknown quantity at this point
    Join Date
    May 2008
    Location
    UK
    Posts
    629

    Re: PHP Screwing Up

    Bizzarre!!!

  8. #8
    natsuki's Avatar
    natsuki is offline x10 Sophmore natsuki is an unknown quantity at this point
    Join Date
    Sep 2008
    Posts
    112

    Re: PHP Screwing Up

    try removing or commenting the include("....rightable.php");.... temporarily and see if it loads the rest of the includes

  9. #9
    TheMan177 is offline x10 Sophmore TheMan177 is an unknown quantity at this point
    Join Date
    Jan 2008
    Posts
    179

    Re: PHP Screwing Up

    You've got code including external urls, such as:
    Code:
    include("http://masterjake.x10hosting.com/include/right_table.php");
    If I remember correctly, PHP forbids inclusions of remote files by default. What happens when you try using a server path? If this is the problem you should be getting errors such is this in your error log:
    Code:
    [Tue Oct 21 03:40:36 2008] [error] [client 10.1.1.9] ALERT - Include filename ('http://apache.local/test1.php') is an URL that is not allowed (attacker '10.1.1.9', file '/var/www/htdocs/test1.php', line 1)
    Last edited by TheMan177; 10-21-2008 at 03:08 AM.

  10. #10
    masterjake is offline x10Hosting Member masterjake is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    73

    Re: PHP Screwing Up

    The "external url" is my website... and I can't find the error log so I'm assuming it's not throwing errors to create one.

    On other hand, I took at the include right table part, it just renders the page down to the next include then stops again.

    It's deffinately x10Hosting, I tried this on my localhost XAMPP php server and it worked perfectly. You guys might wanna look into it.

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Ever Been Suspended For Using PHP?
    By dragoneye_xp in forum Off Topic
    Replies: 26
    Last Post: 08-16-2009, 07:17 PM
  2. [PHP] Variables in PHP
    By Bryon in forum Tutorials
    Replies: 15
    Last Post: 01-29-2009, 09:46 AM
  3. PHP and new accounts
    By idani in forum Free Hosting
    Replies: 1
    Last Post: 09-21-2008, 01:49 PM
  4. currently have an application pending php
    By biomasti in forum Free Hosting
    Replies: 1
    Last Post: 09-03-2008, 01:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers