Php

[Solved] Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 491520 bytes) in

Errors and solutions, Php, Wordpress
Solution: Just create the file named php.ini under wp-admin folder and add the below lines, <? phpinfo(); ?> memory_limit = 64M save changes and close the file. Refresh the page. Hope you will not get the error now.   Note: 1. Be sure that you have not added any other lines in any other files. 2. If you still getting the same problem, then try changing the value to 128M.     Thanks for reading this post........!!!  

Txtweb php hello world

Php
Step 1: Create a file called hello.php under public_html\agn folder <html> <head> <meta name="txtweb-appkey" content="1ac539c0-3df6-4e45-9e83-337889a858e1"> </head> <body> <?php echo "hello naveen welcome man..!!"; ?> </body> </html> location you have to store in web host is: public_html/agn/hello.php Step 2: Check this by typing your domain name/agn/hello.php Example: if your domain name is ngdeveloper.com then you have to check your ouput by typing www.ngdeveloper.com/agn/hello.php in the browser. Ouput you will get is: hello naveen welcome man..!! Step 3: Login with your credentials to your txtweb account. Step 4: Create a service and give all the details and copy the Service App Key and paste this into "meta c...

array_combine in php example

Php
Program: array_combine.php <?php $arr_one=array(1,2,3); $arr_two=array(java,html,php); $array_combined=array_combine($arr_one,$arr_two); print_r($array_combined); ?>  Output: Thanks for reading this post............!!!

Php Hello world

Php
Step 1: Create a file named hello.php under the php file extracted location(I have extracted my php in d:\php), so i have pasted the below code in d:\php\hello.php and paste the below code, <?php echo "Hello World!\\n" ?>   Step 2: Now go to the command and execute as follows,   Thanks for reading this post..........!!!

Php step by step installation in windows 7

Php
Step 1: Go to the below link http://windows.php.net/download/#php-5.4 Step 2: Download the thread safe or non thread safe php based on your requirement. Step 3: Extract the zip file that you have downloaded into the required location. (say D:\PHP\ folder). Step 4:  Check whether you are getting the output as like follow, Step 5: If you get the output like above then we can ensure that php extracted successfully and all the required files are there. Step 6: Now you can start programming with php. See helloworld program for further learnings.   Thanks for reading this post.............!!!

PHP for Android

Php
Hi php programmers, now you can develop android applications also using your well known language php. Step 1: From your android mobile go to phpforandroid.net and download the, followings, Step 2: After the download install the both on your android mobile. Step 3: Open  the sL4A(ASE) and try with hello_world.apk. If you open it it will ask your name, just type your name and give ok then it will display “hello yourname” in the next screen. Best book for Android development, Professional Android 4 Application Development                Best book for Php development, Php and Mysql web development                                          Thanks for reading this post.