rvdb86 Posted January 24, 2009 Share Posted January 24, 2009 Hey i have been using php for a while but never tried doing anything to advanced.. until now! i found the Zend Framwork and want to install it, everyone is telling me that i need to set the include path and its got me confused. What does the include path do? why cant i just use include'file'; in my code? i have my website hosted with a hosting company and the php.ini file doesnt show in my ftp program so how can i edit this? in exampled i have seen "php_value include_path ".;g:\ZendFramework-0.1.2\library"" if i don't know the physical address of the library should i use http://www.mydomain.com/ZendFramework? I would really appreciate any suggestions! Link to comment https://forums.phpfreaks.com/topic/142233-include_path/ Share on other sites More sharing options...
rhodesa Posted January 24, 2009 Share Posted January 24, 2009 Read up on here on what the include_path is: http://us.php.net/manual/en/ini.core.php#ini.include-path Basically though, when you use on of the include() or require() functions, it looks through the directories in the include path to find that file. i've never used the Zend Framework before, but by the looks of it, you uploaded the Zend files to your server somewhere right? you then need to add the path to the 'library' folder to your include path either through the php.ini or an .htaccess file like you mentioned (this will depend on your hosting company) if you are unsure what the path to the library folder is, put a php file in your web root and put this in it: <?php print __FILE__; ?> load it up in your browser and it will give you the full path to that file. from there just figure out what the path to the library folder is relative to that file ...reading that again, i even confused my self a little...hope that helps. Link to comment https://forums.phpfreaks.com/topic/142233-include_path/#findComment-745232 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.