Page 1 of 1

Libgpod, etc.

Posted: Wed Jun 14, 2006 12:37 pm
by Todd_Z
I am looking to be able to write my own scripts to install my songs and artwork onto my ipod, using a crontab every night. I would like to use Libgpod, how can I use a library like that in php scripts?

Posted: Wed Jun 14, 2006 2:01 pm
by daedalus__
death to ipod!

Posted: Wed Jun 14, 2006 2:04 pm
by John Cartwright
Daedalus- wrote:death to ipod!
This is simply not neccesary.. :?

Posted: Wed Jun 14, 2006 2:11 pm
by Todd_Z
so besides for that constructive advice... is it possible to port any .so or .dll into a php usable form? or.... what?

Posted: Wed Jun 14, 2006 3:12 pm
by pickle
I haven't done much research into libgpod in particular, but you could just call shell commands via PHP & use the library that way.

Posted: Wed Jun 14, 2006 4:38 pm
by Todd_Z
how do i get the commands from a .so file?

Posted: Thu Jun 15, 2006 9:46 am
by pickle
Todd_Z wrote:how do i get the commands from a .so file?
Hmmm, not sure. The documentation wasn't extremely helpful. I downloaded the source (not a .so file) & it looks like it creates files in /usr/local/bin/. I don't have a personal Linux box to install this on so I'm not sure exactly what it'll install. There's probably something you can use in there though.

Posted: Thu Jun 15, 2006 6:42 pm
by Chris Corbyn
Can you program in C? .so is a shared object file (a library). You could write a PHP extension that makes use of that. There are quite few tutorials on writing PHP extensions ;)