The missing 5th parameter for PHP Mail()

November 6th, 2008

So happy!!! Finally I solved my php email script problem for sending emails to server with SPF record!!!

There is a missing 5th parameter for PHP Mail() which I never know (eventhough on php.net mail() function did show up 5th parameter).

My problems is no matter on which site I setup mail scripts, the Return-path always showing the main server url which most of the time causing problem for sending email to some protected email server. No matter how I set the headers to include Reurn-path to any email address, it will never show up the correct one. At last now I have the solution,

mail($to, $subject, $bodymessage, $headers, “-fnoreply@domain.com”)

noreply@domain.com is the address I sepcified, there must be a -f in front of the address.

Hope this will be helpful ;)

boyd Programming ,

Samsung NC10 Netbook around £299 (RM1600)

October 29th, 2008

http://waterblowing.com/2008/10/29/samsung-nc10-netbook-around-299-rm1600/

Samsung NC10 Netbook

Samsung NC10 Netbook

Among all the hot netbook in the market now, I found that the Samsung NC10 Netbook comes with the most competitive specifications and also, a good price. The NC10 comes with all the features that maybe you can not even find on an expensive laptop. The only things to disadvantages compare to expensive mobile laptop maybe just the speed of processor. I have not yet tested any Intel Atom based computer yet but I believe that you do not need a super powerful processor for a laptop now a days. If I am not with my MacBook now, I definitely will get this one for travelling.

For me, netbook will be good for email, web conferencing, voip, messenger, photo organizing, music, movie (even HD) and of course, working ;)

Let’s look at the spec

Processor

  • Intel® Atom™ Processor N270 (1.6GHz)
  • 533MHz FSB with 512KB Cache
  • Chipset: Intel 945GSE + ICH7M

Memory

  • 1GB (1 x 1GB) DDR2 667MHz
  • Memory Slot 1 x Slot SODIMM

Hard Drive

  • 160GB SATA

Software

  • Operating System: Genuine Windows® XP Home (SP3)
  • Samsung Magic Doctor
  • Samsung Update Plus
  • Easy Display Manger
  • Easy Battery Manager
  • Easy Network Manager
  • Easy Speed Up Manager
  • Adobe Acrobat Reader

Display

  • 10.2” WSVGA (1024 x 600) SuperBright© Gloss LED Display

Graphics

  • Intel® Graphics Media Accelerator 950
  • 128MB Integrated Graphics

Audio

  • HD (High Definition) Audio
  • Multimedia Player
  • EDS (Enhanced Digital Sound) Effect
  • 2 Watts Stereo Speakers (1W x 2)

Input Devices

  • 84 Key with Silver Nano technology (Anti-Bacterial Keyboard)
  • Touch Pad (Scroll Scope, Flat Type)

Networking

  • Wired Ethernet LAN (RJ45)
  • 10/100
  • Wireless LAN
  • Atheros® Wifi 802.11b.g
  • Bluetooth 2.0+EDR

Dimensions

  • 261mm (W)
  • 185.5mm (D)
  • 30.3mm (H)
  • Weight: 1.33kg

Power Supply

  • 60 Watt AC Adapter
  • 6 Cell Lithium ion Battery

Interfaces

  • 1 x VGA D-Sub Out
  • 1 x Headphone-out
  • 1 x Mic In
  • 1 x Internal Mic
  • 3 x USB 2.0
  • 3 in 1 Card Reader (SD, SDHC, MMC)

Warranty/Miscellaneous

  • 1 Year Warranty
  • Samsung Recovery Solution III
  • McAfee Virus Scan
  • BIOS Boot Up Password / HDD Password
  • Kensington Lock Port

boyd Design, Hardware, Mobile, News , , ,

Encode in UTF-8 without BOM

October 17th, 2008

this is important issue when you have a multi-language windows (like me is the english version with chinese support) and you are a web developer.

I always did web development in English but my software always automatically encoded in big-5 and I have to change it to UTF-8

So, one day I came across a problem where my site is not working in IE7. I have been trying to correct it for 5 hours still no solve. At last, I found the problem where when I view the source of the page, I saw the first character on first line of the source codes is a dot.

I then solve this issue by encoding my php file which came on top all time of every index.php to UTF-8 without BOM (means UTF-8 without signature in some software).

Really headache huh!

boyd Uncategorized

CSS z-index trick for IE6 and IE7

October 17th, 2008

Just found out that if you have sort of CSS drop down menu, sometime when the menu drop and touch the bottom DIV, the menu will be cut off.

The solution is very simple, let say your drop down menu #menu is within #header part, you just need to set the #header with z-index:2;

then your next part maybe #contents, this should be set to z-index:1;

Hope you got it ;)

boyd Design, Programming , , , ,