Brian W Posted March 30, 2009 Share Posted March 30, 2009 I've posted in the freelance board, but I haven't gotten much replies and no one has been serious, so I'll need to take this into my own hands I guess. I need to be able to have dynamic images on websites like myspace and other large website which works fine with one major complication; several major websites I'm targeting do not allow for query strings with images. So when my users try using <img src="http://www.signature-block.com/quotes.php?bg=255255255&fc=000000000"es.php?bg=255255255&fc=000000000" /> they get <img src="http://www.signature-block.com/quotes.php" /> I want to rewrite something like http://www.signature-block.com/bg/255255255/fc/000000000/quotes.png still pretty simple and I could do it myself if it was so simple, so here is where it gets complicated. There could be more variables, less, or they could be in a different order. it taking ".png" rather than ".php" is easy and likely the easiest part of this whole thing (I actually already have that part working by itself) I'm not using any sub-directories, so I was thinking it would be good if I grabbed everything after the domain that had a slash after it then processed like $1=$2& [loop though that until all the variables are converted] Any input appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/151772-rule-loop/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.