Jump to content
xisto Community

TavoxPeru

Members
  • Content Count

    865
  • Joined

  • Last visited

Posts posted by TavoxPeru


  1. Browsing the ExtJS examples website i found this excellent web-based file manager called eXtplorer. eXtplorer allows you to browse your webserver folders with an intuitive Layout which makes working with files very easy, and thanks to the great ExtJS Javascript Library you can drag & drop folders and files, filter directories and sort the file list using various criteria.

     

    You can use eXtplorer to for example:

    browse directories & files on the server.

    edit, copy, move, delete files.

    search, upload and download files.

    create and extract archives.

    create new files and directories.

    change file permissions (chmod).

    login to a FTP server and work as if you were using an FTP client.

    eXtplorer is released under a dual-license: the Mozilla Public License (MPL 1.1) or the GNU General Public License (GNU/GPL) and to work it needs at least PHP 4.3 and an up-to-date browser with Javascript enabled to run.

     

    Best regards,


  2. I wanted to create a directory where I could keep my files while on the move. The main problem was the poor interface associated with a simple Web Application. Fear not, AJAX is here and this is what I have come up with:-

     

    Posted Image

     

    Here goes the link to the script: http://forums.xisto.com/no_longer_exists/

     

    *** List of explorer currently supported features:-Directory Navigation via Double Click

    Directory Navigation via the Address Bar

    Breadcrumb type Back/Next Navigation

    General Navigation: Go Up, Refresh, Home

    Scrollable + Sortable File/Folder Listing with details (Size, Type, Date Modified)

    File Type Detection with Custom Icon & Description

    Context Sensitive File & Folder Tasks which includes:-

    General

    Make a new Folder

    Upload Files

    File

    Download

    Rename

    Move

    Copy

    Delete

    Folder

    Rename

    Move

    Copy

    Delete

    File/Folder Selection through Lasso and Mouse Click (Ctrl, Shift Supported)

    Status Bar which shows the current objects, total file size in the directory and the zone.

    File type customization

    *** The List will be kept updated.

     

    A lot of effort has gone in to make it resemble Windows Explorer both in terms of look and functionality. Although, at times, certain variations had to be made. I will be eagerly waiting for the expert opionion and ideas which made the previous scripts a success.

     

    Thanx,

     

    Max.

    Congrats, this an excelent script but i have some trouble to check your site, i guess is a problem by my side. I hope that this issue will be fixed soon.

     

    Best regards,


  3. Well it sounds like those programs will make an automated index of any file structure, so a local file system as well. That said it still seems to be lost on me why you'd need this but I'm sure it's useful in some way or another. Sure it's easy to look in explorer or whatnot to see your files or on the index of your web host but if you wanted to have a documented list f all the files in a certain directory or whatnot this could be helpful. I guess making an index of music files could be made easy work of with such a tool. That said there are usually other methods of having a similar outcome...

    Yes, there are other ways to do that, for example by using the DIR command you can generate an index text file of your mp3 files, for example to generate an index of only the root folder of your mp3s folder you use the following:

    c:\mp3s\dir *.mp3 > index_of_my_mp3_files.txt

    And if you want a more complete index including all of its subfolders you can use:

    c:\mp3s\dir /s *.mp3 > index_of_my_mp3_files.txt

    So yes, I'm sure they do the intended job well but past that I'm having a hard time imagining why I would actually want to have one on my computer. Maybe someone could shed some light on it.

    For example, i have on my HD a folder with a huge quantity of templates, so, i use this freeware to generate an index file of this folder to view and access with one click all of this files in a simple and direct way, just to avoid the usual folder by folder browsing.
    Best regards,

  4. So this software will create a new page similar to the basic index the web hosting provides, but with a bit more flair etc? Sounds Good, I have a;lways hated having to do it manually! ;)

    Exactly, but with the difference that you have all your files of your folder or folders and subfolders directly in only one page that can be very very big, so take in account this. Yesterday testing this software i generate and index of one of my folders and finally i got an index file of more or less 9Mb.
    Best regards,

  5. I wrote a Tutorial about a Faux Ajax Loading technique and planted it over on the Xisto sister site. Actually, most of the information can be gleaned from the direct link.

    Tutorial: http://forums.xisto.com/topic/52030-topic/

    Thought the Xisto crew needed to see it, too. Enjoy.

    Interesting technique congrats, but i just view it with Internet Explorer 6 and only the first time works as you say because the background image is cached by the browser.

    Best regards,

  6. With Indexmaker you can create an index file in html format directly from your files and folders. You can crreate from any folder of your hard disk with all its subfolders or not a finish HTML file with hyperlinks of your files. This freeware comes with two HTML layouts with the posibility to show or not the size and the date and time of your files.

    It is more simple and less advanced than DIR2HTML -which i prefers- because your resulting index file don't create any index of your subfolders if you choose the option to view them, but comes very handy if you want to create a simple and direct index file of your folders.

    For downloading and more information you can visit the Indexmaker website

    Check the following topic DIR2HTML for more information about it.

    Best regards,


  7. Is it a really free sofwtare ? Their site says that it's a "freeware", does it mean that the download you install will work during a certain period of time and then will stop working and ask for money ?

    Yes, Yordan, it is a really free software, yesterday i install it again -a year ago i lost my hard drive and lost it with it- because i need a tool like this to browse a lot of folders to review it's contents -especifically html files- and i found it at once after google for it. Before my hard disk issue i remember that i use it for about 3 years without any problem and with all its functionallity.
    Best regards,

  8. With this freeware anybody can convert a local directory to an HTML index file with hyperlinks, it is very useful for building file lists, cataloging contents of CD-ROMS, etc. for later browsing with any browser.

    DIR2HTML can index either a single directory or multiple directories at once recursively, so, with this option a separate index file is generated for each subdirectory under your root directory.

    This program is very easy to use, do not use a lot of system resources and you dont need to fill any form to download it, no spyware, adware, nags, and no time-expiry.

    For more information and downloading instructions visit the DIR2HTML 1.1.0 website.

    Best regards,


  9. I dont think that freewares are opensource. opensource gives out the code unlike the freeware counterpart with all the licensing envolve. To know the best open source programs go to https://www.osalt.com/ to find alternatives for those programs that are damn expensive and too proprietary.

    That's correct, they are not equal but in lots of cases they are ;). Relating to the osalt website, well only to say THANKS, i loose this url some time ago and never forget to search it again, it has a lot of cool stuff.
    Best regards,

  10. What I want is here is one column: 5+5 and I simply:

    echo($row['Column']);

    and that displayes 10 not 5+5. So the echo is:

    10

    I don't really know how else to say it. Im sorry if I am still a little confusing.

    Thanks,

    Sparkx

    Well, it took me more time than i expected but finally i got the solution, the way i got it is with the help of the php eval() function. What this function do is to evaluate the string given as a parameter as it is PHP code so you can execute it, i think it is very similar to the javascript eval() function.

     

    So please try the following code and tell us if it is what you want:

     

    <?phpeval("$"."variable"."=".$row['Column'].";");echo "\$variable is = $variable";//echo "<script>var var1=eval('$variable'); alert(var1);</script>";?>
    The last line -in case you need it- shows the use of the Javascript eval() function, simply uncomment this line to see it in action.

     

    Best regards,


  11. I'm not really sure what you want but if it is to simply get the results of a math operation try this:

    <?php// math with 2 columns$sql="select (numeric_col1+numeric_col2) as result from table";$row=mysql_query($sql);$rs_row=mysql_fetch_array($row);echo $rs_row["result"];?>
    The above code only works if you want to perform the math operation with two columns, so, tell me, your entrie is like this or you have it in one column only.

    Also you can use the MySql CAST() function.

    Best regards,

  12. main.php:

    <?php	function customError($errno, $errstr) 	{  		echo "<div align='center'><b>Error:</b> [$errno] $errstr<br /></div>"; 		echo "<div align='center'>Ending Script</div>"; 		die(); 	}?>
    (Not all the file; just the piece that encounters the problem)

     

    Everything goes fine, but when i enter main.php, it displays:

    Is this script wrong? If it has, please reply. I know that the problem is in the main.php only, but i copied all of them if you want to test it.

    I think that the problem is related with the brackets that you use in your customError() function. Try this:

    <?php	function customError($errno, $errstr) 	{  		echo "<div align='center'><b>Error:</b> [" . $errno . "] $errstr<br /></div>"; 		echo "<div align='center'>Ending Script</div>"; 		die(); 	}?>
    Best regards,

  13. Firstly, did you put all this inside HTML tags? If you didn't, then do so.

    Next, check the text inside the alert. Make sure there are no ' symbols, apart from the ones at the start and end.

    If it still doesn't work, try window.alert instead of alert. This shouldn't make a difference, but it's worth a try.

    If that doesn't work, check your browser is JavaScript compatible, and JavaScript is enabled. You should be able to enable it in your browser's settings, and if you have an old browser, I recommend downloading the latest version of Mozilla Firefox.

    If none of this works, try your script in forefox, then once the page has loaded, Open the Error Console (Tools -> Error Console). There may be an error in here, if there is, tell me, and it'll make it easier to fix.

    Well as i said in my previous post this is a very strange situation, i just test it again an works fine even without the HTML tags, i test it with Internet Explorer 6, Mozilla Firefox 2.0.0.6 and Opera 9.22, in all of them the javascript Alert() function runs correctly.

     

    Best regards,


  14. Hi Everyone, i just need to know that this javascript code is formatted correctly: (A piece of code that it's written BESIDE an HTML code.)

    <body onLoad="alert('My Text Here');">My body contents</body>

     

    |||Always keeps telling me that this was incorrect.

    Very strange situation, i just copy/paste your code and test it without errors, works fine, with which browser do you test your code?

     

    Best regards,


  15. Cast the data to the correct type of your table columns? What does that mean?

    This mean to force a variable to be evaluated as a certain type, for example, if one of your table column is an integer -tinyint, smallint, int, longint- you can force that your submited data evaluates as an integer by casting it:

     

    <?php$integer_value = (int) $_POST["integer_value"];?>
    The casts allowed are:

    (int), (integer) - cast to integer

    (bool), (boolean) - cast to boolean

    (float), (double), (real) - cast to float

    (string) - cast to string

    (array) - cast to array

    (object) - cast to object

    For string variables you can achieve the same behavior simply by enclosing it in double quotes, and also is recommended that you use the mysql_real_escape_string for security reasons.

     

    For a complete explanation check the Type Casting and the mysql_real_escape_string() sections of the manual at the php website.

     

    Best regards,


  16. Here is the code that I have:

    <?php$con = mysql_connect("localhost","user","password");if (!$con)  {die('<p>Could not connect: ' . mysql_error() . '</p>');}mysql_select_db("database", $con);$ip=$_SERVER['REMOTE_ADDR'];echo "Adding MXP info...";mysql_query (INSERT INTO mxp (date, user, victim, turns, side, gold, lost, killed, mxp, points_b, points_a, type, power, ip) VALUES ('$_POST[date]','$_POST[user]','$_POST[victim]','$_POST[turns]','$_POST[side]','$_POST[gold]','$_POST[lost]','$_POST[killed]','$_POST[mxp]','$_POST[points_b]','$_POST[points_a]','$_POST[battle]','$_POST[power]','$ip');echo "<h3>Your MXP information record has been added to the database.</h3>";?>

    Here is the error I am receiving:
    Is there a semicolon I missed somewhere? What is wrong?
    You forgot the quotation marks in your query and i recommend to cast your data to the correct type of your table columns.

    Best regards,

  17. I just read this excelent article from the IBM's developerWorks website, it's name is Five common PHP database problems.

    This article shows five database problems that occur in PHP applications as well as their solutions and include database schema design, database access, and the business logic code that uses the database.

    It is a bit older -a year ago more or less- but i think that can be helpful for everybody that works with PHP and MySql.

    Best regards,

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.