RobDgital Posted July 11, 2017 Share Posted July 11, 2017 Please can someone guide me, I can not find an answer to my dilemma.I have a client who has created QR codes in the format www.myurl.com/12345There are 100 codes created like this. They want each to point to a profile. IF this had been done in this format www.myurl.com/profile.php?no=12345 I would have no issue, but....unfortunately...I am stumped on how to do this with php.Please any help or guidance will be appreciated Quote Link to comment https://forums.phpfreaks.com/topic/304294-help-reading-a-variable-from-a-url/ Share on other sites More sharing options...
Jacques1 Posted July 11, 2017 Share Posted July 11, 2017 PHP cannot help you with this, because the requests are handled by the webserver. That's where the URL need to be processed and rewritting. Google “URL rewriting”. Of course those specific URLs aren't very clever, because now you have to distinguish between physical folders and those virtual paths. If the profile IDs are always numbers, you could use that as a criterion -- assuming you don't have any real folders with numbers. Quote Link to comment https://forums.phpfreaks.com/topic/304294-help-reading-a-variable-from-a-url/#findComment-1548193 Share on other sites More sharing options...
RobDgital Posted July 11, 2017 Author Share Posted July 11, 2017 I appreciate your help GURU! Looking into it now. Much appreciated Quote Link to comment https://forums.phpfreaks.com/topic/304294-help-reading-a-variable-from-a-url/#findComment-1548194 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.