I have a webpage hosted in my local server being displayed inside a Page Viewer Web Part in SharePoint 2007.
I would like to include a user check inside the pages in my server, so when an user tried to access some page through the SharePoint web part, the page would first check who is the user logged in SharePoint trying to access the page, and then check if the specific user is allowed to see that page.
I have tried the most common solutions found online using js and/or php: SPAPI, SPContext and Jquery SPServices, but wasn't able to make any of them work with the php pages in my local server.
Is there a practical way to get the user who is accessing the page? I am new to web development, so I would appreciate any help.