GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Wordpress/PHP problem, php include not showing? (https://gfy.com/showthread.php?t=806169)

RevengeBucks_Monica 02-09-2008 12:26 AM

Wordpress/PHP problem, php include not showing?
 
So I'm trying to add a php include inside my sidebar so that a small toplist will display.

However, it's not showing. When you load the page, it's as if the code isn't there at all. When you look at the code itself in the browser, you don't see the include. This SHOULD mean that it's working, but it displays nothing.

I've checked the file it's supposed to include, and it has code in it.

Any ideas?

woj 02-09-2008 12:49 AM

You probably have error messages turned off, so you don't see the error... look in the error log to see what the error is...

Nookster 02-09-2008 02:03 AM

At the beginning of the php document add the following lines of code:
Code:

error_reporting(E_ALL);
ini_set('display_errors', '1');

This will forcibly show any errors. When you fix all the problems remove those lines of code, as it can show too much info to wannabe-hackers.

RevengeBucks_Monica 02-09-2008 01:19 PM

Thanks guys, I will give that a try!

RevengeBucks_Monica 02-09-2008 01:23 PM

I assume those statements have to be inside a php statement or something, because they aren't working by just inserting them anywhere into the code.

I am using wordpress and trying to insert this stuff into the index.php file.


All times are GMT -7. The time now is 08:54 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123