[PHP] Need help with PDFlib under Linux
First some background. I have two servers: 1) Windows XP with Apache 1.3.26 and PHP 4.2.2 2) GNU/Linux with Apache 1.3.26 and PHP 4.2.3 compiled in statically Both are working well, but I now want to add PDFlib support to both servers. On the win32 machine it was as easy as uncommenting out php_pdf.dll line in php.ini and it was working great. What is the best/easiest way to get PDFlib working on my Linux server? I don't have PDFlib itself installed on EITHER system (other than the precompiled DLL on Windows). Does the PHP source come with all the code necessary to compile php_pdf.so or do I need to install PDFlib, libtiff, libjpeg, libpng, libzall from their respective sources in order to do this? Thanks. -- Cameron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Arrays misbehaving!
Can anyone explain why the following code operates the way it does in my comments? ?php $test = array ( 'a' = 'A', 'b' = 'B', 'c' = 'C'); if (array_key_exists(2, $test)) echo It works by key number!; // Does not work. if (array_key_exists('c', $test)) echo It works by key name!; // Works. print_r(array_keys($test));// outputs Array ( [0] = a [1] = b [2] = c ) ? Any ideas? According to the documentation, it seems like I should be able to access any key in the array by either name or number (which is what I want to do). -- Cameron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Arrays misbehaving!
That does help, yes. So basically there is no way to access associative arrays using numerical indices? I was hoping I could access by either name OR number, but apparently not. Thanks! -- Cameron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php