All Entries in the "PHP" Category
Beta Version of Zend Application Server released
Zend Server Zend Server is a commercial, enterprise-ready Web Application Server that is designed for running and managing business-critical PHP applications in production. It includes advanced performance optimization, application monitoring and application problem diagnostic capabilities. Zend Server users receive comprehensive technical support, software updates, hot fixes, and security patches. Packages for Linux,windows and Mac Avalable [...]
How to deploy Symfony project using sync or rsync
install rsync http://trac.symfony-project.org/wiki/SymfonySyncOnWindows Download rsync and extract it to c:\windows\system32 Then run the command symfony project:deploy production Using rsync for Incremental File Transfer Uploading the whole project again and again is little irritating .. ! It is wastage of time bandwidth and money . We can reduce this by using rsync .If you want to [...]
HTTP REDIRECT
PHP Redirect <?php header(“Location: http://www.example.com/”); /* Redirect browser */ /* Make sure that code below does not get executed when we redirect. */ exit; ?> Javascript Redirect <script type=”text/javascript”> <!– window.location = “http://www.arunrajr.com/” //–> </script>
Ready to use Error handling class in your hosted php application
Hello Friends, I have wriiten a class for error reporitng in a php web application. It is a ready made one.. you have to provide your email id. If you work in localhost it will provide you error in the same page as it occur but in hosted application the client will only get a [...]
Export Database to Excel or CSV File
The below code help you to export data from database to csv file exporttoxls To export a complete database, you should invoke all the tables via below code and apply the above code $dbname = ‘mysql_dbname’; if (!mysql_connect(‘mysql_host’, ‘mysql_user’, ‘mysql_password’)) { echo ‘Could not connect to mysql’; exit; } $sql = “SHOW TABLES FROM $dbname”; [...]
Simple Mail From PHP
Simple Email Program <?php $to = ‘nobody@example.com’; $subject = ‘the subject’; $message = ‘hello’; $headers = ‘From: webmaster@example.com’ . “\r\n” . ‘Reply-To: webmaster@example.com’ . “\r\n” . ‘X-Mailer: PHP/’ . phpversion(); mail($to, $subject, $message, $headers); ?> Email With MIME Content <?php // multiple recipients $to = ‘aidan@example.com’ . ‘, ‘; // note the comma $to .= [...]
How to call url from php using C-url :: alternative to file_get_contents()
This is a nice and simple substitute to get_file_contents() using curl, it returns FALSE if $contents is empty. <?php function curl_get_file_contents($URL) { $c = curl_init(); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); curl_setopt($c, CURLOPT_URL, $URL); $contents = curl_exec($c); curl_close($c); if ($contents) return $contents; else return FALSE; } ?> Then another question How to enable cURL in your server ? [...]
Project Management Tool in PHP under GPL:: DotProject
dotProject : the Open Source Project Management tool. dotProject is built using free open-source applications and is produced and maintained by a small, but dedicated group of volunteers. dotProject is programmed in PHP, and utilises MySQL for a backend database (although other databases such as Postgres could also be used). Our recommended server platform includes [...]



