Sunday, August 26, 2012

String variables in PHP

Hello,

Today I will explain about String variables in PHP, PHP string variables are used to score and manipulate that data. Once we have created a string variable we can manipulate it. We can use string directly into function or it can be stored into variable.

for example:

<?php

$text="My first string variable";
echo $text;

?>

Here we have created s string variable called text and then assign the text My first string variable to it. and then writing the value of the text variable for the output.

There is only one string operator in PHP to join two string values together, It is known as PHP Concatenation Operator.

Here is an example to join two string variables together.

<?php

$one = "My first";
$two = "string variable";

echo $one ." " .$two;

?>


----------------
output:
My first string variable

Monday, August 6, 2012

PHP variables

Today we will learn about PHP variables.

One can use PHP variables to store informations there are some rules for PHP variables such as
  • PHP variable starts with the $ sign, and followed by name of the variable.
           for example: $text
  • PHP variable name much begin with a letter or the underscore character.
  • PHP variable name can only contain alphabetic, numeric characters and underscore.
  • Variable name should not contain spaces.
  • Variable names are case sensitive.
            for example: $text and $TEXT are two different variables.

Here is simple programme for sum of two numbers using variable.

<!DOCTYPE html>
<html>
<body>


<?php
$no1=5;
$no2=10;
$answer=$no1+$no2;
echo
$answer;
?>

</body>
</html>


-------------------------------
output:
15

PHP has 4 different variable scopes such as
  • local
  • global
  • static
  • parameter
Local variables are declared within a PHP function and can only access within that funcion.
Global variable is declared outside of any function and It can be accessed from any part of script.
Static variable are used when you do not want to delete local variable by using static keyword before the first declaration of the variable.
Parameter is a local variable whose value is passed to the function by the calling code.


Saturday, August 4, 2012

Browser detection using PHP

Today I will explain how to check what browser visitors are using with the help of user agent strings our default browser sends as a part of the HTTP request. The variable we can use to check browser is

$_server['http_user_agent']

$_SERVER is a reserved super global PHP variable that contains all the web server informations.

Lets see the example and its output result.


<?php

echo $_SERVER['HTTP_USER_AGENT'];

?>


---------------------
Output

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)

Sunday, July 22, 2012

Create your first PHP-enabled page

Hello,

Today I will explain how you can create your first php enabled page. A PHP script starts with
  <?php and ends with ?>

 First of all open any text editor(notepad++)

create a file name index.php and put it in your web server's root OR /www OR puclic_html directory with the following content.

<html>
<head>
<title>Homepage</title>
</head>

 <?php
 echo 'Hello World';
 ?> 

</body>
</html>

Use your default browser to see output of this code with your web server's url ending with the /index.php
If you are using localhost then try http://localhost/index.php or http://127.0.0.1/index.php

If everything is fine you will see result like


Hello World



Thank you.

Sunday, July 15, 2012

Things you should know about PHP

Before you start to work with PHP you should have some basic understanding about how it works, what are the requirements and what it can do? Why you should use PHP? etc.

PHP is widely used programming language to create dynamic websites
PHP scripts executed on the server side. As PHP is open source you can freely download and use. PHP files can contain text, HTML, Advance Java code. Once PHP is executed you can see result as plain HTML  in the browser. All PHP files have a default extension of .php
PHP can run of platforms like Windows, Linux, Unix, Mac. It is also compatible with almost all servers that are available today.

To develop websites using PHP you can

  • Find a web host with PHP and MySQL support (e.g 000webhost.com)
  • Install a web server on your own PC, and then install PHP and MySQL 
i.e THe Uniform server, xxamp, wamp, etc.

Official resource page for php is www.php.net

Thursday, July 12, 2012

Introduction to PHP


PHP is a server side language , and is a powerful tool for making dynamic Websites.
PHP stands for  Hypertext Preprocessor

It is a widely-used because it is free (open source) and efficient alternative to competitors such as Microsoft's ASP. Also PHP can be embedded into HTML.

Here is simple example to print welcome to world of php.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <title>Example</title>
    </head>
    <body>

        <?php
            
echo "Welcome to world of php.";
        
?>
    </body>
</html>

Saturday, June 30, 2012

Highway Rider game tricks


Highway Rider


By Battery Acid Games


This trick is about how we can get more than 10000+ "Nitrous Oxide Boosts".



Its pretty simple if you have iFile/iDevice which let you open file manager.

ok!

Open iFile and locate folder

var/mobile/Applications/Highway Rider

and then goto

Library/Preferences

Open file

 "com.batteryacid.highwayrider.plist"

find 
<key>Boosts</key>
<integer>xyz</integer>

where, xyz is number of nitrous oxide boosts.

edit xyz with any amount.

than click on "save" and "done".

Thats it!!

Enjoy playing game :)






Subway Surfers High score Tricks

Note: if you have update game version then it will not work.

Subway Surfers
is Presented by Kiloo Games and Sybo Games.

Currently there are is just one tricks on this game which works really good without using any software.
And That is opening "MYSTERY BOX".

First of all goto Shop and single tap on "buy" button.

Then wait untill next screen appears and says "Tap to open". 

Now this is the step where we play our trick.

When it ask to tap,  Tap with 5 fingures at same time.
(tauch screen one time with all fingers)

So it will open 4-5 items from box :)

Look into screen shots.

Friday, June 29, 2012

BlackJack by Mike Ross tricks

If you like playing Blackjack, you might be playing this free blackjack game! 
Blackjack By MIKE ROSS
http://itunes.apple.com/us/app/blackjack-free!/id366459988?mt=8

In this game I do not know any particular trick that let us win all the time,
But I know how we can get cash/tokens!

*Requirements:
-iFile
- and guts

Open iFile and locate folder
/var/mobile/Applications/Blackjack

Library/Preferences/

Open file name with name
"uk.me.decipher.blackjack7.plist"

In this file search for chips.
it might be look like
<key>chips</key>
<real>10xxx</real>

where, 10xxx = number of chips you are having.

ok so thats all we need replace 10xxx with any amount you want.
<real>105735499</real>

Click on "save" and "done".

If you find any difficulty and leave me a message here :)


Thanks.

Diamond dash Tricks



Hello,

Title says it all, Today I am going to reveal secrets of Diamond Dash Game!
Over 5 Million user plays this game on their iPhone, iPod and iPad.

After you finish reading this article I am sure you will be able to get Gold, Coins and XP for free :)

To do this a little knowledge of editing file is require, Dont worry even if its your first time editing file you will do great :).

First of all you need

-iFile OR any iDevice browser/explorer

   then open

var/mobile/Applications/Diamond Dash
If you cant see Diamond Dash name there click on setting icon open preferences>File Manager/Application Names ON

Ok So it will look like this screenshot:



















To get highscore in DiamondDash you will need to  edit multiplyer
here is how to do it.

If you are allready into var/mobile/Applications/Diamond Dash
then
Open
DiamondDash.app folder and look for file name "balancingIphone.plist" OR "balancing Ipod.plist"

If you are iPad user, edit balancingIPAD.plist. If you're iPhone/iTouch users, edit balancingIPHONE.







In this file you can edit score mulitipyer:

<key>BasicScoreMultiplier</key>
<integer>95</integer> (THE BASE SCORE, THE HIGHER THE BASE SCORE IS, THE HIGHER YOUR MULTIPLIER WILL GO)

<key>GroupScoreMultiplierBig</key>
<real>0.40000000000000002</real> (BIG AMOUNT MULTIPLIER. ONLY WORK IF YOU GET A BIG AMOUNT OF GEMS)

<key>GroupScoreMultiplierMid</key> (MID AMOUT MULTIPLIER ONLY WORK IF YOU GET A MID AMOUNT OF GEMS)
<real>0.5</real>

<key>GroupScoreMultiplierSmall</key> (SMALL AMOUNT MULTIPLIER.ONLY WORK WITH THE SMALL GROUP OF GEMS)
<real>0.33000000000000002</real>

<key>GroupSizeMedium</key> (THE NO. OF AMOUNT TO GET MID AMOUNT BONUS)
<integer>10</integer>

<key>GroupSizeSmall</key> (THE NO. OF AMOUNT TO GET SMALL AMOUNT BONUS)
<integer>6</integer>

<key>HalfSpeedyBonus</key> (TIMER HALF SPEEDY BONUS)
<integer>200</integer>

<key>MagicFireMultiplier</key> (ON RAGE FIRE MULTIPLIER)
<real>4.5999999999999996</real>

<key>MaxSpeedyBonus</key> (MAX SPEEDY BONUS)
<integer>2000</integer>

<key>SpecialGemMultiplier</key> (DIAMOND/SPECIAL GEM MULTIPLIER)
<integer>6</integer>

<key>SpeedyTime</key> (SPEEDY TIMER)
<real>0.40000000000000002</real>

Ok now lets talk about how we can get coins
in that same folfer DiamondDash.app scroll down and look for file name
"earnCoins.plist" 
Open earnCoins.plist and edit as much coins you want
between <integer>coin value</integer>
e.g <integer>10000</integer>

So this will give me 10000 coins when game ends :)
See the screenshots









Now, to get gold and xp 

you will need to edit another file "levelling.xml" scroll down in DiamondDash.app folder and look for file "levelling.xml"










In this file one can edit values of xp it depends on number of gems you click in game.

this one gives xp points


Ok!

Now to get Gold and lifes you need to edit gold value into levels.
 in that same file just scroll down.
it will look like
<levels>
<level num="1" xp="0" bonus="0" gold="0" life="0"/>
<level num="2" xp="200" bonus="4" gold="0" life="0"/>
<level num="3" xp="450" bonus="5" gold="0" life="0"/>

where. 1,2,3 is level number
           0,200,450 is xp 
           0,0,0 gold
          0,0,0 life 


you get when you level up !! 

just find out on what level you are playing and start editing

I was playing at level 32 so I started editing from level 32 to 100 :p

look into screenshots
So when you level up it will give gold as reward.
There is no limit of numbers in gold value you can enter any number u want.




So after you finish editing click on "save" and "done" button.

go back to game and see it in action.