Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - arizonakid

Pages: [1]
1
Hi guys

Kevin Yank from Sitepoint gave me the solution. He said it was bad practice to use URL's in include statements. I changed the include statement to point to the file. i.e <?php include('includes/contents.html');?>

Works brilliantly

Thanks again for all your advice and suggestions

Tony

2
Yes Good spot Johnny - but it doesn't appear to have solved the problem, my error codes are now as below. I need to reboot and clean off the old files to give it a clean restart. Thanks for your time guys

Tony

'Warning: include(http://www.reallybasic.com/members/php/includes/contents.html) [function.include]: failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required in /home/reallyba/public_html/members/php/index.php on line 28

Warning: include() [function.include]: Failed opening 'http://www.reallybasic.com/members/php/includes/contents.html' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/reallyba/public_html/members/php/index.php on line 28

Warning: include(http://www.reallybasic.com/members/php/includes/optinbox.html) [function.include]: failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required in /home/reallyba/public_html/members/php/index.php on line 29

Warning: include() [function.include]: Failed opening 'http://www.reallybasic.com/members/php/includes/optinbox.html' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/reallyba/public_html/members/php/index.php on line 29'

3
Yes I have no problems with the page outside the protected area

Tony

4
I have created a user id = fredsmith with a password of password.
the members site is http://www.reallybasic.com/members. If you select PHP from the top menu  you will see my error. The right mouse button is not disabled so you should be able to see the source

Many thanks

Tony
ps.  I am away for periods today but will check in as often as I can and no it has nothing to do with the Football World Cup

5
I am logged in as the administrator

Tony

6
I am trying to use a <?php include statement in my members pages to allow members to view topics but I keep getting an error reference authorization failure

failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required

How can I code the authorization within the php file

Thanks

Tony Prodger

Pages: [1]