Related Content
Creating Sparklines In PHP
A sparkline is a very small line graph that is intended to convey some simple information, usually in terms of a numeric value over time. They tend to lack axes or other labels and are added to information readouts in order to expand on numbers in order to give them more context.
PHP:CSI - Improving Bad PHP Logging Code
I read The Daily WTF every now and then and one story about bad logging code in PHP stood out to me. The post looked at some PHP code that was created to log a string to a file, but would have progressively slowed down the application every time a log was generated.
Generating Histogram Colour Analysis Graphs From Images In PHP
If you've ever looked at the settings in a digital camera, or have experience with image processing programs like GIMP, then you may have seen a colour histogram. This is a simple graph that shows the amount of different shades of colour are present in the image.
PHP:CSI - To Switch, Or Not To Switch?
I was writing unit tests for a API mapping function recently and came across this interesting issue. The code I was writing tests for was in a legacy codebase that I was making changes to, and it made sense to have some unit tests in there before I started work to ensure everything worked before and after.
Drupal 9: Generating Header Images For Pages Of Content Using PHP
Embedding image within pages of content helps both within the design of the page and when shared on social media. If you set up meta tags to point at a particular image then that image will appear when the page is shared on social media. This makes your page stand out more.
Using PSR-4 With Composer
The PHP Standards Recommendations (called PSR) are a set of standards that aim to make certain aspects of working with PHP easier.
Comments
Submitted by Chris Schmidt on Tue, 02/03/2009 - 16:48
PermalinkSubmitted by philipnorton42 on Tue, 02/03/2009 - 17:01
PermalinkSubmitted by Chris Schmidt on Tue, 02/03/2009 - 17:31
PermalinkSubmitted by philipnorton42 on Tue, 02/03/2009 - 19:13
PermalinkActually not quite - I had to add a greater than before the shortenurl and a less than behind - cause the regexp did take them out from the a href and end a tags ... I just have one issue with the above statement - I found that if I have something like http://this.is.a.very.long.url the script will shorten the URL which results in a loss of the original information since there is no link on it that stays untouched. So would you be able to modify the statement that it only matches something like:
To make sure I only catch links with the URL as the text and not just URLs that don't have a link associated with them? Thanks so much Chris
Submitted by Chris Schmidt on Wed, 02/04/2009 - 09:24
PermalinkSubmitted by Chris Schmidt on Wed, 02/04/2009 - 09:28
PermalinkSubmitted by philipnorton42 on Wed, 02/04/2009 - 09:40
PermalinkSubmitted by Chris Schmidt on Wed, 02/04/2009 - 10:19
PermalinkSubmitted by philipnorton42 on Wed, 02/04/2009 - 10:30
PermalinkSubmitted by Chris Schmidt on Wed, 02/04/2009 - 12:08
PermalinkSubmitted by sanjeev on Tue, 06/04/2013 - 11:41
PermalinkAdd new comment