Monday, 30 June 2014

Task for PHP Developers...

Posted by Unknown | 03:13 Categories:
Hello friends ....

Today i am here with a problem for PHP developers....

The problem is when the user clicks on the logout button then PHP should destroy the session and redirect him to the login.PHP page...

But this is not happening...  find out the problem...


Here is the code

User_index.php :

<?PHP

session_start();

if (!(isset($_SESSION['username']) && $_SESSION['username'] != '')) {

header ("Location: checklogin.php");

}

?>

<!DOCTYPE html>
<html>
  <head>

<title>MAP MY WAY</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />

<meta name="description" content="Google Maps API V3: Custom Directions Panel" />
<meta name="keywords" content="final_project" />
<meta name="author" content="Zohaib Tasnim" />

<script type="text/javascript"                     
src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?
v=3.exp&sensor=true&libraries=places"></script>
<link href="style.css" type="text/css" rel="stylesheet" />
<!--to disable the enter key-->
<script type="text/javascript"> 

function stopRKey(evt) { 
  var evt = (evt) ? evt : ((event) ? event : null); 
  var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null); 
  if ((evt.keyCode == 13) && (node.type=="text"))  {return false;} 
} 

document.onkeypress = stopRKey; 

</script>


  </head>
  <body>
<div id="mapCanvas">&#160;</div>
<div id="box">
 <a id="btns"> welcome <?php echo($_SESSION['username']); ?></a>
    <a id="btns" href="profile.html"> My Profile</a>
    <a id="btns" href="logout.php"> logout</a>
    <p class="or">[OR]</p>
    <div class="directionInputs">
        <form action="address_insert.php" name="form2" method="post">
            <p><label>A</label><input type="text" value=""  name="loc_a" 
id="dirSource" /></p>
            <p><label>B</label><input type="text" value="" name="loc_b" 
id="dirDestination" /></p>
            <a href="#getDirections" id="getDirections">Get Directions</a>
            <a href="#reset" id="paneReset">Reset</a>
            <a id="btns"><input name="submit" class="btns" type="submit" value="Save                 
Address" /></a>
        </form> 
    </div>

    <div id="directionSteps">
        <p class="msg">Direction Steps Will Render Here</p>
    </div>
    <!--<a href="#toggleBtn" id="paneToggle" class="out">&lt;</a>-->
</div>
<script type="text/javascript" src="sample.js"></script> 
  </body>
</html>
 

And here is the logout.php    

 

<?php session_start();

  session_destroy(); 

 if (session_destroy()){ header("location:login.php"); } 

 else { echo"there was some problem";  

} 

 ?> 

 

  Find out what is the problem....

 
 

Leave a reply....

 

Thursday, 26 June 2014

Can you find error in following PHP code

Posted by Unknown | 23:07 Categories: ,
Hello friends ....

PHP,PHP code,



here is a simple PHP code to choose a random number and display its square root.

<html>
<head><title>Random</title></head>
<body>
<p>I have randomly selected the number <?php
    choice = rand(1, 100);
    echo $choice;
?>. Its square root is <?php
    echo sqr($choice);
?>.<p>
</body>
</html>


can you find any error in this program.....

reply......


regards : m2soft solutions Pvt. Ltd.

Wednesday, 25 June 2014

Hello friends .....!!!

Today i am here with a basic program of C programming.....

C programming




Program to print alphabet with their ASCII values .....

Here is the program....

  1. # include <stdio.h>  
  2. # include <conio.h>  
  3. void main()  
  4. {  
  5.   char ch ;  
  6.   clrscr() ;  
  7.   printf("ASCII chart for characters : \n\n") ;  
  8.   for(ch = 65 ; ch <= 122 ; ch++)  
  9.   {  
  10.     if(ch > 90 && ch < 97)  
  11.       continue ;  
  12.     printf("%c \t %3d \t", ch, ch) ;  
  13.   }  
  14.   getch() ;  
}  

Output :

 ASCII chart for characters :

A 65 B 66 C 67 D 68 E 69
F 70 G 71 H 72 I 73 J 74
K 75 L 76 M 77 N 78 O 79
P 80 Q 81 R 82 S 83 T 84
U 85 V 86 W 87 X 88 Y 89
Z 90


 a 97 b 98 c 99 d 100
e 101 f 102 g 103 h 104 i 105
j 106 k 107 l 108 m 109 n 110
o 111 p 112 q 113 r 114 s 115
t 116 u 117 v 118 w 119 x 120
y 121 z 122
 


can you make a program for ASCII values of numbers... 

reply....
 
 regards : m2soft solutions Pvt. Ltd.


 

Tuesday, 24 June 2014

PHP skill test for PHP developers

Posted by Unknown | 23:54 Categories: ,
Dear friends ...!!!
PHP,functions,


Today i am  here with some questions of PHP... to be answer...

so here we start the test...

Que.1 Who is called the father of PHP.

a) Larry Wall 
b)  Rasmus Lerdorf
c)  James Gosling
d)  Guido Van Rossum 

Que.2  What is the difference between print() and echo()?
a)  print() can be used as part of an expression, while echo() cannot.
b) echo() can be used as part of an expression, while print() cannot.
C)  echo() can be used in the CLI version of PHP, while print() cannot.
D)  both A and B

Que. 3  What is input sanitization?

a) Secure user input 
b)  Converting input into a format that PHP supports 
c)  Removing or cleaning potentially malicious user input. 
d)  All of the above
 




Que.4 The output of following script will be..


$somerar=15;

function ad it () {

GLOBAL $somevar;

$somerar++ ;

echo "somerar is $somerar";

}

addit ();

a) somerar is 15
b) somerar is 16
c)  somerar is 1
d)  somerar is $ somerar

Que.5  what will be the ouput of below code ? Assume that today is 2009-5-19:2:45:32 pm
<?php

$today = date("F j, Y, g:i a");
?> 
a) may 19,09,2:45:32 PM
b) May 19, 2009, 2:45 pm
c) May 19,2009,14:45:32 pm
d) May 19,2009,14:45:32 PM

Que. 6 What is the name of function used to convert an array into a string?

a)  explode()
b)  glue()
c)  implode()
D)  None of the above

Que. 7 If property of class is declare using var then PHP5 will treat the property as?
a)  Protected 
b)  Private 
c)  Public
d)  Final

Que. 8  What will be  the output of following script?
  
<?php
$test="3.5seconds";
settype($test,"double");
settype($test,"integer");
settype($test,"string");
print($test);
?> 


a)  3.5
b)  3.5seconds
c) 3
d)  3seconds 

Que.9 What is the name of function used to convert an array into a string?

a)  explode() 
b)  glue()
c)  implode() 
d)  None of the above 

Que. 10  The output of following script will be..

<?php
$x=array(4,2,5,1,4,5,3,4);
$y=array_count_values($x);
echo count($y);
?> 

a) 8
b) 7
c) 5
d) 28

solve the questions ... and answer them.....

regards : m2soft solutions Pvt Ltd

















Monday, 23 June 2014

cake PHP a framework of PHP ...

Posted by Unknown | 23:20 Categories: ,
Hi friends....!!!

today i am here with a quick discussion of cake PHP...

cake PHP is an open-source application framework written  in PHP . cake PHP was  started in April 2005 by Michal Tatarynowicz...

it is a fundamental structure for programmers to create web applications...

it was intended to developing and maintaining application easier...

cake PHP offers many useful design patterns like model-view-controller (MVC) patterns,which is used in other popular framework like ruby..

It also provides reusable libraries for dealing with common tasks...

Why we use cake PHP....

Compatible - compatible with both PHP-4 and PHP-5.

Flexible - Support for MySQL, PostgreSQL SQLite, PEAR-DB and wrappers for  ADODB, a database abstraction library.

Time saving - presence of Scaffolding.

SEO friendly - Search Engine Friendly URLS 

Clean MVC conventions - comes with a set of conventions to guide you in development of your application.

                     cake PHP can Works from any web site directory, with little to no Apache configuration involved.

Please Leave your opinion about cake PHP....

regards : m2soft solutions Pvt. Ltd.





Sunday, 22 June 2014

Difference between PHP and CMS

Posted by Unknown | 23:52 Categories: , ,
Hello friends ...!!!

PHP,CMS,Wordpress,web applications


       i am here with a new post to discuss the difference between PHP and CMS....

PHP 

PHP is a server site scripting language used for web development and can be embedded in HTML. 

PHP is a programming language that's primarily used to dynamically generate html. 

PHP is one of the several languages used to build a CMS. Word Press is a content management system written in PHP 

CMS

                      On the other hand content management system is "where the content of your site is managed".

 CMS is an application build in any language... not necessary in PHP. 

CMS (content management system) just a generic term for an web application that allows an administrator to manage the information that is shown to the end user. So a CMS may be written in PHP (but could be in Ruby on Rails, JSP, .Net, etc)...

Give your answers also..... in comments.. 

regards : m2soft solutions Pvt. Ltd.



Friday, 20 June 2014

Which is better PHP or .net..

Posted by Unknown | 05:26 Categories: , ,

Hi Friends!!!


PHP or .net
There are many tools and technologies available   to create good websit

I generally prefer PHP because ...
  • PHP is  Platform independence... ASP .net can run only in WINDOWS-IIS ...
  • Support of apache and MYSQL the best web servers.... 
  • Highest fault tolerance with safe mode support... simple and flexible..
  • web server in-dependency, support of many external libraries....!!!

On the other hand... .NET has object oriented Features...!!

  • Run on multiple language such as C#, C++, F#, Visual Basic, etc.
  •  many database supports...high mobile application support ...
  • support and documentation of Microsoft developers network...
  • best garbage collection...

PHP or .net
What do you think which is better???


Reply........I am waiting....

 





Thursday, 19 June 2014

US mobile carrier is trying  new way to transform the way people buy mobile phones for T-mobiles.In a new program that they call “Test Drive”,In a new program that they call “Test Drive”, T-Mobile is offering free trials to potential customers, offering them an apple iPhone 5S and 7 days of unlimited service to give their network a spin.

       According to the company, let the customers see if they get good reception at their home and office.

There is, of course, at least one small catch: they put a $700 (APPROX. 42000 in rs) hold on your credit card until the device is returned and, if you beat the thing up, they’ll charge you $100 ( APPROX 6000 in rs).


        The fourth-ranked mobile carrier says nearly half of total customers who have signed up for a wireless plan have wanted to leave their provider, and that one in 10 has quit within 30 days of making a switch. The free trial will give customers a chance to try before they buy at no cost.

The company said customers can sign up for a "test drive " online starting from Monday, and they'll receive a phone in the mail a few days later.

Please leave a comment....

Regards : m2soft solutions Pvt. Ltd.

Wednesday, 18 June 2014

The world's first Ultra HD 4K laptop  Satellite P50 has launched by Toshiba in India...

Priced : Rs 86,000

Satellite P50 features :

  • Display : 15.6-inch touchscreen 
  • Resolution : 3840 x 2160 
  • Generation : 4th Gen 
  • processor : Intel Core H series processors (47W)
  • Graphics : AMD Radeon R9 M265X graphic
it also has the features like four USB 3.0 ports, 1 TB hard drive with (3D sensor) to store and share HD content, , a UHS-II SD card slot, Wi-Fi, and HDMI ports capable of 4K output.

At New Delhi in a  press conference held  on Tuesday, the Japanese giant also introduced its detachable hybrid along with a professional workstation under its 'Greatest of all' range in the country.

Portage Z10t-A Ultra book :

price : Rs 53,520.

Features :

  • Display : 11.6-inch IPS Full HD display
  • full-size SD card slot
  • USB 3.0 and Micro HDMI port
  • keyboard dock features full-size HDMI
  • LAN and USB 2.0 port
Sanjay Warke, Country Head, Toshiba India - DS Division, says: "Toshiba has a rich heritage of continuously bringing meaningful technology innovations that set new industry benchmarks, and making products with impeccable quality and exceptional performance. Bringing the latest technology, style and comfort to our customers is a part of Toshiba's DNA and we are continuing to push the envelope. We have applied our technology expertise and years of research to incorporate the new technology dimensions to bring an Ultra HD 4K experience to laptops as well."

Please leave a comment....


Regards : m2soft solutions Pvt. Ltd

Monday, 16 June 2014

Q1200 has been launched by Indian smart devices brand XOLO at 13,999.

FEATURES :

Processor : 1.3 GHz quad core

Camera : 8 MP camera with Exmor RTM Sensor

Front camera : 2MP

Operating system : android 4.2 jelly bean operating systemwhich is upgradeable to 4.4 kitkat.

Internal memory : 8GB

RAM : 1 GB expandable up to 32 GB.

Battery capacity : 2000 mAh.

HD IPS display  : 12.7 cm size.

The display has damage resistant corning gorilla glass 3.  The camera has features such as scene detection and tuning, high dynamic range (HDR), low light enhancement and face recognition (for focussing as well as in gallery) among others.

Please leave a comment....

Regards : m2soft solutions Pvt. Ltd

Sunday, 15 June 2014

Now the PHP developers have PHP 5.6.0beta4 for development. The PHP development team announces the immediate availability of PHP 5.6.0beta4.
All users of PHP are encouraged to test this version carefully, and report any bugs in the bug tracking system

A beta version is officially closed with this release. A couple of RCs are to be expected, until we are confident that the release is stable enough for the final release.

THIS IS A DEVELOPMENT PREVIEW - DO NOT USE IT IN PRODUCTION!
For more information about the new features you can check out the work-in-progress documentation or you can read the full list of changes in the NEWS file contained in the release archive.
For source downloads of PHP 5.6.0beta4 please visit the download page. Windows binaries can be found on windows.php.net/qa/.
Our first Release Candidate should show up on the 19th of June.

please leave a reply.....

regards : m2soft solutions pvt. ltd.

Thursday, 12 June 2014

Mozilla, the developer of the Firefox web browser, has decided to launch smart phones worth 25$ that means 1500 rs to India in the next few months.a move that may redefine the "ultra-affordable" mobile phone market in the country

a smart phone prototype has shown at the Mobile World Congress in Barcelona in February, targeting developing countries including India and China.

  Mozilla is dedicated to putting the power of the web in people's hands, and Firefox OS frees consumers, developers, mobile providers and manufacturers from the limitations and restrictions of proprietary platforms," Mozilla Chief Operating Officer Li Gong said in a statement. 

Please leave a comment...

Regards : m2soft solutions Pvt Ltd.

 


The Board of Directors of infosis has announced  Dr. Vishal Sikka as the Chief Executive Officer and Managing Director (CEO & MD) of the company. Dr. Sikka will be inducted as a whole-time director of the Board and CEO & MD (Designate) on June 14, 2014. He will take over as CEO & MD from Mr. S. D. Shibulal on August 1, 2014.

     The Board has also elevated Mr. U.B. Pravin Rao, President and whole-time director, as Chief Operating Officer, with effect from June 14, 2014.

The Board also announced the following changes:
  • Mr. N.R. Narayana Murthy and Mr. S. Gopalakrishnan will voluntarily step down as Executive Chairman and Executive Vice Chairman, respectively, on June 14, 2014. In order to facilitate a smooth transition of responsibilities, they will continue on the Board till October 10, 2014 as the Non-executive Chairman and Non-executive Vice Chairman, respectively
  • Mr. K. V. Kamath will become the Non-executive Chairman of the Board on October 11, 2014
  • Mr. Murthy will be designated as Chairman Emeritus with effect from October 11, 2014 in recognition of his contributions to the company
  • Mr. S. D. Shibulal will step down as CEO & MD and from the Board on July 31, 2014
  • Mr. Srinath Batni, whole-time Director of the company, will step down from the Board on July 31, 2014
  • In addition, the company has elevated twelve leaders to the position of Executive Vice President with additional responsibilities  
Angel Broking?s VP Research Sarabjit Kour Nangra said the entry of a CEO into the company is the much awaited news as it has been searching for the chief, while facing the exodus of key employees.

Tuesday, 10 June 2014

Internet search provider Google has entered into an agreement to buy satellite maker Skybox for $500 million in cash. 
Google said that Skybox's satellites will provide images for Google's online mapping service. Google, the world's No.1 Internet search engine, said that Skybox's technology could also eventually be used to provide Internet access and help with disaster relief.
Skybox said the deal is not complete yet...
"Five years ago, we began the Skybox journey to revolutionise access to information about the changes happening across the surface of the Earth.
"We've made great strides in the pursuit of that vision," it said. We've built and launched the world's smallest high-resolution imaging satellite, which collects beautiful and useful images and video every day.
"We have built an incredible team and empowered them to push the state-of-the-art in imaging to new heights....
Google said that Skybox's satellites will provide images for Google's online mapping service. Google, the world's No.1 Internet search engine, said that Skybox's technology could also eventually be used to provide Internet access and help with disaster relief.
please leave a comment...

Monday, 9 June 2014

What should an e-commerce website include

Posted by Unknown | 23:26 Categories:
An e-commerce website provides several benefits but it gives number of challenges to the owner of the tat business.Since these sorts of websites are meant to sell products online, the complexities they face are also distinct from traditional websites. To ensure a perfect e-business solution all you need to see across a few factors :

  1. A simple user friendly Navigation : Navigation is a important aspect of any website. In a e-commerce website it is important to give your user a simple navigation path to allow them reach their favorite product without hassles.                                                                             
  2. Design that complements the product : An e-commerce website serves the primary purpose of letting buyers purchase their intended products. If the design of the website is vibrant and more appealing than it should be, it may deviate buyers from buying to browsing                                                                                                                                          
  3. Easy Checkout : The over all success of an e-commerce website services depends on the user experience it offers to the end users. because the user has spent a lot of time to selecting and comparing  the product and adding the product on the cart. so the check out process should be easy and simple.                                                                                                                      
  4. Product images should be attractive : The images of products should be clean and attractive on the landing page as it will simplify their buying decision further. because selling products online is entirely different from selling it on physical locations. Physically a buyer can touch, feel and measure the product before actual purchase.    

regards : m2soft solutions Pvt. Ltd                               
                                                                                                                                                                      

Saturday, 7 June 2014

Apple Releases iOS 8 SDK on 2nd june 2014. IT is the biggest  release with 4000 new API.  iOS 8 allows developers to further customize the user experience with major extensibility features like Notification Center widgets and third-party keyboards; and introduces robust frameworks such as HealthKit and HomeKit. iOS 8 also includes Metal, a new graphics technology that maximizes the performance of the A7 chip and Swift, a powerful new programming language.

Additional iOS 8 developer features include:
  • PhotoKit, so developers can tap into the power of the same robust framework as the built-in Photos app for faster performance, nondestructive edits and the ability to both read and write to the Photos library;
  • new Camera APIs, giving developers fine grain control over focus, white balance and exposure;
  • CloudKit, a complete and scaleable back-end solution helps developers eliminate the need for writing server code and maintaining servers; and
  • new App Store™ features for developers like app previews and app bundles, the new iTunes Connect with free analytics and TestFlight for beta testing pre-release apps.

Friday, 6 June 2014

Here are some great WordPress plug-ins for the web designers... for adding analytic,pricing table and much more... 
1. Google Analyticator : this plug-in adds JavaScript code necessary to enable Google Analytics on your WordPress dashboard.
2. Shareaholic : This plug-in enables you to an attractive social bookmarking menu and related content like posts,pages,index or any combination of the three.
3. Viper's Video quicktags :this plug-in adds platform-specific buttons to allow that allow you to simply paste in the URL of the video you want to embed.
4. WordPress Call to actionThis plugin helps to visually create call-to-action popups and track conversion rates, as well as set up and compare A/B split tests.
5. Instagram Image Galary :this plug-in helps to Choose whether to import images from a specific user, or based on  particular hashtag, and the plugin will do the rest. You can also choose whether to display a grid of thumbnails, or a slideshow of images
6. Manual Image Crop : This plug-in  allows you to manually crop all the image sizes registered in your WordPress theme.
7. Easy Table Pricing : This plug-in helps to create and publish beautiful tables on your WordPress sites.
8. WP e-commerce : This turns your WordPress sites into a fully featured e-commerce store.The system enables you to upload products into different categories and offers customers a shopping cart system to allow them to build an order.

Hope you will Enjoy the plug-ins.....



Thursday, 5 June 2014

Twitter's new profile coming up

Posted by Unknown | 05:12 Categories: , ,
Hello everybody... Good Afternoon..!!!
Here is twitter's new profile ... Twitter has redesigned the profile page in which...
  • Profile picture will be larger,
  • User will have the ability to customize header,
  • The best tweets can be showcase by pining them from the top of profile page,
  • Users are also allowed to choose which timeline to view while checking out other profile,
This tweeter's new profile setup has been given to a small group and will be available for everyone in few weeks...

Keep visiting..... 


Wednesday, 4 June 2014

WELCOME TO M2SOFT SOLUTIONS

Posted by Unknown | 03:13 Categories: ,
Hello Everybody, 

Good Afternoon......!!!!

We are very delighted to represent our company blog for you. As a M2 Soft Solution team I believe in innovations. We design and create websites and you know  it is very creative any body can design and write code for website but in M2 soft solution we believe in new ideas and creativity.  

We are best team provides you best solution for web and professional application software. 

I am very glade to welcome you on our blog..

Keep visiting....  
       
  • RSS
  • Delicious
  • Digg
  • Facebook
  • Twitter
  • Linkedin
  • Youtube