[PHP] session in php3

2001-03-07 Thread Jacky

Hi people
I got problem of how to assign session value in php3. As far as I know, all syntax in 
manual talks about php4 syntax only. How am I going to do that?
best
Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for yourself"



Re: [PHP] session_start

2001-03-07 Thread Ankur Verma

As far as I know, the session fucntions work only with php4

for php3, you might want to take a look at phplib

hope that helps

Ankur Verma


- Original Message -
From: "Jacky@lilst" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 08, 2001 2:35 AM
Subject: [PHP] session_start


People
very basic question here, I wanna assign username onto session after the
login succeed, I use:

session_start();
session_register("username");
$UserNameSession="username";

did not work what is wring with this?
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] How to completly remove a file?

2001-03-07 Thread Jan Grafström

Hi!
When I run this PHP my file idb.xml returns empty but how do I do if I
then whant to remove the  file idb.xml. I just doesnt want it empty, I
want it to disappeare.?
?
$fp = fopen("idb.xml", "w");
fclose ($fp);
?
Thanks for help.
Jan


-- 
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] exec timing out, want to leave process running in bg

2001-03-07 Thread Christian Reiniger

On Wednesday 07 March 2001 06:37, you wrote:
 Hi,

 Well there are many ways to run a process in the
 background, my favorite way is detaching the process
 or the program or process from within, so if it's a c
 program pretty easy, but incase you dont have the
 source, then you can use this:

 exec("mp3123 -y -Z --all 1/dev/null/ 21 ");

better add "nohup" to that:
exec("nohup mp3123 -y -Z --all 1/dev/null/ 21 ");

 well that simply puts the stdout and stderr in the
 same file /dev/null, and puts it into the background.

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

What luck for the rulers that men do not think.

- Adolf Hitler

--
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] session in php3

2001-03-07 Thread Maxim Derkachev


http://phplib.netuse.de

-- 
Best regards,
Maxim Derkachev mailto:[EMAIL PROTECTED]
Symbol-Plus Publishing Ltd.
phone: +7 (812) 324-53-53
http://www.Books.Ru -- All Books of Russia




-- 
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 to completly remove a file?

2001-03-07 Thread Ankur Verma

try using unlink()
http://www.php.net/manual/en/function.unlink.php

hope that helps

Ankur Verma
HCL Technologies
Noida

- Original Message -
From: "Jan Grafstrm" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 07, 2001 2:08 PM
Subject: [PHP] How to completly remove a file?


 Hi!
 When I run this PHP my file idb.xml returns empty but how do I do if I
 then whant to remove the  file idb.xml. I just doesnt want it empty, I
 want it to disappeare.?
 ?
 $fp = fopen("idb.xml", "w");
 fclose ($fp);
 ?
 Thanks for help.
 Jan


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

2001-03-07 Thread Ankur Verma

have you checked the permissions on the temp directory on your server? make
sure that the directory has appropriate permissions

for locating the temp directory in which php is uploading the files, use

?php
phpinfo();
?

amd look for upload_tmp_dir setting.

hope that helps

Ankur Verma


- Original Message -
From: "Daniel Lynn" [EMAIL PROTECTED]
To: "PHP Mailing List" [EMAIL PROTECTED]
Sent: Wednesday, March 07, 2001 9:17 AM
Subject: [PHP] Uploading files


 I seem to be having a lot of trouble uploading a file using the post
 method.

 I've read through a good amount of code and tutorials and can't seem to
 find anything wrong with my code. We're running this in the latest PHP 3
 version on two different servers (one NT and the other OpenBSD). Now, it
 works if we are using the page from the actual NT server, but not from
 any other computers on he LAN. We haven't been able to get it to work at
 all on the OpenBSD server, though we can't test it drectly from that
 computer.

 ok, here is the code I'm using for the form to upload the file:

 FORM ENCTYPE="multipart/form-data" ACTION="index.php3" METHOD=POST
 INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="100"
 input type="hidden" name="SCREEN" value="uploadimage"
 input type="hidden" name="faction" value="createimages"

 ?php

 print("input type=\"hidden\" name=\"item\" value=\"" . $item .
 "\"\n");
 print("input type=\"hidden\" name=\"department\" value=\"" .
 $department . "\"\n");

 ?

 Send this file: INPUT NAME="userfile" TYPE="file"
 INPUT TYPE="submit" VALUE="Send File"
 /FORM

 and I open the file, but get an error because there is nothing in the
 file -- code below:

 $file1 = @fopen($userfile,"r");
 if (!$file1) {
print("I'm sorry, but we cannot open the file that you have
 uploaded.");
 }

 We also checked the permissions multiple times and the server's error
 log, but nothing... so, if anyone sees anythign wrong, please let me
 know. . thanks

 -Daniel Lynn



 --
 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] Re: PHP Apache 2.0 - NOT WORKING ?

2001-03-07 Thread Benoit

Apache 2.0 seem to be now supported by PHP4.04pl1.
I tried PHP4.0.4pl1  Apache 2.0a8 (configure don't seem to work for me with
2.0a9)

But. I did not succeded to make it working !
Do someone have a tips on some compiling flags working, or other versions ?
Mine made apache to show a segmentation fault (in PHP ?), and show a message
that comes from
'create_php_config' function:
'Creating new config (0x80f0c54) for (null).'

Or is it just a config problem ? I have a php.ini in /usr/local/lib, but it
makes the same error if I remove it !


I am interesed with it because it will provide multithreading instead of
multiprocess,... which I prefer for writing PHP modules that can handle
persitent and reusable data (to keep the same connection within a HTTP
session).

(
Apache was compiled with: configure --enable-shared --enable-so
PHP was compiled with: configure --with-apxs2
)


""Benoit"" [EMAIL PROTECTED] wrote in message
97voih$och$[EMAIL PROTECTED]">news:97voih$och$[EMAIL PROTECTED]...
 Do someone know when PHP will work as apixs under Apache 2.0 ?




 --
 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] $B!ZCmL\%5%$%H$N$40FFb![(B

2001-03-07 Thread Mail-In
$B!z!z!z!z!z!z%^%$%i%$%s$N$*?=$79~$_$OEvpJsDs6!4k6H$+$i$N$40MMj$K$h$j!"(B
$B$3$N%a!<%k$rG[?.$7$F$*$j$^$9!#(B
$Bl9g$OI,$:JV?.$K$F$*4j$$CW$7$^$9!#(B

$B%a%$%k%$%s(B
[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] problem in downloading mysql

2001-03-07 Thread B Satish , Gurgaon





 hi friends
 
 can any one of you send me the url's to download mysql database since
 three
 days i have been trying to download that through www.mysql.com but
 unfortunately everytime download was incomplete.
 i need some  url's other than mysql.com where i can download mysql
 database
 i have already configured PHP4 on my windows-NT workstation.
 i'd appreciate and will be delighted if you send me the mysql zip file as
 attachment
 
 Thanks in Advance
 
 satish
 [EMAIL PROTECTED]
 
  --
  From:   Andrew Hill[SMTP:[EMAIL PROTECTED]]
  Sent:   Friday, February 16, 2001 9:30 AM
  To: Maxim Maletsky; 'Tanya Brethour'; [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Subject:Re: [PHP] Passing vars
  
  You may wish to consider why you need to pass 30 lines of code in a
  variable.
  
  If the code is static, store it in include files and then pass it in
  depending one a variable
  
  if ($variable=1)
  { include(your30linefile);
  }
   else
   { inclue(someotherfile);
   }
  
  or to use a database query, pass a select value in as the index:
  
  $sql = "select some_field from table where id_field = $variable
  
  either way, you pass the value of $variable in from a page with this
 kind
  of
  link:
  
  a href="page_name.php?variable=1"click me to submit $varible=1 to
  page_name.php/a
  
  If the 30 lines of code is html that needs to be generated on the fly,
  break
  it up into common blocks and drop them in using either method above.
  
  You can also do things like passing a hidden form field instead of using
 a
  link.
  
  
  Best regards,
  Andrew
  ---
  Andrew Hill - OpenLink Software
  Director Technology Evangelism
  eBusiness Infrastructure Technology
  http://www.openlinksw.com
  
  
  On 2/15/01 10:20 PM, "Maxim Maletsky" [EMAIL PROTECTED]
 wrote:
  
   you can use sessions ..
   
   php.net/sessions
   
   the session are cookies which will remember the user and will copy
 what
  you
   need on your system, making these 30 lines available only to him for
 the
   time you specify.
   
   Cheers,
   Maxim Maletsky
   
   -Original Message-
   From: Tanya Brethour [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, February 15, 2001 3:20 AM
   To: [EMAIL PROTECTED]
   Cc: [EMAIL PROTECTED]
   Subject: [PHP] Passing vars
   
   
   
   Quick question..
   
   If I have like 6 variables to pass to another PHP script... and some
 of
   the vars are actually multiple lines of text (lets say over 30 lines).
   What is the best way of doing this?
   
   I would like to avoid doing something like test.php?cheese=(30 lines
 of
   stuff)
   
   Thanks in advance!
   -Tanya
   
  
  
  -- 
  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] search

2001-03-07 Thread AJDIN BRANDIC

Hi,

I have a simple text file search. I do not want users to search on words 
such as 'is', 'and', 'or','the',etc. or single letters or numbers.  Has 
anyone got a 
dictionary with all of these in so I could do a search through it before 
starting the main search?

Thanks,

Ajdin 

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

2001-03-07 Thread Alain ROMERO

PHP 4.0.2 on Win32
or PHP 3 on Win32
extension=php_ldap.dll   is on in the php.ini file

I get 'Unable to load php_ldap.dll' (PHP4) when I call a php file ?
I get 'Call to an unsupported function ldap_connect()' (PHP3)  ?

Help please ?



-- 
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 dll on NT - more reliable with Apache than IIS?

2001-03-07 Thread Greig, Euan

I have been having problems using the PHP 4 ISAPI module with IIS 4 on NT4 (The most 
common problem is HTTP 500 internal server error which disappears if page is 
refreshed). This is apparently not too surprising given the current status of the 
ISAPI module. So I have switched to using CGI, which seems absolutely fine, but is 
noticeably slower.

I was wondering if it is worth trying the Apache module. Will it be more reliable? And 
are there any notable gotchas to watch out for in installing this combination?

Euan Greig
Technical Consultant
BRANN DATA
[EMAIL PROTECTED]
01285 645997





**
Any opinions expressed in this email are those of the individual and 
not necessarily the Company. This email and any files transmitted with 
it, including replies and forwarded copies (which may contain alterations) 
subsequently transmitted from the Company, are confidential and solely for 
the use of the intended recipient. If you are not the intended recipient 
or the person responsible for delivering to the intended recipient, be 
advised that you have received this email in error and that any use is 
strictly prohibited.

**

-- 
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 with ldap

2001-03-07 Thread Alain ROMERO

PHP 4.0.2 on Win32
or PHP 3 on Win32
extension=php_ldap.dll   is on in the php.ini file

I get 'Unable to load php_ldap.dll' (PHP4) when I call a php file ?
I get 'Call to an unsupported function ldap_connect()' (PHP3)  ?

Help please ?




-- 
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] file access(mpeg) only for authenticated people

2001-03-07 Thread Thorsten Gutermuth

Hi!
I'm trying to make some mpegs available only to people who authenticated
themselves using php. But all the solutions I found somewhat unpleasant
because I uses chmod to set the file attributes to u=rw and then
used either
i) readfile("ftp://name:password@server/path//test.mpeg");

or

ii) header ("Location: ftp://name:password@server/path/test.mpeg");

But in case
i) the browser asks if I want to download the file or view it. If I choose
view the browser suggests to save the movie as myscript.php and if I choose
view it ´doesn't display anything.

ii.) the browser displayes my username and password in the statusbar

And in both cases it downloads the whole file(I guess cause I use ftp)
before starting the mpeg programm(where nothing happens afterwards in case
i)

Is there a better way? ´Like telling the server via http my login data and
sending the file to the users browser?

Thanks
Thorsten





-- 
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 / NEWS php.ini-dist php.ini-optimized

2001-03-07 Thread Zeev Suraski

zeevWed Mar  7 02:08:19 2001 EDT

  Modified files:  
/php4   NEWS php.ini-dist php.ini-optimized 
  Log:
  Update .ini's and NEWS
  
  
Index: php4/NEWS
diff -u php4/NEWS:1.605 php4/NEWS:1.606
--- php4/NEWS:1.605 Tue Mar  6 18:09:17 2001
+++ php4/NEWS   Wed Mar  7 02:08:18 2001
@@ -2,6 +2,9 @@
 |||
 
 ?? ??? 200?, Version 4.0.5
+- Fixed parent::method() to also work with runtime bindings (Zeev, Zend Engine)
+- Implemented high-performance zlib-based output compression - see
+  zlib.output_compression INI directive (Zeev)
 - Ported Documentation structure from phpdoc (jmoore)
 - Improved ob_gzhandler() to support chunked output buffering - it's recommended
   to use it with 4KB chunks (Zeev)
Index: php4/php.ini-dist
diff -u php4/php.ini-dist:1.72 php4/php.ini-dist:1.73
--- php4/php.ini-dist:1.72  Sat Mar  3 05:10:13 2001
+++ php4/php.ini-dist   Wed Mar  7 02:08:19 2001
@@ -1,5 +1,5 @@
 [PHP]
-; $Id: php.ini-dist,v 1.72 2001/03/03 13:10:13 sbergmann Exp $
+; $Id: php.ini-dist,v 1.73 2001/03/07 10:08:19 zeev Exp $
 
 ;;;
 ; About this file ;
@@ -81,6 +81,11 @@
 ; transparently compressed for browsers that support gzip or deflate encoding.
 ; Setting an output handler automatically turns on output buffering.
 output_handler =
+
+; Transparent output compression using the zlib library
+; Valid values for this option are 'off', 'on', or a specific buffer size
+; to be used for compression (default is 4KB)
+zlib.output_compression = Off
 
 ; Implicit flush tells PHP to tell the output layer to flush itself
 ; automatically after every output block.  This is equivalent to calling the
Index: php4/php.ini-optimized
diff -u php4/php.ini-optimized:1.32 php4/php.ini-optimized:1.33
--- php4/php.ini-optimized:1.32 Mon Jan 22 11:15:31 2001
+++ php4/php.ini-optimized  Wed Mar  7 02:08:19 2001
@@ -57,6 +57,10 @@
; will be transparently 
compressed for browsers that support gzip or
; deflate encoding.  Setting 
an output handler automatically turns on
; output buffering.
+zlib.output_compression = Off  ; Transparent output compression using the zlib library
+   ; Valid values for 
+this option are 'off', 'on', or a specific buffer size
+   ; to be used for 
+compression (default is 4KB)
+
 implicit_flush = Off   ; Implicit flush tells PHP to tell the output layer to 
flush itself
; automatically after every 
output block.  This is equivalent to
; calling the PHP function 
flush() after each and every call to print()



-- 
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] file access(mpeg) only for authenticated people

2001-03-07 Thread Mukul Sabharwal

Hey,

Well sure there is:

$fp = fopen($filename, 'r') or die('damn');
$read = fread($fp, filesize($filename)) or
die('damn');
$filestr = basename($filename);

header("Content-Disposition: attachment;
filename=$filestr");
header("Content-Type: application/octet-stream");

echo $read;
exit;

Neat And Clean!

Your authentication can be done above that piece of
code, you then open the file, read it through send the
filename download as $filestr, and the contents 
$read.

Simple!


--- Thorsten Gutermuth [EMAIL PROTECTED]
wrote:  Hi!
 I'm trying to make some mpegs available only to
 people who authenticated
 themselves using php. But all the solutions I found
 somewhat unpleasant
 because I uses chmod to set the file attributes to
 u=rw and then
 used either
 i)

readfile("ftp://name:password@server/path//test.mpeg");
 
 or
 
 ii) header ("Location:
 ftp://name:password@server/path/test.mpeg");
 
 But in case
 i) the browser asks if I want to download the file
 or view it. If I choose
 view the browser suggests to save the movie as
 myscript.php and if I choose
 view it doesn't display anything.
 
 ii.) the browser displayes my username and password
 in the statusbar
 
 And in both cases it downloads the whole file(I
 guess cause I use ftp)
 before starting the mpeg programm(where nothing
 happens afterwards in case
 i)
 
 Is there a better way? Like telling the server via
 http my login data and
 sending the file to the users browser?
 
 Thanks
 Thorsten
 
 
 
 
 
 -- 
 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]
 


=
To find out more about me : http://www.geocities.com/mimodit
My bookmarks are available @ http://mukul.free.fr

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.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 Digest 7 Mar 2001 10:21:47 -0000 Issue 552

2001-03-07 Thread php-general-digest-help


php-general Digest 7 Mar 2001 10:21:47 - Issue 552

Topics (messages 42815 through 42886):

Problem with either timing or large data structures...
42815 by: Eric Nielsen

Re: Please Help - Really BASIC stuff!
42816 by: Jon Snell

Problem using readfile
42817 by: Matias Pelenur

passing variables
42818 by: george
42820 by: Hoover, Josh

e-commerce software
42819 by: Justin French
42822 by: rui.websolut.net

Please Help
42821 by: Jeff Pearson

Q: php4,cache,performance,mod_perl,zend cache, APC
42823 by: Joe Rice

adding support to previous build with apxs
42824 by: Brett

2 questions about performance...
42825 by: Joe Sheble \(Wizaerd\)
42833 by: Chris Lee

passing a variable
42826 by: george
42827 by: Rick St Jean

Re: Oppinion on get_meta_tags
42828 by: Sean R. Bright

are sessions single threaded?
42829 by: Bill Rausch
42830 by: Ernest E Vogelsinger

Still an Almost working Regex
42831 by: Murray Shields
42851 by: CC Zona

MIME and headers
42832 by: Peter Houchin
42834 by: David Robley

more imap problems, spec speed
42835 by: Chris Lee

File Upload
42836 by: Cedric Veilleux

Test if File Exist, if not, use default file name
42837 by: Andrew V. Romero
42838 by: Alan Ward

Templates - Perl to PHP
42839 by: Marco Aurélio
42840 by: Michael Kimsal

How to sort a 2D array?
42841 by: Zenith

Creating a gif thumbnail, without the libgd1.6 or earlier version!
42842 by: Zenith
42843 by: Philip Murray

obtain IP from other site ( or domain name)
42844 by: Jacky.lilst
42845 by: Nuno Silva
42846 by: Philip Olson
42848 by: Jason Murray

Uploading files
42847 by: Daniel Lynn
42876 by: Ankur Verma

MySQL help URGENT
42849 by: Deependra B. Tandukar
42853 by: David Robley

Re: members page
42850 by: Scott Brown

Re: removing and item out of a string
42852 by: CC Zona

Next month
42854 by: Tyler Longren
42856 by: Jason Brooke

Value of if(isset(X)) problem
42855 by: Martin Skjöldebrand

Re: exec timing out, want to leave process running in bg
42857 by: Mukul Sabharwal
42873 by: Christian Reiniger

Re: Session not destroying properly
42858 by: Mike Yuen
42859 by: Andrew Halliday
42860 by: Robert Cooper

How to get oid after table insert? [postgresql]
42861 by: Allen Unrau

Installation on RH6.2: help!
42862 by: Les Neste
42863 by: David Robley

session_start
42864 by: Jacky.lilst
42866 by: Nick Norton
42867 by: Matthieu Le Corre
42868 by: Matthieu Le Corre
42871 by: Ankur Verma

session continue
42865 by: Jacky.lilst
42869 by: Matthieu Le Corre

session in php3
42870 by: Jacky.lilst
42874 by: Maxim Derkachev

How to completly remove a file?
42872 by: Jan Grafström
42875 by: Ankur Verma

Re: PHP  Apache 2.0 - NOT WORKING ?
42877 by: Benoit

$B!ZCmL\%5%$%H$N$40FFb![(B
42878 by: Mail-In

problem in downloading mysql
42879 by: B Satish , Gurgaon

Re: ezmlm response
42880 by: B Satish , Gurgaon

search
42881 by: AJDIN BRANDIC

ldap
42882 by: Alain ROMERO

PHP dll on NT - more reliable with Apache than IIS?
42883 by: Greig, Euan

Error with ldap
42884 by: Alain ROMERO

file access(mpeg) only for authenticated people
42885 by: Thorsten Gutermuth
42886 by: Mukul Sabharwal

Administrivia:

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

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

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


--



I'm not exactly sure what is causing the behavior, but I suspect its either
a timing or memory issue.  My development machine is stronger than the
server the code is being deployed on which is what leads to me to suspect
one of the above problems.

I have a function that creates a very large html table from several sql
calls.  It returns the table as a string to the calling page, which then
displays it.  This table currently has a max size of about 45Kb with larger
html tables possible.  On my production machine everything went fine.  On
the server the table ends early.  But the loops runs to the end, apparently
it stops concatenating at some point.

To get around this I tried splitting the single string into an array of
strings with each cell in the array holding one row of the table, with two
additional rows holding the table/heading tags and close table tags.  Once
again everything works on the development machine.  On the server however,
in two locations the table rows are corrupted.  In one case it ends 

[PHP] Is it bug?

2001-03-07 Thread Piotr Duszynski

I have smth like that in my code:
$wyjscie.="blankietparttwo{}{$imie $nazwisko $ulica $kodpocztowy $miejscowosc}";

And I get error:

Parse error: parse error, expecting `'}'' in zamowienia.inc on line 609

What's wrong? 

-- 

Piotr Duszynski

http://www.softomat.com.pl
http://filmomat.3miasto.pl 
http://www.3miasto.pl

-- 
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] Q: php4,cache,performance,mod_perl,zend cache, APC

2001-03-07 Thread Zeev Suraski

PHP 4.0 is extremely fast as it is, and is running at equivalent speed to 
mod_perl (your mileage may vary, but many people say it's faster, and I'm 
sure there are people for whom it's slower).  However, it doesn't do 
post-compilation caching (and as a matter of fact, neither does mod_perl, 
other than a very specific and not all too usable mechanism of read-only, 
static shared compiled scripts).

There's no doubt that you can deploy your web site without purchasing the 
Zend Cache, and on the other hand, there's no doubt that deploying it with 
the Zend Cache will result in much better performance (the Zend Cache is 
actually a bit of a misleading name, because it does all sorts of things 
other than just post-compilation caching).  In most cases (almost all cases 
I've seen to date) - using the Zend Cache is the most cost effective 
alternative, compared to alternative solutions (i.e. hardware).  It's 
really a question of what kind of performance you require, and whether PHP 
4.0 as it comes out of the box is quick enough for you.

Zeev

At 01:07 7/3/2001, Joe Rice wrote:

Hi,
   As you might gather from the subject, i'm trying to
make a decision.  Before that i'm doing research
to find out what best fits.  My question is;

 From what i've read php4 does post-compilation caching,
is this right?  If so, what is the point of Zend Cache or
APC (Alternative PHP Cache)?  I know from experience that
mod_perl does copy and run from a compiled version of the
script into memory.  From the description of Zend Cache and
APC they sound like the equivalent for php4.  I guess what i'm
getting at is is php4 as fast as mod_perl or do i need something
like zend cache?  also, is there anywhere with stated benchmarks
that i can see to compare?


Thanks,
joe



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

--
Zeev Suraski [EMAIL PROTECTED]
CTO   co-founder, Zend Technologies Ltd. http://www.zend.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-CVS] cvs: php4 /sapi/isapi php4isapi.c

2001-03-07 Thread Ben Mansell

joostersWed Mar  7 02:28:00 2001 EDT

  Modified files:  
/php4/sapi/isapiphp4isapi.c 
  Log:
  Added support for Zeus SSL client certificate information.
  Added SERVER_SIGNATURE to the environment.
  
  Submitted by: [EMAIL PROTECTED]
  
  
Index: php4/sapi/isapi/php4isapi.c
diff -u php4/sapi/isapi/php4isapi.c:1.69 php4/sapi/isapi/php4isapi.c:1.70
--- php4/sapi/isapi/php4isapi.c:1.69Tue Mar  6 07:09:15 2001
+++ php4/sapi/isapi/php4isapi.c Wed Mar  7 02:28:00 2001
@@ -120,6 +120,22 @@
"HTTPS_SERVER_ISSUER",
"HTTPS_SERVER_SUBJECT",
"SERVER_PORT_SECURE",
+#ifdef WITH_ZEUS
+   "SSL_CLIENT_CN",
+   "SSL_CLIENT_EMAIL",
+   "SSL_CLIENT_OU",
+   "SSL_CLIENT_O",
+   "SSL_CLIENT_L",
+   "SSL_CLIENT_ST",
+   "SSL_CLIENT_C",
+   "SSL_CLIENT_I_CN",
+   "SSL_CLIENT_I_EMAIL",
+   "SSL_CLIENT_I_OU",
+   "SSL_CLIENT_I_O",
+   "SSL_CLIENT_I_L",
+   "SSL_CLIENT_I_ST",
+   "SSL_CLIENT_I_C",   
+#endif
NULL
 };
 
@@ -341,6 +357,40 @@
 
 
 #ifdef WITH_ZEUS
+
+static void sapi_isapi_register_zeus_ssl_variables(LPEXTENSION_CONTROL_BLOCK lpECB, 
+zval *track_vars_array ELS_DC PLS_DC)
+{
+   char static_variable_buf[ISAPI_SERVER_VAR_BUF_SIZE];
+   DWORD variable_len = ISAPI_SERVER_VAR_BUF_SIZE;
+   char static_cons_buf[ISAPI_SERVER_VAR_BUF_SIZE];
+   /*
+* We need to construct the /C=.../ST=...
+* DN's for SSL_CLIENT_DN and SSL_CLIENT_I_DN
+*/
+   strcpy( static_cons_buf, "/C=" );
+   if( lpECB-GetServerVariable( lpECB-ConnID, "SSL_CLIENT_C", 
+static_variable_buf, variable_len )  static_variable_buf[0] ) {
+   strcat( static_cons_buf, static_variable_buf );
+   }
+   strcat( static_cons_buf, "/ST=" );
+   variable_len = ISAPI_SERVER_VAR_BUF_SIZE;
+   if( lpECB-GetServerVariable( lpECB-ConnID, "SSL_CLIENT_ST", 
+static_variable_buf, variable_len )  static_variable_buf[0] ) {
+   strcat( static_cons_buf, static_variable_buf );
+   }
+   php_register_variable( "SSL_CLIENT_DN", static_cons_buf, track_vars_array 
+ELS_CC PLS_CC );
+   
+   strcpy( static_cons_buf, "/C=" );
+   variable_len = ISAPI_SERVER_VAR_BUF_SIZE;
+   if( lpECB-GetServerVariable( lpECB-ConnID, "SSL_CLIENT_I_C", 
+static_variable_buf, variable_len )  static_variable_buf[0] ) {
+   strcat( static_cons_buf, static_variable_buf );
+   }
+   strcat( static_cons_buf, "/ST=" );
+   variable_len = ISAPI_SERVER_VAR_BUF_SIZE;
+   if( lpECB-GetServerVariable( lpECB-ConnID, "SSL_CLIENT_I_ST", 
+static_variable_buf, variable_len )  static_variable_buf[0] ) {
+   strcat( static_cons_buf, static_variable_buf );
+   }
+   php_register_variable( "SSL_CLIENT_I_DN", static_cons_buf, track_vars_array 
+ELS_CC PLS_CC );
+}
+
 static void sapi_isapi_register_zeus_variables(LPEXTENSION_CONTROL_BLOCK lpECB, zval 
*track_vars_array ELS_DC PLS_DC)
 {
char static_variable_buf[ISAPI_SERVER_VAR_BUF_SIZE];
@@ -396,6 +446,17 @@
variable_len = ISAPI_SERVER_VAR_BUF_SIZE;
if ( lpECB-GetServerVariable(lpECB-ConnID, "AUTH_TYPE", static_variable_buf, 
variable_len)  static_variable_buf[0] )  {
php_register_variable( "PHP_AUTH_TYPE", static_variable_buf, 
track_vars_array ELS_CC PLS_CC );
+   }
+   
+   /* And now, for the SSL variables (if applicable) */
+   variable_len = ISAPI_SERVER_VAR_BUF_SIZE;
+   if ( lpECB-GetServerVariable(lpECB-ConnID, "CERT_COOKIE", 
+static_variable_buf, variable_len)  static_variable_buf[0] ) {
+   sapi_isapi_register_zeus_ssl_variables( lpECB, track_vars_array ELS_CC 
+PLS_CC );
+   }
+   /* Copy some of the variables we need to meet Apache specs */
+   variable_len = ISAPI_SERVER_VAR_BUF_SIZE;
+   if ( lpECB-GetServerVariable(lpECB-ConnID, "SERVER_SOFTWARE", 
+static_variable_buf, variable_len)  static_variable_buf[0] )  {
+   php_register_variable( "SERVER_SIGNATURE", static_variable_buf, 
+track_vars_array ELS_CC PLS_CC );
}
 }
 #endif



-- 
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] include() require()

2001-03-07 Thread Derek Sivers


Which is the main difference between include() and
require() functions?


"include" is optional
you can put it inside an "IF"
like this:

if (0)
   {
   /* THIS WILL NOT SHOW... */
   include "optional_file.php";
   }


but "require" happens every time,
even if it is inside an "IF" that does not happen.

if (0)
   {
   /* THIS WILL SHOW ANYWAY... */
   require "optional_file.php";
   }


Me personally,
I use "require" to include functions, libraries, classes that I NEED to run 
the page.
Then I use "include" for optional things, based on "if".


?
require "functions.inc";

if ($sunny_day)
   {
   include "sunny_day_message.txt";
   }

?


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

2001-03-07 Thread Fates

My problem is the images are displayed all at once instead of one at a
time.  So I get 10 images all on one page. How do I make it display one
image at a time like a slideshow instead of all images on one web page?
.   The problem seems to be within my loop.  I am using latest php4
version.

// sloppy programming ahead
// Begin Random Function
// Anyone know of a better way to randomize?

function random($max = 1) {
  static $startseed = 0;
  if (!$startseed) {
$startseed = hexdec(uniqid(''))%getrandmax();
srand($startseed);
  }
  return ((rand()/getrandmax())*$max);
} //end function

if ($result) {

/* Print these results to the screen in a nice format */
$i = 0;
$number = 3;

IF ($number == 0) :
PRINT "CENTERPThere were no records matching your
query/CENTER";
PRINT "$abc";
ELSEIF ($number  0) :
//PRINT "CENTERPSearch Results Returned:
$number/CENTERBRBR";

WHILE ($i  $number):

// Assign variables within lloop
$bar =$numguest[0];
$foo = random($bar);   // call random function to get a new random pic

$record = mysql_result($result,$foo,"ID");
$cat = mysql_result($result,$foo,"category");
$name = mysql_result($result,$foo,"picture_name");
$rating = mysql_result($result,$foo,"rating");

// $name = mysql_result($result,$i,"name");
?

TR  bgcolor="#00" THsmallName:? echo "$name"; ? Record: ?
echo "$record"; ? Category: ? echo "$cat"; ? Rating: ? ec
ho "$rating"; ?Total Records: ? echo $numguest[0]; ?
/small/TH/TR

!-- TRTD ? // echo "img src=/graphics/uploads/$name width=$width
height=$heightbr\n"; ? /TD/TR --

TR  bgcolor="#00" THRandom Number: ? echo "$foo"; ? Record: ?
echo "$record"; ? Height= ? echo "$height"; ? Width= ?
echo "$width"; ?/TH/TR

/TR

?
$i++;
ENDWHILE;
//PRINT "/CENTER";
ENDIF;

}
?

/TABLE
!-- End database --


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

2001-03-07 Thread Don Read


On 07-Mar-01 Fates wrote:
 My problem is the images are displayed all at once instead of one at a
 time.  So I get 10 images all on one page. How do I make it display one
 image at a time like a slideshow instead of all images on one web page?
 .   The problem seems to be within my loop.  I am using latest php4
 version.

snip

You are confused on how HTTP works.

http://www.acts.eku.edu/web/FASTWEB/HTMLOUCH.HTM
(scroll down a couple of paragraphs)


Regards,
-- 
Don Read [EMAIL PROTECTED]
-- If you are going to sin, sin against God, not the bureaucracy. 
  God will forgive you but the bureaucrats won't. 

-- 
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] converting comma-ed numbers

2001-03-07 Thread Dreamvale

Hi,

Anyone got any functions that converts string with comma separated thousands
(eg 8,982) to integer/float?

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] dates from db

2001-03-07 Thread Matt Davis

I am calling on a number of fields from my db one of which is a date. When
the date displays it is in the following format

-MM-DD 00:00:00

I Want it to only display the date and not the time like this

-MM-DD

Is it possible to remove the time when calling on it from the db

can anyone help?

Thanks

Matt.


-- 
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] dates from db

2001-03-07 Thread Jon Haworth

If it's stored as a unix timestamp you can format it any way you like.
[www.php.net/date]

If it's stored as a string in the -MM-DD hh:mm:ss format, you can use
substr(0,10) [www.php.net/substr] to get the first 10 characters and only
display those.

HTH
Jon


-Original Message-
From: Matt Davis [mailto:[EMAIL PROTECTED]]
Sent: 07 March 2001 13:35
To: Php Mailing List
Subject: [PHP] dates from db


I am calling on a number of fields from my db one of which is a date. When
the date displays it is in the following format

-MM-DD 00:00:00

I Want it to only display the date and not the time like this

-MM-DD

Is it possible to remove the time when calling on it from the db

can anyone help?

Thanks

Matt.


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



**
'The information included in this Email is of a confidential nature and is 
intended only for the addressee. If you are not the intended addressee, 
any disclosure, copying or distribution by you is prohibited and may be 
unlawful. Disclosure to any party other than the addressee, whether 
inadvertent or otherwise is not intended to waive privilege or
confidentiality'

**

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

2001-03-07 Thread Ernest E Vogelsinger

At 22:05 07.03.2001, Jacky@lilst said:
[snip]
People
very basic question here, I wanna assign username onto session after the 
login succeed, I use:

session_start();
session_register("username");
$UserNameSession="username";
[snip] 

session_start();
session_register($UserNameSession);
if (!isset($UserNameSession))
$UserNameSession="username";

[snip] 
I got problem of how to assign session value in php3. As far as I know, all
syntax in manual talks about php4 syntax only. How am I going to do that?
[snip] 

do nothing, PHP will assign the value for you.


 ...ebird

   O Ernest E. Vogelsinger
   (\)http://www.1-at-web.at/
^ ICQ#   13394035


-- 
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] dates from db

2001-03-07 Thread Mark Roedel

 -Original Message-
 From: Matt Davis [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 07, 2001 7:35 AM
 To: Php Mailing List
 Subject: [PHP] dates from db
 
 
 I am calling on a number of fields from my db one of which is 
 a date. When the date displays it is in the following format
 
 -MM-DD 00:00:00
 
 I Want it to only display the date and not the time like this
 
 -MM-DD
 
 Is it possible to remove the time when calling on it from the db

Check the documentation for the database engine you're using.

MySQL, for example, has a date_format() function that you can use in
your query to specify what information you'd like displayed from a
date/time field, and how you'd like it presented.


---
Mark Roedel ([EMAIL PROTECTED])  ||  "There cannot be a crisis next week.
Systems Programmer / WebMaster  ||   My schedule is already full."
 LeTourneau University  ||-- Henry Kissinger


--
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] Error with ldap

2001-03-07 Thread Alain ROMERO

I copy 'msvcrtd.dll' in winnt\system32 and php3 works fine, but not php4

HELP !

Alain ROMERO a crit :

 PHP 4.0.2 on Win32
 or PHP 3 on Win32
 extension=php_ldap.dll   is on in the php.ini file

 I get 'Unable to load php_ldap.dll' (PHP4) when I call a php file ?
 I get 'Call to an unsupported function ldap_connect()' (PHP3)  ?

 Help please ?

 --
 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 dll on NT - more reliable with Apache than IIS?

2001-03-07 Thread Lance Koh

did you copy this file "php4ts.dll" into your winnt/system32 folder?

i believe you need that in order for the isapi to work

--lance

- Original Message -
From: "Greig, Euan" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 07, 2001 5:44 PM
Subject: [PHP] PHP dll on NT - more reliable with Apache than IIS?


I have been having problems using the PHP 4 ISAPI module with IIS 4 on NT4
(The most common problem is HTTP 500 internal server error which disappears
if page is refreshed). This is apparently not too surprising given the
current status of the ISAPI module. So I have switched to using CGI, which
seems absolutely fine, but is noticeably slower.

I was wondering if it is worth trying the Apache module. Will it be more
reliable? And are there any notable gotchas to watch out for in installing
this combination?

Euan Greig
Technical Consultant
BRANN DATA
[EMAIL PROTECTED]
01285 645997





**
Any opinions expressed in this email are those of the individual and
not necessarily the Company. This email and any files transmitted with
it, including replies and forwarded copies (which may contain alterations)
subsequently transmitted from the Company, are confidential and solely for
the use of the intended recipient. If you are not the intended recipient
or the person responsible for delivering to the intended recipient, be
advised that you have received this email in error and that any use is
strictly prohibited.

**

--
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 /sapi/cgi cgi_main.c

2001-03-07 Thread Jani Taskinen

sniper  Wed Mar  7 05:24:12 2001 EDT

  Modified files:  
/php4/sapi/cgi  cgi_main.c 
  Log:
  Fixed the help for other options too.
  
  
Index: php4/sapi/cgi/cgi_main.c
diff -u php4/sapi/cgi/cgi_main.c:1.98 php4/sapi/cgi/cgi_main.c:1.99
--- php4/sapi/cgi/cgi_main.c:1.98   Mon Mar  5 07:08:36 2001
+++ php4/sapi/cgi/cgi_main.cWed Mar  7 05:24:12 2001
@@ -246,13 +246,13 @@
"  -s Display colour syntax highlighted 
source.\n"
"  -f file  Parse file.  Implies `-q'\n"
"  -v Version number\n"
-   "  -cpath   Look for php.ini file in this 
directory\n"
+   "  -c path  Look for php.ini file in this 
+directory\n"
 #if SUPPORT_INTERACTIVE
"  -a Run interactively\n"
 #endif
"  -d foo[=bar]   Define INI entry foo with value 
'bar'\n"
"  -e Generate extended information for 
debugger/profiler\n"
-   "  -zfile   Load Zend extension file.\n"
+   "  -z file  Load Zend extension file.\n"
"  -l Syntax check only (lint)\n"
"  -m Show compiled in modules\n"
"  -i PHP information\n"



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

2001-03-07 Thread Emmerson Rafael Miranda Ramirez

i want unsuscribe me please



RE: [PHP] dates from db

2001-03-07 Thread Eric Naujock

My own solution to this is a bit more complex but it seems to work with both of the 
databases I work with. MySQL and Postgress.

for example I would use 'select *,unix_timestamp(cr_date) as my_cr_date from table 
where ref_index=2345;'

Then when I go to output it I can use the unix date command such as 

'$string=date("l dS of F Y h:i:s A",db-f(my_cr_date));

My reference to db-f(my_cr_date) is my phplib methof of reading the data. You may use 
your own method. Doing it this way you can get your own method of displaying dates or 
times in almost any way you want. And you don;t have to count on your database 
supporting it.

 "Mark Roedel" [EMAIL PROTECTED] 03/07/01 09:08AM 
 -Original Message-
 From: Matt Davis [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, March 07, 2001 7:35 AM
 To: Php Mailing List
 Subject: [PHP] dates from db
 
 
 I am calling on a number of fields from my db one of which is 
 a date. When the date displays it is in the following format
 
 -MM-DD 00:00:00
 
 I Want it to only display the date and not the time like this

 -MM-DD
 
 Is it possible to remove the time when calling on it from the db

Check the documentation for the database engine you're using.

MySQL, for example, has a date_format() function that you can use in
your query to specify what information you'd like displayed from a
date/time field, and how you'd like it presented.


---
Mark Roedel ([EMAIL PROTECTED])  ||  "There cannot be a crisis next week.
Systems Programmer / WebMaster  ||   My schedule is already full."
 LeTourneau University  ||-- Henry Kissinger


--
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] RE: Value of if(isset(X)) problem

2001-03-07 Thread Tim Ward

I think you'll find that cmdFinish is only passed through if the form is
submitted by pressing the button. Hitting return on any other field will
submit the form without sending cmdFinish. It might be sfare to check if one
of your text fields is set.

Tim Ward
Senior Systems Engineer

Please refer to the following disclaimer in respect of this message:
http://www.stivesdirect.com/e-mail-disclaimer.html


 -Original Message-
 From: Martin Skjöldebrand [mailto:[EMAIL PROTECTED]]
 Sent: 07 March 2001 05:34
 To: [EMAIL PROTECTED]
 Subject: Value of if(isset(X)) problem
 
 
 Sorry bout the length  I'm a newbie to PHP/MySQL so bare 
 with me ...
 Here's a snippet of an app I'm hacking. I have a form that 
 should update a 
 client form. the cl_ are taken from a database table and 
 works nicely. 
 The point of this that they should possibly be replaced by 
 txtXXX and put 
 back in the table.
 
 As far as I can tell this _should_ work but it doesn't. I 
 suspect that 
 cmdFinish is never set if (isset($cmdFinish)) isn't true 
 
 Any suggestions?
 
 8 - code --8
 
 tr
   td width="50%" valign=center align=rightComputer ID: 
   /td
   td width="50%"
 input type=text name="txtCompID" size=10 value = "?echo
 $cl_compID?"
   /td
 /tr
 tr
   td width="50%" valign=center align=right
 font size=3Email:/font
   /td
   td width="50%"
 input type=text name="txtEmail" size=20 value = "?echo
 $cl_email?"
   /td
 /tr
   /table
 p align=center
   center
   input type="submit" value="Modify client" name="cmdFinish"
   /td
   /center
   /tr
 /table
 /center
 /div
 /form
 
 ?php//OK we can commit our changes ...
   if (isset($cmdFinish)) {
  $query = "UPDATE client SET ";
   $query .= "cl_login ='$txtLogin', ";
   $query .= "cl_firstname ='$txtFirstname', ";
   $query .= "cl_secondname ='$txtSecondname', ";
   $query .= "cl_phone = '$txtPhone', ";
   $query .= "cl_type = '$txtType', ";
   $query .= "cl_dept = '$txtDept', ";
   $query .= "cl_compID = '$txtCompID', ";
   $query .= "cl_email = '$txtEmail' ";
   $query .= "WHERE cl_login = '$lstModifyClient';"; 
   $mysql_result = mysql_query($query, $mysql_link);
 print "CENTERBRBR\n";
 print "$txtLogin has been successfully modified!BRBR/CENTER\n";
 exit;
  }
 
 ?
 
 ?  }
   else {
 print "CENTERBRBRBThe Client: /B$lstModifyClient has ";
 print "bnot/b been modifiedBR/CENTER\n";  
   }
 }
 
 ?
 

--
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 / NEWS

2001-03-07 Thread Andrei Zmievski

andrei  Wed Mar  7 06:00:53 2001 EDT

  Modified files:  
/php4   NEWS 
  Log:
  That came from php-gtk.
  
  
Index: php4/NEWS
diff -u php4/NEWS:1.606 php4/NEWS:1.607
--- php4/NEWS:1.606 Wed Mar  7 02:08:18 2001
+++ php4/NEWS   Wed Mar  7 06:00:52 2001
@@ -5,7 +5,6 @@
 - Fixed parent::method() to also work with runtime bindings (Zeev, Zend Engine)
 - Implemented high-performance zlib-based output compression - see
   zlib.output_compression INI directive (Zeev)
-- Ported Documentation structure from phpdoc (jmoore)
 - Improved ob_gzhandler() to support chunked output buffering - it's recommended
   to use it with 4KB chunks (Zeev)
 - Fixed chunked output buffering (Zeev)



-- 
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] Is it bug?

2001-03-07 Thread Chris Lee

its not a bug, the proper syntax for {} is this.

echo "hello {$names[1234]} how are you ?";

change your code to this.

$wyjscie.="blankietparttwo\{}\{$imie $nazwisko $ulica $kodpocztowy $miejscowosc}";
or
$wyjscie.= 'blankietparttwo{}{'. "$imie $nazwisko $ulica $kodpocztowy $miejscowosc}";

'' vs "" is a big difference, single quotes do not parse the data in between them, 
therfore it is ok to use '' with {}


-- 

 Chris Lee
 Mediawaveonline.com

 ph. 250.377.1095
 ph. 250.376.2690
 fx. 250.554.1120

 [EMAIL PROTECTED]



"Piotr Duszynski" [EMAIL PROTECTED] wrote in message 
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have smth like that in my code:
$wyjscie.="blankietparttwo{}{$imie $nazwisko $ulica $kodpocztowy $miejscowosc}";

And I get error:

Parse error: parse error, expecting `'}'' in zamowienia.inc on line 609

What's wrong? 

-- 

Piotr Duszynski

http://www.softomat.com.pl
http://filmomat.3miasto.pl 
http://www.3miasto.pl

-- 
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] include() require()

2001-03-07 Thread Zeev Suraski

At 13:41 7/3/2001, Derek Sivers wrote:

Which is the main difference between include() and
require() functions?


"include" is optional
you can put it inside an "IF"
like this:

if (0)
   {
   /* THIS WILL NOT SHOW... */
   include "optional_file.php";
   }


but "require" happens every time,
even if it is inside an "IF" that does not happen.

if (0)
   {
   /* THIS WILL SHOW ANYWAY... */
   require "optional_file.php";
   }


That's actually no longer true, in more recent versions of PHP (it used to 
be true).  The only difference between include() and require() is that 
require() will bail out if it fails, whereas include() would not.

Zeev


-- 
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] file access(mpeg) only for authenticated people

2001-03-07 Thread Thorsten Gutermuth

hi!
I'm having some trouble with this. If i use an ftp address out of some
reason I'm unable to read the file(although I get a handle).(ftp server
supports passive mode)
And if I use http(without authorisation) the browser still asks if I want to
save it.(even if I use video/mpeg as Content-Type) and still displays the
name of my php script instead of the mpeg when asking what I want to do. If
I choose save it then displays the right filename.

Thanks
Thorsten


Mukul Sabharwal [EMAIL PROTECTED] schrieb in im Newsbeitrag:
[EMAIL PROTECTED]
 Hey,

 Well sure there is:

 $fp = fopen($filename, 'r') or die('damn');
 $read = fread($fp, filesize($filename)) or
 die('damn');
 $filestr = basename($filename);

 header("Content-Disposition: attachment;
 filename=$filestr");
 header("Content-Type: application/octet-stream");

 echo $read;
 exit;

 Neat And Clean!

 Your authentication can be done above that piece of
 code, you then open the file, read it through send the
 filename download as $filestr, and the contents
 $read.

 Simple!




-- 
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 to sort a 2D array?

2001-03-07 Thread Chris Lee

this will work

?php

 $array[0]['name']  = 'Chris';
 $array[0]['phone'] = '3771095';
 $array[0]['year']  = '1978';
 $array[0]['addres'] = 'Kamloops, BC';

 $array[1]['name']  = 'Breanne';
 $array[1]['phone'] = '3766350';
 $array[1]['year']  = '1977';
 $array[1]['addres'] = 'Kamloops, BC';

 $array[2]['name']  = 'Dusty';
 $array[2]['phone'] = '5541120';
 $array[2]['year']  = '1982';
 $array[2]['addres'] = 'Kamloops, BC';

// sort by ?
 foreach ($array as $pos = $val)
  $tmp_array[$pos] = $val['year'];
 asort($tmp_array);

// display however you want
 foreach ($tmp_array as $pos = $val)
  echo $array[$pos]['name'] ."br\n";

?


-- 

 Chris Lee
 Mediawaveonline.com

 ph. 250.377.1095
 ph. 250.376.2690
 fx. 250.554.1120

 [EMAIL PROTECTED]

""Zenith"" [EMAIL PROTECTED] wrote in message 
9844ps$qi2$[EMAIL PROTECTED]">news:9844ps$qi2$[EMAIL PROTECTED]...
IF:
$2D[] = array ( 'name'="Jacky", 'year'="2001", 'tel'="982736",
'gender'="Male" );
$2D[] = array ( 'name'="Jessica", 'year'="1999", 'tel'="349291",
'gender'="Felmale" );

How can I sort the array by 'name' or 'year', or other key efficiently?



-- 
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 to get oid after table insert? [postgresql]

2001-03-07 Thread Joe Conway

 I am working on a site using PHP (obviously) and PostgreSQL. I am 
 currently using the oid as a key on a table. I would like to return the 
 user to the same record after INSERTing it, but I cannot figure out how 
 to get the oid of the record after doing an INSERT. Ideally, I would 
 like something like:
 
 So, how do I insert a new record into the database, and get the oid of 
 the record I just inserted?
 

See http://www.php.net/manual/en/function.pg-getlastoid.php

Hope this helps,

Joe



-- 
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] Session not destroying properly

2001-03-07 Thread Yasuo Ohgaki

I'm using PostgreSQL for session storage. I forgot to unset session vars
occasionally, so I wrote
a little script to view sessions and its contents. If you are using DB for
session, how about write a little script to view session? It will be very
helpful to debug session related problems.

If you are using file as session storage, you can view session files to view
contents of sessions.

Anyway,  you have $HTTP_SESSION_VARS, right? You might need to unset the
array also,
since track-vars will be always enabled with PHP4. I thought
session_unregister(), unregister and unset() from globals($GLOBAL) and
$HTTP_SESSION_VARS.
(I don't register globals, so I'm not sure about this. Anyone?)

 Thanks for the suggestion, I tried that and it still doesn't seem to be
 working.
 Here's what i've got so far on my page (index.php).

 ?PHP
 if(session_is_registered("CUserName"))
 {
 session_destroy();
 unset($CUserName);
 header("Location: $PHP_SELF");

By the way, Location header requires absolute URI. Most browser works with
relative URI, though.

Regards,
---
Yasuo Ohgaki

 }
 else
 {
 session_register("CUserName");
 $CUserNameSession="CUserName";
 }
 //SNIP
 ?

 Hope you can see something I don't. Thanks,
 Mike

 On Tue, 6 Mar 2001, trogers wrote:

 
  Hi
  You will need to kill the session data on the exit of your failed login
not
  on entry to the login page as the data will already be overwritten by
the
  previous session value.
  I use
  unset($name);
  unset($password);
  ...
 
  Tom
 
 
  At 04:24 PM 6/03/01 +0900, Yasuo Ohgaki wrote:
  Do you use custom session handlers?
  Try session_unset() also. It may help.
  
  Regards,
  Yasuo Ohgaki
  
  
Got a problem with sessions.
   
On my index page, there's a place for people to login.  Well, when I
test
with two different user names (ie: mike and jlo) it reverts to the
first
one when login fails.  For example:
I enter in the username "myuen" and a wrong password.  I get my
"Password/Username invalid" message which is what I want.
   
The page refreshes, the username slot already has myuen in it from
the
last entry, I erase it, enter in a new username "jlo" and the
correct
password and it will not log me in.
   
I know once you attempt to login, it saves the username as a session
variable.  On my index.php page, I have a script that checks if a
session
exists (particularly the Username), if it exists, destroy it
otherwise,
continue on.  Obviously it's not destroying it once we enter in a
wrong
username and try to login again.
   
Any ideas on how to fix this?
   
Here's my coding:
?PHP
if(session_is_registered("CUserName"))
session_destroy();
   
session_register("CUserName");
$CUserNameSession="CUserName";
   
//SNIP
?
  
  
  --
  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] explode question

2001-03-07 Thread Rol

Hello all,

I would like to check some names ( @ seperated strings) with this global $PHP_AUTH_USER

I first do
$arrLoginName = explode("@", $row-usr_loginName);

How can I construct a loop which stops and returns true if a match is found?


Any hints would be great.

Many thanks

Roland




[PHP] Calling Java inside PHP

2001-03-07 Thread Paulson, Joseph V. \Jay\

Hello everyone-

I was wondering if anyon has gotten PHP to call a Java class in a Unix
enviroment?  If so what are your settings in the php.ini file etc.

Thanks for any help!
Jay Paulson

-- 
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] parsing html / xml

2001-03-07 Thread Nathaniel Hekman

I'd like to parse a html file in much the same way the xml parser works.  Ie
calling a method for every tag encountered and so on.  The xml parsing
methods don't seem to be forgiving enough for much of the html that's out
there.  For example, many html files have tags like this:

TABLE border=0

but xml_parse() will choke on it because there are no quotes around the "0".
Also html tags are, in practice, case insensitive, so this is found in many
html documents:

BThis is bold/b

but xml_parse() doesn't like it because it expects the opening and closing
tags to be same-case.

Are there other functions or libraries I'm not aware of that help in parsing
html?  Or some options in xml_parse to get by these problems?

Thanks in advance.


Nate

-- 
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 /main main.c

2001-03-07 Thread Frank M. Kromann

fmk Wed Mar  7 08:33:14 2001 EDT

  Modified files:  
/php4/main  main.c 
  Log:
  Removing a compiler warning
  
Index: php4/main/main.c
diff -u php4/main/main.c:1.355 php4/main/main.c:1.356
--- php4/main/main.c:1.355  Sat Mar  3 17:45:19 2001
+++ php4/main/main.cWed Mar  7 08:33:13 2001
@@ -19,7 +19,7 @@
 */
 
 
-/* $Id: main.c,v 1.355 2001/03/04 01:45:19 zeev Exp $ */
+/* $Id: main.c,v 1.356 2001/03/07 16:33:13 fmk Exp $ */
 
 
 #include stdio.h
@@ -640,7 +640,7 @@
PLS_FETCH();
 
if (setjmp(EG(bailout))==0) {
-   php_end_ob_buffers(SG(request_info).headers_only?0:1);
+   php_end_ob_buffers((zend_bool)(SG(request_info).headers_only?0:1));
}
 
if (setjmp(EG(bailout))==0) {



-- 
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] sending SMS messages via PHP

2001-03-07 Thread Michael Smith

I can easily send standard email messages via PHP. Does anyone know how to
send SMS messages?

--
Michael A. Smith [EMAIL PROTECTED]
Director of Data Systems, wcities.com
ICQ: 35884415
:wq

-- 
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] parsing html / xml (more)

2001-03-07 Thread Nathaniel Hekman

Here's another case that shows up often in html, but is illegal in xml, that
I would need to parse:  meta tags, p tags, hr tags, and other
"singletons".

HEAD
META HTTP-EQUIV="Content-Type" CONTENT="text/html"
/HEAD

xml_parse would give an error, because the HEAD block is being closed with a
still-open META "block".


Nate

-Original Message-
From: Nathaniel Hekman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 9:57 AM
To: '[EMAIL PROTECTED]'
Subject: [PHP] parsing html / xml


I'd like to parse a html file in much the same way the xml parser works.  Ie
calling a method for every tag encountered and so on.  The xml parsing
methods don't seem to be forgiving enough for much of the html that's out
there.  For example, many html files have tags like this:

TABLE border=0

but xml_parse() will choke on it because there are no quotes around the "0".
Also html tags are, in practice, case insensitive, so this is found in many
html documents:

BThis is bold/b

but xml_parse() doesn't like it because it expects the opening and closing
tags to be same-case.

Are there other functions or libraries I'm not aware of that help in parsing
html?  Or some options in xml_parse to get by these problems?

Thanks in advance.


Nate

-- 
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] Text and formating

2001-03-07 Thread sono


I have news webpage of sorts that pulls entries out of a mysql database.

There is a form to submit news and it is automatically added to the new
page upon submition.

What I am wandering is when a individual submits news, the end result on
my news page does not hold the same format it was put in.  For
example.

IN the "add news form" they enter the info in like this:
--
This is a test.

How are you today.
Laddi da, Laddi da
--

The output on the news page comes as:

This is a test. How are you today.Laddi da, Laddi da


Is there a way between php and mysql to ensure that format of the date is
same going in and out?

Thank you in advance:)
Sono




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

2001-03-07 Thread Jason Murray

Rol wrote:
 
 Hello all,
 
 I would like to check some names ( @ seperated strings) with this global 
$PHP_AUTH_USER
 
 I first do
 $arrLoginName = explode("@", $row-usr_loginName);
 
 How can I construct a loop which stops and returns true if a match is found?
 
 Any hints would be great.
 
 Many thanks
 
 Roland

This will do it:

$dim = sizeof($arrLoginName);
for ($nr = 0; $nr  $dim; $nr++) {
if (match) {
return 1;
}
}

Greetings,
Jason
-- 
Jason Murray
Developer
http://www.jwebmedia.com/
1 877 525 jWEB

-- 
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] Text and formating

2001-03-07 Thread Hoover, Josh

You need to do a str_replace() on any fields that need to have breaks in
them.  Try something like this:

echo str_replace ("\n", "BR", $fieldvariable)

Josh Hoover
KnowledgeStorm, Inc.

Searching for a new IT solution for your company? Need to improve your
product marketing? 
Visit KnowledgeStorm at www.knowledgestorm.com to learn how we can simplify
the process for you.
KnowledgeStorm - Your IT Search Starts Here 

 IN the "add news form" they enter the info in like this:
 --
 This is a test.
 
 How are you today.
   Laddi da, Laddi da
 --
 
 
 The output on the news page comes as:
 --
 --
 This is a test. How are you today.Laddi da, Laddi da
 --
 --
 
 Is there a way between php and mysql to ensure that format of 
 the date is
 same going in and out?
 



[PHP] Dynamic Links..

2001-03-07 Thread Ashwin Kutty

Hi,

I want ease the authentication process of the users on my network.. Now,
here is the problem..

I have a php script that re-directs to another company's page.. In that
page, there is a link to go forward, but that link has a session id in
it, that is dynamically generated when the page is called.. What I need
is the contents of that link, is there any way to grab it?

What I need is the contents of that dynamic link since it has a session
id..

So, for example..

test.php - othercompany.html - dynamic link from other company.html

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] Text and formating

2001-03-07 Thread Paulson, Joseph V. \Jay\

or you could just call the nl2br() function to do the same thing...
Jay Paulson
Developer, Web Technologies
Viatel, Inc.

-Original Message-
From: Hoover, Josh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 11:22 AM
To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED]
Subject: RE: [PHP] Text and formating


You need to do a str_replace() on any fields that need to have breaks in
them.  Try something like this:

echo str_replace ("\n", "BR", $fieldvariable)

Josh Hoover
KnowledgeStorm, Inc.

Searching for a new IT solution for your company? Need to improve your
product marketing? 
Visit KnowledgeStorm at www.knowledgestorm.com to learn how we can simplify
the process for you.
KnowledgeStorm - Your IT Search Starts Here 

 IN the "add news form" they enter the info in like this:
 --
 This is a test.
 
 How are you today.
   Laddi da, Laddi da
 --
 
 
 The output on the news page comes as:
 --
 --
 This is a test. How are you today.Laddi da, Laddi da
 --
 --
 
 Is there a way between php and mysql to ensure that format of 
 the date is
 same going in and out?
 

-- 
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: Value of if(isset(X)) problem

2001-03-07 Thread Johnson, Kirk

Tim, I just tried this in IE 5.0, and the submit button name-value pair was
posted along with the other form variables, even though I submitted the form
by hitting return on another field. Is the behavior you described specific
to a certain browser version?

Kirk

-Original Message-
From: Tim Ward [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 7:48 AM
To: 'Martin Skjöldebrand'; [EMAIL PROTECTED]
Subject: [PHP] RE: Value of if(isset(X)) problem


I think you'll find that cmdFinish is only passed through if the form is
submitted by pressing the button. Hitting return on any other field will
submit the form without sending cmdFinish.


 -Original Message-
 From: Martin Skjöldebrand [mailto:[EMAIL PROTECTED]]
 Sent: 07 March 2001 05:34
 To: [EMAIL PROTECTED]
 Subject: Value of if(isset(X)) problem

   input type="submit" value="Modify client" name="cmdFinish"

--
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 cvsusers gen_acl_file.m4

2001-03-07 Thread Andrei Zmievski

andrei  Wed Mar  7 08:43:39 2001 EDT

  Modified files:  
/CVSROOTavail cvsusers gen_acl_file.m4 
  Log:
  Adding accounts for bkelly and adrianz.
  
  
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.110 CVSROOT/avail:1.111
--- CVSROOT/avail:1.110 Sun Mar  4 09:36:30 2001
+++ CVSROOT/avail   Wed Mar  7 08:43:39 2001
@@ -1,15 +1,16 @@
 
+
 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,andre,sniper,david,lyric,zimt,mk,goba,zak,jmcastagnetto|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,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,andre,zimt,uw,jeichorn,bjoern,chregu|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,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,jon,rael,jlp,sbergmann,troels,urs,jpm,adaniel,tuupola,mj,ssb,metallic,heyesr,aj,andre,zimt,uw,jeichorn,bjoern,chregu,bkelly|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,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez|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,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,hholzgra|functable
 avail|rasmus,sterling,jimw|pres
 
avail|jalal,zak,andre,ultrapingo,lyric,jmoore,ronabop,sbergmann,joey,sniper,torben,hellekin,cnewbill|qaweb
 
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,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom,dickmeiss,jkj,hellekin,kgergely,andreroq,eduardh,cnewbill,fuzzy74,inki,bjoern,fams,smasiello,dim,lucasr,cpereira,lagflores,kjh90,ernani,theseer,cevm,noribsd,eskaly,mctrash,berto,leobopp,tcr|phpdoc
 avail|andrei,fmk,zimt,jan,changelog|php-gtk
-avail|jmoore|php-gtk/docs
+avail|jmoore,adrianz|php-gtk/docs
 avail|andrei,fmk|php-gtk-web
 avail|emile,davidg,alan_k,ab|php4/ext/midgard
 avail|rasmus|php4/ext/aspell
Index: CVSROOT/cvsusers
diff -u CVSROOT/cvsusers:1.234 CVSROOT/cvsusers:1.235
--- CVSROOT/cvsusers:1.234  Sat Mar  3 21:13:09 2001
+++ CVSROOT/cvsusersWed Mar  7 08:43:39 2001
@@ -277,3 +277,5 @@
 tcr   Johan Holst Nielsen [EMAIL PROTECTED] Danish 
translation
 chreguChristian Stocker   [EMAIL PROTECTED] PEAR
 spagesSylvain PAGES   [EMAIL PROTECTED]  CyberMut
+bkellyBob Kelly   [EMAIL PROTECTED]   PEAR
+adrianz   Adrian Zandberg [EMAIL PROTECTED]PHP-GTK 
+docs
Index: CVSROOT/gen_acl_file.m4
diff -u CVSROOT/gen_acl_file.m4:1.114 CVSROOT/gen_acl_file.m4:1.115
--- CVSROOT/gen_acl_file.m4:1.114   Sun Mar  4 09:36:30 2001
+++ CVSROOT/gen_acl_file.m4 Wed Mar  7 08:43:39 2001
@@ -7,13 +7,15 @@
 dnl Quality Assurance Team
 define(`php_qa', 
`jalal,zak,andre,ultrapingo,lyric,jmoore,ronabop,sbergmann,joey,sniper,torben,hellekin,cnewbill')dnl
 dnl PEAR Team

RE: [PHP] Text and formating

2001-03-07 Thread Brian V Bonini

nl2br -- Inserts HTML line breaks before all newlines in a string

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

-Brian

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 07, 2001 12:09 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Text and formating
 
 
 
 I have news webpage of sorts that pulls entries out of a mysql database.
 
 There is a form to submit news and it is automatically added to the new
 page upon submition.
 
 What I am wandering is when a individual submits news, the end result on
 my news page does not hold the same format it was put in.  For
 example.
 
 IN the "add news form" they enter the info in like this:
 --
 This is a test.
 
 How are you today.
   Laddi da, Laddi da
 --
 
 
 The output on the news page comes as:
 
 This is a test. How are you today.Laddi da, Laddi da
 
 
 Is there a way between php and mysql to ensure that format of the date is
 same going in and out?
 
 Thank you in advance:)
 Sono
 
 
 
 
 -- 
 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/zlib zlib.c

2001-03-07 Thread Daniel Beulshausen

dbeuWed Mar  7 09:23:31 2001 EDT

  Modified files:  
/php4/ext/zlib  zlib.c 
  Log:
  add missing globals fetches
  
Index: php4/ext/zlib/zlib.c
diff -u php4/ext/zlib/zlib.c:1.75 php4/ext/zlib/zlib.c:1.76
--- php4/ext/zlib/zlib.c:1.75   Tue Mar  6 12:43:54 2001
+++ php4/ext/zlib/zlib.cWed Mar  7 09:23:30 2001
@@ -16,7 +16,7 @@
|  Stefan Röhrich [EMAIL PROTECTED]|
+--+
  */
-/* $Id: zlib.c,v 1.75 2001/03/06 20:43:54 zeev Exp $ */
+/* $Id: zlib.c,v 1.76 2001/03/07 17:23:30 dbeu Exp $ */
 #define IS_EXT_MODULE
 
 #include "php.h"
@@ -1118,6 +1118,7 @@
zval **data, **a_encoding;
zend_bool return_original=0;
zend_bool do_start, do_end;
+   ZLIBLS_FETCH();
 
if (ZEND_NUM_ARGS()!=2 || zend_get_parameters_ex(2, zv_string, 
zv_mode)==FAILURE) {
ZEND_WRONG_PARAM_COUNT();
@@ -1206,6 +1207,8 @@
 int php_enable_output_compression(int buffer_size)
 {
zval **a_encoding, **data;
+   ELS_FETCH();
+   ZLIBLS_FETCH();
 
if (zend_hash_find(EG(symbol_table), "HTTP_SERVER_VARS", 
sizeof("HTTP_SERVER_VARS"), (void **) data)==FAILURE
|| Z_TYPE_PP(data)!=IS_ARRAY



-- 
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] email with multiple records

2001-03-07 Thread WreckRman2


I wrote a small script like a email list only when I run it with 3 emails.
The first record gets his info, 2nd get his plus first, 3rd get his plus 2nd
and 1st. Why is it doing this?

David Smith

Number 3 record gets email with:
-

Hi [EMAIL PROTECTED],

Your email is [EMAIL PROTECTED]

 Bye, WreckRman2

---

Hi [EMAIL PROTECTED],

Your email is [EMAIL PROTECTED]

 Bye, WreckRman2



Hi [EMAIL PROTECTED],

Your email is [EMAIL PROTECTED]

 Bye, WreckRman2


-- 
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] Dynamic Links..

2001-03-07 Thread Chris Lee

you mean you want the url ?

$HTTP_REFERER

This variaable is set by the client's browser though, this means it may not be set at 
all, or could be forged. you will have to check against this.

I dont think this is what you mean though, email me I'll see what I can do.


-- 

 Chris Lee
 Mediawaveonline.com

 ph. 250.377.1095
 ph. 250.376.2690
 fx. 250.554.1120

 [EMAIL PROTECTED]


"Ashwin Kutty" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi,

I want ease the authentication process of the users on my network.. Now,
here is the problem..

I have a php script that re-directs to another company's page.. In that
page, there is a link to go forward, but that link has a session id in
it, that is dynamically generated when the page is called.. What I need
is the contents of that link, is there any way to grab it?

What I need is the contents of that dynamic link since it has a session
id..

So, for example..

test.php - othercompany.html - dynamic link from other company.html

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

2001-03-07 Thread Chris Lee

?php

 function check()
 {
  $arrLoginName = explode("@", $row-usr_loginName);
  foreach($arrLoginName as $pos = $val)
   if (match)
return 1;
  return ;
 }
 
?

is this what you mean? please post regarding.
-- 

 Chris Lee
 Mediawaveonline.com

 ph. 250.377.1095
 ph. 250.376.2690
 fx. 250.554.1120

 [EMAIL PROTECTED]


""Rol"" [EMAIL PROTECTED] wrote in message 
002301c0a726$615218e0$[EMAIL PROTECTED]">news:002301c0a726$615218e0$[EMAIL PROTECTED]...
Hello all,

I would like to check some names ( @ seperated strings) with this global 
$PHP_AUTH_USER

I first do
$arrLoginName = explode("@", $row-usr_loginName);

How can I construct a loop which stops and returns true if a match is found?


Any hints would be great.

Many thanks

Roland





RE: [PHP] sending SMS messages via PHP

2001-03-07 Thread Neil Kimber

Errrm, no easy solution. You should either find an SMS gateway connection that can 
receive formatted emails, convert them and post them (at a charge to you), or go the 
whole hog and get yourself a connection to an SMSC via http. I would suggest you 
pursue the first approach as the second is only viable if you're intending to set 
yourself up as an SMS business.

As an example, check out http://www.cygnet.co.uk/sms/
I've never used this company, but they're the first one I clicked on after searching 
for EMAIL SMS GATEWAY

Hope this helps,
Neil

-Original Message-
From: Michael Smith [mailto:[EMAIL PROTECTED]]
Sent: 07 March 2001 17:00
To: [EMAIL PROTECTED]
Subject: [PHP] sending SMS messages via PHP


I can easily send standard email messages via PHP. Does anyone know how to
send SMS messages?

--
Michael A. Smith [EMAIL PROTECTED]
Director of Data Systems, wcities.com
ICQ: 35884415
:wq

-- 
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] email with multiple records

2001-03-07 Thread Chris Lee

suppy a code snippit and I would have a huge advantage here, but I'll swing in the 
dark on this ok.

your looping all this in a for/while/foreach loop right. your generating the body like 
this ?

foreach($people as $pos = $val)
{
$email_body .= 'name is '. $people[$pos]['name'] ."\n";
$email_body .= 'email is '. $people[$pos]['email'] ."\n";
$email_body .= 'phone is '. $people[$pos]['phone'] ."\n";

mail($email_to, $email_body, $email_from);
}

right ? change it to this.

foreach($people as $pos = $val)
{
$email_body  = '';
$email_body .= 'name is '. $people[$pos]['name'] ."\n";
$email_body .= 'email is '. $people[$pos]['email'] ."\n";
$email_body .= 'phone is '. $people[$pos]['phone'] ."\n";

mail($email_to, $email_body, $email_from);
}

now good change im out to lunch here, but sithout a code snippit im grabing here. 
please post regarding, thank you.


-- 

 Chris Lee
 Mediawaveonline.com

 ph. 250.377.1095
 ph. 250.376.2690
 fx. 250.554.1120

 [EMAIL PROTECTED]



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

I wrote a small script like a email list only when I run it with 3 emails.
The first record gets his info, 2nd get his plus first, 3rd get his plus 2nd
and 1st. Why is it doing this?

David Smith

Number 3 record gets email with:
-

Hi [EMAIL PROTECTED],

Your email is [EMAIL PROTECTED]

 Bye, WreckRman2

---

Hi [EMAIL PROTECTED],

Your email is [EMAIL PROTECTED]

 Bye, WreckRman2



Hi [EMAIL PROTECTED],

Your email is [EMAIL PROTECTED]

 Bye, WreckRman2


-- 
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] new php release?

2001-03-07 Thread Antonio S. Martins Jr.

Hi,

   I'm using PHP-4.0.4pl1, and I'm trying to using the
odbc_error/odbc_erromsg functions, but this are only availabe on the CVS
tree! Before I set up a cvs client download the fonts and try to compile
it, I'm willing to know if there is a new version soon to be released? Or
if the above odbc functions are working in the CVS tree? 

 thanks in advance,

   Antonio.

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Antonio S. Martins Jr. - System Analist |  "Only The Shadow Knows   |
| WorldNet Internet Maringa - PR - Brasil |   what evil lurks in the  |
| E-Mail: [EMAIL PROTECTED]  |   Heart of Men!"  |
| [EMAIL PROTECTED]   | !!! Linux User: 52392 !!! |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   This e-mail message is 100% Microsoft free!

 /"\
 \ /  CAMPANHA DA FITA ASCII - CONTRA MAIL HTML
  X   ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
 / \





-- 
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] sending SMS messages via PHP

2001-03-07 Thread Henrik Hansen

 I can easily send standard email messages via PHP. Does anyone know how to
 send SMS messages?

Send them as an email too, most tele companies have the possibility for that
option (atleast here in denmark)

--
Henrik Hansen


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

2001-03-07 Thread Wagner Nunes

this message is preferencially for brazillian developers:

Procuro programador php de nvel intermedirio a avanado para parceria de elaborao 
de projeto de mdio a grande porte.

Requisitos:

- morar em Porto Alegre/RS ou grande POA;
- conhecimentos de nvel mdio a avanado em php 3 ou 4+, mysql e/ou interbase.
- disponibilidade e flexibilidade de horrio

Por favor, reply para esta msg somente se atender TODOS os requisitos acima.

Obrigado.

Wagner.
__
Wagner Nunes
[EMAIL PROTECTED]



RE: [PHP] email with multiple records

2001-03-07 Thread David Smith

Thanks, I should have drop a code snippet in there... My problem was the .=

-Original Message-
From: Chris Lee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 11:39 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] email with multiple records


suppy a code snippit and I would have a huge advantage here, but I'll swing
in the dark on this ok.

your looping all this in a for/while/foreach loop right. your generating the
body like this ?

foreach($people as $pos = $val)
{
$email_body .= 'name is '. $people[$pos]['name'] ."\n";
$email_body .= 'email is '. $people[$pos]['email'] ."\n";
$email_body .= 'phone is '. $people[$pos]['phone'] ."\n";

mail($email_to, $email_body, $email_from);
}

right ? change it to this.

foreach($people as $pos = $val)
{
$email_body  = '';
$email_body .= 'name is '. $people[$pos]['name'] ."\n";
$email_body .= 'email is '. $people[$pos]['email'] ."\n";
$email_body .= 'phone is '. $people[$pos]['phone'] ."\n";

mail($email_to, $email_body, $email_from);
}

now good change im out to lunch here, but sithout a code snippit im grabing
here. please post regarding, thank you.


--

 Chris Lee
 Mediawaveonline.com

 ph. 250.377.1095
 ph. 250.376.2690
 fx. 250.554.1120

 [EMAIL PROTECTED]



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

I wrote a small script like a email list only when I run it with 3 emails.
The first record gets his info, 2nd get his plus first, 3rd get his plus 2nd
and 1st. Why is it doing this?

David Smith

Number 3 record gets email with:
-

Hi [EMAIL PROTECTED],

Your email is [EMAIL PROTECTED]

 Bye, WreckRman2

---

Hi [EMAIL PROTECTED],

Your email is [EMAIL PROTECTED]

 Bye, WreckRman2



Hi [EMAIL PROTECTED],

Your email is [EMAIL PROTECTED]

 Bye, WreckRman2


--
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] email with multiple records [code included]

2001-03-07 Thread David Smith

Ok here is my code... I have another question too. How can I include in the
email a variable placed in the textarea of the form. Example: Hi your email
is $email. and it would add the variable in each email and not show $email
as plain text. Also open to any code suggestions as I am still new to php.

?php

$connection = mysql_connect ("localhost", "root", "*");
if ($connection == false){
  echo mysql_errno().": ".mysql_error()."BR";
  exit;
}

mysql_select_db("indywebdesign",$connection);

if ($submit) {

$sql = "SELECT * FROM email";
$result = mysql_query($sql);

while ($myrow = mysql_fetch_array($result))

{

$email = $myrow["email"];

$recipient = "$email $email";
$subject = "$subject";
$message = "$message";
$headers = "From: David Smith [EMAIL PROTECTED]\n";

mail($recipient, $subject, $message, $headers);

echo "Message Sent to $email!BR";

}

} else {

?
form method="post" action="?php echo $PHP_SELF?"
INPUT TYPE="text" NAME="subject"
TEXTAREA NAME="message" ROWS="5" COLS="30"/TEXTAREA
input type="Submit" name="submit" value="Edit Information"
/form

?php
}
?

-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 1:49 PM
To: Chris Lee; [EMAIL PROTECTED]
Subject: RE: [PHP] email with multiple records


Thanks, I should have drop a code snippet in there... My problem was the .=

-Original Message-
From: Chris Lee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 11:39 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] email with multiple records


suppy a code snippit and I would have a huge advantage here, but I'll swing
in the dark on this ok.

your looping all this in a for/while/foreach loop right. your generating the
body like this ?

foreach($people as $pos = $val)
{
$email_body .= 'name is '. $people[$pos]['name'] ."\n";
$email_body .= 'email is '. $people[$pos]['email'] ."\n";
$email_body .= 'phone is '. $people[$pos]['phone'] ."\n";

mail($email_to, $email_body, $email_from);
}

right ? change it to this.

foreach($people as $pos = $val)
{
$email_body  = '';
$email_body .= 'name is '. $people[$pos]['name'] ."\n";
$email_body .= 'email is '. $people[$pos]['email'] ."\n";
$email_body .= 'phone is '. $people[$pos]['phone'] ."\n";

mail($email_to, $email_body, $email_from);
}

now good change im out to lunch here, but sithout a code snippit im grabing
here. please post regarding, thank you.


--

 Chris Lee
 Mediawaveonline.com

 ph. 250.377.1095
 ph. 250.376.2690
 fx. 250.554.1120

 [EMAIL PROTECTED]



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

I wrote a small script like a email list only when I run it with 3 emails.
The first record gets his info, 2nd get his plus first, 3rd get his plus 2nd
and 1st. Why is it doing this?

David Smith

Number 3 record gets email with:
-

Hi [EMAIL PROTECTED],

Your email is [EMAIL PROTECTED]

 Bye, WreckRman2

---

Hi [EMAIL PROTECTED],

Your email is [EMAIL PROTECTED]

 Bye, WreckRman2



Hi [EMAIL PROTECTED],

Your email is [EMAIL PROTECTED]

 Bye, WreckRman2


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




Re: [PHP] new php release?

2001-03-07 Thread Henrik Hansen



 Hi,

I'm using PHP-4.0.4pl1, and I'm trying to using the
 odbc_error/odbc_erromsg functions, but this are only availabe on the CVS
 tree! Before I set up a cvs client download the fonts and try to compile
 it, I'm willing to know if there is a new version soon to be released? Or
 if the above odbc functions are working in the CVS tree?

take a look at www.php4win.de fro bleeding edge versions of the php dist
(also including many more precompiled modules)

--
Henrik Hansen


-- 
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] parsing html / xml (more)

2001-03-07 Thread Matt McClanahan

On Wed, Mar 07, 2001 at 10:07:37AM -0700, Nathaniel Hekman wrote:

 Here's another case that shows up often in html, but is illegal in xml, that
 I would need to parse:  meta tags, p tags, hr tags, and other
 "singletons".
 
   HEAD
   META HTTP-EQUIV="Content-Type" CONTENT="text/html"
   /HEAD
 
 xml_parse would give an error, because the HEAD block is being closed with a
 still-open META "block".

Within the context of parsing HTML as XML, there's not really much that
can be done.  I suppose you could pre-proces the HTML to make it
XML-complaitn, but that's probably more trouble than I would go to.

You're not going to find an XML parser that allows for most HTML,
because if such a parser did exist, it would be a broken XML parser. :)
The only kind of HTML you can reliably parse with XML parsers is the
XHTML variety (Which is simply HTML4, made XML-compliant)

Matt

-- 
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] exec as another user

2001-03-07 Thread Henrik Hansen

 Hi,

 This may be a stupid question but how can I execute programs as another
 user under php?
 I'm using Linux with Apache 1.3.12 and PHP 4.

The only way i can figure out would be by using the sudo command without a
password
(don't do that with root), do a 'man sudo' on your linux box

--
Henrik Hansen


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

2001-03-07 Thread Rol

Hello again,

I'd better explain better.

I have logon screen Header("WWW-Authenticate: Basic realm=\"whatever\"");
where I would like the compare the user name $PHP_AUTH_USER with the one in
my database
All names  like Mike or mike are @ seperated strings

How can I check the names from this array $arrLoginName = explode("@",
$row-usr_loginName)

and return true if  a name in the var $arrLoginName == $PHP_AUTH_USER

How can I construct a loop which stops and returns true if a match is found?

Any hints would be great.

Many thanks

Roland




-- 
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] new php release?

2001-03-07 Thread Antonio S. Martins Jr.

On Wed, 7 Mar 2001, Henrik Hansen wrote:

 I'm using PHP-4.0.4pl1, and I'm trying to use the
  odbc_error/odbc_erromsg functions, but this are only availabe on the CVS
  tree! Before I set up a cvs client download the fonts and try to compile
  it, I'm willing to know if there is a new version soon to be released? Or
  if the above odbc functions are working in the CVS tree?
 
 take a look at www.php4win.de fro bleeding edge versions of the php dist
 (also including many more precompiled modules)

Thanks for the URL Henrik, but I'm finding a linux dist :) My odbc
functions are used on a linux box to access DB2/AIX :)

thanks for the atention

 Antonio.

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Antonio S. Martins Jr. - System Analist |  "Only The Shadow Knows   |
| WorldNet Internet Maringa - PR - Brasil |   what evil lurks in the  |
| E-Mail: [EMAIL PROTECTED]  |   Heart of Men!"  |
| [EMAIL PROTECTED]   | !!! Linux User: 52392 !!! |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   This e-mail message is 100% Microsoft free!

 /"\
 \ /  CAMPANHA DA FITA ASCII - CONTRA MAIL HTML
  X   ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
 / \





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

2001-03-07 Thread Chris

Hi,
Has anyone here dealt with the new Interbase 6.0 License?
The web site says it is a free download for development, but I can't find any info 
about commercial use, and their sales office doesn't seem to know either, and they 
haven't called back yet.

Anyone know what the commercial license is? Is it still free?

Thanks,
Chris



RE: [PHP] Interbase

2001-03-07 Thread Angerer, Chad

Both the binary and source distros are available on the website.  I beleive
Interbase has gone open source.

http://www.borland.com/interbase/

Chad

-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 1:23 PM
To: php
Subject: [PHP] Interbase


Hi,
Has anyone here dealt with the new Interbase 6.0 License?
The web site says it is a free download for development, but I can't find
any info about commercial use, and their sales office doesn't seem to know
either, and they haven't called back yet.

Anyone know what the commercial license is? Is it still free?

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]




Re: [PHP] new php release?

2001-03-07 Thread Henrik Hansen

 Thanks for the URL Henrik, but I'm finding a linux dist :) My odbc
 functions are used on a linux box to access DB2/AIX :)

sorry, well for linux do this:

compile compile compile :)

--
Henrik


-- 
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] String concatenation problems

2001-03-07 Thread [EMAIL PROTECTED]

I posted a related question yesterday with no response.  I've done some more 
investigating and think I can lay some of the blame on the string concatentation 
operation.  If anyone can tell me what might be causing this behavoir I would greatly 
appreciate it.

the following code shows the rough form of what I am doing
for ($i=0;$i100;$i++)
{
   $returnVal = "\tTR\n";
   $returnVal .= "\t\tTDFORMINPUT TYPE=\"HIDDEN\" NAME=\"name\" VALUE=\"$i\"\n";
   $returnVal .= "\t\t\tINPUT TYPE=\"SUBMIT\" VALUE=\"Do it\" /FORM /TD\n";
snip -- other similar cells being created
   $returnVal .= "\t/TR";
   $returnValArray[$i]=$returnVal;
}
return $returnValArray;

--- Problem description:
Some rows are corrupted.
The type of corruption that occur are
a) an incomplete row is in $returnVal before assignment to the array, the incomplete 
row is always stopped partway through the addition of a string, ie "ABC"."DEF"-"ABCD" 
sometimes
b) a doubled row.  The initial $returnVal assignment is skipped causing two iterations 
throuhg the for loop to build up on the returnVal variable.
c) unknown. in some cases, after the assignment of $returnVal to $returnValArray[$i] 
the array version will be corrupted while the originl is not.

What is happening here?  As mentioned this problem only materializes on an older 
machine (P133 with 64MB ram) not on the development machine (PIII700 with 128MB).  The 
productio server runs AOLServer while the development server runs Apache.

Eric Nielsen




Mail2Web - Check your email from the web at
http://www.mail2web.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] Interbase

2001-03-07 Thread Brett Bandy

you might try www.ibphoenix.com as they have more info (than the Borland
site) regarding InterBase.

Brett

""Chris"" [EMAIL PROTECTED] wrote in message
03fd01c0a73c$15183c00$01c8c8c8@ibcserver">news:03fd01c0a73c$15183c00$01c8c8c8@ibcserver...
Hi,
Has anyone here dealt with the new Interbase 6.0 License?
The web site says it is a free download for development, but I can't find
any info about commercial use, and their sales office doesn't seem to know
either, and they haven't called back yet.

Anyone know what the commercial license is? Is it still free?

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]




RE: [PHP] parsing html / xml

2001-03-07 Thread Angerer, Chad

Try here to take care of problems..

http://www.w3.org/People/Raggett/tidy/

Chad

-Original Message-
From: Nathaniel Hekman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 10:57 AM
To: '[EMAIL PROTECTED]'
Subject: [PHP] parsing html / xml


I'd like to parse a html file in much the same way the xml parser works.  Ie
calling a method for every tag encountered and so on.  The xml parsing
methods don't seem to be forgiving enough for much of the html that's out
there.  For example, many html files have tags like this:

TABLE border=0

but xml_parse() will choke on it because there are no quotes around the "0".
Also html tags are, in practice, case insensitive, so this is found in many
html documents:

BThis is bold/b

but xml_parse() doesn't like it because it expects the opening and closing
tags to be same-case.

Are there other functions or libraries I'm not aware of that help in parsing
html?  Or some options in xml_parse to get by these problems?

Thanks in advance.


Nate

-- 
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 dll on NT - more reliable with Apache than IIS?

2001-03-07 Thread Paulo Parola

We have started using PHP on NT over Apache, but since our ISP used IIS we
switched to it. Anyway, we just started having real problems after our
application got really big, so that I cannot really compare Apache x IIS on
NT very well (our errors started happening on IIS if I recall correctly).

And you are right, CGI version is much more stable: our application has even
crashed IIS on our ISP (and thus all other clients websites as well went
down...) when running PHP as ISAPI. We asked the ISP to configure PHP as CGI
for our virtual host only, did the same test and got an error but all the
sites still were running fine, ours as well.

I believe you should do some tests over apache, it is really easy to
install. And relating to IIS, CGI is definetly more stable. You could anyway
consider moving to Linux or UNIX. The developers of PHP seem also to be much
more prolific in relation to this world, for obious reasons... But in my
opinion, as a commercial product in a production environment I would say
that PHP over Windows is definetly not the better choice.

Paulo


- Original Message -
From: Greig, Euan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 07, 2001 6:44 AM
Subject: [PHP] PHP dll on NT - more reliable with Apache than IIS?


 I have been having problems using the PHP 4 ISAPI module with IIS 4 on NT4
(The most common problem is HTTP 500 internal server error which disappears
if page is refreshed). This is apparently not too surprising given the
current status of the ISAPI module. So I have switched to using CGI, which
seems absolutely fine, but is noticeably slower.

 I was wondering if it is worth trying the Apache module. Will it be more
reliable? And are there any notable gotchas to watch out for in installing
this combination?

 Euan Greig
 Technical Consultant
 BRANN DATA
 [EMAIL PROTECTED]
 01285 645997





 **
 Any opinions expressed in this email are those of the individual and
 not necessarily the Company. This email and any files transmitted with
 it, including replies and forwarded copies (which may contain alterations)
 subsequently transmitted from the Company, are confidential and solely for
 the use of the intended recipient. If you are not the intended recipient
 or the person responsible for delivering to the intended recipient, be
 advised that you have received this email in error and that any use is
 strictly prohibited.

 **

 --
 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 cvsusers gen_acl_file.m4

2001-03-07 Thread Andrei Zmievski

andrei  Wed Mar  7 11:35:32 2001 EDT

  Modified files:  
/CVSROOTavail cvsusers gen_acl_file.m4 
  Log:
  Account for Iuri Fiedoruk to go PHP-GTK docs translation.
  
  
Index: CVSROOT/avail
diff -u CVSROOT/avail:1.111 CVSROOT/avail:1.112
--- CVSROOT/avail:1.111 Wed Mar  7 08:43:39 2001
+++ CVSROOT/avail   Wed Mar  7 11:35:32 2001
@@ -10,7 +10,7 @@
 
avail|jalal,zak,andre,ultrapingo,lyric,jmoore,ronabop,sbergmann,joey,sniper,torben,hellekin,cnewbill|qaweb
 
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,andre,sniper,changelog,sr,david,jdonagher,chagenbu,jon,elixer,joosters,jason,mysql,kalowsky,opaquedave,steinm,phanto,gluke,shuric,svanegmond,rjs,vlad,jimjag,emile,wez,php_ext,chad,torben,lynch,kk,ted,kwazy,aka,affinity,paul,skaag,pglat,mbritton,coar,lwest,joey,bibi,mrobinso,lwh,perugini,hamoralesr,tzwenny,hirokawa,drews,paulsen,hartmann,philross,leon,valdirh,dmarion,dubois,jonen,tschuer,tfromm,manuel,stas,danbeck,sli,jmcastagnetto,mohrt,cris,goba,samesch,jon,soneca,kaufm,ronabop,glace,latoserver,phpguru_dk,lojmann,rafael,jan,jcmeloni,chrullrich,mk,sbergmann,troels,mathieu,voize,phaethon,mgx,mj,corean,pandach,brown,cycle98,vizvil,openlife,regina,cynic,jpm,dams,alponce,menuconfig,obst,topgoods,karoora,pcraft,suvia,zak,zimt,mgx,sintoris,jmoore,ftfuture,uttam,ag315,ropik,jbi1979,bbonev,malo,afortaleza,neotron,cg,delrom,dickmeiss,jkj,hellekin,kgergely,andreroq,eduardh,cnewbill,fuzzy74,inki,bjoern,fams,smasiello,dim,lucasr,cpereira,lagflores,kjh90,ernani,theseer,cevm,noribsd,eskaly,mctrash,berto,leobopp,tcr|phpdoc
 avail|andrei,fmk,zimt,jan,changelog|php-gtk
-avail|jmoore,adrianz|php-gtk/docs
+avail|jmoore,adrianz,protoman|php-gtk/docs
 avail|andrei,fmk|php-gtk-web
 avail|emile,davidg,alan_k,ab|php4/ext/midgard
 avail|rasmus|php4/ext/aspell
Index: CVSROOT/cvsusers
diff -u CVSROOT/cvsusers:1.235 CVSROOT/cvsusers:1.236
--- CVSROOT/cvsusers:1.235  Wed Mar  7 08:43:39 2001
+++ CVSROOT/cvsusersWed Mar  7 11:35:32 2001
@@ -278,4 +278,5 @@
 chreguChristian Stocker   [EMAIL PROTECTED] PEAR
 spagesSylvain PAGES   [EMAIL PROTECTED]  CyberMut
 bkellyBob Kelly   [EMAIL PROTECTED]   PEAR
-adrianz   Adrian Zandberg [EMAIL PROTECTED]PHP-GTK 
docs
+adrianz   Adrian Zandberg [EMAIL PROTECTED]PHP-GTK 
+docs Polish translation
+protoman  Iuri Fiedoruk   [EMAIL PROTECTED]  PHP-GTK 
+docs Brazilian Portuguese translation
Index: CVSROOT/gen_acl_file.m4
diff -u CVSROOT/gen_acl_file.m4:1.115 CVSROOT/gen_acl_file.m4:1.116
--- CVSROOT/gen_acl_file.m4:1.115   Wed Mar  7 08:43:39 2001
+++ CVSROOT/gen_acl_file.m4 Wed Mar  7 11:35:32 2001
@@ -15,7 +15,7 @@
 dnl
 define(`php_midgard', `emile,davidg,alan_k,ab')dnl
 dnl PHP-GTK Documentation Group
-define(`php_gtk_doc', `jmoore,adrianz')
+define(`php_gtk_doc', `jmoore,adrianz,protoman')
 dnl
 unavail
 avail|php_group|CVSROOT



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




Fw: [PHP] Interbase

2001-03-07 Thread Wagner Nunes



Chad is right. Interbase 6.0 is already a free DB software.
go to www.borland.com e get it freely.

 []'s
__
Wagner Nunes
[EMAIL PROTECTED]

 - Original Message -
 From: "Angerer, Chad" [EMAIL PROTECTED]
 To: "'Chris'" [EMAIL PROTECTED]; "php" [EMAIL PROTECTED]
 Sent: Wednesday, March 07, 2001 4:28 PM
 Subject: RE: [PHP] Interbase


  Both the binary and source distros are available on the website.  I
 beleive
  Interbase has gone open source.
 
  http://www.borland.com/interbase/
 
  Chad
 
  -Original Message-
  From: Chris [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, March 07, 2001 1:23 PM
  To: php
  Subject: [PHP] Interbase
 
 
  Hi,
  Has anyone here dealt with the new Interbase 6.0 License?
  The web site says it is a free download for development, but I can't
find
  any info about commercial use, and their sales office doesn't seem to
know
  either, and they haven't called back yet.
 
  Anyone know what the commercial license is? Is it still free?
 
  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]




RE: [PHP] parsing html / xml (more)

2001-03-07 Thread Nathaniel Hekman

Matt McClanahan wrote:
[...]
 You're not going to find an XML parser that allows for most HTML,
 because if such a parser did exist, it would be a broken XML parser. :)
[...]

Fair enough, and that's as I expected.  So that brings me to the second part
of my question:  is there any php library that allows parsing of html?

Perhaps I'll have to write one myself.  All I want really is something that
parses a bunch of text and calls handlers whenever tags are encountered.
Just like xml_parse, except I don't care if tags are out of order, I don't
care about case, and I don't care if there is a close tag for every open.
If anyone knows of a package that does this, please advise.  If anyone else
would be interested in this, let me know and I could post my code when I'm
done (if I have to do this myself).


Nate

-- 
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] email with multiple records

2001-03-07 Thread Miles Thompson

Embarrassing, isn't it?

Do you have a loop building messages, with something like

$msgbody .= $data_to_send

THat little " . " caught me. I was emailing usernames and passwords -- 
fortunately it was an obvious error.

Miles

At 01:22 PM 3/7/01 -0500, WreckRman2 wrote:

I wrote a small script like a email list only when I run it with 3 emails.
The first record gets his info, 2nd get his plus first, 3rd get his plus 2nd
and 1st. Why is it doing this?

 David Smith

Number 3 record gets email with:
-

Hi [EMAIL PROTECTED],

Your email is [EMAIL PROTECTED]

  Bye, WreckRman2

---

Hi [EMAIL PROTECTED],

Your email is [EMAIL PROTECTED]

  Bye, WreckRman2



Hi [EMAIL PROTECTED],

Your email is [EMAIL PROTECTED]

  Bye, WreckRman2


--
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] passing variables again

2001-03-07 Thread george

I am trying to write a script which allows you to build a PHP mailto form
online, but I am stuck

 if you go to www.wisemonkeydesign.co.uk/wise/mailto.htm
after step 3 when you have to create,
ho do I pass the HTML code and names of the fiels into the next page.
 for instance the user has choosen three fields and a text area
and if you look at the source on step three
 input type="text" name="???"
input type="text" name="???"
input type="text" name="???"
textarea name="?" cols="??" rows="??"/textarea

how do I transfer that code into the form.It would be easy enough if there
was a set number of fields.


TIA

george



-- 
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] passing variables again

2001-03-07 Thread Miles Thompson

Try using an array, such as name[], with NO SUBSCRIPT, to store the chosen 
items. That will be passed as a form variable and can be stepped through on 
the next page where you can parse step through the array and create the 
form.  You could probably do this all in the same form, setting variables 
which will control the generation of HTML, thereby controlling the display.

Miles Thompson

At 08:43 PM 3/7/01 +, george wrote:
I am trying to write a script which allows you to build a PHP mailto form
online, but I am stuck

  if you go to www.wisemonkeydesign.co.uk/wise/mailto.htm
after step 3 when you have to create,
ho do I pass the HTML code and names of the fiels into the next page.
  for instance the user has choosen three fields and a text area
and if you look at the source on step three
  input type="text" name="???"
input type="text" name="???"
input type="text" name="???"
textarea name="?" cols="??" rows="??"/textarea

how do I transfer that code into the form.It would be easy enough if there
was a set number of fields.


TIA

george



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

2001-03-07 Thread Karl J. Stubsjoen

Hello,

I'm interested in the technology "Remote Scripting".  Basically, I would
like to deliver "real-time" information to a browser without having to
reload the page.

Is anyone familiar with this?

Thanks,

Karl


-- 
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 ircg.c

2001-03-07 Thread Sascha Schumann

sas Wed Mar  7 12:15:34 2001 EDT

  Modified files:  
/php4/ext/ircg  ircg.c 
  Log:
  There are some subtle changes which are not recognized by the compiler,
  so bark, if someone tries to build against anything older than IRCG 2.0b1.
  
  
Index: php4/ext/ircg/ircg.c
diff -u php4/ext/ircg/ircg.c:1.43 php4/ext/ircg/ircg.c:1.44
--- php4/ext/ircg/ircg.c:1.43   Sat Mar  3 13:22:12 2001
+++ php4/ext/ircg/ircg.cWed Mar  7 12:15:33 2001
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: ircg.c,v 1.43 2001/03/03 21:22:12 sas Exp $ */
+/* $Id: ircg.c,v 1.44 2001/03/07 20:15:33 sas Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -36,6 +36,10 @@
 static HashTable h_irconn; /* Integer IDs to php_irconn_t * */
 static HashTable h_fmt_msgs; /* Integer IDs to php_fmt_msgs_t * */ 
 static int irconn_id = 1;
+
+#if !defined(IRCG_API_VERSION) || IRCG_API_VERSION  20010303
+# error "Please upgrade to at least IRCG 2.0b1"
+#endif
 
 /* Format string numbers */
 enum {



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

2001-03-07 Thread Jason Jacobs

Hey folks.  I have another htaccess question.  I have an entire folder set
up to require authentication.  It's in an htaccess file, not in each page.
I was sure that the variable that's passed from the authentication dialog
was $PHP_AUTH_USER, but it's not working when I use that in a query.  Anyone
got ideas?  I'd paste my code, but when that wasn't working, I changed it
back to hardcoded values. :)

Jason


-- 
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] session in php3

2001-03-07 Thread Steve Edberg

At 3:28 PM -0600 3/7/01, Jacky wrote:
Hi people
I got problem of how to assign session value in php3. As far as I 
know, all syntax in manual talks about php4 syntax only. How am I 
going to do that?
best


In PHP3, you'll have to create your own session functions, or use a 
library like PHPLIB (phplib.netuse.de).

-steve


Jack
[EMAIL PROTECTED]
"There is nothing more rewarding than reaching the goal you set for yourself"

-- 
+--- "They've got a cherry pie there, that'll kill ya" --+
| Steve Edberg   University of California, Davis |
| [EMAIL PROTECTED]   Computer Consultant |
| http://aesric.ucdavis.edu/  http://pgfsun.ucdavis.edu/ |
+-- FBI Special Agent Dale Cooper ---+

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

2001-03-07 Thread Miles Thompson

Karl,

Check the archives, if you haven't done so already. I think this was 
already discussed in the last week of February, although not under the same 
heading as yours.

Miles

At 02:05 PM 3/7/01 -0700, Karl J. Stubsjoen wrote:
Hello,

I'm interested in the technology "Remote Scripting".  Basically, I would
like to deliver "real-time" information to a browser without having to
reload the page.

Is anyone familiar with this?

Thanks,

Karl


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

2001-03-07 Thread David Smith

Try this:

? echo ($HTTP_SERVER_VARS["PHP_AUTH_USER"]); ?

-Original Message-
From: Jason Jacobs [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 4:09 PM
To: [EMAIL PROTECTED]
Subject: [PHP] htaccess


Hey folks.  I have another htaccess question.  I have an entire folder set
up to require authentication.  It's in an htaccess file, not in each page.
I was sure that the variable that's passed from the authentication dialog
was $PHP_AUTH_USER, but it's not working when I use that in a query.  Anyone
got ideas?  I'd paste my code, but when that wasn't working, I changed it
back to hardcoded values. :)

Jason


--
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] passing variables again

2001-03-07 Thread george


not really sure I understand,

but what I want to do is take the HTML generated in step 3 and place it
between the form tags in the last page where the code is displayed

ie

tdTitle/tdtd mr/stronginput type=radio name=title value=mr checked

mrs/stronginput type=radio name=title value=mrs

Miss/stronginput type=radio name=title
value=missbr/td/trtdname/tdtdinput type=text
name=name/td/trtrtdaddress/tdtdinput type=text
name=address/td/trtdaddress2/tdtdinput type=text
name=address2/td/trtd valign="top"message/tdtdtextarea
name="message" cols= rows=/textarea/td/tr

that is the code from step 3 how do I get that to display on the next page.



TIA


george




-- 
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 ircg.c

2001-03-07 Thread Sascha Schumann

sas Wed Mar  7 12:24:28 2001 EDT

  Modified files:  
/php4/ext/ircg  ircg.c 
  Log:
  Safety check for now, this can later be used to add real binary
  compatibility by increasing the size of php_irconn_t appropiately.
  
  
Index: php4/ext/ircg/ircg.c
diff -u php4/ext/ircg/ircg.c:1.44 php4/ext/ircg/ircg.c:1.45
--- php4/ext/ircg/ircg.c:1.44   Wed Mar  7 12:15:33 2001
+++ php4/ext/ircg/ircg.cWed Mar  7 12:24:28 2001
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: ircg.c,v 1.44 2001/03/07 20:15:33 sas Exp $ */
+/* $Id: ircg.c,v 1.45 2001/03/07 20:24:28 sas Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -742,6 +742,15 @@
 {
php_irconn_t *irconn = dummy;
 
+#if IRCG_API_VERSION = 20010307
+   if (irc_sizeof_irconn() != sizeof(irconn_t)) {
+   printf("FATAL: The size of the irconn_t structure has grown "
+   "since you compiled PHP.  Please rebuild PHP against "
+   "the correct IRCG header files.\n");
+   exit(1);
+   }
+#endif
+   
if (irconn-ident) {
smart_str m;
 



-- 
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-CVS] cvs: php4 /ext/ircg ircg.c

2001-03-07 Thread Sascha Schumann

sas Wed Mar  7 12:45:02 2001 EDT

  Modified files:  
/php4/ext/ircg  ircg.c 
  Log:
  Move binary compat check to the module init function;
  
  Add initial support for channel modes.
  
  
Index: php4/ext/ircg/ircg.c
diff -u php4/ext/ircg/ircg.c:1.45 php4/ext/ircg/ircg.c:1.46
--- php4/ext/ircg/ircg.c:1.45   Wed Mar  7 12:24:28 2001
+++ php4/ext/ircg/ircg.cWed Mar  7 12:45:02 2001
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: ircg.c,v 1.45 2001/03/07 20:24:28 sas Exp $ */
+/* $Id: ircg.c,v 1.46 2001/03/07 20:45:02 sas Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -64,6 +64,8 @@
FMT_MSG_WHOIS_IDLE,
FMT_MSG_WHOIS_CHANNEL,
FMT_MSG_WHOIS_END,
+   FMT_MSG_MODE_VOICE,
+   FMT_MSG_MODE_OP,
NO_FMTS
 };
 
@@ -518,6 +520,32 @@
msg_send(conn, m);
 }
 
+#if IRCG_API_VERSION = 20010307
+static void mode_channel_handler(irconn_t *ircc, smart_str *nick,
+   smart_str *channel, smart_str *who, int mode, int give, void *dummy,
+   void *dummy2)
+{
+   php_irconn_t *conn = dummy;
+   smart_str m = {0};
+   smart_str what;
+
+   if (give)
+   smart_str_setl(what, "1", 1);
+   else
+   smart_str_setl(what, "0", 1);
+   
+   if (mode  IRCG_MODE_VOICE) {
+   format_msg(MSG(conn, FMT_MSG_MODE_VOICE), channel, nick, who, what, 
+   m);
+   msg_send(conn, m);
+   }
+   if (mode  IRCG_MODE_OP) {
+   format_msg(MSG(conn, FMT_MSG_MODE_OP), channel, nick, who, what, m);
+   msg_send(conn, m);
+   }
+}
+#endif
+
 static void http_closed_connection(int fd)
 {
int *id, stored_id;
@@ -741,15 +769,6 @@
 static void register_hooks(irconn_t *conn, void *dummy)
 {
php_irconn_t *irconn = dummy;
-
-#if IRCG_API_VERSION = 20010307
-   if (irc_sizeof_irconn() != sizeof(irconn_t)) {
-   printf("FATAL: The size of the irconn_t structure has grown "
-   "since you compiled PHP.  Please rebuild PHP against "
-   "the correct IRCG header files.\n");
-   exit(1);
-   }
-#endif

if (irconn-ident) {
smart_str m;
@@ -792,6 +811,10 @@
irc_register_hook(conn, IRCG_WHOISCHANNELS, whois_channels_handler);
irc_register_hook(conn, IRCG_ENDOFWHOIS, end_of_whois_handler);
 #endif
+
+#if IRCG_API_VERSION = 20010307
+   irc_register_hook(conn, IRCG_MODE_CHANNEL, mode_channel_handler);
+#endif
 }
 
 static int ircg_copy_ctcp_msgs(zval **array, php_irconn_t *conn)
@@ -1000,6 +1023,15 @@
 /* Remove comments if you have entries in php.ini
REGISTER_INI_ENTRIES();
 */
+
+#if IRCG_API_VERSION = 20010307
+   if (irc_sizeof_irconn() != sizeof(irconn_t)) {
+   printf("FATAL: The size of the irconn_t structure has grown "
+   "since you compiled PHP.  Please rebuild PHP against "
+   "the correct IRCG header files.\n");
+   exit(1);
+   }
+#endif
 
zend_hash_init(h_fmt_msgs, 0, NULL, fmt_msgs_dtor, 1); 
zend_hash_init(h_fd2irconn, 0, NULL, NULL, 1);



-- 
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-CVS] cvs: php4 /ext/ircg ircg.c

2001-03-07 Thread Sascha Schumann

sas Wed Mar  7 12:49:01 2001 EDT

  Modified files:  
/php4/ext/ircg  ircg.c 
  Log:
  Add default message for channel modes
  
  
Index: php4/ext/ircg/ircg.c
diff -u php4/ext/ircg/ircg.c:1.46 php4/ext/ircg/ircg.c:1.47
--- php4/ext/ircg/ircg.c:1.46   Wed Mar  7 12:45:02 2001
+++ php4/ext/ircg/ircg.cWed Mar  7 12:49:01 2001
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: ircg.c,v 1.46 2001/03/07 20:45:02 sas Exp $ */
+/* $Id: ircg.c,v 1.47 2001/03/07 20:49:01 sas Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -129,7 +129,9 @@
"%f: server(%c) server info(%m)br /",
"%f has been idle for %m secondsbr /",
"%f is on channel %cbr /",
-   "End of whois for %fbr /"
+   "End of whois for %fbr /",
+   "%f sets voice flag of %t to %m on %cbr /",
+   "%f sets channel operator flag of %t to %m on %cbr /"
 };
 
 #define MSG(conn, type) \



-- 
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-CVS] cvs: php4 /ext/ircg README.txt

2001-03-07 Thread Sascha Schumann

sas Wed Mar  7 13:05:13 2001 EDT

  Modified files:  
/php4/ext/ircg  README.txt 
  Log:
  Remove some dated information.
  
  
Index: php4/ext/ircg/README.txt
diff -u php4/ext/ircg/README.txt:1.5 php4/ext/ircg/README.txt:1.6
--- php4/ext/ircg/README.txt:1.5Fri Jan 26 08:04:58 2001
+++ php4/ext/ircg/README.txtWed Mar  7 13:05:13 2001
@@ -1,10 +1,6 @@
-($Id: README.txt,v 1.5 2001/01/26 16:04:58 sas Exp $)
+($Id: README.txt,v 1.6 2001/03/07 21:05:13 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:
 



-- 
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] on the list yesterday regarding mysql time

2001-03-07 Thread Jerry Lake

I know this was on the list yesterday,
but I for some reason erased it.

I have an online form that I would like
to have record the time submitted and
recorded into a MySQL date field, how
the hell do I use the date and mktime
functions to make the date compatible
with the MySQL -00-00 format?

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: george [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 1:51 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] passing variables again



not really sure I understand,

but what I want to do is take the HTML generated in step 3 and place it
between the form tags in the last page where the code is displayed

ie

tdTitle/tdtd mr/stronginput type=radio name=title value=mr checked

mrs/stronginput type=radio name=title value=mrs

Miss/stronginput type=radio name=title
value=missbr/td/trtdname/tdtdinput type=text
name=name/td/trtrtdaddress/tdtdinput type=text
name=address/td/trtdaddress2/tdtdinput type=text
name=address2/td/trtd valign="top"message/tdtdtextarea
name="message" cols= rows=/textarea/td/tr

that is the code from step 3 how do I get that to display on the next page.



TIA


george




--
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 Digest 7 Mar 2001 22:37:49 -0000 Issue 553

2001-03-07 Thread php-general-digest-help


php-general Digest 7 Mar 2001 22:37:49 - Issue 553

Topics (messages 42887 through 42958):

Re: exec timing out, want to leave process running in bg
42887 by: Mukul Sabharwal

Is it bug?
42888 by: Piotr Duszynski
42906 by: Chris Lee

Re: Q: php4,cache,performance,mod_perl,zend cache, APC
42889 by: Zeev Suraski

include()  require()
42890 by: cocos.hol.gr
42891 by: Derek Sivers
42907 by: Zeev Suraski

Slideshow problem
42892 by: Fates
42893 by: Don Read
42894 by: Jason Stechschulte

exec as another user
42895 by: Ivari Horm
42937 by: Henrik Hansen

converting comma-ed numbers
42896 by: Dreamvale

dates from db
42897 by: Matt Davis
42898 by: Jon Haworth
42900 by: Mark Roedel
42904 by: Eric Naujock

Re: session_start
42899 by: Ernest E Vogelsinger

Re: Error with ldap
42901 by: Alain ROMERO

Re: PHP dll on NT - more reliable with Apache than IIS?
42902 by: Lance Koh
42946 by: Paulo Parola

unsuscribe
42903 by: Emmerson Rafael Miranda Ramirez

Re: Value of if(isset(X)) problem
42905 by: Tim Ward
42923 by: Johnson, Kirk

Re: file access(mpeg) only for authenticated people
42908 by: Thorsten Gutermuth

Re: How to sort a 2D array?
42909 by: Chris Lee

Re: How to get oid after table insert? [postgresql]
42910 by: Joe Conway

Re: Session not destroying properly
42911 by: Yasuo Ohgaki

explode question
42912 by: Rol
42919 by: Jason Murray
42927 by: Chris Lee
42938 by: Rol

Calling Java inside PHP
42913 by: Paulson, Joseph V. \"Jay\"

parsing html / xml
42914 by: Nathaniel Hekman
42945 by: Angerer, Chad

sending SMS messages via PHP
42915 by: Michael Smith
42928 by: Neil Kimber
42931 by: Henrik Hansen

parsing html / xml (more)
42916 by: Nathaniel Hekman
42936 by: Matt McClanahan
42948 by: Nathaniel Hekman

Session-based authentication and Netscape 6 problems
42917 by: Colin Viebrock

Text and formating
42918 by: sono.selectcomm.ab.ca
42920 by: Hoover, Josh
42922 by: Paulson, Joseph V. \"Jay\"
42924 by: Brian V Bonini

Dynamic Links..
42921 by: Ashwin Kutty
42926 by: Chris Lee

email with multiple records
42925 by: WreckRman2
42929 by: Chris Lee
42933 by: David Smith
42949 by: Miles Thompson

new php release?
42930 by: Antonio S. Martins Jr.
42935 by: Henrik Hansen
42939 by: Antonio S. Martins Jr.
42942 by: Henrik Hansen

brazillian developers
42932 by: Wagner Nunes

Re: email with multiple records [code included]
42934 by: David Smith

Interbase
42940 by: Chris
42941 by: Angerer, Chad
42944 by: Brett Bandy
42947 by: Wagner Nunes

String concatenation problems
42943 by: ericnielsen.earthlink.net

passing variables again
42950 by: george
42951 by: Miles Thompson
42957 by: george

Remote Scripting
42952 by: Karl J. Stubsjoen
42955 by: Miles Thompson

htaccess
42953 by: Jason Jacobs
42956 by: David Smith

Re: session in php3
42954 by: Steve Edberg

on the list yesterday regarding mysql time
42958 by: Jerry Lake

Administrivia:

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

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

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


--



Oh yeah, we don't wanna get HUPed!

--- Christian Reiniger [EMAIL PROTECTED] wrote:  On
Wednesday 07 March 2001 06:37, you wrote:
  Hi,
 
  Well there are many ways to run a process in the
  background, my favorite way is detaching the
 process
  or the program or process from within, so if it's
 a c
  program pretty easy, but incase you dont have the
  source, then you can use this:
 
  exec("mp3123 -y -Z --all 1/dev/null/ 21 ");
 
 better add "nohup" to that:
 exec("nohup mp3123 -y -Z --all 1/dev/null/ 21
 ");
 
  well that simply puts the stdout and stderr in the
  same file /dev/null, and puts it into the
 background.
 
 -- 
 Christian Reiniger
 LGDC Webmaster (http://sunsite.dk/lgdc/)
 
 What luck for the rulers that men do not think.
 
 - Adolf Hitler
 
 --
 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]
 


=
To find out more about me : http://www.geocities.com/mimodit
My bookmarks are available @ http://mukul.free.fr

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




I have smth like that in my code:

[PHP] RE: on the list yesterday regarding mysql time

2001-03-07 Thread Jerry Lake

never mind anything below my signature
I forgot to erase it, damn non-thread
capable email...

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.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-CVS] cvs: php4 /ext/ircg ircg.c

2001-03-07 Thread Sascha Schumann

sas Wed Mar  7 13:05:44 2001 EDT

  Modified files:  
/php4/ext/ircg  ircg.c 
  Log:
  D'oh. Check IRCG_API_VERSION after including if_irc.h.
  
  
Index: php4/ext/ircg/ircg.c
diff -u php4/ext/ircg/ircg.c:1.47 php4/ext/ircg/ircg.c:1.48
--- php4/ext/ircg/ircg.c:1.47   Wed Mar  7 12:49:01 2001
+++ php4/ext/ircg/ircg.cWed Mar  7 13:05:43 2001
@@ -16,7 +16,7 @@
+--+
  */
 
-/* $Id: ircg.c,v 1.47 2001/03/07 20:49:01 sas Exp $ */
+/* $Id: ircg.c,v 1.48 2001/03/07 21:05:43 sas Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -37,10 +37,6 @@
 static HashTable h_fmt_msgs; /* Integer IDs to php_fmt_msgs_t * */ 
 static int irconn_id = 1;
 
-#if !defined(IRCG_API_VERSION) || IRCG_API_VERSION  20010303
-# error "Please upgrade to at least IRCG 2.0b1"
-#endif
-
 /* Format string numbers */
 enum {
FMT_MSG_CHAN = 0,
@@ -90,6 +86,10 @@
 
 #include "if_irc.h"
 #include "irc_write_buffer.h"
+
+#if !defined(IRCG_API_VERSION) || IRCG_API_VERSION  20010303
+# error "Please upgrade to at least IRCG 2.0b1"
+#endif
 
 typedef struct {
char *fmt_msgs[NO_FMTS];



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




  1   2   >