Tag Archives: SynapseIndia Feedback

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.

<?php
class demo {

private $name;

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

}

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

$ob1->setName(xyz);
$ob2->setName(mnp);

?>

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.

PHP CODE TO CREATE GUEST BOOK

Step 1: Create one table in database

CREATE TABLE IF NOT EXISTS `guestbook` (
`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),
PRIMARY KEY (`id`)
) ENGINE=MyISAM;
Step 2:PHP and HTML Code Together

<?php
// get visitor IP
function getVisitorIP() {
$ip = “0.0.0.0”;
if( ( isset( $_SERVER[‘HTTP_X_FORWARDED_FOR’] ) ) && ( !empty( $_SERVER[‘HTTP_X_FORWARDED_FOR’] ) ) ) {
$ip = $_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’]))) {
$ip = $_SERVER[‘REMOTE_ADDR’];
}
}
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>
<p>{$aInfo[‘description’]}</p>
</div>
EOF;
}
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;
exit;
}
}
echo 1;
exit;
}

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

ob_start();
?>
<div class=”container” id=”records”>
<div id=”col1″>
<h2>Guestbook Records</h2>
<div id=”records_list”><?= $sRecords ?></div>
</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 },
function(data){
if (data != ‘1’) {
$(‘#records_list’).fadeOut(1000, function () {
$(this).html(data);
$(this).fadeIn(1000);
});
} else {
$(‘#warning2′).fadeIn(2000, function () {
$(this).fadeOut(2000);
});
}
}
);
} else {
$(‘#warning1′).fadeIn(2000, function () {
$(this).fadeOut(2000);
});
}
};
</script>

<form onsubmit=”submitComment(this); return false;”>
<table>
<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” />
</td></tr>
</table>
</form>
</div>
</div>

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

<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>
<![endif]–>
<script src=”http://code.jquery.com/jquery-latest.min.js”></script>
</head>
<body>
<?= $sGuestbookBlock ?>
<footer>
<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>
</footer>
</body>
</html>

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.

 

HOW TO UPLOAD A FILE IN PHP

Uploading is a process of transfering (data) from one computer to another, typically to one that is larger or remote from the user or functioning as a server.

Lets understand it by writting a PHP code for uploading a file:

<?php
if(isset($_FILES[‘image’])){
$errors= array();
$file_name = $_FILES[‘image’][‘name’];
$file_size =$_FILES[‘image’][‘size’];
$file_tmp =$_FILES[‘image’][‘tmp_name’];
$file_type=$_FILES[‘image’][‘type’];
$file_ext=strtolower(end(explode(‘.’,$_FILES[‘image’][‘name’])));

$expensions= array(“jpeg”,”jpg”,”png”);

if(in_array($file_ext,$expensions)=== false){
$errors[]=”extension not allowed, please choose a JPEG or PNG file.”;
}

if($file_size > 2097152){
$errors[]=’File size must be excately 2 MB';
}

if(empty($errors)==true){
move_uploaded_file($file_tmp,”images/”.$file_name);
echo “Success”;
}
else{
print_r($errors);
}
}
?>
<html>
<body>

<form action=”” method=”POST” enctype=”multipart/form-data”><input type=”file” name=”image” />

<input type=”submit”/></form></body></html>

One can also use the concept of switch cases for implementing the above code.

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.

Facebook Invents A PHP Virtual Machine Like Java Virtual Machine

Social networking giant Facebook has taken another step at making the PHP Web programming language run more quickly. The company has developed a PHP Virtual Machine that it says can execute the language as much as nine times as quickly as running PHP natively on large systems.

 “Our goal is to make PHP run really, really quickly,” said Joel Pobar, a Facebook engineering manager. Facebook has been using the virtual machine, called the HHVM (HipHop Virtual Machine), across all of its servers.HHVM is not Facebook’s first foray into customizing PHP for faster use. PHP is an interpreted language, meaning that the source code is executed by the processor directly. SynapseIndia CEO Shamit Khemka also mentions that programs written in interpreted languages such as PHP tend not to run as quickly as languages, such as C or C++, that have been compiled beforehand into machine language byte code. Facebook has remained loyal to PHP because it is widely understood by many of the Web programmers who work for the company.

To keep up with the insatiable user demand, however, Facebook originally devised a compiler, called HipHop, that would translate PHP code into C++, so it then it could be compiled ahead of time for faster performance.

While Facebook enjoyed considerable performance gains of this first version of HipHop for several years, it sought other ways to speed the delivery of the dynamically created Web pages to its billion or so users. “Our performance strategy for that was going to tap out,” Pobar admitted.

HHVM is the next step for Facebook. Under development for about three years, HHVM actually works on the same principle as the JVM (Java Virtual Machine). HHVM has a JIT (just-in-time) compiler that converts the human readable source code into machine-readable byte code when it is needed.

Employees at SynapseIndia work with motto to provide client satisfaction without giving them any chance to complaints in any cases

Dynamic Languages 2015

IT’s rise to prominence as a core competence that delivers competitive advantage has been accompanied by a dramatic increase in the number of software development projects it must complete. Shamit Khemka being well aware of the hidden costs of unfulfilled tasks, enterprise IT managers are fast shedding their prejudices against dynamic languages in search of a quick way to cut down the backlog.

Yet banging out “quick and dirty” code just to finish a project remains an ill-advised way to incorporate dynamic languages into the enterprise development mix. Not only does such an approach give rise to maintenance headaches ,not to mention the increasing importance of delivering secure apps — mean that enterprises can no longer afford to accept the risks that quick-fix coding creates. By taking a measured approach to matching dynamic languages to the right kinds of projects, IT can tap the unique expressiveness of dynamic languages to create clean, reliable, and reusable code — and thereby realize productivity benefits without compromising the integrity of the enterprise.

SynapseIndia CEO Shamit Khemka Says: PHP is one of the top dynamic scripting language gaining acceptance in the enterprise. Generally embedded in Web pages to display dynamic content, PHP enables very extensive applications to run on a Web server. Many of today’s Web apps are in fact written in PHP because it is lightweight (compared to Java) and can be learned and deployed easily. Its comparatively intuitive syntax, however, has led to the view that PHP programs are of the quick-and-dirty variety, with equal emphasis on both traits. However, PHP is moving up the enterprise fast. Zend, the principal vendor of PHP technologies, recently announced large deals with various government entities in the United States and abroad.

SynapseIndia is a leading website and PHP development company. They have more than 500 full time professionals and all the experts at SynapseIndia working in tandem to achieve good feedback from clients. They have already delivered more than 3000 thousand projects and SynapseIndia has achieved better reviews on Glassdoor. They pass on complete quality solutions for website development services and getting good Reviews on various SynapseIndia PHP Web development projects.

SynapseIndia is successfully growing with 5 Star Feedback from all Clients Globally

SynapseIndia, the leading IT services provider company in India, is one of the fastest growing IT company with excellent feedbacks & reviews from clients across the world. The growth of SynapseIndia over the period of last 15 years has been recognized globally with more than 3,500+ successfully completed projects & friendly working environment.

A client who picked SynapseIndia for PHP Website improvement work says, “Very competent in wide range: PHP, OSCommerce, Server Config, Gateway Setup …etc.” Another client outsourced CodeIgniter work commented as “Excellent work by SynapseIndia with results provided as per the commitment.”

As per SynapseIndia’s CEO Shamit Khemka, “It has been outstanding journey towards success. It is our talented employees who made us achieve the leading position & retain it through their innovative work. Over the past 15 years, the organization has gone through the many new changes to enhance the quality of our services & processes more and more. As the company embraces and encourages change for good, it prizes perpetuity in its mission and core values to create a perfect life balance for employees.”

Also, a client who hired the company twice for development & enhancements of their online store build in Magento, commented – “Very professional. My second time working with SynapseIndia and it has been worry free both times. I will definitely use them again and recommend to anyone who needs an eCommerce website.

A client benefitted by .Net Framework consulting services by SynapseIndia says, “Very professional team with sound knowledge of .Net, helped us in making decisions on implementing custom features. They were available to talk regularly and helped move our project along in a timely manner. I would work with them again.

Client who picked the company for their Web Application on MS Sharepoint upgradation provided feedback – “Great job. We are very happy with the redesign of our application. Now, we plan to rehire SynapseIndia to continue with the next phase of the website redesign with them.”

Another client in the list who hired SynapseIndia for MS Dynamic CRM based Aviation Fuel ordering online system, reviewed company on outsourcing website & commented, “Very Professional and good quality of work delivered by SynapseIndia”.

SynapseIndia offers a wide array of services related to website & mobile application development. Right from web design & development for your business to mobile application development, eCommerce solutions & online marketing, they take all the responsibilities. Skilled teams at SynapseIndia keep themselves updated about most recent technologies & platforms. They develop top notch IT solution by making use of cutting edge technologies including PHP, .Net, Magento, Shopify, MS, Cloud and some more.

A client who took the services for the job of Shipping and Transports Website’s mobile app built for Android & iOS versions, commented about SynapseIndia – “ SynapseIndia are certainly in the top 1% for Mobile application development, they were higher in price than every other company, but they clearly had the background to complete the site. They acted professionally when dealing with a client that can be difficult. Bottom line though, they provided a top shelf site on final delivery. I highly recommend SynapseIndia. When they take the job, they have the ability and the team to complete the job.

Client of SynapseIndia for SQL server and ASP.net based project reviewed with comment – “I had a good experience working with SynapseIndia.”

SynapseIndia is recruiting more number of employees to meet the rising demand for its services. The company is investing in additional manpower as the economy and its business fortunes continue to improve in 2015.

Client picked SynapseIndia for Bootstrap Template to include GridView on ASP.net web portal, appreciated the developers and commented – “Good Developers updated with the latest technology trends who provided regular consultation without being asked for to improve my business.

Following CMMI processes, SynapseIndia has built a transparent evaluation system based on employee’s performance wherein immediate reporting person of every employee add ratings and comments every month. These rating and comments should be accepted/approved by employee which is not available in any other company. There are several parameters on which an immediate reporting person evaluates the performance of each of his/her team member which is a full proof method and transparent for everyone.

“Technology has become so much more flexible and immediate in today’s time which brings out great benefits for all our clients and also keeps costs down for business.” CEO Shamit Khemka added.

Apart from development related works, an SEO client who hired SynapseIndia to improve their Online brand reputation, says, “Our initial experience working with SynapseIndia is great as their complaint management team has really benefitted our online business & we are definitely moving forward with this company!

Employees at SynapseIndia work with motto to provide client satisfaction without giving them any chance to complaints in any cases. Effective Strategies & friendly work environment that embraces to its learning culture and offers various growth opportunities to its employees makes it a popular company to work for.

PHP gets its own formal language specification

PHP scripting language, a critical cog in Web development, codifies its semantics and syntax to minimize divergence. SynapseIndia CEO Shamit Khemka also adds that although the PHP scripting language has been around since 1995 and is a staple of Web development, it does not actually have a formal language specification – just extensive user documentation. But that is all set to change.

“The next major version of PHP – PHP7 – is in the works, and in order to ensure full compliance with existing PHP scripts it’s important to know what is expected from the engine,” said Facebook’s Sara Golemon, who participated in the development of the specification. “Additionally, with alternative implementations like HHVM coming on the scene, it’s important to keep divergence to a minimum, again by understanding what a well-behaved engine looks like.”

The PHP Group, which includes PHP founder Rasmus Lerdorf as well as Andi Gutmans, CEO of tools vendor Zend Technologies, is overseeing the specification. The group also conducts the php.net website, the principal site for PHP’s development. Making changes to the specification will require a php.net account.

Facebook’s HHVM, formerly known as HipHop Virtual Machine, was built with the intention of making PHP run fast. Feedback from various SynapseIndia clients who got their PHP platform build on HHVM is great and looks promising. The planned specification will make sure HVVM is a fully compatible implementation for PHP, Golemon said. “For example, the conformance suite we released along with the spec shows HHVM failing a number of edge cases. By having that signal, we can bring HHVM more in line with PHP.”

Next up for the specification are improving wording, correcting edge cases, and boosting the conformance suite. “In the long term, this document will be developed alongside the PHP implementation to document new syntax in a formal manner, such as the recent addition of the pow operator, variadics, and splat,” Golemon said.

Check out latest SynapseIndia Recruitment plan for PHP developers at various positions.

Is PHP The Best Programming Language?

SynapseIndia has received great reviews for their PHP web development projects. Talking about advantages of PHP, SynapseIndia CEO Shamit Khemka says that there are plenty of web programming languages out there, including ColdFusion, Microsoft .NET (or ASP), Java, and many others, that you probably have heard before. With all these options available, you must be wondering – so why PHP?

While it is true that most of these server-side scripting languages can deliver same types of thing, PHP still offers several advantages.

Here are some of the main positive points as to why PHP could be the best programming language:

PHP is Open Source –
One of the reasons why PHP is still the best scripting language is because it is an open source and widely used script. Many web applications and frameworks are developed using scripts, and PHP immediately spread through those applications.

PHP & MySQL Combination is Great – It also works great with MySQL (which is also open source).

PHP is Cost-Friendly –
Hosting PHP apps are much cheaper than others, for example JSP. Most websites you see on the Internet are developed in PHP and they are available for you to use it for free. Its web server (Apache) is also free. The best database to work really well with PHP is MySQL, which is again free and open-source. Taking feedback from employees working in SynapseIndia PHP team, we can conclude that PHP has gain tremendous popularity over the years, there are also host of large companies that can host PHP based site and applications. Most other languages are a bit more specialized, and hence, it could cost more if you were developing a site or app using their technology. On the other hand, PHP is completely free of restriction to be used in whatever way you feel the need. That means there is no need for expensive servers, no expensive or ongoing licensing fees, and no expensive programming staff to keep your system alive and kicking.

PHP Builds MORE Interactive Apps –
There are tons of libraries developed by its lovers so that you can create enhanced and interactive web-based applications on your own, at ease.

PHP is MORE Accessible –
It is very accessible because it is free and open source. Initially, it was frustrating installing PHP manually with apache web server and MySQL. Now, with WAMPP and XAMPP, life has become very easy. There are also wonderful software products developed using PHP like WordPress, Joomla, Drupal, sugarCRM, Oscommerce, and many others.

PHP Delivers Instant results –
Another reason why PHP is best language is because you can see instant results. There is no compiling and debugging takes less time than other scripting languages.

What Benefits Offered by PHP Make it So Popular?

With the developing need of web development services, Hypertext Preprocessor or PHP has flared its predominance. This broadly useful programming language is generally utilized for creating dynamic websites. Inferable from a few advantages of PHP, it is utilized as a part of more than 20 million sites and discovers application in more than a million of web servers. Custom web development is simpler with PHP, and the language is accessible with various open source development platforms, for example, OS Commerce, Zen Cart, Magneto, Joomla, WordPress and some more. PHP Website Development services to make dynamic website pages and different other web solutions, for example, web timetables, shopping carts, CMS and that’s just the beginning. Because of the way that PHP language has an inbuilt memory development, it never over-burdens the servers, rather upgrade the handling speed of the servers.

PHP can be effectively implanted into HTML and dynamic visual applications like Flash, Ajax can be effortlessly incorporated with PHP. This records for further ubiquity of PHP Web development services. Backing to a few databases like Oracle, Informix, MySQL and so on likewise makes PHP the most utilized programming language. A PHP based site obliges less code utilization and gloat a memory building alternative of its own. Building external item codes is exceptionally uncommon in PHP based applications.

Today, the majority of the business houses select PHP Website Development as it serves to chop down both the time and the exertion of making an alluring site. PHP is good with all the operating systems and can likewise be utilized to make client side GUI applications.

A PHP based application is easy to work upon. Barely any external modules are obliged to run program, rather, can be executed entirely by the server, obliging nothing from the end clients.

The scripting language can be effortlessly incorporated in different element visual applications, for example, Flash and Ajax and the PHP library permits production of some lovely graphical impacts. Moreover, PHP site advancement is practical. PHP is accessible free of expense (under PHP General Public License)

Various plans of SynapseIndia Recruitment for PHP development indicates that organization is going to hire more number of PHP professionals in coming time. SynapseIndia PHP developments never received complaints from clients, In fact great reviews have been provided to many PHP developers by them.

Good Reviews on various SynapseIndia PHP Web development projects tell about the potential and quality of work that employees have. SynapseIndia is working in tandem to achieve good feedback from clients.

Tips to Find Right Mobile Application Developer for your Organization

Smart phones now offer an easy and simple way of reaching out to customers for businesses, attracting new and maintaining a relationship with the already existing customers. As a business, to maximize your reach through mobile phones you can either choose a mobile version of your website or a mobile application. For this, you’ll need to contract with a proficient mobile developer. Below mentioned are a few tips to help you make the right decision while contracting an app developer.

1) Avoid settling for the first developer you find. The thought could be exciting to get your first mobile application ready and running yet it will be all the more compensating if you take the time to find the most suitable developer. An online research will help you know your options and give you an opportunity to look at developers before picking the one you feel is most ideal programmer for the employment. Talk about the expectations you have openly and gage the information and experience of your developer before settling on a choice.

2) Choose a developer with sound knowledge in app development. For example, a qualified engineer will know everything there is about the diverse working frameworks like IOS and Android and Windows. If you are searching resource for the development of an IOS application, then make sure he has sound knowledge of XCode development, limitations and Apple developer guidelines to verify the application is adequate. For Android, a programmer obliges focus on JAVA programming language.

3) Consider how flexible your developer is before employing the services. Other than having the sound knowledge of application platforms, web practices, for example, database CSS and PHP are likewise imperative. You additionally should make certain that developer can make an application that will suit all screen types and sizes with no issues.

4) Track the work progress with the purpose that you have a planned way to get the best results. Before all else, you can request that be taken through the development process so you know what to expect. Along these lines, you will likewise have the ability to know when something is not going as planned. Pick a developer who is composed in the development approach so you can have an effective mobile application ready within pre-decided timeline.

SynapseIndia research & development studied cases of Mobile apps changes. The organization is counted as one of the best mobile app development services providers in India. SynapseIndia crafted a new feedback form for better hiring suggestions.

Besides excellence in work, SynapseIndia provides transparency to employee with their performance reviews. The organization offers top class employee benefits. SynapseIndia ensures to protect employee from abuse at work.