Jump to content

request url


simun

Recommended Posts

and what if i have something like this:

 

$putanja = "../files/naslovi/" . $_GET['id'] . "/" . $photo['filename'] . ".txt";

 

and i need that my variable $putanja echo onley . $photo['filename'] . ".txt"

 

i have try $putanja = substr("../files/naslovi/" . $_GET['id'] . "/" . $photo['filename'] . ".txt", -20, -4);

 

bote some times my id have 3 characters sometimes 1 character, and thats not good solution,

 

 

Link to comment
https://forums.phpfreaks.com/topic/165472-request-url/#findComment-872730
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.