tag:blogger.com,1999:blog-31095935258412344902024-03-06T06:08:48.798+05:30CodeMutexCode MutexAnonymoushttp://www.blogger.com/profile/00647583687633301655noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-3109593525841234490.post-5204745667374364742015-10-31T02:03:00.001+05:302015-10-31T02:05:44.027+05:30New features in PHP5+ | PHP7<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-size: large;">New features in PHP5+ | PHP7</span><br />
<b><span style="font-size: large;"><br /></span></b>
PHP 7 is scheduled to be released on Nov 2015. So what are the new things that a PHP developer must learn to beat the heat of php. Starting from PHP 5.3 there are many new things that are added to PHP, some of them are explored below.<br />
<br />
1 <i>PHP 5.3</i><br />
<br />
<ol style="text-align: left;">
<li><a href="https://wiki.php.net/rfc/closures" target="_blank">Closures</a> - Closures and lambda functions can make programming much easier</li>
<li><a href="https://wiki.php.net/rfc/newinis" target="_blank">New INI files</a> - Two new INI files which will replace the current INI's packaged with PHP. One focused on production deployments and the other focused on development deployments.</li>
</ol>
<div>
2 <i>PHP 5.4</i></div>
<div>
<ol style="text-align: left;">
<li><a href="https://wiki.php.net/rfc/horizontalreuse" target="_blank">Traits</a> - Mechanism for code reuse in single inheritance languages such as PHP. It is intended to reduce some limitations of single inheritance by enabling a developer to reuse sets of methods freely in several independent classes living in different class hierarchies.</li>
<li><a href="https://wiki.php.net/rfc/shortsyntaxforarrays" target="_blank">Short array syntax</a> - [ ] === array()</li>
<li><a href="https://wiki.php.net/rfc/builtinwebserver" target="_blank">Builtin server</a> - php -S localhost:8000</li>
</ol>
</div>
<div>
3 <i>PHP 5.5</i></div>
<div>
<ol style="text-align: left;">
<li><a href="https://wiki.php.net/rfc/generators" target="_blank">Generators</a> - Generators provide an easy, boilerplate-free way of implementing iterators.</li>
<li><a href="https://wiki.php.net/rfc/finally" target="_blank">Finally keyword</a> - try catch finally </li>
</ol>
<div>
4 <i>PHP 5.6</i></div>
</div>
<div>
<ol style="text-align: left;">
<li><a href="https://wiki.php.net/rfc/phpdbg" target="_blank">Inbuilt debugger</a> - A PHP debugger</li>
<li><a href="https://wiki.php.net/rfc/pow-operator" target="_blank">Exponential operator</a> - **</li>
</ol>
<div>
5 <i>PHP 7.0</i></div>
</div>
<div>
<ol style="text-align: left;">
<li><a href="https://wiki.php.net/rfc/anonymous_classes" target="_blank">Anonymous classes</a> - Classes with no names</li>
<li><a href="https://wiki.php.net/rfc/combined-comparison-operator" target="_blank">Combined comparison(Spaceship) operator</a> - <=></li>
<li><a href="https://wiki.php.net/rfc/return_types" target="_blank">Return types</a> - Adds return types to functions, methods and closures</li>
<li><a href="https://wiki.php.net/rfc/isset_ternary" target="_blank">Null coalesce operator</a>- ??</li>
<li><a href="https://wiki.php.net/rfc/scalar_type_hints_v5" target="_blank">Scalar type hint</a></li>
</ol>
<div>
Note: For more insight checkout below links:</div>
</div>
<div>
<ul style="text-align: left;">
<li><span style="color: #333333; font-family: Arial, Helvetica, sans-serif;"><span style="font-size: 14px; line-height: 22px;"><a href="https://wiki.php.net/rfc" target="_blank">Php internal RFCs</a></span></span></li>
<li><span style="color: #333333; font-family: Arial, Helvetica, sans-serif;"><a href="http://chat.stackoverflow.com/rooms/11/php" target="_blank">Stackoverflow PHP chat room</a></span></li>
</ul>
<div>
<br /></div>
</div>
<div>
<br /></div>
</div>
Unknownnoreply@blogger.com0Jammu32.7266016 74.85702590000005332.512843600000004 74.534302400000058 32.9403596 75.179749400000048tag:blogger.com,1999:blog-3109593525841234490.post-29071298452765980492015-10-29T17:26:00.000+05:302015-10-29T21:26:02.082+05:30Installing Laravel 5.1 on Windows 8.1 | x64 | PhpStorm 9.0.2<div dir="ltr" style="text-align: left;" trbidi="on">
<b><span style="font-size: x-large;">Installing Laravel 5.1 on Windows 8.1 | x64 | phpStorm 9.0.2</span></b><br />
<br />
<br />
<span style="font-size: large;">Requirements:</span><br />
<br />
<ol style="text-align: left;">
<li>PHP 5.5.9 +</li>
<li>OpenSSL PHP Extension</li>
<li>PDO PHP Extension</li>
<li>Mbstring PHP Extension</li>
<li>Tokenizer PHP Extension</li>
<li>Composer <a href="https://getcomposer.org/doc/00-intro.md#installation-windows" target="_blank">Link</a></li>
</ol>
<div>
<br /></div>
<div>
<span style="font-size: large;">Installing Laravel:</span></div>
<div>
<span style="font-size: large;"><br /></span></div>
<br />
<div>
1.Type php composer create-project laravel/laravel --prefer-dist in your command prompt, you can use any directory.</div>
<div>
<div>
<br /></div>
<div>
2.Open the "config" folder in Laravel app and open the "app.php" look at 'key' => env('APP_KEY', 'SomeRandomString'),</div>
<div>
in "SomeRandomString" put any string of size 32. </div>
<div>
<br /></div>
<div>
<span style="font-size: large;">Running Laravel:</span></div>
<div>
<br /></div>
<div>
On your terminal under Laravel folder type php -S localhost:8000 -t 'public'</div>
<div>
It will show you</div>
<div>
<br /></div>
<div>
PHP 5.6.3 Development Server started at Thu Oct 29 16:49:25 2015</div>
<div>
Listening on http://localhost:8000</div>
<div>
Document root is C:\xamppPhp56\htdocs\Laraval\blog\public</div>
<div>
Press Ctrl-C to quit.</div>
<div>
<br /></div>
<div>
You can now open the http://localhost:8000</div>
<div>
<span style="font-size: large;"><br /></span></div>
<div>
<span style="font-size: large;">Output:</span></div>
</div>
<br />
<div>
<span style="font-size: large;"><br /></span></div>
<div>
<b><span style="font-size: large;"><br /></span></b></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKeJdDwx_9AHMk3d5m1ceAVVApGPCptjP20cjummdA2tGRzs4EyQtNmtNNSO9qHBiIswKq10k1Z0SY1OgmuybTbfHLuj_RuXTbYsdiXwJPcbox4o2XNhiPJpgX0PxBQfrJc_ZGjNWH-L41/s1600/Laravel.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="179" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKeJdDwx_9AHMk3d5m1ceAVVApGPCptjP20cjummdA2tGRzs4EyQtNmtNNSO9qHBiIswKq10k1Z0SY1OgmuybTbfHLuj_RuXTbYsdiXwJPcbox4o2XNhiPJpgX0PxBQfrJc_ZGjNWH-L41/s320/Laravel.jpg" width="320" /></a></div>
<br />
<span style="font-family: 'Gotham Book', Helvetica, Arial, sans-serif; font-size: 13px; line-height: 20px; white-space: pre-line;"> ❤ U</span></div>
Unknownnoreply@blogger.com0Subash Nagar, Jammu32.7449706 74.84559579999995532.7382931 74.835510799999952 32.751648100000004 74.855680799999959tag:blogger.com,1999:blog-3109593525841234490.post-18935719064492151992014-12-15T00:57:00.000+05:302014-12-15T00:57:45.472+05:30Installing android SDK on Windows 8.1(X64).<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="http://developer.android.com/images/tools/studio-logo_2x.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://developer.android.com/images/tools/studio-logo_2x.png" height="110" style="background: #222222;" width="320" /></a></div>
<div>
<span style="color: orange; font-family: Verdana, sans-serif; font-size: x-large;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;">In this very first post we will be installing <a href="http://developer.android.com/sdk/index.html" rel="nofollow" target="_blank">Android sdk</a> ,the installation is pretty simple just head over to the official site for Android sdk and download the <a href="https://dl.google.com/dl/android/studio/install/1.0.1/android-studio-bundle-135.1641136.exe" rel="nofollow" target="_blank">bundle</a>(Android Studio+Sdk) [828 Mb].The download would take time.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;">After downloading the bundle ,there are some steps that must be performed in order to run and work with the Studio[1].</span><br />
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span>
<span style="font-family: Trebuchet MS, sans-serif;">a)Install <a href="http://download.oracle.com/otn-pub/java/jdk/8u25-b18/jre-8u25-windows-x64.exe" rel="nofollow" target="_blank">JRE</a> 8(Java Runtime Environment) and <a href="http://download.oracle.com/otn-pub/java/jdk/8u25-b18/jdk-8u25-windows-x64.exe" rel="nofollow" target="_blank">JDK</a> 8(Java Development Kit).</span><br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<span style="font-family: Trebuchet MS, sans-serif;">b)Install the Bundle executable with admin rights(Right click &</span><span style="font-family: Trebuchet MS, sans-serif;">select install as admin</span><a href="http://i.imgur.com/28YHWv7.jpg" imageanchor="1" style="font-family: 'Trebuchet MS', sans-serif; margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="http://i.imgur.com/28YHWv7.jpg" width="15px" /></a><span style="font-family: 'Trebuchet MS', sans-serif;">).</span><br />
<span style="font-family: 'Trebuchet MS', sans-serif;"><br /></span>
<span style="font-family: 'Trebuchet MS', sans-serif;">c)After the installation is completed you will have the Android studio with sdk installed on your system.</span><br />
<span style="font-family: Trebuchet MS, sans-serif;">d)Select the SDK Manager(<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWCbLODcAmjBQx8135Ckn8eQ8mCP5wrxvVT1CKZAuX2srRtxV2XZlgd4_SYEI6EC-ifLrUrc6AzTkGZUIUIhyR3dvLQKr5HvX72cYhgS0cPKD7yrR0s-JOgakpqRnuQU6dw91xl9QuetYd/s1600/SDK_MANGER+Icon.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWCbLODcAmjBQx8135Ckn8eQ8mCP5wrxvVT1CKZAuX2srRtxV2XZlgd4_SYEI6EC-ifLrUrc6AzTkGZUIUIhyR3dvLQKr5HvX72cYhgS0cPKD7yrR0s-JOgakpqRnuQU6dw91xl9QuetYd/s1600/SDK_MANGER+Icon.png" /></a>) from the Tools Menu.</span></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;">e)Check the Android SDK Tools,Platform-tools,Build-tools (1st three) from the Tools.</span></div>
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;"> Check the SDK Platform, Intel X86 Atom_64 System Image from Android 5.0(API 21).</span></div>
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;"> Check the Intel X86 Emulator Accelerator(HAXM installer).</span></div>
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;">f)You can install other tools as well but these are the bare essential for starting with Android developing.</span></div>
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<br /></div>
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;">The installation would take time,if everything works fine you would have working developing environment for creating Android applications.</span></div>
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif; font-size: x-small;">[1] <a href="http://tools.android.com/knownissues" rel="nofollow" target="_blank">tools.android.com/knownissues</a></span></div>
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
<div style="text-align: left;">
<span style="font-family: Trebuchet MS, sans-serif;"><br /></span></div>
</div>
Unknownnoreply@blogger.com0Subash Nagar, Jammu32.7449706 74.84559579999995532.7449706 74.845595799999955 32.7449706 74.845595799999955