Home » Posts tagged with "blog"
In this post i want to explain how to create rss feeds using php code and get the data from mysql table. It is very simple to develop and use.
Step 1 : Connect to database
We already discussed about how to connect database using php code.See the following code to connect database:
Code
12345678910<?php
DEFINE ('DB_USER', 'root');
DEFINE...
The following script to copy the text from remote url using php code.
<?php
$regex = '/]*>(.*<\/body>/smi';
/*END config, BEGIN html*/
$data = file_get_contents($siteName) or die('Cannot read ' . $siteName);
preg_match($regex, $data, $cleanData);
if(!empty($cleanData))
$data...
Filed in: PHP Code
Hi friends,
In our php application some times we want to highlight the source code to user friendly , so the following function helped you to highlight the source code.
12345678910111213<?php
if (!empty($_POST['text'])){
echo '<div style="border: solid 1px red; width:300px;height: 150px; padding: 20px; margin:...
Filed in: PHP Code
Hi, The following code will work, this functionality is use the external html content as email body. And send mails with neatly formatted html content using simple php mailer class.
PHP Code
123456789101112131415$mail = new PHPMailer();
$mail->IsMail();
$mail->Timeout = 360;
$mail->From = "";
$mail->FromName...
Filed in: PHP Code
Anil Kumar Panigrahi @ +91 - 9393033939
Contact me @ kumaranil21@gmail.com
My Domain @ http://www.anil2u.info
My Blog @ http://awesome-gallery.blogspot.com
Twitter @ http://www.twitter.com/anil2u
Professional Experience
Exposure to software design, development, implementation and maintenance of web applications, CMS Technologies, Shopping...
Filed in:




