Showing posts with label web development. Show all posts
Showing posts with label web development. 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

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

30 December 2013

Solution of Font size problem on different browser

  • Most of the web developers are facing problem with font size on different browser especially on old version of internet explorer.
    different browser
  •  If you are facing font size problem on different browser then this blog post might help you. 
  • Step1: Edit your css code & add the following code:
     Font size problem
  body {font-size:100%;}

  • Step2: Use Em instead of pixel (px) on your css file to specify the font-size value. 1em=16px, To calculate the em value of any pixel, divide the pixel value by 16 . 
  • Example:
p {font-size:1em;}
h1 {font-size:3.125 em;} /* 50px/16=3.125em */
#content {font-size:1.25em;} /* 20px/16=1.25em */
  • Step3. Done. Now your website text will display same on all browsers.
CSS: The Missing Manual

01 September 2013

Difference between the break and continue in programming language


BREAK
Break
 The break statement will terminate iteration of the loop and continue executing if there is any code that follows after the loop. Example of Break statement in JavaScript:


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
<script>

x=0;

for(x=0;x<10;x++)
{
if(x==3)
{
break;    
}
document.writeln("x=" + x + "<br />");

}


</script>
Output: x=0 x=1 x=2

Continue
Continue

The continue statement will terminate the current execution of loop and resume the loop with the next value if any. Example of Continue statement in JavaScript:
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
<script>

xx=0;

for(xx=0;xx<5;xx++)
{
if(xx==3) 
{
continue;
}
document.writeln("xx=" + xx + "<br />");
}

</script>
Output: xx=0 xx=1 xx=2 xx=4
Beginning Programming All-In-One Desk Reference For Dummies

29 August 2013

What are the difference between the while and do…while loop in computer programming?

To better understand the difference of while loop & do..While loop, you have to know the syntax of this loop.

The syntax of While loop is as follows:
while (variable<=end_value)

{

//Code to be executed writes here

}


while loop
While Loop

While loop Example in JavaScript:
1
2
3
4
5
6
7
8
<script type="text/javascript">
var1=0;
while (var1<=5)
{
document.write("The number is " + var1+"<br />");
var1++;
}
</script>

do while loop
Do While Loop

The syntax of do…while is as follows:
1
2
3
4
5
6
7
8
9
do

{

//code to be executed writes here

}

while (variable<=end_value);

do.. while Example in JavaScript:
1
2
3
4
5
6
7
8
9
<script type="text/javascript">
var1 = 0;
do
{
document.write("The number is " + var1+ "<br />");
var1++;
}
while (var1 <= 5)
</script>

  • So, In the case of the while loop, the condition is checked first, if the condition is false, the block will not be executed. 
  • On the other hand, In case of the do…while loop, the condition is checked after the block is executed; therefore the block is always executed at least once.

Programming: Computer Programming for Beginners: Learn the Basics of Java, SQL & C++ (Coding, C Programming, Java Programming, SQL Programming, JavaScript, Python, PHP)

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