Advertisement

05.23.2007 at 10:51PM PDT, ID: 22591747
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.2

Where to add these codes ?

Asked by rsdn in PHP Scripting Language, PHP and Databases

Tags: , ,

Hello, my directory script showing error when anyone tries to add URL.

According to the indexu support forum the solution is as follows :

Turing Number Error
Problem
I cannot add a link, I always get "invalid turing number" error, how do I fix this?

Solution
This problem happened because of PHP 5.2.0 bug for session.

There are many other scripts that experience the same problem. But for IndexU, the solution is to add the following code in the file:

/filter/filter.start_session.php

if ($type == 'post') {
  session_write_close();
}

=========

I am not sure after which line I should add the above code. The filter.start_session.php contains the following codes :


<?php

/**
 *
 * INDEXU
 * Copyright(C), Nicecoder, 2000-2006, All Rights Reserved.
 *
 * INDEXU(tm) is protected by Indonesia and International copyright laws.
 * Unauthorized use or distribution of INDEXU(tm) is strictly prohibited,
 * violators will be prosecuted. To obtain a license for using INDEXU(tm),
 * please register at Nicecoder home page at http://www.nicecoder.com
 *
 * Author:
 *    Dody Rachmat Wicaksono (dody@nicecoder.com)
 *    M. Zuber (zubby@nicecoder.com)
 *
 */

function filter_start_session($type = "pre", $file = "") {
  if ($type == 'pre') {
    if (preg_match('/opera|msie|netscape|firefox|safari|konqueror|mozilla/msi', $_SERVER['HTTP_USER_AGENT'])) {
      if (!preg_match('/google|msn|yahoo|crawler|robot/msi', $_SERVER['HTTP_USER_AGENT'])) {
        session_cache_limiter('private, must-revalidate');
        session_start();
        $_SESSION['indexu_session_username'] = $_COOKIE['COOKIE_USERNAME'];
        if (strpos($_SERVER['REQUEST_URI'], '/admin/') !== FALSE) {
          $_SESSION['indexu_session_location'] = 'Administrator Area';
        }
        elseif (strpos($_SERVER['REQUEST_URI'], '/cp/') !== FALSE) {
          $_SESSION['indexu_session_location'] = 'User Control Panel';
        }
        else {
          $_SESSION['indexu_session_location'] = $_SERVER['REQUEST_URI'];
        }
        $_SESSION['indexu_session_ip'] = $_SERVER["REMOTE_ADDR"];
      }
    }
  }
}

?>Start Free Trial
[+][-]05.23.2007 at 11:42PM PDT, ID: 19147416

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.24.2007 at 12:06AM PDT, ID: 19147490

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.24.2007 at 12:53AM PDT, ID: 19147602

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: PHP Scripting Language, PHP and Databases
Tags: number, turing, invalid
Sign Up Now!
Solution Provided By: hernst42
Participating Experts: 1
Solution Grade: B
 
 
[+][-]05.27.2007 at 08:36PM PDT, ID: 19165977

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32