Free Web Hosting Forum
(#1 (permalink))
Old
Junior Member
CJ101 is on a distinguished road
 
Posts: 3
Join Date: Jul 2012
Default The include(); - 07-04-2012, 01:00 PM

Ok, I am working on a website, and on every one i've worked on, include never worked. I have a directory within public_html/ that is /scripts. I have my connect.php in it. On the default.php, include('/scripts/connect.php'); does not work, and I haven't the slightest. Please help!
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
Mate's Avatar
Senior Member
Mate is on a distinguished road
 
Posts: 414
Join Date: Apr 2012
Location: Middle England
Default 07-04-2012, 01:39 PM

'include' is a special language construct, so parentheses are not needed around its argument.

Your leading / is not required.

Try..
PHP Code:
include 'scripts/connect.php'
Reply With Quote
(#3 (permalink))
Old
Junior Member
CJ101 is on a distinguished road
 
Posts: 3
Join Date: Jul 2012
Default 07-04-2012, 02:01 PM

Ok. I'll try that.
Reply With Quote
Reply

Tags
include, php.

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

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




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com