
Full Details : http://www.anil2u.info/2010/12/31/3-steps-to-implement-mobile-version-of-your-blog/
http://localhost/oscommerce/shop/We may get errors at this point, suppose we are run oscommerce shop in a sub folder then we have to think that how to configure this file to run the site success . Follow below points to configure file to run the shop at your localhost or site.
The following script is for how sending mails using php code.
1) Download php classes from below url
http://sourceforge.net/projects/phpmailer/files/phpmailer%20for%20php5_6/
2) Place in your application www/yourapplication/
those files are class.phpmailer.php and class.smtp.php
3) Now take a another php file to send the mails.
require(“class.phpmailer.php”);
require(“class.smtp.php”);// including files in your send mail file.
$mail = new PHPMailer(); // create a object to that class.
$mail->IsMail();
$mail->Timeout = 360;
$mail->Subject = ‘Test Subject’;
$from = ‘Anil Labs’;
$mail->From = ‘mail@yourdomain.com’;
$mail->FromName = ‘Anil Labs’;
$mail->AddReplyTo(‘mail@yourdomain.com’, $from);
$to = ‘user@somedomain.com’;
$mail->AddAddress($to, “”);
$mail->Body = “<html>
<head><title></title>
</head>
<body>
Test Message
</body>
</html>”;
$mail->IsHTML(true);
$mail->Send();
Then it will sends the mail to particular email-id.
http://www.yourdomain.com/node/1
http://www.yourdomain.com/aboutus
1) Administrator -> Site building -> URL aliases
2) Click on Add alias – then it go to form admin/build/path/add
3) Give the Existing system path like:
node/1
to Path alias:
aboutus
In the following function will create thumbnails in codeigniter.
? >function _createThumbnail($fileName) {
$config['image_library'] = ‘gd2′;
$config['source_image'] = ‘uploads/’ . $fileName;
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 75;
$config['height'] = 75;$this->load->library(‘image_lib’, $config);
if(!$this->image_lib->resize()) echo $this->image_lib->display_errors();
}
Call the above function like :
? >$this->_createThumbnail($fInfo['file_name']);
After creation of thumbnail clear the caches.
? >$this->image_lib->clear();
Hope that it will be useful.
function remW( $content )?>
{
$content = trim(ereg_replace(“\n|\r|\r\n|\n\r”, ”, preg_replace(‘/\s+/’, ‘ ‘, $content)));
return $content;
}
<documenttype id=”PHP_MySQL” servermodel=”PHP MySQL” internaltype=”Dynamic” winfileextension=”php,php3,php4,php5l” macfileextension=”php,php3,php4,php5″ file=”Default.php” writebyteordermark=”false”>
<documenttype id=”PHP_MySQL” servermodel=”PHP MySQL” internaltype=”Dynamic” winfileextension=”php,php3,php4,php5,inc,module,ctp,thtml” macfileextension=”php,php3,php4,php5,inc,module,ctp,thtml” file=”Default.php” writebyteordermark=”false”>