Breaking News
Home / Web (page 4)

Web

Guess the Number – Game in Python

Mini Project Practice Exercise in Python for Beginners. Create a Guess the Number game where in the computer One of the simplest two-player games is “Guess the number”. The first player thinks of a secret number in some known range while the second player attempts to guess the number. After …

Read More »

PHP Fatal error: Call to undefined function dl()

Error [Fri Aug 24 23:46:37 2012] [error] [client 67.170.243.37] PHP Fatal error:  Call to undefined function dl() in /media/main/projects/justsikh/web/classes/config.php on line 2 Solution Check your php.ini and see whether the enable_dl attribute is On or Off. Most likely its Off, so turn it On. ; Whether or not to enable …

Read More »

How to display PHP setup and environment variables?

In order to display PHP setup, configuration and environmental variables simply create a php page and execute the phpinfo command. It will display all the relevant information about PHP as output in the browser or in command line. Ex. in info.jsp<?php // Show all information, defaults to INFO_ALLphpinfo();  ?> The …

Read More »

How to enable Javascript in Internet Explorer 8.0?

Depending on security settings Javascript could be disabled in Internet Explorer. This screencast shows how to enable Javascript for the same.   Steps In oder to enable JavaScript in IE, perform the following the steps:   1. From the Tools menu, or the Tools drop-down in the upper right, choose …

Read More »

How to list files in a directory in PHP?

<?php if ($handle = opendir(‘/path/to/directory’)) {     echo "Directory handle: $handlen";     echo "Entries:n";     /* This is the correct way to loop over the directory. */     while (false !== ($entry = readdir($handle))) {         echo "$entryn";     }     …

Read More »
Advertisment ad adsense adlogger