OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: php3 Digest 29 Mar 2000 17:59:30 -0000 Issue 1575
From: php3-digest-helplists.php.net
Date: Wed Mar 29 2000 - 11:59:30 CST


php3 Digest 29 Mar 2000 17:59:30 -0000 Issue 1575

Topics (messages 83537 through 83628):

PHP book
        83537 by: Ron Chmara <ronOpus1.COM>

PHP Developers Needed
        83538 by: "Tariehk Geter" <tgetertaconsultants.com>
        83539 by: "Taylor, Scott" <Scott.Taylormsj.com.au>

Is any body there ???
        83540 by: "Andy" <andymilonic.com>
        83542 by: Francis Smit <francisoztel.com>

phplib & sybase
        83541 by: Marcin Badtke <marcin.badtkepolkomtel.com.pl>

php and ctlib (problem with loading the module)
        83543 by: Lone Directory <blackdiryahoo.com>

OT
        83544 by: chchar <chcharmcms.com>

File Uploading.
        83545 by: "Yannis Tsakiris" <yannispathfinder.gr>

PHP with Ms Access
        83546 by: "SSI-Biznet" <leatherlaneeth.net>

Ideas for RTF/PHP3/HTML upload
        83547 by: "Jesper Hess Nielsen" <jespergraffen.dk>

getting querystring
        83548 by: "Ashok Hariharan" <ahariharancal.co.ke>

New Class: Html Mime mail class
        83549 by: nicholas klem <nklemchello.nl>

Mail Attachments
        83550 by: Jeroen Keppens <jkeppensxs4all.be>
        83552 by: "Jason Cox" <jasoncwebpipe.net>

virus
        83551 by: "Tyrone Watt" <tyronis.za>

hierarchical menus
        83553 by: chip carman <chipspiral.com>
        83554 by: "Pavel Kalian" <pkalianssw.cz>

Getting a date value...
        83555 by: "Bob Irwin" <bobirwinpnc.com.au>
        83556 by: Johan Skog <webmasterjohan-skog.nu>

Redirecting on 404 (works with Netscape, but now MSIE)
        83557 by: "Mark Nold" <MarkNawi.com.au>

Executing local commands on files?
        83558 by: "Jesper Hess Nielsen" <jespergraffen.dk>
        83602 by: "kesl (my mailing lists)" <kesl-listssofthome.net>

please, try to replay my question.
        83559 by: "Jordi Marquès." <trespiinterwatts.com>
        83561 by: "Pavel Kalian" <pkalianssw.cz>

Compile PHP
        83560 by: Janez Vrenjak <janez.vrenjakguest.arnes.si>

Moon phase
        83562 by: "Tyrone Watt" <tyronis.za>
        83563 by: Nick Davies <nickdsportinglife.com>
        83574 by: php3developersdesk.com
        83579 by: "Andrew Hill" <ahillopenlinksw.com>
        83588 by: "John Huggins" <hugginstls2000.com>

Mails to db
        83564 by: Jeroen Keppens <jkeppensxs4all.be>

Securing mod_php
        83565 by: Kristian Köhntopp <kknetuse.de>

Secret to strlen
        83566 by: David Diaz i Torrico <ddiazdrac.com>
        83581 by: Mário Pereira Martins <mpmuninova.pt>

how to load a image into another one.
        83567 by: Yong Wei <yweibaan.com>

hi
        83568 by: karine <rkarinechat.cc.huji.ac.il>

hi again
        83569 by: karine <rkarinechat.cc.huji.ac.il>
        83570 by: Soren Staun-Pedersen <stauncs.auc.dk>

PWMS by Parsec - anyone heard of it?
        83571 by: "Graeme Merrall" <gmerrallihug.com.au>

[PHP] Incorrect filenam for file download..another solution.
        83572 by: "Jani, P, Taskinen" <jani.taskinenkolumbus.fi>
        83594 by: <postmasterbol.net.in>

Get PHP to work with Interbase under Windows NT workstation
        83573 by: "Ron TJ HUANG" <ronpsitech.com.tw>
        83576 by: David Elliott <DavidEcavendish.com>
        83578 by: Jirka Kosek <jkjkosek.cz>

PHP with GD compile problem: ....`gdImageColorResolve' changed from 253 to 226 in gd.o...
        83575 by: Patric de Waha <pdewahainteract.lu>

PHPLIB and 2 databases
        83577 by: "kesl (my mailing lists)" <kesl-listssofthome.net>

need help getting php compiled
        83580 by: Sam Carleton <activex1one.net>

problem with the mail() function
        83582 by: CETAE Carlos Andre Marques Moreira <camoreirasfiec.org.br>
        83585 by: "George Papadakis" <georgepphaistosnetworks.gr>

index.php3
        83583 by: Peter Benoit <pbenoittriton-network.com>
        83586 by: Scott Tirrell <stirrelldeepriver.com>
        83587 by: "Rossi Designs" <webmasterrossidesigns.net>
        83591 by: Cynic <cynicmail.cz>
        83592 by: "John Huggins" <hugginstls2000.com>
        83593 by: Nick Davies <nickdsportinglife.com>
        83595 by: Peter Benoit <pbenoittriton-network.com>
        83596 by: Cynic <cynicmail.cz>
        83597 by: "John Huggins" <hugginstls2000.com>

ODBC Problem
        83584 by: Andre Felipe <Andre.Felipeembrapa.br>

RES: [PHP3] problem with the mail() function
        83589 by: CETAE Carlos Andre Marques Moreira <camoreirasfiec.org.br>

php retains old info
        83590 by: "Margie Wiers" <productiproductivetravel.com>
        83611 by: "Brian Leyton" <bleytoncpe-usalco.com>

Array Problems (With code this time)
        83598 by: "Mitch Vincent" <mitchvenux.net>

PHP ebusiness tricky question
        83599 by: Arnaud Lecat <lecathexanet.fr>
        83627 by: "Paul Meagher" <pauldatavore.com>

Multiple select
        83600 by: Nazar Kulynych <nazarkregister.com>
        83612 by: "Rossi Designs" <webmasterrossidesigns.net>
        83614 by: Nazar Kulynych <nazarkregister.com>

how do I terminate execution of a PHP script
        83601 by: "kesl (my mailing lists)" <kesl-listssofthome.net>

Php in Solaris?
        83603 by: "Vladimir Sanchez O." <vladimir.sanchezentelchile.net>
        83606 by: "Scott Wheeler" <scottyunau.com>
        83609 by: Nathan Benson <phuzzphactor.org>

Current Date
        83604 by: "kesl (my mailing lists)" <kesl-listssofthome.net>

Question
        83605 by: William Fan <william_fanmerck.com>
        83616 by: Mário Pereira Martins <mpmuninova.pt>
        83618 by: Keith Vance <keithvbzln.com>

WG: [PHP3] Secret to strlen
        83607 by: "Steven Glogger" <listglogger.ch>

ldap configure problem
        83608 by: "Robert T. Skepton" <rtskeptonhcea.com>

Segmentation fault - I need help!
        83610 by: "Steven Glogger" <listglogger.ch>

recode problem
        83613 by: Kristian Halle <kristfast.no>

persistent data
        83615 by: "Josh Zeidner" <jmz_phylogenichotmail.com>

index.php3 - RESOLVED!!
        83617 by: Peter Benoit <pbenoittriton-network.com>

Creating an incomplete calendar..
        83619 by: Donald Lloyd <donlloyd.org>

Date calculations
        83620 by: Chris Moewes-Bystrom <christophermoewes.com>
        83626 by: Chris Moewes-Bystrom <christophermoewes.com>

Returning values of an enum column
        83621 by: "Matt Williams" <mattoozoo.co.uk>

which OCI Fetch should I use...
        83622 by: bross <brosssoldusa.com>

template engine example document
        83623 by: Damien Mc Kenna <damienmc-kenna.com>

Problem with Includes
        83624 by: <scorpiofmei.gp.pan.org.mx>

index.php3 - RESOLVED!! (and improved now)
        83625 by: "Leon Mergen" <leonsolatis.com>

Support base64_encode/decode under Windows
        83628 by: "James Moore" <JamesProspect-enterprises.co.uk>

Administrivia:

To subscribe to the digest, e-mail:
        php3-digest-subscribelists.php.net

To unsubscribe from the digest, e-mail:
        php3-digest-unsubscribelists.php.net

To post to the list, e-mail:
        php3lists.php.net

----------------------------------------------------------------------

attached mail follows:


Manuel Lemos wrote:
> Personally, I feel that this anti-Amazon campaign is not properly
> justified. Amazon innovated. That's why they were granted the patents.
> If they didn't innovate the patent office would not have granted the
> patents.

Not exactly. Patents can be mistakenly awarded for technology already
being used by others. For example, the use of technology to easily check out
a shopping cart, which amazon claims they invented. Patents have been
awarded for "found" technology, as in the case John Moore, who donated
his cancerous spleen, and then discovered his own *DNA* had been
patented.... by somebody else. He had to take them to court to claim
ownership of his own DNA!. (An example of how absurd the US patent
system has become, ownership or originality is no longer required...
there are currently 38,034 DNA patents)

The current system is a far cry away from the fair governing body you
make it out to be. It has problems, indeed, *Beezos* notes that there are
problems with it. He has said that he thinks patents like his should only
be enforceable upon for a "much shorter lifespan than the current 17 years
-- I would propose 3 to 5 years", which means he should have given his patent up
*already*.
Appl. No.: 928951
Filed: September 12, 1997

That was over three years ago.
This smacks of the lowest form of hypocrisy to me.

> If you don't agree with the patents that were awarded you should have
> complained with the patent office. Before a patent is awarded there is a
> comment period.

No, not really. Beezos has suggested one, but patents are usually issued
without all affected parties knowing about it. Did you know that if you
manually adjust color on your monitor, to match your inkjet printer,
you are violating a patent (Owned by Radius, Inc.)? How about storing
a shopping cart in a cookie, that you use as part of your web pages?
(Sun owns that one, #5,745,681). Go take a look through uspto.gov. (I
wouldn't be surprised if their own site could be accused of violating
several patents....)

> Anyway, before you make any further comments, read this open letter from
> Jeff Bezos in which he explains that patents may be enforced case-by-case.
> http://www.amazon.com/exec/obidos/subst/misc/patents.html

That's "argued" case by case. Amazon has to prove that their patent is
applicable, and they will most likely loose. Often. The prior art is
out there, in early point-of-sale systems.

> To me this means that they will only sue direct competitors that are
> benefiting from the inovations that they patented. I believe they have all
> the right to do so. If you benefit your business with a inovation from a
> competitor you are hurting his business at his expense. Patents exist to
> prevent this.

So: Don't make a PHP website that may sell books?
Amazon owns the patent to buy things, with one click, over the internet,
Patent #5,960,411.

Really.

What else is owned? Using the internet to track customer info so you can
offer rebates, Patent Pend. #783372, using URL's to cross-link sales,
#6,029,141...

The US patent system hasn't kept up with current technology for years.
#6,029,141, which basically means that banner ads are now patented, came
a _long_ time after banner ads were in public use....the problem is
that they are abusing the system, which was designed to protect innovation
of small business, of home inventors, so big, monolithic, companies
couldn't steal their ideas. Not so big monoliths could use legal strongarm
tactics to suppress valid competition.

-Bop

attached mail follows:


Our company is looking for talented oversees PHP developers to develop various projects at low rates. Please send samples and rates to tgetertaconsultants.com

Best Regards,
Tariehk Geter
T&A Consultants, Inc.
tgetertaconsultants.com
www.taconsultants.com
(703) 449-1827 Office
(877) 454-4678 Office
(800) 572-0246 Fax

attached mail follows:


Mallesons Stephen Jaques
Confidential communication
 
"talented...developers", "low rates"
 
hmmm, interesting combination
 
 
 

-----Original Message-----
From: Tariehk Geter [mailto:tgetertaconsultants.com]
Sent: Wednesday, 29 March 2000 4:14:PM
To: php3lists.php.net
Subject: [PHP3] PHP Developers Needed

Our company is looking for talented oversees PHP developers to develop
various projects at low rates. Please send samples and rates to
tgetertaconsultants.com <mailto:tgetertaconsultants.com>
 
Best Regards,
Tariehk Geter
T&A Consultants, Inc.
tgetertaconsultants.com <mailto:tgetertaconsultants.com>
www.taconsultants.com <http://www.taconsultants.com>
(703) 449-1827 Office
(877) 454-4678 Office
(800) 572-0246 Fax

attached mail follows:


Question,
I was wondering what the best way to completely destroy a Discussion group was, Oh never mind I'll ask Joni. ;-)

Is my email down or something I haven't received an email from the PHP group in ages.

I do have a serious question.
Does any one know when the MS SQL Server Library for PHP4 will become available. I know that mySQL will communicate with PHP4 with ease but some of us still have to use the systems in place which in our case is MS-SQL 7. As PHP4 is at release candidate 1 it wont be long before support for PHP3 will be gone so it would be nice to know.

Thanks in advance.

Andy.

attached mail follows:


Andy wrote:

> Question,I was wondering what the best way to completely destroy a Discussion group was, Oh never
> mind I'll ask Joni. ;-) Is my email down or something I haven't received an email from the PHP
> group in ages. I do have a serious question.Does any one know when the MS SQL Server Library for
> PHP4 will become available. I know that mySQL will communicate with PHP4 with ease but some of us
> still have to use the systems in place which in our case is MS-SQL 7. As PHP4 is at release
> candidate 1 it wont be long before support for PHP3 will be gone so it would be nice to
> know. Thanks in advance. Andy.

We use freeTDS to connect to MS SQL 7.0 we have it working from
PHP Version 3.0.15 & 4.0b3 (soon to try with the newest), on Redhat
Linux 6.1 the URL is:

 http://www.freetds.org/ Check it out, I'll recommend it, I have to use
the sybase functions but what's in a name.

--

Grisly . oo `oO Francis Smit

Knowledge By Design/OzTel Suite 201, 683 George st Sydney 2000 NSW

mailto:franciskbd.com.au

Tel: +61 2 9212 1399 Fax: +61 2 9212 5727 ___________________________________ m$: How can we stuff you up today?

attached mail follows:


Does anyone have some expirience with PHPLIB and sybase ? I installed it on RH6.1 but I can't get example to work. The only I receive is:

Warning: Uninitialized variable or array index or property (sid) in /home/httpd/php/session.inc on line 397

Warning: Uninitialized variable in /home/httpd/php/session.inc on line 97

I did what is mentioned in documentation. I customized local.inc and setup.inc. Where should I look for errors ?

Marcin Badtke

attached mail follows:


Hi, I'm compiling php on RH 6.1 Intel and I choosed to use sybase library. I compiled using:

./configure --with-apxs=/usr/sbin/apxs --with-xml --with-pgsql=/usr/lib/pgsql -with-sybase-ct=/usr/local/sybase --with-ftp --with-gd

(ctlib is installed in /usr/local/sybase)

the compilation works fine and also the installation but when I start the http daemon to load the new module I get:

Syntax error on line 247 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp3.so into server: /etc/httpd/modules/libphp3.so: undefined symbol: sybaction

well if I do ldd on the module I get:

ldd /etc/httpd/modules/libphp3.so libgd.so.1 => /usr/lib/libgd.so.1 (0x4013b000) libttf.so.2 => /usr/lib/libttf.so.2 (0x40172000) libpq.so.2.0 => /usr/lib/libpq.so.2.0 (0x40187000) libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x40193000) libpam.so.0 => /lib/libpam.so.0 (0x40199000) libm.so.6 => /lib/libm.so.6 (0x401a1000) libdl.so.2 => /lib/libdl.so.2 (0x401bd000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x401c1000) libresolv.so.2 => /lib/libresolv.so.2 (0x401ee000) libc.so.6 => /lib/libc.so.6 (0x401fd000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

and if I use nm I get:

nm /etc/httpd/modules/libphp3.so | grep sybaction U sybaction

any suggestion? it seems that sybaction _is_ in the module...

thanks, Blackdir

__________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com

attached mail follows:


Hi, I have my Oracle server running in Sun Solaris. Now I want to setup Apache Web server running on Windows NT system with PHP. How I'm going to using PHP to access remote Oracle database from Sun Solaris ? What component I need to be installed in my Window NT other than Apache and PHP ? (May be ODBC ?)

As I know for Apache web server where running in Redhat, in order my PHP can accessing to remote Oracle database, I need to install Oracle client on my Linux server and then recompile PHP. But how about if I running on Windows NT environment ?

Thank in advance.

Regards, Char

begin 600 winmail.dat M>)\^(C'`0:0"``$```````!``$``0>0!`(````Y`0```````#H``$(`<` M&````$E032Y-:6-R;W-O9G036%I;"Y.;W1E`#$(`06``P`.````T`<#`!T` M```I`#H``P!=`0$`,`#```-`'`P`=````)P`V``,`5P$!"8`!`"$````Y M.3<R,S!"-3<P,#1$-#$Q.3V,S`P-C`Y-S-#.#9&,#&!$$`$``P```$]4 M`*,``0V`!``"``````"``$#D`8`$`<``"L````#`#N`""`&``````#````` M````1````!2A0``MPT``!X`/(`((`8``````,````````!&`````%2%```! M````!````#N,``#`#V`""`&``````#`````````1`````!A0````````L` M/H`((`8``````,````````!&``````.%````````"P`_`!``````P``` M`````$8`````#H4````````#`$"`""`&``````#`````````1`````0A0`` M``````,`08`((`8``````,````````!&`````!&%`````````P!"`!`` M````P````````$8`````&(4````````>`$.`""`&``````#`````````1`` M```VA0```0````$`````````'!$`!``````P````````$8`````-X4` M``$````!`````````!X`18`((`8``````,````````!&`````#B%```!```` M`0`````````"`0D0`0```!D"```5```-`,``$Q:1G4`V7UM`P`*`')C<&<Q M,C46,#X"V!N#A`P,S.=`?<`J0#XP(`8V*P&!S970P(`<3`H!].0J!=6,` M4`L#"[42"QI+`JB"H`$]5)(`$1`'9E(&UY($_:<#0;!2$3!R%)`%P-AR M=6X#``\(`N`!!?%>`&``;P"L`$`"X'L&^;!^`44'<`<`5`=&\54>AT=7`3 M=$$*L!#P%*!X5V5B%5X"(!E`"X!D"Q=!Z%4%5!Y<W1E`FT7H&ET:"!02&I0 M%S!(%V(G&[`3=&?V;Q82&`%U`)`6(1PA%_+]`-!C!Y`$(`EP!&`;D!3FU&1A M`9%A$3``U(6>G0/Q-T5Q$`!4`%H&W^<`("?`%0!10(K`)!?R_F(4H`N` M&X`'0!4P(U`64?\4P1JT&R(?4!D!<`;\`!P#QB+`'`C4!Y"/R`H389A%-`C MH4]$0D,AD#8I$W03?$$$(!10:VZO%V$"$`7`&.5W&6AW)9';%*`5V5()"(A M+!9"!;#O!($<Y13!'D)C`Y$>M!UU_Q\O(#,M(",((]43=!3U%2`O")`7T1J! M%,%,"X!U>/\55B;B)8$#H`EP(F(#$!2Z1PC0G4%0&780&"&!^=!-T!I`4 M01H/&Q,)\'9Z:0-;>`%]$AI1-Y5,4EX6L60F%D=!P'M!6+CGJ+,!G"Q%S M$VE#7Q$!$],YZCGJ$?$`0#`````+``(``0```!X`<``!`````P```$]4```" M`7$``0```!8````!OYE20G9J=A3D!3L1U)'9`*`DZ'&+``!``#D``&?^0E*9 MOP$#`/$_"00``!X`,4`!````+P```"]//4U)0U)/3B]/53U#35,P,R]#3CU% M6$-(04Y'12!54T524R]#3CU#2$-(05(```,`&D``````'`P0`$````O```` M+T\]34E#4D].+T]5/4--4S`S+T-./4580TA!3D=%(%5315)3+T-./4-(0TA! M4```P`90``````#`/T_Y`0```,`)```````P`V```````#`(`0_____P(! M1P`!````-````&,]55,[83T.W`]36EC<F]N.VP]7T--4S`S15A#2#$M,#`P M,S(Y,#<T,34X6BTQ.3DR,P`"`?D_`0```$L`````````W*=`R,!"$!JTN0` M*R_A$`````````+T\]34E#4D].+T]5/4--4S`S+T-./4580TA!3D=%(%53 M15)3+T-./4-(0TA!4``'#X/P$````'````8VAC:&%R```>`#A``0```"\` M```O3SU-24-23TXO3U4]0TU3,#,O0TX]15A#2$%.1T455-%4E,O0TX]0TA# M2$%2```"`?L_`0```$L`````````W*=`R,!"$!JTN0`*R_A$````````` M+T\]34E#4D].+T]5/4--4S`S+T-./4580TA!3D=%(%5315)3+T-./4-(0TA! M4``'#Z/P$````'````8VAC:&%R```>`#E``0```"\````O3SU-24-23TXO M3U4]0TU3,#,O0TX]15A#2$%.1T455-%4E,O0TX]0TA#2$%2``!```<P,#RC M6TF9OP%```P5!.B^5&9OP$>`#T``0````$`````````'`=#$````#```` M3U0```L`*0``````"P`C```````#``807M?W9`,`!Q#1`0```P`0$``````# M`!$0`````!X`"!`!````90```$A)+$E(059%35E/4D%#3$5315)615)254Y. M24Y'24Y354Y33TQ!4DE33D]725=!3E143U-%5%5005!!0TA%5T5"4T525D52 C4E5.3DE.1T].5TE.1$]74TY44UE35$5-5TE42%``````S7H= ` end

attached mail follows:


Hello, I'm facing a problem trying to upload more than one files in a single form. I see that many people have that same problem too. I tried so many things without effect. The arrays with the info about the files are wrong defined etc etc.. I would like to hear one final solution (if there is one!) on how to upload multiple files with php. I have linux 2.2.14, apache 1.3.11 and php 3.0.15. tia.

--Yannis T.

attached mail follows:


Hi List..

I am back again..

Had a small break..... Just using php with Ms access for a change in Windows NT platform. I am in a Windows box where I have to use Ms Access for the database interactivity with PHP.

Just need of small odbc help. That's all. Just write me about the syntax and how far is it realiable with System DSN and File DSN. I came to know that I can't have a File DSN for using Ms Access with PHP. So I have decided to use only System DSN.

I have the machine (windows 95) with PHP and Ms Access. Just write me how to proceed and I shall be great to proceed with my works...

Thanks in advance..

Regards, TV Karthick Kumar leatherlaneeth.net

attached mail follows:


Hi

Thanks, I actually already found that and was planning on incorporating it somehow. I now face the problem of converting .wmf files to .gif files. What would be great would be to do this as the file is uploaded (i.e. pipe the upload through a converter somehow) so the final result would be viewable immediately. Can anyone help me on this one? ----- Original Message ----- From: systems To: Jesper Hess Nielsen Sent: Wednesday, March 29, 2000 9:10 AM Subject: Re: [PHP3] Ideas for RTF/PHP3/HTML upload

Jesper - check out the shareware program: "rtf2html" - we use it regularly for getting content on to our intranet. Cant remember the web site but a search on rtf2html shou;l dfind it... gordon g.

attached mail follows:


I am running php3 on personal web server (win98) for a small workgroup intranet. Is there a way to retrieve the url querystring for the current page ? I cannot use the server variable as it is valid only if php executes on apache servers.

attached mail follows:


On Tue, 28 Mar 2000, Richard Heyes wrote: > For anyone who is interested I've expanded the mime_mail.class by Sascha > Schumann and Tobias Ratschiller. It now can send: > > HTML email. > HTML email with embedded images. > HTML email with embedded images and attachments. > Text email. > Text email with attachments. > > Some would say html email is a bad thing though... ;) > But either way, it's available here: > > http://www.heyes-computing.net/red.software/ > > Take care! > -- > Richard Heyes

I haven't tried it yet, but it looks cool! (html-mail = easy for mailnewbies?) Have you considered submitting a copy to http://phpclasses.upperdesign.com , to ease the search for phpclasses for addicted class users like myself? I know they already have some attachmentclasses etc, but I reckon they allow competing classes ;-)

nicholas nklemchello.nl

attached mail follows:


Hi,

I made a simple page to send mail from my website. I want to add attachments to these mail-files. I can allready upload these files to the server to read them. I have to include them into mail then using some encodement, but I'm not sure how to do it.

Does anyone know this? Or has anyone written this himself?

Tnx,

Jeroen

attached mail follows:


This question comes up pretty often and I can't seem to remember the url for the code. If you search teh mail archives, you'll find the url.

jason

-----Original Message----- From: Jeroen Keppens [mailto:jkeppensxs4all.be] Sent: Wednesday, March 29, 2000 1:08 AM To: php3lists.php.net Subject: [PHP3] Mail Attachments

Hi,

I made a simple page to send mail from my website. I want to add attachments to these mail-files. I can allready upload these files to the server to read them. I have to include them into mail then using some encodement, but I'm not sure how to do it.

Does anyone know this? Or has anyone written this himself?

Tnx,

Jeroen

--
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribelists.php.net
To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net
To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-adminlists.php.net

_______________________________________________________ Site Design, Hosting, and E-Commerce at www.webpipe.net

attached mail follows:


The damn thing is definitely gone now. Sorry for the trouble. Norton 5.0 wouldn't detect it with the virus update on 13/03/2000. F-secure did. Stupid little thing anyway. it installs in your autoexec file. Cheers. Tyrone.

attached mail follows:


Hi:

Does anyone know of sample code that works like the javascript menus at http://www.dantz.com ? These simple hierarchical sidebar menus work well on Internet Explorer on PC or Mac....

-chip carman

attached mail follows:


Have a look at http://webreference.com/dhtml/hiermenus/, might be what you want...

Pavel

----- Original Message ----- From: "chip carman" <chipspiral.com> To: <php3lists.php.net> Sent: Wednesday, March 29, 2000 9:36 AM Subject: [PHP3] hierarchical menus

> Hi: > > Does anyone know of sample code that works like the javascript menus at > http://www.dantz.com ? These simple hierarchical sidebar menus work > well on Internet Explorer on PC or Mac.... > > -chip carman > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribelists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > To search the mailing list archive, go to: > http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: php-list-adminlists.php.net >

attached mail follows:


G'day, I'm fairly new to this and I'm trying to get the current date from the MySQL server so I can seperate different dates into different tables. I have a fair idea of how to accomplish that but am having trouble getting the current date value out that I need. I'm probably doing something wrong that is really simple but have thrown myself in the deep end with MYSQL and PHP3 so I'm not so clued up on the easy stuff! :)

Below is my current code...

<? require("ini.php3"); $sql = new MySQL_class; $sql->Create("rirwin");

$result=MYSQL_QUERY("Select NOW()"); echo("Date is now $result");

?>

What I get back is

Date is now 2

Any help is very appreciated as I've already spent a couple of hours trying to get this out and it all seemed frustratingly simple when I started! :)

Best Regards, Bob Irwin PNC Network Consultant #5

attached mail follows:


Hi Bob,

Try this:

$result=MYSQL_QUERY("select NOW() as cc from XXXX"); $r=mysql_fetch_array($result); echo "Date is now $r[cc]";

XXXX=anytable name

/jOHAN

At 19:07 2000-03-29 +1000, Bob Irwin wrote:

>G'day, I'm fairly new to this and I'm trying to get the current date from >the MySQL server so I can seperate different dates into different >tables. I have a fair idea of how to accomplish that but am having >trouble getting the current date value out that I need. I'm probably >doing something wrong that is really simple but have thrown myself in the >deep end with MYSQL and PHP3 so I'm not so clued up on the easy stuff! :) > >Below is my current code... > ><? > require("ini.php3"); > $sql = new MySQL_class; > $sql->Create("rirwin"); > > $result=MYSQL_QUERY("Select NOW()"); >echo("Date is now $result"); > >?> > > >What I get back is > >Date is now 2 > >Any help is very appreciated as I've already spent a couple of hours >trying to get this out and it all seemed frustratingly simple when I >started! :) > > >Best Regards, >Bob Irwin >PNC Network Consultant #5 > > >-- >PHP 3 Mailing List <http://www.php.net/> >To unsubscribe, send an empty message to php3-unsubscribelists.php.net >To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net >To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 >To contact the list administrators, e-mail: php-list-adminlists.php.net

attached mail follows:


I seem to remeber reading somwhere that if MS IE gets a 404 header and the body that it retrieves is under x number of k's (i forget how many) it displays it own custom file not found page.

Also i wouldn't trust a meta tag for redirection as it is very client specific (as you may be finding)

mn

Mark Nold marknalverstone.com.au Systems Consultant

>>> Warren <wmphpgetlost.com.au> 03/29 5:36 am >>> My understanding is that the server has issued a 404, your script runs ok, but the particular browser you mention has received the 404 error header and decided not to display your custom output.

If you modify the header with:

header("HTTP/1.0 200 OK");

each time you want to display valid output, things may go better.

I don't like your idea of using the meta tag to call up the desired content as once again you are relying on the browser to do the right thing. Probably better to do, for example, header("Location: $go"). Though I am a bit hazy on exactly what happens in this case and am very much a novice in these matters, so beware!

Warren

On 28 Mar 2000 09:22:31 -0800, stefenlarshotmail.com ("Stefen Lars") wrote:

>I recently wrote the following script which is called when a 404 error >happens on our Linux server, running Apache and PHP (and MySQL). This script >redirects the web visitor depending upon which non-existing page he calls. >Say for example, he called: www.abc.com/blah/prices he is sent to >http://www.textcontrol.com/order/prices.htm which is the correct page. > ><script language="php"> > >$came_from = getenv("REQUEST_URI"); >$go = "http://www.abc.com"; > >$word[0] = 'prices'; >$word[1] = 'wwwboard'; >$word[2] = 'search'; > >$url = array > ('prices' => 'http://www.abc.com/order/prices.htm', > 'wwwboard'=> 'http://www.abc.com/discussion/list.php3?num=1', > 'search' => 'http://www.abc.com/discussion/search.php3?num=1'); > >for ($i = 0; $i < count($word); $i++) > { > if (ereg("$word[$i]", $came_from)) > $go = $url[$word[$i]]; > } > print "<meta HTTP-EQUIV='refresh' CONTENT='0; URL=$go'>"; > ></script> > >This works perfectly, with Netscape and I had assumed, as this is >server-side, the type of client (browser) would be of no importance. >However, when calling (for example) the non-existing page >www.abc.com/blah/prices with MSIE 4 and 5 all I see is the usual > >The page cannot be found >The page you are looking for might have been removed, had its name changed, >or is temporarily unavailable. > ><SNIP> > >HTTP 404 - File not found >Internet Explorer > >i.e. The actual script is not called, and thus the user cannot be redirect. > >Would anyone know why MSIE displays its own message page and does not use my >script? AFAIK Apache's config files are correct with: > >ErrorDocument 404 /errors/404.php3 > >How can I make MSIE call my script on a 404? > >Thanks in advance > >S > >______________________________________________________ >Get Your Private, Free Email at http://www.hotmail.com > > >-- >PHP 3 Mailing List <http://www.php.net/> >To unsubscribe, send an empty message to php3-unsubscribelists.php.net >To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net >To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 >To contact the list administrators, e-mail: php-list-adminlists.php.net >

attached mail follows:


Hi

How could I go about executing a local program (rtf2html) on a file which has just been uploaded by the user (using standard PHP upload capability) ?

My upload dir is /home/httpd/html/upload rtf2html is in /usr/local/r2h/rtf2html The uploaded filename is stored in $infile

Any ideas?

/Jesper

attached mail follows:


JHN> How could I go about executing a local program (rtf2html) on a JHN> file which has just been uploaded by the user (using standard PHP JHN> upload capability) ?

Hey,

I am over these problems now... if youre doing it on your own server you can just change permissions for directories and your webserver can do everything.

But if you go and host your site somewhere you wont be allowed to use mkdir and many of other commands just like that. You will need to do it through cgi-bin scripts (and su-exec probably)... at least where I am hosting my site, they are very careful about permissions.

Matjaz

attached mail follows:


Well i need to install php to work with a windows system, I don't know how to start, please tell me if i need to install apache, or i can install php to work with my personal web server without apache. I have te zip file php (php-3.0.15-win32) and I have download the (apache_1_3_12_win32 ),please tell me what I have to do to work off line with my own computer, using personal web server or the server of windows 2000 professional. If you now exactly where can I find this information, tell me the adress please.

Thank you very much. trespi.

attached mail follows:


php works with all the servers you mention, so it depends on which one you have installed or want to install, for me it's easiest to install it on IIS (4 or 5 - they're almost the same) under windows NT/2k, but it's not much harder to make it working under Apache/Win (follow the CGI installation guidelines from the distribution) or PWS (the regfile for IIS 3 from the PHP distribution should do the trick here as far as i can remember). If you just want to begin learning and don't know Apache I'd suggest you to start the MS way. The recipe for IIS 4 and 5 follows:

Windows NT and IIS 4 To install PHP on an NT Server running IIS 4, follow these instructions:

1. In Internet Service Manager (MMC), select the Web site or the starting point directory of an application.

2. Open the directory's property sheets (by right clicking and selecting properties), and then click the Home Directory, Virtual Directory, or Directory tab.

3. Click the Configuration button, and then click the App Mappings tab.

4. Click Add, and in the Executable box, type: c:\path-to-php-dir\php.exe %s %s. You MUST have the %s %s on the end, PHP will not function properly if you fail to do this.

5. In the Extension box, type the file name extension you want associated with PHP scripts. (You must repeat step 5 and 6 for each extension you want accociated with PHP scripts. (.php3 and .phtml are common)

6. Set up the appropriate security. (This is done in Internet Service Manager), and if your NT Server uses NTFS file system, add execute rights for I_USR_ to the directory that contains php.exe.

----- Original Message ----- From: "Jordi Marquès." <trespiinterwatts.com> To: <php3lists.php.net> Sent: Wednesday, March 29, 2000 1:04 PM Subject: [PHP3] please, try to replay my question.

Well i need to install php to work with a windows system, I don't know how to start, please tell me if i need to install apache, or i can install php to work with my personal web server without apache. I have te zip file php (php-3.0.15-win32) and I have download the (apache_1_3_12_win32 ),please tell me what I have to do to work off line with my own computer, using personal web server or the server of windows 2000 professional. If you now exactly where can I find this information, tell me the adress please.

Thank you very much. trespi.

attached mail follows:


Hello,

I tried to compile PHP on my linux RH6.1 box. I got that message from make:

gcc -O2 -I/usr/local/ssl/include/openssl -I. -I. -I../apache_1.3.12/src/include -I../apache_ 1.3.12/src/os/unix -I/usr/local/mysql/include/mysql -c functions/microtime.c -o functions/microtime.o functions/microtime.c: In function `php3_getrusage': functions/microtime.c:121: storage size of `usg' isn't known functions/microtime.c:124: `RUSAGE_SELF' undeclared (first use in this function) functions/microtime.c:124: (Each undeclared identifier is reported only once functions/microtime.c:124: for each function it appears in.) functions/microtime.c:130: `RUSAGE_CHILDREN' undeclared (first use in this function) make: *** [functions/microtime.o] Error 1 ****************************************************

What could be the couse?

THX

Janez

attached mail follows:


Hiya, Any math/astronomy geniuses out there that has the formula to calculate the phase of the moon from a current date. The ones I've found on the net all give different results to the actual calendar. Cheers Tyrone.

attached mail follows:


I don't really no that much. But isn't it every 28 days from full moon to full moon? Can't you have one date as a ref and 28 days on from that assume that it will be a full moon again?

On Wed, 29 Mar 2000, Tyrone Watt wrote:

> Hiya, > Any math/astronomy geniuses out there that has the formula to calculate the > phase of the moon from a current date. The ones > I've found on the net all give different results to the actual > calendar. > Cheers > Tyrone. > > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribelists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: php-list-adminlists.php.net >

attached mail follows:


Addressed to: Nick Davies <nickdsportinglife.com> Tyrone Watt <tyronis.za> PHP3 Mailing List <php3lists.php.net>

** Reply to note from Nick Davies <nickdsportinglife.com> Wed, 29 Mar 2000 11:30:48 +0100 (BST)

And I thought there would be a simple answer...

The interval between successive new moons, mean value, is 29.53059 days, the actual value can vary between 29.25 and 20.75.

from: Norton's 2000.0 Star Atlas and Reference Handbook.

This might be pretty close...

$Phase = ((( time() - 938355283 ) % 2551443 ) / 1275721 ) - 1;

$Phase will be:

0 = new moon 1 = full moon

+ = waxing - = waning

For example:

New moon = 0 march 6 at 12:17 AM EST or 17:17 UT

waxing qtr = 0.25 around march 10

waxing half = 0.50 around march 13

full 1 march 21 at 11:39:00 full -1 march 21 at 11:39:01

waning half = -0.50 around march 28

Next new moon 0 april 5 06:39 UT

or from the mysql command line:

mysql> SELECT ((unix_timestamp( 20000122100000 ) - 938355283 ) > % 2551443 ) / 127572;

will return 1.00 because 2000-01-22 at 10:00:00 UT was a full moon.

That is how I checked my math...

> > > I don't really no that much. But isn't it every 28 days from full moon > to full moon? Can't you have one date as a ref and 28 days on from > that assume that it will be a full moon again? > > On Wed, 29 Mar 2000, Tyrone Watt wrote: > > > Hiya, > > Any math/astronomy geniuses out there that has the formula to calculate the > > phase of the moon from a current date. The ones > > I've found on the net all give different results to the actual > > calendar. > > Cheers > > Tyrone. > > > >

And I thought there would be a simple answer...

Rick Widmer Internet Marketing Specialists www.developersdesk.com

attached mail follows:


Hi Folks,

Just out of curiosity, if you can generate a $Phase variable that represents the fraction of full the moon is, how would you then go about tying in this value to the fraction of a disk image generated?

I must admit I've not looked into gd at all; would this be a valid case to use it, and how?

Best regards, Andrew ---------------------------------------------------- Andrew Hill Technical Support Consultant OpenLink Software http://www.openlinksw.com Universal Database Connectivity Technology Providers

-----Original Message----- From: php3developersdesk.com [mailto:php3developersdesk.com] Sent: Wednesday, March 29, 2000 7:59 AM To: Nick Davies; Tyrone Watt; PHP3 Mailing List Subject: Re: [PHP3] Moon phase

Addressed to: Nick Davies <nickdsportinglife.com> Tyrone Watt <tyronis.za> PHP3 Mailing List <php3lists.php.net>

** Reply to note from Nick Davies <nickdsportinglife.com> Wed, 29 Mar 2000 11:30:48 +0100 (BST)

And I thought there would be a simple answer...

The interval between successive new moons, mean value, is 29.53059 days, the actual value can vary between 29.25 and 20.75.

from: Norton's 2000.0 Star Atlas and Reference Handbook.

This might be pretty close...

$Phase = ((( time() - 938355283 ) % 2551443 ) / 1275721 ) - 1;

$Phase will be:

0 = new moon 1 = full moon

+ = waxing - = waning

For example:

New moon = 0 march 6 at 12:17 AM EST or 17:17 UT

waxing qtr = 0.25 around march 10

waxing half = 0.50 around march 13

full 1 march 21 at 11:39:00 full -1 march 21 at 11:39:01

waning half = -0.50 around march 28

Next new moon 0 april 5 06:39 UT

or from the mysql command line:

mysql> SELECT ((unix_timestamp( 20000122100000 ) - 938355283 ) > % 2551443 ) / 127572;

will return 1.00 because 2000-01-22 at 10:00:00 UT was a full moon.

That is how I checked my math...

> > > I don't really no that much. But isn't it every 28 days from full moon > to full moon? Can't you have one date as a ref and 28 days on from > that assume that it will be a full moon again? > > On Wed, 29 Mar 2000, Tyrone Watt wrote: > > > Hiya, > > Any math/astronomy geniuses out there that has the formula to calculate the > > phase of the moon from a current date. The ones > > I've found on the net all give different results to the actual > > calendar. > > Cheers > > Tyrone. > > > >

And I thought there would be a simple answer...

Rick Widmer Internet Marketing Specialists www.developersdesk.com

--
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribelists.php.net
To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net
To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-adminlists.php.net

attached mail follows:


Here are some references.

http://tycho.usno.navy.mil/vphase.html

http://www.googol.com/moon/

http://www.sweethome.de/giesen/SME/anim/sme_anim.html

http://mgw.dinet.de/physik/moonyear/

I love this one. http://mgw.dinet.de/physik/sunmoonmap/sunmoonmap.html

> -----Original Message----- > From: Tyrone Watt [mailto:tyronis.za] > Sent: Wednesday, March 29, 2000 5:10 AM > To: PHP3 Mailing List > Subject: [PHP3] Moon phase > > > Hiya, > Any math/astronomy geniuses out there that has the formula to > calculate the > phase of the moon from a current date. The ones > I've found on the net all give different results to the actual > calendar. > Cheers > Tyrone. > > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribelists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > To search the mailing list archive, go to: > http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: php-list-adminlists.php.net >

attached mail follows:


I don't know whether it's possible, but does anyone have a solutions to this:

We have a mailinglist, in stead of inserting every mail hand by hand into the databank, we want to automate this.

Suppose I've got 1 emailaddie from the list, can I let all the mail that comes to that address be handled by a script which directly puts the mail into a MySQL database?

How does it happens in the PHP Mail Archives?

tnx Jeroen

attached mail follows:


Francis Smit wrote: > Umm what are these security problems, and > what are suexec and sbox, I find nothing > when I search http://www.php.net/

Search wider.

http://stein.cshl.org/software/sbox/

Kristian

-- 
Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH
Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00
Using PHP3? See our web development library at
http://phplib.netuse.de/ (We have moved! Update your bookmarks!)

attached mail follows:


On Tue, 28 Mar 2000, CDitty wrote:

> Is there a secret to strlen()? As you can see below, if the password is > less than 4 or greater than 10, generate an error. For some reason, it > seems to be skipping this spot. Any ideas? > > > > if(!isset($email_error)){ > if(strlen($password) > "3" && strlen($password) < "11"){

since strlen returns an integer you should compare it with another integer not with a char, do it this way:

if(strlen($password) > 3 && strlen($password) < 11){

> $error = "1"; > $error_password_length = "<font color='#FF0000'>Passwords must be longer > the 4 chars & less than 10 chars.</font><br>"; > } > } > > > > Thanks > > CDitty > > ps....Thanks to all who answered my IsSet() question earlier. Was a simple > misspelling. > > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribelists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: php-list-adminlists.php.net >

attached mail follows:


I would do it like this

if(!isset($email_error)){ $len = strlen($password) ; if(($len < 4) || ($len > 10) ){ $error = "1"; $error_password_length = "<font color='#FF0000'>Passwords must be longer the 4 chars & less than 10 chars.</font><br>"; }

-----Original Message----- From: David Diaz i Torrico [mailto:ddiazdrac.com] Sent: Wednesday, March 29, 2000 12:00 PM To: CDitty Cc: php3lists.php.net Subject: Re: [PHP3] Secret to strlen

On Tue, 28 Mar 2000, CDitty wrote:

> Is there a secret to strlen()? As you can see below, if the password is > less than 4 or greater than 10, generate an error. For some reason, it > seems to be skipping this spot. Any ideas? > > > > if(!isset($email_error)){ > if(strlen($password) > "3" && strlen($password) < "11"){

since strlen returns an integer you should compare it with another integer not with a char, do it this way:

if(strlen($password) > 3 && strlen($password) < 11){

> $error = "1"; > $error_password_length = "<font color='#FF0000'>Passwords must be longer > the 4 chars & less than 10 chars.</font><br>"; > } > } > > > > Thanks > > CDitty > > ps....Thanks to all who answered my IsSet() question earlier. Was a simple > misspelling. > > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribelists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: php-list-adminlists.php.net >

--
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribelists.php.net
To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net
To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-adminlists.php.net

attached mail follows:


Dear all

Does anyone who how to load a image into another one.

thanks Yong

attached mail follows:


Is it possible to call a JavaScript function from a program in PHP3 and how?

Thanks

Karine Rosenfeld

attached mail follows:


some people told us that we can't call javascript into php3, but i have another question: we have some radio buttons with the same name, and i must check whose button is checked how can i do that in php3?

thanks Karine

attached mail follows:


> some people told us that we can't call javascript into php3, > but i have another question: > we have some radio buttons with the same name, and i must check whose > button is checked > how can i do that in php3?

You should know what you're asking. Javascript is client-side, so you can determine mouse buttons and mouse movements and other stuff like that. PHP is strictly serverside, so there's no way of determining wether the user farts during the time he views the webpage.

So yes.. you "can call javascript into php3" but you can only see the results of the scripts. It's like doing a dropdown which autosubmits.. you can see the submitted data, but not wether the user moused over the dropdown 15 times before he finally clicked it.

Cheers,

Soeren Staun-Pedersen - StaunSunSITE.auc.dk ------ "The internet is full, beat it" - Me.

attached mail follows:


Hi, I've just been shown given the archive of a PHP app called PWMS by a crowd calling themselved 'Parsec'. It didn't have any docs with it but I found a like to www.parsec.hu which doesn't exist near as I can tell. Anyone heard of this beasty or have a URL. Near as I can tell it's some project tracking software, butr I'm just curious to know more about it b4 wasting time on it.

Cheers, Graeme

attached mail follows:


I saw few posts in the archive about the subject while I was strugling with it myself.

Below is a code snippet which works for me in both IE and Netscape. I haven't tried any other versions but IE 5 and Netscape 4.7 but this SHOULD =) work with other browsers too.

Here goes:

header('Content-type: application/RFC822'); if(ereg("MSIE", $HTTP_USER_AGENT)) { header('Content-Disposition: attachment;filename="'.urlencode($filuname).'"'); } else { header('Content-Disposition: attachment; filename="'.$filuname.'"'); } readfile($filuname); exit();

(sorry about poor alignment..)

Hope this helps some of you.

--Jani

-- 
"This is my signature, this is my mail.." - Full Metal Mail

attached mail follows:


Mail not delivered to hope16mbol.net.in. The mailbox of the user has exceeded the allotted limit. Try sending later.

attached mail follows:


Dear All,

I have finally set up my PHP environment to run under windows NT workstation, with Apache. However, I don't know how to connect to the database of Interbase.

The piece of code follows,

<?php $dbh = ibase_connect ("c:/Km/Km.gdb", "sysdba", "system"); $stmt = 'SELECT * FROM TYPE'; $sth = ibase_query ($dbh, $stmt); while ($row = ibase_fetch_object ($sth)) { print $row->email . "\n"; } ibase_close ($dbh); ?>

And the error messages are shown: Warning: InterBase: unavailable database in c:\program files\apache group\apache\htdocs\index.html.php3 on line 77

Warning: InterBase module: 0 is not link or transaction index in c:\program files\apache group\apache\htdocs\index.html.php3 on line 79

Warning: InterBase module: 0 is not result index in c:\program files\apache group\apache\htdocs\index.html.php3 on line 80

Warning: InterBase module: 0 is not link or transaction index in c:\program files\apache group\apache\htdocs\index.html.php3 on line 83

I don't know what is the problem, but assume that there are some mistakes while connecting to the database. Can anyone help me with it?

Many thanks.

Ron.

attached mail follows:


Hi Ron,

On 29 March 2000 at 20:23:47 GMT +0800 (which was about 12:23 where I live) Ron TJ HUANG <ronpsitech.com.tw> wrote about "[PHP3] Get PHP to work with Interbase under Windows NT workstation" and made these points:

RTH> I have finally set up my PHP environment to run under windows NT RTH> workstation, with Apache. However, I don't know how to connect to RTH> the database of Interbase. I am presuming that you have loaded the dll (called php3_interbase.dll) either using dl or edit the ini if so try this script.

<?php ibase_connect("d:\\test.gdb","sysdba","masterkey"); $res = ibase_query("select * from test"); $f = ibase_num_fields($res); while ($r = ibase_fetch_row($res)) { for($i = 0; $i < $f; $i++) echo "$r[$i]\t"; echo "\n"; } ibase_free_result($res); ibase_close(); ?>

-- 
Regards,
 David

davidecavendish.com

-------------------------------------- Random tag with all new messages Tag Line No 189970 Moderator (n): see god, dictator, egoist, oppressor. --------------------------------------

attached mail follows:


On Wed, 29 Mar 2000, Ron TJ HUANG wrote:

Hi,

> <?php > $dbh = ibase_connect ("c:/Km/Km.gdb", "sysdba", "system");

I have no really experience with IB under Windows and PHP, but AFAIK you should reference your database by this way

localhost:c:/km/km.gdb

Because IB library must know network address of server to connect.

> $stmt = 'SELECT * FROM TYPE'; > $sth = ibase_query ($dbh, $stmt); > while ($row = ibase_fetch_object ($sth)) { > print $row->email . "\n"; > } > ibase_close ($dbh); >

----------------------------------------------------------------- Jirka Kosek e-mail: jirkakosek.cz http://www.kosek.cz

attached mail follows:


Hi,

I had gd 1.3 on the system.. wel since that version doesn't feature jpeg pngs..

I installed .1.7.3..

well then I try to compile php.3.0.15: At the end when linking php it writes:

. . gcc -O2 -m486 -fno-strength-reduce -DLINUX=2 -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr/include/apache -I. -I. -c ./mod_php3.c

gcc -shared -o libphp3.so ./mod_php3.o libmodphp3-so.a -L/usr/local/lib -lgd -lttf -L/usr/lib/mysql -lmysqlclient -lldap -llber -ldb pcrelib/libpcre.a -lpam -lm -ldl -lcrypt -lresolv -Lpcrelib -lpcre -Wl,-rpath /usr/lib/mysql

/usr/local/lib/libgd.a(gd.o): In function `gdImageColorResolve': gd.o(.text+0x6a0): multiple definition of `gdImageColorResolve'

libmodphp3-so.a(gd.o):/home/pdewaha/php-3.0.15/functions/gd.c:227: first defined here /usr/bin/ld: Warning: size of symbol `gdImageColorResolve' changed from 253 to 226 in gd.o

Thanks in advance..

:) cu

attached mail follows:


Hello,

have anyone used PHPLIB with more than 1 database at the same time? How is it possible to access 2 different databases (mysql, oracle) from the same php3 script?

Matjaz

attached mail follows:


I am trying to compile php and am getting errors. This is how I have php configured:

/configure \ --with-apache=/data01/src/apache \ --with-ldap \ --with-xml \ --with-ftp \ --enable-track-vars \ --enable-magic-quotes \ --with-mysql \ --with-ldap \ --with-imap \ --enable-sysvshm=yes \ --enable-sysvsem=yes \ --enable-debug=no \ --with-imagick \ --with-mysql=/usr/local/mysql

The configure works fine, but make blows up on me right off the bat:

# make gcc -g -O2 -O2 -I/data01/src/php-3.0.15 -I. -I/data01/src/apache/src/include -I/data01/src/apache/src/os/unix -I/usr/local/include/magick -I/usr/X11R6/include/X11 -I/usr/local/mysql/include -I/data01/src/apache/src/lib/expat-lite -c language-parser.tab.c -o language-parser.tab.o In file included from /data01/src/apache/src/include/ap_config.h:1133, from php.h:199, from language-parser.y:52: /usr/local/include/magick/memory.h:17: syntax error before `void' make: *** [language-parser.tab.o] Error 1 #

Anyone know what is going on and how to fix it?

-- 
Sam Carleton

attached mail follows:


Hi all, I'm trying to send a message using mail() but it just don't work, i always got the message: Warning: Failed to Connect in cadastro.php on line 21 That's the code i'm using: $to = "camoreirasfiec.org.br"; $subject = "subject"; $message = "message"; mail($to,$subject,$message);

I've also tried: mail("camoreirasfiec.org.br","subject","message"); But i got the same message, i've tried others e-mail addresses but it didn't help. So, what i'm missing?

Thanks, Carlos Andre

attached mail follows:


<? function sendmail( $from, $rcpt, $subj, $body ) { $fp = popen( "/usr/sbin/sendmail -t", "w" ); fwrite( $fp, "from: $from\n" ); fwrite( $fp, "to: $rcpt\n" ); fwrite( $fp, "subject: $subj\n"); fwrite( $fp, "$body\n"); pclose($fp); } ?>

Use that instead.You may need to change the sendmail'spath or the OS if you are in Windows:-)

Gp.

attached mail follows:


Hello all,

I recieved this reply to my request of adding index.php3 to the default document list on my host:

No, there is a documented issue with trying to run any PHP script as the default. The best way to approach this is to write a Index.html that simply redirects the client to your desired page.

Is this the truth? If not, what can I say in regards to it?

TIA, Peter

attached mail follows:


Peter,

I only know that the server at our company does, indeed, recognize index.php3 as a default document. I really don't know what the issues are, though, to be honest, but I know it is being done, for what its worth!

Sincerely, Scott Tirrell

attached mail follows:


Move your site. There's bound to be more troubles than that down the road. There are so many service providers available that you should never have to take crap from any of them.

----- Original Message ----- From: Peter Benoit <pbenoittriton-network.com> To: <php3lists.php.net> Sent: Wednesday, March 29, 2000 9:37 AM Subject: [PHP3] index.php3

| Hello all, | | I recieved this reply to my request of adding index.php3 to the default | document list on my host: | | No, there is a documented issue with trying to run any PHP script as the | default. The best way to approach this is to write a Index.html that simply | redirects the client to your desired page. | | Is this the truth? If not, what can I say in regards to it? | | TIA, | Peter | | -- | PHP 3 Mailing List <http://www.php.net/> | To unsubscribe, send an empty message to php3-unsubscribelists.php.net | To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net | To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 | To contact the list administrators, e-mail: php-list-adminlists.php.net | |

attached mail follows:


I have used index files since I first installed PHP (it was 4b3) without any problems. My httpd.conf: DirectoryIndex index.php4 index.php3 index.phtml index.html

At 09:37 29.3.2000 -0500, Peter Benoit wrote the following: -------------------------------------------------------------- >Hello all, > >I recieved this reply to my request of adding index.php3 to the default >document list on my host: > >No, there is a documented issue with trying to run any PHP script as the >default. The best way to approach this is to write a Index.html that simply >redirects the client to your desired page. > >Is this the truth? If not, what can I say in regards to it? > >TIA, >Peter > >-- >PHP 3 Mailing List <http://www.php.net/> >To unsubscribe, send an empty message to php3-unsubscribelists.php.net >To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net >To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 >To contact the list administrators, e-mail: php-list-adminlists.php.net ------end of quote------ ____________________________________________________________ Cynic:

A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue.

<mailto:cynicmail.cz>cynic<mailto:cynicmail.cz>mail.cz ICQ: 2808 2505

attached mail follows:


Same here. I have only used the PHP4 with Apache 1.3.9-12 and "DirectoryIndex index.php index.phtml index.html" just works.

John > > > I have used index files since I first installed PHP (it was > 4b3) without any problems. My httpd.conf: > DirectoryIndex index.php4 index.php3 index.phtml index.html > > > > At 09:37 29.3.2000 -0500, Peter Benoit wrote the following: > -------------------------------------------------------------- > >Hello all, > > > >I recieved this reply to my request of adding index.php3 to the default > >document list on my host: > > > >No, there is a documented issue with trying to run any PHP script as the > >default. The best way to approach this is to write a Index.html > that simply > >redirects the client to your desired page. > > > >Is this the truth? If not, what can I say in regards to it? > > > >TIA, > >Peter > > > >-- > >PHP 3 Mailing List <http://www.php.net/> > >To unsubscribe, send an empty message to php3-unsubscribelists.php.net > >To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > >To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 >To contact the list administrators, e-mail: php-list-adminlists.php.net ------end of quote------ ____________________________________________________________ Cynic:

A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue.

<mailto:cynicmail.cz>cynic<mailto:cynicmail.cz>mail.cz ICQ: 2808 2505

--
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribelists.php.net
To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net
To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-adminlists.php.net

attached mail follows:


Thats only if you have access to a httpd.conf file. Most of us don't :).

On Wed, 29 Mar 2000, Cynic wrote:

> I have used index files since I first installed PHP (it was > 4b3) without any problems. My httpd.conf: > DirectoryIndex index.php4 index.php3 index.phtml index.html > > > > At 09:37 29.3.2000 -0500, Peter Benoit wrote the following: > -------------------------------------------------------------- > >Hello all, > > > >I recieved this reply to my request of adding index.php3 to the default > >document list on my host: > > > >No, there is a documented issue with trying to run any PHP script as the > >default. The best way to approach this is to write a Index.html that simply > >redirects the client to your desired page. > > > >Is this the truth? If not, what can I say in regards to it? > > > >TIA, > >Peter > > > >-- > >PHP 3 Mailing List <http://www.php.net/> > >To unsubscribe, send an empty message to php3-unsubscribelists.php.net > >To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > >To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 > >To contact the list administrators, e-mail: php-list-adminlists.php.net > ------end of quote------ > ____________________________________________________________ > Cynic: > > A member of a group of ancient Greek philosophers who taught > that virtue constitutes happiness and that self control is > the essential part of virtue. > > <mailto:cynicmail.cz>cynic<mailto:cynicmail.cz>mail.cz > ICQ: 2808 2505 > > > > > > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribelists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: php-list-adminlists.php.net >

attached mail follows:


Well my old host allowed this, but my new host doesn't. The old host was on an Apache server, while the new one is on NT. I chose the new host so I could develop ASP and PHP apps, but now I'm finding that alot of the things I could do on the old host I can't do now.

I haven't heard of this index.php3 issue before, and found it odd that there was an issue at all!

Peter

> -----Original Message----- > From: John Huggins [SMTP:hugginstls2000.com] > Sent: Wednesday, March 29, 2000 10:10 AM > To: php3lists.php.net > Subject: RE: [PHP3] index.php3 > > Same here. I have only used the PHP4 with Apache 1.3.9-12 and > "DirectoryIndex index.php index.phtml index.html" just works. > > John > > > > > > I have used index files since I first installed PHP (it was > > 4b3) without any problems. My httpd.conf: > > DirectoryIndex index.php4 index.php3 index.phtml index.html > > > > > > > > At 09:37 29.3.2000 -0500, Peter Benoit wrote the following: > > -------------------------------------------------------------- > > >Hello all, > > > > > >I recieved this reply to my request of adding index.php3 to the default > > >document list on my host: > > > > > >No, there is a documented issue with trying to run any PHP script as > the > > >default. The best way to approach this is to write a Index.html > > that simply > > >redirects the client to your desired page. > > > > > >Is this the truth? If not, what can I say in regards to it? > > > > > >TIA, > > >Peter > > > > > >-- > > >PHP 3 Mailing List <http://www.php.net/> > > >To unsubscribe, send an empty message to php3-unsubscribelists.php.net > > >To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > > >To search the mailing list archive, go to: > http://www.php.net/mailsearch.php3 > >To contact the list administrators, e-mail: php-list-adminlists.php.net > ------end of quote------ > ____________________________________________________________ > Cynic: > > A member of a group of ancient Greek philosophers who taught > that virtue constitutes happiness and that self control is > the essential part of virtue. > > <mailto:cynicmail.cz>cynic<mailto:cynicmail.cz>mail.cz > ICQ: 2808 2505 > > > > > > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribelists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > To search the mailing list archive, go to: > http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: php-list-adminlists.php.net > > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribelists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > To search the mailing list archive, go to: > http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: php-list-adminlists.php.net

attached mail follows:


Well, the truth is I use my workstation as my server (no business sites, just some personal stuff). Depending on the httpd.conf you could / could not be able to set the DirectoryIndex directive in .htaccess.

At 16:12 29.3.2000 +0100, Nick Davies wrote the following: --------------------------------------------------------------

>Thats only if you have access to a httpd.conf file. Most of us don't :). > >On Wed, 29 Mar 2000, Cynic wrote: > > > I have used index files since I first installed PHP (it was > > 4b3) without any problems. My httpd.conf: > > DirectoryIndex index.php4 index.php3 index.phtml index.html > > > > > > > > At 09:37 29.3.2000 -0500, Peter Benoit wrote the following: > > -------------------------------------------------------------- > > >Hello all, > > > > > >I recieved this reply to my request of adding index.php3 to the default > > >document list on my host: > > > > > >No, there is a documented issue with trying to run any PHP script as the > > >default. The best way to approach this is to write a Index.html that simply > > >redirects the client to your desired page. > > > > > >Is this the truth? If not, what can I say in regards to it? > > > > > >TIA, > > >Peter > > > > > >-- > > >PHP 3 Mailing List <http://www.php.net/> > > >To unsubscribe, send an empty message to php3-unsubscribelists.php.net > > >To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > > >To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 > > >To contact the list administrators, e-mail: php-list-adminlists.php.net > > ------end of quote------ > > ____________________________________________________________ > > Cynic: > > > > A member of a group of ancient Greek philosophers who taught > > that virtue constitutes happiness and that self control is > > the essential part of virtue. > > > > <mailto:cynicmail.cz>cynic<mailto:cynicmail.cz>mail.cz > > ICQ: 2808 2505 > > > > > > > > > > > > > > -- > > PHP 3 Mailing List <http://www.php.net/> > > To unsubscribe, send an empty message to php3-unsubscribelists.php.net > > To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 > > To contact the list administrators, e-mail: php-list-adminlists.php.net > > ------end of quote------ ____________________________________________________________ Cynic:

A member of a group of ancient Greek philosophers who taught that virtue constitutes happiness and that self control is the essential part of virtue.

<mailto:cynicmail.cz>cynic<mailto:cynicmail.cz>mail.cz ICQ: 2808 2505

attached mail follows:


I see. Well I am a provider and I would not hesitate to add this to my customer's config file. If the provider in question can't do this, there is something terribly amiss in their web site knowledge. Insist they get a clue or move on to another provider who does have a clue.

John

> -----Original Message----- > From: Nick Davies [mailto:nickdsportinglife.com] > Sent: Wednesday, March 29, 2000 10:12 AM > To: Cynic > Cc: Peter Benoit; php3lists.php.net > Subject: Re: [PHP3] index.php3 > > > > > Thats only if you have access to a httpd.conf file. Most of us don't :). > > On Wed, 29 Mar 2000, Cynic wrote: > > > I have used index files since I first installed PHP (it was > > 4b3) without any problems. My httpd.conf: > > DirectoryIndex index.php4 index.php3 index.phtml index.html > > > > > > > > At 09:37 29.3.2000 -0500, Peter Benoit wrote the following: > > -------------------------------------------------------------- > > >Hello all, > > > > > >I recieved this reply to my request of adding index.php3 to the default > > >document list on my host: > > > > > >No, there is a documented issue with trying to run any PHP > script as the > > >default. The best way to approach this is to write a > Index.html that simply > > >redirects the client to your desired page. > > > > > >Is this the truth? If not, what can I say in regards to it? > > > > > >TIA, > > >Peter > > > > > >-- > > >PHP 3 Mailing List <http://www.php.net/> > > >To unsubscribe, send an empty message to php3-unsubscribelists.php.net > > >To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > > >To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 > >To contact the list administrators, e-mail: php-list-adminlists.php.net > ------end of quote------ > ____________________________________________________________ > Cynic: > > A member of a group of ancient Greek philosophers who taught > that virtue constitutes happiness and that self control is > the essential part of virtue. > > <mailto:cynicmail.cz>cynic<mailto:cynicmail.cz>mail.cz > ICQ: 2808 2505 > > > > > > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribelists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: php-list-adminlists.php.net >

--
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribelists.php.net
To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net
To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-adminlists.php.net

attached mail follows:


Hi Andrew! Now you can really close this case, since I've found the solution. And it's a very funny one, heheh! First, I found the solution via Altavista, looking for "odbc_connection and example and DSN". One of the pages returned was: http://www.openlink.co.uk/info/docs/rel15doc/inglite/constring.htm This page has the solution: DSN=MarketingDB;INGNET= Marketing::mrktg; UID = Admin01; PWD=Admin01

The funny part is that you must put all this stuff in the first parameter of the php ODBC_CONNECT function, leaving the other two in blank, as in odbc_connect ( "DSN=database;UID=Username;PWD=Password" , "" , "" )

Very funny, isn't it? That's why programming is not for anyone, but for those who really love to mess around ;-)))

See you in the problem!!! Best regards, Andre' Felipe

attached mail follows:


Thanks man, but i use windows, and i'm affraid i can't change the OS to unix or linux. Any idea to make it work on windows?

Carlos Andre.

-----Mensagem original----- De: George Papadakis [mailto:georgepphaistosnetworks.gr] Enviada em: Quarta-feira, 29 de Marco de 2000 11:49 Para: CETAE Carlos Andre Marques Moreira Cc: php3lists.php.net Assunto: Re: [PHP3] problem with the mail() function

<? function sendmail( $from, $rcpt, $subj, $body ) { $fp = popen( "/usr/sbin/sendmail -t", "w" ); fwrite( $fp, "from: $from\n" ); fwrite( $fp, "to: $rcpt\n" ); fwrite( $fp, "subject: $subj\n"); fwrite( $fp, "$body\n"); pclose($fp); } ?>

Use that instead.You may need to change the sendmail'spath or the OS if you are in Windows:-)

Gp.

attached mail follows:


Well, my setup is PHP 3.0.14 / MySQL 3.23.12 / Apache 1.3.11 on Win95.

Originally, I installed and configured using the php3.ini file. Now, I'm wondering exactly what needs to happen. Can you point me in the direction of what exactly I need to re-do or what is involved at this point? I couldn't find recompiling in the Manual, and I need step-by-step instructions.

(Hmmmmm, now I'm wondering if I should wait for php4...)

At any rate, I'd like to get going again with PHP / MySQL.

Thanks, Margie

> You need to recompile PHP against the new MySQL libraries. > > > > > > > Hello all-- > > > > I've upgraded to MySQL 3.23.xx but phpinfo() still thinks I'm > > using 3.22.xx. > > I've check the Manual and looked in php3.ini, but don't know > > where to update > > Extensions/Additional Information. Can anyone enlighten me? > > > > TIA, > > Margie > > > >

attached mail follows:


Well, first of all, it may not matter - I don't know much about compatibility between the various versions of MySQL, but the first question is - does everything still work? If so, then you may not need to do anything. Unless your older libraries that PHP was compiled with are incompatible with the new version, then you probably can just use things as-is.

In any case, since you're using a precompiled binary distribution, and since the dev team has just completed Release Candidate 1, you may want to move to PHP4 at this point. Recently, they started including MySQL support into the base PHP package, so it should already be compiled with the latest MySQL libraries.

Brian

> -----Original Message----- > From: nobody [mailto:nobodypowys.gov.uk]On Behalf Of Margie Wiers > Sent: Wednesday, March 29, 2000 6:54 AM > To: Brian Leyton; php3lists.php.net > Subject: Re: [PHP3] php retains old info > > > Well, my setup is > PHP 3.0.14 / MySQL 3.23.12 / Apache 1.3.11 on Win95. > > Originally, I installed and configured using the php3.ini file. Now, I'm > wondering exactly what needs to happen. Can you point me in the direction > of what exactly I need to re-do or what is involved at this point? I > couldn't find recompiling in the Manual, and I need step-by-step > instructions. > > (Hmmmmm, now I'm wondering if I should wait for php4...) > > At any rate, I'd like to get going again with PHP / MySQL. > > Thanks, > Margie > > > > You need to recompile PHP against the new MySQL libraries. > > > > > > > > > > > Hello all-- > > > > > > I've upgraded to MySQL 3.23.xx but phpinfo() still thinks I'm > > > using 3.22.xx. > > > I've check the Manual and looked in php3.ini, but don't know > > > where to update > > > Extensions/Additional Information. Can anyone enlighten me? > > > > > > TIA, > > > Margie > > > > > > > > > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribelists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-adminlists.php.net

attached mail follows:


Ok, this is the same question I asked before, this time I'll include code and hopefully someone else can point out the problem..

$sCommand = "/usr/local/bin/grep -cr \"". strtolower($sRsearch1) ."\" /search";

exec($sCommand, $aGrep);

/* Executing this command on the command line returns well over 13,000 lines. OPnly 9000 are stored in the array for some reason */

reset($aGrep);

print "size before" . count($aGrep); /* This prints 9000*/

array_walk( $aGrep, 'test_alter' );

print "size after" . count($aGrep); /* This also prints 9000 */

The test_alter() function, it appears above the code listed in the script :

function test_alter( &$sTemp, $key) { print "foo"; }

"foo" is never printed, indicating to me that test_alter() is never run...

So. Can anyone see a problem that would cause array_walk to fail? I get no errors or warnings of any kind.

Thanks!

- Mitch

attached mail follows:


Hi

Has ne1 solved this question about eommerce : I'd like to sell everthing in a ebusiness web site... everything from cars to drinks. I'd like to have only one table to store these articles.

The problem is that each item has its own properties ! How to make something generic enough to manage every items/properties a store can contain ?

Thanx

--
       >> WinErr: 080 Clavier introuvable - Veuillez appuyer
          sur n'importe quelle touche pour continuer. <<

Arnaud LECAT >> Email: lecathexanet.fr >> WWW page:www.hexanet.fr/~lecat

HEXANET >> http://www.hexanet.fr

Z.A. Farman sud - 9 rue Roland Coffignot BP 415 - 51689 Reims Cedex 2 - France phone: (33) 03 26 79 30 05 Fax: (33) 03 26 79 30 06

attached mail follows:


I would advise against such an approach because it is unlikely that you will do a good job of retailing items if you try to force everything into a one-size fits all template. Many items have unique information fields that need to be associated with an item in an easily scannable manner. Real Estate for example requires that you tell us whether the house is 1 or 2 bedrooms, house or condo, etc... Cars require that you tell us model, make, year, color, etc... The presentation of this information is generally easier if you have specific fields highlighted with their values next to them. Your approach would require that this be done in a roundabout manner for each item.

If you really want to persist in this, then generic fields like title, picture, description and price will suffice for most item.

Regards, Paul Meagher

----- Original Message ----- From: Arnaud Lecat <lecathexanet.fr> To: <php3lists.php.net> Sent: Wednesday, March 29, 2000 9:52 AM Subject: [PHP3] PHP ebusiness tricky question

> Hi > > Has ne1 solved this question about eommerce : I'd like to sell everthing > in a ebusiness web site... everything from cars to drinks. I'd like to > have only one table to store these articles. > > The problem is that each item has its own properties ! How to make > something generic enough to manage every items/properties a store can > contain ? > > Thanx > -- > >> WinErr: 080 Clavier introuvable - Veuillez appuyer > sur n'importe quelle touche pour continuer. << > > > Arnaud LECAT >> Email: lecathexanet.fr >> WWW > page:www.hexanet.fr/~lecat > > HEXANET >> http://www.hexanet.fr > > Z.A. Farman sud - 9 rue Roland Coffignot > BP 415 - 51689 Reims Cedex 2 - France > phone: (33) 03 26 79 30 05 Fax: (33) 03 26 79 30 06 > > > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribelists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: php-list-adminlists.php.net >

attached mail follows:


Good Day,

I am trying to create a script that will allow me to select multiple options (radio buttons). and display them in the new page.

This is the page that should show what ever I have selected on the previous page. This code works for one only.

<? reset ($HTTP_POST_VARS); while (list ($key, $val) = each ($HTTP_POST_VARS)) { $number = count($HTTP_POST_VARS); if ($number) { echo "<center><table BORDER=\"-3\" COLS=6 WIDTH=\"100%\"></center> <tr> <td><center>Hostname</center></td> </tr>"; mysql_connect("127.0.0.1","nazark"); $result = mysql_db_query("test","select * from chk_outages where\\ hostname=''$key");

for ($i = 0;$i < $number;$i++) { $a1 = mysql_result($result, $i, "hostname"); } reset ($HTTP_POST_VARS); while (list ($key, $val) = each ($HTTP_POST_VARS)) { echo "<tr> <td><center>$key</center></td> <td><center>$a2</center></td> </tr>"; } echo "</table>"; } } ?>

attached mail follows:


radio buttons do not allow multiple selections.

----- Original Message ----- From: Nazar Kulynych <nazarkregister.com> To: <php3lists.php.net> Sent: Wednesday, March 29, 2000 10:46 AM Subject: [PHP3] Multiple select

| Good Day, | | I am trying to create a script that will allow me to select multiple | options (radio buttons). | and display them in the new page. | | This is the page that should show what ever I have selected on | the previous page. This code works for one only. | | <? | reset ($HTTP_POST_VARS); | while (list ($key, $val) = each ($HTTP_POST_VARS)) { | $number = count($HTTP_POST_VARS); | if ($number) { | echo "<center><table BORDER=\"-3\" COLS=6 WIDTH=\"100%\"></center> | <tr> | <td><center>Hostname</center></td> | </tr>"; | mysql_connect("127.0.0.1","nazark"); | $result = mysql_db_query("test","select * from chk_outages where\\ | hostname=''$key"); | | for ($i = 0;$i < $number;$i++)

| $a1 = mysql_result($result, $i, "hostname"); | } | reset ($HTTP_POST_VARS); | while (list ($key, $val) = each ($HTTP_POST_VARS)) { | echo "<tr> | <td><center>$key</center></td> | <td><center>$a2</center></td> | </tr>"; | } | echo "</table>"; | } | } | ?> | | -- | PHP 3 Mailing List <http://www.php.net/> | To unsubscribe, send an empty message to php3-unsubscribelists.php.net | To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net | To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 | To contact the list administrators, e-mail: php-list-adminlists.php.net | |

attached mail follows:


err /radio buttons/checkbox

On Wed, 29 Mar 2000, you wrote: > radio buttons do not allow multiple selections. > > ----- Original Message ----- > From: Nazar Kulynych <nazarkregister.com> > To: <php3lists.php.net> > Sent: Wednesday, March 29, 2000 10:46 AM > Subject: [PHP3] Multiple select > > > | Good Day, > | > | I am trying to create a script that will allow me to select multiple > | options (radio buttons). > | and display them in the new page. > | > | This is the page that should show what ever I have selected on > | the previous page. This code works for one only. > | > | <? > | reset ($HTTP_POST_VARS); > | while (list ($key, $val) = each ($HTTP_POST_VARS)) { > | $number = count($HTTP_POST_VARS); > | if ($number) { > | echo "<center><table BORDER=\"-3\" COLS=6 WIDTH=\"100%\"></center> > | <tr> > | <td><center>Hostname</center></td> > | </tr>"; > | mysql_connect("127.0.0.1","nazark"); > | $result = mysql_db_query("test","select * from chk_outages where\\ > | hostname=''$key"); > | > | for ($i = 0;$i < $number;$i++) > > | $a1 = mysql_result($result, $i, "hostname"); > | } > | reset ($HTTP_POST_VARS); > | while (list ($key, $val) = each ($HTTP_POST_VARS)) { > | echo "<tr> > | <td><center>$key</center></td> > | <td><center>$a2</center></td> > | </tr>"; > | } > | echo "</table>"; > | } > | } > | ?> > | > | -- > | PHP 3 Mailing List <http://www.php.net/> > | To unsubscribe, send an empty message to php3-unsubscribelists.php.net > | To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > | To search the mailing list archive, go to: > http://www.php.net/mailsearch.php3 > | To contact the list administrators, e-mail: php-list-adminlists.php.net > | > | > > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribelists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: php-list-adminlists.php.net

attached mail follows:


JZ> How do I tell the PHP processor to stop processing my script and return JZ> the web page as is ( trucated ).

exit;

Matjaz

attached mail follows:


A question: can I install and run PHP4 in a Sun Solaris Machine?

Thanks,

Vladimir Sanchez

attached mail follows:


Vladimir,

Sure.... I'm running PHP4pl1 on a USparc 10/Apache/Mysql... with Solaris 2.7.

scott ----- Original Message ----- From: "Vladimir Sanchez O." <vladimir.sanchezentelchile.net> To: <php3lists.php.net> Sent: Wednesday, March 29, 2000 10:09 AM Subject: [PHP3] Php in Solaris?

> A question: can I install and run PHP4 in a Sun Solaris Machine? > > Thanks, > > Vladimir Sanchez > > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribelists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: php-list-adminlists.php.net >

attached mail follows:


Vladimir,

I have apache, php 3.0.15 (and also php4b3) running on solaris 2.6, with mysql, and netscape directory server (LDAP 4.1).

on Wed, 29 Mar 2000, Vladimir Sanchez O. is accused of writing:

> A question: can I install and run PHP4 in a Sun Solaris Machine? > > Thanks, > > Vladimir Sanchez > > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribelists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: php-list-adminlists.php.net

-- 
Nathan Benson
-------------
http://www.phactor.org/

Me spell chucker work grate. Need grandma chicken.

attached mail follows:


W> I need to insert the current date into an SQL query in a PHP page - how can W> I do this in the form of YYYY-MM-DD (example below) W> $my_query = "SELECT * from Mytable where order_date = '$todaydate'"

Date function.

I recommend everyone in PHP to download plain HTML files with PHP documentation. Its a simple, very readable format. You have topics like: string functions, math functions, etc. You click one and you get all functions. Every function has a short description and sometimes even an example.

A must have!

PHP documentation online: http://php.net/manual/html/

You can download same documentation in TAR or ZIP: http://php.net/docs.php3

Matjaz

attached mail follows:


I'm still new at learning PHP. What is PHP and PHP/FI 2.0?

I haven't heard of FI. What does PHP stands for?

Thank You Bill

attached mail follows:


Go to http://www.php.net/manual/

-----Original Message----- From: William Fan [mailto:william_fanmerck.com] Sent: Wednesday, March 29, 2000 5:10 PM To: php3lists.php.net Subject: [PHP3] Question

I'm still new at learning PHP. What is PHP and PHP/FI 2.0?

I haven't heard of FI. What does PHP stands for?

Thank You Bill

--
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribelists.php.net
To subscribe to the digest, e-mail: php3-digest-subscribelists.php.net
To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-adminlists.php.net

attached mail follows:


For future reference, don't make the subject of your post, "Question". All the posts on here are Questions or Answers. You will have better respons