PHP Help

Status
Not open for further replies.

jasgor9

New Member
Messages
40
Reaction score
0
Points
0
I own the domain TELVIOR.COM. I have been editing it for a few days. suddenly, the PHP stopped working. The old php that is currently not working i have moved to http://www.telvior.com/indexold.php. Could someone visit that page and explain why none of the PHP code is working anywhere?

it just displays "file-access is disabled in server configuration"
 
Last edited:

mitamata

New Member
Messages
81
Reaction score
0
Points
0
Hmmm... You mean stuff like this?
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/jasgor9/public_html/indexold.php on line 28

How are you including the files and where are they located? The problem could be that you're using an absolute path instead of a relative one. Check this link for more info.

If that's not it, could you post/PM what's on line 28 of indexold.php?
 

jasgor9

New Member
Messages
40
Reaction score
0
Points
0
I have a news scroller, and for easy editing put an include to a php file containing the scroller's content on every page. so if i change the php, the news would be updated on all pages of my site. line 28 is the line including the outside php file:

<?php include "http://www.telvior.com/telnews/marquee.php"; ?>


AND: the php was working, but suddenly stopped. the site was running for days and then the php just turned into errors. this 'line 28' text has been untouched since i uploaded the site.
 

mitamata

New Member
Messages
81
Reaction score
0
Points
0
There have been a number of changes on the servers recently. Perhaps a setting that was previously on has now been turned off.

Did you see the link I posted? I think that's your problem.
Try including it like this:

<?php include "telnews/marquee.php"; ?>

I must admit I've never had that problem so I don't know if it will fix it, but it's worth a try ;)
 

jasgor9

New Member
Messages
40
Reaction score
0
Points
0
ok. i cannot do that right now but i will try it later today. i will post another thread if that was not the problem.
Edit:
but now the PHP is working, even though i didn't change anything. maybe it was just from updating the php config. thanks.
 
Last edited:

mitamata

New Member
Messages
81
Reaction score
0
Points
0
As long as it works :)
You might still wanna try it though. So that in case this happens again, your site won't be down.
 

xN3uRoNx

New Member
Messages
12
Reaction score
0
Points
0
the error:

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/jasgor9/public_html/indexold.php on line 28

it's saying you cant include http://www.telvior.com/telnews/marquee.php in the include part, do what mitamata said with the:

PHP:
<?php 
include("telnews/marquee.php"); 
?>
 

Catzwolf

New Member
Messages
11
Reaction score
0
Points
0
I have a news scroller, and for easy editing put an include to a php file containing the scroller's content on every page. so if i change the php, the news would be updated on all pages of my site. line 28 is the line including the outside php file:

<?php include "http://www.telvior.com/telnews/marquee.php"; ?>


AND: the php was working, but suddenly stopped. the site was running for days and then the php just turned into errors. this 'line 28' text has been untouched since i uploaded the site.

Hiya,

The problem is that you cannot use a URI reference to include a specific file, you must alway use the absolute path instead.

ie: 'path/to/my/specific/file/on/the/server/file.php'
 

Slothie

New Member
Messages
1,429
Reaction score
0
Points
0
You can use a URI for includes based on specific server settings but it only acts like a SHTML include (i.e. No processing (Since its only takes the output of the script ) )
 

Catzwolf

New Member
Messages
11
Reaction score
0
Points
0
Yes I know, but some servers disable this option obvious reasons. I personally in my 6 years of php development have never used this method to include a file. But I stand corrected :)
 
Last edited:
Status
Not open for further replies.
Top