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 08-25-2013, 02:00 PM   #1
BSleazy
Confirmed User
 
Industry Role:
Join Date: Aug 2002
Location: USA
Posts: 6,721
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.
__________________
icq 156131086
BSleazy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-25-2013, 02:13 PM   #2
deltav
Confirmed User
 
deltav's Avatar
 
Industry Role:
Join Date: May 2010
Location: USA
Posts: 1,243
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...
__________________
*********
DeltaofVenus.com - Vintage Erotica from the 1800s through 1979
deltav is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-25-2013, 02:24 PM   #3
BSleazy
Confirmed User
 
Industry Role:
Join Date: Aug 2002
Location: USA
Posts: 6,721
Nevermind, it was a cache plugin. Not really sure why that would affect a page outside of wordpress but whatever.
__________________
icq 156131086
BSleazy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-25-2013, 02:34 PM   #4
BSleazy
Confirmed User
 
Industry Role:
Join Date: Aug 2002
Location: USA
Posts: 6,721
Hmm, how could I allow wordpress content which is password protected with htaccess to be pulled to this non wordpress page?
__________________
icq 156131086
BSleazy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-25-2013, 02:51 PM   #5
BSleazy
Confirmed User
 
Industry Role:
Join Date: Aug 2002
Location: USA
Posts: 6,721
Ok figured that out. I can just allow the server ip in htaccess.
__________________
icq 156131086
BSleazy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-25-2013, 02:53 PM   #6
Zeiss
Confirmed User
 
Industry Role:
Join Date: May 2012
Location: With your mom
Posts: 5,189
Quote:
Originally Posted by BSleazy View Post
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
__________________


Adult Webmasters Guides
Zeiss is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-25-2013, 03:03 PM   #7
BSleazy
Confirmed User
 
Industry Role:
Join Date: Aug 2002
Location: USA
Posts: 6,721
Quote:
Originally Posted by Zealotry View Post
php's include() function is not bound by apache's .htaccess
Laugh all you want but pulling featured images from the members area gave me login prompts until I allowed the server ip.
__________________
icq 156131086
BSleazy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-25-2013, 03:16 PM   #8
deltav
Confirmed User
 
deltav's Avatar
 
Industry Role:
Join Date: May 2010
Location: USA
Posts: 1,243
Yeah, you'd be able to run the function but not access those images without the IP exception.
__________________
*********
DeltaofVenus.com - Vintage Erotica from the 1800s through 1979
deltav 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.