Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8219187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:04:16+00:00 2026-06-07T13:04:16+00:00

here is what i want to do i use codeigniter directory_map() function to map

  • 0

here is what i want to do

  1. i use codeigniter directory_map() function to map a folder save it as $map;

     $map = directory_map($this->rootdir.$this->session->userdata('user_name'));
    
  2. then i encode the $map and echo it out

     echo $dir = json_encode($map);
    
  3. what i want is save the $dir somehow.so when user open one of the folder i can use js to get the folder’s content from the saved $dir json file, instead of communicate to server.if this make sense then how can i save the $dir json file or how to get it in the js file.

is there a better way to do that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T13:04:17+00:00Added an answer on June 7, 2026 at 1:04 pm

    I personally use the method mentioned here, which is basically along the following outline:

    Update: (I think I confused you a bit) The following is Javascript code

    //Global object to store the cache
    cache = {};
    function makeRequest(requested_data){
       request_hash = hash(requested_data);
       if (cache[request_hash]){
           handleData(cache[request_hash]);
       }
       else{
           //Make Ajax call, get data response back and store it in the cache
           request_hash = hash(requested_data);
           cache[request_hash] = data;
           handleData(data);
       }
    }
    

    Note: for hash(), you can use any hashing algorithm out there, you don’t really need a cryptography-level hash, just something to create a basic signature. I use the Javascript implementation of Java’s hashCode()

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use CodeIgniter 2.1.0, i store data session in database ci_sessions , i want
I want use from multiple upload image in codeigniter but problem is here that
I want to use conditional css in my datatable. Here is my code. <ui:repeat
I want to use a global variable in inline assembly. asm( LDR R0,g_TsInitStackPointerAddress); Here
i want to use the listview flicker"less" control found here Link directly in my
The method in question that I want to use is gem and sourced here
I want a second Activity to use the DropboxAPI object (mApi here) and invoke
I have this code here in PHP using Codeigniter framework, I can't seem to
I am building a Facebook app using iframe rendering. I want to use CodeIgniter
I use CodeIgniter 2.1.0, i want after insert data in database get a message

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.