Seperate a String variable with the delimiters

I have been trying to fix a gallery of images in my project. Atlast i have landed up with a solution we can get the collection of a images Url seperated with commas and then make it stored in the array variable and retrieve it back.

$image=get_post_meta($post->ID, 'custom field name', true);
<a href="<?php if((($img[$i] == substr($img[$i],0,57).''.'.jpg'))) { echo substr($img[$i],0,57).''.'_b.jpg'; } else { echo substr($img[$i],0,57).''.'_b.jpg'; } ?>"><img src="<?php if((($img[$i] == substr($img[$i],0,57).''.'.jpg'))) { echo substr($img[$i],0,57).''.'_m.jpg'; } else { echo substr($img[$i],0,57).''.'_m.jpg'; } ?>" style="width:172px;"/></a>

Thanks for my dream one.


Auto Start the Xampp in linux

Here are the steps to make the xampp auto start in linux.

Step 1:

Open the ‘Terminal’ and Login as a root user.

Step 2:

Now type the command

$sudo gedit /etc/rc.local

it will open the file in a editor and add the following lines in the last line of the file.

/opt/lampp/lampp start

Keep sharing….