Advertisement

08.22.2008 at 12:05AM PDT, ID: 23669433
[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.0

session_register is causing me to load the page twice

Asked by Simon336697 in PHP Scripting Language

Hi guys,
Hope this is an easy one.

Im starting to learn about session variables, and having a slight hiccup :>)

The following is the head section of the page where i have used the session_start

=============================================================== test.php
<?php session_start; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Vocab: Our List of Words</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="includes/sandbox.css" />
</head>
---------------------------------------------------------------------------

the following is also in testing.php and refers to setting a session variable...........

 session_register("current_sandbox_page");
 $current_sandbox_page = basename($_SERVER['PHP_SELF']);  
 $current_sandbox_page = explode('_',$current_sandbox_page);
 $current_sandbox_page[2] = substr($current_sandbox_page[2],0,-4);
 array_push($current_sandbox_page,"outputiframe.php");
 $current_sandbox_page = implode('_',$current_sandbox_page);

                 <iframe name="outputIframe" width="100%" height="100%" src="sandbox/<?php echo $current_sandbox_page; ?>"></iframe>

#################
PROBLEM:
################
Guys if i browse to this page,  I initially get a browser message...

"Internet Explorer cannot display the webpage"

If I then refresh the page, the page comes up.

If I comment out the line that says...

session_register("current_sandbox_page");

the page loads on the first attempt.

I have tried putting this line up the top of my page just under session_start, but this makes no difference.

Any help greatly appreciated :>)


Start Free Trial
 
Loading Advertisement...
 
[+][-]08.22.2008 at 12:10AM PDT, ID: 22287503

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

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

 
[+][-]08.22.2008 at 12:12AM PDT, ID: 22287511

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

Zone: PHP Scripting Language
Sign Up Now!
Solution Provided By: Rok-Kralj
Participating Experts: 2
Solution Grade: A
 
 
[+][-]08.22.2008 at 12:13AM PDT, ID: 22287519

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.

 
[+][-]08.22.2008 at 12:14AM PDT, ID: 22287523

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.

 
[+][-]08.22.2008 at 12:18AM PDT, ID: 22287536

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.

 
[+][-]08.22.2008 at 12:27AM PDT, ID: 22287557

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.

 
[+][-]08.22.2008 at 12:32AM PDT, ID: 22287573

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.

 
[+][-]08.22.2008 at 12:34AM PDT, ID: 22287581

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.

 
[+][-]08.22.2008 at 12:37AM PDT, ID: 22287596

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.

 
[+][-]08.22.2008 at 12:37AM PDT, ID: 22287598

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.

 
[+][-]08.22.2008 at 12:39AM PDT, ID: 22287607

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.

 
[+][-]08.22.2008 at 12:52AM PDT, ID: 22287654

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.

 
[+][-]08.22.2008 at 12:54AM PDT, ID: 22287663

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.

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