Tag Archives: code

How To Split Comma-separated Values

How To Split Comma-separated Values

To split a string that contains values separated by commas (comma-separated values), what you need is the PHP explode() function. Here’s a code example on how to use the explode() function: $cake = “slice1,slice2,slice3,slice4″; $slices = explode(“,”, $cake); echo $slices[0]; // slice1 echo $slices[1]; // slice2 And if you have a space after your comma, [...]

Continue reading...

How To Secure Your OpenCart Website (Improve OpenCart Security)

OpenCart is not inherently secure, and the fact that it is open-source (with everyone being able to know it’s internal code and file/folder structure) makes it even more susceptible to attacks. Here are several methods to teach you how to secure your OpenCart website. Essential Steps To Do After Installation Immediately delete the /install/ directory [...]

Continue reading...