rexolio2008
Technical User
I'm VERY new to PHP, so I apologize if this is very remedial...
I'm trying to get FancyUploader to run on an IIS box. PHP works on this server (WordPress, etc.) so I'm sure it's just a matter of me not understanding the correct values here.
Here's the code:
The examples give in the comments aren't for IIS, so I'm a little perplexed. I've checked the placement of all of the files and they're all right - I think it just comes down to me not knowing what I'm supposed to be entering.
Any help is greatly appreciated.
I'm trying to get FancyUploader to run on an IIS box. PHP works on this server (WordPress, etc.) so I'm sure it's just a matter of me not understanding the correct values here.
Here's the code:
Code:
define('DOC_ROOT',$_SERVER['D:\Inetpub\wwwroot\account\website-root\testfolder']); //// DOC_ROOT will usually end up being something like /var/[URL unfurl="true"]www/public_html[/URL]
define ('PROJECT_ROOT',DOC_ROOT.'/fancyuploader/'); /// this is the full path to the project root directory - if its the same as your [URL unfurl="true"]www root[/URL] - then just make it '/' leading and trailing / are IMPORTANT
//// PROJECT_ROOT in this example - would end up being /var/[URL unfurl="true"]www/public_html/fancyupload/[/URL]
define('FORM_PATH_ROOT', '/fancyuploader/'); /// This is the root of your project in relation to your doc root - if its is your doc root - just put a /
/// if you were to go [URL unfurl="true"]http://www.mydomain.com/fancyupload/[/URL] - the FORM_PATH_ROOT is /fancyupload/
define('JAVASCRIPT_PATH', FORM_PATH_ROOT . 'javascript/'); /// this is the path to your javascript files
/// in this case /fancyupload/javascript/
define('STYLESHEETS_PATH', FORM_PATH_ROOT . 'css/'); /// this is hte path to your css files
/// in this case /fancyupload/css/
define('IMAGES_PATH', FORM_PATH_ROOT . 'images/'); /// this is hte path to your css files
/// in this case /fancyupload/images/
define('UPLOAD_DIR_NAME', 'upload/'); /// This is just the name of the import DIR with a trailing slash - JUST THE NAME HERE - NO LEADING SLASH
define('UPLOAD_PATH', PROJECT_ROOT .UPLOAD_DIR_NAME); /// This is the FULL PATH where you want the files to be uploaded to.
///In this case - it would be /var/[URL unfurl="true"]www/public_html/fancyupload/upload/[/URL]
/// NOTE - Depinging on how your server is set up - this dir may have to be chmod 777
define('UPLOAD_PATH_RELATIVE', FORM_PATH_ROOT .UPLOAD_DIR_NAME); /// This is the relative path - basically from web root
/// in this case /fancyupload/upload/
define('PATH_LIBRARY', PROJECT_ROOT . 'library/'); /// Just incase you have an older version of PHP and json_encode is not included - here is a small class file to handle it
set_include_path (get_include_path() . PATH_SEPARATOR . PATH_LIBRARY); //now lets put it in the path
The examples give in the comments aren't for IIS, so I'm a little perplexed. I've checked the placement of all of the files and they're all right - I think it just comes down to me not knowing what I'm supposed to be entering.
Any help is greatly appreciated.