Can someone execute a php function in my library but not called on the viewed page???

Posted by Douglas on Stack Overflow See other posts from Stack Overflow or by Douglas
Published on 2010-05-24T23:07:33Z Indexed on 2010/05/24 23:11 UTC
Read the original article Hit count: 189

Filed under:

Let's say I have a php file, test.php with 2 functions: test1() and test2().

If I have an external php file, index.php, with include(test.php) in its code. If in the index.php file has a reference to test1() but not test2(), is there any way that someone would be able to execute test2() by doing something malicious while using the index.php file?

© Stack Overflow or respective owner

Related posts about php