i have a problem with php
Posted: Thu Jul 01, 2010 6:12 am
hi how are you? I have a problem with the installation of jdiskexplorer, first to clarify that even do not buy any version and I am doing tests on my local pc, to see if I need, but I can not make it work, as always in the quadrant remote server shows me the original folder on my server in my case C: / /, I want to know if that does not purchase the license or because I am doing something wrong .. I want to work with php as server-side language
so did the include of explorer.php in process.php
so that the variable $ upload_dir
this is the tree from my server
so is the code of my applet_http_explorer.js
this is what I see when running applet_http_explorer.html
As you can see in the left pane is showing me c: / / when should show c: / / wamp/www/gaby/ftp2/up
I want to clarify that I am interested in buying the license .. but first I would like to do some tests to see if they are what my client needs .. .. and I have to modify the javascript .. to process folders .. dynamically as session variables
from already thank you very much for everything
so did the include of explorer.php in process.php
Code: Select all
function emu_getallheaders()
{
foreach($_SERVER as $h=>$v)
if(ereg('HTTP_(.+)',$h,$hp))
$headers[$hp[1]]=$v;
return $headers;
}
include "explorer.php";
Code: Select all
$upload_dir = 'C:/Archivos de programa';
this is the tree from my server
so is the code of my applet_http_explorer.js
Code: Select all
<!--
var _info = navigator.userAgent;
var _ns = false;
var _ns6 = false;
var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
if (_info.indexOf("Opera") > 0) _ie = false;
var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0) || (_info.indexOf("AIX") > 0) || (_info.indexOf("OS/2") > 0) || (_info.indexOf("IRIX") > 0)));
var _ns6 = ((_ns == true) && (_info.indexOf("Mozilla/5") >= 0));
if (_ie == true) {
document.writeln('<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="768" HEIGHT="320" NAME="fileupload" codebase="http://java.sun.com/update/1.4.2/jinstall-1_4-windows-i586.cab#Version=1,4,0,0">');
}
else if (_ns == true && _ns6 == false) {
// BEGIN: Update parameters below for NETSCAPE 3.x and 4.x support.
document.write('<EMBED ');
document.write('type="application/x-java-applet;version=1.4" ');
document.write('CODE="jfileupload.upload.client.MApplet.class" ');
document.write('JAVA_CODEBASE="./" ');
document.write('ARCHIVE="lib/jfileupload.jar,lib/httpimpl.jar,lib/chttpclient.jar,lib/clogging.jar,lib/explorerui.jar" ');
document.write('NAME="fileupload" ');
document.write('WIDTH="768" ');
document.write('HEIGHT="320" ');
document.write('url="http://localhost/gaby/ftp2/explorer.php" ');
document.write('paramfile="uploadfile" ');
document.write('param1="todo" ');
document.write('value1="upload" ');
document.write('param2="relativefilename" ');
document.write('value2="true" ');
document.write('param3="emptydirectory" ');
document.write('value3="true" ');
document.write('folderdepth="-1" ');
document.write('sm="enabled" ');
document.write('encoding="ISO-8859-1" ');
document.write('transferui="jfileupload.transfer.client.explorer.ExplorerTransferUI" ');
document.write('resources="i18n_bar" ');
document.write('transferuiresources="i18n_pane" ');
document.write('mode="http" ');
document.write('scriptable=true ');
document.writeln('pluginspage="http://java.sun.com/products/plugin/index.html#download"><NOEMBED>');
// END
}
else {
document.writeln('<APPLET CODE="jfileupload.upload.client.MApplet.class" JAVA_CODEBASE="./" ARCHIVE="lib/jfileupload.jar,lib/httpimpl.jar,lib/chttpclient.jar,lib/clogging.jar,lib/explorerui.jar" WIDTH="768" HEIGHT="320" NAME="fileupload">');
}
// BEGIN: Update parameters below for INTERNET EXPLORER, FIREFOX, SAFARI, OPERA, MOZILLA, NETSCAPE 6+ support.
document.writeln('<PARAM NAME=CODE VALUE="jfileupload.upload.client.MApplet.class">');
document.writeln('<PARAM NAME=CODEBASE VALUE="./">');
document.writeln('<PARAM NAME=ARCHIVE VALUE="lib/jfileupload.jar,lib/httpimpl.jar,lib/chttpclient.jar,lib/clogging.jar,lib/explorerui.jar">');
document.writeln('<PARAM NAME=NAME VALUE="fileupload">');
document.writeln('<PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">');
document.writeln('<PARAM NAME="scriptable" VALUE="true">');
document.writeln('<PARAM NAME="url" VALUE="http://localhost/gaby/ftp2/explorer.php">');
document.writeln('<PARAM NAME="paramfile" VALUE="uploadfile">');
document.writeln('<PARAM NAME="param1" VALUE="todo">');
document.writeln('<PARAM NAME="value1" VALUE="upload">');
document.writeln('<PARAM NAME="param2" VALUE="relativefilename">');
document.writeln('<PARAM NAME="value2" VALUE="true">');
document.writeln('<PARAM NAME="param3" VALUE="emptydirectory">');
document.writeln('<PARAM NAME="value3" VALUE="true">');
document.writeln('<PARAM NAME="folderdepth" VALUE="-1">');
document.writeln('<PARAM NAME="sm" VALUE="enabled">');
document.writeln('<PARAM NAME="encoding" VALUE="ISO-8859-1">');
document.writeln('<PARAM NAME="transferui" VALUE="jfileupload.transfer.client.explorer.ExplorerTransferUI">');
document.writeln('<PARAM NAME="resources" VALUE="i18n_bar">');
document.writeln('<PARAM NAME="transferuiresources" VALUE="i18n_pane">');
document.writeln('<PARAM NAME="mode" VALUE="http">');
// END
if (_ie == true) {
document.writeln('</OBJECT>');
}
else if (_ns == true && _ns6 == false) {
document.writeln('</NOEMBED></EMBED>');
}
else {
document.writeln('</APPLET>');
}
//-->
As you can see in the left pane is showing me c: / / when should show c: / / wamp/www/gaby/ftp2/up
I want to clarify that I am interested in buying the license .. but first I would like to do some tests to see if they are what my client needs .. .. and I have to modify the javascript .. to process folders .. dynamically as session variables
from already thank you very much for everything