• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ How-to (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

[How-To] Use $_GET with phpfreechat

A collection of how-to's, submitted by users for other users!

Moderator: re*s.t.a.r.s.*2

Post a reply
2 posts • Page 1 of 1

[How-To] Use $_GET with phpfreechat

Postby Ormin » Sat Nov 24, 2012 7:09 pm

Hi!

I had a problem of using $_GET in inframe with phpfreechat and i traced down the issue a bit. I believe this has something to do with PHP management of memory.

But whatever, there's code which worked for me ( unset($params) is for security ). Put this on header:
Code: Select all

extract($_GET);
unset($params);



Then if you want to access some variable from $_GET without crash, you use the & operator, so if you let's say want to access original $_GET['username'], you do:
Code: Select all
$new_username = &$username;


This also applies for PHP5!!!

enjoy this fine release :)
Ormin
New member
 
Posts: 1
Joined: Sat Nov 24, 2012 7:06 pm
Top

Re: [How-To] Use $_GET with phpfreechat

Postby OldWolf » Mon Nov 26, 2012 1:44 am

That's all well and good, but using GET is still not recommended. The problem is that the chat will lose site of those variables after the first round. Many of the parameters are adversely affected by this.
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top


Post a reply
2 posts • Page 1 of 1

Return to How-to (v1.x)

Who is online

Users browsing this forum: No registered users and 1 guest

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub