Google

Flickr Integration

Submitted by Ravindra on Tue, 2008-01-29 03:13.

Finally i was able to enable the Flickr integration in my site. I wrote the code for this about one year back and worked fine in my local machine. But the hosting service did not have PHP5 and PHP CURL which was required for the code i wrote. Actually i did not have to write much code thanks to flickr_api.php Rasmus has donated.
http://toys.lerdorf.com/archives/34-Flickr-API-Fun.html

Any way many thanks to my host for moving to PHP 5 and enabling PHP CURL for me. N

permalink

2 GB file limit and MySQL

Submitted by Ravindra on Sat, 2008-01-26 02:52.

Recently i experienced this issue and thought of blogging it.
we were using adodb for database abstraction and had enabled logging.
The error that was given by adodb was like
"LOGSQL Insert Failed : insert into adodb_logsql ..." i have not put the entire SQL there and "Incorrect key file for table yyy.MYI; try to repair it". yyy is a fictional table name.

In this case the server was running linux and the file system had a 2GB limit for a file.

permalink

PHP references

Submitted by Ravindra on Thu, 2008-01-24 10:44.

one common pitfall about PHP references is that , many assume them to behave just like C pointers, when they are not.

for example
$p1 = "my name";

$p2 =& $p1;
this has an identical affect to that in C ,because you can use both p1 and p2 modify the same value.

how ever
$p3= & $p2

p3 here not an pointer to p2 , but rather a pointer to data that p2 points. Thus p3 and p2 are at the same level.

any way passing by reference is also deprecated thus you might be interested in functions like

permalink