How to extract img tag attributes using PHP?

advertisement

phpI’ve this PHP script function that use to extract image tag attributes. This comes very useful when you want to extract image data from some html content for processing or migration. if you know how to modify the regular expression, then the same function can be use to extract any other html attributes! Just few line of codes and hope it benefits everyone here 🙂

To extract img tag attribute using PHP, follow the steps below

Continue reading How to extract img tag attributes using PHP? »

WordPress: How to upload image using script?

advertisement

wordpressJust migrated an old site to WordPress. This old website contain more than 1200 images and if i migrate manually it will take a long time. So i wrote two script, first to extract all the images and it’s description from the old website to a file. And second script is a WordPress plugin script to upload the image to it’s page and set the image caption (useful for gallery and lightbox description) according to the old website description automatically.

wordpress-upload-image-script

How to upload image using script in WordPress

Continue reading WordPress: How to upload image using script? »

Symfony 1.4 – Customize Admin Generator listing to show data from foreign tables

advertisement

symfony If you are using admin generator in symfony 1.4, i bet you will have the problem to customize admin generator listing to show data from foreign table. It’s common for us to display data from different tables within a listing.

To customize admin generator listing to show foreign tables data, follow the steps below:-

Continue reading Symfony 1.4 – Customize Admin Generator listing to show data from foreign tables »