icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » PHP Script, Forbidden Access?!

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old December 29th, 2005, 11:21 PM   #1 (permalink)
JMF
Registered User
Seasoned Poster
 
JMF's Avatar
 
Joined in Jun 2004
Lives in Tennessee, USA
Hosted on Pass56
38 posts
Gave thanks: 1
Thanked 1 Time in 1 Post
PHP Script, Forbidden Access?!

Ergh. I've got some PHP scripts and other junk that I can't seem to grab.

In a web browser, http://www.ferrellweb.com/php/quicklinks.php loads a list of links, as it should. (It does for me, at least...)

When I try to include that in a page using the include() function, it's not working. I tried another script, as below, and no luck:

PHP Code:
$links file_get_contents('http://www.ferrellweb.com/php/quicklinks.php');
echo 
$links
That gives me this error:

Warning: file_get_contents(http://www.ferrellweb.com/php/quicklinks.php): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /private/tmp/- on line 2

Any idea why this might be? Could it have to do with some .htaccess settings, maybe?

Thanks,
Jeff.
JMF is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 30th, 2005, 11:39 AM   #2 (permalink)
JMF
Registered User
Seasoned Poster
 
JMF's Avatar
 
Joined in Jun 2004
Lives in Tennessee, USA
Hosted on Pass56
38 posts
Gave thanks: 1
Thanked 1 Time in 1 Post
Derp. I got it. Nevermind. Full path works wonders: /home/ferrellw/public_html/php/quicklinks.php
JMF is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

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