Profile

Cover photo
Sohel Rana
Works at Preview Technologies Limited
Attended Dhaka Bigyan College
Lives in 20-21 Kathalbagan, Green Road, Dhaka-1205, Bangladesh
2,321 followers|179,725 views
AboutPostsPhotosYouTubeReviews

Stream

Sohel Rana
moderator

Tutorial & Tips  - 
 
Understanding of PHP Traits
Traits are something like a group or bundle of methods which you want to use within other classes to reduce code duplication
3
Add a comment...

Sohel Rana

Shared publicly  - 
 
What is Factory Method Design Pattern in PHP and basic implementation of Factory Method.
1

Sohel Rana

Shared publicly  - 
 
By default when you write something in ng-model directive (in an input field) then the ng-modal value is automatically changed. But if you want to make that changes happened after a task done. Then you need to modify this default behavior of ng-modal directive. To modify the default behavior of ng-modal directive you need to...Continue Reading
1

Sohel Rana
moderator

Tutorial & Tips  - 
 
To return an image as a request response by PHP you fpassthru function of PHP. I have included a sample code snippet, which will help you to understand how to do this. From the above code snippet, you can see I have opened an image with binary mode by fopen($image, ‘rb‘). And then send that with appropriate headers by header(“Content-Type: image/png”)...Continue Reading
3
Tomáš Holan's profile photoOleh Melnyk's profile photoPierluigi Natale's profile photo
3 comments
 

add:
$mimeType = mime_content_type($image);

change:
header("Content-Type: image/png");

with:
header("Content-Type: $mimeType");

so you can show every image type without know mime type before.
Add a comment...

Sohel Rana

Shared publicly  - 
 
100% W3C validated, full responsive, max google page speed score and SEO friendly car website templates for your car business. See live preview
1

Sohel Rana

Shared publicly  - 
 
Understanding of PHP Traits
Traits are something like a group or bundle of methods which you want to use within other classes to reduce code duplication
1

Sohel Rana
moderator

Tutorial & Tips  - 
 
What is Factory Method Design Pattern in PHP and basic implementation of Factory Method.
4
Add a comment...

Sohel Rana

Shared publicly  - 
 
To return an image as a request response by PHP you fpassthru function of PHP. I have included a sample code snippet, which will help you to understand how to do this. From the above code snippet, you can see I have opened an image with binary mode by fopen($image, ‘rb‘). And then send that with appropriate headers by header(“Content-Type: image/png”)...Continue Reading
1
Story
Tagline
PHP Programmer, Software Engineer & Technology lover
Introduction
It's Sohel Rana, a young passionate, creative, professional software engineer. Current I am working as a software engineer at Preview Technologies Limited
Education
  • Dhaka Bigyan College
    H.S.C, 2006 - 2008
  • Daffodil International University
    Computer Science and Engineering, 2009 - 2013
Basic Information
Gender
Male
Birthday
May 3
Relationship
Single
Other names
Rana, Sohel Rana, Shohel Rana
Work
Occupation
Software Engineer
Employment
  • Preview Technologies Limited
    Software Engineer, 2014 - present
    I am working as a Software Engineer at Preview Technologies Limited since 2014
  • oDesk
    Web Developer, 2009 - present
    I am working as a Freelance at oDesk since 2009
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
20-21 Kathalbagan, Green Road, Dhaka-1205, Bangladesh
Previously
155/A Green Road, Dhaka-1205, Bangladesh
Contact Information
Home
Phone
01721137958
Email
Address
20-21 Kathalbagan, Green Road, Dhaka -1205, Bangladesh
Work
Phone
+8801914467456
Mobile
+8801721137958
Email
Skype
sohelrana_11
Address
196 Green Road, Dhaka -1205, Bangladesh
1 review
Map
Map
Map