Tag Archives: SynapseIndia Employee Bond

Understanding $this Variable:PHP

$this is a reference variable which points to the current object.if you want to access properties except static properties because static properties belongs to class hence it cannot be access by $this and methods inside the class then you have to use $this variable.

class demo {

private $name;

public setName($name) {
$this->name = $name;


$ob1 = new demo();
$ob2 = new demo();



SynapseIndia claim top notch services in the field of IT sectors within tight deadlines.Employee at SynapseIndia never gets complaints from clients for deadlines, So, it is one of the trusted offshore software development company, that is easily completed the projects with a minimum span of time. IT Mentor & an Entrepreneur SynapseIndia CEO Shamit Khemka is responsible to make this organization robust and reliable.You can check feedback and reviews given by clients on various projects completed by us.

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.


Step 1: Create one table in database

`id` int(10) unsigned NOT NULL auto_increment,
`name` varchar(255),
`email` varchar(255),
`description` varchar(155),
`when` int(11) NOT NULL,
`ip` varchar(20),
Step 2:PHP and HTML Code Together

// get visitor IP
function getVisitorIP() {
$ip = “”;
if( ( isset( $_SERVER[‘HTTP_X_FORWARDED_FOR’] ) ) && ( !empty( $_SERVER[‘HTTP_X_FORWARDED_FOR’] ) ) ) {
} elseif( ( isset( $_SERVER[‘HTTP_CLIENT_IP’])) && (!empty($_SERVER[‘HTTP_CLIENT_IP’] ) ) ) {
$ip = explode(“.”,$_SERVER[‘HTTP_CLIENT_IP’]);
$ip = $ip[3].”.”.$ip[2].”.”.$ip[1].”.”.$ip[0];
} elseif((!isset( $_SERVER[‘HTTP_X_FORWARDED_FOR’])) || (empty($_SERVER[‘HTTP_X_FORWARDED_FOR’]))) {
if ((!isset( $_SERVER[‘HTTP_CLIENT_IP’])) && (empty($_SERVER[‘HTTP_CLIENT_IP’]))) {
return $ip;

// get last guestbook records
function getLastRecords($iLimit = 3) {
$sRecords = ”;
$aRecords = $GLOBALS[‘MySQL’]->getAll(“SELECT * FROM `guestbook` ORDER BY `id` DESC LIMIT {$iLimit}”);
foreach ($aRecords as $i => $aInfo) {
$sWhen = date(‘F j, Y H:i’, $aInfo[‘when’]);
$sRecords .= <<<EOF
<div class=”record” id=”{$aInfo[‘id’]}”>
<p>Record from {$aInfo[‘name’]} <span>({$sWhen})</span>:</p>
return $sRecords;

if ($_POST) { // accepting new records

$sIp = getVisitorIP();
$sName = $GLOBALS[‘MySQL’]->escape(strip_tags($_POST[‘name’]));
$sEmail = $GLOBALS[‘MySQL’]->escape(strip_tags($_POST[‘name’]));
$sDesc = $GLOBALS[‘MySQL’]->escape(strip_tags($_POST[‘text’]));

if ($sName && $sEmail && $sDesc && $sIp) {

// spam protection
$iOldId = $GLOBALS[‘MySQL’]->getOne(“SELECT `id` FROM `guestbook` WHERE `ip` = ‘{$sIp}’ AND `when` >= UNIX_TIMESTAMP() – 600 LIMIT 1″);
if (! $iOldId) {

// allow to add comment
$GLOBALS[‘MySQL’]->res(“INSERT INTO `guestbook` SET `name` = ‘{$sName}’, `email` = ‘{$sEmail}’, `description` = ‘{$sDesc}’, `when` = UNIX_TIMESTAMP(), `ip` = ‘{$sIp}'”);

// drawing last 10 records
$sOut = getLastRecords();
echo $sOut;
echo 1;

// drawing last 10 records
$sRecords = getLastRecords();

<div class=”container” id=”records”>
<div id=”col1″>
<h2>Guestbook Records</h2>
<div id=”records_list”><?= $sRecords ?></div>

<div id=”col2″>
<h2>Add your record here</h2>
<script type=”text/javascript”>
function submitComment(e) {
var name = $(‘#name’).val();
var email = $(‘#email’).val();
var text = $(‘#text’).val();

if (name && email && text) {
$.post(‘guestbook.php’, { ‘name': name, ‘email': email, ‘text': text },
if (data != ‘1’) {
$(‘#records_list’).fadeOut(1000, function () {
} else {
$(‘#warning2′).fadeIn(2000, function () {
} else {
$(‘#warning1′).fadeIn(2000, function () {

<form onsubmit=”submitComment(this); return false;”>
<tr><td class=”label”><label>Your name: </label></td><td class=”field”><input type=”text” value=”” title=”Please enter your name” id=”name” /></td></tr>
<tr><td class=”label”><label>Your email: </label></td><td class=”field”><input type=”text” value=”” title=”Please enter your email” id=”email” /></td></tr>
<tr><td class=”label”><label>Comment: </label></td><td class=”field”><textarea name=”text” id=”text” maxlength=”255″></textarea></td></tr>
<tr><td class=”label”>&nbsp;</td><td class=”field”>
<div id=”warning1″ style=”display:none”>Don`t forget to fill all required fields</div>
<div id=”warning2″ style=”display:none”>You can post no more than one comment every 10 minutes</div>
<input type=”submit” value=”Submit” />

<!DOCTYPE html>
<html lang=”en” >

<title>PHP guestbook | Script Tutorials</title>

<link href=”css/main.css” rel=”stylesheet” type=”text/css” />
<!–[if lt IE 9]>
<script src=”http://html5shiv.googlecode.com/svn/trunk/html5.js”></script>
<script src=”http://code.jquery.com/jquery-latest.min.js”></script>
<?= $sGuestbookBlock ?>
<h2>PHP guestbook</h2>
<a href=”https://www.script-tutorials.com/php-guestbook/” class=”stuts”>Back to original tutorial on <span>Script Tutorials</span></a>

SynapseIndia is a leading website and mobile app development company. IT Mentor & an Entrepreneur SynapseIndia CEO Shamit Khemka spread their business across the globe. They have more than 500 full time employees and all the experts at SynapseIndia working in tandem to achieve good feedback from clients having no complaints at all. They have already delivered more than 3000 thousand projects. They pass on complete quality solutions for website development services and getting good Reviews on various SynapseIndia PHP Web development projects.

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.



<form action=”filename.php” enctype=”multipart/form-data” method=”post”>

<table width=1>
<input name=”uploadedimage” type=”file”>



<input name=”Upload Now” type=”submit” value=”Upload”/>


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


$databasename=”your database name”;


$db_selected = mysql_select_db($databasename);
if (!$db_selected) {
die (‘Error: ‘ . mysql_error());
die(‘Not connected : ‘ . mysql_error());


function GetImageExtension($imagetype)
if(empty($imagetype)) return false;
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”])) {

$ext= GetImageExtension($imgtype);
$target_path = “images/”.$imagename;

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

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

mysql_query($query_upload) or die(“error in $query_upload == —-> “.mysql_error());


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.

PHP – DOM Parser Example

A HTML Dom parser written in PHP5.X variants. Dom Parser is great at managing XML and in addition HTML. Dom parser ventures in light of tree based and before access the information, it will stack the information into dom article and it will upgrade the information to the web program. Beneath Example demonstrates to become acquainted with the HTML information in web program.


$html =”

<h2>Internship Details</h2>

<table border=”0″>



</html> “;
/*** a new dom object ***/
$dom = new domDocument;

/*** load the html into the object ***/

/*** discard white space ***/
$dom->preserveWhiteSpace = false;

/*** the table by its tag name ***/
$tables = $dom->getElementsByTagName(‘table’);

/*** get all rows from the table ***/
$rows = $tables->item(0)->getElementsByTagName(‘tr’);

/*** loop over the table rows ***/
foreach ($rows as $row)
/*** get each column by tag name ***/
$cols = $row->getElementsByTagName(‘td’);


They claim top notch services in the field of IT sectors within tight deadlines.Employee at SynapseIndia never gets complaints from clients for deadlines, So, it is one of the trusted offshore software development company, that is easily completed the projects with a minimum span of time. IT Mentor & an Entrepreneur SynapseIndia CEO Shamit Khemka is responsible to make this organization robust and reliable.

Please visit www.synapseindia.careers for more details.


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.