[PHP] db backup script needed

2001-01-18 Thread Maxim Maletsky

Hello guys,
 
I need a script that backs up the database running under cron.
 
I just wrote an internal (quite important, but not fast growing) database
and I HAVE TO release it by next Monday.
Something is going quite strange in it on updates, it often updates other
fields that it shouldn't touch... some staff amazingly is getting inserted
where I don't tell him to... some fields are even being deleted... 
 
you can imagine this nightmare...
 
in other words I haven't had time enough to test it and in order to release
it I want to back it up the working database on a daily basis. So I can
still hack with it while it is being operated...  
 
oopps, again wrote too long ...
 
anyway, is there any script like that (fast and dirty is ok) to run on
MySQL, PHP4.0.2 ?
 
P.S: I have a quite good idea on how to write it, but NO TIME.
 
Thanks

Maxim Maletsky - [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
Webmaster, J-Door.com / J@pan Inc.
LINC Media, Inc.
TEL: 03-3499-2175 x 1271
FAX: 03-3499-3109

http://www.j-door.com http://www.j-door.com/ 
http://www.japaninc.net http://www.japaninc.net/ 
http://www.lincmedia.co.jp http://www.lincmedia.co.jp/ 


 



-- 
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] below10host.com as webhost?

2001-01-18 Thread Egan

On Thu, 18 Jan 2001 01:54:28 -0600, "Jeff Lacy"
[EMAIL PROTECTED] wrote:

anyone had thought/opinions on below10host.com as a web host?

I'm speaking as a budding competitor, so keep that in mind. :-)

According to their web page, below10host.com gives you 6GB per month
for $9.95.  By way of comparison, webservpro charges $49.95 per month
for the same 6GB.

My analysis of costs tells me that at $49.95 for 6GB, webservpro does
not have a large margin of profit in their price.  How can any hosting
company sell the same 6GB per month for $9.95 and make enough profit
to stay in business?

At such a low price, I don't know how it's possible, unless a large
majority of their customers consume so little of their quota so as to
offset the loss incurred from customers who consume it all.

6GB per month is a fairly active site.  If you really have that much
traffic, to me at least, $49.95 would seem affordable.  OTOH, if you
have much less traffic, you could choose a lower priced plan.

I believe in the adage of getting what you pay for.  Value is a
balance between low price on the one hand, vs. high quality on the
other.  The lowest price is not necessarily the best value.

Egan




-- 
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] how do i hide my .inc files in apache??

2001-01-18 Thread Matt Williams


 My vote is still just for include files to have a standard (already
 accepted) extension.

I think you may be missing the point on this one.
The question wasn't what to name included files but how to stop apache
parsing or showing the contents of the include files.

The obvious solution of course is to have the included files outside the web
tree.

M@


-- 
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] how do i hide my .inc files in apache??

2001-01-18 Thread Maxim Maletsky

if they are called the same then you can add them ... how? good question ...
how is .htaccess added.. the same way. there, in httpd.conf you can select
which files not to show wit h, i think regular expression..  if you don't
have the access to httpd.conf, or simply do not wish to use it, then just
put a dot (.) infront the files you wich to hide, they won't be then shown..
(if apache is configured that way, it is usually the default installation)

but, the best way, as you sayd is to have the whole library outside (better
parralel) directory of your www root.
or
password protect a folder with them all with .htaccess
or
use .htaccess to not to show them anymore...

Cheers,
Maxim Maletsky

-Original Message-
From: Matt Williams [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 5:48 PM
To: Php-General@Lists. Php. Net
Subject: RE: [PHP] how do i hide my .inc files in apache??



 My vote is still just for include files to have a standard (already
 accepted) extension.

I think you may be missing the point on this one.
The question wasn't what to name included files but how to stop apache
parsing or showing the contents of the include files.

The obvious solution of course is to have the included files outside the web
tree.

M@


-- 
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]

-- 
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] below10host.com as webhost?

2001-01-18 Thread jeremy

Alright, so here's my question on the whole phpwebhosting.blah thing...

If they are extremely pro-PHP for hosting, how come they haven't
responded to some of the _slams_ they've received on this list?  I'd be
surprised to hear that no-one working for PHPwebhosting wasn't at least
lurking on this list.

I went to their site at the onset of the conversation and it did look
_very_ promising.  I'd like to hear something of a rebuttal from an
employee of them.  And preferably a tech of somekind.  -Gray people make
me nervous-

--jeremy

--
Jeremy Kelley [EMAIL PROTECTED]  pgp keyid 0xAECBA355
Phil 1:21  www.ganooz.com
Car pour moi, la vie c'est le Christ, et la mort est un gain.

 -Original Message-
 From: Egan [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 18, 2001 09:32
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] below10host.com as webhost?


 On Thu, 18 Jan 2001 01:54:28 -0600, "Jeff Lacy"
 [EMAIL PROTECTED] wrote:

 anyone had thought/opinions on below10host.com as a web host?

 I'm speaking as a budding competitor, so keep that in mind. :-)

 According to their web page, below10host.com gives you 6GB per month
 for $9.95.  By way of comparison, webservpro charges $49.95 per month
 for the same 6GB.

 My analysis of costs tells me that at $49.95 for 6GB, webservpro does
 not have a large margin of profit in their price.  How can any hosting
 company sell the same 6GB per month for $9.95 and make enough profit
 to stay in business?

 At such a low price, I don't know how it's possible, unless a large
 majority of their customers consume so little of their quota so as to
 offset the loss incurred from customers who consume it all.

 6GB per month is a fairly active site.  If you really have that much
 traffic, to me at least, $49.95 would seem affordable.  OTOH, if you
 have much less traffic, you could choose a lower priced plan.

 I believe in the adage of getting what you pay for.  Value is a
 balance between low price on the one hand, vs. high quality on the
 other.  The lowest price is not necessarily the best value.

 Egan




 --
 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]



-- 
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]




[PHP] SESSIONS

2001-01-18 Thread David Tandberg-Johansen

Hello!

Could anyone give me an direction where I can find information something
like "session for dummies"!
It's not funny anymore. I don't have anymore hair left :-]

david



-- 
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]




[PHP] flash and php

2001-01-18 Thread [EMAIL PROTECTED]

Hi people,
Can PHP3 work with flash movie? I mean, something like using Php3 to run flash content 
from db? If so, is there anywhere I can find out more information?
cheers
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for yourself"



[PHP] PDFLib and PHP and pdf_open_image_file

2001-01-18 Thread goood goood

I have an problem with PDFLib and PHP.
I'm trying to include images in PDF file using pdf_open_image_file
If in my source code is line:

  $o=pdf_open_image_file($pdf,"gif","pict.gif");

i get the error:  Cannot find server or DNS Error (The page cannot be
displayed). What's wrong.

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
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] flash and php

2001-01-18 Thread andreas \(@work\)

hi,

see   www.artfuntasy.com

just flash4, php3, mysql


greetings

andreas

- Original Message -
From: "Jacky@lilst" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 18, 2001 11:23 PM
Subject: [PHP] flash and php


Hi people,
Can PHP3 work with flash movie? I mean, something like using Php3 to run
flash content from db? If so, is there anywhere I can find out more
information?
cheers
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for
yourself"



-- 
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]




[PHP] general CGI question

2001-01-18 Thread Hrishi

Hello,

I need to know how to get apache to parse CGI output with the SSI parser (the
[php] script will have includes, which need to go through mod_include).
changing the mime-type to x-server-parsed or anything hooked by mod_include
doesnt help.

thanks,
Hrishi


-- 
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]




[PHP-CVS] Mailinglist: -help

2001-01-18 Thread Unger, Joachim



-Ursprungliche Nachricht-
Von: changelog [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 17. Januar 2001 03:09
An: [EMAIL PROTECTED]
Betreff: [PHP-CVS-DAILY] cvs: php4 / ChangeLog 


changelog   Tue Jan 16 18:09:29 2001 EDT

  Modified files:  
/php4   ChangeLog 
  Log:
  ChangeLog update
  
Index: php4/ChangeLog
diff -u php4/ChangeLog:1.590 php4/ChangeLog:1.591
--- php4/ChangeLog:1.590Mon Jan 15 18:09:12 2001
+++ php4/ChangeLog  Tue Jan 16 18:09:11 2001
@@ -1,3 +1,43 @@
+2001-01-16  Jani Taskinen  [EMAIL PROTECTED]
+
+* ext/gd/gd.c: Fixed bug #8733
+
+2001-01-16  Rasmus Lerdorf  [EMAIL PROTECTED]
+
+* ext/sockets/sockets.c: Kill some warnings
+
+2001-01-16  Mika Tuupola  [EMAIL PROTECTED]
+
+* pear/Image/Remote.php:
+Fixed the vim rules.
+
+2001-01-16  Sterling Hughes  [EMAIL PROTECTED]
+
+* ext/sablot/php_sablot.h
+  ext/sablot/sablot.c:
+Added the SABLOT_SET_ERROR() macro to set sablotron errors...
+
+2001-01-16  Ben Mansell  [EMAIL PROTECTED]
+
+* sapi/isapi/php4isapi.c
+  README.Zeus:Added changes to environment variable manipulations,
to support Zeus 3.3.8
+and increase compatibility between Zeus/IIS/Apache. Now, URLs like
+http://foo.org/file.php/a/b/c/d work correctly.
+
+2001-01-16  Sascha Schumann  [EMAIL PROTECTED]
+
+* ext/ircg/ircg.c:
+Use the write buffer subsystem to accumulate network writes and to
+increase the overall through-put.
+
+2001-01-16  Sean Grimes  [EMAIL PROTECTED]
+
+* pear/XML/Render.php:
+Added a method to call the HTML and PDF rendering modes(not implemented
yet).
+Added the parse function which should allow for finer XML parsing.
+The XML file contents are now stored in a var available to the entire
class.
+Added a wrapper around setInputFile() and setInput()
+
 2001-01-15  Zeev Suraski  [EMAIL PROTECTED]
 
 * sapi/isapi/stresstest/stresstest.dsp: Fix output dir


-- 
PHP CVS 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] how reliable is Windows2000 / php ?

2001-01-18 Thread Phil Driscoll

I can't speak for Windows 2000, but for NT4, I've been running PHP4 as a CGI
under IIS, with MySQL since PHP4 was in beta, on several machines, with
moderate loading. I've never had a single problem, nor have I had to reboot
the machines during the last year.

That's stable enough for me! I have had no success in making php work
reliably as an ISAPI module, although several people have reported better
results on W2000.

Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org


-- 
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] db backup script needed

2001-01-18 Thread CC Zona

In article DC017B079D81D411998C009027B7112AA93458@EXC-TYO-01, 
[EMAIL PROTECTED] (Maxim Maletsky) wrote:

 anyway, is there any script like that (fast and dirty is ok) to run on
 MySQL, PHP4.0.2 ?

What about putting a mysqldump call into a crontab?

-- 
CC

-- 
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]




[PHP] Sorting an array

2001-01-18 Thread Nicklas af Ekenstam

Hi!

I have an array that looks kinda like this:

NAMEADDRESS
John DoeSome Street 1
Jane DoeAnother Street 2
Bill Gates  Helsinki 666

How do I sort this array based on NAME? ADDRESS?

Thanks!!

- Nicklas


-- 
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] flash and php

2001-01-18 Thread Frank Joerdens

On Thu, Jan 18, 2001 at 04:23:58PM -0600, Jacky@lilst wrote:
 Hi people,
 Can PHP3 work with flash movie? I mean, something like using Php3 to run flash 
content from db? If so, is there anywhere I can find out more information?

I use swift-generator from www.swift-tools.com, which integrates nicely
with any server-side scripting method. It's not open source but still
rather inexpensive (unlike Macromedia Generator).

- Frank

-- 
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]




[PHP-CVS] cvs: php4 /ext/ircg README.txt

2001-01-18 Thread Sascha Schumann

sas Thu Jan 18 02:45:22 2001 EDT

  Modified files:  
/php4/ext/ircg  README.txt 
  Log:
  Add a pointer to the homepage at the beginning
  
  
Index: php4/ext/ircg/README.txt
diff -u php4/ext/ircg/README.txt:1.2 php4/ext/ircg/README.txt:1.3
--- php4/ext/ircg/README.txt:1.2Tue Jan  9 01:43:49 2001
+++ php4/ext/ircg/README.txtThu Jan 18 02:45:22 2001
@@ -1,10 +1,14 @@
-($Id: README.txt,v 1.2 2001/01/09 09:43:49 sas Exp $)
+($Id: README.txt,v 1.3 2001/01/18 10:45:22 sas Exp $)
 
 STATUS
 
The IRCG extension, the related library and the thttpd SAPI module
were tested with Purify.  All recognized defects are closed as of
09 Jan 2001 and IRCG 0.7.
+
+   Mailing lists and other information can be found on IRCG's homepage:
+
+   http://schumann.cx/ircg/
 
 
 INSTALLATION: THE QUICK WAY



-- 
PHP CVS 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] preg_replace pain!

2001-01-18 Thread Christian Reiniger

On Thursday 18 January 2001 07:40, Nicholas Pappas wrote:

 I was hoping someone could help me with this regular expression...

   $pattern = "/\[b\](.*)\[\/b\]/Ui";
 $message = preg_replace($pattern, "B\\1/B", $message);

   The above works for:
   [b]bold text[/b]

   But does not work for:
   [b]bold text
 w/ newline[/b]

add a "s" modifier to the expression and

=

$pattern = "/\[b\](.*)\[\/b\]/Uis";

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

"use the source, luke." (obi-wan gnuobi)

--
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] Sorting an array

2001-01-18 Thread Pavel Jartsev

Nicklas af Ekenstam wrote:
 
 Hi!
 
 I have an array that looks kinda like this:
 
 NAMEADDRESS
 John DoeSome Street 1
 Jane DoeAnother Street 2
 Bill Gates  Helsinki 666
 
 How do I sort this array based on NAME? ADDRESS?

http://www.php.net/manual/en/function.usort.php


-- 
Pavel a.k.a. Papi

-- 
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]




[PHP] Error connecting to MySQL server

2001-01-18 Thread Rosen

Hi,
When I try to connect to MySQL server I get message "Can't connect to MySQL
server  (10060 )!

Please Help!
Thanks
Rosen Marinov




-- 
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]




[PHP-CVS] cvs: php4 /ext/ircg README.txt

2001-01-18 Thread Sascha Schumann

sas Thu Jan 18 02:46:18 2001 EDT

  Modified files:  
/php4/ext/ircg  README.txt 
  Log:
  Expand tabs
  
  
Index: php4/ext/ircg/README.txt
diff -u php4/ext/ircg/README.txt:1.3 php4/ext/ircg/README.txt:1.4
--- php4/ext/ircg/README.txt:1.3Thu Jan 18 02:45:22 2001
+++ php4/ext/ircg/README.txtThu Jan 18 02:46:17 2001
@@ -1,96 +1,96 @@
-($Id: README.txt,v 1.3 2001/01/18 10:45:22 sas Exp $)
+($Id: README.txt,v 1.4 2001/01/18 10:46:17 sas Exp $)
 
 STATUS
 
-   The IRCG extension, the related library and the thttpd SAPI module
-   were tested with Purify.  All recognized defects are closed as of
-   09 Jan 2001 and IRCG 0.7.
+The IRCG extension, the related library and the thttpd SAPI module
+were tested with Purify.  All recognized defects are closed as of
+09 Jan 2001 and IRCG 0.7.
 
-   Mailing lists and other information can be found on IRCG's homepage:
+Mailing lists and other information can be found on IRCG's homepage:
 
-   http://schumann.cx/ircg/
+http://schumann.cx/ircg/
 
 
 INSTALLATION: THE QUICK WAY
 
 
-1. Download
+1.Download
 
-   http://schumann.cx/ircg/install_ircg.sh
+http://schumann.cx/ircg/install_ircg.sh
 
-2. Edit some variables at the top of that script:
+2.Edit some variables at the top of that script:
 
-   prefix
-   the directory where all software gets installed (the user running
-   the script must have write permission to that directory).
-   
-   php4_sourcedir
-   a very recent checkout of the PHP 4 Repository, fully buildconf'd.
-   
-   st_target
-   the State Threads Target (i.e. freebsd-optimized)
+prefix
+   the directory where all software gets installed (the user running
+   the script must have write permission to that directory).
+
+php4_sourcedir
+   a very recent checkout of the PHP 4 Repository, fully buildconf'd.
+
+st_target
+   the State Threads Target (i.e. freebsd-optimized)
 
-   st_targetdir
-   the State Threads Directory name (i.e. FREEBSD_`uname -r`_OPT)
+st_targetdir
+   the State Threads Directory name (i.e. FREEBSD_`uname -r`_OPT)
 
-   thttpd/IRCG/st(probably don't need to be changed)
-   the latest version numbers of the respective software
+thttpd/IRCG/st(probably don't need to be changed)
+   the latest version numbers of the respective software
 
-   State Threads and IRCG currently require GNU make, so if your
-   system make is not GNU make, apply s/make/gmake/ or whatever
-   is appropiate for your system to install_ircg.sh.
+State Threads and IRCG currently require GNU make, so if your
+system make is not GNU make, apply s/make/gmake/ or whatever
+is appropiate for your system to install_ircg.sh.
 
-3. Run
+3.Run
 
-   chmod +x install_ircg.sh
-   ./install_ircg.sh
+   chmod +x install_ircg.sh
+   ./install_ircg.sh
 
-   If you have a standard system (i.e. Linux or FreeBSD), the process 
-   should finish without any problem.
+If you have a standard system (i.e. Linux or FreeBSD), the process 
+should finish without any problem.
 
-   Note 1:  Currently, the shipped patches are in the unified diff
-   format.  Some ancient patch tools cannot handle that format.  On
-   those systems, installing GNU patch is recommened.
+Note 1:  Currently, the shipped patches are in the unified diff
+format.  Some ancient patch tools cannot handle that format.  On
+those systems, installing GNU patch is recommened.
 
-   Note 2:  The State Threads build system is quite simple.  On some
-   ancient systems, State Threads handle only the vendor compiler,
-   not GCC.  In that case, you might need to fiddle with the build
-   system yourself.. Good luck.
-   
+Note 2:  The State Threads build system is quite simple.  On some
+ancient systems, State Threads handle only the vendor compiler,
+not GCC.  In that case, you might need to fiddle with the build
+system yourself.. Good luck.
+
 
-   
+
 
 THE MANUAL WAY
 
 
-1. Install SGI's State Threads Library
+1.Install SGI's State Threads Library
 
 http://oss.sgi.com/projects/state-threads/download/
 
-   (Just copy st.h to /usr/include and libst.* to /usr/lib)
-   
-2. Install the event-based IRC Gateway Library
+(Just copy st.h to /usr/include and libst.* to /usr/lib)
+
+2.Install the event-based IRC Gateway Library
 
-   http://schumann.cx/ircg/
+http://schumann.cx/ircg/
 
-3. Download and extract thttpd 2.20b or later
+3.Download and extract thttpd 2.20b or later
 
-   http://www.acme.com/software/thttpd/
+http://www.acme.com/software/thttpd/
 
-4. Install PHP into thttpd
+4.Install PHP into thttpd
 
-   $ ./configure 

[PHP] upgrade problems

2001-01-18 Thread Bart A. Verbeek

Hello,
I tried to upgrade php3* to php4 on my win98 machine. Downloaded the binarie
and tried to install it. Every time I trie to request a *.php-file I get the
following error:

 PHP:  Unable to parse configuration file.

Does anyone know what this meens and how to solve it??

php 3 always worked, but after install php4 keeps giving me these errors.
I use it with MS pws on win98.

Thanks


-- 
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]




[PHP] PHP Editor

2001-01-18 Thread Alaiddin Tayeh

I am using write.exe in the windows to edit my php files, is there any
editor which I can test my syntax befor using the browser to execute it?

any help will be appreciated.

Thanks



-- 
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]




[PHP] Newbie : info/tut on XML and PHP

2001-01-18 Thread Rahul Bhide

Hi Gurus ,
Can you give me pointers(read urls) to "Good Sites" on tutorials or info
from scratch on XML with PHP.
Thanks in Advance.
~Rahul


-- 
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] Can I fork a PHP thread?

2001-01-18 Thread Terrence Chay

on 1/17/01 10:12 AM, Chris Lee at [EMAIL PROTECTED] wrote:
 There are occasions when I'd like to execute some long-running task
 in the background, in response to some user action.  It seems that

 Im nearly posative this isnt what your looking for, but I thought I would
 see if maybe it was :)
 
 compile php as a cgi so you can run it from the command prompt. then just
 run the php file from the command prompt through exec ()

 ?
 exec("php -q somephpfile.php ");
 ?

If you want the thing to always complete then you'll need to nohup the
exec call. Otherwise, the "php -q" would be a child process of the php
module and will be killed when the web page script quits (assuming you
compiled PHP as a module (shared or otherwise)). That kill would occur when
the it finishes outputting the page or the browser has closed the connection
(moves onto another page).

Another note is I believe exec() returns the last line of the output of
the command. This means that you'll see the browser stuck on the last
flush() before function handle_some_action() until you reach the timeout
specified in php.ini (usually 30 seconds) as the php module will need to
wait for the command to complete before it returns a line. popen() would
also do this (I believe the pipe blocks until the output is filled). So for
this to work you've got to set it so that it returns immediately...
something like..
  "nohup php -q somephpfile.php /dev/null "
(or somesuch).

 In the cases I'd like to do this, I can manage synchronization
 externally...
 (i.e., implement join by waiting for a /tmp file to appear or
 something),
 so I'm not asking for a join, or any sychronization facilities.

I'm not too certain what is meant by this, so I don't know if what I was
any help. :-)

Note that the "somephpfile.php" does not need to have set_time_out(0)
because when php is run from the command line it will keep executing even
after the timer has expired. I don't know if this is a bug or a feature.

Take care,

terry

-- 
terry chay, Director of Engineering, http://www.QIXO.com/
QIXO /kick.so/ - Integrating Many Travel Web Sites Into One
W: 1.408.394-8102 F:1.408.516.9090M: 1.408.314.0717
E-Mail: mailto:[EMAIL PROTECTED] ICQ: 16069322
PGP Fingerprint: 6DCF 1634 547C 935D 4912  2A44 A4A2 79AB DFFF F110 


-- 
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] best user authentication method?

2001-01-18 Thread Rick Hodger


Miles Thompson [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 IIS I'm not familiar with, and Apache has a native scheme involving
.htaccess.

 If you want a portable authentication method, I'd recommend authenticating
 against a list of users/passwords contained in a database. Using MySQL,
 PostgreSQL or Interbase would keep your database platform neutral, and low
 cost.

 Here's code picked up from a Rasmus Lerdorf article which authenticates
 against a MySQL database, there are variations on this everywhere. I put
 this in a file called auth.inc, and then the top of every page which
 requires authentication simply includes "auth.inc".

 cut
 ?   require( "dbname.inc" );

[SNIP]

Better yet, as this *is* supposed to be secure, call your files .php as
opposed to .inc. I have seen this far too many times to count now, and it's
a massive developer induced security hole. If you name your files .inc, 99%
of webservers, if asked for a .inc file will pass it straight through as
plain textthus exposing usernames, passwords, possible bugs in your code
and god knows what else. If you name it .php, it gets parsed as a PHP
script, and so no output.

--
Rick Hodger



-- 
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]




[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-01-18 Thread Sascha Schumann

sas Thu Jan 18 03:59:17 2001 EDT

  Modified files:  
/CVSROOTgen_acl_file.m4 avail 
  Log:
  Add phpweb Karma for zimt
  
  
Index: CVSROOT/gen_acl_file.m4
diff -u CVSROOT/gen_acl_file.m4:1.45 CVSROOT/gen_acl_file.m4:1.46
--- CVSROOT/gen_acl_file.m4:1.45Wed Jan 17 16:43:25 2001
+++ CVSROOT/gen_acl_file.m4 Thu Jan 18 03:59:17 2001
@@ -9,7 +9,7 @@
 dnl PEAR Team
 define(`php_pear', 
`jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,waldschrott,zimt')dnl
 dnl PHP.NET Website
-define(`php_web', 
`cmv,tcobb,gareth,jah,eschmid,ronabop,derick,sterling,stas,phildriscoll,jmoore,waldschrott,sniper,david,lyric')dnl
+define(`php_web', 
+`cmv,tcobb,gareth,jah,eschmid,ronabop,derick,sterling,stas,phildriscoll,jmoore,waldschrott,sniper,david,lyric,zimt')dnl
 dnl
 define(`php_pres', `rasmus,sterling,jimw')dnl
 dnl
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.45 CVSROOT/avail:1.46
--- CVSROOT/avail:1.45  Wed Jan 17 16:43:25 2001
+++ CVSROOT/avail   Thu Jan 18 03:59:17 2001
@@ -1,7 +1,7 @@
 
 unavail
 avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane|CVSROOT
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,cmv,tcobb,gareth,jah,eschmid,ronabop,derick,sterling,stas,phildriscoll,jmoore,waldschrott,sniper,david,lyric|phpweb
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,cmv,tcobb,gareth,jah,eschmid,ronabop,derick,sterling,stas,phildriscoll,jmoore,waldschrott,sniper,david,lyric,zimt|phpweb
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,waldschrott,zimt|php4/pear,pearweb,pear
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters|php4,php3,php31,phpfi
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,hholzgra|functable



-- 
PHP CVS 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: SV: [PHP] Array help needed

2001-01-18 Thread CDitty

Thanks.  Getting this error.  Cannot increment/decrement overloaded objects 
nor string offsets.  Any idea?

Chris

At 05:54 AM 1/18/01, Knut Stre wrote:
Try this:

$array = array(1,2,3,4,5,3,3,1);
foreach(array_values($array) as $s)
{
$count[$s]++;
}
foreach(array_keys($count) as $s)
{
echo "Number: " .  $s. " count: " .  $count[$s] . "Br";
}




  -Opprinnelig melding-
  Fra: CDitty [mailto:[EMAIL PROTECTED]]
  Sendt: 18. januar 2001 12:40
  Til: [EMAIL PROTECTED]
  Emne: [PHP] Array help needed
 
 
  Hello all,
 
  I have 6 numbers that are in an array.  I need to know how
  many times each
  number shows up in that array.
 
  ex
  Numbers: 1,3,5,1,4,1
 
  Output needed:  (Not necessarily like this)
  1 3
  3 1
  5 1
  4 1
 
  Can anyone help me with this?  I looked in the manual, but
  couldn't find
  anything that was quite what I needed.  I have tried sorting then
  array_count_values, but ended up with a result like this.
  Some results
  have counts, some don't.
 
  1
  2 1
  4 1
  4
  4 3
  5 1
 
  Thanks
 
  Chris
 
 
  --
  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]
 


--
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]




[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-01-18 Thread Sascha Schumann

sas Thu Jan 18 04:08:41 2001 EDT

  Modified files:  
/CVSROOTgen_acl_file.m4 avail 
  Log:
  php_web karma for mk
  
  
Index: CVSROOT/gen_acl_file.m4
diff -u CVSROOT/gen_acl_file.m4:1.46 CVSROOT/gen_acl_file.m4:1.47
--- CVSROOT/gen_acl_file.m4:1.46Thu Jan 18 03:59:17 2001
+++ CVSROOT/gen_acl_file.m4 Thu Jan 18 04:08:40 2001
@@ -9,7 +9,7 @@
 dnl PEAR Team
 define(`php_pear', 
`jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,waldschrott,zimt')dnl
 dnl PHP.NET Website
-define(`php_web', 
`cmv,tcobb,gareth,jah,eschmid,ronabop,derick,sterling,stas,phildriscoll,jmoore,waldschrott,sniper,david,lyric,zimt')dnl
+define(`php_web', 
+`cmv,tcobb,gareth,jah,eschmid,ronabop,derick,sterling,stas,phildriscoll,jmoore,waldschrott,sniper,david,lyric,zimt,mk')dnl
 dnl
 define(`php_pres', `rasmus,sterling,jimw')dnl
 dnl
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.46 CVSROOT/avail:1.47
--- CVSROOT/avail:1.46  Thu Jan 18 03:59:17 2001
+++ CVSROOT/avail   Thu Jan 18 04:08:40 2001
@@ -1,7 +1,7 @@
 
 unavail
 avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane|CVSROOT
-avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,cmv,tcobb,gareth,jah,eschmid,ronabop,derick,sterling,stas,phildriscoll,jmoore,waldschrott,sniper,david,lyric,zimt|phpweb
+avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,cmv,tcobb,gareth,jah,eschmid,ronabop,derick,sterling,stas,phildriscoll,jmoore,waldschrott,sniper,david,lyric,zimt,mk|phpweb
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,waldschrott,zimt|php4/pear,pearweb,pear
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters|php4,php3,php31,phpfi
 
avail|andi,andrei,jimw,rasmus,rubys,sas,ssb,thies,zeev,shane,fmk,hirokawa,jah,eschmid,dbeu,sbergmann,samjam,avsm,ronabob,derick,sterling,venaas,stas,hholzgra,cmv,phildriscoll,jmoore,waldschrott,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,hholzgra|functable



-- 
PHP CVS 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] Cobalt Raq/PHP Help Needed

2001-01-18 Thread Kevin Cawthorne

use ServerAlias in the httpd.conf file under the site you want it to point
to.

Ive got a RAQ3 and it works fine

Kevin Cawthorne

- Original Message -
From: "Gareth Davies" [EMAIL PROTECTED]
To: "PHP List" [EMAIL PROTECTED]
Sent: Thursday, January 18, 2001 12:55 PM
Subject: [PHP] Cobalt Raq/PHP Help Needed


Hi all, this list to date has been extremely helpful and I thought you might
be able to help with my latest problem.

I have a Cobalt Raq and need to host many different domain names but have
them all point to one directory. e.g.

web site is called www.frogtrade.com - I am currently allowing various
companies to use www.frogtrade.com/companyname which allows them access to
the system. Some clients, however want to use their own domain name rather
than the frogtrade name. The Cobalt Raq, by default creates an entirely new
directory structure. How do I get this to point at the same frogtrade
directory structure?

I am desperate for this help, but don't know where else to turn. Any help
greatly appreciated!!

Thanks,
Gareth Davies
Progressive Business Services Ltd

+44 (0) 1274 889592   Office
+44 (0) 1274 889656   Fax
+44 (0) 7970 733851   Mobile (24 Hour)



-- 
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]




[PHP] preg_replace problem

2001-01-18 Thread The Captain

I have a regular expression that's not giving me the results i really need.

I have a bunch of strings coming at me that need to be truncated if they're
over 15 characters... but not to truncate until after it reaches the first
word.

This regular expression just doesn't seem to want to work 100%:

$myString = preg_replace("/.{15}\w)?\s.*/","\\1",$myString);


This will turn:

'PROJECT - Marketing Pitch'

into

'PROJECT - Marketing\1'


However... when i change it to:  /(.{15}\w)+.*/
everything seems to work fine.
I can't really use this regex though, because it will keep matching that 15
character word until it reaches the end.  I need it to stop matching after
it finds the first match (if it needs to match at all).

In perl:
+ - means match 1 or many times
* - means match 0 or many times
? - means match 0 or 1 time

Could someone help me see my error... i'm driving myself bananas trying to
find it.  Perhaps pcre in PHP doesn't support the ? in the regular
expressions.

Best Regards,
Rob


-- 
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] Something cool I found in Wired,

2001-01-18 Thread Brian V Bonini

Sounds a lot like Netmeeting

 -Original Message-
 From: Dallas Kropka [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 18, 2001 12:41 AM
 To: PHP LIST
 Subject: [PHP] Something cool I found in Wired,



   Ok, I know that this is PHP, but I thought that allot of
 the freelancers
 out there could find it as appealing as I do.

 In the current issue of Wired... page 163, there is a new product featured
 called Groove found at www.groove.net and while only for windows at the
 moment it allows people to conference with their customers, partners,
 and well, anyone via voice, text, and SKETCH "chat" systems
 Best of all,
 its free. Its says its peer - peer , and identifies you with a
 handle like
 ICQ... so it seems secure.

 This is something that I'm going to try I think it will make
 communication with the partners easier, and maybe increase production
 some Just thought that some might get a kick out of this.

 Oh, ya, it also supports file sharing.

 Anyway, thought this could be helpful to some... please pardon the
 infringement.

 Dallas K.


 --
 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]




-- 
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]




[PHP-CVS] cvs: php4 /ext/muscat LICENSE LICENSE.about Makefile.in aegis.log config config.m4 muscat.c muscat.php muscat_handles.h muscat_net.c muscat_net.h php_muscat.h

2001-01-18 Thread Sam Liddicott

samjam  Thu Jan 18 05:21:33 2001 EDT

  Added files: 
/php4/ext/muscatLICENSE LICENSE.about Makefile.in aegis.log config 
config.m4 muscat.c muscat.php muscat_handles.h 
muscat_net.c muscat_net.h php_muscat.h 
  Log:
  First checkin of muscat/empower module; been using it here for some time
  Developing using aegis and just checking in baseline from time to time
  
  See [EMAIL PROTECTED] for questions
  
  


Index: php4/ext/muscat/LICENSE.about
+++ php4/ext/muscat/LICENSE.about
/*
   +--+
   | Muscat/Empower 1.5 Module for PHP version 4.0|
   +--+
   | Copyright (c) 2000 Ananova Ltd   |
   | http://www.ananova.com   |
   | Ananova Ltd, PO Box 36, Leeds, LS11 5ZA, United Kingdom  |
   +--+
   | This program is free software; you can redistribute it and/or|
   | modify it under the terms of the GNU General Public License  |
   | as published by the Free Software Foundation; either version 2   |
   | of the License, or (at your option) any later version.   |
   |  |
   | This program is distributed in the hope that it will be useful,  |
   | but WITHOUT ANY WARRANTY; without even the implied warranty of   |
   | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the|
   | GNU General Public License for more details. |
   |  |
   | You should have received a copy of the GNU General Public License|
   | along with this program; if not, write to the Free Software  |
   | Foundation, Inc., 59 Temple Place - Suite 330, Boston,   |
   | MA  02111-1307, USA. |
   |  |
   | A copy is availble at http://www.gnu.org/copyleft/gpl.txt|
   +--+
   | Author: Sam Liddicott [EMAIL PROTECTED]  |
   +--+
 */



Index: php4/ext/muscat/Makefile.in
+++ php4/ext/muscat/Makefile.in

LTLIBRARY_NAME= libmuscat.la
LTLIBRARY_SOURCES = muscat.c muscat_net.c
LTLIBRARY_SHARED_NAME = muscat.la
LTLIBRARY_SHARED_LIBADD  = $(MUSCAT_SHARED_LIBADD)

include $(top_srcdir)/build/dynlib.mk

Index: php4/ext/muscat/aegis.log
+++ php4/ext/muscat/aegis.log
aegis: project "muscat-php.1.0": change 15: creating symbolic links to baseline
aegis: project "muscat-php.1.0": change 15: integration build started 12:32
aegis: cd /home/aegis/muscat-php/branch.1/branch.0/delta12703.005
aegis: user "saml", group "web"
aegis: make -f Makefile.php project=muscat-php.1.0 change=15 version=1.0.D005
PHP=php-4.0.4
cd /tmp/muscat-php.1.0/1.0.D005/15/php-4.0.4  \
cd ..  \
gunzip -c /usr/src/php-4.0.4.tar.gz | tar -xvf -  \
rm /tmp/muscat-php.1.0/1.0.D005/15/php-4.0.4/configure  \
touch /tmp/muscat-php.1.0/1.0.D005/15/php-4.0.4/untarred
php-4.0.4/
php-4.0.4/build/
php-4.0.4/build/bsd_makefile
php-4.0.4/build/build.mk
php-4.0.4/build/build2.mk
php-4.0.4/build/buildcheck.sh
php-4.0.4/build/dynlib.mk
php-4.0.4/build/fastgen.sh
php-4.0.4/build/library.mk
php-4.0.4/build/ltlib.mk
php-4.0.4/build/mkdep.awk
php-4.0.4/build/program.mk
php-4.0.4/build/rules.mk
php-4.0.4/build/rules_common.mk
php-4.0.4/build/rules_pear.mk
php-4.0.4/build/shtool
php-4.0.4/build/sysv_makefile
php-4.0.4/configure
php-4.0.4/CODING_STANDARDS
php-4.0.4/CREDITS
php-4.0.4/ltconfig
php-4.0.4/EXTENSIONS
php-4.0.4/FUNCTION_LIST.txt
php-4.0.4/INSTALL
php-4.0.4/LICENSE
php-4.0.4/Makefile.in
php-4.0.4/NEWS
php-4.0.4/README.BCMATH
php-4.0.4/README.CVS-RULES
php-4.0.4/README.EXT_SKEL
php-4.0.4/README.QNX
php-4.0.4/README.SELF-CONTAINED-EXTENSIONS
php-4.0.4/README.Zeus
php-4.0.4/TODO
php-4.0.4/acconfig.h.in
php-4.0.4/acinclude.m4
php-4.0.4/apidoc-zend.txt
php-4.0.4/apidoc.txt
php-4.0.4/buildconf
php-4.0.4/config.guess
php-4.0.4/config.sub
php-4.0.4/configure.in
php-4.0.4/cvsclean
php-4.0.4/dynlib.m4
php-4.0.4/footer
php-4.0.4/genfiles
php-4.0.4/genif.sh
php-4.0.4/header
php-4.0.4/ltmain.sh
php-4.0.4/missing
php-4.0.4/makedist
php-4.0.4/makerpm
php-4.0.4/php.ini-dist
php-4.0.4/php.ini-optimized
php-4.0.4/php4.gif
php-4.0.4/php4.spec.in
php-4.0.4/run-tests.php
php-4.0.4/snapshot
php-4.0.4/stamp-h.in
php-4.0.4/stub.c
php-4.0.4/ext/
php-4.0.4/ext/aspell/
php-4.0.4/ext/aspell/CREDITS
php-4.0.4/ext/aspell/Makefile.in
php-4.0.4/ext/aspell/aspell.c
php-4.0.4/ext/aspell/config.m4

[PHP] Calendar program

2001-01-18 Thread Todd Cary

Does a calendar program exist in PHP similar to Yahoo's program?
(http://www.yahoo.com/calendar)

Todd

--
Todd Cary
Ariste Software
[EMAIL PROTECTED]



-- 
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]




[PHP] (Newbie) String within a string

2001-01-18 Thread jalist

I'm trying to grab a string from within a string based on a matching word or
phrase. Example...

$string = "This is a string I need to grab the middle out of"
$query_word = "need"

I need to get x amount of characters either side of $query_word, so the
result string would be like...

"string I need to grab the"

And I need the result string to be full words, not like..."ing I need to
grab th"

I've half managed to do it using strpos and substr but the code is really
messy and I'm getting half-formed words back. Anyone got any suggestion on
how to accomplish this?

Thanks very much in advance.

Steve


-- 
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]




[PHP] Re: [Apc-cache] Re: [PHP] APC version 1.0.4 released

2001-01-18 Thread George Schlossnagle

http://apc.communityconnect.com/download.html
The Doctor wrote:
 
 On Wed, Jan 17, 2001 at 07:00:12PM -0500, Daniel Cowgill wrote:
  Fixes this time around:
 
  * class hierarchies more than two levels deep should work now :)
  * should compile cleanly under PHP 4.0.2 through 4.0.4pl1
 
  Dan
 
 
 
 Where do we get this??
 
 
 ___
 Apc-cache mailing list
 [EMAIL PROTECTED]
 http://lists.communityconnect.com/mailman/listinfo/apc-cache


-- 
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]




[PHP] Spell checker?

2001-01-18 Thread Nik Gare

Hi,
I have a site which will be updated periodically by someone else, so have
made some forms with textareas for them to upload the text into the MySQL
database.  I was wondering if there is a PHP function/class which could
spell check these forms?

TTFN
Nik


-- 
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]




[PHP-CVS] cvs: php4 /ext/muscat aegis.log config

2001-01-18 Thread Sam Liddicott

samjam  Thu Jan 18 05:30:01 2001 EDT

  Removed files:   
/php4/ext/muscataegis.log config 
  Log:
  Aghh.  Despite my efforts two files still slipped through
  
  



-- 
PHP CVS 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] Spell checker?

2001-01-18 Thread Kristi Russell

http://www.php.net/manual/en/ref.pspell.php

There's also aspell which is deprecated.

Kristi

- Original Message - 
From: "Nik Gare" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 18, 2001 9:12 AM
Subject: [PHP] Spell checker?


 Hi,
 I have a site which will be updated periodically by someone else, so have
 made some forms with textareas for them to upload the text into the MySQL
 database.  I was wondering if there is a PHP function/class which could
 spell check these forms?
 
 TTFN
 Nik
 
 
 -- 
 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]
 


-- 
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]




[PHP] Recompile GD ??

2001-01-18 Thread Miguel Loureiro

How can I do it ???  I installed jpeg-6b, and I readed that before recompile PHP(with 
option : --with-jpeg-dir=/.../jpeg-6b), I must recompile gd, its really necessary ? If 
si, how recompile gd.
Thanks
Miguel Loureiro  [EMAIL PROTECTED] 




RE: [PHP] Calendar program

2001-01-18 Thread Jon Haworth

This should achieve a similar effect as that URI:

?php
echo "404 Document Not Found";
?

;-)

Cheers
Jon

-Original Message-
From: Todd Cary [mailto:[EMAIL PROTECTED]]
Sent: 18 January 2001 13:56
To: [EMAIL PROTECTED]
Subject: [PHP] Calendar program


Does a calendar program exist in PHP similar to Yahoo's program?
(http://www.yahoo.com/calendar)

Todd

--
Todd Cary
Ariste Software
[EMAIL PROTECTED]



-- 
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]

-- 
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] preg_replace pain!

2001-01-18 Thread Shaun Thomas

On Thu, 18 Jan 2001, Christian Reiniger wrote:

 On Thursday 18 January 2001 07:40, Nicholas Pappas wrote:
 
  I was hoping someone could help me with this regular expression...
 
  $pattern = "/\[b\](.*)\[\/b\]/Ui";
  $message = preg_replace($pattern, "B\\1/B", $message);
 
  The above works for:
  [b]bold text[/b]
 
  But does not work for:
  [b]bold text
  w/ newline[/b]
 
 add a "s" modifier to the expression and
 
 =
 
 $pattern = "/\[b\](.*)\[\/b\]/Uis";

That, and:

$pattern = "|\[b\](.*?)\[/b\]|is"

Shorter regex by one character, and you can use it in perl, too.
Remember, U is a tacked on feature, but ? has always been there,
it's your friend.  I used pipes to remove the necessity of escaping
the forward slash.

Cheers!

-- 
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
| Shaun M. ThomasINN Database Programmer  |
| Phone: (309) 743-0812  Fax  : (309) 743-0830|
| Email: [EMAIL PROTECTED]AIM  : trifthen  |
| Web  : www.townnews.com |
| |
| "Most of our lives are about proving something, either to   |
| "ourselves or to someone else." |
|   -- Anonymous  |
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+



-- 
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] Calendar program

2001-01-18 Thread Todd Cary

Whooops!  Wrong URL!

http://calendar.yahoo.com

Todd

Todd Cary wrote:

 Does a calendar program exist in PHP similar to Yahoo's program?
 (http://www.yahoo.com/calendar)

 Todd

 --
 Todd Cary
 Ariste Software
 [EMAIL PROTECTED]

 --
 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]

--
Todd Cary
Ariste Software
[EMAIL PROTECTED]



-- 
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]




[PHP] xslt_run problems

2001-01-18 Thread David Derr

I am having an issue hopefully someone else has encountered already.  I
have successfully compiled the latest expat(0.50) and sablot(1.95.1)
libraries and configured and compiled php4 and apache1.3.14 to use the
Sablotron Extensions.  

I think anyway it was successful because it says "Sablotron XSLT
support - enabled" in a phpinfo page.

When I try to actually do a transform though, I get this fatal error
that is somewhat confusing:

Fatal error: msgtype: error in /usr/local/apache/htdocs/index.php on
line 4

I have included the code that I am running, and have noticed that I
only get an error when trying to do the transform.  In other words, the
xslt_create() line works fine. (qs.xml and qs.xsl exist in the same
directory as the index page)

CODE:
?
$parser = xslt_create();
print "Parser Handle[$parser]";
xslt_run($parser, './qs.xsl', './qs.xml');  
print "Here is the output:".xslt_fetch_result($parser);
xslt_free($parser);
?

OUPUT:
Parser Handle[Resource id #1]
Fatal error: msgtype: error in /usr/local/apache/htdocs/index.php on
line 4


Any help is of course greatly appreciated.

David

--

ls

-- 
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]




[PHP] Problem with gettext support - Solaris 2.7

2001-01-18 Thread Albert Novak

Hi!

When I try to compile PHP 4.0.4 as Apache module with gettext support, the
gettext support doesn't function. But when I compile PHP as CGI, the gettext
support works fine. Where is the the problem (other functions works fine in
both case)?

I use Apache 1.3.14 with DSO support, GNU gettext 0.10.35, Solaris 5.7 and I
have compiled PHP 4.0.4 with gcc 2.95.2 and these options:

./configure --with-apxs=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/apache/config \
--with-low-memory --with-gettext=/usr/local

Does anyone have faced with similar problem or have solution for it?

Albert





-- 
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] calling static class functions using a function variable

2001-01-18 Thread Shaun Batterton

Well, essentially, a static class method is a method that can be called
without any instances of the class.  It's just a nice way to group
functions for your class.  

Check out chapter 13 of the php manual:
http://www.php.net/manual/en/language.oop.php
"Static class methods are apparently supported in php v4.02"... using
:: notation.

On Thu, 18 Jan 2001, Richard Lynch wrote:

  $junk="xml::hi_handler";
  $junk();
 
  Fatal error: Call to undefined function: xml::hi_handler()
 
 Perhaps this:
 
 $j1 = "xml";
 $j2 = "hi_handler";
 $j1::$j2();
 
 Wait.  Are you saying you don't have an instance of an xml object?...  I'm
 surprised you can even call xml::hi_handler() without one in the first
 place
 
 By Day:|By Night:
 Don't miss the Zend Web Store's|   There's not enough room here...
 Grand Opening on January 23, 2001! |   Start here:
 http://www.zend.com|   http://l-i-e.com/artists.htm
 
 
 
 

-- 


-- 
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] xslt_run problems

2001-01-18 Thread Sterling Hughes


 
 I am having an issue hopefully someone else has encountered already.  I
 have successfully compiled the latest expat(0.50) and sablot(1.95.1)
 libraries and configured and compiled php4 and apache1.3.14 to use the
 Sablotron Extensions.
 
 I think anyway it was successful because it says "Sablotron XSLT
 support - enabled" in a phpinfo page.
 
 When I try to actually do a transform though, I get this fatal error
 that is somewhat confusing:
 
 Fatal error: msgtype: error in /usr/local/apache/htdocs/index.php on
 line 4
 
 I have included the code that I am running, and have noticed that I
 only get an error when trying to do the transform.  In other words, the
 xslt_create() line works fine. (qs.xml and qs.xsl exist in the same
 directory as the index page)
 
 CODE:
 ?
 $parser = xslt_create();
 print "Parser Handle[$parser]";
 xslt_run($parser, './qs.xsl', './qs.xml');
 print "Here is the output:".xslt_fetch_result($parser);
 xslt_free($parser);
 ?
 
 OUPUT:
 Parser Handle[Resource id #1]
 Fatal error: msgtype: error in /usr/local/apache/htdocs/index.php on
 line 4
 
 Any help is of course greatly appreciated.
 

The basic error outputting in sablotron was broken, it means that something is
wrong with your XML or XSL file (syntax wise).  This has been fixed in CVS, you
can upgrade, or a work-around to see what exactly is wrong, is to simply go:


function xsl_error($parser, $code, $level, $errors)
{
echo "Parser: $parser\nbr\n";
echo "Code:   $code\nbr\n";
echo "Level:  $level\nbr\n";
echo "Errors: \nbr\nbr\n";
var_dump($errors);
}

// initialize parser here

xslt_set_error_handler($parser, "xsl_error");

// xslt_run here


-sterling

-- 
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]




[PHP] PHP Editors

2001-01-18 Thread Karl J. Stubsjoen

So what editor is recommended?  I'm a little familiar with Emacs (kinda
cool, but I'm use to keywords and such being colored - as in Interdev).

Thanks!


-- 
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] PHP Editors

2001-01-18 Thread Alexander Wagner

Karl J. Stubsjoen wrote:
 So what editor is recommended?  I'm a little familiar with Emacs (kinda
 cool, but I'm use to keywords and such being colored - as in Interdev).

Try emacs with a php-mode (there are several, search for them).

Wagner

-- 
One maniac alone can do what 20 together cannot

-- 
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] PHP Editors

2001-01-18 Thread jeremy brand

There is no recommended editor.  Use whatever you like, as long as it
stores the files in plain text.

Jeremy

Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more 
Get your own Free, Private email at http://www.smackdown.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   http://www.JEEP-FOR-SALE.com/ -- I need a buyer

On Thu, 18 Jan 2001, Karl J. Stubsjoen wrote:

 Date: Thu, 18 Jan 2001 08:02:44 -0700
 From: Karl J. Stubsjoen [EMAIL PROTECTED]
 To: PHP Mailing List [EMAIL PROTECTED]
 Subject: [PHP] PHP Editors
 
 So what editor is recommended?  I'm a little familiar with Emacs (kinda
 cool, but I'm use to keywords and such being colored - as in Interdev).
 
 Thanks!
 
 
 -- 
 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]
 
 


-- 
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]




[PHP-CVS] cvs: php4 /ext/standard datetime.c

2001-01-18 Thread Andrei Zmievski

andrei  Thu Jan 18 06:36:43 2001 EDT

  Modified files:  
/php4/ext/standard  datetime.c 
  Log:
  @- Fixed 'O' and 'r' flags of date() to have correct sign for timezone
  @  offset. (Andrei)
  
  
Index: php4/ext/standard/datetime.c
diff -u php4/ext/standard/datetime.c:1.64 php4/ext/standard/datetime.c:1.65
--- php4/ext/standard/datetime.c:1.64   Wed Jan 17 13:09:16 2001
+++ php4/ext/standard/datetime.cThu Jan 18 06:36:43 2001
@@ -19,7 +19,7 @@
  */
 
 
-/* $Id: datetime.c,v 1.64 2001/01/17 21:09:16 andrei Exp $ */
+/* $Id: datetime.c,v 1.65 2001/01/18 14:36:43 andrei Exp $ */
 
 
 #include "php.h"
@@ -433,7 +433,7 @@
 #if HAVE_TM_GMTOFF 
sprintf(tmp_buff, "%c%02d%02d", (ta-tm_gmtoff  0) ? 
'-' : '+', abs(ta-tm_gmtoff / 3600), abs( ta-tm_gmtoff % 3600));
 #else
-   sprintf(tmp_buff, "%c%02d%02d", ((ta-tm_isdst ? 
timezone - 3600:timezone)0)?'-':'+',abs((ta-tm_isdst ? timezone - 3600 : timezone) / 
3600), abs((ta-tm_isdst ? timezone - 3600 : timezone) % 3600));
+   sprintf(tmp_buff, "%c%02d%02d", ((ta-tm_isdst ? 
+timezone - 3600:timezone)0)?'-':'+',abs((ta-tm_isdst ? timezone - 3600 : timezone) 
+/ 3600), abs((ta-tm_isdst ? timezone - 3600 : timezone) % 3600));
 #endif
strcat(return_value-value.str.val, tmp_buff);
break;
@@ -493,7 +493,7 @@
ta-tm_hour,
ta-tm_min,
ta-tm_sec,
-   ((ta-tm_isdst ? timezone - 3600 : timezone)  
0) ? '-' : '+',
+   ((ta-tm_isdst ? timezone - 3600 : timezone)  
+0) ? '-' : '+',
abs((ta-tm_isdst ? timezone - 3600 : 
timezone) / 3600),
abs((ta-tm_isdst ? timezone - 3600 : 
timezone) % 3600)
);



-- 
PHP CVS 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]




[PHP-I18N] Problem with gettext suporrt - Solaris 2.7

2001-01-18 Thread Albert Novak

Hi!

When I try to compile PHP 4.0.4 as Apache module with gettext support, the
gettext support doesn't function. But when I compile PHP as CGI, the gettext
support works fine. Where is the the problem (other functions works fine in
both case)?

I use Apache 1.3.14 with DSO support, GNU gettext 0.10.35, Solaris 5.7 and I
have compiled PHP 4.0.4 with gcc 2.95.2 and these options:

./configure --with-apxs=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/apache/config \
--with-low-memory --with-gettext=/usr/local

Does anyone have faced with similar problem or have solution for it?

Albert





-- 
PHP Internationalization 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] Register globals when option is turned on

2001-01-18 Thread Carsten Gehling

From: "Ignacio Vazquez-Abrams" [EMAIL PROTECTED]
Sent: Wednesday, January 17, 2001 11:33 PM


 On Wed, 17 Jan 2001, Carsten Gehling wrote:

  Is there a way to programatically enable the register_globals option for
a
  php-script?
 
  For certain reasons I have the register_globals option set to "Off".
  However, phpMyAdmin will not work unless it is set to "On" therefore, I
  thought of making a check in the "config.inc.php" if the option is set,
and
  if not, set it.
 
  Is there a function that I can call?
 
  - Carsten
 

 Ugh. Don't do it that way. Instead use Directory, Location, or
.htaccess
 to turn it on for phpMyAdmin.

Hmmm... Can you exlpain it a bit more? Cause I frankly don't understand what
mean ;-)

BTW: You may want to know that I run Win2k and IIS 5.0, not Linux/Apache

- Carsten



-- 
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] PHP Editor

2001-01-18 Thread Chris Lee

I run Linux for server / testbed / devel so I cant say here for sure, but I
know in linux if I wanted to test a script without running it on my
webserver (Ive had scripts that crash apache) I compile php as a cgi and do
this.

php -q test.php

the '-q' just means "dont send the http headers"

can you compile/download php for windows as a cgi ? that would solve your
problem eh.

Chris Lee
Mediawaveonline.com





"Alaiddin Tayeh" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 I am using write.exe in the windows to edit my php files, is there any
 editor which I can test my syntax befor using the browser to execute it?

 any help will be appreciated.

 Thanks



 --
 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]




-- 
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] (Newbie) String within a string

2001-01-18 Thread Chris Hayes


jalist:
 I'm trying to grab a string from within a string based on a matching word or
 phrase. Example...

You say you want the middle, not two words before and two words after.

I see several ways.


 1. Explode into an word-array and use that:
1. prepare string 
a) add spaces after comma's and fullstops by some replace 
operation (replace ',' by ', ').
b) remove double spaces
2. split to an array using explode (space as string separator)
Now you have every word in a separate place in the array
3. Get # of words by count($array)
4. Divide by two and get nearest integer (hence floor and +0.5!)
$mid= floor(count($array)/2 + 0.5)
OH NO, correction, that's the middle, you wanted a specific word.
I'm afraid you'll have to walk thorugh the array to find the word  
 
you need. 

for (i=0;icount($array);i++)
{
if ($array[$i]==$searchword)
{   $fragment= "...".
 $array[$mid-2] ." "
 $array[$mid-1] ." "
 $array[$mid]   ." "
 $array[$mid+1] ." "
 $array[$mid+2] ."...";
##extra job for you: make sure  $i = 2 
## 
 and $i = count-2
## or you'll get an error 

[exit the for loop somehow, maybe drop 
this in a function and RETURN;]
}

}



OR

 2. Continue with the strpos and strrpos, organize it a bit better.
For instance find the middle of the string. Split at nearest
space in leftstring and rightstring.

Make a function chop_last_word, chop last two or three words from  
 
leftstring and add to resultstring in right order.

Same for rightstring.

 I think the array way is cleaner.

Chris


--  C.Hayes  Droevendaal 35  6708 PB Wageningen  the Netherlands  --


 

-- 
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]




[PHP-CVS] cvs: php4 /ext/sablot config.m4

2001-01-18 Thread Jani Taskinen

sniper  Thu Jan 18 07:09:35 2001 EDT

  Modified files:  
/php4/ext/sablotconfig.m4 
  Log:
  Fixed a typo.
  
Index: php4/ext/sablot/config.m4
diff -u php4/ext/sablot/config.m4:1.12 php4/ext/sablot/config.m4:1.13
--- php4/ext/sablot/config.m4:1.12  Thu Jan 11 10:25:33 2001
+++ php4/ext/sablot/config.m4   Thu Jan 18 07:09:35 2001
@@ -1,4 +1,4 @@
-dnl $Id: config.m4,v 1.12 2001/01/11 18:25:33 sniper Exp $
+dnl $Id: config.m4,v 1.13 2001/01/18 15:09:35 sniper Exp $
 dnl config.m4 for extension Sablot
 
 PHP_ARG_WITH(expat-dir, for Sablotron XSL support,
@@ -45,7 +45,7 @@
 fi
   done
 
-  if test "$testval" == "no"; then
+  if test "$testval" = "no"; then
 AC_ADD_LIBRARY(xmlparse)
 AC_ADD_LIBRARY(xmltok)
   fi



-- 
PHP CVS 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] PHP Editors... perhaps Ultraedit

2001-01-18 Thread John Huggins

Karl,

I suggest Ultraedit (on the PC) at http://www.ultraedit.com.  I use it along
side Dreamweaver with good results and good organization.  Ultraedit (out of
the box) does not know about PHP; you configure it with one of the several
wordlist files and then you will have syntax highlighting.  I try to use
Dreamweaver to organize and FTP the files back and forth from server to
workstation.  However, I have frequently used the built in FTP Load/Save
ability in Ultraedit; This is a great timesaver.

All of this is besides the point if you already know another editor like
Emacs where finding a PHP mode in that editor will get you going full speed
in less time.

Still, an editor is just an editor so I will suggest at least looking at
Ultraedit.  If you have any problems configuring the wordlist (a tedious
task) please feel free to email me off list and I will help you as best I
can.

Regards.
John


 So what editor is recommended?  I'm a little familiar with Emacs (kinda
 cool, but I'm use to keywords and such being colored - as in Interdev).

 Thanks!



-- 
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] HTTP_POST??

2001-01-18 Thread Chris Lee

Try this, I know Ive botched your origonal code...

somepage.php
?
 while(...)
 {
  ...
  echo "tdinput type='checkbox' name='account_num[$SkyAccNo]'
value='$SkyAccNo'/td\n";
 }
?

someotherpage.php
?
 function checked($val_1, $val_2)
 {
  if ($val_1 == $val_2)
   return " checked ";
 }

 foreach($account_num as $pos = $val)
 {
  echo "tdinput type='checkbox' name='account_num[$SkyAccNo]'
value='$SkyAccNo' " . checked(@$account_num[$pos], $SkyAccNo) . " /td\n";
 }

 while(...)
 {
  ...
  echo "tdinput type='checkbox' name='account_num[$SkyAccNo]'
value='$SkyAccNo' " . checked(@$account_num[$SkyAccNo], $SkyAccNo) . "
/td\n";
 }
?

email me if you have more questions.

Chris Lee
Mediawaveonline.com


""Wade Halsey"" [EMAIL PROTECTED] wrote in message
025401c0811c$214dfb40$256410ac@WADEH">news:025401c0811c$214dfb40$256410ac@WADEH...
Hi

I have a while loop which populates rows in a table, in each row is a
checkbox which has a unique name:

tdinput type="checkbox" name="?php print $SkyAccNo;?" value="ON"/td

On another page I want to output all the details in a specific table row,
how do I check which checkbox has been checked so that specific row can be
displayed?

Thanks for any help

Wade




-- 
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]




[PHP] prova

2001-01-18 Thread Giancarlo

ciao

-- 
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]




php-general Digest 18 Jan 2001 16:09:35 -0000 Issue 462

2001-01-18 Thread php-general-digest-help


php-general Digest 18 Jan 2001 16:09:35 - Issue 462

Topics (messages 35249 through 35370):

Re: Ethics question...
35249 by: Egan
35271 by: Angus Mann
35277 by: Les Neste
35278 by: Dallas Kropka
35294 by: Egan
35295 by: Romulo Roberto Pereira
35297 by: Egan
35300 by: Les Neste
35319 by: Frank Joerdens
35333 by: Jim Jagielski
35339 by: CC Zona
35360 by: jeremy brand

Re: phpwebhosting.com
35250 by: Stephan Ahonen
35307 by: jeremy

Re: identifying clicked link?
35251 by: Philip Olson
35255 by: andrew
35275 by: Angus Mann

Re: Merging PHPLIB into PEAR
35252 by: tarique.sanisoft.com
35254 by: Philip Olson

Re: I love/hate FrontPage - need another HTML editor.
35253 by: Gerald Buckmaster
35269 by: Hrishi

preg_replace pain!
35256 by: Nicholas Pappas
35270 by: Maxim Maletsky
35321 by: Christian Reiniger
35352 by: Shaun Thomas

Re: A little problem
35257 by: Brian Clark

Re: Apache .htaccess Help (OT)
35258 by: Brian Clark

Re: changed database context message
35259 by: Brian Clark

Re: Cookies still store old value(Help!!)
35260 by: Brian Clark

Re: Grabbing referring keywords.
35261 by: Brian Clark

Re: php 4.0.5.dev will not read php.ini on NT
35262 by: Brian Clark

Re: PHP not working on Win95/Apache
35263 by: Brian Clark

Re: Postgres pconnect
35264 by: Brian Clark

Re: Session and Cookies
35265 by: Brian Clark

Something cool I found in Wired,
35266 by: Dallas Kropka
35341 by: Brian V Bonini

Re: APC version 1.0.4 released
35267 by: The Doctor

archiving php lists ?
35268 by: Mukul Sabharwal
35296 by: Hank Leininger

popen in safe_mode with pipe
35272 by: Lic. Rodolfo Gonzalez Gonzalez

fast question about session_start
35273 by: Romulo Roberto Pereira
35293 by: Romulo Roberto Pereira

Ms SQL  Error with php3.0
35274 by: Dhaval Desai

HTTP_POST??
35276 by: Wade Halsey
35369 by: Chris Lee

Re: HTTP_POST
35279 by: Richard Lynch

Re: Probs with browsecap.ini
35280 by: Richard Lynch

Re: Forking email out
35281 by: Richard Lynch

Re: How can I "download" information (file) without standard "save as" dialog ??
35282 by: Richard Lynch
35340 by: Benny Nissen

Re: mysql error
35283 by: Richard Lynch

Re: session_start() and cache problem ...
35284 by: Richard Lynch

Re: Images ??? ok,but...
35285 by: Richard Lynch

Re: calling static class functions using a function variable
35286 by: Richard Lynch
35357 by: Shaun Batterton

Re: PHP connecting to FIlemaker Database
35287 by: Richard Lynch

Re: determine number of days, hours  minutes between 2 dates
35288 by: Richard Lynch

Re: How to avoid submitting twice?
35289 by: Richard Lynch

Re: Ver3.0 Includes
35290 by: Richard Lynch

Re: Installing with apache
35291 by: Richard Lynch

stripping the keywords from a search engine... again...
35292 by: Dallas Kropka
35299 by: Brian Clark

below10host.com as webhost?
35298 by: Jeff Lacy
35303 by: Egan
35308 by: jeremy

Re: Mailto: tag, how do I insert line breaks..?
35301 by: David Bouw

db backup script needed
35302 by: Maxim Maletsky
35317 by: CC Zona

Re: how do i hide my .inc files in apache??
35304 by: Matt Williams
35305 by: Maxim Maletsky

Re: [PHP-WIN] best user authentication method?
35306 by: Michael Rudel
35343 by: Wacks, David

SESSIONS
35309 by: David Tandberg-Johansen
35314 by: Pavel Jartsev

flash and php
35310 by: Jacky.lilst
35312 by: andreas \(.work\)
35320 by: Frank Joerdens

PDFLib and PHP and pdf_open_image_file
35311 by: goood goood

Off The Topic But Please Help
35313 by: Statbat

general CGI question
35315 by: Hrishi

Re: how reliable is Windows2000 / php ?
35316 by: Phil Driscoll

Sorting an array
35318 by: Nicklas af Ekenstam
35322 by: Pavel Jartsev

Error connecting to MySQL server
35323 by: Rosen

upgrade problems
35324 by: Bart A. Verbeek

PHP Editor
35325 by: Alaiddin Tayeh
35366 by: Chris Lee

Newbie : info/tut on XML and PHP
35326 by: Rahul Bhide

Re: Editor
35327 by: Roman

Array help needed
35328 by: CDitty
35330 by: Knut Sætre
35334 by: CDitty
35336 by: php3.developersdesk.com

Re: Ethics question... (c) on ideas - OT rant
35329 by: Chris Hayes

Re: Can I fork a PHP thread?
35331 by: Terrence Chay

Re: best user authentication method?
35332 by: Rick Hodger

Cobalt Raq/PHP Help Needed
35335 by: Gareth Davies

RE: [PHP] (Newbie) String within a string

2001-01-18 Thread jalist

Excellent, thanks a lot Chris.

Steve
(jalist)
[EMAIL PROTECTED]
http://ls2k.org

-Original Message-
From: Chris Hayes [mailto:[EMAIL PROTECTED]]
Sent: 18 January 2001 15:43
To: jalist; PHP
Subject: Re: [PHP] (Newbie) String within a string



jalist:
 I'm trying to grab a string from within a string based on a matching word
or
 phrase. Example...

You say you want the middle, not two words before and two words after.

I see several ways.


 1. Explode into an word-array and use that:
1. prepare string
a) add spaces after comma's and fullstops by some replace
operation (replace ',' by ', ').
b) remove double spaces
2. split to an array using explode (space as string separator)
Now you have every word in a separate place in the array
3. Get # of words by count($array)
4. Divide by two and get nearest integer (hence floor and +0.5!)
$mid= floor(count($array)/2 + 0.5)
OH NO, correction, that's the middle, you wanted a specific word.
I'm afraid you'll have to walk thorugh the array to find the word
you need.

for (i=0;icount($array);i++)
{
if ($array[$i]==$searchword)
{   $fragment= "...".
 $array[$mid-2] ." "
 $array[$mid-1] ." "
 $array[$mid]   ." "
 $array[$mid+1] ." "
 $array[$mid+2] ."...";
##extra job for you: make sure  $i = 2
## 
 and $i = count-2
## or you'll get an error

[exit the for loop somehow, maybe drop
this in a function and RETURN;]
}

}



OR

 2. Continue with the strpos and strrpos, organize it a bit better.
For instance find the middle of the string. Split at nearest
space in leftstring and rightstring.

Make a function chop_last_word, chop last two or three words from
leftstring and add to resultstring in right order.

Same for rightstring.

 I think the array way is cleaner.

Chris


--  C.Hayes  Droevendaal 35  6708 PB Wageningen  the Netherlands  --




--
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]



-- 
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]




[PHP] help me!! cookie and IIS

2001-01-18 Thread Giancarlo

i work with php3 and mysql in IIS webserver,my project in php work right on
the localhost, but not in the other pc of the LAN, what can i do?
the internet options enable Cookies.
thank you?


-- 
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] PHP Editors... perhaps Ultraedit

2001-01-18 Thread Alexander Wagner

John Huggins wrote:
 I suggest Ultraedit (on the PC) at http://www.ultraedit.com.  I use it
 along side Dreamweaver with good results and good organization.  Ultraedit
 (out of the box) does not know about PHP; you configure it with one of the
 several wordlist files and then you will have syntax highlighting.  I try
 to use Dreamweaver to organize and FTP the files back and forth from server
 to workstation.  However, I have frequently used the built in FTP Load/Save
 ability in Ultraedit; This is a great timesaver.

That depends. If you can't test locally, it can. If you can, and especially 
when you're working on some bigger application and use CVS anyway it won't do 
you any good.

 Still, an editor is just an editor 

But emacs is pretty different, isn't it? You can't compare emacs or vi to any 
other editor.

Wagner

-- 
One maniac alone can do what 20 together cannot

-- 
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] Automated Scripts

2001-01-18 Thread Jon Farmer

You could either

Compile PHP as a command line executable

or

Use Lynx to call a php page through HTTP.


either wat cron is the way to go

Regards

--
Jon Farmer
www.workcam.co.uk
+44 (0)7968 524175

2001 should be pronounced twenty o one not two thousand and one


"Jason Murray" [EMAIL PROTECTED] wrote in message
1595534C9032D411AECE00508BC766FB01052937@MERCURY">news:1595534C9032D411AECE00508BC766FB01052937@MERCURY...
  I need to run a script that renames a file and deletes an old
  one then ships it to another server every Monday at a certain
  time I know this is possible, but what is the technology
  called? Does PERL or PHP have the ability to do this? Can I
  get CRON objects to run PHP source code?

 Is this an example of such a script, emailling the same mail
 to the mailing list every monday at a specific time?

 I already replied to you off-list.

 Jason

 --
 Jason Murray
 [EMAIL PROTECTED]
 Web Design Team, Melbourne IT
 Fetch the comfy chair!

 --
 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]




-- 
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] Array help needed

2001-01-18 Thread php3

Addressed to: CDitty [EMAIL PROTECTED]
  [EMAIL PROTECTED]

** Reply to note from CDitty [EMAIL PROTECTED] Thu, 18 Jan 2001 06:58:22 -0600

I see someone else has another suggestion that might be better, using
array_count().  You learn something new every day, which is why I watch
this list...


anyway, the thing I see in your code:


 while(list($index, $value) = each($dice)){ // Changed from $Input to
  ^

$Output[$Value]++; }
  ^

$Value != $value



I know my use of caps or not in this example sucks.  I usually always
use Caps On Each Word for my var names, but I am trying to switch to
what appears to be the php standard, lower case everywhere.  Sorry
about that...




Rick Widmer
Internet Marketing Specialists
http://www.developersdesk.com

--
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]




[PHP] Internals of Session files

2001-01-18 Thread Eivind Trondsen


Hi all!

Can someone shed any light on the internals of the session file
format? Is it documented somewhere?

We are building a system to log user paths, and are thinking of
harvesting PHP session objects to accomplish this. Has someone done
the same?

Thanks for all help! :-)

-- 
-- Eivind Trondsenhttp://www.allycards.com 
-- UberGeekgsm://+4797044324

-- 
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] Ethics question...

2001-01-18 Thread Brian Huddleston


  Why would Microsoft be using Solaris, or Linux even?  (hint, the same
  reason -- their stuff works less good).

 Do you know for a fact that they do? If so, how? That'd be a very cool
 tidbit of information to share . . .

Yep it is (was) true.  We used to laugh about it at work.  (We were in the
middle of
a big Unix vs. NT debate).  They used solaris on their web servers early on.
(Probably
because a) The Intel "server class" machine market was relatively immature
at that point
and b) Prior to NT4 SP3, NT had no chance of holding up under any sort of
load).
They are all Win2k now last time I checked.

Hotmail did use FreeBSD as I recall.  This was an external company that
Microsoft
acquired and they made the decision not to completely rewrite it when they
acquired it
(although considering how completely clueless Hotmail was about web security
they
probably should've done it).

There are (or used to be) some number of publically available Linux boxes in
the
microsoft.com domain.  (Mostly in their research labs.)  You should be able
to
do a web or deja search and find info on them if you are really interested.

-Brian


-- 
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] Internals of Session files

2001-01-18 Thread Chris Lee

No if memory serves me correctly php by default saves the session files in
its own format, but you can tell php to save sessions in XML (wddx? am I way
off) Ive never used XML, WDDX, or tried doing anything directly with the
sessions files

Chris Lee

"Eivind Trondsen" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 Hi all!

 Can someone shed any light on the internals of the session file
 format? Is it documented somewhere?

 We are building a system to log user paths, and are thinking of
 harvesting PHP session objects to accomplish this. Has someone done
 the same?

 Thanks for all help! :-)

 --
 -- Eivind Trondsenhttp://www.allycards.com
 -- UberGeekgsm://+4797044324

 --
 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]




-- 
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] Array help needed

2001-01-18 Thread April

As a generalness, from what I've seen, people who just switched from ASP use
somethingUppercase at first.  Then forget to capitalize it a few times, and
switch to completely lowercase in disgust (case-sensitivity can be quite a
shock when you're not used to it).  And the people who've done PHP since
they started out use whatever they damn well feel like using.  I use
Something_Something if left ot my own devices, I have no idea why, it just
happens.


- Original Message -
From: "Kristi Russell" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, January 18, 2001 10:40 AM
Subject: Re: [PHP] Array help needed


 I wouldn't call it a php standard.

 I personally feel that readability is far more important than following
 anything that 'appears' to be standard.  I use a format such as this for
 everything I name:  If one word, lowercase, if more than one word:
 $userSelectedDate or displayCalendar().  So basically everything starts
with
 a lowercase word and all words after that are capitalized at the
beginning.

 Just my two cents.
 Kristi


 - Original Message -
  I know my use of caps or not in this example sucks.  I usually always
  use Caps On Each Word for my var names, but I am trying to switch to
  what appears to be the php standard, lower case everywhere.  Sorry
  about that...
 
 
 
 
  Rick Widmer
  Internet Marketing Specialists
  http://www.developersdesk.com
 
  --
  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]
 


 --
 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]



-- 
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]




[PHP] CSS and PHP

2001-01-18 Thread Brandon Orther

Hello,

I am making a script that creates a dynamic htm page.  One of the many
things that this script does is change the css.  The problem I am having is
that it doesn't seem to display the css when it is loaded through the web
server.  When I look at the source and save it as an htm file.  It loads up
perfectly.  Has anyone ever had this problem before?

Thank you,


Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.com



-- 
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]




[PHP] cookie problem

2001-01-18 Thread Fai

I'm working with php3 and IIS, i had set cookie with: name,
$session-cookie,
$session-timeid+3600, "/"); ? but these cokkie work right only on
localhost and not on the others computer of the LAN, the options setting of
internet: enable Cookie, where is the problem?
Thank You!



-- 
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]




[PHP] Sendmail User ID

2001-01-18 Thread Yurais Fernandez Leal


Hi

I have a web site that sends virtual greetings cards

But the mails are been sent as nobody@webserver

nobody is the user that runs the web server.

Should I run the web server as a different user so that the mails get
sent as this user instead of nobody ?


I've play with the headers in the mail() function with no success.

Any idea ?


-- 
 
   Yurais Fernndez Leal, Systems Administrator
  Public Health Network Santiago de Cuba
[EMAIL PROTECTED]
  http://www.scu.sld.cu/
   Phone: (53) 226-54204
   (home) (53) 226-51556
FAX:  (53) 226-54204
   ICQ: 33792610



--
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] calling static class functions using a function variable

2001-01-18 Thread Richard Lynch

 Check out chapter 13 of the php manual:
 http://www.php.net/manual/en/language.oop.php
 "Static class methods are apparently supported in php v4.02"... using
 :: notation.

A user-comment that "it works" does not exactly qualify as a documented
feature...

I wouldn't count on it.

By Day:|By Night:
Don't miss the Zend Web Store's|   There's not enough room here...
Grand Opening on January 23, 2001! |   Start here:
http://www.zend.com|   http://l-i-e.com/artists.htm



-- 
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]




[PHP] Print vs. Echo

2001-01-18 Thread Karl J. Stubsjoen

What is the basic difference between print and echo?  As I am understanding
it, Echo allows you to define a multi-line area to output text without
having to repeat quoting for each line but then what is the advantage of
print?

Thanks!


-- 
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]




[PHP] quick question on the passed variables between scripts

2001-01-18 Thread Romulo Roberto Pereira

Hello!

I have one script that has a bunch of checkboxes in a form, all them with
different names. As you know the form only submit the ones that are
checked. I would like to know witch ones the user checked (they will come in
the path as variables I suppose) because I need to make a sum of the ones
that are checked, and right now I am using isset() to verify before I sum.
This is way too bad, because as I have 48 checkboxes I have too many IFs.

Please help!

Rom

Example: this is what I am doing:

script 1:

form action=script2.php
input type=checkbox name=cb01 value=729
input type=checkbox name=cb02 value=815
input type=checkbox name=cb03 value=36
input type=checkbox name=cb04 value=988
input type=checkbox name=cb05 value=215
input type=checkbox name=cb06 value=45446
input type=checkbox name=cb07 value=22
input type=checkbox name=cb08 value=52564
input type=checkbox name=cb09 value=455
input type=checkbox name=cb10 value=21132
/form

script 2:
$sum = 0;
if (isset($cb01)) $sum = $sum + $cb01;
if (isset($cb02)) $sum = $sum + $cb02;
if (isset($cb03)) $sum = $sum + $cb03;
if (isset($cb04)) $sum = $sum + $cb04;
if (isset($cb05)) $sum = $sum + $cb05;
if (isset($cb06)) $sum = $sum + $cb06;
if (isset($cb07)) $sum = $sum + $cb07;
if (isset($cb08)) $sum = $sum + $cb08;
if (isset($cb09)) $sum = $sum + $cb09;
if (isset($cb10)) $sum = $sum + $cb10;

echo $sum;


-- 
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] PHP Editors

2001-01-18 Thread Ignacio Vazquez-Abrams

On Thu, 18 Jan 2001, Karl J. Stubsjoen wrote:

 So what editor is recommended?  I'm a little familiar with Emacs (kinda
 cool, but I'm use to keywords and such being colored - as in Interdev).

 Thanks!


I've found vim to be quite capable. Only a few syntax highlighting problems,
but no big deal.

-- 
Ignacio Vazquez-Abrams  [EMAIL PROTECTED]


-- 
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] Sendmail User ID

2001-01-18 Thread Julia A . Case

  $mailsent = mail("[EMAIL PROTECTED]", "Subject",
$mesg, "From: [EMAIL PROTECTED]\n")

Try this,
Julia

Quoting Yurais Fernandez Leal ([EMAIL PROTECTED]):
 
 Hi
 
 I have a web site that sends virtual greetings cards
 
 But the mails are been sent as nobody@webserver
 
 nobody is the user that runs the web server.
 
 Should I run the web server as a different user so that the mails get
 sent as this user instead of nobody ?
 
 
 I've play with the headers in the mail() function with no success.
 
 Any idea ?
 
 
 -- 
  
Yurais Fernndez Leal, Systems Administrator
   Public Health Network Santiago de Cuba
 [EMAIL PROTECTED]
   http://www.scu.sld.cu/
Phone: (53) 226-54204
(home) (53) 226-51556
 FAX:  (53) 226-54204
ICQ: 33792610
 
 
 
 -- 
 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]

-- 
[  Julia Anne Case  ] [Ships are safe inside the harbor,   ]
[Programmer at large] [  but is that what ships are really for.]  
[   Admining Linux  ] [   To thine own self be true.   ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
  

-- 
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]




[PHP-CVS] cvs: php4 /ext/muscat muscat.c

2001-01-18 Thread Sam Liddicott

samjam  Thu Jan 18 08:16:28 2001 EDT

  Modified files:  
/php4/ext/muscatmuscat.c 
  Log:
  Some decent credits and such in the phpinfo page
  
  
Index: php4/ext/muscat/muscat.c
diff -u php4/ext/muscat/muscat.c:1.1 php4/ext/muscat/muscat.c:1.2
--- php4/ext/muscat/muscat.c:1.1Thu Jan 18 05:21:33 2001
+++ php4/ext/muscat/muscat.cThu Jan 18 08:16:28 2001
@@ -130,8 +130,8 @@
 PHP_MINFO_FUNCTION(muscat)
 {
php_info_print_table_start();
-   php_info_print_table_header(1, "Muscat/Empower 1.5 Module for PHP version 
4.0brCopyright (c) 2000 a href=\"www.ananova.com\"Ananova Ltda/brFor 
information on Muscat/Empower see a 
href=\"www.smartlogik.com\"www.smartlogik.com/a");
-   php_info_print_table_row(2, "muscat support", "enabled");
+   php_info_print_table_header(2, "muscat support", "enabled");
+   php_info_print_table_row(2, "Muscat/Empower 1.5 Module for PHP version 
+4.0brCopyright (c) 2000 a href=\"www.ananova.com\"Ananova Ltda/","For 
+information on Muscat/Empower without php see a 
+href=\"www.smartlogik.com\"www.smartlogik.com/abrsmallMuscat and Empower are 
+probably trade marks/small");
php_info_print_table_row(2, "muscat path", PHP_MUSCAT_DIR);
php_info_print_table_end();
 



-- 
PHP CVS 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] Print vs. Echo

2001-01-18 Thread Philip Olson


Have a look here :

What is the difference between echo and print?:
---
http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/41


Philip

On Thu, 18 Jan 2001, Karl J. Stubsjoen wrote:

 What is the basic difference between print and echo?  As I am understanding
 it, Echo allows you to define a multi-line area to output text without
 having to repeat quoting for each line but then what is the advantage of
 print?
 
 Thanks!
 
 
 -- 
 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]
 


-- 
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] PHP Editors

2001-01-18 Thread Brandon Orther

I am not sure what OS you are running but for windows I use PHPED. Check it
out at www.phped.com

-Original Message-
From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 7:03 AM
To: PHP Mailing List
Subject: [PHP] PHP Editors


So what editor is recommended?  I'm a little familiar with Emacs (kinda
cool, but I'm use to keywords and such being colored - as in Interdev).

Thanks!


--
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]


-- 
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] Spell checker?

2001-01-18 Thread Brandon Orther

Check here, I have never messed with it just ran into it the other day.  I
hope it helps.

http://www.php.net/manual/en/ref.pspell.php

Thank you,


Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.com


-Original Message-
From: Nik Gare [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 6:13 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Spell checker?


Hi,
I have a site which will be updated periodically by someone else, so have
made some forms with textareas for them to upload the text into the MySQL
database.  I was wondering if there is a PHP function/class which could
spell check these forms?

TTFN
Nik


--
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]


-- 
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]




[PHP] ClibPDF Tutorial?

2001-01-18 Thread Tom Harris

Does anyone know a good tutorial on using the ClibPDF functions (I gave up
on pdflib, couldn't get it complied correctly)?

I don't need to know how to do anything complex,  just put text into a pdf
that outputs directly to the browser.

Thanks.



-- 
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] php 4.0.5.dev will not read php.ini on NT

2001-01-18 Thread Robert


  Configuration File (php.ini) Path php.ini

is what it said before.
It still says that, I switched back to 4.04pl1 and now it works fine
I wrote an IC parts search engine that will search our MSSQL database for
partial part numbers and
part numbers with the dash in the wrong place. It's working now!!!  YAY!

Now I need to parse the output and send a message with only the requested
parts.

- Original Message -
From: "Brian Clark" [EMAIL PROTECTED]
To: "PHP is not a drug ." [EMAIL PROTECTED]
Sent: Wednesday, January 17, 2001 10:57 PM
Subject: Re: [PHP] php 4.0.5.dev will not read php.ini on NT



 Hello Robert,

 (R == "Robert") [EMAIL PROTECTED] writes:

 R PHP 4.0.5.dev I installed it on my Windows 2000 Pro machine with
 R IIS and MySQL and it works like a champ I installed it on my
 R Windows NT Server with IIS and MSSQL and it will not read the
 R php.ini file I put it in the following folders to try to get it to
 R work

 R C:\winnt
 R C:\
 R C:\winnt\system32
 R C:\windows  ---created just to see if it would work

 Stick ?php phpinfo(); ? into a file and load it in a browser. Look
 for the line that says something along the lines of:

 php.ini file path is set to: X

 Where X is the base directory. I'm not sure about 4.x's phpfino()
 saying those exact words, but where ever it says it should be,
 put it in that directory and try it.

 R GRRR!!!
 R What's up here?
 R Thanks

 -Brian
 --
 If a listener nods his head when you're
 explaining your program, wake him up.



 --
 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]




-- 
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]




[PHP] question on time-based function

2001-01-18 Thread Rudy McDaniel

Anyone have any ideas on how to make a function reset every 24-hours?  For example, I 
have a function that grabs a random quote from a file and selects a new one every time 
the page is reloaded.  What I want, however, is for the quote to remain the same for a 
day and then reset at some specified time (say midnight) and grab a new random quote 
for the next day.  It seems like their should be any easy way to do this using mktime( 
) or a similar function but I'm not fully grasping it.  Any ideas on how to do this 
would be much appreciated.

Rudy

function displayRandomQuote() {
 $file_input_name = "quotes.data"; 
 srand ((double) microtime() * 1000);
 $open_file = file($file_input_name); 
 $random_index = array_rand($open_file); 
 $unformatted = $open_file[$random_index];
 $quoteOfTheDay = explode("::",$unformatted);
 $quote = $quoteOfTheDay[0];
 $author = $quoteOfTheDay[1];
 echo "i";
 echo $quote."br/i." -- ".$author;
 }



[PHP] Variable Scope

2001-01-18 Thread Karl J. Stubsjoen

I'm a bit troubled with the fact that variables declared at the top of your
script are not then global to functions within that script.  That in order
to see that variable within a function you'd have to declare it as global in
the function (understanding that the variable could have been set at the top
of the script).  This seems extremely backwards to me (me being a VB guy).

Would someone kindly shine the light down upon me with an explanation of
this logic?  And why can't I possibly declare the variable as Global at the
top of my script?

Thats a big "H"


-- 
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] Internals of Session files

2001-01-18 Thread Chris Adams

On 18 Jan 2001 08:28:50 -0800, Eivind Trondsen [EMAIL PROTECTED] wrote:
Can someone shed any light on the internals of the session file
format? Is it documented somewhere?

We are building a system to log user paths, and are thinking of
harvesting PHP session objects to accomplish this. Has someone done
the same?

First, you probably want to have your code log to a database instead. The
session files won't have the context information you want. Alternately, just
turn on mod_usertrack in your Apache config and any decent log analysis program
will be able to do that for you.

However, if you do want to decipher those files, note the similarity between
the contents of one and the output of serialize($HTTP_SESSION_VARS).

-- 
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] CSS and PHP

2001-01-18 Thread Chris Adams

On 18 Jan 2001 08:58:45 -0800, Brandon Orther [EMAIL PROTECTED] wrote:
I am making a script that creates a dynamic htm page.  One of the many
things that this script does is change the css.  The problem I am having is
that it doesn't seem to display the css when it is loaded through the web
server.  When I look at the source and save it as an htm file.  It loads up
perfectly.  Has anyone ever had this problem before?

PHP doesn't care about the bytes being sent, so there shouldn't be any special
problems related to CSS. Have you verified whether or not any of what you
expect is showing up in the generated HTML? At a guess, there's something
slightly wrong in the generated code which is causing a display failure. If
you're saving it through IE, some of the save options will have IE save it's
internal parsed version (it's the same cause as the difference between View
Source's code and View Partial Source's output), which could explain why that
works.

-- 
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] calling static class functions using a function variable

2001-01-18 Thread John Donagher


Static class methods certainly do work, and have for some time. I think
Shaun's point is that variable-named function support seems to be 
missing for calling static class methods.

John

On Thu, 18 Jan 2001, Richard Lynch wrote:

  Check out chapter 13 of the php manual:
  http://www.php.net/manual/en/language.oop.php
  "Static class methods are apparently supported in php v4.02"... using
  :: notation.
 
 A user-comment that "it works" does not exactly qualify as a documented
 feature...
 
 I wouldn't count on it.
 
 By Day:|By Night:
 Don't miss the Zend Web Store's|   There's not enough room here...
 Grand Opening on January 23, 2001! |   Start here:
 http://www.zend.com|   http://l-i-e.com/artists.htm
 
 
 
 

-- 

John Donagher
Application Engineer
Intacct Corp. - Powerful Accounting on the Web
408-395-0989
720 University Ave.
Los Gatos CA 95032
www.intacct.com

-BEGIN PGP PUBLIC KEY BLOCK-
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org

mQGiBDnCZ1oRBACFgkFCV6p3dWic1qm1FLhip5beIyzZSt+ccTDYQQdPZA/t5H+k
PZ7ZFBIUrXz/oEqwQwlEKlg8JQqg7hgtcL+xrIJ0BInLeSJG4lvvB551g59Thr7/
OsdxNVxKci775+K+GkdAz4xcULMuB+QE7t665Ri46EAS8ALos5UG6DGmhwCguD0v
1cxwy/KlKr+oi4sWM9caueED/RmjiSD3vmBZQt6PMisVe1AmkEf6cJoemduCSJxu
0eMz/LIeu+CqfpuJH2N/dZ3hRj9xMSHF4l71wKqV99zhm58kDGwG1u3yVzULPDqz
0yL+8nunlkoOUyn3zOnh3Zmz4POFVMZQ5oian3QkLllUwly5JCi5tWULxZ2vOkb0
zzjuA/4jigNxYV4NAyCl+wAbnyzk9/Iz8EHv4/0Ex8ytlcMtvBJKa9HjJxlyIl74
yOILHk3+GSAdM0b3ZmbavpoCpebinOMBhqEVBwCI4VUIAqf86gx+2dKBGxfKPnU4
Xxvqs/BOl/EbeJjyd4uieYndGRaWg+kYXqZ7SxrlFN24fohnd7QgSm9obiBEb25h
Z2hlciA8am9obkB3ZWJtZXRhLmNvbT6IVgQTEQIAFgUCOcJnWgQLCgQDAxUDAgMW
AgECF4AACgkQIt6tVu6+jd3SHwCgjssFktMXf8NjE9JBR+sJ2gDIsW8An0CFNdFd
dU+DJYC6ogYP9AsVfM27uQENBDnCZ2MQBAD8E0qe1gBKjtoRmyiyORtwhOz/2XZE
mqiZN2NouAUWRRZd4dHggFAA1jUsp2MVIZZQyY9ajNVy3Oaxj5kYz8LR5GItxxcD
jC8RFXKM40ZfTJeR7fH6eJa689w+le71Tt4ALyN4xcjSWuksr8795AhHFjonDi8D
rgGIq6GtWvi/KwADBgQAmeBbcjPzhqR2M8TdvEyNfVTQSSp/RNoTjNNWpHui8V0p
kiQ49tbsqeMjXGToGgMugfmrX77JidXyuVjgYjT9xUdaaA25qKAR75M9izDliT7Y
h5L+QZTAw0/5X9go7XK3WI3LYfFrp4TP0veXgSWxDqccqsRzWKW7IoXsliTCbVqI
RgQYEQIABgUCOcJnYwAKCRAi3q1W7r6N3YIcAKCkJMTPLu6tOPnXPl2s3xmnSawy
BACeOx83WlBhVScYWo+BUzntJ6ks4T0=
=OkJU
-END PGP PUBLIC KEY BLOCK-


-- 
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] Variable Scope

2001-01-18 Thread Philip Olson

A nice explanation, via the mind of Lars Torben Wilson, exists here :

http://marc.theaimsgroup.com/?l=php-generalm=97717398101040w=2

Also, you may want to check out :

http://www.php.net/manual/en/language.constants.php
http://www.php.net/manual/en/function.define.php

Philip

On Thu, 18 Jan 2001, Karl J. Stubsjoen wrote:

 I'm a bit troubled with the fact that variables declared at the top of your
 script are not then global to functions within that script.  That in order
 to see that variable within a function you'd have to declare it as global in
 the function (understanding that the variable could have been set at the top
 of the script).  This seems extremely backwards to me (me being a VB guy).
 
 Would someone kindly shine the light down upon me with an explanation of
 this logic?  And why can't I possibly declare the variable as Global at the
 top of my script?
 
 Thats a big "H"
 
 
 -- 
 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]
 


-- 
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]




[PHP]GD, PHP and Apache troubles

2001-01-18 Thread Kees Hoekzema

Hi all,

I've some strange problems.
I compiled apache  PHP from fresh .tar.gz, as static. (and fresh GD,
libpng, jpeg-6b, zlib compilations)
PHP adn GD aren't giving any troubles at all, but the compilation of apache
gives some errors
when trying to compile the PHP4 module... here are they:

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
gcc  -DLINUX=2 -I/root/source/php-4.0.4 -I/root/source/php-4.0.4/main -I/roo
t/source/php-4.0.4/main -I/root/source/php-4.0.4/Zend -I/root/source/php-4.0
.4/Zend -I/root/source/php-4.0.4/TSRM -I/root/source/php-4.0.4/TSRM -I/root/
source/php-4.0.4 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`
\
  -o httpd buildmark.o modules.o modules/standard/libstandard.a
modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a
lib/expat-lite/libexpat.a  -rdynamic -Lmodules/php4 -L../modules/php4 -L../.
./modules/php4 -lmodphp4   -ldl -lz -lpng -lgd -lresolv -lm -ldl -lcrypt -ln
sl  -lresolv   -lm -lcrypt
/usr/local/lib/libgd.a(gd_png.o): In function `gdPngErrorHandler':
gd_png.o(.text+0x37): undefined reference to `png_get_error_ptr'
/usr/local/lib/libgd.a(gd_png.o): In function `gdPngReadData':
gd_png.o(.text+0x95): undefined reference to `png_get_io_ptr'
/usr/local/lib/libgd.a(gd_png.o): In function `gdPngWriteData':
gd_png.o(.text+0xc5): undefined reference to `png_get_io_ptr'
/usr/local/lib/libgd.a(gd_png.o): In function `gdImageCreateFromPngCtx':
gd_png.o(.text+0x155): undefined reference to `png_check_sig'
...
/usr/local/lib/libgd.a(gd_png.o): In function `gdImagePngCtx':
gd_png.o(.text+0x975): undefined reference to `png_create_write_struct'
gd_png.o(.text+0x9ab): undefined reference to `png_create_info_struct'
...
gd_png.o(.text+0xefd): undefined reference to `png_write_end'
gd_png.o(.text+0xf16): undefined reference to `png_destroy_write_struct'
collect2: ld returned 1 exit status
make[3]: *** [target_static] Error 1
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
My commands to compile:
~/source/php-4.0.4#
./configure --with-apache=/root/source/apache_1.3.14 --with-mysql=/usr/local
/mysql --with-gd=/root/source/gd-1.8.3 --with-postgres=/usr/src/postgresql-7
.0.3 --with-ftp --without-ttf --with-jpeg-dir=/root/source/jpeg-6b
~/source/php-4.0.4# cd ../apache_1.3.14 ; make ; make install
~/source/apache_1.3.14#
./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a ;
make ; make install

I have/try:
PHP 4.0.4
Apache  1.3.114
GD  1.3.8
libpng  1.0.8
zlib1.1.3
Linux   2.2.17
Original distro Slackware 7.0

Does anyone know a solution? please let me know :)

Kees Hoekzema,
[EMAIL PROTECTED]


-- 
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]GD, PHP and Apache troubles

2001-01-18 Thread Rasmus Lerdorf

 gcc  -DLINUX=2 -I/root/source/php-4.0.4 -I/root/source/php-4.0.4/main -I/roo
 t/source/php-4.0.4/main -I/root/source/php-4.0.4/Zend -I/root/source/php-4.0
 .4/Zend -I/root/source/php-4.0.4/TSRM -I/root/source/php-4.0.4/TSRM -I/root/
 source/php-4.0.4 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci`
 \
   -o httpd buildmark.o modules.o modules/standard/libstandard.a
 modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a
 lib/expat-lite/libexpat.a  -rdynamic -Lmodules/php4 -L../modules/php4 -L../.
 ./modules/php4 -lmodphp4   -ldl -lz -lpng -lgd -lresolv -lm -ldl -lcrypt -ln
 sl  -lresolv   -lm -lcrypt

Hrm.. Interesting.  -lpng should be listed after -lgd on that link line.
Find your libphp4.module file which PHP copied to your Apache tree and
edit the LIBS line and switch the order of those two.  Let me know if that
fixes it.

-Rasmus


-- 
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]




[PHP] isset inside echo?

2001-01-18 Thread Romulo Roberto Pereira

it is possible to use isset inside a echo?

like this:
$checked = "CHECKED";
$nothing = "";
echo "input type=checkbox name=cb[0] value=$value[0] 
".isset(cb[0])?$checked:$nothing."";

Rom



[PHP] find out if a number is a multiple of three

2001-01-18 Thread Brett

I am trying to find out if I can take a the quantity of a product ordered
and find out if it is a multiple of three.  Can someone point me in the
direction of some documentation or an exmaple of how this can be
accomplished.

Thanks,
Brett


-- 
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] isset inside echo?

2001-01-18 Thread Ignacio Vazquez-Abrams

On Thu, 18 Jan 2001, Romulo Roberto Pereira wrote:

 it is possible to use isset inside a echo?

 like this:
 $checked = "CHECKED";
 $nothing = "";
 echo "input type=checkbox name=cb[0] value=$value[0] 
".isset(cb[0])?$checked:$nothing."";

 Rom


isset() is a proper function, so yes.

-- 
Ignacio Vazquez-Abrams  [EMAIL PROTECTED]


-- 
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] find out if a number is a multiple of three

2001-01-18 Thread Ignacio Vazquez-Abrams

On Thu, 18 Jan 2001, Brett wrote:

 I am trying to find out if I can take a the quantity of a product ordered
 and find out if it is a multiple of three.  Can someone point me in the
 direction of some documentation or an exmaple of how this can be
 accomplished.

 Thanks,
 Brett


if (!($number%3))
  print("$number is divisible by 3!");

-- 
Ignacio Vazquez-Abrams  [EMAIL PROTECTED]


-- 
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]




[PHP] RE: Ethics question...

2001-01-18 Thread Ayan R. Kayal

Before Microsoft bought it, Hotmail had a FreeBSD/Apache frontend and a
Sun/Solaris backend. Supposedly, corporate wanted MS to move Hotmail to NT,
but supposedly it failed so miserably at serving up 10 million users that
they had to nix those plans. I think Hotmail is running FreeBSD/Apache for
the most part, but 5-10% of the servers are Win2K...
As for Linux, from what I've heard (haven't tested this out myself or
anything), FreeBSD and Sun/Solaris are quite a bit more efficient for web
servers. Linux just can't take the number of hits that the other two can.
Linux is okay for development, but personally I'd rather run the same system
on my development machines as I do for my live machines...

O- ~ARK
CFO, Hmedicine.com, Inc.
I hope it feels so good to be right. There's nothing more exhilarating than
pointing out the shortcomings of others, is there?... ~Randal from "Clerks"

 -Original Message-
 From: jeremy brand [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 18, 2001 10:22 AM
 To: CC Zona
 Subject: Re: [PHP] Ethics question...

Why would Microsoft be using Solaris, or Linux even?
 (hint, the same
reason -- their stuff works less good).

 Www.microsoft.com used to be served off of Solaris (where else could
 you run a high performance installation of Oracle? ;).  Hotmail was
 (is) FreeBSD.  Anyone would be stupid to not be using linux in their
 interprise somewhere.


-- 
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]




[PHP] using both version 3 and 4?

2001-01-18 Thread OutBox

Hello,
   I've already compiled PHP4 on my server for php scripts, but there is
one
script which seems to only use PHP 3. So what i'd like to know is if it
is
possible to both install PHP 3 and 4 on the same server and use them both
at the same time? Thanks for any help!


Sincerely,

Jero





--
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] Variable Scope

2001-01-18 Thread Philip Olson


How about allowing for metaPasses within the castle?  Am sure this topic
came up, what's the conclusion?

Philip

On Thu, 18 Jan 2001, Rasmus Lerdorf wrote:

  I'm a bit troubled with the fact that variables declared at the top of your
  script are not then global to functions within that script.  That in order
  to see that variable within a function you'd have to declare it as global in
  the function (understanding that the variable could have been set at the top
  of the script).  This seems extremely backwards to me (me being a VB guy).
 
  Would someone kindly shine the light down upon me with an explanation of
  this logic?  And why can't I possibly declare the variable as Global at the
  top of my script?
 
 Once upon a time in a cold land far far away, a brave programming team was
 building a castle.  The castle was large and complex with countless rooms
 and secret passageways.  On one frightful day the team got stuck.  They
 had built one too many rooms with one too many secret passageways and
 suddenly the castle was beginning to crumble.  A desperate plea went out
 to the local wizard who was strong and powerful.  The local wizard looked
 at the problem, saw the many rooms and the many secret passageways and
 gave the following decree:  "Thou must post a sign in each and every room
 declaring which secret passageways connect to this room."  The brave
 programming team feared the wizard and implemented the decree immediately
 although they really didn't understand how it would help.  What they found
 was that a number of secret passageways did not connect to anything and
 others connected to places that didn't make any sense.  After fixing these
 the castle was solid again.
 
 The moral of this tale is that one must declare ones' global variables
 that one intends to use within a function.  In languages like C where this
 is not required one can end up with all sorts of weird side effects when a
 function changes a variable that the programmer intended to be local to
 the function and it affects code elsewhere in the system.  This is almost
 impossible to track down.  The tale of the brave programming team led to
 this being a requirement in PHP.
 
 -Rasmus
 
 
 
 -- 
 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]
 



-- 
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] RE: Ethics question...

2001-01-18 Thread Randy Johnson

is there any benchmarks or proof that I should host a high traffic site on a
FREEBSD/APACHE instead of a redhat Linux/Apache server?

randy

-Original Message-
From: Ayan R. Kayal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 1:42 PM
To: [EMAIL PROTECTED]
Subject: [PHP] RE: Ethics question...


Before Microsoft bought it, Hotmail had a FreeBSD/Apache frontend and a
Sun/Solaris backend. Supposedly, corporate wanted MS to move Hotmail to NT,
but supposedly it failed so miserably at serving up 10 million users that
they had to nix those plans. I think Hotmail is running FreeBSD/Apache for
the most part, but 5-10% of the servers are Win2K...
As for Linux, from what I've heard (haven't tested this out myself or
anything), FreeBSD and Sun/Solaris are quite a bit more efficient for web
servers. Linux just can't take the number of hits that the other two can.
Linux is okay for development, but personally I'd rather run the same system
on my development machines as I do for my live machines...

O- ~ARK
CFO, Hmedicine.com, Inc.
I hope it feels so good to be right. There's nothing more exhilarating than
pointing out the shortcomings of others, is there?... ~Randal from "Clerks"

 -Original Message-
 From: jeremy brand [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 18, 2001 10:22 AM
 To: CC Zona
 Subject: Re: [PHP] Ethics question...

Why would Microsoft be using Solaris, or Linux even?
 (hint, the same
reason -- their stuff works less good).

 Www.microsoft.com used to be served off of Solaris (where else could
 you run a high performance installation of Oracle? ;).  Hotmail was
 (is) FreeBSD.  Anyone would be stupid to not be using linux in their
 interprise somewhere.


--
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]



-- 
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] using both version 3 and 4?

2001-01-18 Thread O.Cook

I just did this the other day. It's quite a simple task really.

Instructions are at the end of the PHP4 INSTALL file. If you want to
compile
both as Apache modules, just re`configure` both with
--enable-versioning.

Regards,

Ollie

 -Original Message-
 From: OutBox [mailto:[EMAIL PROTECTED]]
 Sent: 18 January 2001 18:18
 To: php-general
 Subject: [PHP] using both version 3 and 4?
 
 
 Hello,
I've already compiled PHP4 on my server for php scripts, 
 but there is
 one
 script which seems to only use PHP 3. So what i'd like to 
 know is if it
 is 
 possible to both install PHP 3 and 4 on the same server and 
 use them both
 at the same time? Thanks for any help!
 
 
 Sincerely,
 
 Jero
 
 
 
 
 
 -- 
 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]
 
 

--
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] RE: Ethics question...

2001-01-18 Thread Scott Gerhardt

I have come across numerous reports/tests comparing the various OS's in
terms of raw speed and scalability.  There are many conclusions but some
things seem to stick out:

1.) Linux is very well supported and sometimes easier to maintain than the
BSD's (RedHat  RPM's etc.)
2.) Linux and FreeBSD are FREE!
3.) The BSD's (Free, Net, Open, BSDI) have the some of the best networking
stacks and scale very well under heavy loads.
4.) Solaris scales very well under heavy loads and is rock solid but this
comes at a great expense (hardware and OS).
5.) Linux is fast under light to medium-heavy loads but tends to slow down
when saturated where as the BSD's and Solaris just keep on chugging.
6.) NT and 2000 are easy to deploy BUT are never as stable as any *NIX, cost
money, and you are fored to do everything the MS "closed-source" way.
7.) NT/2000 uptimes will never compare to any *NIX OS.

Everything is relative and is always changing with development you could
spend many $10,000.00's on Sun/Solaris or you can run Linux or BSD and buy
lots of inexpensive Intel/AMD/Alpha hardware.

More hardware always wins as long as you have a reasonable OS.


That's my two cents worth.


___

Scott A. Gerhardt  P.Geo.
Gerhardt Information Technologies
[EMAIL PROTECTED]
___





 Before Microsoft bought it, Hotmail had a FreeBSD/Apache frontend and a
 Sun/Solaris backend. Supposedly, corporate wanted MS to move
 Hotmail to NT,
 but supposedly it failed so miserably at serving up 10 million users that
 they had to nix those plans. I think Hotmail is running FreeBSD/Apache for
 the most part, but 5-10% of the servers are Win2K...
   As for Linux, from what I've heard (haven't tested this out
 myself or
 anything), FreeBSD and Sun/Solaris are quite a bit more efficient for web
 servers. Linux just can't take the number of hits that the other two can.
 Linux is okay for development, but personally I'd rather run the
 same system
 on my development machines as I do for my live machines...

 O- ~ARK
 CFO, Hmedicine.com, Inc.
 I hope it feels so good to be right. There's nothing more
 exhilarating than
 pointing out the shortcomings of others, is there?... ~Randal
 from "Clerks"

  -Original Message-
  From: jeremy brand [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, January 18, 2001 10:22 AM
  To: CC Zona
  Subject: Re: [PHP] Ethics question...
 
 Why would Microsoft be using Solaris, or Linux even?
  (hint, the same
 reason -- their stuff works less good).
 
  Www.microsoft.com used to be served off of Solaris (where else could
  you run a high performance installation of Oracle? ;).  Hotmail was
  (is) FreeBSD.  Anyone would be stupid to not be using linux in their
  interprise somewhere.


 --
 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]



 --
 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]




-- 
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]




  1   2   3   >