How to fix ‘Function eregi() is deprecated’ in PHP 5.3.0

Published on

Problem or the issue: Previously eregi used to validate email address input using regular expression. That would return true if given email address matches to username@domain.ext pattern. Unfortunately, after upgrading PHP to the new version (5.3.0), it won’t work properly and throw notices. This is because eregi is one of several functions that are deprecated in the new version … Continue reading How to fix ‘Function eregi() is deprecated’ in PHP 5.3.0

What are the deprecated functions in PHP 5.3.0

Published on

The list of functions that are deprecated in PHP 5.3.0: call_user_method() (alternative: call_user_func() ) call_user_method_array() (alternative: call_user_func_array() ) define_syslog_variables() dl() ereg() (alternative: preg_match() ) ereg_replace() (alternative: preg_replace() ) eregi() (alternative: preg_match() with the ‘i’ modifier ) eregi_replace() (alternative: preg_replace() with the ‘i’ modifier ) set_magic_quotes_runtime() and its alias, magic_quotes_runtime() session_register() (alternative: the $_SESSION superglobal ) … Continue reading What are the deprecated functions in PHP 5.3.0

How to open an URL in Android’s web browser using Button.

Published on

Step1:-  In Resource/main.xml  create Button  as per Shown in the image below. Step2 :- In src/Weburl.java type these codings. a) Attach a click listener to the button,When user click on it, it will open mobile browser and display URL : http://www.howwhywhat.in Step3 :- Run the Application OUTPUT:- 1) Normal Button 2) After Click on the … Continue reading How to open an URL in Android’s web browser using Button.

How to fix “Cannot load mysqli extension. Please check your PHP configuration” phpMyAdmin Error.

Published on

– Solution – This usually occurs when more than one MySQL versions are being used and that too when switching b/w them. step 1:  open php.ini and search for ‘extension_dir’ and check whether the files and folders exist in the given path and the right version number folder. extension_dir = “c:/wamp/bin/php/php<version number>/ext/” if you have made any changes, then restart … Continue reading How to fix “Cannot load mysqli extension. Please check your PHP configuration” phpMyAdmin Error.

How to start Apache and MySQL WAMP’s service at startup in Windows

Published on

For Windows OS, Goto Start -> Run -> services.msc <press enter> change the settings for “wampapache” and “wampmysqld” in properties to start: “Automatic“. This will only start the service for running the web server and the websites running on it and not wamp manager. Running the WAMP Manager is different thing but running the manager also starts the services. … Continue reading How to start Apache and MySQL WAMP’s service at startup in Windows

How to create a Hello World Application in an Android using Eclipse

Published on

Step1:- First go to file > new > project Step2:- Then select android folder and click on android application and click on next button Step3 :- Enter the project name as you want to give for example i give “myfirstapp” and click next.Step4 :- Select  the android platform and click next Step5:- give the package … Continue reading How to create a Hello World Application in an Android using Eclipse

How to create an AVD(Android Virtual Device) in Eclipse for Android Application

Published on

First you have to Create an AVD(Android virtual Matchine) you gonna run your application in the Android Emulator. Before you can launch the emulator, For that you must create an Android Virtual Device (AVD). An AVD is the system image and device settings used by the emulator. To create an AVD:    Step1 :-  In … Continue reading How to create an AVD(Android Virtual Device) in Eclipse for Android Application

How to configure Php with Http

Published on

PHP with HTTP2 on Linux. # yum install bzip* # yum install libjpeg-devel # yum install libpng* # yum install gmp-devel* # yum install ncurses-devel* # yum install pspell-devel # yum install curl* # yum install gcc* # yum install libxml2* # yum install gdbm* Download this package or latest. # wget http://apache.mirrors.tds.net/httpd/httpd-2.2.10.tar.gz # wget … Continue reading How to configure Php with Http