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-10-2008, 11:36 AM   #1
tehHinjew
Confirmed User
 
tehHinjew's Avatar
 
Join Date: Sep 2006
Location: MTL
Posts: 5,755
PHP guys- i need help.. its a small thing

I am looking for a solution to a news ticker that I use on my site...

Take the following in mind my site uses 1000 plus pages and the ticker is on every page and the pages are in folders.

I used to use <?PHP include("http://site.dotcom/ticker.php");?>

and i tried <?php include($_SERVER['DOCUMENT_ROOT'].'/updates.php'); ?> and it doesnt work... I still get the error you can see this via ffgenesis.com I am testing it on an old site .

This no longer works anymore, I am looking for a simple way to solve this issue once again and not a big code considering its a tiny code already.

Thanks in advance,

P.S If I sound stupid it been a while since I've coded I may be out of date for 2 years.
__________________

Hot Porn Wanna trade? email me at wanker (@) wanknation dot com
tehHinjew 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, 11:47 AM   #2
mike-al
Confirmed User
 
Join Date: Aug 2007
Posts: 691
the use of fopen requires a setting in php.ini that may be disabled

fopen opens files locally or via extenals calls <-- which i am guessing is your problem
since you are using a http:// in your include and this feature may be disabled as its a security concern
__________________
Delete this account, i am done here
mike-al 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:28 PM   #3
Varius
Confirmed User
 
Industry Role:
Join Date: Jun 2004
Location: New York, NY
Posts: 6,890
Mike is right above, if it's your box change the value in php.ini

If it's a host where you don't have access try putting in your php file

ini_set('allow_url_fopen', TRUE);

however there are a few settings ini_set doesn't have permission to change and this *may* be one of those.

However, I recommend using Smarty or another template engine for PHP to begin with, so you keep your PHP and HTML nice and clean and seperate.
__________________
Skype variuscr - Email varius AT gmail
Varius 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.