Home | Looking for something? Sign In | New here? Sign Up | Log out
Showing posts with label Windows 8. Show all posts
Showing posts with label Windows 8. Show all posts

Thursday, August 14, 2014

How to Install PHP on Windows

Hopefully, you now have a working local installation of Apache on your Windows PC. In this article we will install PHP 5 as an Apache 2.2 module.

Why PHP?

PHP remains the most widespread and popular server-side programming language on the web. It is installed by most web hosts, has a simple learning curve, close ties with the MySQL database, and an excellent collection of libraries to cut your development time. PHP may not be perfect, but it should certainly be considered for your next web application. Both Yahoo and Facebook use it with great success.

Why Install PHP Locally?

Installing PHP on your development PC allows you to safely create and test a web application without affecting the data or systems on your live website. This article describes PHP installation as a module within the Windows version of Apache 2.2. Mac and Linux users will probably have it installed already.

All-in-One packages

There are some excellent all-in-one Windows distributions that contain Apache, PHP, MySQL and other applications in a single installation file, e.g. XAMPP (including a Mac version), WampServer and Web.Developer. There is nothing wrong with using these packages, although manually installing Apache and PHP will help you learn more about the system and its configuration options.

The PHP Installer

Although an installer is available from php.net, I would recommend the manual installation if you already have a web server configured and running.

Manual Installation

Manual installation offers several benefits:
  • backing up, reinstalling, or moving the web server can be achieved in seconds (see 8 Tips for Surviving PC Failure) and
  • you have more control over PHP and Apache configuration.

Step 1: download the files

Download the latest PHP 5 ZIP package from www.php.net/downloads.php
As always, virus scan the file and check its MD5 checksum using a tool such as fsum.

Step 2: extract the files

We will install the PHP files to C:php, so create that folder and extract the contents of the ZIP file into it.
PHP can be installed anywhere on your system, but you will need to change the paths referenced in the following steps.

Step 3: configure php.ini

Copy C:phpphp.ini-recommended to C:phpphp.ini. There are several lines you will need to change in a text editor (use search to find the current setting).
Define the extension directory:
extension_dir = "C:phpext"
Enable extensions. This will depend on the libraries you want to use, but the following extensions should be suitable for the majority of applications (remove the semi-colon comment):

extension=php_curl.dll
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo.dll
extension=php_pdo_mysql.dll
extension=php_xmlrpc.dll
If you want to send emails using the PHP mail() function, enter the details of an SMTP server (your ISP’s server should be suitable):

[mail function]
; For Win32 only.
SMTP = mail.myisp.com
smtp_port = 25

; For Win32 only.
sendmail_from = my@emailaddress.com

Step 4: add C:php to the path environment variable

To ensure Windows can find PHP, you need to change the path environment variable. From the Control Panel, choose System, (then “Advanced system settings” in Vista), select the “Advanced” tab, and click the “Environment Variables” button.
Scroll down the System variables list and click on “Path” followed by the “Edit” button. Enter “;C:php” to the end of the Variable value line (remember the semi-colon).
PHP path environment variable
Now OK your way out. You might need to reboot at this stage.

Step 5: configure PHP as an Apache module

Ensure Apache is not running (use “net stop Apache2.2″ from the command line) and open its confhttpd.conf configuration file in an editor. The following lines should be changed:
Line 239, add index.php as a default file name:

DirectoryIndex index.php index.html
At the bottom of the file, add the following lines (change the PHP file locations if necessary):

# PHP5 module
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"
Save the configuration file and test it from the command line (Start > Run > cmd):

cd Apache2bin 
httpd -t

Step 6: test a PHP file

Create a file named index.php in Apache’s web page root (either htdocs or D:WebPages) and add this code:

<?php phpinfo(); ?>
Ensure Apache has started successfully, open a web browser and enter the address http://localhost/. If all goes well, a “PHP version” page should appear showing all the configuration settings.

Friday, August 8, 2014

PHP 5 Installation

What Do I Need?

To start using PHP, you can:
  • Find a web host with PHP and MySQL support
  • Install a web server on your own PC, and then install PHP and MySQL

Use a Web Host With PHP Support

If your server has activated support for PHP you do not need to do anything.
Just create some .php files, place them in your web directory, and the server will automatically parse them for you.
You do not need to compile anything or install any extra tools.
Because PHP is free, most web hosts offer PHP support.

Set Up PHP on Your Own PC

However, if your server does not support PHP, you must:
  • install a web server
  • install PHP
  • install a database, such as MySQL
The official PHP website (PHP.net) has installation instructions for PHP: http://php.net/manual/en/install.php

Sunday, July 13, 2014

Another leak confirms that Windows 8 is a goner, Windows 9 coming this year

MICROSOFT WILL ANNOUNCE Windows 9 before the year is out, according to the latest leak from reliable Russian mole Wzor.
According to the rumour, Windows 8.1 Update 2 will be released in August, drawing a line under Windows 8, with Windows 9 - assuming that will be its moniker - to be announced within a couple of months. Beyond that, Windows 8 will be patched, but not enhanced.
The Wzor rumour echoes that of ZDNet analyst Mary Jo Foley, who made nearly identical claims last month, further fueling its credibility.
Wzor was among the first to confirm the return of the Start Menu and Microsoft climb downs over the Modern or Metro interface in Windows 8.
According to a translation on the My Digital Life forum, Wzor said, "Windows 9 will be announced this fall, Microsoft's advertising budget this time will be fantastic. The slogan of a promotional campaign will be "You want Start button and new menu and you will get that".

"On the advice of marketing experts, flaws of Windows 8 will be accepted and used as lessons for developers while releasing Windows 9."
This is the first major leak from Wzor after the closure of his website, following the reprimand of a Microsoft employee for being the source of such leaks, and shows that despite this, the well has not completely dried up.
Wzor also suggested that development has been delayed as Microsoft overhauls its product activation systems, primarily to stem the traffic in illicit versions of Windows in China.
The Chinese government has denounced Windows 8 as spyware and ordered its government departments not to use it.

Friday, July 4, 2014

NOKIA Lumia 930 release date, price, specs and availability

THE LUMIA 930 is the latest, and perhaps last flagship smartphone to come out of Nokia, and is among the first handsets to run Microsoft's Windows Phone 8.1 mobile operating system.
Nokia clearly is hoping that its latest flagship smartphone, thanks to its updated software and top-end specifications, will help it fight off competition from the Galaxy S5 and Xperia Z2 to boost Windows Phone's UK market share above the 10.1 percent it has managed to claim so far. 
Keep this page bookmarked, as we'll update it when we hear more about the Nokia Lumia 930's availability.
Nokia Lumia 930 specs
The Nokia Lumia 930 is the sequel to the Nokia Lumia 925, and it improves on last year's Windows Phone flagship's specifications.
Chief among the Lumia 930's attributes is Microsoft's Windows Phone 8.1 mobile operating sytem, which adds of number of new features. These include: Microsoft's Siri rival Cortana; a pull-down notifications menu called Action Center; support for on-screen capacitive keys; custom Live Tile backgrounds; a Swype-esque keyboard feature called Work Flow; and WiFi sense. 
The Nokia Lumia 920's standout feature is its 5in screen, which boasts a Full HD 1080x1920 resolution and Nokia's Clearblack display technology, which the firm claims offers 180 degree viewing angles. This display is driven by a quad-core 2.2GHz Qualcomm Snapdragon 800 chip, which arrives paired with 2GB of RAM.
There's a 20MP camera on the rear of the Lumia 930, a huge improvement compared to the 8MP snapper found on the Lumia 925. Nokia's usual top-end camera features are onboard, including Carl Zeiss optics, optical image stablisation and LED flash. It is also capable of shooting HD 1080p video, and there's also a 1.2MP camera on the front of the device.
Under the bonnet, the Nokia Lumia 930 has a 2,420mAh battery, which the firm claims will offer up to 15.5 hours of talk time and a standby time of up to 18 days. Wireless charging support is also included, and the phone will ship with a free wireless charger.
Other specifications include Bluetooth 4.0, 32GB of internal storage - without a microSD card slot - and support for 4G LTE connectivity.
As for design, the Nokia Lumia 930 measures 137x71x9.8mm and tips the scales at 167g. It is built out of aluminium and polycarbonate plastic, and will be available in four colours: black, white, orange and green.
Nokia Lumia 930 release date
Nokia has yet to announce a release date for the Lumia 930, but has said that it will arrive in the UK in "late-June, early July", while Unlocked Mobiles has said it will hit shelves on 1 July. Microsoft has since announced that Windows Phone 8.1 will start rolling out during the first two weeks of July, another hint that the Lumia 930 will appear at the beginning of the month.
According to Nokia's Facebook page the handset is due to hit stores in Ireland on 3 July and will be available on the Vodafone and O2 networks.
Nokia Lumia 930 price and availabilityUnlocked Mobiles was the first to offer a price for the Nokia Lumia 930, having started taking pre-orders for the phone at £524.95. Expansys has soon outed a price for the Lumia 930 on its 'coming soon' page of £479.99, although the phone is not yet available to order from the website.
The cheapest deal we have found comes via retailer Topendelectronic, which is selling the Lumia 930 for £414.00. However, the retailer is charging £20 for the phone to be delivered.
Nokia has yet to announce availability details, but said that the Lumia 930 will fetch around $599 when it goes on sale. 
Phones 4u has been quick to announce that it will be offering the Lumia 930, with pre-orders set to kick off in late-June. Those interested can register their details on the website
Carphone Warehouse has kicked off Lumia 930 registrations too, and is advising those who sign up that the handset will start shipping in July. 
Vodafone became the first mobile operator to announce plans to sell the Nokia Lumia 930, having added it to its coming soon page. There is no word on pricing or release date from the network yet.
A holding page over on the O2 website has since revealed that it will also be offering the handset. O2 has yet to announce pricing, but a listing on Google shows it will be available for free on a contract, and will also be offered on pay as you go.
EE and Three have yet to announce whether they will be offering the handset.
For those more interested in picking up the Nokia Lumia 930 SIM-free, you can register your interest over on the website of UK retailer Clove.

Tuesday, June 3, 2014

Microsoft might make us wait another year for the Windows 8 Start Menu

MICROSOFT WILL NOT BRING BACK the Start Menu in Windows until 2015, according to sources.
Despite a further update to Windows 8.1 being due this summer, it now appears that the Start Menu will not be a part of that.
According to Mary Jo Foley at ZDnet, Microsoft has decided to hold off on the return of the Start Menu until the so called "Threshold" build, which will either become Windows 8.2 or Windows 9, depending on marketing decisions.
When a preview of the revised Start Menu made an appearance at this year's Microsoft Build conference in San Francisco, it overshadowed the more immediate announcement of Windows 8.1 Update 1, which introduced features designed to appeal to keyboard and mouse users who had been alienated by the touch-centric design of Windows 8.
The new Windows 8.1 Start screen mixes the missing and widely lamented feature from Windows 7 with the tiled environment of the Windows 8 Metro interface and Windows Phone, showing that the company isn't ready to abandon its new direction altogether.
With Windows 8.x still languishing in market share compared to its predecessor Windows 7, which continues to grow, surpassing 50 percent market share during May, the Redmond company's reticence to bring back the Start Menu is somewhat surprising.
We're a little stumped as to why Microsoft has chosen this strategy. Surely the Redmond company wants to win back as much lost goodwill as it can, and further delays will do nothing to change that.
With the many third party add-ons that bring the Start Menu of old back, we have to assume that the decision must be based on misguided marketing. After all, if everyone else has managed to bring back the Start Menu, how hard can it be?
Microsoft has yet to comment on the report

Technology News

Online Money

Review

Motor