Category Archives: Uncategorized

How To Check Valid or Invalid URL:PHP

<?php

if(isset($_POST[‘check’]))
{

$web= test_input($_POST[“web”]);
if(!preg_match(“/\b(?:(?:https?|ftp):\/\/|www\.)[-a-z0-9+&@#\/%?=~_|!:,.;]*[-a-z0-9+&@#\/%=~_|]/i”,$web))
{

$Err = “Invalid URL”;
}
else
{
echo “valid URL”;
}
}

?>

<html>
<body>
<form method=”post” action=””>
<table>
<tr>
<td>Enter URL</td>
<td><input type=”text” name=”web”/></td>
</tr>
<tr>
<td><input type=”submit” name=”check” value=”check url”/></td>
</tr>
</table>
</form>
</body>
</html>

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.

How To Include Files Without Using Include/Require

It is one of the magical method(method which doesnot needs to be get called) which simplify the programmer job by including classes automatically without using number of include statements.

Let us understand it through a program :

<?php

function _autoload($classname){

require_once $classname.’.php’;

}

$obj=new mysqli();

?>

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.

Create PDF files in PHP without PDFlib library

If you want to generate PDF files with PHP code you have to use FPDF which is a PHP class,it allows you to create pdf files without using PDFlib library.

<?php
require(./fpdf.php’);

$pdf=new FPDF();
$pdf->AddPage();
$pdf->SetFont(‘Arial’,’B’,16);
$pdf->Cell(40,10,’Hello World!’);
$pdf->Output();
?>

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.