Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. Using the following function to learn what is after the trailing slash on my 404 page.
  2.  
  3. function explodeURL()
  4. {
  5. $filename = $_SERVER['REQUEST_URI'];
  6. $breakfile = Explode('/', $filename);
  7. $pfile = $breakfile[count($breakfile) - 1];
  8.  
  9. return $pfile;
  10. }
  11.  
  12. $urlexplode = explodeURL();
  13.  
  14.  
  15. how can break down the output if its something like
  16.  
  17. from_user=FROM-USER-HERE&to_user=TO_USER-HERE
  18.  
  19. I need to be able to get the FROM-USER-HERE and the TO-USER-HERE so I can pass them each through another function.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement