<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>PHP on Jamshid Hashimi</title><link>https://jamshidhashimi.com/categories/php/</link><description>Recent content in PHP on Jamshid Hashimi</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Fri, 12 Apr 2013 09:35:18 +0000</lastBuildDate><atom:link href="https://jamshidhashimi.com/categories/php/rss.xml" rel="self" type="application/rss+xml"/><item><title>Dynamically Add Javascript and CSS Files in CodeIgniter Header Page</title><link>https://jamshidhashimi.com/dynamically-add-javascript-and-css-files-in-codeigniter-header-page/</link><pubDate>Fri, 12 Apr 2013 09:35:18 +0000</pubDate><guid>https://jamshidhashimi.com/dynamically-add-javascript-and-css-files-in-codeigniter-header-page/</guid><description>Those who are developing web projects know that, header pages are always the constant file of their template folder. The classic way of using a header page in small projects are to fill it with constant JavaScript and CSS files along with html tags and use it in inside functions where you need.</description></item><item><title>Redirect users to custom page with notification</title><link>https://jamshidhashimi.com/redirect-users-to-custom-page-with-notification/</link><pubDate>Sun, 24 Jun 2012 16:52:27 +0000</pubDate><guid>https://jamshidhashimi.com/redirect-users-to-custom-page-with-notification/</guid><description>In form registrations, and form operations which consists insert, update and delete actions; we often need to redirect user after a successful/unsuccessful operation(s).
To inform user about the fail or success of operations, you can set flash messages, which you can set manual messages for any operations you want.</description></item><item><title>How to detect HTTPS SSL</title><link>https://jamshidhashimi.com/how-to-detect-https-ssl/</link><pubDate>Mon, 03 Oct 2011 07:30:31 +0000</pubDate><guid>https://jamshidhashimi.com/how-to-detect-https-ssl/</guid><description>You can detect HTTPS with the code line below in PHP
if (!isset($_SERVER[&amp;#39;HTTPS&amp;#39;]) || $_SERVER[&amp;#39;HTTPS&amp;#39;] != &amp;#39;on&amp;#39;){//Your code here}</description></item><item><title>Image upload with Codeigniter</title><link>https://jamshidhashimi.com/image-upload-with-codeigniter-2/</link><pubDate>Tue, 14 Jun 2011 08:48:27 +0000</pubDate><guid>https://jamshidhashimi.com/image-upload-with-codeigniter-2/</guid><description>Create upload.php file inside controller, copy and past the following code into. Also create an ‘uploads’ folder inside the codeigniter root folder. &amp;lt;?php//Author: Jamshid HASHIMIclass Upload extends CI_Controller{function __construct(){parent::__construct();$this-&amp;gt;load-&amp;gt;helper(&amp;#39;form&amp;#39;);$this-&amp;gt;load-&amp;gt;helper(&amp;#39;url&amp;#39;);} function index(){$this-&amp;gt;load-&amp;gt;view(&amp;#39;upload_view&amp;#39;);}//Upload Image functionfunction uploadImage(){$config[&amp;#39;upload_path&amp;#39;] = &amp;#34;uploads/&amp;#34;;$config[&amp;#39;allowed_types&amp;#39;] = &amp;#34;gif|jpg|jpeg|png&amp;#34;; $config[&amp;#39;max_size&amp;#39;] = &amp;#34;5000&amp;#34;;$config[&amp;#39;max_width&amp;#39;] = &amp;#34;1907&amp;#34;;$config[&amp;#39;max_height&amp;#39;] = &amp;#34;1280&amp;#34;;$this-&amp;gt;load-&amp;gt;library(&amp;#39;upload&amp;#39;,$config);if(!</description></item></channel></rss>