Saparate String Using Comma in PHP

Today i learn new things. I got a string that returns a location by coordinates in single sprint which is separated by a comma.

So how do i put it inside array?

using PHP is just simple.

My original string looks like below:

101.6868550,3.1390030,0

it contains 3 different information which are longitude,latitude and elevation.  So i assign this string value as a variable $coordinate .

Now we separate it using explode function in PHP

$latlang = explode(’,', $coordinate, 3);

In order to display longitude,latitude and elevation, i can just put the following:

echo $latlang[0];

echo $latlang[1];

echo $latlang[2];

done, they are already separated in an array. now the value is more accessible

Cheap Way Marketing

There are a lots of various ways to get your business being advertised.

One of the common way is printing out flyers and give out to the nearest neighborhood. If you’re a smart thinker, you will not to this way. I have test method and can concluded that you will get only 1% feedback from the amount of flyers you gave.

Let say you gave out 1000 flyers. There will be only 10 person will call you and that person also is not a “confirmed customer”

So, if you need a cheap way to do marketing, you will need the following items:

  • A3 laminating machine
  • A3 laminating film
  • A3 colour paper

What you need to do is, print out the simplest word as BIG as you can such as “Create a Website. Call 1700-808-500″ and stick it around junctions in your area or maybe in a traffic jam area. You will get noticed buy at least 100 people every day.

This method is a cheap way to get advertised, but you need to be patient with the city council since they will clean up the place and throw away your advertisement.

Do not give up. if your advertisement have been thrown away, print out a new one and stick it back! ;)

p/s: If You need a website design or web hosting, please visit my company website E-Hosting – The Best Hosting Solutions

Fixing Jquery Conflict

When i do my Final Year Project, i have conflicts between my slider script and lightbox.

So i found out the following solution, In order to make the script not conflict, you have to use different variables with one of you script.

let say, both of the script using $, you will need to add the following code to one of the script:

var $jx = jQuery.noConflict();

next, change all $ to $jx

example:

below are my original code:

$(document).ready(function() {

if($(’div.trigger’).length > 0) {
$(’div.trigger’).click(function() {
if ($(this).hasClass(’open’)) {
$(this).removeClass(’open’);
$(this).addClass(’close’);
$(this).next().slideDown(100);
return false;
} else {
$(this).removeClass(’close’);
$(this).addClass(’open’);
$(this).next().slideUp(100);
return false;
}
});
}

});

I change it to:

var $jx = jQuery.noConflict();
$jx(document).ready(function() {

if($jx(’div.trigger’).length > 0) {
$jx(’div.trigger’).click(function() {
if ($jx(this).hasClass(’open’)) {
$jx(this).removeClass(’open’);
$jx(this).addClass(’close’);
$jx(this).next().slideDown(100);
return false;
} else {
$jx(this).removeClass(’close’);
$jx(this).addClass(’open’);
$jx(this).next().slideUp(100);
return false;
}
});
}

});

Now my script works perfectly!

For more information, you may read the following link:

http://docs.jquery.com/Using_jQuery_with_Other_Libraries

Blackberry Storm Problem

hi all, im writing this because i am so mad with my new blackberry storm, i got a new replacement unit last week after I go up and down to imobile requested for a new phone, my previous phone screen was totally blank and cannot “ON” at all. Today i got a new phone from them. At a first place, i think i am so happy because all my headache about the phone was gone. but now im facing a new problem, the screen always freeze and i cannot scroll and click! WTF?

It is my fault or i dont have any good luck to use blackberry?

So what is my solution? What if this happen to you? My explanation below might help:

1. Try to pull out the battery, a lots of website on the net call it a soft reset

If this method does not work, try

2. Go to Options > Security Options >General Setting > Press Menu > Wipe Handheld

if this method also does not work, try

3. Try Wipe wit JL_Cmder

Pre-Wipe Tasks

1. Download and install Jl_Cmder to your PC ( Click here to download Jl_Cmder ) Reference Link

2. Make sure ALL your data (i.e. contacts, appointments, memos and etc) are backed up or synced before proceeding! This will wipe everything off of the device

3. Make sure you have the latest version of both Desktop Manager and the Handheld OS installed on your PC. If you need them then download them from here:

 Desktop Manager and Handheld OS List

4. From the PC navigate to c:\program files\common files\research in motion\apploader and delete the file vendor.xml

 If you have never installed the Handheld OS before then the vendor.xml file will not be on the PC and you can skip this step

5. Plug the device into the PC using the USB cord and make sure Desktop Manager is closed

Wipe The Device

1. Wipe the device using Jl_Cmder

 This may take several attempts to connect to the device, so keep trying until it connects and wipes

2. The device will reboot to a white screen with a ‘507′ error

Install OS and Restore

1. Open Desktop Manager and select Application Loader

2. Install the OS by following the prompts and selections

3. The device will reboot. It can take up to 15 minutes for the 1st boot.

4. Restore the previously made backup or re-sync

5. Install the battery back into the device and unplug from the PC

If this method also does not work, send it back to your vendor and ask for a new one!

hope this helps,

i will post some screen shot soon.

Alternate SMTP server when you can’t send out email

All of us will having a problem to send out email when using streamyx connection, i believe this is the best solution for the time being.You will need a gmail account to use their smtp server

This is the error message on SMTP error

Change your default SMTP to smtp.gmail.com

Check ‘My server requires authentication’ and enter your Gmail username and password

Use secure connection and enter 465 as SMTP Port number.

How to enable ‘register globals’ using your .htaccess file

Most of the web hosting company make a default php setting  of the register globals to “off”

You can change this for your individual sites by adding a line to the .htaccess file in your root home folder:

php_value register_globals on

Do you need a good hosting provider?

In seo, do you need a good hosting provider? the answer is definitely yes. If you use a free and unreliable free hosting, a spyder for the search engine maybe visit your site but your site is not available. Or maybe after the spyder crawl half of the website, and your website is down. definitely the spyder will stay away from your site because your site is not available to view. Theres nothing like that warm and fuzzy feeling your customers get when they encounter an error message. The robot will captured an error message, or found no site at all to index. In this case, you need to find a good hosting provider that ensure the reliability of your site. Ok the next step here try to identify the reason your pages are not being indexed. i will write about seo more in my website . dont forget to link back to me if you like my writings :)

A welcome spirit to the spider

Now, do you think your website opening up the door as big as it can to welcome the search engine spiders?

have a look back to your website and maybe there are several pages are not indexed. Some of the problems we can clarify here is maybe the robots cannot follow your links. Have you ever wonder why most of the big websites have site map? this is to allow robot to follow links and maybe some of the links in the website is using javascript or any application that does not recognize by the robot. Robot is like a queen, you neeed to treat it well. Your website should compatible with the robot eye view. We are encourge you to have a full html website instead of flash or java or any else that require 3rd party application. Why? Robot does not fit with this any 3rd party application. Some website won’t display to viewer who doesnt have Javascript. Guess who doesnt have Javascript? Some website require cookies. Guess who won’t accept cookies? Im sure not you already have the point.  ;)

IBM Thinkpad SL400

Yesterday went to kuala lumpur convention center for pc fair 2009 organized by PIKOM, after walk through all the booth, i decided to get a thinkpad for IT support usage. Sometimes it is useful to have a laptop when doing technical support for customers especially when we need some tools like IP scanner, Network Recovery tools and maybe even a network anti-virus.

When i reached home, i open up the box and try to start the laptop. The laptop just gave me a blank screen. ” wtf? “, i thought it was a faulty laptop or something but after i tried to place the ram property which was not install properly by a technician in pc fair, the laptop starts to boot up! hooray.

I immediately get my windows XP cd and install windows XP on my new thinkpad. The salesman told me that ibm give cd cointains xp and vista drivers but i couldnt find any CD in the box. ” Being cheated again? ” . Nevermind, i can find my driver my self. After googling around, i found that ibm has moved the drivers to the lenovo support page. Anyway there is a bit confusion when installing audio driver. You have to install the windows audio driver first then after that you can install the proper connextant driver. Below are the lists where you can get the drivers :

Audio Driver
Description: Conexant Audio Driver and Microsoft UAA Bus Driver for Windows XP (Install Both)
Download Microsoft UAA Bus Driver: download (You must install this first)
Download Audio Driver (v.3.54.0.0): download

Card Reader Driver
Description: RICOH 4-in-1 Card Reader driver for WIndows XP and Windows Vista
Version: 3.55.01
Download: download

Bluetooth Driver
Description: Bluetooth Driver for Windows XP
Version: 5.5.0.4300
Download: Download

Modem Driver
Description:HDAUDIO Soft Data Fax Modem with SmartCP Driver For WIndows XP
Version: 7.73.0.50
Download: download

Intel AHCI Sata Driver
Description: Intel(R) ICH9M-E/M SATA AHCI Controller Driver for Windows XP
Version: 8.1.0.1001
Download: download

UltraNav Driver
Description: ThinkPad UltraNav Pointing Device Driver for Microsoft Windows XP
Version: 7.2.1623.305
Download: download

Touchpad Driver
Description: Synaptics Touchpad Driver and Utility for Windows XP
Version: 7.5.19.5
Download Driver: download
Download Utility: download

Realtek Lan Driver
Description: Realtek RTL8168C(P)/8111C(P) PCI-E Gigabit Ethernet NIC (NDIS 6.0) Driver
Version: 5.678.1003.2007
Download: download

ThinkPad Wireless LAN (11a/b/g/n) Driver
Description: ThinkPad 11a/b/g/n Wireless LAN Mini PCI Express Adapter driver for Windows XP
Version: 7.4.2.134
Download: download

Intel Wireless LAN (11abgn, abg, bg) Driver
Description: Intel PRO/Wireless, Wifi Link driver for Windows XP
Version: 12.00.4000
Download: download

Camera Driver
Description: Integrated Camera Driver for Windows XP
Version: 1.0.0.13
Download: download

Nvidia GeForce 9300M GS Display Driver
Description: NVIDIA GeForce 9300M GS Driver for Windows XP
Size: 6.14.11.7598-1.0.0.28
Download: download

Intel Display Driver
Description: Mobile Intel(R) 4 Series Express Chipset Family Driver for Windows XP
Size: 6.14.10.4953-5.10.1.1042
Download: download

Fingerprint Reader Driver For Win XP
Description: ThinkVantage Fingerprint Driver and Software for Microsoft Windows XP
Version: 5.8.2.4462
Download: download

How to upload files via FTP

what is ftp? i heard this question so many times thrown by my customers. FTP is File Transfer Protocol that enables you to upload your files to web server. In directly we can say that this is a method to upload a file instead of using “File Manager” function in Cpanel. Normally when you bought a hosting plan they will include a ftp account so that you can upload your file easily. I just created a video called “How to upload files via FTP using Filzilla”. I personally made this videos for my readers and customers , I am sorry if you didnt understand any of my sentenses but I believe the video is clear enought to let you learn how to upload a file into a web server. Enjoy!

Pages: 1 2 3 Next
Pages: 1 2 3 Next

.