2011 in review January 2, 2012
Posted by Nsh15 in Uncategorized.add a comment
The WordPress.com stats helper monkeys prepared a 2011 annual report for this blog.
Here’s an excerpt:
The concert hall at the Syndey Opera House holds 2,700 people. This blog was viewed about 20,000 times in 2011. If it were a concert at Sydney Opera House, it would take about 7 sold-out performances for that many people to see it.
Cloud Computing (Storing Data In The Clouds) August 6, 2011
Posted by Nsh15 in Computer Technology.add a comment
A few Years ago, I was making my internship before graduation in UAEU. I was more than happy that the manager allow us (internee) to attend a google presentation for the IT Department. It was about Storing Data In The Clouds, I was really confused and thought he was talking about the clouds in the sky. Then I forgot that idea till I found that topic again yesterday under the name Cloud Computing. Thus I decide that I have to understand it correctly this time, so here we go:
Data in the cloud ( The Simple Idea) :
Its data being stored on a server somewhere, you can get your hands on whenever and wherever using an Internet connection. For example Google and Microsoft documents which u can access using your e-mail.
Cloud computing :
Is a technology that uses the internet and central remote servers to maintain data and applications. Cloud computing allows consumers and businesses to use applications without installation and access their personal files at any computer with internet access. This technology allows for much more efficient computing by centralizing storage, memory, processing and bandwidth.
Cloud Computing Segments:
- Applications: Software as a Service (SaaS) deliver software as a service over the Internet, eliminating the need to install and run the application on the customer’s own computers and simplifying maintenance and support. On Demand software services come in a few different varieties which vary in their pricing scheme and how the software is delivered to the end users.
- Platform: known as Platform as a Service (PaaS), deliver a computing platform and/or solution stack as a service, often consuming cloud infrastructure and sustaining cloud applications. Many of the companies that started out providing On Demand application services have developed platform services as well. The platform segment of cloud computing refers to products that are used to deploy internet.
- Infrastructure: Cloud infrastructure services, also known as Infrastructure as a Service (IaaS), deliver computer infrastructure – typically a platform virtualization environment – as a service, along with raw (block) storage and networking. Rather than purchasing servers, software, data-center space or network equipment, clients instead buy those resources as a fully outsourced service.
Cloud Computing Deployment Models:
- Public Cloud: A service provider makes resources, such as applications and storage, available to the general public over the Internet. Public cloud services may be free or offered on a pay-per-usage model.
- Community Cloud: It may be established where several organizations have similar requirements and seek to share infrastructure so as to realize some of the benefits of cloud computing. The costs are spread over fewer users than a public cloud (but more than a single tenant). This option offers a higher level of privacy, security, and/or policy compliance.
- Hybrid Cloud: Is a composition of at least one private cloud and at least one public cloud. It is typically offered in one of two ways: a vendor has a private cloud and forms a partnership with a public cloud provider, or a public cloud provider forms a partnership with a vendor that provides private cloud platforms. They are often useful for archiving and backup functions, allowing local data to be replicated to a public cloud.
- Private Cloud: Is infrastructure operated solely for a single organisation, whether managed internally or by a third-party and hosted internally or externally.
- Combined Cloud: Two clouds that have been joined together are more correctly called a “combined cloud”. A combined cloud environment consisting of multiple internal and/or external providers
Benefits of Storing Data in the Cloud:
Storing your data in cloud is very flexible. The data will be stored in multiple sites that are geographically apart. Cloud storage is highly reliable. You can access the data in any place in the world. Furthermore, cloud storage keeps your data secured. It uses 256-bit AES encryption for the stored data, SSL encryption for transferred data.
Connect PHP with Oracle database October 18, 2008
Posted by Nsh15 in PHP and Oracle database.Tags: apache server, Connect Oracle 10g with PHP, how to connect Oracle database using PHP, PHP connected to Oracle
25 comments
I spent the last four days looking for the correct way to Connect Apache server (PHP) with Oracle database, unfortunatly I didn’t find any complete article.So in this blog, I’m giving my expernce to connect ‘em 2geth
1. Install Apache server:
I make this step in a seprated blog page, plz check it from this link:Install Apache HTTP server
2. Extract the PHP zip folder:
1. Unzip the PHP file into c:\php
2. Copy all the files with the .dll extension to C:\WINDOS\system
3. Copy php5apache2.dll to C:\Apache\Apache2\modules
3. Copy the file php.ini-recommended and then edit it:
1. Open C:\php then copy the file php.ini-recommended to C:\WINDOWS
2. Rename it to be php.ini then open it with text editor
3. Set the doc_root to be: doc_root = c:\apache\apache2\htdocs
4. Set the extension_dir to: extension_dir = “C:\php\ext”
5. Uncomment (Remove the semicolon “;” from the beginning of the line) this line:
session.save_path = “c:/temp”
6. Uncomment the line: extension=php_oci8.dll
4.Edit the http.conf file:
1. Open the httpd file using any text editor, which exist on the path
C:\Apache\Apache2\conf
2. Find the line AllowOverride None and change the None value to be All
3. Look for the line DirectoryIndex index.html index.html.var and replace it with this line: DirectoryIndex index.html index.html.var index.php
4. Search for a section that has a lot of AddType commands, then added this line: AddType application/x-httpd-php .php so u have a total of 3 AddType command.
5. Search for a section has many Loads and add this line to it:
LoadModule php5_module modules/php5apache2.dll
5.Restart the Apache and the oracle database:
1. Restart the apache server using the cmd command (U can do it from the services but using the cmd has the advantage of showing errors while restarting the apache if there is any)
- Open start -> run -> cmd -> cd c:\apache\apache2\bin (press enter)
- The write apache –k restart (Press enter)
2. Restart the Oracle database
Open control panerl -> administrative tools -> services -> the restart all the services starting with Oracle
6. Test the connection:
1. To make the basic connection you need some information from the tnsnames.ora file, so follow the link C:\oracle\product\10.2.0\db_1\NETWORK\ADMIN Then open it
2. Open textpad page or use any text editor you want the past this code:
<?php
$db = “(DESCRIPTION=(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.34)(PORT = 1521)))(CONNECT_DATA=(SID=orcl)))” ;
if ($c=OCILogon(“system”, “your database password“, $db)) {
echo “Successfully connected to Oracle.\n”;
OCILogoff($c);
} else {
$err = OCIError();
echo “Connection failed.” . $err[text];
}
?>
Where the HOST is taken from your tnsnames.ora file and SID value is equal to your database name Then save the file with the name test.php
3. Open web browser page and type on the title: http://localhost/test.php
If it all worked well you will get white page with the result:
Successfully connected to Oracle.
NOTE: Recommended links to download the software’s:
|
Software |
Version |
URL |
|
Oracle Database 10g Express Edition |
10.2 |
|
|
Apache HTTP Server |
2.0.58 |
|
|
PHP Hypertext Processor |
5.1.3 |
Install Apache HTTP server: October 18, 2008
Posted by Nsh15 in PHP and Oracle database.Tags: Apache, apache server, install apache
5 comments
To install the Apache server, it’s straight forward …
Just follow the pictures












