Solved: issue with wordpressMU image or media uploading

Many people is having issues with image uploading with WordPressMU. In this article I will tell you the solution. Solved: issue with wordpressMU image or media uploading.

Solved: issue with wordpressMU image or media uploading
Solved: issue with wordpressMU image or media uploading

Solved: issue with wordpressMU image or media uploading

Single wordpress and wordpressMu has different behaviour.. If you are using apache webserver then there is no issue but if you are using than there is issue with image mapping. specially with nginx web server.
You need to write the rewrite rule for image. Also you need to check about folder permission in your “blogs.dir” directory. change folder permission to 777.
For single wordpress there is uploads folder is present but for wordpressMu there is no uploads folder present in directory. You should look for blogs.dir folder which is present in wordpressMu/wp-content folder.

For solve the issue add the following lines in your apache configuration(httpd.conf) file. If this file is not present then add following lines in your .htaccess file.

RewriteEngine On
RewriteBase /

#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

# add a trailing slash to /wp-admin
RewriteCond %{REQUEST_URI} ^.*/wp-admin$
RewriteRule ^(.+)$ $1/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]

<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>

One another issue.
You should check the “Upload File Types” settings going here.
http://yoursite/wp-admin/wpmu-options.php

Check the “Max upload file size” and also check the “Blog upload space”

For Nginx you will find the configuration code from https://purabtech.in/image-upload-issue-in-wordpressmu-with-nginx/

If you have still facing issue with image uploading in wordpressMU. Feel free to write to me or write a comment.

How to create photo gallery in wordpress

Creating a photo gallery is very good idea in any websites because photos say more than text.

So many people create very nice photo galleries in wordpress. Still some people does know how to create a photo gallery using wordpress website.

How to create photo gallery in wordpress

In this article I will give you idea about how to create the photo gallery.

1. NextGEN Gallery

Download

2. Page Flip Image Gallery

Download

3. Image Gallery Reloaded

Download

4. Random image gallery with light box

How to create photo gallery in wordpress

Download

Best wordpress plugins for creating forums

Forums is like basic need of current websites. Using the forums you can really give interaction to all website users. As we know many websites are building in wordpress and client want forums as part of wordpress website.

Best wordpress plugins for creating forums

No need to worry, there are really free some good plugins are available to integrate the forums in to wordpress site. Here in this article I am going to give you some really good options to install forums in wordpress websites.

1. WP Forum

Best wordpress plugins for creating forums
Best wordpress plugins for creating forums

Download

2. WP-Forum Latest Posts

Download

3. Forum Server

Download

4. Group Forum Subscripton for BuddyPress

Download

5. Zingiri Forum

Download

6. bbPress Integration

Download

7. Simple:Press Forum

Download

what is cloud hosting – Know In detail

In now day many times we heard about cloud hosting and cloud computing. Recently we heard from Matt (WordPress founder) also. Many web designers are not aware with cloud hosting.

In this article I am going to write about in detail about cloud hosting. We are heard about messaging servers and big web services.

what is cloud hosting – Know In detail

Twitter is the biggest mirco blogging website in the world and they are running like more than 100 mongrel server instances on Nginx server for handling the twitter. But still they are facing lot of traffic issue. May be there are multiple reasons. But still one of that is Rails. How much requests single mongrel instance can handle and if they got billions of hits in single second. What will happen we never no.

Who are in server administration they will defiantly have good idea about these issues.

What is cloud hosting?

Cloud hosting is nothing but multiple virtual machines which are basically does load balancing.

Generally, website hosted on a cloud hosting operates on a clustered servers where online operations are not limited to a single server. By handling security, load balance and hardware resources virtually, the website has access to the processing power of a number of servers that are distributed in real-time.

Cloud computing is a way of computing, via the Internet, that broadly shares computer resources instead of having a local personal computer handle specific applications.

I can say Cloud hosting is solution for multiple dedicated servers. Handling multiple dedicated server is really pain. So for high traffic websites choosing the cloud hosting is the best option.

Google, Yahoo, MSN, Facebook many companies are already using the cloud hosting for better performance.

For choosing the cloud hosting there are few good options present in market. Some of few as follows:

1. Amazon

what is cloud hosting - Know In detail
what is cloud hosting – Know In detail

2. gogrid

what is cloud hosting - Know In detail
what is cloud hosting – Know In detail

If you want information about wordpress cloud hosting then check following URL:

https://purabtech.in/cheap-hosting-wordpress-blogs-sites/
https://purabtech.in/best-hosting-providers-themes-for-wordpress/

Web designers are saying what to do with IE6

In 2003,  Microsoft launched the Internet Explorer6 and it had dominated the market with 97 percent share that time. Over the years its market share has declined, and Now as per new.cnet.com in Jan 2010, IE6 has only holding 5 percents of internet users.

Web designers are saying what to do with IE6

Web designers are saying what to do with IE6
Web designers are saying what to do with IE6

Still Most of all web designers are fighting all the time for IE6 issues and hacks. All web designers and Web development companies are still spend so much to to solve the issue with IE6 browsers.

There is reason behind that. In all over the world, still some big corporate companies and offices are using IE6. Many big companies and brands announced to ban IE6 in 2009 itself.

The Google and March 1 references come from that company’s recent announcement that it would drop IE6 from the list of supported browsers for its Google Docs online applications and its Google Sites hosting services starting on Monday, March 1. Yesterday, Google’s popular video site YouTube named March 13 as the end-of-support date for IE6.

There is big issue with IE6 browser but still some web developer are not aware of that. IE6 is majorly lacking to provide a web security. I can say, IE6 is kind of hackers browser.

Microsoft’s browser has weathered a “kill IE6” campaign since February 2009, when Facebook prompted IE6 users to upgrade. It accelerated last summer when Digg announced it would curtail IE6 support, and an “IE6 Must Die” Twitter petition collected thousands of names. Microsoft has endorsed the anti-IE6 efforts, going so far as to say that “Friends don’t let friends use IE6,” although it has refrained from forcing users or companies to upgrade to IE7 or IE8, arguing that the old browser is still required by some enterprises.

There are new technologies are coming like HTML5, CSS3 but still IE8 is also not providing the basics of that. So web deverloper’s need to struggle for that. The biggest issue I will say here is project estimation. Due to IE6 browser estimation will go always wrong. This is really frustrating.

There are multiple issues with IE6. I will talk about some here.

  • z-index issue – most bad part in IE6
  • inline-block – display property not work
  • min-height and max-height css property
  • child selectors in CSS
  • PNG transparent images- biggest issue
  • Poor Javascript support

Microsoft is planning to launch IE9 but still they are not included the some nice features of HTML5 and advanced javascript methods and CSS3 attributes.

What I say more.. Web designers are saying what to do with IE6…..

How to set cron jobs in Linux

If you are programmer then you many times heard about cron jobs. Who are new in to programming or new about using cron jobs they always think, how schedule job in linux box.

How to set cron jobs in Linux

How to set cron jobs in Linux
How to set cron jobs in Linux

For many purpose we can use the cron jobs. Like sending emails, taking Mysql or database backup, taking file system backup or any other purpose.

What is Cron?

Cron is basically Linux program which will run on only windows.

Cron is a program that enables you to execute a command, or a script with a sequence of commands, at a specified date, time or at set intervals. The commands or scripts that you want cron to run are defined in a file called crontab, and every user has their own independent crontab file. Cron is a system program that is running all the time and is similar to the Windows scheduler which allows you to run commands/programs at predefined times and intervals.

We can pass following parameters to Cron file.

Minute = Minute of the hour, 00 to 59. * Will indicate every minute (details later)
Hour = Hour of the day in 24-hour format, 00 to 23. * Will indicate every hour (details later)
Day = Day of the month, 1 to 31. * Will indicate every day (details later)
Month = Month of the year, 1 to 12. * Will indicate every month (details later)
Day = Day of the week, 3 chars – sun, mon, tue, or numeric (0=sun, 1=mon etc)…. * Will indicate every day (details later)
Task = The command you want to execute

Now I will show you how to use the cron in Linux.

#su

#ROOT PASSWORD

#crontab -e

This will open the corn file from linux

Put you options in this file. For example

* * * * php  /var/www/html/project_name/script.php

Above script will fun after each minute.

00 18 * * php  /var/www/html/project_name/script.php

Above script will run at 6PM of day

More commands about crontab

#crontab -l

This will list cron file and all tasks which are present in cron file.

#crontab -r

This command will delete all cron jobs from cron file.

Using following command will show the all error log about cron file.

#tail -f /log/cron/error_log

Best free black WordPress Themes – Dont miss it

So many people like black color. They looking for black and white WordPress themes. We like black themes. Here List of best free black wordpress themes, Black color is always loved by people so here I collected the very nice wordpress themes which are black.

If we kept black color in background then web page will become more attractive as graphic designers are says. I specially like black wordpress themes.

Best free black WordPress Themes – Dont miss it

Here in this article I will give information about some really cool Black WordPress themes.
1. Michael Jackson 1.0

Best free black WordPress Themes - Dont miss it
Best free black WordPress Themes – Dont miss it

Demo | Download

2. Revision 1.0

Best free black WordPress Themes - Dont miss it
Best free black WordPress Themes – Dont miss it

Demo | Download

3. Join Me 1.0

Demo | Download

4. Photo Portfolio 1.0

Demo | Download

5. Randy Candy

Demo | Download

6. Piano Black

Demo | Download

7. Dragonskin

Demo | Download

8. The Scenery

Demo | Download

9. Dreamline

Demo | Download

10. Beardsley

Demo | Download

11. Easy Black WordPress Theme

Demo | Download

12. FMulti WordPress Theme

Demo | Download

13. BlacknBlue WordPress Theme

Demo | Download

14. Darkened Waters WordPress Theme

Demo | Download

15. Hemingway WordPress Theme

Demo | Download

how to work with multidimensional array in php

If you are programmer then you dont need introduction of array. In every language array is the most important part.

how to work with multidimensional array in php

Using array we can achieve so many things and array is useful for so many times when we do programming.
In this article I am going to share some method about PHP array.

What is PHP array?
An array in PHP is actually an ordered map. A map is a type that associates values to keys. This type is optimized for several different uses; it can be treated as an array, list (vector), hash table (an implementation of a map), dictionary, collection, stack, queue, and probably more. As array values can be other arrays, trees and multidimensional arrays are also possible.

Following is syntax
array(key => value)

Creating PHP array:

<?php
$arr = array("str_arr" => "this is string", 25 => true);

echo $arr["str_arr"]; // print this is string
echo $arr[25];&nbsp;&nbsp;&nbsp; // print ture
?>

How to print direct PHP array.

<?php
$arr=array("a"=>"jimi","b"=>"timi","c"=>"limi");
print_r($arr);
?>

How to print PHP array preformated

<?php
$arr=array("a"=>"jimi","b"=>"timi","c"=>"limi");
print_r("<pre>".$arr);
?>

How to create a two-dimensional PHP array

<?php
$arr = array (
 "fruits"&nbsp; => array("a" => "orange", "b" => "banana", "c" => "apple"),
 "numbers" => array(1, 2, 3, 4, 5, 6),
 "holes"&nbsp;&nbsp; => array("first", 5 => "second", "third")
);
print_r("<pre>".$arr);
?>

How to create an array from MySql table

<?
function cre_array($row) {
 foreach($row as $key => $value) {
 global $$key;
 $$key = $value;
 }
}

//User table has first_name field present.

$sql = mysql_query("SELECT * FROM 'users'");
while ($row = mysql_fetch_assoc($sql)) {
 cre_array($row);
 echo $first_name.'<br>'; //instead of $row['first_name']
}

?>

How to count PHP array count

$fruits = array("a" => "orange", "b" => "banana", "c" => "apple");
echo sizeof($fruits);
echo $arrayLength = count($fruits);

PHP and MySql and Array

<?php
$sql = "SELECT key,value FROM table";
$result = mysql_query($sql);
while($row = mysql_fetch_row($result)) {
$myArray[$row[0]] = $row[1];
}

while(list($key,$value) = each($myArray)) {
echo "$key : $value";
}
?>

Following image will help you to understand two dimensional array.

How to work with PHP array
How to work with PHP array

why wordpress was down for 110 minutes

On 19th Feb 2010 we all faced the wordpress down and that affected the 10.2 million blogs. why wordpress was down for some time on 19th 2010 due to huge amount traffic.

That is really huge amount of blogs and page views missed by wordpress. On that day itself Matt who is founder of wordpress is came up with reason. That is really great relief and news to all bloggers of wordpress.

why wordpress was down
why wordpress was down

As Per Matt:  It appears an unscheduled change to a core router by one of our datacenter providers messed up our network in a way we haven’t experienced before, and broke the site. It also broke all the mechanisms for failover between our locations in San Antonio and Chicago. All of your data was safe and secure, we just couldn’t serve it.

What we’re doing: We need to dig deeper and find out exactly what happened, why, and how to recover more gracefully next time and isolate problems like this so they don’t affect our other locations.

I will update this post as we find out more, and have a more concrete plan for the future.

I know this sucked for you guys as much as it did for us — the entire team was on pins and needles trying to get your blogs back as soon as possible. I hope it will be much longer than four years before we face a problem like this again.

how to use soap with php

SOAP is a best technology that can help you in developing web services and amazing applications. Here in this article how you can use the soap with php. You need code in defensive style always and always add the null check and try catch in code. soap is very useful and safe to use for cros domain communication.

how to use soap with php

Many times we heard about soap but we really don’t know about what is soap.

What is soap?

SOAP, the Simple Object Access Protocol, is the powerhouse of web services. It’s a highly adaptable, object-oriented protocol that exists in over 80 implementations on every popular platform, including AppleScript, JavaScript, and Cocoa. It provides a flexible communication layer between applications, regardless of platform and location. As long as they both speak SOAP, a PHP-based web application can ask a C++ database application on another continent to look up the price of a book and have the answer right away. Another Internet Developer article shows how to use SOAP with AppleScript and Perl.

If you want to use the soap then you need to install libxml on your server. In your PHP.ini file

you need to check following setting are available or not if not then put it.

soap.wsdl_cache_enabled 1 PHP_INI_ALL
soap.wsdl_cache_dir /tmp PHP_INI_ALL
soap.wsdl_cache_ttl 86400 PHP_INI_ALL
soap.wsdl_cache 1 PHP_INI_ALL
soap.wsdl_cache_limit 5 PHP_INI_ALL

SOAP is an XML-based web service protocol. The most common external specifications used by a SOAP-based service is WSDL to describe its available services, and that, in turn, usually relies on XML Schema Data (XSD) to describe its data types. In order to “know” SOAP, it would be extremely useful to have some knowledge of WSDL and XSD. This will allow one to figure out how to use the majority of SOAP services.

Here is the basic WSDL Structure



 
 …
 
 
 …
 
 
 …
 
 
 …
 
 

Filled example:

 
 
 
 
 
 
 
 
 
 
 
 
 

Soap is nothing but xml format web service to talk with cross domain servers. There are other ways also to create web services. XML-RPC is good one and that is not too much hard to learn also. Use can use following code in your PHP file.

[viral-lock message=”Solution code is Hidden! It’s Visible for Users who Liked/Shared This article on Facebook or Twitter or Google+. Like or Tweet this article to reveal the content.”]


// create a soap object
 $Soap_Object = new SoapClient("http://anywebsite.com/any.wsdl", array('trace' => true));

 // setting params to authenticate to web service
 $params_Authenticate = array('username' => 'username', 'password' => 'password');

 // authenticate to web service
 $do_login=&nbsp; $Soap_Object->login($params_Authenticate);

 // take sesstion id from anywebsite.com
 $your_session_id= $do_login->loginReturn->sessionId;

 // Set the query parameters.

 $soap_query = 'select book_id from Time where book = 52435455';
 paramsQry = array('queryString' => $soap_query);

 // Make a soap call.
 $objResponse = $Soap_Object->query(paramsQry);

 header('Content-Type: text/xml; ');
 print($Soap_Object->__getLastRequest());

[/viral-lock]
Soap is nothing but a web service with xml so use PHP functions to create the Soap service. Following graph will help you to understand more and in detail about SOAP.

how to use soap with php
how to use soap with php