PHPee.com PHP development forum
Fix query string display

 
Post new topic   Reply to topic    phpee.com Forum Index -> PPhlogger Support
View previous topic :: View next topic  
Author Message
sdjl
Moderator


Joined: 17 Nov 2003
Posts: 936
Location: London, UK

PostPosted: Wed Oct 27, 2004 10:54 am    Post subject: Fix query string display Reply with quote
It's been noted for somewhile that when using the logger in PHP or PHPJS version that the query string (index.php?this=that) wouldn't display in the logger.

I'm pleased to announce that i've managed to fix this with a change to one line of code.

To apply the fix, please do the following.
1) Open /include/get_userdata.php
2) Find line 81
PHP:
$url = addHTTP($HTTP_HOST.$PHP_SELF);

3) Change the above code with
PHP:
$url = addHTTP($HTTP_HOST.$REQUEST_URI);

4) Save file and re-upload.

The $PHP_SELF variable doesn't append any query string to the filename it finds that has been called. By changing this to $REQUEST_URI you will get both the filename and query string.

I hope this helps some of you.

David
_________________
-----
Free Logger Accounts | PPHlogger Manual | PM Me
Back to top
View user's profile Send private message Visit poster's website
Post new topic   Reply to topic    phpee.com Forum Index -> PPhlogger Support All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.11
Theme design based on Team 101 Designs, modified by Philip Iezzi