php-general Digest 19 Aug 2008 08:19:02 -0000 Issue 5632

Topics (messages 278292 through 278295):

pdo compilation question
        278292 by: Tim Rupp

Re: PHP editor for linux
        278293 by: Pavel

Re: Tool Tip in pdf
        278294 by: Subhranil

Re: Negative Look Ahead Regex - Code Mistake or Bug?
        278295 by: Jochem Maas

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Hi list, I hope this is the right area to ask,

I'm trying to compile PDO support in 5.2.6 and am following the
instructions here

http://us2.php.net/manual/en/pdo.installation.php

My compile line is the following



./configure  --enable-force-cgi-redirect \
        --disable-rpath \
        --with-bz2 \
        --with-db4=/usr \
        --with-curl \
        --with-gd \
        --enable-gd-native-ttf \
        --without-gdbm \
        --with-gettext \
        --with-ncurses \
        --with-gmp \
        --with-iconv \
        --with-openssl \
        --with-regex=system \
        --with-zlib \
        --with-layout=GNU \
        --enable-bcmath \
        --enable-exif \
        --enable-ftp \
        --enable-magic-quotes \
        --enable-sockets \
        --enable-sysvsem \
        --enable-sysvshm \
        --enable-wddx \
        --with-kerberos \
        --with-ldap=shared \
        --with-mysql=shared \
        --enable-mbstring=all \
        --with-apxs2=/usr/sbin/apxs \
        --with-pgsql=shared \
        --with-mysqli \
        --with-freetype-dir=/usr/include/freetype2 \
        --with-mcrypt \
        --enable-soap \
        --enable-pcntl \
        --enable-pdo=shared \
        --with-sqlite=shared \
        --with-pdo-sqlite=shared \
        --with-pdo-mysql=shared \
        --with-pdo-pgsql=shared \
        --with-pdo-oci=shared


This config line I'm working with has been a growing one, so there may
be some things here that may or may not be needed. Anyway, Upon
compiling the above, I get the following error when I do a php -m



Warning: PHP Startup: Invalid library (maybe not a PHP library)
'pdo.so'  in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20060613/pdo_mysql.so' -
/usr/local/lib/php/20060613/pdo_mysql.so: undefined symbol:
php_pdo_get_dbh_ce in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20060613/pdo_pgsql.so' -
/usr/local/lib/php/20060613/pdo_pgsql.so: undefined symbol:
php_pdo_register_driver in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20060613/pdo_sqlite.so' -
/usr/local/lib/php/20060613/pdo_sqlite.so: undefined symbol:
php_pdo_register_driver in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20060613/sqlite.so' -
/usr/local/lib/php/20060613/sqlite.so: undefined symbol:
php_pdo_register_driver in Unknown on line 0





I've included the extensions in my php.ini file, but I'm completely
lost on where to go from here because the error is less than helpful.
The order that I've included them is

extension=pdo.so
extension=pdo_mysql.so
extension=pdo_pgsql.so
extension=pdo_sqlite.so
extension=sqlite.so


and they do exist, as shown here


-rwxr-xr-x  1 root root  364012 May 14  2007 apc.so
-rwxr-xr-x  1 root root  102531 Aug 18 14:25 ldap.so
-rwxr-xr-x  1 root root  120644 Aug 18 14:25 mysql.so
-rwxr-xr-x  1 root root  270860 Nov 13  2006 oci8.so
-rwxr-xr-x  1 root root  125246 Aug 18 14:25 pdo_mysql.so
-rwxr-xr-x  1 root root  100772 Aug 18 14:25 pdo_oci.so
-rwxr-xr-x  1 root root  111246 Aug 18 14:25 pdo_pgsql.so
-rwxr-xr-x  1 root root  270276 Aug 18 14:25 pdo.so
-rwxr-xr-x  1 root root 1370516 Aug 18 14:25 pdo_sqlite.so
-rwxr-xr-x  1 root root  235943 Aug 18 14:25 pgsql.so
-rwxr-xr-x  1 root root 1010437 Aug 18 14:25 sqlite.so
-rwxr-xr-x  1 root root  598407 Jan 29  2008 xdebug.so


I'm using RHEL 4, and have installed the sqlite-devel, but I think php
is choosing to use the sqlite that comes with it???? I'm hoping
someone on the list can point me in the right direction.

Thanks in advance,
Tim

--- End Message ---
--- Begin Message ---
I use Zend Studio (shareware, but i couldn't find better things). There are 
some plugins for Eclipse,but if you used Zend before, you will be cunfused by 
that plugins...

P.S. Sorry for my English...


-- 
===============
С уважением, Манылов Павел aka [R-k]
icq: 949-388-0
mailto:[EMAIL PROTECTED]
===============
А ещё говорят так:
В каждом толстом человеке сидит худой и требует, чтобы его выпустили.
                -- Сирил Коннолли
[fortune]

--- End Message ---
--- Begin Message ---
Hi Micah,
Sorry for late reply. Actually 15th August is our INDEPENDENCE DAY and I was
out of work.
I am a newbie. I have very little knowledge about pdf. Could you please give
some tip for wraping the text

Thanks,
Subhranil. 



Micah Gersten wrote:
> 
> Why not wrap the text?
> 
> Thank you,
> Micah Gersten
> onShore Networks
> Internal Developer
> http://www.onshore.com
> 
> 
> 
> Subhranil wrote:
>> Hi all,
>>
>> I am creating a pdf where text size of cell is not fixed.
>> My problem is if one text is too long than that cell then it overlap the
>> next cell.
>>
>> I wish to show the part of the text which are loneger than cell size and
>> put
>> a tool tip on that cell which show the complete text.
>>
>> Is it possible ? Looking for any suggestion.
>>
>> Thanks,
>> Subhranil.
>>   
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tool-Tip-in-pdf-tp18980527p19045252.html
Sent from the PHP - General mailing list archive at Nabble.com.


--- End Message ---
--- Begin Message ---
Cameron B. Prince schreef:
Hello,

I¹ve run into a problem with a regex and need help determining if this is my
mistake or a bug. The regex is for inserting a SID into every link in the
buffer before it¹s flushed, but only when each link doesn¹t already have a
SID.

1. you really shouldn't be stuffing session IDs into URLs (but you may not have 
that choice)
2. you should let php take care of this by activating the ini setting 
session.use_trans_sid
(but you may have reasons not to)


An example of the code is here:

$buffer = preg_replace('/"http\:\/\/www\.domain\.com([\/\w\.-]*)(?!\?PHPSESSID\=2u0cca
ffoh6jaeapkke35qpp87;?)/',
'"http://www.domain.com$1?PHPSESSID=t9gksvpdcuobsnqt98qloe6lg4;', $buffer);

The code works correctly in most cases except when a SID already exists and
there is a path after the .com such as:

http://www.domain.com/path1/path2.php?PHPSESSID=2u0ccaffoh6jaeapkke35qpp87;

When this URL is processed by the regex, it becomes:

http://www.domain.com/path1/path2.ph?PHPSESSID=t9gksvpdcuobsnqt98qloe6lg4;p?
PHPSESSID=2u0ccaffoh6jaeapkke35qpp87;


So the problem is the regex not only falsely matches, it's inserting the SID
in between 2nd and 3rd letters of the extension.

You can see the code in action here:

http://kottmann.com/test.php

The full source for the test code is also available when viewing the source
of this page.

I've tested this on PHP v5.1.6 and PHP v5.2.6.

TIA,
Cameron










--- End Message ---

Reply via email to