Jump to content

Recommended Posts

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/12345
There 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

Link to comment
https://forums.phpfreaks.com/topic/304294-help-reading-a-variable-from-a-url/
Share on other sites

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.