Re: [PHP] Lucene library

2012-12-13 Thread Larry Garfield

Ah ha.  Did that ever get ported to Zend 2?

--Larry Garfield

On 12/12/12 12:07 AM, Louis Huppenbauer wrote:

There's Zend_Search_Lucene, part of the Zend framework. I think it should
be possible to use it without the whole framework though.

http://framework.zend.com/manual/1.12/de/zend.search.lucene.html


2012/12/12 Larry Garfield la...@garfieldtech.com


Yes, I've worked with Apache Solr quite a bit.  It's a separate server,
however, and I'm looking for something with smaller requirements for a
concept I want to try. I'd consider SQLite, but I really need something
schema-free and PHP-native/easily-installable.

--Larry Garfield


On 12/11/2012 07:20 PM, israele...@gmail.com wrote:


Check out apache solr.

The php implementation of Lucene was very slow and had a lot of
perfomance issues the last time I tried it
--Original Message--
From: Larry Garfield
To: php-general@lists.php.net
Subject: [PHP] Lucene library
Sent: Dec 11, 2012 5:41 PM

Hi all.

I recall hearing about there being a PHP port of the Lucene library some
years ago, but I don't recall whence it came.  It was a stand-alone PHP
lib, which needed some integration to be viable as an actual search
engine but worked up to a point by storing data straight on disk as
files.  That meant it didn't scale beyond a few tens of thousands of
records, but that's still a decent number.

Does that ring a bell for anyone?  Anyone know if it still exists, and
if so where?  I didn't find it in https://packagist.org/ , which is
where I figured it would be if it were still maintained.

I may have a use for it if it still exists.

--Larry Garfield




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Lucene library

2012-12-12 Thread ma...@behnke.biz


Louis Huppenbauer louis.huppenba...@gmail.com hat am 12. Dezember 2012 um
07:07 geschrieben:
 There's Zend_Search_Lucene, part of the Zend framework. I think it should
 be possible to use it without the whole framework though.

 http://framework.zend.com/manual/1.12/de/zend.search.lucene.html


see
http://www.phpgangsta.de/die-eigene-suchmaschine-in-php-leicht-gemacht-lucene



 2012/12/12 Larry Garfield la...@garfieldtech.com

  Yes, I've worked with Apache Solr quite a bit.  It's a separate server,
  however, and I'm looking for something with smaller requirements for a
  concept I want to try. I'd consider SQLite, but I really need something
  schema-free and PHP-native/easily-installable.
 
  --Larry Garfield
 
 
  On 12/11/2012 07:20 PM, israele...@gmail.com wrote:
 
  Check out apache solr.
 
  The php implementation of Lucene was very slow and had a lot of
  perfomance issues the last time I tried it
  --Original Message--
  From: Larry Garfield
  To: php-general@lists.php.net
  Subject: [PHP] Lucene library
  Sent: Dec 11, 2012 5:41 PM
 
  Hi all.
 
  I recall hearing about there being a PHP port of the Lucene library some
  years ago, but I don't recall whence it came.  It was a stand-alone PHP
  lib, which needed some integration to be viable as an actual search
  engine but worked up to a point by storing data straight on disk as
  files.  That meant it didn't scale beyond a few tens of thousands of
  records, but that's still a decent number.
 
  Does that ring a bell for anyone?  Anyone know if it still exists, and
  if so where?  I didn't find it in https://packagist.org/ , which is
  where I figured it would be if it were still maintained.
 
  I may have a use for it if it still exists.
 
  --Larry Garfield
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 

--
Marco Behnke
Dipl. Informatiker (FH), SAE Audio Engineer Diploma
Zend Certified Engineer PHP 5.3

Tel.: 0174 / 9722336
e-Mail: ma...@behnke.biz

Softwaretechnik Behnke
Heinrich-Heine-Str. 7D
21218 Seevetal

http://www.behnke.biz

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Lucene library

2012-12-11 Thread Larry Garfield

Hi all.

I recall hearing about there being a PHP port of the Lucene library some 
years ago, but I don't recall whence it came.  It was a stand-alone PHP 
lib, which needed some integration to be viable as an actual search 
engine but worked up to a point by storing data straight on disk as 
files.  That meant it didn't scale beyond a few tens of thousands of 
records, but that's still a decent number.


Does that ring a bell for anyone?  Anyone know if it still exists, and 
if so where?  I didn't find it in https://packagist.org/ , which is 
where I figured it would be if it were still maintained.


I may have a use for it if it still exists.

--Larry Garfield

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Lucene library

2012-12-11 Thread israelekpo
Check out apache solr.

The php implementation of Lucene was very slow and had a lot of perfomance 
issues the last time I tried it
--Original Message--
From: Larry Garfield
To: php-general@lists.php.net
Subject: [PHP] Lucene library
Sent: Dec 11, 2012 5:41 PM

Hi all.

I recall hearing about there being a PHP port of the Lucene library some 
years ago, but I don't recall whence it came.  It was a stand-alone PHP 
lib, which needed some integration to be viable as an actual search 
engine but worked up to a point by storing data straight on disk as 
files.  That meant it didn't scale beyond a few tens of thousands of 
records, but that's still a decent number.

Does that ring a bell for anyone?  Anyone know if it still exists, and 
if so where?  I didn't find it in https://packagist.org/ , which is 
where I figured it would be if it were still maintained.

I may have a use for it if it still exists.

--Larry Garfield

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Sent via BlackBerry from T-Mobile

Re: [PHP] Lucene library

2012-12-11 Thread Larry Garfield
Yes, I've worked with Apache Solr quite a bit.  It's a separate server, 
however, and I'm looking for something with smaller requirements for a 
concept I want to try. I'd consider SQLite, but I really need something 
schema-free and PHP-native/easily-installable.


--Larry Garfield

On 12/11/2012 07:20 PM, israele...@gmail.com wrote:

Check out apache solr.

The php implementation of Lucene was very slow and had a lot of perfomance 
issues the last time I tried it
--Original Message--
From: Larry Garfield
To: php-general@lists.php.net
Subject: [PHP] Lucene library
Sent: Dec 11, 2012 5:41 PM

Hi all.

I recall hearing about there being a PHP port of the Lucene library some
years ago, but I don't recall whence it came.  It was a stand-alone PHP
lib, which needed some integration to be viable as an actual search
engine but worked up to a point by storing data straight on disk as
files.  That meant it didn't scale beyond a few tens of thousands of
records, but that's still a decent number.

Does that ring a bell for anyone?  Anyone know if it still exists, and
if so where?  I didn't find it in https://packagist.org/ , which is
where I figured it would be if it were still maintained.

I may have a use for it if it still exists.

--Larry Garfield




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Lucene library

2012-12-11 Thread Louis Huppenbauer
There's Zend_Search_Lucene, part of the Zend framework. I think it should
be possible to use it without the whole framework though.

http://framework.zend.com/manual/1.12/de/zend.search.lucene.html


2012/12/12 Larry Garfield la...@garfieldtech.com

 Yes, I've worked with Apache Solr quite a bit.  It's a separate server,
 however, and I'm looking for something with smaller requirements for a
 concept I want to try. I'd consider SQLite, but I really need something
 schema-free and PHP-native/easily-installable.

 --Larry Garfield


 On 12/11/2012 07:20 PM, israele...@gmail.com wrote:

 Check out apache solr.

 The php implementation of Lucene was very slow and had a lot of
 perfomance issues the last time I tried it
 --Original Message--
 From: Larry Garfield
 To: php-general@lists.php.net
 Subject: [PHP] Lucene library
 Sent: Dec 11, 2012 5:41 PM

 Hi all.

 I recall hearing about there being a PHP port of the Lucene library some
 years ago, but I don't recall whence it came.  It was a stand-alone PHP
 lib, which needed some integration to be viable as an actual search
 engine but worked up to a point by storing data straight on disk as
 files.  That meant it didn't scale beyond a few tens of thousands of
 records, but that's still a decent number.

 Does that ring a bell for anyone?  Anyone know if it still exists, and
 if so where?  I didn't find it in https://packagist.org/ , which is
 where I figured it would be if it were still maintained.

 I may have a use for it if it still exists.

 --Larry Garfield



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Install library

2010-09-17 Thread Ashley Sheridan
On Fri, 2010-09-17 at 15:37 +0200, Jordan Jovanov wrote:

 Hello everybody,
 
 I like to create same PDF file with PHP, i find that i must to install 
 something like PDFLib but i can't how to istall on linux. Does somebody 
 can help me.
 
 Thanks a lot.
 Jordan
 


When you asked this question earlier in the week under another subject I
answered that the FPDF library would help you with creating pdf
documents via PHP.

Thanks,
Ash
http://www.ashleysheridan.co.uk




[PHP] Install library

2010-09-15 Thread Jordan Jovanov

Hello All,

I have one very funny question. A need me PDFlibrary.
Can somebody tall me how can I download and install on my server this 
library. I use PuTTy to connect to my server.

Does somebody know the command line for download in istall library in php.

Thanks a lot.

Best Regards,
Jordan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Install library

2010-09-15 Thread Ashley Sheridan
On Wed, 2010-09-15 at 15:16 +0200, Jordan Jovanov wrote:

 Hello All,
 
 I have one very funny question. A need me PDFlibrary.
 Can somebody tall me how can I download and install on my server this 
 library. I use PuTTy to connect to my server.
 Does somebody know the command line for download in istall library in php.
 
 Thanks a lot.
 
 Best Regards,
 Jordan
 


I assume you mean the PDFLibrary that is offered as an SDK from Adobe?
I'm also assuming a Linux server if you're using Putty to connect.

Are these assumptions right? If they are, then I don't think you'll have
much luck. You can't just plug in any old thing into PHP and have it
work. Have you maybe considered using something like fpdf instead, which
is written in PHP and can produce PDF documents with just a small amount
of code.

Thanks,
Ash
http://www.ashleysheridan.co.uk




[PHP] Snoopy port using PHP cURL library

2010-08-09 Thread Marc Guay
Does anyone know if the Snoopy class has been ported to use the
built-in PHP cURL library and released publicly somewhere?

Marc

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Snoopy port using PHP cURL library

2010-08-09 Thread Marc Guay
 Does anyone know if the Snoopy class has been ported to use the
 built-in PHP cURL library and released publicly somewhere?


I converted it myself.  If anyone's interested the class is attached.

Marc

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP GUI library/package

2010-03-31 Thread Pete Ford

Hi All,

I have a web project built in PHP which we want to break out part of into a 
stand-alone GUI program. The architecture is fine - display nicely separated 
from logic, so coding is not a problem.
What I can't work out is what to use for the GUI part. I looked at phpqt but I 
can't (yet) get that to build on my Linux dev system, let alone code an 
interface with it. I was also looking a PHP-GTK2, but I'm not sure how 
cross-platform it would be - this should run on Windows and Macs as well as Linux...


Anyone made a GUI PHP application like this, with one of the major toolkits?

Cheers
Pete

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP GUI library/package

2010-03-31 Thread Ashley Sheridan
On Wed, 2010-03-31 at 15:30 +0100, Pete Ford wrote:

 Hi All,
 
 I have a web project built in PHP which we want to break out part of into a 
 stand-alone GUI program. The architecture is fine - display nicely separated 
 from logic, so coding is not a problem.
 What I can't work out is what to use for the GUI part. I looked at phpqt but 
 I 
 can't (yet) get that to build on my Linux dev system, let alone code an 
 interface with it. I was also looking a PHP-GTK2, but I'm not sure how 
 cross-platform it would be - this should run on Windows and Macs as well as 
 Linux...
 
 Anyone made a GUI PHP application like this, with one of the major toolkits?
 
 Cheers
 Pete
 


I think as far as compatibility goes, QT is your best bet. What is
preventing you from getting that build onto your dev system?

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] PHP GUI library/package

2010-03-31 Thread Pete Ford

On 31/03/10 15:30, Ashley Sheridan wrote:

On Wed, 2010-03-31 at 15:30 +0100, Pete Ford wrote:


Hi All,

I have a web project built in PHP which we want to break out part of into a
stand-alone GUI program. The architecture is fine - display nicely separated
from logic, so coding is not a problem.
What I can't work out is what to use for the GUI part. I looked at phpqt but I
can't (yet) get that to build on my Linux dev system, let alone code an
interface with it. I was also looking a PHP-GTK2, but I'm not sure how
cross-platform it would be - this should run on Windows and Macs as well as 
Linux...

Anyone made a GUI PHP application like this, with one of the major toolkits?

Cheers
Pete




I think as far as compatibility goes, QT is your best bet. What is
preventing you from getting that build onto your dev system?

Thanks,
Ash
http://www.ashleysheridan.co.uk




Two pints at lunchtime, mainly :)

I need to focus on it a bit better: I'll have another look and ask again if I 
still have trouble.


Cheers
Pete

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP GUI library/package

2010-03-31 Thread Richard Quadling
On 31 March 2010 15:48, Pete Ford p...@justcroft.com wrote:
 Two pints at lunchtime, mainly :)

Excellent reason to not do any coding today.

Makes tomorrow less of a revert commit day.



-- 
-
Richard Quadling
Standing on the shoulders of some very clever giants!
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP GUI library/package

2010-03-31 Thread Pete Ford

On 31/03/10 15:30, Ashley Sheridan wrote:

On Wed, 2010-03-31 at 15:30 +0100, Pete Ford wrote:


Hi All,

I have a web project built in PHP which we want to break out part of into
a stand-alone GUI program. The architecture is fine - display nicely
separated from logic, so coding is not a problem. What I can't work out is
what to use for the GUI part. I looked at phpqt but I can't (yet) get that
to build on my Linux dev system, let alone code an interface with it. I was
also looking a PHP-GTK2, but I'm not sure how cross-platform it would be -
this should run on Windows and Macs as well as Linux...

Anyone made a GUI PHP application like this, with one of the major
toolkits?

Cheers Pete




I think as far as compatibility goes, QT is your best bet. What is preventing
you from getting that build onto your dev system?

Thanks, Ash http://www.ashleysheridan.co.uk





Not all down to the beer.
I unpacked the php-qt-0.9.tar.gz and made a build directory in there, ran cmake
(which seemed to go OK), but make fails at
[  8%] Building CXX object smoke/qt/CMakeFiles/smokeqt.dir/x_2.o

with a bunch of errors like

/home/pete/phpqt/build/smoke/qt/x_2.cpp: In static member function ‘static void
x_QAccessibleBridgeFactoryInterface::x_0(Smoke::StackItem*)’:
/home/pete/phpqt/build/smoke/qt/x_2.cpp:167: error: cannot allocate an object of
abstract type ‘x_QAccessibleBridgeFactoryInterface’
/home/pete/phpqt/build/smoke/qt/x_2.cpp:163: note:   because the following
virtual functions are pure within ‘x_QAccessibleBridgeFactoryInterface’:
/usr/include/QtCore/qfactoryinterface.h:53: note:   virtual QStringList
QFactoryInterface::keys() const


I'm building on an OpenSuSE 11.1 system, but looking around it seems that Fedora 
12 has a php-qt package, so I'm putting together a VM to try it on there...


If you have any light to shed, then let me know. The php-qt mailing list seems a 
bit empty at the moment...


Cheers
Pete

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP GUI library/package

2010-03-31 Thread Ashley Sheridan
On Wed, 2010-03-31 at 16:48 +0100, Pete Ford wrote:

 On 31/03/10 15:30, Ashley Sheridan wrote:
  On Wed, 2010-03-31 at 15:30 +0100, Pete Ford wrote:
 
  Hi All,
 
  I have a web project built in PHP which we want to break out part of into
  a stand-alone GUI program. The architecture is fine - display nicely
  separated from logic, so coding is not a problem. What I can't work out is
  what to use for the GUI part. I looked at phpqt but I can't (yet) get that
  to build on my Linux dev system, let alone code an interface with it. I was
  also looking a PHP-GTK2, but I'm not sure how cross-platform it would be -
  this should run on Windows and Macs as well as Linux...
 
  Anyone made a GUI PHP application like this, with one of the major
  toolkits?
 
  Cheers Pete
 
 
 
  I think as far as compatibility goes, QT is your best bet. What is 
  preventing
  you from getting that build onto your dev system?
 
  Thanks, Ash http://www.ashleysheridan.co.uk
 
 
 
 
 Not all down to the beer.
 I unpacked the php-qt-0.9.tar.gz and made a build directory in there, ran 
 cmake
 (which seemed to go OK), but make fails at
 [  8%] Building CXX object smoke/qt/CMakeFiles/smokeqt.dir/x_2.o
 
 with a bunch of errors like
 
 /home/pete/phpqt/build/smoke/qt/x_2.cpp: In static member function ‘static 
 void
 x_QAccessibleBridgeFactoryInterface::x_0(Smoke::StackItem*)’:
 /home/pete/phpqt/build/smoke/qt/x_2.cpp:167: error: cannot allocate an object 
 of
 abstract type ‘x_QAccessibleBridgeFactoryInterface’
 /home/pete/phpqt/build/smoke/qt/x_2.cpp:163: note:   because the following
 virtual functions are pure within ‘x_QAccessibleBridgeFactoryInterface’:
 /usr/include/QtCore/qfactoryinterface.h:53: note:   virtual QStringList
 QFactoryInterface::keys() const
 
 
 I'm building on an OpenSuSE 11.1 system, but looking around it seems that 
 Fedora 
 12 has a php-qt package, so I'm putting together a VM to try it on there...
 
 If you have any light to shed, then let me know. The php-qt mailing list 
 seems a 
 bit empty at the moment...
 
 Cheers
 Pete
 


Sorry, about the closest I've got to QT is probably to use some apps
that use it. It's one of those things that I thought would be nice to
play with if I had the time, but never had the time!

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] PHP GUI library/package

2010-03-31 Thread tedd

At 4:45 PM +0100 3/31/10, Ashley Sheridan wrote:

On Wed, 2010-03-31 at 16:48 +0100, Pete Ford wrote:
-snip-
  If you have any light to shed, then let me know. The php-qt 
mailing list seems a

 bit empty at the moment...

 Cheers
 Pete




Sorry, about the closest I've got to QT is probably to use some apps
that use it. It's one of those things that I thought would be nice to
play with if I had the time, but never had the time!

Thanks,
Ash


Pete:

You're not the only one who would like to know how to do this.

I work on a Mac and I would very much like to create a stand-alone 
application from my php scripts, but I am clueless as to how to do 
this.


If anyone has done this on a Mac, I would be very interested in 
knowing how you did it.


Thanks,

tedd



--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP GUI library/package

2010-03-31 Thread Teus Benschop
On Wed, 2010-03-31 at 12:23 -0400, tedd wrote:
 I work on a Mac and I would very much like to create a stand-alone 
 application from my php scripts, but I am clueless as to how to do 
 this.
 
 If anyone has done this on a Mac, I would be very interested in 
 knowing how you did it.

There could be some approaches to the problem of creating a stand-along
application out of a working PHP web application. Some would involve
more and others less work. The way we do it is to enable the built-in
Apache server on the Mac, get PHP on it, and then install the web
application on localhost, and run it from there through the browser. It
is less work this way since the PHP code runs as it is, without making
any modification. The other advantage is that since many users are used
to the point and click interface of web based applications, they
possibly get used to your application soon. Teus.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] kadm5 Library

2009-02-05 Thread Thodoris



Sorry, I could have been a little clearer:

I can't recompile PHP.  It's against our general policy to use custom compiled 
software on the grounds that there are too many sysadmins managing a lot of 
these machines and if some software is custom compiled and others not, it gets 
too confusing when it comes to keeping the machines updated and patched.  We're 
talking a dozen sysadmins and hundreds of machines here.  :)
  


That is understandable. No harm is done and sorry for the late reply.

I did try to compile the PECL library by specifying the path to the Kerberos libraries as you suggested, but 
it turns out that the normal version of Kerberos seems to have, among other things, a 
krb5/admin.h header file, and the one that comes with CentOS has krb5/krb5.h instead, 
and even when I change the source code to use krb5/krb5.h, it still throws about 50 errors 
talking about missing functions and re-defined functions and so on.
  


Did you try to install krb5-devel. Try yum search krb5 to see all the 
available packages that CentOS includes. In case your yum doesn't find 
something you may add more repos like Dag's:


http://dag.wieers.com/

It is just an rpm that updates the systems repositories that I find very 
useful.



I'm thinking that the problem is that the PECL module was designed to work with 
one version of the Kerberos library and CentOS provides a different version.  I 
guess I was really asking if anyone had any diffs or anything I could apply to 
the PECL module to make it compile on a CentOS machine.  Or perhaps is there a 
Yum repository somewhere that I could use to get a version of the PECL module 
precompiled for CentOS?
  


I am not aware if there is a pre-compiled package for kerberos but Dag's 
repo doesn't provide it AFAIK.
It does provide some other pecl extensions like php-pecl-fileinfo etc 
but not this one.


What you need is to find a kerberos rpm to include development header in 
order to compile it your self.



I should point out that the Perl Kerberos module did install and compile 
successfully on this machine, so I'm fairly sure that Kerberos is itself 
working.

Tim Gustafson
BSOE Webmaster
UC Santa Cruz
t...@soe.ucsc.edu
831-459-5354

  


Well let me tell what I did:
I have installed this that is needed for the package to work:
http://dag.wieers.com/rpm/packages/re2c/re2c-0.12.0-1.el5.rf.i386.rpm

I have downloaded the source and tried to compile it with:
./configure --with-kadm5=/usr/include/krb5

But the compilation failed.

My installed packages are:
krb5-server-1.6.1-25.el5_2.2
krb5-libs-1.6.1-25.el5_2.2
krb5-workstation-1.6.1-25.el5_2.2
pam_krb5-2.2.14-1.el5_2.1
krb5-devel-1.6.1-25.el5_2.2


And then I run into this:
http://pecl.php.net/bugs/bug.php?id=15196thanks=3

I have already reported the bug and lets hope it will get fixed.

--
Thodoris


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] kadm5 Library

2009-02-05 Thread Tim Gustafson
 Did you try to install krb5-devel. Try yum search krb5 to
 see all the available packages that CentOS includes. In
 case your yum doesn't find something you may add more
 repos like Dag's:

I did.  The krb5-devel package is the one that installed krb5/krb5.h, but as I 
mentioned that seems to be a different version than the one that the PECL 
library expects.  I've used Dag's repository before, but as you pointed out, it 
doesn't contain this package.

 What you need is to find a kerberos rpm to include development
 header in order to compile it your self.

I thought about grabbing the header from another OS, but I'm concerned about 
incompatibilities.  For now, I'm just using the expect library and running 
kadmin.local via sudo as needed.  It's clunky, but it's working.  :)

Thanks for all your help!

Tim Gustafson
BSOE Webmaster
UC Santa Cruz
t...@soe.ucsc.edu
831-459-5354

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] kadm5 Library

2009-01-30 Thread Thodoris



Hi,

I'm running PHP on a CentOS 5.2 box and I'd like to get the kadm5 library to work.  The documentation says 
that the package is both included by default and also available as a PECL module.  The functions are not 
available in my base install (I'm using the PHP package from the CentOS repository).  When I do a phpinfo() I 
do see that --with-kerberos was specified at compile time, but --with-kadm5 was not, 
so I'm not sure if that was a typo on the part of the person who did the compilation or if there is something 
else that --with-kerberos does.

Anyhow, I can't seem to get the PECL version to compile.  I have the 
krb5-devel Yum package installed, but it always breaks with an error message 
that says:

checking for kadm5 files in default path... not found
configure: error: Please reinstall the kadm5 distribution
ERROR: `/tmp/tmp7fT8eC/kadm5-0.2.3/configure' failed

It appears to be looking for krb5/admin.h which doesn't exist on CentOS even with the krb5-devel.  
Instead, CentOS seems to have a krb5/krb5.h which does contain some valid Kerberos headers, but when I modify the 
PECL library to use that file instead of admin.h, I do get a bit further but then get two or three screens full of 
error: 'KRB5_KDB_DISALLOW_TGT_BASED' undeclared type errors.

So, I guess my question is has anyone had any luck getting this library to 
compile and function on CentOS 5.2?  Can anyone point me in the right direction 
as far as getting this library to work?

Thanks for your help!

Tim Gustafson
BSOE Webmaster
UC Santa Cruz
t...@soe.ucsc.edu
831-459-5354


  
I have never used the kadm5 functions before so this is a guess. In 
order for PHP to compile with kadm5 you need to compile and install the 
kadm5 lib first and then go and compile PHP using  the 
--with-kadm5=/path compile option. You need this in order to tell PHP 
where the library lives in the system in order to build the proper 
interface for you that includes the functions.


This of course is the proper way to do things. In your case you can 
probably install krb5 and try to compile PHP from source since with the 
--with-kadm5=/path option in order to install things the right way 
since I don't think that the php rpm includes that option in CentOS 5.2.


Another way (since pecl fails) is to tell pecl where the library lives. 
You can do that by downloading the pecl module and instead of using the 
pecl binary just try to compile it yourself with the usual way:


cd /tmp/
wget http://pecl.php.net/get/kadm5-0.2.3.tgz
tar zxf kadm5-0.2.3.tgz
cd kadm5-0.2.3
phpize
./configure (you have to make ./configure --help to see how to configure 
where the library is assuming something like --with-krb5=/path/ or 
--with-libdir=/path/)

make
make install

You can find the extension here:

http://pecl.php.net/package/kadm5

--
Thodoris


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] kadm5 Library

2009-01-30 Thread Tim Gustafson
Sorry, I could have been a little clearer:

I can't recompile PHP.  It's against our general policy to use custom compiled 
software on the grounds that there are too many sysadmins managing a lot of 
these machines and if some software is custom compiled and others not, it gets 
too confusing when it comes to keeping the machines updated and patched.  We're 
talking a dozen sysadmins and hundreds of machines here.  :)

I did try to compile the PECL library by specifying the path to the Kerberos 
libraries as you suggested, but it turns out that the normal version of 
Kerberos seems to have, among other things, a krb5/admin.h header file, and 
the one that comes with CentOS has krb5/krb5.h instead, and even when I 
change the source code to use krb5/krb5.h, it still throws about 50 errors 
talking about missing functions and re-defined functions and so on.

I'm thinking that the problem is that the PECL module was designed to work with 
one version of the Kerberos library and CentOS provides a different version.  I 
guess I was really asking if anyone had any diffs or anything I could apply to 
the PECL module to make it compile on a CentOS machine.  Or perhaps is there a 
Yum repository somewhere that I could use to get a version of the PECL module 
precompiled for CentOS?

I should point out that the Perl Kerberos module did install and compile 
successfully on this machine, so I'm fairly sure that Kerberos is itself 
working.

Tim Gustafson
BSOE Webmaster
UC Santa Cruz
t...@soe.ucsc.edu
831-459-5354

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] kadm5 Library

2009-01-29 Thread Tim Gustafson
Hi,

I'm running PHP on a CentOS 5.2 box and I'd like to get the kadm5 library to 
work.  The documentation says that the package is both included by default and 
also available as a PECL module.  The functions are not available in my base 
install (I'm using the PHP package from the CentOS repository).  When I do a 
phpinfo() I do see that --with-kerberos was specified at compile time, but 
--with-kadm5 was not, so I'm not sure if that was a typo on the part of the 
person who did the compilation or if there is something else that 
--with-kerberos does.

Anyhow, I can't seem to get the PECL version to compile.  I have the 
krb5-devel Yum package installed, but it always breaks with an error message 
that says:

checking for kadm5 files in default path... not found
configure: error: Please reinstall the kadm5 distribution
ERROR: `/tmp/tmp7fT8eC/kadm5-0.2.3/configure' failed

It appears to be looking for krb5/admin.h which doesn't exist on CentOS even 
with the krb5-devel.  Instead, CentOS seems to have a krb5/krb5.h which 
does contain some valid Kerberos headers, but when I modify the PECL library to 
use that file instead of admin.h, I do get a bit further but then get two or 
three screens full of error: 'KRB5_KDB_DISALLOW_TGT_BASED' undeclared type 
errors.

So, I guess my question is has anyone had any luck getting this library to 
compile and function on CentOS 5.2?  Can anyone point me in the right direction 
as far as getting this library to work?

Thanks for your help!

Tim Gustafson
BSOE Webmaster
UC Santa Cruz
t...@soe.ucsc.edu
831-459-5354


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Geometrical library

2008-09-03 Thread Yannick Warnier
Hi there,

I've been looking for a PHP library that would allow me to calculate
superpositions of geometrical surfaces defined by polygones (defined
themselves by points bound with lines) in 2D (surface of a polygone,
intersections between two vectors, surface of intersection - considering
the polygons could be complex and superpose themselves in more than one
point).

The closest to what I'm looking for, I guess, would be the PEAR
Math_Vector package, but it is mainly based on vectors as mathematical
arrays, whereas I would need calculations based on surfaces.

Does anyone know of something that could help me?

Yannick


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP GD library installing

2008-04-11 Thread Luca Paolella


On Apr 10, 2008, at 5:15 PM, Daniel Brown wrote:

On Thu, Apr 10, 2008 at 4:54 AM, Luca Paolella [EMAIL PROTECTED] 
 wrote:
How do I install/activate the GD library with my existing PHP  
version? I'm

quite sure it isn't already, since I got this error:

Fatal error: Call to undefined function imagecreate() in
/Volumes/Data/Users/luca/Library/WebServer/Documents/reloadTest/ 
image.php on

line 6


   First, this is a server to which you have root access, correct?
You won't be able to install it otherwise, such as if you're on a
shared web host.

   Secondly, what *NIX are you using?  It looks to me like a
BSD-style system maybe MacOS?

--
/Daniel P. Brown
Ask me about:
Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
and shared hosting starting @ $2.50/mo.
Unmanaged, managed, and fully-managed!


Yes, it's Mac OSX and I have root access on the machine; I just  
checked my mail, so sorry for the delay


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP GD library installing

2008-04-10 Thread Luca Paolella
How do I install/activate the GD library with my existing PHP version?  
I'm quite sure it isn't already, since I got this error:


Fatal error: Call to undefined function imagecreate() in /Volumes/Data/ 
Users/luca/Library/WebServer/Documents/reloadTest/image.php on line 6


Please forgive my ignorance, and thanks for your help

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP GD library installing

2008-04-10 Thread Thijs Lensselink

Quoting Luca Paolella [EMAIL PROTECTED]:


How do I install/activate the GD library with my existing PHP version?
I'm quite sure it isn't already, since I got this error:

Fatal error: Call to undefined function imagecreate() in
/Volumes/Data/Users/luca/Library/WebServer/Documents/reloadTest/image.php on
line 6

Please forgive my ignorance, and thanks for your help



On windows it's as easy as downloading the dll from pecl4win.php.net.

But from your directory structure i presume you have some sort of *nix system.
So you have to reconfigure and rebuild PHP. Add the following to the  
configure line. And rebuild PHP after that. Make sure GD is installed  
on the system.


--with-gd --with-jpeg-dir --with-png-dir

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP GD library installing

2008-04-10 Thread Robin Vickery
On 10/04/2008, Thijs Lensselink [EMAIL PROTECTED] wrote:
 Quoting Luca Paolella [EMAIL PROTECTED]:


  How do I install/activate the GD library with my existing PHP version?
  I'm quite sure it isn't already, since I got this error:
 
  Fatal error: Call to undefined function imagecreate() in
 
 /Volumes/Data/Users/luca/Library/WebServer/Documents/reloadTest/image.php
 on
  line 6
 
  Please forgive my ignorance, and thanks for your help
 
 

  On windows it's as easy as downloading the dll from pecl4win.php.net.

  But from your directory structure i presume you have some sort of *nix
 system.
  So you have to reconfigure and rebuild PHP.

Ouch... first try installing the php gd module through whatever
package manager your *nix distribution uses. For instance, on Ubuntu
linux you'd do:

sudo aptitude install php5-gd

-robin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP GD library installing

2008-04-10 Thread Thijs Lensselink

Quoting Robin Vickery [EMAIL PROTECTED]:


On 10/04/2008, Thijs Lensselink [EMAIL PROTECTED] wrote:

Quoting Luca Paolella [EMAIL PROTECTED]:


 How do I install/activate the GD library with my existing PHP version?
 I'm quite sure it isn't already, since I got this error:

 Fatal error: Call to undefined function imagecreate() in

/Volumes/Data/Users/luca/Library/WebServer/Documents/reloadTest/image.php
on
 line 6

 Please forgive my ignorance, and thanks for your help



 On windows it's as easy as downloading the dll from pecl4win.php.net.

 But from your directory structure i presume you have some sort of *nix
system.
 So you have to reconfigure and rebuild PHP.


Ouch... first try installing the php gd module through whatever
package manager your *nix distribution uses. For instance, on Ubuntu
linux you'd do:

sudo aptitude install php5-gd



Ouch? That's exactly what i added to my post Make sure GD is installed
on the system.



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP GD library installing

2008-04-10 Thread Robin Vickery
On 10/04/2008, Thijs Lensselink [EMAIL PROTECTED] wrote:
 Quoting Robin Vickery [EMAIL PROTECTED]:


  On 10/04/2008, Thijs Lensselink [EMAIL PROTECTED] wrote:
 
   Quoting Luca Paolella [EMAIL PROTECTED]:
  
  
How do I install/activate the GD library with my existing PHP version?
I'm quite sure it isn't already, since I got this error:
   
Fatal error: Call to undefined function imagecreate() in
   
  
 /Volumes/Data/Users/luca/Library/WebServer/Documents/reloadTest/image.php
   on
line 6
   
Please forgive my ignorance, and thanks for your help
   
   
  
On windows it's as easy as downloading the dll from pecl4win.php.net.
  
But from your directory structure i presume you have some sort of *nix
   system.
So you have to reconfigure and rebuild PHP.
  
 
  Ouch... first try installing the php gd module through whatever
  package manager your *nix distribution uses. For instance, on Ubuntu
  linux you'd do:
 
  sudo aptitude install php5-gd
 
 

  Ouch? That's exactly what i added to my post Make sure GD is installed
  on the system.

Making sure GD is installed on the system is a very sensible thing to do.

The ouch was aimed at the suggestion that if you're on a *nix
system, the course of action is to recompile php. Normally these days
you'd just install the gd module (the equivalent of your windows dll)
through your package manager.

-robin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP GD library installing

2008-04-10 Thread Thijs Lensselink

Quoting Robin Vickery [EMAIL PROTECTED]:


On 10/04/2008, Thijs Lensselink [EMAIL PROTECTED] wrote:

Quoting Robin Vickery [EMAIL PROTECTED]:


 On 10/04/2008, Thijs Lensselink [EMAIL PROTECTED] wrote:

  Quoting Luca Paolella [EMAIL PROTECTED]:
 
 
   How do I install/activate the GD library with my existing PHP version?
   I'm quite sure it isn't already, since I got this error:
  
   Fatal error: Call to undefined function imagecreate() in
  
 
/Volumes/Data/Users/luca/Library/WebServer/Documents/reloadTest/image.php
  on
   line 6
  
   Please forgive my ignorance, and thanks for your help
  
  
 
   On windows it's as easy as downloading the dll from pecl4win.php.net.
 
   But from your directory structure i presume you have some sort of *nix
  system.
   So you have to reconfigure and rebuild PHP.
 

 Ouch... first try installing the php gd module through whatever
 package manager your *nix distribution uses. For instance, on Ubuntu
 linux you'd do:

 sudo aptitude install php5-gd



 Ouch? That's exactly what i added to my post Make sure GD is installed
 on the system.


Making sure GD is installed on the system is a very sensible thing to do.

The ouch was aimed at the suggestion that if you're on a *nix
system, the course of action is to recompile php. Normally these days
you'd just install the gd module (the equivalent of your windows dll)
through your package manager.



My bad! :) I always compile everything from source



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP GD library installing

2008-04-10 Thread Daniel Brown
On Thu, Apr 10, 2008 at 4:54 AM, Luca Paolella [EMAIL PROTECTED] wrote:
 How do I install/activate the GD library with my existing PHP version? I'm
 quite sure it isn't already, since I got this error:

  Fatal error: Call to undefined function imagecreate() in
 /Volumes/Data/Users/luca/Library/WebServer/Documents/reloadTest/image.php on
 line 6

First, this is a server to which you have root access, correct?
You won't be able to install it otherwise, such as if you're on a
shared web host.

Secondly, what *NIX are you using?  It looks to me like a
BSD-style system maybe MacOS?

-- 
/Daniel P. Brown
Ask me about:
Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
and shared hosting starting @ $2.50/mo.
Unmanaged, managed, and fully-managed!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] E-Library Software

2008-04-02 Thread Ali Reza Sajedi

Hello,

I am looking for an open source php based E-Library sofware.

Could anybody help?

Regards

Ali

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] E-Library Software

2008-04-02 Thread Daniel Brown
On Wed, Apr 2, 2008 at 7:57 AM, Wolf [EMAIL PROTECTED] wrote:
 STFW

  What has your searches on Google turned up?

  What about your browsing through sourceforge?

Not to mention the the question, since your first message didn't
get any responses from the list three days ago, why didn't you at
least re-word it or add more details?

-- 
/Daniel P. Brown
Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
and shared hosting starting @ $2.50/mo.
Just ask!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] E-Library Software

2008-03-30 Thread Ali Reza Sajedi

Hello,

I am looking for an open source php based E-Library sofware.

Could anybody help?

Regards

Ali

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Question regarding linking PHP Parser library into my private Http server

2007-12-30 Thread Talya Nevo

Hi,

I am porting my software from Linux to µC/OS-II OS.
On Linux I ran the Boa Web server with PHP.
The µC/OS-II has a basic open source Http Server that does not support PHP or 
CGI.

What I was able to do - is from the Http server, each time an http request is 
received, call using 'System' function the PHP interpreter program (like from 
cli) with input the requested page.
This seams to basically work but it is not efficient at all.

What I would like to do is to link the Http Server to the basic PHP parser 
library and call the 'parse' function each time the server gets an http request.
   
Is this possible?
Does anyone know how to do this - which library to link to, which function to 
call, maybe an example.

Thanks for your help.

Talya Nevo
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Question regarding linking PHP Parser library into my private Http server

2007-12-30 Thread Nathan Nobbe
On Dec 30, 2007 4:02 AM, Talya Nevo [EMAIL PROTECTED] wrote:


 Hi,

 I am porting my software from Linux to µC/OS-II OS.
 On Linux I ran the Boa Web server with PHP.
 The µC/OS-II has a basic open source Http Server that does not support PHP
 or CGI.

 What I was able to do - is from the Http server, each time an http request
 is received, call using 'System' function the PHP interpreter program (like
 from cli) with input the requested page.
 This seams to basically work but it is not efficient at all.

 What I would like to do is to link the Http Server to the basic PHP parser
 library and call the 'parse' function each time the server gets an http
 request.

 Is this possible?
 Does anyone know how to do this - which library to link to, which function
 to call, maybe an example.


though i have not interacted with them, i suspect this question may be
better received on the internals list.

-nathan


Re: [PHP] Question regarding linking PHP Parser library into my private Http server

2007-12-30 Thread Richard Lynch
On Sun, December 30, 2007 3:02 am, Talya Nevo wrote:
 I am porting my software from Linux to µC/OS-II OS.
 On Linux I ran the Boa Web server with PHP.
 The µC/OS-II has a basic open source Http Server that does not support
 PHP or CGI.

 What I was able to do - is from the Http server, each time an http
 request is received, call using 'System' function the PHP interpreter
 program (like from cli) with input the requested page.
 This seams to basically work but it is not efficient at all.

 What I would like to do is to link the Http Server to the basic PHP
 parser library and call the 'parse' function each time the server gets
 an http request.

 Is this possible?
 Does anyone know how to do this - which library to link to, which
 function to call, maybe an example.

 Thanks for your help.

 Talya Nevo
 [EMAIL PROTECTED]

You could probably have a MUCH easier time and benefit the PHP
community a WHOLE lot more by looking at the Apache/CLI/Isapi API
implementations.

-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Question regarding linking PHP Parser library into my private Http server

2007-12-30 Thread Nathan Nobbe
On Dec 30, 2007 7:57 PM, Richard Lynch [EMAIL PROTECTED] wrote:

 On Sun, December 30, 2007 3:02 am, Talya Nevo wrote:
  I am porting my software from Linux to µC/OS-II OS.
  On Linux I ran the Boa Web server with PHP.
  The µC/OS-II has a basic open source Http Server that does not support
  PHP or CGI.
 
  What I was able to do - is from the Http server, each time an http
  request is received, call using 'System' function the PHP interpreter
  program (like from cli) with input the requested page.
  This seams to basically work but it is not efficient at all.
 
  What I would like to do is to link the Http Server to the basic PHP
  parser library and call the 'parse' function each time the server gets
  an http request.
 
  Is this possible?
  Does anyone know how to do this - which library to link to, which
  function to call, maybe an example.
 
  Thanks for your help.
 
  Talya Nevo
  [EMAIL PROTECTED]

 You could probably have a MUCH easier time and benefit the PHP
 community a WHOLE lot more by looking at the Apache/CLI/Isapi API
 implementations.


or maybe something more lean like lighttpd would be a bit easier.
(it supports php via cgi and optionally fastcgi)

-nathan


Re: [PHP] GD Library

2007-10-31 Thread Jochem Maas
Charlene wrote:
 I have the GD Library installed, but I don't see any of the fonts.  What
 is the preferred location to download fonts (standard fonts like Arial,
 Verdana, etc.) and which directory should they be stored in?

'standard fonts' is not. and any directory you want. upload any legal fonts
you have/need.

http://php.net/manual/en/function.imagettftext.php

... pass it in the fullpath to the .tff file (amongst other things)

 
 Charlene
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] GD Library

2007-10-30 Thread Charlene
I have the GD Library installed, but I don't see any of the fonts.  What 
is the preferred location to download fonts (standard fonts like Arial, 
Verdana, etc.) and which directory should they be stored in?


Charlene

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] GD Library

2007-09-13 Thread Steve Marquez
Greetings,

I am running PHP 4.4.7 without the GD Library and need it to run.
I am very novice on PHP, and am using a Mac with 10.3.9.
Can anyone point me in the right direction?

Thank you so much,

--
Steve M.



RE: [PHP] GD Library

2007-09-13 Thread Jay Blanchard
[snip]
I am running PHP 4.4.7 without the GD Library and need it to run.
I am very novice on PHP, and am using a Mac with 10.3.9.
Can anyone point me in the right direction?
[/snip]

http://www.php.net/gd tells you how to get and install the libraries.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] GD Library

2007-09-13 Thread Greg Donald
On Thu, 13 Sep 2007, Steve Marquez wrote:
 I am running PHP 4.4.7 without the GD Library and need it to run.
 I am very novice on PHP, and am using a Mac with 10.3.9.
 Can anyone point me in the right direction?


http://destiney.com/blog/php-4-5-macos-x

Hopefully those configs aren't totally outdated.


-- 
Greg Donald
Cyberfusion Consulting
http://cyberfusionconsulting.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] GD Library

2007-09-13 Thread Samuel Vogel

I would point you to MAMP:
http://www.mamp.info/

It's like Xampp but designed all for a Mac... Easy to install, to 
configure and to user ;)


Regards,
Samy

Greg Donald schrieb:

On Thu, 13 Sep 2007, Steve Marquez wrote:
 

I am running PHP 4.4.7 without the GD Library and need it to run.
I am very novice on PHP, and am using a Mac with 10.3.9.
Can anyone point me in the right direction?




http://destiney.com/blog/php-4-5-macos-x

Hopefully those configs aren't totally outdated.


  


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] GD Library and outputing image

2007-06-15 Thread tedd

At 9:17 PM +0100 6/13/07, Ross wrote:

Never really used the GD much before very straightforward but how do I
output the image on a page. This is  fine on a php page on its own but what
about one where the headers are already sent?


Ross:

That's not a problem. See this:

http://xn--nvg.com/rotated_text  -- if your browser chokes, get a 
better browser


The image code (text.php) is:

?php
Header (Content-type: image/gif);
$im = imagecreate (150, 150);
$background = ImageColorAllocate ($im, 238, 238, 238);
$text_color = ImageColorAllocate ($im, 00, 51, 102);//#036 00 33 66 HEX
ImageTTFText ($im, 20, 45, 30, 130, $text_color, arial.ttf,
  Hello World...);
ImageGif ($im);
ImageDestroy ($im);
?

and it's called from html like this:

img src=text.php

If you put this into your site, you'll need arial.tff to make it 
work, but you can find it in lot's of places.


Cheers,

tedd


--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] GD Library and outputing image

2007-06-13 Thread Ross
Never really used the GD much before very straightforward but how do I 
output the image on a page. This is  fine on a php page on its own but what 
about one where the headers are already sent?


I take it I can do something like  this img 
scr=get_image.php?url=$img_url/a. Anyone got a better method?




$image = imagecreatefromjpeg($img_url);
if ($image === false) { die ('Unable to open image'); }

// Get original width and height
echo $width = imagesx($image);
echo $height = imagesy($image);

// New width and height
$new_width = 200;
$new_height = 150;

// Resample
$image_resized = imagecreatetruecolor($new_width, $new_height);
imagecopyresampled($image_resized, $image, 0, 0, 0, 0, $new_width, 
$new_height, $width, $height);

// Display resized image
header('Content-type: image/jpeg');
imagejpeg($image_resized);
die();

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] GD Library and outputing image

2007-06-13 Thread Daniel Brown

On 6/13/07, Ross [EMAIL PROTECTED] wrote:

Never really used the GD much before very straightforward but how do I
output the image on a page. This is  fine on a php page on its own but what
about one where the headers are already sent?


I take it I can do something like  this img
scr=get_image.php?url=$img_url/a. Anyone got a better method?




$image = imagecreatefromjpeg($img_url);
if ($image === false) { die ('Unable to open image'); }

// Get original width and height
echo $width = imagesx($image);
echo $height = imagesy($image);

// New width and height
$new_width = 200;
$new_height = 150;

// Resample
$image_resized = imagecreatetruecolor($new_width, $new_height);
imagecopyresampled($image_resized, $image, 0, 0, 0, 0, $new_width,
$new_height, $width, $height);

// Display resized image
header('Content-type: image/jpeg');
imagejpeg($image_resized);
die();

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




   Aside from perhaps changing die(); to exit;, though not necessary,
I'd say that it looks like you're right on track.  Until you find a
better way to have HTML display an image than through IMG SRC=..., I
think it's good to go.

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] GD Library and outputing image

2007-06-13 Thread Stephen


Ross [EMAIL PROTECTED] wrote:Never really used the GD much before very 
straightforward but how do I 
output the image on a page. This is fine on a php page on its own but what 
about one where the headers are already sent?
   
  Save the image as file, first.
   
  The href src= etc


Re: [PHP] GD Library and outputing image

2007-06-13 Thread Daniel Brown

On 6/13/07, Stephen [EMAIL PROTECTED] wrote:



Ross [EMAIL PROTECTED] wrote:Never really used the GD much before very 
straightforward but how do I
output the image on a page. This is fine on a php page on its own but what
about one where the headers are already sent?

  Save the image as file, first.

  The href src= etc



   If space isn't an issue, that's an alternative answer

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] GD Library or PHP Function

2006-03-24 Thread tedd

On Wed, March 22, 2006 9:18 pm, brian dichiara wrote:

 Is there a way to check to see if a JPEG or PDF is color or
 black/white?
 Like a function or something?


There does not appear to be a built-in function that does that...



I don't know of any either, but that's the reason when I put an image 
into a dB, I also put in the type.


tedd

--

http://sperling.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] GD Library or PHP Function

2006-03-23 Thread brian dichiara
Is there a way to check to see if a JPEG or PDF is color or black/white? 
Like a function or something?


Thanks for any help!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] GD Library or PHP Function

2006-03-23 Thread Richard Lynch
On Wed, March 22, 2006 9:18 pm, brian dichiara wrote:
 Is there a way to check to see if a JPEG or PDF is color or
 black/white?
 Like a function or something?

There does not appear to be a built-in function that does that...

However, this hack should work:

function image_is_color($image){
  for ($x = 0, $xmax = imagesx($image); $x  $xmax; $x++){
for ($y = 0, $ymax = imagesy($image); $y  $ymax; $y++){
  $index = imagecolorat($image, $x, $y);
  list($r, $g, $b) = imagecolorsforindex($image, $index);
  //If all images are TrueColor, the preceding can be replaced with
  // $r = ($index  16)  0xFF;
  // $g = ($index  8)  0xFF;
  // $b = $index  0xFF;
  // because in TrueColor the index is just the 24-bit color value
  if ($r != $g || $g != $b) return true;
  // You could add || $r != $b, but it's a tautology, no???
}
  }

  //If we made it here, EVERY damn pixel has R==G==B, so it's grayscale
  return false;
}

NOTE:
This is NOT going to be fast, especially for large images, especially
for large gray-scale images, in which EVERY pixel will get checked
before we know it's grayscale.

If you have MOSTLY grayscale images and a few color, switch around the
true/false and the test and make it is_grayscale() so you can bail out
MUCH faster, when the first few pixels prove an image is NOT what you
usually have.

You could also set up a multi-threaded environment and run is_color
and is_grayscale and then time-out the one that takes forever...  This
might be best if you have humoungous images and you are checking them
in a cron job or something.

Still, if you have an image that's all grayscale, and only the
top-right corner is color, or vice versa, you're gonna wait a long
time...

H.

If it's NOT a TrueColor image, and imagecolorstotal() returns a
small number, then you could MUCH faster just do:

function is_color($image){
  for ($index = 0, $total = imagecolorstotal($image); $index  $total;
$index++){
list($r, $g, $b) = imagecolorsforindex($image, $index);
if ($r != $g || $g != $b) return true;
  }
  return false;
}

Which then makes me think that maybe you should do:
function is_color($image){
  $xmax = imagesx($image);
  $ymax = imagesy($image);
  $count = imagecolorstotal($image);

  if ($count  ($xmax * $ymax)){
//call my first version, cuz the image is 'small' in x/y size
  }
  else{
//call my second version, cuz the image has few colors in palette
  }
}

Some benchmarks could be done to refine the test that chooses between
the function bodies -- If imagecolorsforindex() is inherently
slower/faster than imagecolorat() + bit-shifting, then you'd want to
factor in the speed difference.

Have fun!

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Printing library in PHP ?

2006-03-20 Thread robert mena
Hi Steve,

This seems to be a good alternative.  I've found pdflib($), ezPDF (dead?) e
this fpdf as different ways to generate pdf.

One drawback is that I'd have to construct all my documents 'by hand'.  For
trully dynamic this is no problem but for those that only differs at the
name of the client that would represent too much work for a little gain.

After some research it seems that there is a tool called docbook that allows
me to convert it's format (a XML based?) into a lot of things, PDF included.

Well, I have two ways now:
- use a pdf library for those dynamic reports
- convert my word documents into docbook (using an editor), put some
placeholders and using PHP to replace the placeholders with actual data
(such as name, price) and call docbook to generate the pdf.

- rm

On 3/14/06, Steve Brown [EMAIL PROTECTED] wrote:

  I am currently migrating an application originally written with Delphi
 to
  PHP.  Everything is going fine except the printing of the reports that
 does
  not produce the same visual result (i.e does not look the same or has
 some
  aligmment issues).

 We generate all of our printed reports using FPDF
 (http://www.fpdf.org) to generate PDF files.  Its very flexible, can
 do must of what you are aksing for, and unlike some alternatives, its
 free.PDFs are going to be the easiest way to get total control of
 the output.

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Printing library in PHP ?

2006-03-14 Thread Steve Brown
 I am currently migrating an application originally written with Delphi to
 PHP.  Everything is going fine except the printing of the reports that does
 not produce the same visual result (i.e does not look the same or has some
 aligmment issues).

We generate all of our printed reports using FPDF
(http://www.fpdf.org) to generate PDF files.  Its very flexible, can
do must of what you are aksing for, and unlike some alternatives, its
free.PDFs are going to be the easiest way to get total control of
the output.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Printing library in PHP ?

2006-03-13 Thread robert mena
Hi,

I am currently migrating an application originally written with Delphi to
PHP.  Everything is going fine except the printing of the reports that does
not produce the same visual result (i.e does not look the same or has some
aligmment issues).

From what I've read I should use CSS to achieve such result but I was
wondering if there is any toolkit, library in PHP that would ease my work.

For example:
I have a specific report I have to add a header to each page
I have another one with tabular data that when the result is larger than a
page I should break the table and start at the next page so the table
headers can be seen again...

In both I'd need a way to decide/find out how many pages will be necessary
(given the size of the paper sheet) so I could generate the HTML correctly.


[PHP] GD library

2005-07-09 Thread Mike Bellerby

Where is the best place to get php_gd2.php

Thanks

Mike

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] GD library

2005-07-09 Thread Mike Bellerby

Where is the best place to get php_gd2.dll

Thanks

Mike

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] GD library

2005-07-09 Thread Rasmus Lerdorf
Mike Bellerby wrote:
 Where is the best place to get php_gd2.dll

It's in the ext/ directory of the Win32 zip file you downloaded.  Or if
you didn't, go grab it from
http://uk.php.net/get/php-5.0.4-Win32.zip/from/this/mirror

-Rasmus

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] GD library images not displaying

2005-06-21 Thread Ross Trewhella
Hi,

I am running Apache 2.0 with PHP 4.2.11 on Windows XP.
I installed php_gd2.dll by uncommenting extension=php_gd2.dll and making sure 
that the file was in my extension_dir.
I restarted Apache and didn't get an error, so assumed it was working.
When I run my example code:

?php
$im = imagecreatetruecolor (300, 200); 
$black = imagecolorallocate ($im, 0, 0, 0); 
$white = imagecolorallocate ($im, 255, 255, 255); 
imagefilledrectangle($im,0,0,399,99,$white); 
imagerectangle($im,20,20,250,190,$black); 
header (Content-type: image/png); 
imagepng ($im);
?

I get the following error:

Fatal error: Call to undefined function: imagecreatetruecolor() in 
imagetest.php on line 2

This code works on other servers, so where have I gone wrong in my installation 
of GD?

Thanks in advance,

Ross

Re: [PHP] GD library images not displaying

2005-06-21 Thread Richard Davey
Hello Ross,

Tuesday, June 21, 2005, 4:47:40 PM, you wrote:

RT I am running Apache 2.0 with PHP 4.2.11 on Windows XP.
RT I installed php_gd2.dll by uncommenting extension=php_gd2.dll
RT and making sure that the file was in my extension_dir.
RT I restarted Apache and didn't get an error, so assumed it was working.
RT When I run my example code:

[snip]

RT I get the following error:

RT Fatal error: Call to undefined function:
RT imagecreatetruecolor() in imagetest.php on line 2

RT This code works on other servers, so where have I gone wrong in my 
installation of GD?

Create a file with phpinfo(); in it - view it. Does it have the GD
extension listed?

Best regards,

Richard Davey
-- 
 http://www.launchcode.co.uk - PHP Development Services
 I do not fear computers. I fear the lack of them. - Isaac Asimov

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] kannel library

2005-05-11 Thread Catalin Trifu
Hi,


   Has anyone knowledge about a kannel (www.kannel.org) php library to deal
with sms and binary content messages such as wap push and nokia smart messages ?


Catalin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] shared library in php

2005-04-12 Thread Josip Dzolonga
On , 2005-04-11 at 19:34 -0300, ngelo A. Camargo wrote:
  If you have NONE of those, you probably are trying to violate some kind of
  license.  Don't do that. :-v

Do not pay, to some reverse engineering :-)

Josip Dzolonga
http://josip.dotgeek.org

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] shared library in php

2005-04-12 Thread Josip Dzolonga
On , 2005-04-12 at 14:37 +0200, Josip Dzolonga wrote:
 On , 2005-04-11 at 19:34 -0300, ngelo A. Camargo wrote:
   If you have NONE of those, you probably are trying to violate some kind of
   license.  Don't do that. :-v
 
 Do not pay, to some reverse engineering :-)

s/to/do , damn keyboard :)

Josip Dzolonga
http://josip.dotgeek.org

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] shared library in php

2005-04-12 Thread Ben Ramsey
Josip Dzolonga wrote:
If you have NONE of those, you probably are trying to violate some kind of
license.  Don't do that. :-v
Do not pay, to some reverse engineering :-)
s/to/do , damn keyboard :)
Which is obviously illegal if the shared library has a license that 
states he cannot do that. We don't want to promote illegal activities on 
this mailing list. :-)

--
Ben Ramsey
http://benramsey.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] shared library in php

2005-04-11 Thread Angelo Ayres Camargo
Hello,
I have a shared library and i would like very much to use it in php. Do i 
have to do anything or i can just dl it and use?

Angelo 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] shared library in php

2005-04-11 Thread Richard Lynch
On Mon, April 11, 2005 9:21 am, Angelo Ayres Camargo said:
 I have a shared library and i would like very much to use it in php. Do i
 have to do anything or i can just dl it and use?

I'm pretty sure you need the wrapper functions.

If you didn't then all the other libraries wouldn't have them.  And they
all have them.

So you must need them.

You may be able to get the names of the functions that are in that .so
file using:

strings whatever.so | less

There will be a bunch of junk at the start and the end, but the function
names will be there, in a block, eventually.

Then you'll need some kinda documentation on what those functions do and
what arguments they take.

You *PROBABLY* have some kind of exsiting interface to this .so file in
the first place, or it wouldn't be useful.  If you have the .h file, use
that.  If you have some kind of Perl or C interface, use that.

There might even be a docmented API listing all functions and their
arguments.  Use that too.

If you have NONE of those, you probably are trying to violate some kind of
license.  Don't do that. :-v

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] shared library in php

2005-04-11 Thread Ângelo A . Camargo

There might even be a docmented API listing all functions and their
arguments.  Use that too.
There is.
You *PROBABLY* have some kind of exsiting interface to this .so file in
the first place, or it wouldn't be useful.  If you have the .h file, use
that.  If you have some kind of Perl or C interface, use that.
No, i have to make one.

If you have NONE of those, you probably are trying to violate some kind of
license.  Don't do that. :-v
Not realy, i have to pay for the .so and the sdk, 400,00  bucks, not sheep.
I guess php will be no good them, i think i will go with java for interface 
with so and desktop, php will be web. If i remember php is good to go with 
java. Just to make sure the .so reads some biometric sensor for digitals.

Tks for time.
Angelo
- Original Message - 
From: Richard Lynch [EMAIL PROTECTED]
To: Angelo Ayres Camargo [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Monday, April 11, 2005 6:29 PM
Subject: Re: [PHP] shared library in php


On Mon, April 11, 2005 9:21 am, Angelo Ayres Camargo said:
I have a shared library and i would like very much to use it in php. Do i
have to do anything or i can just dl it and use?
I'm pretty sure you need the wrapper functions.
If you didn't then all the other libraries wouldn't have them.  And they
all have them.
So you must need them.
You may be able to get the names of the functions that are in that .so
file using:
strings whatever.so | less
There will be a bunch of junk at the start and the end, but the function
names will be there, in a block, eventually.
Then you'll need some kinda documentation on what those functions do and
what arguments they take.
You *PROBABLY* have some kind of exsiting interface to this .so file in
the first place, or it wouldn't be useful.  If you have the .h file, use
that.  If you have some kind of Perl or C interface, use that.
There might even be a docmented API listing all functions and their
arguments.  Use that too.
If you have NONE of those, you probably are trying to violate some kind of
license.  Don't do that. :-v
--
Like Music?
http://l-i-e.com/artists.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Free library for PDF functoins ???

2005-01-18 Thread Mário Gamito
Hi,
Does anyone knows of a free library to compile PHP against and have PDF 
functions support ?

Any help would be apreciated.
Warm regards,
Mário Gamito
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Free library for PDF functoins ???

2005-01-18 Thread Ville Mattila
Mário Gamito wrote:
Does anyone knows of a free library to compile PHP against and have PDF 
functions support ?
Sure! Take a look at http://www.ros.co.nz/pdf/ . It's a class and 
doesn't even need any library to compile. So, just include the class 
file and you'll have a PDF functions available in your very own script.

Ville

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Free library for PDF functoins ???

2005-01-18 Thread Matt M.
 Does anyone knows of a free library to compile PHP against and have PDF
 functions support ?

you could try this class

http://www.fpdf.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] GD library with tiff images

2004-12-16 Thread [EMAIL PROTECTED]
hi,
I am trying to write an image upload facility, which resizes the images, 
which I am obviously using the GD library for. Does anyone know if there 
are any functions I can use to read in images encoded in tiff image format?

Cheers,
Tom
--
Working on webhosting   Tel:01388 11
MTA handling, PHP   Web:www.digital-data.co.uk
scripting, and wireless Email:[EMAIL PROTECTED]
networking, just for a
change.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] GD library with tiff images

2004-12-16 Thread Richard Lynch
[EMAIL PROTECTED] wrote:
 I am trying to write an image upload facility, which resizes the images,
 which I am obviously using the GD library for. Does anyone know if there
 are any functions I can use to read in images encoded in tiff image
 format?

As far as I know, the GD image functions of PHP do not support TIFF.

A very very very brief search on Boutell's site didn't turn up TIFF
either, so I'm guessing it's just not in GD at all.

One option might be to convert to JPEG using ImageMagik (aka convert).

At that point, depending on your application, you might as well have
ImageMagik scale it too.

You'll need to use http://php.net/exec and maybe mess around with shell
permissions and paths a bit.

GD is great, but for re-sizing your uploaded images, it might be better to
write a shell script in some kind of cron job to resize/move images using
ImageMagik -- If you have to pop out to a shell (which is what exec does,
essentially) you might as well just start (and stay) in the shell anyway. 
YMMV

The last paragraph really only applies if performance is a significant
factor in your upload routine.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] GD Library list

2004-09-11 Thread Curt Zirzow
* Thus wrote bskolb:
 Does anyone know if there is a mailing list for gdlib?  Can't seem to find
 in Google.
This is there homepage:
 http://www.boutell.com/gd/

I dont see any list there though.

Curt
-- 
The above comments may offend you. flame at will.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] GD Library list

2004-09-10 Thread bskolb
Does anyone know if there is a mailing list for gdlib?  Can't seem to find
in Google.


[PHP] ... extendet library ...

2004-08-24 Thread Marko Rastislav
Hi all,
I just starting with php, and i hawe problem with Bzip2 library. I
will using this library, but when I use function bzcompress() in the
editor ZDE (Zend Development Enviroment 3.0.2), this editor write text Call
to undefined function:  bzcompress() ... . 

Example:
?php
$str = sample data;
$bzstr = bzcompress($str, 9);
print( $bzstr );
?
In help this function it's in section INSTALL information this
text: You will need to use the --with-bz2[=DIR] configuration option when
compiling PHP to enable bzip2 support.  Must I this funkcions aktivated?
Where (file) I must write this text, and how? (Please example).

PS: I hawe Apache2.0.50 and PHP5.0.1, from instal-packed XAMPP
BASIC package 1.4.6

Thanks,
... kofi.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] ... extendet library ...

2004-08-23 Thread Marko Rastislav
Hi all,
I just starting with php, and i hawe problem with Bzip2 library. I
will using this library, but when I use function bzcompress() in the
editor ZDE (Zend Development Enviroment 3.0.2), this editor write text Call
to undefined function:  bzcompress() ... . 

Example:
?php
$str = sample data;
$bzstr = bzcompress($str, 9);
print( $bzstr );
?
In help this function it's in section INSTALL information this
text: You will need to use the --with-bz2[=DIR] configuration option when
compiling PHP to enable bzip2 support.  Must I this funkcions aktivated?
Where (file) I must write this text, and how? (Please example).

PS: I hawe Apache2.0.50 and PHP5.0.1, from instal-packed XAMPP
BASIC package 1.4.6

Thanks,
... kofi.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Gd Library and Special Chars

2004-06-11 Thread news.php.net
Hi to all,
I need to do parsing of html data from one site for find nick , guild, and  
some other infos...

The problem is that gd doesn't print correctly chars like trademark,  
copyright, registered (which are contained in some nicks/guild names)...

Someone know a valid solution???
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] GD Library Upgrade

2004-05-31 Thread Ryan Schefke
I'm working with a host on a Linux box with PHP 4.2.2.  The version of GD
Library they have is 1.8.4.  I was uploading some pictures using a script
that leveraged GD Library 2+.  Using the php version with the newer GD
library seemed to produce a better quality image.  I have two questions:

 

1 - Can a newer version of GD Library (1.8.4 vs 2+) make a difference in
image quality?

2 - I'd like to upgrade the Linux box that has PHP 4.2.2 and GD Library
1.8.4 to the most recent version.  Is this easy?  Any guidance?  Do I need a
patch?

 

PS - I've been working off of this site: http://www.boutell.com/gd but
wanted to bounce this around with some experts first.

 



[PHP] Gd library not found

2004-05-08 Thread Phpu
Hi,
Where can i get the gd library for windows. I've googled but i can't find it.
Thanks


Re: [PHP] Gd library not found

2004-05-08 Thread Ray Hunter
On Sat, 2004-05-08 at 10:46, Phpu wrote:
 Where can i get the gd library for windows. I've googled but i can't find it.

It should be bundled with the zip file version of windows php. You will
probably have to download the zip file from php.net and then get the dll
for gd out of the zip file and put it where php can load it up.

--
Ray

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Set Library Path

2004-02-28 Thread Mike Mapsnac
How to set up the path for PHP Library?
I want to create a directory that will contain all libraries files. And than 
I want to include the directory in each file. How to specify the path in php 
setting?

Thanks

_
Take off on a romantic weekend or a family adventure to these great U.S. 
locations. http://special.msn.com/local/hotdestinations.armx

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Ming library

2004-02-26 Thread Rostislav Kerey
I've developed the web-site by PHP with using Ming-library. All worked well
on the local computer, but when I uploaded all to the internet server I have
got an  error :(
Ming library does not set in php.ini. The hosting provider company does not
want to add extension=php_ming.so to php.ini.
What should I do???
dl() function does not work too, because it is multithreaded Web servers.

I'm congused...
I really need to use it! Maybe I can find such library written by PHP?
There are few classes, nothig else.

Help me, please!!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Invalid Library??

2003-11-27 Thread xmg
Thank you! :)

Doing a make clean solved the problem and now
everything works. Re using Apache 2.x, yes I was
just using this because it was what came with
RH Linux 8.0 and 9.0. It is not a commercial 
server. However I will look into using 1.3.29.
This was my first attempt at building Apache,
PHP, etc. so am still learning. :)

Thanks again!,

lk


On Wed, 26 Nov 2003, Rasmus Lerdorf wrote:

 Your steps look ok.  Try a make clean and rebuild your mysql.so and see
 if that fixes it.  If not, consider just compiling it in statically.  Do
 you have a requirement for a shared mysql.so for some reason?
 
 Also, note that Apache 2.x + PHP is still not a recommended platform for
 PHP.  If you use a threaded mpm (anything but the prefork mpm) you are
 likely to run into issues under load.  We still suggest using
 Apache-1.3.29 for any sort of stable production server.  The fact that
 Redhat has decided to ship an unstable combination of software doesn't
 mean that suddenly all threading problems have magically gone away.
 
 -Rasmus
 
 On Wed, 26 Nov 2003, xmg wrote:
 
 
  On Linux RH 9.0 I built Apache 2.0.48 from source
  (to fix a problem I had with an earlier version).
  I also built PHP 4.3.4 using the following configuration
  directives:
 
  ./configure --with-apxs2=/usr/local/apache2/bin/apxs '--with-mysql=shared,/usr'
 
  Finally I installed MySQL 3.23.58 from an RPM.
 
  In the php.ini the extension_dir=/usr/lib/php4
  and I copied in the mysql.so file created when
  built PHP.
 
  But when I run Apache I see the following in the
  error_log:
 
  PHP Warning:  Unknown(): Invalid library (maybe not a PHP library)
  'mysql.so'  in Unknown on line 0
 
 
  Is there anything obviously wrong with what I am
  doing here? Basically I need Apache, and MySQl,
  and PHP. But I can't seem to find a combination that
  will work together?
 
  Thanks in advance for any ideas on this.
 
  lk
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Invalid Library??

2003-11-26 Thread xmg

On Linux RH 9.0 I built Apache 2.0.48 from source
(to fix a problem I had with an earlier version).
I also built PHP 4.3.4 using the following configuration
directives:

./configure --with-apxs2=/usr/local/apache2/bin/apxs '--with-mysql=shared,/usr'

Finally I installed MySQL 3.23.58 from an RPM.

In the php.ini the extension_dir=/usr/lib/php4
and I copied in the mysql.so file created when
built PHP. 

But when I run Apache I see the following in the
error_log:

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


Is there anything obviously wrong with what I am
doing here? Basically I need Apache, and MySQl,
and PHP. But I can't seem to find a combination that
will work together?

Thanks in advance for any ideas on this.

lk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Invalid Library??

2003-11-26 Thread Rasmus Lerdorf
Your steps look ok.  Try a make clean and rebuild your mysql.so and see
if that fixes it.  If not, consider just compiling it in statically.  Do
you have a requirement for a shared mysql.so for some reason?

Also, note that Apache 2.x + PHP is still not a recommended platform for
PHP.  If you use a threaded mpm (anything but the prefork mpm) you are
likely to run into issues under load.  We still suggest using
Apache-1.3.29 for any sort of stable production server.  The fact that
Redhat has decided to ship an unstable combination of software doesn't
mean that suddenly all threading problems have magically gone away.

-Rasmus

On Wed, 26 Nov 2003, xmg wrote:


 On Linux RH 9.0 I built Apache 2.0.48 from source
 (to fix a problem I had with an earlier version).
 I also built PHP 4.3.4 using the following configuration
 directives:

 ./configure --with-apxs2=/usr/local/apache2/bin/apxs '--with-mysql=shared,/usr'

 Finally I installed MySQL 3.23.58 from an RPM.

 In the php.ini the extension_dir=/usr/lib/php4
 and I copied in the mysql.so file created when
 built PHP.

 But when I run Apache I see the following in the
 error_log:

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


 Is there anything obviously wrong with what I am
 doing here? Basically I need Apache, and MySQl,
 and PHP. But I can't seem to find a combination that
 will work together?

 Thanks in advance for any ideas on this.

 lk

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Zip library

2003-09-17 Thread Stéphane Paquay
Hi all,

I need to unzip a file on a linux server automatically.

I found the ZZiplib being able to do this but I don't know how to configure
PHP to handle it.

I use PHP 4.2.2.

Thanks in advance,

Stephane.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Zip library

2003-09-17 Thread Jason Wong
On Wednesday 17 September 2003 16:38, Sthane Paquay wrote:

 I need to unzip a file on a linux server automatically.

 I found the ZZiplib being able to do this but I don't know how to configure
 PHP to handle it.

You need to recompile php adding 

  --with-zip[=DIR]

If you don't know how to do this then read manual  Installation. Or search 
out some tutorials.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Life is like an onion: you peel off layer after layer and then you find
there is nothing in it.
-- James Huneker
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Zip library

2003-09-17 Thread Marek Kilimajer
There are also pure php classes that can handle zip files, for example 
http://www.phpconcept.net/pclzip/index.en.php

Stéphane Paquay wrote:

Hi all,

I need to unzip a file on a linux server automatically.

I found the ZZiplib being able to do this but I don't know how to configure
PHP to handle it.
I use PHP 4.2.2.

Thanks in advance,

Stephane.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] FDF Library Issues

2003-08-01 Thread Richard Lynch
Please Cc: me directly, if possible.  Thanks!

[This got long, but a search for Synopsis: (two of them) should give the
gist.]

Originally, the machine (Linux 2.4.19-16mdk) had Mandrake 8 RPM's of PHP
4.2.3 and Apache 1.2.26

I was able to install LIBFDFTK.SO 5.0 and the .h file, symlinked to
lower-case libfdftk.so so Linux would like it, edited /etc/ld.so.conf and
did ldconfig -v to confirm its existence, and then downloaded PHP 4.2.3
source and compiled --with-fdftk=shared, shoved the resulting fdf.so into
the extensions directory, used http://php.net/dl('fdf.so') and was
succesfully using FDF to generate and process PDF Forms.

I wrote a hack (sample at http://php.net/fdf_enum_values) to dis-assemble
the PDF /Field object (Free Dimitry!) but it turned out to be not a good
enough hack later when more complex PDF Forms made the /Field object be a
nested array sort of thing.

Thus, I needed fdf_open_string and friends, which was only available in
PHP = 4.3.0, in order to correctly process incoming forms.

Downloaded Apache 1.2.28 source and PHP 4.3.2 source, and started compiling.

Got Apache and PHP running okay, and even managed to configure and copy
and symlink enough things so all the old httpd.conf files and php.ini file
were being used, which got the server back to the original pre-FDF state.

Alas, then the real problems started.

1) If I configure --with-fdftk=shared, then the resulting fdf.so file yields:
/usr/local/apache/bin/httpd: relocation error:
/usr/lib/php/extensions/fdf.so: undefined symbol: FDFInitialize

Now I've used diff to convince myself that I really really *DO* have the
fdf.so from 4.3.2 in /usr/lib/php/extensions

And I've used strings fdf.so to verify that there is some kind of entry
for FDFInitialize in there.

Plus, I've used strings LIBFDFTK.SO to verify that there is some kind of
entry for FDFInitialize in there as well.

So I'll be damend if I can figure out why the symbol is undefined. 
Everybody involved seems to know about it, so why is it undefined?  Who's
supposed to have the function body?

Which .so file was supposed to define it?  How could it have managed to
disappear in between 4.2.3 and 4.3.2?


2) Hoping that I could perhaps get FDF support in static and not lose
the symbol, I re-compiled --with-fdftk (IE, not shared)

phpinfo() then showed me that FDF was there:
fdf
FDF Support  enabled
FdfTk Version  5.0

Alas, attempting to use fdf_create() yielded:

FDF Error: An internal FDF Library error occurred

Gee, that's a useful error message.  Not.  How about some detail, Adobe?!


ldconfig -v *STILL* shows libfdftk.so getting loaded, so I don't think it
has suddenly disappeared from the OS.

The only other slightly weird thing is MySQL ended up being built-in to
PHP (argh!) so I get a ton of messages about duplicate symbols when trying
to load mysql.so   But I've seen that before on other boxes and safely
ignored it, and it sure shouldn't mess up FDF, right?...


Does anybody know of anything that changed between 4.2.3 and 4.3.2 that
would affect FDF support?

Can anybody tell me for 100% sure where the FDFInitialize symbol was
supposed to have been defined?  I figure it would be in LIBFDFTK.SO,
right?  Is there some way to convince PHP that it should be looking at the
modules loaded into Linux to find that -- It's already supposed to be
doing that, right?



Plan B:

Does anybody have a better hack for dis-assembling PDF /Field objects
recursively?  I don't *REALLY* want to back-track to 1.2.26 and 4.2.3, but
it's an option at least, if I can correctly parse the /Field object.



Synopsis:

PHP 4.2.3 + Apache 1.3.26 (RPM's) + fdf.so (source) works.

PHP 4.3.2 + Apache 1.3.28 (source) + fdf.so (source) yields:
/usr/local/apache/bin/httpd: relocation error:
/usr/lib/php/extensions/fdf.so: undefined symbol: FDFInitialize

PHP 4.3.2 + Apache 1.3.28 (source) + fdf (static) yields:
FDF Error: An internal FDF Library error occurred

If we can't fix those, anybody got a good hack for recursively
dis-assembling the /Field object in a PDF, preferably into a 1-D array?

Please Cc: me on replies if possible.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] validation library?

2003-06-25 Thread Paul Nowosielski
Can any point me to a nice GNU php validation library?
Looking for something thats strips bad user input and validates email,
tel etc etc...

Paul Nowosielski
-- 
What good are computers? They can only give you answers. ~ Pablo
Picasso


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] validation library?

2003-06-25 Thread Dan Joseph
Hi,

 Can any point me to a nice GNU php validation library?
 Looking for something thats strips bad user input and validates email,
 tel etc etc...

I don't have a link to a library, but, here's a function to validate e-mail
addresses:

if (!ereg (^[^@ [EMAIL PROTECTED]@ ]+\.[^@ \.]+$, $_POST[email])) {
$error = 1;
$msg  .= Invalid e-mail address.br;
}

-Dan Joseph


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] GD library update

2003-06-19 Thread Yury B .
Hi,
I need to use function imagecreatetruecolor() in my script but it 
doesn't work on my local apache+php+mysql on XP server. It works fine 
on the real server though but i need to play with it around. What do 
I need to do to get it work? from docs I understand I need gd 2.0.1 
or higher, well how to get it and how to install?

Thank you,

Yury
God is our provider 
http://www.body-builders.org/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] gd library + animated gif

2003-03-28 Thread rush
Can GD library produce animated gif's?

rush
--
http://www.templatetamer.com/




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] gd library + animated gif

2003-03-28 Thread Liam Gibbs
  Can GD library produce animated gif's?

Sorry. Maybe I should read more carefully. I skipped 'animatd' for some
reason? Still, no, GD won't produce animated GIFs.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] gd library + animated gif[Scanned]

2003-03-28 Thread Michael Egan
There's a section on Freshmeat about the ImageMagick project with further links:

http://freshmeat.net/projects/imagemagick/?topic_id=100

Given your previous comment it's tempting to say that a search on Google for 
'ImageMagick' would, er - well - but I'll resist :-)

Regards,

Michael


 Can GD library produce animated gif's?

 The PHP manual will tell you this. I'll save you the trouble, but next
time... well... the PHP manual will tell you stuff like this:

 Since a certain version of PHP, GIFs are unsupported. I'm told they can be
 read, but as far as producing new ones (resizing, changing, etc.) there's a
 copyright issue over its encryption method. To use GD completely, go wtih
 JPG or PNG. But, there is ImageMagick(?). Check that out. Anyone got a URL?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] gd library

2003-01-10 Thread Jorge Miguel Fonseca Martins
Title: Mensagem



I have just 
installed php 4.3.0what do I have to do now to get the gd library to 
work?

thanks






  
  


  


  
Jorge Martins
J[EMAIL PROTECTED]Engenheiro 
de InformáticaEngineering Department Tel: +351 22 3744827 
  WeMake - Tecnologias de Informação, 
Ldahttp://www.WeMake.pt/Rua 
Pinto de Aguiar, 223 2º ESQ 4400-252 V.N. GAIA - PortugalFax: +351 22 
3744831
  
Este E-mail contém informação 
  dirigida e para uso exclusivo das pessoas acima enunciadas. O seu conteúdo 
  é confidencial e é expressamente proibida qualquer utilização não 
  autorizada. Se recebeu este mail por engano, por favor notifique o seu 
  remetente imediatamente. Muito obrigado.The information contained 
  in this E-mail is intended for the exclusive use of the individual named 
  above. The contents may be confidential and any unauthorized use of 
  whatever kind is strictly prohibited. If you have received this 
  comunication in error, please notify de sender immediately. Thank you. 
  



[PHP] Media library

2002-12-18 Thread GWAD Mailinglist
Hi!

I'm looking a (good) PHP source for media library

reg (eg.).

- user authentication
- user groups
- store pictures / video / audio (database or file)
- easy upload
- php / mysql / apache

and maybe

- simple picture edit, video / audio edit??

Anyone to know something good source?




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Media library

2002-12-18 Thread Cal Evans
since you've not indicated that you've looked around and not found one, I
suggest starting your search at www.freshmeat.net.

=C=

*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*


-Original Message-
From: GWAD Mailinglist [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 8:32 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Media library


Hi!

I'm looking a (good) PHP source for media library

reg (eg.).

- user authentication
- user groups
- store pictures / video / audio (database or file)
- easy upload
- php / mysql / apache

and maybe

- simple picture edit, video / audio edit??

Anyone to know something good source?




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




  1   2   >