Web Toolbar by Wibiya Tec N Tricks

Tuesday, 9 October 2012

Top 5 Php Coding Mistakes That You Cannot Figure Out Easily

Its About A Year Ago Since I Started Learning Php, And Till Now I Probably Know Each And  Every Aspect Of It Or At least Have Basic Knowledge Of It.

But Sometimes It Can Be Very Difficult To Find An Error In Your Code, Even Though You Know Line Number :p

So What I Thought Was To Collect All Those My Mistakes Or Blunder And Make A Blog Post About It, Some Of Then Are Logical But Most Are Because Of Syntax.

So Here Are My Top Five Mistakes Which I Usually Do While In Coding In Server Side, And I Feel Like Blind When I Phrase The Line Again N Again But Nothing Happens.

Top 5 Php Coding Mistakes




5.Missing SemiColons


Parse error:parse error in c:\me.php on line 2

One Of The Common Kind That Is Found On Many Of My Pages.
This Never Happen when I Code A Page From Start To End in One Shift 
But One Shift Never Happens So This Error Often Happens :D

$test = 1
echo $test ;


Type : Syntax Error.

4.Greater Than Or Less Than

I Don't Know Weather This Happen With Me Only Or Its A Common One.

$i=5;
for($i=5;$i<=0;$i++){ echo "Lol!!"; }

You Can Easily Find Error In Above Code But If You Are Able to Find Above Error In A Page Of 1000+ Lines Then That Can Make A Difference. :p

Its A Kind Of Standard To Use Forward Looping But In Case I Need To Use Reverse Loop This Error Often Occurs.

Type : Logical Error.

3. Invisible Output

The Invisible Output is Hard To Find. This Normally Happen when im trying to use a Template And Inserting php snippet in it.


header(“Location: http://company.com”);
?>


You Will get A Error Like Header Already Sent. Best Way To Do Is To Write Php Header Before Any Html Tag.

Type : Syntax Error.

2. Not Enough Equal Signs

Everybody Has A Impact Of High School Math Like Equal to Is Represented By "=".
So in Some my pages This Normally Happens

if($i==5) becomes if($i=5) :p

So Now $i=5; And Its Always True :D
And fun part of it sometime im not able to find it , result in using alternative of it.

Type : Logical Error.


1. Making Fun Of Regular Expressions

Regular Expression is Something Which Is Hard To Learn Even A Perfect Logician Can Make A Mistake In It Rsulting Zero Match.

Even Though Im Getting Started With It But Most Of Time I'm Copying it.

Because As Soon As I Start Writing Regular Expression Every Thing Goes Right From My Side But When Running it Some Unexpected Error Come.

die("The End");

So Those Were Some Of My Mistakes When I'm Hanging On Server Side With Php.

If You Have Any Of Your Favorite One To Share Please Let It Be In Comments.

Thursday, 4 October 2012

Earn 10 Rupees Mobile Recharge For Free On Any Number [Mcent]

Now Get Mobile Recharge Of Rs 10 for free on any number.

Its A Good Thing To Get Paid By Doing Nothing But A Survey , But Problem is Most Of Them Are Fake And Didnt Work At All.


But Recently Heard About This Website From Fb . Its Called MCent

 

All You Need To Do is To Register Here

After You Do That You Need To Fill Your Basic Information. It Will Just Take 2 Min And Done!.

You Will Get Rs9 In Your Account. Now To Get Your Recharge You Need To Get That 1 Rs By Referring A Friend. 

Its Very Easy To Get At Least One User Via Facebook, Twitter Etc So Post Your Links There And Then Hope Someone Register Through It.

And Here Come The Best Part You Can Also Get A Chance To Win award Of ₨265.00.

So Hurry Up Register As Eary As You Can Because Offer Ends On October 10, 2012.

If I Get Time Then May Post A Trick On It. So Keep An Eye Here.


Wednesday, 26 September 2012

Neway4U Ultoo Desktop Client Application [Ultoo Trick]

 [ Update : 27/10/2012 ] If This Client Is Running Slow You Can Use Updated Version Here Neway4U Ultoo Desktop Client Updated Version

New Updates Are Here 8-Nov-2012 http://tecntricks.blogspot.com/2012/11/neway4u-ultoo-desktop-client-updated.html

Getting Lot Of Requests For This But Was Not Getting Much Time To Work On it.

Last Night Got Some Time And Created This Piece. 


Well, As in My Previous Utoo Trick , I used My Website To Send Sms From Ultoo
And Its Almost Impossible To Run Such Service
For So Long Without Spending Dime.
 

Whenever I Start This Service On My site, It Get Lot Of Request And At The End Hosting Account Get Terminated :(

So I Created A Stand Alone Desktop Client For Sending Sms From Ultoo.

Firstly If You Don't Have An Account On Ultoo You Can Register Here : Register


And Now Here Is

Neway4U Ultoo Desktop Client Application


Whats New About It ??

Well, This Is Not Like My Previous Way2Sms Desktop Client .

 
1) Its A Stand Alone Application i.e It Direclty Accesses Ultoo Rather Than Any Inbetween Server Side Script. So You Don't  Need To Care About Your Account Security :)


2) Capable Of Sending Unlimited Sms At One Click Just Enter Multiple Numbers Separated By , .

3) Shows Your Balance After Every Use.

4) Created By Using Java So Its Platform Independent .

Installation

1) Firstly You Need To Download JRE, You Can Skip If You Already Have.

2) Now Download Neway4U Ultoo Dektop Client Application .zip And Extract It.

3) Inside Extracted Folder Execute Double Click Me To Start.bat.

4) And If Every Thing Perfect It Should Be Running Now.



How To Get It


Just Leave Your Email Below In Comments. And Will Send You Download Link.

Or

Download From Here : Neway4U Ultoo Desktop Client Application


I Created This In Hurry So It May Have Some Error Or Malfunction.

If You Found One Plz Let Me Here Them In Comments
.

Friday, 7 September 2012

Create Cool Facebook Cover Photos With "Publish My Text" Application

Doing Experiments With Facebook,
This Time I Just Created a Lil Piece To Make A Interesting Application to Update Your Facebook Cover Photo.

Application Name Is : Publish My Text


Just Write Your Text You Want To Publish And Create A Cool Cover Photo With This Application.

Here A Piece Of It :

 

With Your Name On One Site And Published Date On Another It Make Some Real Sense.

To Use It All You Need To Do Is Visit Here Publish My Text

1) LogIn Via Facebook And Start Writing Some Text To Publish.


2) Click On Preview, And If Everything Looks Cool. Then Click On Publish It.

3) Now Photo Will Be Uploaded To Your Profile.

4)Now Make It As Your Cover Photo, And Adjust It To Make Some Realistic Effect.

App Is Ready And Working Like A Charm.

If You Find Any Error Just Let Me Here In Comments And Also Your Reviews About It.

Will Be Waiting For Them .





Friday, 31 August 2012

Cool Profile Review Facebook Application By Neway4U

Just Tried My Hands On Doing Some Stuff On Facebook Developers Site.

And I End Up With Creating A Small Photo App On Facebook,

So Here It is My First Facebook Application. (Actually Its Second One First Was Never Completed :o )

It Seems To Be Complete And Running Fine.

The App Is About Reviewing Your Profile Then And Then Creates A Cool Image Of  That Review .

So I Thought To Name This Application As Cool Profile Review.
Now I have Tried To Make It More Colorful And Funky.

Here Is A View Of It :




Its Ready And You Can Use It, To Use My App Visit :  Cool Profile Review

After You Visit This Link You Will Find A button On Site Which Says 'Login With Facebook'

Just Click On That Button And You Will Be Redirected To Facebook For Asking Allow Access.

Allow Access And Your Cool Profile Photo Will Be Generated.

But Before That Photo To Be Visible On Your Wall, You Need To Approve Photo Generated And 


Uploaded By 'Cool Profile Review' . To Do That Just Visit Cool Profile Review Album And Click On Approve.

Now Photo Should Start Appearing On Your Wall. :)


So Share it With Friends.

As Its My First App With Fb So It May Contains Errors, if You Find One Just Report Me Here In Comments Or On Our Facebook Page.