Jump to content

help reading a variable from a url


RobDgital

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
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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.