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)
-   -   PHP - Wordpress question (https://gfy.com/showthread.php?t=1119310)

BSleazy 08-25-2013 02:00 PM

PHP - Wordpress question
 
I'm banging my head on the wall trying to figure out what I'm missing.

I'm trying to use some wordpress functions on a non-wordpress page. I've tested this on my own server and it works fine but it's not working on someone elses.

I'm using this <?php include 'members/wp-load.php'; ?> and any changes I make to the html or anything after that line is not working or showing. Even if I delete sections of the page it still shows up in browsers like the original page is being stored and served from somewhere. I just don't get it.

deltav 08-25-2013 02:13 PM

IIRC there are/were some notes at the end of wp-load.php, something about a file needing to be manually created? Not sure if they're germane to your issue or even still in the most current version, but might be worth taking a peek. Sorry, can't easily check any installations where I'm at...

BSleazy 08-25-2013 02:24 PM

Nevermind, it was a cache plugin. Not really sure why that would affect a page outside of wordpress but whatever.

BSleazy 08-25-2013 02:34 PM

Hmm, how could I allow wordpress content which is password protected with htaccess to be pulled to this non wordpress page?

BSleazy 08-25-2013 02:51 PM

Ok figured that out. I can just allow the server ip in htaccess.

Zeiss 08-25-2013 02:53 PM

Quote:

Originally Posted by BSleazy (Post 19772952)
Hmm, how could I allow wordpress content which is password protected with htaccess to be pulled to this non wordpress page?

php's include() function is not bound by apache's .htaccess :1orglaugh

BSleazy 08-25-2013 03:03 PM

Quote:

Originally Posted by Zealotry (Post 19772960)
php's include() function is not bound by apache's .htaccess :1orglaugh

Laugh all you want but pulling featured images from the members area gave me login prompts until I allowed the server ip.

deltav 08-25-2013 03:16 PM

Yeah, you'd be able to run the function but not access those images without the IP exception.


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

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