Using PHP, you might need to strip the path from a URL, leaving behind just the filename at the end of the URL. You can achieve this with a regular expression pattern of course, but I have a much simpler solution. See the example code below.
And that’s all there is to it. I hope that you found this useful.
And that’s all there is to it. I hope that you found this useful.
Thanks, that's pretty helpful.
ReplyDeleteIt would be better to use a custom style for code source or shell commands ..etc
for example : http://alexgorbatchev.com/SyntaxHighlighter/
keep up the good work and keep SHARING