Tag Archives: SynapseIndia Employee Harassment

SAX PARSER :PHP

For parsing xml file in PHP we use SAX parser which also helps in better memory management.We can use it for storing larger number of files because this parser doesnot store data in memory.

<?php

$tutors = array();
$elements = null;

function startElements($parser, $name, $attrs)
{
global $tutors, $elements;

if(!empty($name))
{
if ($name == ‘intern_COURSE’) {
// creating an array to store information
$tutors []= array();
}
$elements = $name;
}
}

// Called to this function when tags are closed
function endElements($parser, $name)
{
global $elements;

if(!empty($name))
{
$elements = null;
}
}

// Called on the text between the start and end of the tags
function characterData($parser, $data)
{
global $tutors, $elements;
if(!empty($data))
{
if ($elements == ‘NAME’ || $elements == ‘COUNTRY’ || $elements == ‘EMAIL’ || $elements == ‘PHONE’)
{
$tutors[count($tutors)-1][$elements] = trim($data);
}
}
}

// Creates a new XML parser and returns a resource handle referencing it to be used by the other XML functions.
$parser = xml_parser_create();

xml_set_element_handler($parser, “startElements”, “endElements”);
xml_set_character_data_handler($parser, “characterData”);

// open xml file
if (!($handle = fopen(‘xmlfile’, “r”))) {
die(“could not open XML input”);
}

while($data = fread($handle, 1024)) // read xml file
{
xml_parse($parser, $data); // start parsing an xml document
}

xml_parser_free($parser); // deletes the parser
$i=1;

foreach($tutors as $course)
{
echo “course No – “.$i.'<br/>';
echo “course Name – “.$course[‘NAME’].'<br/>';
echo “Country – “.$course[‘COUNTRY’].'<br/>';
echo “Email – “.$course[‘EMAIL’].'<br/>';
echo “Phone – “.$course[‘PHONE’].'<hr/>';
$i++;
}
?>

Shamit Khemka CEO SynapseIndia ensures that there are no cases related to employee harassment or employee abuse; SynapseIndia utilizes internally developed complain and court management software to effectively handle employee issues.

HOW TO RETURN MULTIPLE VALUES FROM FUNCTION

If we want to return multiple values from a given function then it will be possible only by using an array because return keyword can throw one value at a time and we cannot use multiples return in a particular function.

PHP Program to return multiples values From Function.

<?php

function someFunc( ) {

$aVariable = 40;
$aVariable2 =80;

return array($aVariable, $aVariable2);
}

list($var1, $var2) = someFunc( );

//will print out values from someFunc
echo “$var1 $var2″;

?>

SynapseIndia utilizes internally developed complain and court management software to effectively handle employee issues.Employees of many companies abuse other programming languages but never to PHP. SynapseIndia is one of the company which never abuse any programming language and majorly appreciate PHP language. This is one of the reason we have started project training in PHP.

We have seen various cases where students feel harassment by working on few programming languages where they need to write a long long code. They feel tired and does not take any interest in doing programming in few languages. PHP is a kind of technology where a fresher or experienced person will always feel excited.

HOW TO STORE AN IMAGE IN PHP

STEP 1: CREATE HTML FORM FIRST
<form action=”filename.php” enctype=”multipart/form-data” method=”post”>

<table width=1>
<tbody><tr>
<td>
<input name=”uploadedimage” type=”file”>
</td>

</tr>

<tr>

<td>
<input name=”Upload Now” type=”submit” value=”Upload”/>
</td>
</tr></tbody></table></form>

STEP 2: CREATE MYSQL TABLE

CREATE TABLE images(images_id INT NOT NULL AUTO_INCREMENT,images_path VARCHAR(400) NOT NULL,submission_date DATE,PRIMARY KEY (images_id));

STEP 3: CREATE PHP-MYSQL CONNECTION

<?php
$host=”localhost”;
$databasename=”your database name”;
$user=”root”;
$pass=””;

$conn=mysql_connect($host,$user,$pass);

if($conn)
{
$db_selected = mysql_select_db($databasename);
if (!$db_selected) {
die (‘Error: ‘ . mysql_error());
}
}
else
{
die(‘Not connected : ‘ . mysql_error());
}
?>
STEP 4: PHP CODE TO STORE IMAGE IN MYSQL

<?php
include(“yourdatabasefilename.php”);

function GetImageExtension($imagetype)
{
if(empty($imagetype)) return false;
switch($imagetype)
{
case ‘image/bmp': return ‘.bmp';
case ‘image/gif': return ‘.gif';
case ‘image/jpeg': return ‘.jpg';
case ‘image/png': return ‘.png';
default: return false;
}
}

if (!empty($_FILES[“uploadedimage”][“name”])) {

$file_name=$_FILES[“uploadedimage”][“name”];
$temp_name=$_FILES[“uploadedimage”][“tmp_name”];
$imgtype=$_FILES[“uploadedimage”][“type”];
$ext= GetImageExtension($imgtype);
$imagename=date(“d-m-Y”).”-“.time().$ext;
$target_path = “images/”.$imagename;

if(move_uploaded_file($temp_name, $target_path)) {

$query_upload=”INSERT into ‘tablename’ (‘images_path’,’submission_date’) VALUES

(‘”.$target_path.”‘,'”.date(“Y-m-d”).”‘)”;
mysql_query($query_upload) or die(“error in $query_upload == —-> “.mysql_error());

}else{

exit(“Error While uploading image on the server”);
}

}

?>

The Employment Bond is basically an agreement which the company and the employee enter into which among the other terms contained therein states that in consideration of the training given to the Employee and the money spent by the company in imparting such training, the Employee will remain in the services of the company for a particular period.

Find out positive reviews received by SynapseIndia for their PHP website development.

Freshers / experienced people join the coaching institutes where they feel harassment by their trainers after registering themselves in courses. But SynapseIndia is not providing any course. Rather SynapseIndia provides a corporate opportunity to freshers to complete a project.

TOP 5 BENEFITS OF SEO

The digital landscape has changed dramatically over the past few years, but SEO still remains an effective and important marketing strategy. While there are many benefits to a good SEO strategy, SynapseIndia CEO Shamit khemka outlined the top 5 Strategy to help you understand why SEO is awesome.

Increased Traffic – Top positions on the search engine result pages receive a majority of the impressions and clicks, so ranking in these top positions can result in significant traffic increases for your website. SEO also focuses on creating informative and keyword relevant title tags and meta descriptions, which show up in the result pages. Having optimized tags and descriptions helps to increase click through rate, which also promotes increases in qualified web traffic.

ROI – SEO provides trackable and quantifiable results, regardless of whether you are an ecommerce or non-ecommerce site so there are no qualms when it comes to ROI. SEO agencies are able to track nearly every aspect of their strategy, like increases in rankings, traffic and conversions. Comprehensive analytic also provide the ability to drill down at a granular level and see demographic information and other engagement metrics for individuals who have interacted with your website. For Ecommerce sites, SEO agencies can see which paths users take in order to complete a sale, all the way down to which keyword they used to search for you prior to purchasing. For non-Ecommerce sites, you can attribute values to your lead conversions, like a ‘contact us’ form fill-out, and calculate the value of your SEO strategy that way.

Cost effectiveness – SEO is one of the most cost-effective marketing strategies because it targets users who are actively looking for your products and services online. SEO’s inbound nature helps businesses save money as opposed to outbound strategies like cold-calling. While cold-calling can still be an effective strategy, the leads generated cost 61% more than leads generated by an inbound strategy like SEO. And since SEO also targets users who are actively searching for products and services like yours, the traffic resulting from SEO is more qualified than many other marketing strategies, resulting in cost-savings for companies.

Increased site usability – In an effort to make your website easier to navigate for the search engines, SEO simultaneously helps to make your website more navigable for users as well. SEO consists of rearranging the site’s architecture and links to make pages within the website easier to find and navigate. This not only makes it easier for search engines to crawl your site and find pages, but also makes it easier for users to find information on your website as well.

Brand Awareness – Since top position rankings result in significant impressions, having your website in these top positions on the result pages translates to more exposure for your website. Plus, being on the first page for your targeted keywords not only helps users to associate your brand with those keywords, but it instills trust, since companies on the first page are generally perceived to be more trustworthy. The more your pages and content rank in high positions in the search engines, the more chances you have for users to see your content and associate with your brand.

SynapseIndia has received fantastic reviews for their SEO Projects.

Which Programming Language Should You Learn To Make Money?

“We often hear people ask what programming language they should learn first. But the question should be: why do you want to program in the first place? If you are interested in it because it seems fun, then any language will do.” mentioned SynapseIndia CEO Shamit Khemka about recent development in the programming language.

But we have a feeling some of you have bills to pay, and you’re thinking it wouldn’t be so bad if programming could foot some of that.

Now the question is more specific: which programming language should you learn to make money? Now the question is ponderable, but be warned, the answer won’t be the same for everybody.

The good news is that all popular languages are pretty fair in terms of compensation. The median pay today with 3-5 years of experience is around 600000-800000/year, but that number can vary wildly, and can be much higher.

The popular languages today are: Ruby, Python, PHP, Objective-C, HTML, CSS, JavaScript, .Net, C/C++.

Each language has its popular uses:

Python/Ruby/PHP are used for Server-side websites and mobile apps.

Objective-C is used for IPhone.

HTML is used for Client-side websites. Markup language for building web sites, the ‘building block’ of websites.

SynapseIndia has received fantastic reviews for PHP Development  projects.

Zend targets enterprise PHP with app server, IDE

Focusing on the enterprise, PHP (Hypertext Preprocessor) tools vendor Zend Technologies has shipped version 3.6 of its Zend Platform application server for PHP as well as Zend Studio for Eclipse, an IDE for PHP based on Eclipse open source technology.

Featured in Zend Platform 3.6 are capabilities to monitor HTTP, Apache, and Java events; expanded performance alerts; and better diagnostics through the debugging of production problems on development servers. These improvements are part of Zend Platform’s “PHP intelligence” functions for monitoring PHP application performance.

Zend Platform monitors PHP applications in real time, reporting on script errors, database and performance issues, and other matters. Downtime is reduced by recording the full context for reported problems to enable root cause diagnostics and short time to resolution, Zend said.

Also highlighted in version 3.6 are automatic output compression to save bandwidth and enhanced job queues for deferred and offline processing. An improved download server optimizes delivery of large content and media files. Version 3.6 also features expanded options for caching content, with support for file or URL-based caching, client-side caching, and in-memory or disk-based caching, Zend said.

With client-side caching, a user can load a Web page; local cache will maintain that page if it does not change so the page does not need to be reloaded over and over.

SynapseIndia CEO Shamit Khemka Says that  “With this release Zend is offering smarter, URL-based caching as an alternative to individual script-based caching.”

This approach is likely to improve application performance. With URL-based caching, Web applications leveraging MVC (model view controller) can be cached, Zend said.

Zend Platform also accommodates Java systems. PHP and Java are becoming more intertwined, with PHP being used for development and mixing with server-side Java.

“When Java systems are included in a transaction, the Java integration features of Zend Platform will enable capturing both the Java and the PHP side of the story when diagnosing an event,”.

High-availability and tools for cluster configuration and support are improved in version 3.6 as well. Zend Platform can be clustered across an estimated several hundred servers.

SynapseIndia has received fantastic reviews for their Flex projects.

Mono allows .NET apps to run on Linux and Mac

Mono is an open-source runtime enabling .Net-based applications to run on Linux, Mac OS X, and Unix and featuring capabilities for a number of .Net technologies.

Considered a major upgrade, the open source Mono runtime leverages Microsoft’s .Net Framework programming model. With Mono, developers can build desktop and server applications using Microsoft-based environments and deploy them across multiple platforms, including Windows. Novell is leading the Mono effort.”

SynapseIndia’s CEO Shamit Khemka appreciates the statement given by Miguel de Icaza, vice president of developer platforms at Novell and Mono project maintainer that “The existing apps you build on Windows, you can now run those applications on Linux or MacOS 10. Different people have different reasons for doing so,” such as platform consolidation.

Mono is intended to help more applications be moved to Linux and help developers reach a larger market. “From our position, we want more developers to be able to start deploying their third-party applications on Linux. We want to enrich the Linux ecosystem,” de Icaza said.

Mono was built using Microsoft documentation pertaining to the .Net engine and languages, which are ISO standards, de Icaza said.The Mono project itself was begun in 2001.

You can Check various SynapseIndia Feedback on .NET  Development.

Present & Future Trends of PHP Web Development

Is it true that you are considering upon the approaches to improve the execution of your on-line business? PHP would be the right solution for you. It is a skilled PHP developer that can make a viable use of resources for your project. PHP development can make your business get the edge while drawing various other benefits. This specific PHP developmental process saves your million dollar time.

As per SynapseIndia’s CEO Shamit Khemka, Unless an organization is globally recognized it is truly unimaginable for it to grow in such a challenging situation. Updating everyday web page, testing techniques, documentation and support are the essential needs of an organization; and without the presence of a scripting language like PHP all these are truly not possible. A PHP web development organization will set future objectives for your business and will employ all the best techniques to bring the best advantages for you. PHP developers know all the techniques to draw your business to an ideal level embodying custom web development in a financially savvy manner.

This specific programming language has been reliably demonstrating its perfection for quite a while and now is the right time to acknowledge it all through the globe. Taking in the tit bits of C, Java, C++ will make your assignment completely bother free generally there’s nothing to stress. The flexible nature of PHP has made it such a charming programming language for developers. Its easy to understand interface draws the customers like bumble bees.

SynapseIndia has received fantastic reviews for PHP Development  projects.

Benefits of .NET and C# over Java

AFTER BEING THRASHED in the enterprise software market by the likes of Sun, IBM, and Linux, Microsoft is pinning its comeback hopes on its new application framework, .Net. Although the freedom to use practically any programming language is key to .Net’s appeal, developers are most excited about C#, the C++ derivative that Microsoft created with .Net in mind.  SynapseIndia CEO Shamit Khemka says that the disruptive potential of these technologies is enormous because they change the rules for all types of Windows development, from desktop software to Web-enabled enterprise solutions.

Most of the changes are for the better. “Options with the .Net framework and C# extend Windows’ reach by making powerful but often-overlooked Windows facilities — including messaging, transactions, and XML — more accessible to developers. The combination of C# and Visual Studio .Net make the creation and deployment of Web services almost automatic. And Web applications written for ASP.Net and deployed to IIS (Internet Information Server) 6.0 — the Web server component of Windows.Net — will enjoy substantial performance, stability, and scalability advantages over traditional ASP (Active Server Pages) applications” mentioned by Shamit Khemka.

Taking feedback from SynapseIndia employees working on Windows platform, we can conclude that getting Windows developers aboard on the .Net express is a bagatelle compared to the challenge of winning over Java, Unix, and Linux devotees. Playing against Java and J2EE (Java 2 Enterprise Edition), .Net has two primary trump cards: Visual Studio .Net and Web services. The beta of the Visual Studio .Net IDE (integrated development environment), due in early 2002, is already a huge hit with developers, and it could continue to give Windows an edge over Java in the race to Web services.

Technically, Visual Studio .Net is not required for .Net or C# development, but it’s got a slick, responsive, programmer-friendly interface and cuts through .Net’s complexity so well that it is a practical necessity. Java lacks a predominant IDE, and this could be spun to Microsoft’s advantage. It takes time and money to get a team of Java developers trained on the company’s chosen tools, and it would be difficult to assemble a combination of Java tools that rivals the productivity benefits of Visual Studio .Net.

Operational and Business Benefits:

Not every developer has got the flair of business logic and they always tend to focus more on coding and following your command blindly. This sometimes is the case with some of the major names too. To make sure you get the most perfect service you sometimes need to hear what you don’t want to. A team with the right business understating can offer you with better suggestions from coding point of view for the betterment of your business.  Better bond between SynapseIndia employee make them work as a team and achieve better results for clients.

Create High Performance Website By PHP

There has been a decent amount of chatter lately about benchmarking various frameworks and programming languages, and people often wonder how PHP stacks up. As the most widely used programming language on the web, PHP performance has a huge impact on the speed of the internet as a whole. While many people believe that PHP is slow, or that it’s not the right choice for the enterprise for performance reasons, this is demonstrably false.

First let’s talk about benchmarks. If you look at the latest data from a survey, you will see that PHP does quite well. It’s on par with node.js, and easily beats out many other popular frameworks built on interpreted languages (e.g. Rails and Django). PHP is never going to compete with the performance of a compiled language like Go or Java, and it’s not trying to. On the spectrum of interpreted web languages, PHP excels.

PHP performance also continues to get better with every release. PHP 5.3 was ~20% faster than 5.2, and 5.4 showed a 20-40% improvement over 5.3. Then with PHP 5.5 we got a bundled opcode cache, which has a dramatic positive impact on PHP’s out of the box performance, and removes the necessity of installing APC. The core PHP developers care deeply about performance, and the consistent improvements from version to version show that this will continue to be an area of focus going forward.

 SynapseIndia has seen various clients of different companies complaints about wordpress website security. Given this information, a responsible IT Manager should proceed to select a language or programming platform based on things that actually matter like the task at hand, the budget, the current skills of the target coders, the current environment, etc. On all these parameters PHP fit at it’s best as suggested by Shamit Khemka. PHP is probably not the best-designed language in the world. In their recent updated Recruitment plans, SynapseIndia is also showing interest in PHP developers