Category: Web Development

Wierd Exclamation characters in the html email

Naveen Nayak April 12, 2011 1 Comment Web Development

In case you are trying to send an html email via the mail function in PHP and you are getting weird formatting and exclamation characters, then you need to insert line breaks (“\n”) into the message of your email Check out the php documentation @ It says: Each line should be separated with a LF […]

Including external Javascript and CSS files in PHP

Naveen Nayak February 10, 2011 6 Comments Web Development

Here is how to include external javascript and css files in your php code <?php //include CSS Style Sheet echo “<link rel=’stylesheet’ type=’text/css’ href=’path-to-css-file’ />”; //include a javascript file echo “<script type=’text/javascript’ src=’path-to-javascript-file’></script>”; ?> If you want to include the javascript and css source code inside the php file itself then you can do it […]

PHP Email With Attachment

Naveen Nayak February 8, 2011 1 Comment Web Development

How to send an email with an attachment in PHP <?php //email details ( change accordingly) $to = “”; $from = “”; $subject = “Test Email with an attached file”; $message = “<p>Test Email – Check if the file is attached properly</p>”; //select a random hash to send MIME content $hash = md5(time()); //carriage return […]

Server Codes

Naveen Nayak October 4, 2010 No Comments Web Development

Successful Client Requests 200   OK 201   Created 202   Accepted 203   Non-Authorative Information 204   No Content 205   Reset Content 206   Partial Content Client Request Redirected 300   Multiple Choices 301   Moved Permanently 302   Moved Temporarily 303   See Other 304   Not Modified 305   Use Proxy […]

HTML Auto Focus

Naveen Nayak December 21, 2009 No Comments Web Development

If you have a very long page with lots of contents, the user has to scroll up and down to reach a point in the page that can be annoying. It would be nice to place headings on the top of your page and when the user clicks on them he is taken to that […]

XAMPP for Web Developers

Naveen Nayak December 21, 2009 No Comments Web Development

XAMPP is the easiest way to install MySQL, APACHE and PHP developer environment. Just install 1 single file and it automatically sets up all 3 of those for you without any hassles. The XAMPP LITE version is very useful, it has MySQL, PHP, APACHE and PERL. XAMPP when fully installed has lots more to offer […]

Page 2 of 2