Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

whos online and windows server?


billybrag

Recommended Posts

Posted

does anyone know why the whos online last url visited feature doesnt work with windows 2003 IIS6 . I was hosted on a linux server but had to move, its really frustrating!

 

does anyone have any ideas at all, or had the same problem? i tried upgrading the feature which added the referal url, which works fine, but still no joy on the last url bit!

 

 

mike

"because it'll hurt more"- the greatest film of all time?

Posted

could be the firewall is setup differently, the permissions on the server, etc. windows is tempermental until you get it right.

Posted
could be the firewall is setup differently, the permissions on the server, etc.  windows is tempermental until you get it right.

 

thanks John,

 

Do you have any suggestions though? i dont know what to do and what to suggets to my host!

"because it'll hurt more"- the greatest film of all time?

Posted

any ideas at all from anyone?

im really flumoxed by this

 

mike

"because it'll hurt more"- the greatest film of all time?

Posted
any ideas at all from anyone?

im really flumoxed by this

 

mike

 

right then i have tried changing every setting i can, and am still lost any ideas please! before i loose the plot :wacko:

"because it'll hurt more"- the greatest film of all time?

  • 4 weeks later...
Posted
right then i have tried changing every setting i can, and am still lost any ideas please! before i loose the plot  :wacko:

 

This is what worked for me with my shared hosting Windows server:

 

In catalog/includes/functions/whos_online.php change:

 

$wo_last_page_url = getenv('REQUEST_URI');

 

to:

 

$wo_last_page_url = $_SERVER[?URL?];

 

Let me know if it works for you.

 

Jason

Posted
This is what worked for me with my shared hosting Windows server:

 

In catalog/includes/functions/whos_online.php change:

 

$wo_last_page_url = getenv('REQUEST_URI');

 

to:

 

$wo_last_page_url = $_SERVER[?URL?];

 

Let me know if it works for you.

 

Jason

 

 

thanks for the reply jason, i have tried that but still to no avail, any other suggestions are more than welcome

"because it'll hurt more"- the greatest film of all time?

  • 6 months later...
Posted
thanks for the reply jason, i have tried that but still to no avail, any other suggestions are more than welcome

 

I had the same problem, found a fix at php.net: Reserved variables

 

here's the code I put in catalog/includes/functions/whos_online.php:

 

    $wo_last_page_url = $_SERVER["REQUEST_URI"];

   if(!isset($wo_last_page_url)) 
   {
     $arr = explode("/", $_SERVER['PHP_SELF']);
     $_SERVER['REQUEST_URI'] = "/" . $arr[count($arr)-1];
     if ($_SERVER['argv'][0]!="")
      $_SERVER['REQUEST_URI'] .= "?" . $_SERVER['argv'][0];
      
      $wo_last_page_url = $_SERVER["REQUEST_URI"];
   }

 

This works fine on W2K3 Server.

 

Regards,

Russell

  • 1 year later...
Posted
I had the same problem, found a fix at php.net: Reserved variables

 

here's the code I put in catalog/includes/functions/whos_online.php:

 

    $wo_last_page_url = $_SERVER["REQUEST_URI"];

   if(!isset($wo_last_page_url)) 
   {
     $arr = explode("/", $_SERVER['PHP_SELF']);
     $_SERVER['REQUEST_URI'] = "/" . $arr[count($arr)-1];
     if ($_SERVER['argv'][0]!="")
      $_SERVER['REQUEST_URI'] .= "?" . $_SERVER['argv'][0];
      
      $wo_last_page_url = $_SERVER["REQUEST_URI"];
   }

 

This works fine on W2K3 Server.

 

Regards,

Russell

 

 

Thanks that worked for me as well (on Win 2003 server!)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...