Thursday, 22 August 2013

What is SSL

SSL(Secure Sockets Layer)- It enables browsers to transmit data to and from a web server in a secure cryptographic way to make life hard for third party spies monitoring all internet traffic. When websites pages open with https(https://www.facebook.com) we have to install the SSL in our server. When we install SSL, we have to create the certificate (you have to pvoide some detail like countryCode, state, name, email etc during SSL created).


SSH (Secure Shell)-it enables a networked computer one to provide access to a shell on networked computer two. The user can have a level of confidence that spies listening to the insecure channel cannot decrypt data sent between the networked computer(s).


FTP(File Transfer Protocol)- Its protocol (rule) that is used when we need to tranfer a file from one location to another location(One server to another server).


SFTP(Secure File Transfer Protocol)-"FTP over SSH" uses the regular old FTP protocol, but an SSH tunnel is placed between client and server.


HTTPS (Hypertext Transfer Protocol Secure)- You have to install SSL Certificate to run your web pages as https





Question: cURL extension has to be loaded to use this, This error is coming when use run php through CLI, Its working fine when Running through browser. I am working on WampServer in window7. 



Answer: WAMP uses different php.ini files in the CLI and for Apache(Browser). when you enable php_openssl through the WAMP server, you enable it for Apache, not for the CLI. You need to modify C:\wamp\bin\php\php-5.5.x\php.ini to enable it for the CLI.



Thursday, 8 August 2013

GitHub in window 7 | GitHub Commands in Linux

GitHub in window 7 | GitHub Commands in Linux

Setup the GitHub in window machine. GitHub is most widely used repositary in development. Get to know commands to work with github.

Create repository in github
Login to your github account, If not have account please register first.
After login to your github account, Click on "Create new Repo" Icon @top right in header to create new repo.
Add "Repository name" and Description of your new repository.
Public Repository is free and private is paid. so let start with free(public repo)
After clicking on "Create repository", your repository will create.
Save the URL of your repo, It will be similar to "https://github.com/poonamc/Ansh"

Download the console for github
ate/delete files in repo
After download, Install it and Run the "Git Bash"

All command must be executed in sample folder.

Add a file in github through console(First Time)
Open "Git Bash"
Go to folder/directory where you want to keep your files @local system using "Cd" command.
Create a folder and go inside that folder
add a sample file in that folder from UI
execute following commands one by one and add your github username/password they they prompt (In Last)

git init
git add test.php
git config --global user.name "Arun"
git config --global user.name "arun@no-spam.ws"
git commit -m "test file"
git remote add origin https://github.com/poonamc/Ansh.git
git push -u origin master


Add a new file in github
add a new file in folder (suppose file name is "arun1.php")
Execute following commands one by one
git add arun1.php
git commit -m "test file arun1.php"
git push -u origin master


Update a file in the github
Change one file and save
Execute the following commands one by one
git add *
git commit -m "updated file"
git push -u origin master


Delete a file
git rm arun1.php
git commit -m "deleted file"
git push -u origin master