View the actual $string processed by file_get_contents($string) in php

.eXe

New Member
I'm forced to use an older version of php on a server, and it seems to have a bug in the function \[code\]file_get_contents();\[/code\] I believe it's a bug because the issue doesn't happen on the current version of php.\[code\]$string = 'intraneturl/?really_long_example_query_parameters';\[/code\]When I pass the \[code\]$string\[/code\] into \[code\]file_get_contents($string);\[/code\] the part with the query parameters seems to get truncated at some point because the returned information is different than when I run the exact same code on the up-to-date version of php on my dev machine. My question is: How can I see the exact string that \[code\]file_get_contents();\[/code\] processed. I know what I sent in, but I don't believe it's processing it as I sent it. There may be a generic answer for viewing the innards of all functions via debugger or something. Do I need to use a debugger or is there a way to just print the information on the screen?
 
Back
Top