I am using sc6 and made a file upload form named grid_filestorage
So sc makes me a file called grid_filestorage.php
When this file is made directly when I use scriptcase the following is hte beginning of the file:
<?php
//
include_once(‘grid_filestorage_session.php’);
@session_start() ;
$_SESSION[‘scriptcase’][‘grid_filestorage’][‘glo_nm_perfil’] = “”;
$_SESSION[‘scriptcase’][‘grid_filestorage’][‘glo_nm_path_prod’] = “/scriptcase/prod”;
$_SESSION[‘scriptcase’][‘grid_filestorage’][‘glo_nm_path_imagens’] = “/scriptcase/file/img”;
$_SESSION[‘scriptcase’][‘grid_filestorage’][‘glo_nm_path_imag_temp’] = “/scriptcase/tmp”;
$_SESSION[‘scriptcase’][‘grid_filestorage’][‘glo_nm_path_doc’] = “C:/storage/”;
$_SESSION[‘scriptcase’][‘grid_filestorage’][‘glo_nm_conexao’] = “conn_oracle”;
…
When this file is created via deployment then this is created:
<?php
//
include_once(‘grid_filestorage_session.php’);
@session_start() ;
$_SESSION[‘scriptcase’][‘grid_filestorage’][‘glo_nm_perfil’] = “conn_oracle”;
$_SESSION[‘scriptcase’][‘grid_filestorage’][‘glo_nm_path_prod’] = “”;
$_SESSION[‘scriptcase’][‘grid_filestorage’][‘glo_nm_path_imagens’] = “”;
$_SESSION[‘scriptcase’][‘grid_filestorage’][‘glo_nm_path_imag_temp’] = “”;
$_SESSION[‘scriptcase’][‘grid_filestorage’][‘glo_nm_path_doc’] = “”;
//
This is of course totally incorrect!!
This line: $_SESSION[‘scriptcase’][‘grid_filestorage’][‘glo_nm_path_doc’] = “C:/storage/”;
should be the same when deployed as with the direct scriptcase.
I so wish you would fix the bugs in sc6 as well… This is surely another one.