How to disable php_pdf.dll ?

General discussion about netjukebox
Post Reply
psebastijan

How to disable php_pdf.dll ?

Post by psebastijan »

Hello,

This software seems to be meant for running on Windows..?
I wish to run it on a Linux box, once installed, it comes up with following error:

PDF extension not loaded

Enable php_pdf.dll in the php.ini

Restart webserver

There isn't such a line on my php.ini (on a lunux machine) and it makes sense, Linux does not use dlls.

So, how does one disable that requirement?

Also, I see that you had some posts on getID3 regarding embedded images. To that end, do you have a separate table in MySQL for images, or do you just call it right from the file itself in your PHP code?

Any help would be appreciated.
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: How to disable php_pdf.dll ?

Post by wbartels »

psebastijan wrote:Hello,

This software seems to be meant for running on Windows..?
I wish to run it on a Linux box, once installed, it comes up with following error:

PDF extension not loaded

Enable php_pdf.dll in the php.ini

Restart webserver

There isn't such a line on my php.ini (on a lunux machine) and it makes sense, Linux does not use dlls.
I haven't tested netjukebox on Linux.
Please let me know if you get it to work on Linux.

If you compile php with PDF support you should not get that message.
A quick work around is to disable PDF checking in initialize.inc.php:

Code: Select all

//if (!extension_loaded('pdf'))	message('error', '<strong>PDF extension not loaded</strong><br><li>Enable php_pdf.dll in the php.ini</li><br><li>Restart webserver</li>');
psebastijan wrote:Also, I see that you had some posts on getID3 regarding embedded images. To that end, do you have a separate table in MySQL for images, or do you just call it right from the file itself in your PHP code?
I have a separate table for images.
Only downsampled images from 50x50 100x100 and 200x200 are stored in the database.
For cd_front and cd_back there are links in the database.

You can read from the changelog (netjukebox 3.64) that images can be read from APIC in a ID3V2 tag:

Code: Select all

New: Web interface images can alternatively be read from an embedded image (APIC in a ID3V2 tag).
Update now search for web interface images in this order:
image.jpg > folder.jpg > cd_front.jpg > embedded image > default image (no image available)
(thanks: guest) 
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

Most of the code should work on Linux.
I only expect a few problems with slashes and backslashes.

You have to disable line 109 and 167 from stream.php (netjukebox 3.67)

Code: Select all

109: //$file  = str_replace('/', '\\', $file);
167: //$file  		= str_replace('/', '\\', $file);
If it works with some changes, I can make the code Linux compatible with os detection (PHP_OS constant).
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Post by wbartels »

I have made some changes to netjukebox.
It now uses slash or backslash depending on the operating system.
Let me know if streaming and or Winamp + httpQ playback works correctly.

http://www.netjukebox.nl/download/netju ... velop2.zip

PS
Favorites streaming is NOT ready yet.
Post Reply