Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Jeisson

  • Rank
  1. I know what the customer wants it to do. And the serverside data is now in a text file .dat I put the same data in a .json file and fetch the data from there and handle it with javascript. I don't see a problem there. However I found out this code actually works on the current customer server. But not on my test server(s). Thanks for all comments.
  2. ok thanks i think I'll suggest a complete rewrite. I am not good at php, so I would do this in javascript. but thanks for your analyzis and advice. I appreciate
  3. Thank you for your answers. the script is supposed to add correct filenames from .dat files so that in the html there would be correct images. these are chosen with drop boxes. also populate the dropboxes. this script i got from customer. it used to work a few years ago. hope this part help function rowColour($row) {return ($row % 2 == 0 ? "listrow01" : "listrow02");} function readObjectsFromFile($file_name){ $file_rows = file($file_name); $object_list = array(); for($i=0;$i<count($file_rows);$i++){ $object = __unserialize($file_rows[$i]); $object_list[count($ob
  4. I have problems with a script. The error log says I should change the preg_replace to preg_replace_callback I dont know how to do it, so please help. function __unserialize($string) { $unserialized = stripslashes($string); $unserialized = preg_replace('!s:(\d+):"(.*?)";!e', "'s:'.strlen('$2').':\"$2\";'", $unserialized ); return unserialize($unserialized); } Edit: I did try to do it. so if you want to see what I tried I ofcourse can show. But it reutned a blank screen
  • Create New...

Important Information

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.