Talk Arcades: Forum for Arcade Webmasters    

  Talk Arcades > Arcades > Webmastering

Welcome to Talk Arcades, the premier forum for arcade webmasters.

You are currently viewing our boards as a guest. By joining our community you will be able to make posts, communicate privately with other arcade webmasters and participate in our Live Marketplace. Registration is easy, so please join us today!

Reply
 
LinkBack Thread Tools Display Modes
Old 07-05-2008, 12:50 AM   #1 (permalink)
GotSkillz
Preferred Member
 
GotSkillz's Avatar
 
Join Date: May 2008
Posts: 112
GotSkillz is on a distinguished road


Exclamation Help!

So my ajax shoutbox came up with this error

Warning: include() [function.include]: URL file-access is disabled in the server configuration

Along with some other errors,

I googled it but did not find results i could comprehend.

Basically i have
PHP Code:
<?php include('shoutbox'); ?>
and i changed it to
PHP Code:
<?php include('http://www.playit25.com/shoutbox.php'); ?>
So that if you were on lets say playit25.com/links you could still see it.

Well if i changed it to
PHP Code:
file_get_contents('http://www.playit25.com/shoutbox.php'); 
then the included file cannot rely on variables that are already set in the site because it gets the contents as a separate entity. The file relies on the isset variable username to decide if you are logged in. I am using that right now so the error doesnt show. But i need to fix it so that people can post.

Anyone had this problem before? Anyone know how to fix it? Thanks.
GotSkillz is offline  
Digg this Post!
Reply With Quote
Old 07-05-2008, 01:13 AM   #2 (permalink)
brendgard
Gamer FX Staff
Senior Member
 
brendgard's Avatar
 
Join Date: Oct 2006
Posts: 674
brendgard is on a distinguished road


Default

First question that comes to mind is did you have it

Code:
<?php include('shoutbox'); ?>

or was it

Code:
<?php include('shoutbox.php'); ?>
? Some setups might choke in such a way as to not know what error to throw in the first case and give such an error message.

If it really is configured in such a way, you might want to contact your host company and see if they would turn it on. Include() is such a handy function to have, I would really hate to do without it myself.

You could try to figure out how to pass variables to it as well if nothing else works.


Edited in:
Worst case senario, you could always code it right into the template/file calling it.
__________________
http://gamersgo.com A list of arcade related sites, add yours.
http://auntiefondy.com Lists, add your site.
http://kbsplace.com
brendgard is offline  
Digg this Post!
Reply With Quote
Old 07-05-2008, 10:06 AM   #3 (permalink)
GotSkillz
Preferred Member
 
GotSkillz's Avatar
 
Join Date: May 2008
Posts: 112
GotSkillz is on a distinguished road


Default

sorry it was
PHP Code:
<? include('shoutbox.php'); ?>
.

Then whenever you would go to a web page in a different directory the shoutbox wouldnt work because shoutbox.php is not in playit25.com/games it is in playit25.com/. it was working for a few days... it then it just suddenly popped up with the error msg...

EDIT: Yeah i could code it into the file calling it, but my question is... why was it working before? and then randomly decided to pop up with an error?
GotSkillz is offline  
Digg this Post!
Reply With Quote
Old 07-05-2008, 10:21 AM   #4 (permalink)
GotSkillz
Preferred Member
 
GotSkillz's Avatar
 
Join Date: May 2008
Posts: 112
GotSkillz is on a distinguished road


Default

FIX: I thought that I needed to put the URL everywhere to locate the files... however i only needed to do that in the javascript file. So the original file 'index' is always going to be in the same directory as shoutbox.php. so i changed it back to
PHP Code:
<? include('shoutbox.php'); ?>
While leaving the urls in the js file. So now it works on every page, and no error.

What i learned? : http urls inside of the include function produce errors. LOL.
GotSkillz is offline  
Digg this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 12:52 AM.


Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 RC6
© TalkArcades.com
Forum - Register - Calendar - Memberlist - FAQ - Search