Odd behaviour being generated from include statement

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kc11
Forum Commoner
Posts: 73
Joined: Mon Sep 27, 2010 3:26 pm

Odd behaviour being generated from include statement

Post by kc11 »

Hi Everyone,

I am confused about what is happening. I am working in netbeans 7.0 for php in windows 7. In the beginning of my index.php script I have included a new class which I found at the phpclasses.org site : http://www.phpclasses.org/package/6859- ... -type.html.

Anyway, I included the class in the usual way.

Code: Select all

include 'PHPProxyChecker.class.php'; 
I have also included 2 supporting files, mentioned at the above URL. When I run the code I get the following ( which I have traced through xdebug to the above include statement ):

[text]
a:31:{s:9:"HTTP_HOST";s:9:"localhost";s:15:"HTTP_USER_AGENT";s:70:"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0";s:11:"HTTP_ACCEPT";s:63:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";s:20:"HTTP_ACCEPT_LANGUAGE";s:14:"en-us,en;q=0.5";s:20:"HTTP_ACCEPT_ENCODING";s:13:"gzip, deflate";s:19:"HTTP_ACCEPT_CHARSET";s:30:"ISO-8859-1,utf-8;q=0.7,*;q=0.7";s:15:"HTTP_CONNECTION";s:10:"keep-alive";s:11:"HTTP_COOKIE";s:179:"__utma=1.848220617.1307932894.1308272541.1309054285.14; __utmz=1.1307932894.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); svluUniqueID=XXXXXX";s:4:"PATH";s:396:"C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files (x86)\Common Files\xxxx\;";s:10:"SystemRoot";s:10:"C:\Windows";s:7:"COMSPEC";s:27:"C:\Windows\system32\cmd.exe";s:7:"PATHEXT";s:53:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC";s:6:"WINDIR";s:10:"C:\Windows";s:16:"SERVER_SIGNATURE";s:0:"";s:15:"SERVER_SOFTWARE";s:31:"Apache/2.2.17 (Win32) PHP/5.3.4";s:11:"SERVER_NAME";s:9:"localhost";s:11:"SERVER_ADDR";s:9:"127.0.0.1";s:11:"SERVER_PORT";s:2:"80";s:11:"REMOTE_ADDR";s:9:"127.0.0.1";s:13:"DOCUMENT_ROOT";s:12:"C:/wamp/www/";s:12:"SERVER_ADMIN";s:15:"admin@localhost";s:15:"SCRIPT_FILENAME";s:30:"C:/wamp/www/milprox1/index.php";s:11:"REMOTE_PORT";s:5:"54132";s:17:"GATEWAY_INTERFACE";s:7:"CGI/1.1";s:15:"SERVER_PROTOCOL";s:8:"HTTP/1.1";s:14:"REQUEST_METHOD";s:3:"GET";s:12:"QUERY_STRING";s:36:"XDEBUG_SESSION_START=netbeans-xdebug";s:11:"REQUEST_URI";s:56:"/milprox1/index.php?XDEBUG_SESSION_START=netbeans-xdebug";s:11:"SCRIPT_NAME";s:19:"/milprox1/index.php";s:8:"PHP_SELF";s:19:"/milprox1/index.php";s:12:"REQUEST_TIME";i:1309364109;}
a:1:{s:20:"XDEBUG_SESSION_START";s:15:"netbeans-xdebug";}
a:0:{}

Proxy (IP:PORT)
[/text]

Can anyone explain why this is happening or what this means?

Best regards,

KC
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Odd behaviour being generated from include statement

Post by Weirdan »

most likely the author left some debugging statements in there. Look's like serialize() to me - so search the class file for that function call.
kc11
Forum Commoner
Posts: 73
Joined: Mon Sep 27, 2010 3:26 pm

Re: Odd behaviour being generated from include statement

Post by kc11 »

Hi Wierdan,

You were correct as usual. Serialize/unserialize statements are present.

Sorry for the delay in responding, I'm still trying to work through the class

Thanks again,

KC
Post Reply