php

How to setup login_info on Netsuite web service?

May
12

Netsuite brands its web service integration services as SuiteTalk, and SuiteTalk allows third-party systems to communicate with NetSuite via the SOAP based APIs. To get started with Netsuite Webservice, you'll need a Netsuite account that you can use to communicate with Netsuite. You may sign up with the SuiteCloud Developer Network (SDN) as a Community member, and get a free Netsuite account for exploitation. It may take a day or two to get your account approved.

Posted By admin read more

How to add attachment with the Zend_Mail?

Apr
19

Files can be attached to an email using Zend_Mail->createAttachment() method. The createAttachment() method requires a content of the attachment, and 3 optional arguments. Please note that it takes file content as an argument, not the name of the file.

Posted By admin read more

SMTP Email Address Validation

Mar
09

How do you validate an email address? You may validate it with a javascript on the client-side, or run a server side validation via a regular expression or a newly available filter_var function of the PHP 5.2.x. Perhaps, you may want to go one step further, and verify the email address from the remote SMTP server.

Posted By admin read more

Zend Framework without MVC

Mar
04

The reasoning for using a framework such as Zend Framework (ZF for short) is to speed up the development process, make the application extensible, and make use of the design patterns such as MVC. I think MVC is great, and it separates the models, views and controllers and makes the entire development process very clean. If MVC is great, why would you use Zend Framework without MVC?

Posted By admin read more

Zend Framework 1 Overview

Mar
03

Developing a PHP application requires domain knowledge, software engineering, discipline and time. We rarely write applications from scratch as there are freely available application frameworks that we can take advantage of. For PHP programming language, there are more than a dozen "popular" frameworks to choose from, and picking the right framework for your application is not a mundane task. I have been working as an IT consultants for many years, and Zend Framework is the one being discussed frequently.

Posted By admin read more

How to configure Eclipse to use spaces instead of tabs?

Feb
24

When writing a maintainable code, indentation plays important role. This may be one reason Python requires proper indentation as the programming syntax. A traditional tab indents 8 spaces, and we all know 8 spaces are just to much for coding indentation. We all opt to use 4 spaces for programming indentation, but how do you accomplish this? We can configure a TAB to indent only 4 whitespaces, or use 4 physical spaces? There are tradeoffs, and it's a matter of personal taste.

Posted By admin read more

Missing closing php tag

Feb
17

I have seen many open-source web applications such as Drupal and Wordpress with missing closing php tag (?>) in header and other include files. The application does work flawlessly, and I am curious to know why those closing tags are missing. According to the php.net manual, ...

Posted By admin read more

How to run PHP with HTML extension?

Feb
16

There are a couple of reasons why you may want to run php with html extension. You may have a static website with highly ranked web pages, and would like to retain search engine indexing and ranking while converting the site to use server-side technology. Or, you may not want to reveal server-side technology to your website visitors for security reasons. While others may just prefer plain old html extensions over php extensions on their URLs. Regardless of your reasoning, using a server-side technology such as PHP with html extension is easy to setup.

Posted By admin read more

How to test if a form is submitted?

Feb
16

We live in a very busy world, and sometimes we try to get things done quick-and-dirty. One of the most popular example is to create a PHP script that renders a view and also handles form submission (action). So, what is the best way to test if a form has been submitted?

For example, let's look at the HTML form snippet below:

Posted By scott read more

Multiple Constructors in PHP

Feb
04

In most object-oriented programming languages such as Java, C++ and C#, you can define multiple constructors each having different signatures. The class calls correct constructor based on the number of parameters, and data type of input parameters. In PHP5, however, you can have one and only one constructor. Constructor in PHP is defined with a reserved keyword, __construct(). If the __construct function doesn’t exist, PHP5 will search for the old-style constructor function by the name of the class.

Posted By admin read more

Pages

Subscribe to RSS - php