PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi, I'm a newbie to PHP, but I'm learning (I love it allready )...
I wanted to build a script that checks a directory for certain JPG buttons. Is it possible to make the script to look if (for example) the JPG button is present, if not the JPG story turns into a story of tables?
makes an array $a, fills it with the pieces of the string that are seperated by a period then replaces last element of the array (whatever came after the last period) with jpg. finally rebuilds the string as $file seperating each element of the array by a period.