hyperlink - how to do url routing in php -
sorry, don't know should exact technical term problem statement title of thread might misleading/confusing. that's reason why not able search problem solution on google.
okay, i'm developing simple social network users. want each user have own profile link.
for example, if username of user 'xyz' profile link should 'http://example.com/user/xyz
now how create "virtual" link?
edit: okay, learned it's mod_rewrite , got similar question how dynamically rewrite url facebook
routes php delicate matter. mod_rewrite can in beginning, after becoming mess , f*** rather help, when "big" software needs scalable.
remembering "routes" not part of specific application, nomenclature "server" interprets request "client" , returns specific value "client" configuration of request. ie, "router" server.
what recommend study http protocol, rest , on.
this surely in many things, knowing how http protocol works, how handle php. besides stay fit designing skill webservice social network, , make routes easily.
there several libraries work routes in php, like: slim framework, zaphpa, respect/rest, toro, aura router , on...
hope helps.
Comments
Post a Comment