TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

May 25, 2024, 02:40:55 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,197
  • Total Topics: 21,221
  • Online today: 144
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online

php use of HTTP_GET_VARS

Started by Ray, December 11, 2005, 08:21:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ray

Just a heads up but I believe that HTTP_?_VARS (?=not sure) is no longer used with php 5 and up. It was changed. I  Think that is where a lot of the errors come from.. I could be wrong because I read this on the net -- but then again I belive everything I read on the net :uglystupid2:

In tportal I // a line and my errors went away. not sure what the line did but it worked

// get the action
// $context['TPortal']['querystring']=$GLOBALS['HTTP_SERVER_VARS']['QUERY_STRING'];
if(isset($_REQUEST['action']))


also in the mode download.mod a fix was giving for this line
$durl = $rurl.$HTTP_GET_VARS['d'].'/'.$HTTP_GET_VARS['name'];

to

$durl = $rurl.$_GET['d'].'/'.$_GET['name'];
thanks to Nesianstyles

Not sure if this helps but thought I would post it :-\

bloc

thanks, Ray. i will look into it..it seems I need to use something else there.