php - Local include path alias -
this might silly question annoys me. began program in sublime text 2 short while ago, , love it. 1 thing don't know how set way include scripts has included differently on server.
on server have include library, save "secure" files. directory placed outside of root, using apache, php script can access scripts writing include "filename.php";
. love feature prevents me receiving documentation , list on functions , variables. if want receive these informations, have include classes/files this: include "../path/filename.php"
. this, won't work on server.
i know silly, think work comment out path variable every time have upload, test , uncomment again when writing code. hope understand trying achieve, , please tell me if there easy solution. mentioned sublime text 2 because know there lot og packages (plugins) , perhaps have thought plugin automatically checks every include/require command , if no path defined, checks whether or not in local folder , again if not, checks ".settings" file custom path manually have defined. nice :d
http://php.net/manual/en/function.set-include-path.php set_include_path need. can set either in php.ini or in php
Comments
Post a Comment