Re: [PHP] Config Problems

2001-12-22 Thread Ben Ocean
None of these suggestions worked. So...what's wrong with this config script that it throws these errors? configure: error: Cannot find OpenSSL's /usr/local/bin/config_php: --with-kerberos=/usr/krb5-1.2.2: No such file or directory /usr/local/bin/config_php: --with-ldap=/usr/local/openldap-2.0.

[PHP] Re: spliti

2001-12-22 Thread George Nicolae
$word=exlode(" ",$line); -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com "Yamin Prabudy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > hi guys, > I need help here. > I got this > $line = "no more words

[PHP] might be serious .. might be not ...

2001-12-22 Thread nOop
A post I found on a forum, maybe this thing is worth reading ... there are 2 parts from this same guy ... read below ... This might be long but shows something I must have missed ... and I'm sure the solution is simple On a Plesk intel sys I am having this serious problem tha

[PHP] Does mail() can be used to send attachments?

2001-12-22 Thread Dasmeet Singh Arora
Is it possible to send attachments using mail() command? If yes then how is it done. Thanks for any help. -- http://www.pluginjokes.com Add FREE Dynamic Jokes To Your Site! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

[PHP] Re: Email files as attachments

2001-12-22 Thread George Nicolae
look at http://phpmailer.sourceforge.net for a useful class. -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com "Andrew V. Romero" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I was won

Re: [PHP] SSI

2001-12-22 Thread Philip Olson
Things you can do: a) rewrite SSI as PHP b) rewrite SSI as PHP c) try using virtual() d) include them via http, like with file() or include() or fopen() (a) and (b) are preferred, (c) will work as will (d) and most likely [e-z] :) Also, search through the archives for other advice on the m

Re: [PHP] Does mail() can be used to send attachments?

2001-12-22 Thread Philip Olson
see: http://www.php.net/manual/en/function.mail.php a link to a tutorial/rfc exists there. also, check the various script archives for mail packages, most allow for attatchments. regards, Philip Olson On 22 Dec 2001, Dasmeet Singh Arora wrote: > Is it possible to send attachments using mai

[PHP] Re: Does mail() can be used to send attachments?

2001-12-22 Thread George Nicolae
look at http://phpmailer.sourceforge.net for a useful class. -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com "Dasmeet Singh Arora" <[EMAIL PROTECTED]> wrote in message 1009010971.1987.7.camel@linux">news:1009010971.1987.7

[PHP] php pop3 checker

2001-12-22 Thread M.E. Suliman
Hi I need to create a way for users to a site to check existing POP3 mail accounts, and fulfill all the regular webmail functions. Anyone know how if there are anywhere I could look for a start. I would prefer if it is in PHP. Thanks in advance Mohamed

Re: [PHP] php pop3 checker

2001-12-22 Thread Bogdan Stancescu
Check these out: http://www.horde.org/imp/ http://twig.screwdriver.net/ Also, make sure you search Google for security problems on them - I think IMP used to have some, but they seem to have fixed them since. "M.E. Suliman" wrote: > Hi > > I need to create a way for users to a site to check exi

[PHP] Function definition: how to make default argument an empty array?

2001-12-22 Thread Michael Jurgens
Hi, As you all may know, this is how you set an optional second argument, that defaults to acidophilus function makeyogurt ($flavour, $type = "acidophilus") { } I'm now looking for a way to have the second (optional) argument be an array of strings. I can't get it to work though... In pseudo-c

Re: [PHP] Function definition: how to make default argument an empty array?

2001-12-22 Thread Bogdan Stancescu
Can't test it now, but have you tried function makeyogurt ($flavour, $type = list()) I assume you need it to be an array because you want to either walk it or, more likely, perform an in_array() test on it and you found that passing non-array variables to in_array issues an error. If initializin

Re: [PHP] php pop3 checker

2001-12-22 Thread Michael Jurgens
Or try Popper, a nice standard webmail solution written in PHP. It must be on freshmeat.net Michael "Bogdan Stancescu" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Check these out: > http://www.horde.org/imp/ > http://twig.screwdriver.net/ > > Also, make su

[PHP] Re: spliti[SOLUTION]

2001-12-22 Thread Bharath Bhushan Lohray
Tested and works

php-general Digest 22 Dec 2001 12:52:57 -0000 Issue 1067

2001-12-22 Thread php-general-digest-help
php-general Digest 22 Dec 2001 12:52:57 - Issue 1067 Topics (messages 78533 through 78562): spliti 78533 by: Yamin Prabudy 78534 by: Brian Clark 78550 by: George Nicolae oscommerce / Exchange project 78535 by: Daniel Guerrier 78537 by: Kurt Lieber C

Re: [PHP] PostgreSQL query taking a long time

2001-12-22 Thread Papp Gyozo
use EXPLAIN to get more information about how postgres executes this query. I'm not sure about this, but there are some issues with fields of type int8. It may help to cast explicitly the fields involved in join like: WHERE bible.book::int4 = books.id::int4 Ask it the postgres mai

Re: [PHP] array_walk() + class methods

2001-12-22 Thread Jeff Levy
Much obliged, that did the trick. On Fri, 21 Dec 2001 05:48:31 -0500, Papp Gyozo wrote: > array_walk($ar, array(&$object, 'methodname')); > > - Original Message - > From: "Jeff Levy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> > Sent: Thursday, December 13, 2001 1:17 PM Subject: [PHP] a

[PHP] Help with select boxes

2001-12-22 Thread Sam
Hi all, I've a problem which I don't know how to get over, think it could more be an HTML problem, but anyway. I've a select box with long options names, this makes the box appear huge on screen. I was wondering how I can change the size of the box, so that when the user clicks on the drop down

Re: [PHP] Config Problems

2001-12-22 Thread Brian Clark
* Ben Ocean ([EMAIL PROTECTED]) [Dec 22. 2001 03:22]: > None of these suggestions worked. So...what's wrong with this config script > that it throws these errors? This may make no difference what so ever, but try removing config.cache, then use my suggestions and see if you get a different resu

[PHP] PGP --> PHP

2001-12-22 Thread J.Mueller, pro.vider.de GmbH
Hello Everybody, we have a problem to implement a PGP-function into a PHP-Script. PHP 4.0.6 as CGI, Apache 1.3.11, FeeBSD 4.2 a) PGP from the command line works: % pgps -ato test.sig test.txt -z passphrase b) Calling a little PHP Script $kommando = "/usr/local/bin/pgps -ato test.sig test.txt -

[PHP] Premature EOS Header

2001-12-22 Thread Anthony F. Rodriguez
When I call the following script, I get "Premature End of Script Header". Why? TEST "; }; @mysql_free_result($result_1); @mysql_close($connection); exit; ?> Thanks! Anthony F. Rodriguez ([EMAIL PROTECTED])

[PHP] Php & Directory structures

2001-12-22 Thread Martin Hughes
Heya, Can PHP count the number of a certain ftile in a directory and then print the result to the screen? I have articles on my site that are in XML/XSL format like: root/articles/00_head.xml 00_body.xml 01_head.xml 01_body.xml

Re: [PHP] Php & Directory structures

2001-12-22 Thread Bogdan Stancescu
Just a suggestion: use exec("ls -1 root/articles/??_head.xml",$article_files) to find out the files -- then walk $article_files, parse the file and echo whatever you please. :-) Bogdan Martin Hughes wrote: > Heya, > > Can PHP count the number of a certain ftile in a directory and then print > t

Re: [PHP] Help with select boxes

2001-12-22 Thread Andrew Brampton
I don't think what you want to do is possible.. and it is a HTML problem :).. Maybe JScript could do it by populating the dropdown once you click it, but I don't know if thats possible... Andrew - Original Message - From: "Sam" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, D

Re: [PHP] Config Problems

2001-12-22 Thread Ben Ocean
Well, that got me headed in the right direction. I ended up combining all the commands on one line and removing the references to openssl (I'll mess with that later) and it worked. I have no_idea why... Thanks, BenO At 09:03 AM 12/22/01 -0500, you wrote: >* Ben Ocean ([EMAIL PROTECTED]) [Dec 22

Re: [PHP] Config Problems

2001-12-22 Thread Brian Clark
* Ben Ocean ([EMAIL PROTECTED]) [Dec 22. 2001 11:54]: > Well, that got me headed in the right direction. I ended up combining all > the commands on one line and removing the references to openssl (I'll mess > with that later) and it worked. I have no_idea why... If you installed openssl from s

Re: [PHP] Config Problems

2001-12-22 Thread Ben Ocean
At 12:24 PM 12/22/01 -0500, you wrote: >* Ben Ocean ([EMAIL PROTECTED]) [Dec 22. 2001 11:54]: > > > Well, that got me headed in the right direction. I ended up combining all > > the commands on one line and removing the references to openssl (I'll mess > > with that later) and it worked. I have no

Re: [PHP] ./configure error. won't let me continue...

2001-12-22 Thread Brian Clark
* [EMAIL PROTECTED] ([EMAIL PROTECTED]) [Dec 22. 2001 02:59]: > Hello. Howdy. >I am trying to > ./configure > and I have many options I want to add. I receive an error which is further > below. It comes after I type this endless ./configure which you see below as > shown via telnet: [...]

Re: [PHP] Config Problems

2001-12-22 Thread Brian Clark
* Ben Ocean ([EMAIL PROTECTED]) [Dec 22. 2001 12:38]: > Yeah, I know. It's not an urgent matter, but I'll probably do with that > what I'm doing with php and mysql, etc.: rip out the rpms (rpm -e) and > install from source with my own config files, then symlink openssl-whatever > openssl. Just

Re: [PHP] Php & Directory structures

2001-12-22 Thread George Nicolae
u can use the function function GetDirArray($sPath) { //Load Directory Into Array $handle=opendir($sPath); while ($file = readdir($handle)) if(($file!=".")&($file!="..")) $retVal[(isset($retVal))?count($retVal):0] = $file; //Clean up and sort closedir($handle); sort($retVal); return $retVal; } //

Re: [PHP] PGP --> PHP

2001-12-22 Thread Brian Clark
* J.Mueller, pro.vider.de GmbH ([EMAIL PROTECTED]) [Dec 22. 2001 10:03]: > Hello Everybody, Hiya. > we have a problem to implement a PGP-function into > a PHP-Script. PHP 4.0.6 as CGI, Apache 1.3.11, FeeBSD 4.2 > a) > PGP from the command line works: > % pgps -ato test.sig test.txt -z passphra

Re: [PHP] Premature EOS Header

2001-12-22 Thread Brian Clark
* Anthony F. Rodriguez ([EMAIL PROTECTED]) [Dec 22. 2001 10:25]: > When I call the following script, I get "Premature End of Script Header". Why? > if ($password!=$row_2["password"]) > { > @mysql_free_result($result_1); > @mysql_close($connection); > header ("location:dis_3.htm"); It may

[PHP] PHP software tool

2001-12-22 Thread LaserJetter
Does anybody know of or can recommend any freeware text editing tools for editing PHP code in Win32? I can manage with Windows' Notepad but something with code highlighting etc and of a similar footprint to notepad would be useful. -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] PHP software tool

2001-12-22 Thread Cristian Graziano
http://synedit.sourceforge.net -- Cristian Graziano Digimax Graphics Mobile: 206.409.7132 www.digimaxgraphics.com - Original Message - From: "LaserJetter" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, December 22, 2001 10:46 AM Subject: [PHP] PHP software

Re: [PHP] PHP software tool

2001-12-22 Thread Brian Clark
* LaserJetter ([EMAIL PROTECTED]) [Dec 22. 2001 13:49]: > Does anybody know of or can recommend any freeware text editing tools for > editing PHP code in Win32? > I can manage with Windows' Notepad but something with code highlighting etc > and of a similar footprint to notepad would be useful.

Re: [PHP] PHP software tool

2001-12-22 Thread -BD-
I use 1stpage from evrsoft.com .. not a "real" php editor, but does a pretty good job... > Does anybody know of or can recommend any freeware text editing tools for > editing PHP code in Win32? > I can manage with Windows' Notepad but something with code highlighting etc > and of a similar footp

RE: [PHP] "Talkback" or community type participation.....

2001-12-22 Thread Warren Vail
Deron, By doing a Post to itself, this form will cause an error everytime someone clicks the Back button on the browser (after the first post, of course). What I do is have two forms, first invoked with a get via hot link or redirect. Form_1.php checks to see if variable $s has been passed (in

Re: [PHP] PHP software tool

2001-12-22 Thread LaserJetter
Does 1st page work well with PHP? The website says its good for Perl, HTML and ASP but it doesnt mention PHP anywhere. :-s "-Bd-" <[EMAIL PROTECTED]> wrote in message 028901c18b1c$3c0e4d80$[EMAIL PROTECTED]">news:028901c18b1c$3c0e4d80$[EMAIL PROTECTED]... > I use 1stpage from evrsoft.com .. no

Re: [PHP] PHP software tool

2001-12-22 Thread py
It works does fine with PHP, but my favorite is EditPlus, py At 07:29 PM 12/22/2001 +, you wrote: >Does 1st page work well with PHP? The website says its good for Perl, HTML >and ASP but it doesnt mention PHP anywhere. >:-s > > > >"-Bd-" <[EMAIL PROTECTED]> wrote in message >028901c18b1c$3c0e

[PHP] gd problem

2001-12-22 Thread Phillip B. Bruce
Hi, How can I tell if a web server has gd library load properly. I'm having problem with the imagecreatejpeg as the graphics does not want to come up. The code is correct. As other images that doesn't use this are coming up ok. --

Re: [PHP] Function definition: how to make default argument an empty array?

2001-12-22 Thread Michael Sims
At 01:17 PM 12/22/2001 +0100, Michael Jurgens wrote: >I'm now looking for a way to have the second (optional) argument be an array >of strings. I can't get it to work though... > >In pseudo-code: > >function makeyogurt ($flavour, $type = 'EMPTY ARRAY') >{ } Does this work? function makeyogurt ($

Re: [PHP] Question about CREATE_FUNCTION

2001-12-22 Thread Emile Bosch
since you CAN'T create functions runtime, unles you are using an eval expression but that's even slower that create_function.. function bla() { } $test = "bla"; $test(); Is not solving the problem since, it doesn't create a function at RUNTIME it only references a function.. (it references $tes

Re: [PHP] Function definition: how to make default argument an emptyarray?

2001-12-22 Thread Philip Olson
> In pseudo-code: > > function makeyogurt ($flavour, $type = 'EMPTY ARRAY') > { } function makeyogurt ($flavour, $type = array()) { ... } or function makeyogurt ($flavour, $type = array('a','b')) { ... } regards, Philip Olson -- PHP General Mailing List (http://www.ph

Re: [PHP] gd problem

2001-12-22 Thread Brian Clark
* Phillip B. Bruce ([EMAIL PROTECTED]) [Dec 22. 2001 14:47]: > Hi, Hi. >How can I tell if a web server has gd library load properly. I'm > having problem with >the imagecreatejpeg as the graphics does not want to come up. The > code is correct. >As other images that doesn't use this

Re: [PHP] Re: spliti[SOLUTION]

2001-12-22 Thread Philip Olson
I missed this thread but: a) split takes on regex, explode does not. b) spliti is case insensitive, spaces don't have cases. So, in your example, might as well use explode. $words = explode(' ', trim($string)); Although, let's say the following existed (it will): $string = 'a b c d

[PHP] PEAR E-mail

2001-12-22 Thread Gerard Onorato
Hello All, I was wondering if anyone could point me towards some good documentation on the PEAR e-mail functions. I was unable to turn up anything. Thanks, G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Re: PHP software tool

2001-12-22 Thread Mike
TextPad is another good text editor for all types of programming languages. Unforuntatly it is not free but the demo my work for you. http://www.textpad.com It supports multiple languages like PHP, JAVA and HTML -Mike "Laserjetter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[

[PHP] Image generation scripts

2001-12-22 Thread Step One
Hi there! I'm writing some stuff for a non-profit site as voluntary help. Does somebody have any PHP image generation scripts (GD) that could be used to "pretty" up a statistics page. The produced image should be a chart, pie, bars or something similar that could visually represent various st

RE: [PHP] PEAR E-mail

2001-12-22 Thread Richard Heyes
> I was wondering if anyone could point me towards some good > documentation on the PEAR e-mail functions. I was unable to turn > up anything. http://www.phpguru.org/pear/contents.html Not complete yet, but better than nothing. -- Richard Heyes "If you have any trouble sounding condescending

[PHP] strtoupper and HTML entities

2001-12-22 Thread mweb
Hello, I know I can convert a string to all uppercases with the strtoupper() function. However, what if the original string contains HTML entities? EXAMPLE: original string = "funkstörung" contains lowercase o with dieresis (ö) properly displayed

[PHP] probably more of a mysql question

2001-12-22 Thread Yoep
Hi, I am using mysql with PHP. I have one table called inventory with an index field of: Inventory_Id int(11) NOT NULL auto_increment Now I want to create another inventory table, for a different type say Royal_Inventory where it also has a Royal_Inventory_Id int(11) NOT NULL auto_increment How

[PHP] Re: gd problem

2001-12-22 Thread Yoep
I had a very hard trouble the other week trying to do a fresh installation of the newest PHP and Apache on the newest Suse (I think 7.3) with the GD libaries installed!! Everytime it compiled it refused to include the imagejpeg or imagepng support GD provides. I ended up just putting the newsest

[PHP] Re: Image generation scripts

2001-12-22 Thread Yoep
Terry, Their is a cool class someone has made to make it a snatch to add graphs charts, and so forth. Make a search for google for "PHP graph" its the first result JPGraph. I highly recommend it for your project. Regards, Yoep "Step One" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">

[PHP] what is pear email

2001-12-22 Thread Rambo Amadeus
i dont understand. What is pear email, and what is it used for? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] strtoupper and HTML entities

2001-12-22 Thread Michael Sims
At 11:32 PM 12/22/2001 +0100, mweb wrote: >Hello, > >I know I can convert a string to all uppercases with the strtoupper() >function. However, what if the original string contains HTML entities? > >EXAMPLE: > >original string = "funkstörung" Try this: -- PHP General Mailing List (http://www.

RE: [PHP] what is pear email

2001-12-22 Thread Richard Heyes
> i dont understand. What is pear email, and what is it used for? http://cvs.php.net/cvs.php/php4/pear/Mail.php and http://cvs.php.net/cvs.php/php4/pear/Mail -- Richard Heyes "If you have any trouble sounding condescending, find a Unix user to show you how it's done." - Scott Adams -- PHP

[PHP] Jpeg to Wbmp algorithm

2001-12-22 Thread Alex Vargas
Hi. I need to convert jpegs to wbmp. Unfortunately, the PHP build available in my server wasn't compiled with the GD library, so I have no access to JPEG2WBMP(). Is the source code of this function available somewhere? Or does anyone know about a PHP class to make this task? At least an algorithm

[PHP] accessing xml docs?

2001-12-22 Thread Shahin
i'm trying to use the following code to access a node w/ id=$idnum in record.xml : $doc=new DomDocument; $doc=xmldocfile( "record.xml" ); $strXPath = "/Students[@id='$idnum']"; $context=xpath_new_context($doc); $query = xpath_eval($context,$strXpath); $node = $query->nodeset[0]; $strValue = $nod

php-general Digest 23 Dec 2001 03:44:39 -0000 Issue 1068

2001-12-22 Thread php-general-digest-help
php-general Digest 23 Dec 2001 03:44:39 - Issue 1068 Topics (messages 78563 through 78606): Re: PostgreSQL query taking a long time 78563 by: Papp Gyozo Re: array_walk() + class methods 78564 by: Jeff Levy Help with select boxes 78565 by: Sam 78571 by: Andr

[PHP] Help with permissions/ownership

2001-12-22 Thread Gaylen Fraley
I'll try to be both concise and precise with this. I have some PHP code like this: if (!rename($path_to_file,$path_to_file_BACKUP)) die("$unable_to_access_file_msg $path_to_file_BACKUP"); $buffersize = round(filesize($path_to_file_BACKUP)*1.5); $fp_in = fopen("$path_to_file_BACKUP","r") or di

[PHP] mail function not support in php 4.1.0 with compiled with IMAP ???

2001-12-22 Thread Martin Fienkeng
I just finished installing php 4.1.0 with the following options with-imap, with-expat, with-mysql and with-apxs my system is Mandrake 8.1 I tried using the mail function to send mail out and this is the error I get "Warning: mail() is not supported in this PHP build in content on line 26" Is it