Libgpod, etc.

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

Libgpod, etc.

Post 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?
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

death to ipod!
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Daedalus- wrote:death to ipod!
This is simply not neccesary.. :?
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

Post 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?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

Post by Todd_Z »

how do i get the commands from a .so file?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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 ;)
Post Reply