Closed Thread Icon

Topic awaiting preservation: PHP Compile on Windows Pages that link to <a href="https://ozoneasylum.com/backlink?for=26673" title="Pages that link to Topic awaiting preservation: PHP Compile on Windows" rel="nofollow" >Topic awaiting preservation: PHP Compile on Windows\

 
Author Thread
Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 09-16-2005 22:41

Now, I realise that there are a lot of resources for this around, but I'm looking to include a specific thing in my compile, and for the life of me I cannot figure out how to do it. I need to compile PHP with ID3 support, to read ID3 tags out of some MP3 files my script will be handling. Aside from that I've got to remember how to do file uploads with XHTML forms and PHP processing, to put the files in a specific location, then use my ID3 functions to read out their tags for database entry. Any help anyone can offer on either of these points would be greatly appreciated.


Justice 4 Pat Richard

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 09-17-2005 00:23

I have no idea why you need to compile php with id3 support - there are pure php classes around that do id3 tags.
here's one: http://www.phpclasses.org/browse/package/1440.html

As for forms, read the doc ;-). It's pretty clear, and XHTML (1.0 and transitional) forms are pretty much like standard html forms.

code:
<form method="POST" enctype="multipart/form-data" action="myscript.php">
<input type="file" id="myfile" />
<input type="submit" />
</form>

myscript.php:
if (!empty($FILES['myfile']) && is_uploaded_file($FILES['myfile']['tmp_name')
   $bResult = copy($FILES['myfile']['tmp_name'],$strNewFilename);



so long,

->Tyberius Prime

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 09-17-2005 00:30

From what I have read you should be able to download the PHP source and then put the ID3 in the directory /ext/ (or on mine it is extensions)
and then compile PHP using --enable-id3

I have never compiled php on windows from the source so I can't say for sure. Just have to install Apache and PHP both instead of getting an all in one package like phpDev

Later,

C:\

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 09-17-2005 01:19

Yes, TP, I know of those classes... the only problem with them is that they need PHP's inner php->id3_get_tag() function and the others of its class to function, hence why PHP needs to be recompiled with ID3 support. Or so I'm told anyway.


Justice 4 Pat Richard

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 09-17-2005 10:40

I know for a fact that the class I linked does not use the php id3 extension.

On windows, you should first check if your php installations doesn't have a matching id3 dll - and then just load that via the extension statement in your php.ini (or easier, locate the commented line in your php ini and just try it).

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 09-17-2005 13:50

You're quite right TP, I apologise. That one you licked to didn't help me, however i did get my hands on http://getid3.sourceforge.net and that did. Thanks guys.


Justice 4 Pat Richard

« BackwardsOnwards »

Show Forum Drop Down Menu