$_CURDIR or $GLOBALS (inside a funcion, class or namespace) in place of getcwd() or current directory.Now you can use $_RDOCROOT or $GLOBALS (inside a funcion, class or namespace) in place of $_SERVER.If you want to use $_SERVER or $_SERVER in a page, add the following lines at the top of the page: The file specified by this option won't be included in new html site. The directory passed with this options won't be included Will also be copied to the destination to preserve directory structure ![]() By default empty directory will notīe copied to the destination directory. If you don't pass -a as an option, it will look for. If you pass only -a, it will neither look for any AccessFile and There must not be any white space between -a and. ![]() htaccess part to the actual name of the used AccessFile. Other access file can be processed by changing the Neither it will prompt for it, and if dest is given asĬommand line argument, it will simply ignore that This replaces all the PHP files to resulting HTML file i : is a dangerous option and should be avoided This mode is not dependent on the existance of destination q : can be placed anywhere in the argument sequence. ![]() q : means quite (won't print any output other than errors) To pass current directory as src, either use. Src can not be a directory other than current directory, Options: src dest -q -h -help -o -i -v -version -a.htaccess -rd destination_directory # This will convert entire site in current directory to htmlĪlways run this command from within the Document Root of your website ( public_html or www or whatever it is), otherwise unexpected results might occur. It can be run with cmd in windows and with terminal emulator in Linux. Both Windows and Linux versions of this tool can be used the same way (In windows make sure to add the executable path in the PATH environment variable).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |