It is Bip Bip Bipool

October 23, 2007

Ajax Limitation

Filed under: ajax — bipool @ 22:23

Today I faced a problem, when i was using AJAX for saving data from a page. But I was getting always script error. But I could not find out , what was the problem . After sometimes, I got the problem. The problem was ajax can not submit more than 2KB data.

Then I break out the data and send those data by using multiple ajaxing. And then that was working fine :)

October 22, 2007

PHP : usort function

Filed under: Uncategorized — bipool @ 16:57

Before somedays , I was working on sorting issue. I was using usort function. In this function, you can define sort criteria. Here you can send 2 variable as parameter , then write ascending or descending or any criteria .

I was using this and I had multi-dimensional array . Thats why, I was writing in the body part of the usort like following
$a[0] > $b[0]

And this way, It is working fine.

But When I using a variable instead of hard code ’0′ like following

$index = 0;

$a[$index] > $b[$index]

It is not working. It is not accepting variable here.

Then I was trying to use ‘create_function()’ where i was using variable and thats work really fine

Thanks

Theme: Banana Smoothie. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.