Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-09-2008, 04:12 PM   #1
Emil
Confirmed User
 
Emil's Avatar
 
Join Date: Feb 2007
Location: Sweden
Posts: 5,650
Wierd fucking PHP & HTML error. HELP!

I got a fucking weird html error and it's driving me nuts.

I got a bit of html-table code. It's working fine if I add it in the index.php-file.
But if I save the same bit of code in toplist.html

and replace the part in the index.php-file with:
<?php include "./sloth_toplist/toplist.html"; ?>

The table gets fucked up. But it's the same fucking HTML-code!

Any idea what can cause this? There's no extra spaces or linebreaks...

__________________
Free 🅑🅘🅣🅒🅞🅘🅝🅢 Every Hour (Yes, really. Free ₿itCoins.)
(Signup with ONLY your Email and Password. You can also refer people and get even more.)
Emil is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-09-2008, 04:45 PM   #2
brandonstills
Confirmed User
 
brandonstills's Avatar
 
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
Do you have apache configured to treat .html as PHP code?
brandonstills is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-09-2008, 04:48 PM   #3
Deej
I make pixels work
 
Deej's Avatar
 
Industry Role:
Join Date: Jun 2005
Location: I live here...
Posts: 24,386
Quote:
Originally Posted by brandonstills View Post
Do you have apache configured to treat .html as PHP code?
hooooty hooooo~!
__________________

Deej's Designs n' What Not
Hit me up for Design, CSS & Photo Retouching


Icq#30096880
Deej is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2008, 12:55 AM   #4
natkejs
Confirmed User
 
Industry Role:
Join Date: Jan 2003
Location: Nomad Land
Posts: 1,629
If you're willing to pay or my time I'll fix it.
__________________
natkejs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2008, 01:01 AM   #5
Azathoth
Confirmed User
 
Join Date: Nov 2002
Location: Blah
Posts: 217
Quote:
Originally Posted by Emil View Post
I got a fucking weird html error and it's driving me nuts.

I got a bit of html-table code. It's working fine if I add it in the index.php-file.
But if I save the same bit of code in toplist.html

and replace the part in the index.php-file with:
<?php include "./sloth_toplist/toplist.html"; ?>

The table gets fucked up. But it's the same fucking HTML-code!

Any idea what can cause this? There's no extra spaces or linebreaks...

Your server probably only parses PHP in .php files, not .html files. Rename the file to a .php and it will work (or reconfigure your server).

- Az
Azathoth is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2008, 01:12 AM   #6
Alky
Confirmed User
 
Alky's Avatar
 
Join Date: Apr 2002
Location: Houston
Posts: 5,651
err wait is it loading the include?
Alky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2008, 01:15 AM   #7
Alky
Confirmed User
 
Alky's Avatar
 
Join Date: Apr 2002
Location: Houston
Posts: 5,651
Also it's not the extension... you could do .blah and as long as <?php are in it, it should still process the php code. I think ;)
Alky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2008, 01:20 AM   #8
Ecchi22
Too lazy to set a custom title
 
Ecchi22's Avatar
 
Industry Role:
Join Date: Nov 2005
Posts: 10,012
Is there anything else in the PHP file? Maybe some style or code in it is making the problem. Or toplist.html is loading external css file but because of include, the location is different and it can't be loaded..

Also, try to remove that ./ thingie, so instead of ./sloth_toplist/toplist.html just put sloth_toplist/toplist.html

;)
__________________
Ecchi22 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2008, 01:38 AM   #9
Emil
Confirmed User
 
Emil's Avatar
 
Join Date: Feb 2007
Location: Sweden
Posts: 5,650
I was trying to get it working for 4 fucking hours! Still no luck! It's only HTML in the file I try to include. I renamed it to a .txt file just to try but the table get fucked up anyway.

I also tried to change the format of the file I include to ANSI and UTF-8 but it didn't have anything to do with it either.

Also tried different method to include the file with PHP but no luck there either.


Thanks for trying to help me with this shit. I'll ask the designer if he knows whats going on when he gets online.
__________________
Free 🅑🅘🅣🅒🅞🅘🅝🅢 Every Hour (Yes, really. Free ₿itCoins.)
(Signup with ONLY your Email and Password. You can also refer people and get even more.)
Emil is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2008, 01:57 AM   #10
yahoo-xxx-girls.com
Confirmed User
 
yahoo-xxx-girls.com's Avatar
 
Join Date: Jul 2006
Location: Canada
Posts: 3,143
use note pad or similar program and open up your html page and save such as "index.php" and keep the quotes... (if you are using Windows) plus check your php plug ins options within your server.... there should be a small list.
__________________
sig too big
yahoo-xxx-girls.com is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2008, 02:11 AM   #11
brandonstills
Confirmed User
 
brandonstills's Avatar
 
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
Quote:
Originally Posted by Alky View Post
Also it's not the extension... you could do .blah and as long as <?php are in it, it should still process the php code. I think ;)
By default Apache will only treat .php extensions as having PHP content. It doesn't matter if you put <?php in it. It will be treated as plain text if the web server doesn't pass it to the PHP engine.
brandonstills is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2008, 02:15 AM   #12
brandonstills
Confirmed User
 
brandonstills's Avatar
 
Join Date: Dec 2007
Location: Chatsworth, CA
Posts: 1,964
I just tried including a file that only contained text (no PHP).

include 'blah.html';

It included it and displayed the contents of blah.html.

Check the path to the file and to make sure it's in the correct spot. The working directory should be relative to the first .php file invoked, not the last one.
brandonstills is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2008, 02:16 AM   #13
LazyD
Confirmed User
 
Join Date: Aug 2004
Location: www.calidi.com
Posts: 102
Quote:
Originally Posted by brandonstills View Post
Do you have apache configured to treat .html as PHP code?
The file extension doesn't matter when including a file located on a local server. PHP parsing is done after inclusion, so even if you include txt files it will work

(if you specify a URL instead of a server path then in that case yes the extension must be PHP... when including external ressources the parsing is done during inclusion)


Well... Emil send me the files by icq, i will have a quick look at your problem
__________________
Calidi studio
http://www.calidi.com
ICQ: #18466283
LazyD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-10-2008, 03:06 AM   #14
Emil
Confirmed User
 
Emil's Avatar
 
Join Date: Feb 2007
Location: Sweden
Posts: 5,650
lol, finally solved it.

for some reason I got some table-error when I had this line in the include file "<table width="100&#37;" border="0" cellspacing="4" cellpadding="0" class="fg">"

But if I left it in the index.php file and just included the rest of the table everything worked fine.
__________________
Free 🅑🅘🅣🅒🅞🅘🅝🅢 Every Hour (Yes, really. Free ₿itCoins.)
(Signup with ONLY your Email and Password. You can also refer people and get even more.)
Emil is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.