Showing posts with label Tutorials. Show all posts
Showing posts with label Tutorials. Show all posts

19 June 2017

PHP7 Unable to load php_curl.dll extension on windows


Problem:  

PHP Startup: Unable to load dynamic library 'C:\\php7\\ext\\php_curl.dll' - The operating system cannot run %1.\r\n in Unknown on line 0

Solution:

  • Step1: Uncomment the php_curl.dll from php.ini
  • Step2: Copy the following three files from php installed directory.i.e "C:\\php7".
    1. libeay32.dll,
    2. libssh2.dll,
    3. ssleay32.dll
  • Step3: Paste the files under two place
    1. httpd.conf's ServerRoot directive. i.e "C\Apache24"
    2. apache bin directory. i.e "C\Apache24\bin"
  • Step4: Restart apache.
That's all. I solve the problem by this way.Hope it might work for you.


Mastering PHP 7: Design, configure, build, and test professional web applications

07 May 2017

What is HTML (Hyper Text Markup Language)



  • HTML stands for Hyper Text Markup Language.
  • HTML is the standard markup language for creating Web pages of websites.
  • HTML declare the layout structure of Web pages using markup language code.
  • HTML markup are written by tags (h1, h2 for heading ,p for paragraph and so on)
  • Web Browsers like Mozilla Firefox, Google Chrome , Internet Explorer etc are used to show HTML output.
  • When we visit a website such as http://www.facebook.com we see the output of html code that was written for facebook.
  • Web browsers render the html source code to human readable format which is displayed as images, text,multimedia contents. 
  • Beside html, CSS , JavaScript are also use within a html page.
browsers
Web Browsers are Used to Show HTML Output

HTML: A Beginner's Guide, Fifth Edition

01 June 2016

What is JavaServer Faces (JSF) in Java programming language ?

  • JSF is a component-based MVC(Model View Controller) framework which enables you to completely separate Java code from HTML pages. 
  • It is a new technology for developing server-side Web applications using Java.
  • For example: to display a table with rows and columns you can add a table component to a page, there is no need to write html table , tr ,td tags with loop structure to show table data in JSF.



  • JSF has the following parts:
  • A set of user interface components(HTML tags, form, table, JSF component)
  • An event-driven programming model
  • A component model that enables third-party developers to supply additional components
  • The application developed using JSF is easy to debug and maintain.

Core JavaServer Faces (3rd Edition)
Mastering JavaServer Faces (Java)

29 May 2016

What do you mean by Exception handling in programming language?


  • An exception is an error that occurs at run time. 
  • Run time errors are errors that cause a program to terminate abnormally. 
  • Run time errors occur while a program is running if the environment detects an operation that is impossible to carry out.
  • Most of the well known computer programming language like Java, C++ have exception handling  mechanism by which a programmer can handle run-time errors of the program. 
  • Some common exceptions are divide-by-zero or file-not-found etc.

Programming Languages
Error Types, Systematic Debugging, Exceptions

21 April 2016

What is Inheritance in OOP(Object Oriented Programming) ?


  • Inheritance is the process by which one object can acquire the properties of another object.
  • In reality as Children get properties from Parents. Similarly in OOP(Object Oriented Programming) using inheritance a Child class can extends the data and member from its parent class.
  • There are various types of inheritance, based on paradigm and specific language.
Inheritance



  1. Single inheritance : Where subclasses inherit the features of one super class. A class acquires the properties of another class.  
    Single Inheritance
  2. Multiple inheritance: Where one class can have more than one super class and inherit features from all parent classes. 
    Multiple Inheritance
  3. Multilevel inheritance : Where a subclass is inherited from another subclass. Hierarchical inheritance: Where one class serves as a superclass (base class) for more than one sub class. 
    Multilevel Inheritance
  4. Hybrid inheritance: a mix of two or more of the above types of inheritance.

Object-Oriented Programming in C++ (4th Edition)
Object-Oriented Programming for Dummies

What is Polymorphism in OOP ?

  • Polymorphism (from Greek, meaning “many forms”) is the mechanism that allows one interface/method/function/procedure to access a general class of actions.  
  • More generally, the concept of polymorphism is often expressed by the phrase “one interface,  multiple methods.” 
  • This means that it is possible to design a generic interface to a group of related activities.
Polymorphism

  • Polymorphism helps reduce complexity by allowing the same interface to be used to specify a general class of action.

PolymorphismSams Teach Yourself C++ in One Hour a Day (7th Edition)

What do you mean by encapsulation in OOP ?



  • Encapsulation is a programming mechanism that binds together code and the data it manipulates and apply restricting access to some of the object's components. 
Encapsulation


  • In an object-oriented language, it is a language construct that facilitates the bundling of data with the methods or other functions operating on that data. 
  • Class (extensible program-code-template for creating objects) is used to ensure encapsulation of data and method in Object Oriented Programming.

Intro to Java Programming, Comprehensive Version (10th Edition)
Java: How to Program, 9th Edition (Deitel)

What is Java Bytecode ?


Java Bytecode
  • When a Java program source is compiled, the output of the Java compiler is called bytecode. 
  • Many language generate executable code after compilation. 
  • In Java the output is converted to a special type of file which is called the bytecode.
  • Bytecode is a highly optimized set of instructions designed to be executed by the Java run-time system,which is called the Java Virtual Machine (JVM). 
  • Bytecode makes it much easier to run a program in  a wide variety of environments because only the JVM needs to be implemented for each  platform.


Java: A Beginner's Guide, Seventh Edition

12 September 2015

How to redirect your website from HTTP to HTTPS on Apache HTTP Web Server


HTTP to HTTPS
  • You can automatically redirect your website visitor from http://www.yourwebsite.com  to https://www.yourwebsite.com  in various ways. 
  • This blog post will show you how to redirect your website from http to https using a simple .htaccess file saved on your web server.
  • Step 1: Install & configure mod_ssl on your Apache HTTP Server.
  • Step 2: Enable the mod_rewrite modules by editing the ‘httpd.conf’ apache configuration file.
  • Step 3: create an ‘.htaccess’ file and write the following code on that .htaccess file & save the file on your web server document root directory.   
  
 RewriteEngine On
 RewriteCond %{HTTPS} off
 RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Pro Apache (Expert's Voice)

26 February 2015

WordPress theme & plugins installation “Download failed” problem solved

  • If you are getting an error message while tried to install any WordPress theme or plug-ins from wordpress admin panel. If the error message says “Download failed. There are no HTTP transports available which can complete the requested request.”. Then this post might help you. 

  • Step1:  You have to edit your php.ini file, so find the php.ini file & open it with notepad.
php.ini


  • Step2: Find “php_curl” extension on the php.ini file
php.ini


  • Step3: After finding, now enable the php_curl extension by removing the semicolon (;) 
php.ini


  • Step4: save the php.ini file & close it
  • Step5: Restart the apache service.
  • Step6: It’s done. 
  • Now you can download any wordpress themes & plugins from wordpress admin panel.




WordPress All-in-One For Dummies

Featured Post

How to Write PHP code and HTML code within a same file

A PHP file can have both PHP code and HTML code together. Any HTML code written outside of PHP <?php //php code here… ?> Code is ig...

Popular Posts