Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
php_include to mysql faq not working ?
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- php_include to mysql faq not working ?
php_include to mysql faq not working ?
14-09-2010 5:40 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
I've got FAQEngine (a php/mysql FAQ section) up and running on my website, and can view it directly in the browser by following the url :
http://ccgi.username.plus.com/faqengine/faq.php
The actual page I want to link to as a start point is at:
http://ccgi.username.plus.com/~username/faqengine/faq.php?list=all&prog=GM1&lang=en&onlynewfaq=0&lay...
N.B. See the additional "/~username" slipped in !
However, I can't get a "php include" to access either FAQEngine page so that it opens in the FAQ tab on my webpage ? Do I have to amend the url ?
When i navigate via a phpinclude I get the following 3 error messages:
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /share/storage/02/gr/username/faqs.php on line 24
Warning: include(http://ccgi.username.plus.com/~username/faqengine/faq.php/ ) [function.include]: failed to open stream: no suitable wrapper could be found in /share/storage/02/gr/username/faqs.php on line 24
Warning: include() [function.include]: Failed opening 'http://ccgi.username.plus.com/~username/faqengine/faq.php/ ' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /share/storage/02/gr/username/faqs.php on line 24
Line 24 is the phpinclude in my FAQ page html. All my other phpincludes are working fine as is the database, or I wouldn't be able to view it via the browser ?
Can anyone please tell me where I am going wrong, and being a Newbie, please don't exclude the obvious ! ?
Many Thanks
http://ccgi.username.plus.com/faqengine/faq.php
The actual page I want to link to as a start point is at:
http://ccgi.username.plus.com/~username/faqengine/faq.php?list=all&prog=GM1&lang=en&onlynewfaq=0&lay...
N.B. See the additional "/~username" slipped in !
However, I can't get a "php include" to access either FAQEngine page so that it opens in the FAQ tab on my webpage ? Do I have to amend the url ?
When i navigate via a phpinclude I get the following 3 error messages:
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /share/storage/02/gr/username/faqs.php on line 24
Warning: include(http://ccgi.username.plus.com/~username/faqengine/faq.php/ ) [function.include]: failed to open stream: no suitable wrapper could be found in /share/storage/02/gr/username/faqs.php on line 24
Warning: include() [function.include]: Failed opening 'http://ccgi.username.plus.com/~username/faqengine/faq.php/ ' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /share/storage/02/gr/username/faqs.php on line 24
Line 24 is the phpinclude in my FAQ page html. All my other phpincludes are working fine as is the database, or I wouldn't be able to view it via the browser ?
Can anyone please tell me where I am going wrong, and being a Newbie, please don't exclude the obvious ! ?
Many Thanks
Message 1 of 5
(1,228 Views)
4 REPLIES 4
Re: php_include to mysql faq not working ?
14-09-2010 7:56 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Instead of trying to include a URL, which as the first error message says is a disabled access method (for security reasons), specify the path directly within the file system.
David
Message 2 of 5
(464 Views)
Re: php_include to mysql faq not working ?
15-09-2010 5:07 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
HI Spraxyt, Many thanks for your reply. I've been trying every permutation of file path that I can think of, including with/without leading /, with with/without leading ..
If i take the http://username/ away from the url, presumably that should give me the correct filepath ?
I note that in my browser the url shows as: http://ccgi.username.plus.com/faqengine/faq.php whereas if I copy the url from my ftp client, Filezilla, it shows as ftp://username@cshell.plus.net/faqengine/faq.php.
Is that significant ?
Any other advice/suggestions much appreciated
Reagrds
If i take the http://username/ away from the url, presumably that should give me the correct filepath ?
I note that in my browser the url shows as: http://ccgi.username.plus.com/faqengine/faq.php whereas if I copy the url from my ftp client, Filezilla, it shows as ftp://username@cshell.plus.net/faqengine/faq.php.
Is that significant ?
Any other advice/suggestions much appreciated
Reagrds
Message 3 of 5
(464 Views)
Re: php_include to mysql faq not working ?
15-09-2010 8:22 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Quote from: Negger Warning: include() [function.include]: URL file-access is disabled in the server configuration in /share/storage/02/gr/username/faqs.php on line 24
The path you need is like that shown in your error message, which I've highlighted. For your included file you need to change faqs.php (which is the current file) to faqengine/faq.php I assume.
The HTTP and FTP URLs basically say same the same thing, but in different ways to suit the access protocols.
David
Message 4 of 5
(464 Views)
Re: php_include to mysql faq not working ?
16-09-2010 8:06 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thanks again Spraxyt.
I've removed my FAQ's page and changed the FAQ link in my navbar direct to the pathway to the database, and at least it now works. Not exactly what I wanted, but it works. I may go back to trying to load the database into the main div of my faqs webpage at a later date.
Seems that there is an issue with using a php_include to load this.
Regards
I've removed my FAQ's page and changed the FAQ link in my navbar direct to the pathway to the database, and at least it now works. Not exactly what I wanted, but it works. I may go back to trying to load the database into the main div of my faqs webpage at a later date.
Seems that there is an issue with using a php_include to load this.
Regards
Message 5 of 5
(464 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- php_include to mysql faq not working ?