Skip to content

Tag: php

Edit ScriptCase Code Directly?

I’m doubting since this site is full of experts anyone has dealt with this, but I’m hoping someone might have. I’m working with a client now who is creating a site using ScriptCase. I’ve tried figuring it out, and I’m lost as to how I can do something as simple as parse a CSV fil…

PHP: Check who had read sent email?

I am sending email to some users and wants to know who had read it, means if some one had read that email then a log file will maintain which contain the email address of that user with date/time/IP. For this I send a javascript function with the email (html template) which just alert the email address of the…

Smarty permissions problems

Smarty is complaining about permissions. I’ve written a small mvc framework for a project I’m working on and I need to be able to render templates in each controller. I went ahead and followed the …

How can I add commas to numbers in PHP

I would like to know how can I add comma’s to numbers. To make my question simple. I would like to change this: To: and : to and so on for larger numbers. Is it possible with a php function? Answer from the php manual http://php.net/manual/en/function.number-format.php I’m assuming you want the en…

PHP using an array in a Validation Class

On my site I have my register page, where a user inputs his information to register to my site. When he does the I process the user inputted information. Now when processing it I’m using arrays to facilitate the process, and not have me write the same code over and over. For example, here is how I gathe…

REST API – why use PUT DELETE POST GET?

So, I was looking through some articles on creating REST API’s. And some of them suggest using all types of HTTP requests: like PUT DELETE POST GET. We would create for example index.php and write API this way: OK, granted – I don’t know much about web services (yet). But, wouldn’t it …

How can I comment out PHP lines inside HTML file?

In the middle my HTML code, I have a line of PHP. now, I want to make PHP line as a comment. I tried to ues <!– –> but it seems not work for PHP. What should I do? Thanks Answer Imagine you have the following code: If you want the div to be echoed but not displayed at the