RE: [PHP] % operator

2001-02-04 Thread Eelco de Vries
It doesn't have a use in only PHP but in all programming languages. It's a math thing .. u can get a remainder of a division. 10%8 = 2 12%8 = 4 10%5 = 0 12%5 = 2 Simple application: $ppl = 23; $grpsize = 7; echo ("when $ppl people are divided over groups of $grpsize, ". $ppl%$grpsize ." people a

RE: [PHP] Session With Cookies

2001-02-04 Thread Eelco de Vries
This will store a cookie with a userid and an unique number ($token) as session-id (??). If I'm not mistaken, this session-id is not checked here. Thus serves no purose. Anybody who retrieve the cookie from the cookie file on the system can use it to resume the session (if done within the set 360

[PHP-CVS] cvs: php4 / TODO

2001-02-04 Thread Sterling Hughes
sterlingSun Feb 4 01:19:01 2001 EDT Modified files: /php4 TODO Log: Add a bunch of stuff.. Index: php4/TODO diff -u php4/TODO:1.109 php4/TODO:1.110 --- php4/TODO:1.109 Wed Jan 24 11:16:43 2001 +++ php4/TODO Sun Feb 4 01:19:01 2001 @@

[PHP-CVS] cvs: php4 / TODO

2001-02-04 Thread Sterling Hughes
sterlingSun Feb 4 01:20:31 2001 EDT Modified files: /php4 TODO Log: # *Brain Fart* Index: php4/TODO diff -u php4/TODO:1.110 php4/TODO:1.111 --- php4/TODO:1.110 Sun Feb 4 01:19:01 2001 +++ php4/TODO Sun Feb 4 01:20:31 2001 @@ -71,7 +

Re: [PHP] Session With Cookies

2001-02-04 Thread Julie Meloni
Eelco de Vries wrote: > This will store a cookie with a userid and an unique number ($token) as > session-id (??). > If I'm not mistaken, this session-id is not checked here. Thus serves no > purose. Anybody who retrieve the cookie from the cookie file on the system > can use it to resume the ses

Re: [PHP] my bugaboo.

2001-02-04 Thread Matt
I had a problem similar to this myself a while ago... I don't believe the issue is with the differing versions of PHP, but rather with the improper escaping of the quote characters. There are two PHP functions: addslashes() and stripslashes() Call the former when you submit the information to p

RE: [PHP] Session With Cookies

2001-02-04 Thread Eelco de Vries
> > In case of login/password required sites, I use the login and > password as > > cookie values and have _no_ expiredate set. Every time a request is made > > _both_ cookie values (login and password) are checked with that on the > > server. > > I would hope that you are not storing and matching

RE: [PHP] getimagesize question

2001-02-04 Thread PHPBeginner.com
$size = getimagesize($Frame."top.gif"); I think you should read this : http://www.zend.com/zend/tut/using-strings.php Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: [EMAIL PROT

RE: [PHP] Undefined variable

2001-02-04 Thread PHPBeginner.com
try setting error_reporting(0) in PHP.ini Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Dundee (Roland) [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 04, 2001 5:35 AM To:

RE: [PHP] PHP hosting - the final frontier.

2001-02-04 Thread PHPBeginner.com
Well, I'll contribute to the discussion whether you like or not... For a year I was running a website on Canaca.com (former Nortel.no) ... They've been nice, I though ... Then I once tried one weird thing: '.show_code('/usr/local/apache/conf/httpd.conf').''?> from a simple PHP page ... hmm ...

RE: [PHP] php-nuke?

2001-02-04 Thread PHPBeginner.com
Use cron ... Search archives for something like "running PHP with cron" Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: FredrikAT [mailto:[EMAIL PROTECTED]] Sent: Sunday, Februar

RE: [PHP] Stringing sql queries?

2001-02-04 Thread PHPBeginner.com
So you are talking about two different queris in one call? No, you can't do this ... you have to then use some kind of loop or something ... Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original

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

2001-02-04 Thread Rasmus Lerdorf
rasmus Sun Feb 4 02:05:13 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: doc account for Andre Roque Index: CVSROOT/avail diff -u CVSROOT/avail:1.71 CVSROOT/avail:1.72 --- CVSROOT/avail:1.71 Fri Feb 2 08:31:32 2001 +++ CVSROOT/a

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

2001-02-04 Thread Rasmus Lerdorf
rasmus Sun Feb 4 02:07:49 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: Karma for Vlad Index: CVSROOT/avail diff -u CVSROOT/avail:1.72 CVSROOT/avail:1.73 --- CVSROOT/avail:1.72 Sun Feb 4 02:05:12 2001 +++ CVSROOT/avail Sun Feb 4

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

2001-02-04 Thread Rasmus Lerdorf
rasmus Sun Feb 4 02:10:57 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: doc account for Eduard Hergenroeder Index: CVSROOT/avail diff -u CVSROOT/avail:1.73 CVSROOT/avail:1.74 --- CVSROOT/avail:1.73 Sun Feb 4 02:07:48 2001 +++ C

Re: [PHP] Session With Cookies

2001-02-04 Thread Lux
It's unlikely I suppose, but there's a must-have book you should look at if you want info on hacks, including browser hacks (Hacking Exposed: Network Security Secrets and Solutions, 2nd Edition). The cookie hack that comes to mind only works in IE or MS products (but that's only what, 90% of

[PHP] Working with email piped to PHP

2001-02-04 Thread Roy Wilson, Jr.
Ok, I've got an email address setup to pipe to a PHP script setup to handle the request and do whatever I need to. (In my specific situation, it's a help email address, and will create a ticket in a database.) As a test, I'm opening the STDIN data stream and writing it to a file to make sure

RE: [PHP] Working with email piped to PHP

2001-02-04 Thread James Moore
> # This is the standard input script. > > $fp = fopen("php://stdin","r"); > $writer_file = fopen("test.txt","w"); > fwrite($writer_file,"$fp"); > fclose($writer_file); > fclose($fp); > > ?> > > As stated, it does create the test.txt in the specified location, > however, > upon inspection of the

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

2001-02-04 Thread Derick Rethans
On Fri, 2 Feb 2001, Colin Viebrock wrote: > I for one would like to see #8839 fixed ... hint, hint Derick! ;) Gr :) Derick Rethans - PHP: Scripting the Web - www.php.net - [EMAIL PROTECTED] --

Re: [PHP] CGI vs PHP

2001-02-04 Thread Christian Reiniger
On Saturday 03 February 2001 22:03, phpLover wrote: > I am sorry if my question is confusing. What I mean is that CGI is > excellent in handling flat file data base, reading and writing files > line by line, word by wor. So is PHP equally strong? That's exactly what he meant - CGI is an interface

Re: Fw: [PHP] Problem compiling PHP4 Nr. 2

2001-02-04 Thread Christian Reiniger
On Saturday 03 February 2001 22:03, Thomas Weber wrote: > I have solved the problem. But now i have another problem: > > Look at this screenshot: http://electic.hn.org/tunix.gif The webserver doesn't send a proper Content-Type: Header. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgd

[PHP] PHP code beautifier?

2001-02-04 Thread Maciek Uhlig
Yes, I know it should be written correctly from the beginning. But, in case it isn't: what do you use to format ugly looking scripts? Maciek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

Re: [PHP] Is this a missing feature?

2001-02-04 Thread Christian Reiniger
On Sunday 04 February 2001 07:31, John Luxford wrote: > function foo (&$hash) { >while (list ($k, $v) = each ($hash)) { > echo "$k :: $v\n"; >} > } > // but what I want to say is something like this > > foo (["one" => "value", "two" => "value"]); foo ()

Re: [PHP] Re:What version of Linux?

2001-02-04 Thread Christian Reiniger
On Sunday 04 February 2001 05:03, John Hinsley wrote: > > Well, my home server is a wimpy P90 with 48MB RAM. It serves as web > > server (all my technical docs, php website testing, more), web cache [...] > > else :) Ah, yes. MySQL for my php stuff also runs on it. > > That's pretty impressive!

Re: [PHP] Select list with PHP

2001-02-04 Thread Gerry
This worked! But, I get this color selection increment on each subsequent menu where the colors from the row above mix with the ones below and so on. Assume that the numbers are the actual colors: Select a color: first menu1 next menu-> 1 next menu-> even longer

Re: [PHP] Select list with PHP/oops!

2001-02-04 Thread Gerry
Well I messed up... I forgot to add the final ";} at the bottom of my sample code but here it is. sorry! Gerry wrote: > > This worked! > But, I get this color selection increment on each subsequent menu where > the colors from the row above mix with the ones below and so on. Assume > that the nu

[PHP] HTTP compression

2001-02-04 Thread Alain Fontaine
Hi, I've just started experimenting with ob_start("ob_gzhandler") a bit, and I have found that if any output is generated before ob_start() is called, nothing at all gets compressed; if ob_start() is called before any output, everything is compressed. Is this the case, I mean, is this "by design

Re: [PHP] HTTP compression

2001-02-04 Thread Rasmus Lerdorf
> I've just started experimenting with ob_start("ob_gzhandler") a bit, and I > have found that if any output is generated before ob_start() is called, > nothing at all gets compressed; if ob_start() is called before any output, > everything is compressed. > > Is this the case, I mean, is this "by

Re: [PHP] XML - XSL with PHP

2001-02-04 Thread Rasmus Lerdorf
> Is there any way of to use PHP3 with XSL? > can anyone help me? Unless someone back-ports the sablotron stuff to PHP 3 you are pretty much out of luck. Upgrade. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

[PHP] Arrays from forms

2001-02-04 Thread Jamie
Can someone please help me with this code I'm having major problems with arrays. This code is part of a function I'm writing to deal with an array returned from a HTML form of check boxes so if anyone has an example of this sort of thing I'd appreciate a look at it. Anyway Code follows : //Readin

RE: [PHP] HTTP compression

2001-02-04 Thread Alain Fontaine
Rasmus, Thanks for the clarification; it seems obvious, too, that mixing compressed and non compressed content would be quite difficult to implement; at least it would partially compromise the speed/size gain because of added protocol overhead. Now, imagining that we have enabled compression by

Re: [PHP] Future plans (4.1) ?

2001-02-04 Thread Robert Mena
Hi Rasmus, thanks for you reply. As some of the phpers already stated I also disagree about the visibility issue. But it's IMHO anyway (besides I do not have technical skills enough to try to implement it). I'll check the template you mentioned but I was wondering if a "built-in

php-general Digest 4 Feb 2001 15:14:52 -0000 Issue 492

2001-02-04 Thread php-general-digest-help
php-general Digest 4 Feb 2001 15:14:52 - Issue 492 Topics (messages 38021 through 38108): IIS & ISAPI 38021 by: Shane McBride 38025 by: Chris Fry 38028 by: Shane McBride Re: Re:What version of Linux? 38022 by: John Hinsley 38100 by: Christian Reinige

[PHP-CVS] cvs: php4 /win32 time.c

2001-02-04 Thread James Moore
jmoore Sun Feb 4 07:52:33 2001 EDT Modified files: /php4/win32 time.c Log: Fix for time.c under win32. Patch By: "Vanhanen, Reijo" <[EMAIL PROTECTED]> @- microtime under windows now returns accurate values (James) Index: php4/win32/time.c diff -u p

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

2001-02-04 Thread James Moore
jmoore Sun Feb 4 08:18:36 2001 EDT Modified files: /php4/ext/standard microtime.c Log: Always return a value even if HAVE_GETTIMEOFDAY is not set Index: php4/ext/standard/microtime.c diff -u php4/ext/standard/microtime.c:1.27 php4/ext/standard/microtime.c:1.

[PHP] Newbie:Cannot send session cookie...

2001-02-04 Thread james
1. Cannot send session cookie - headers already sent by (output started at c:/program files/apache group/apache/htdocs/index.php4:10) in c:/program files/apache group/apache/htdocs/index.php4 on line 11 What does it mean? Any hints? 2. Another problem: My htm page has two frames (left and rig

RE: [PHP] HTTP compression

2001-02-04 Thread Sean Cazzell
Alain, When PHP parses a file, it treats the stuff that's not in blocks as though each line were a print or echo statement. So your whole file will be compressed and sent to the browser. Regards, Sean On Sun, 4 Feb 2001, Alain Fontaine wrote: > Rasmus, > > Thanks for the clarification; it

Re: [PHP] % operator

2001-02-04 Thread Steve Werby
"Dhaval Desai" <[EMAIL PROTECTED]> wrote: > what is the use of % It returns a remainder. For example 7 % 2 = 1. > Is it called modulo..what is it's use in PHP.? There are plenty of situations where it's useful. For example, if you're displaying data in rows and want to shade every other row:

RE: [PHP-CVS] cvs: php4 /win32 time.c

2001-02-04 Thread James Moore
This patch reduces accuracy to milliseconds rather than microseconds but the results are actaully accurate rather than before where the time was collected in two function calls (so seconds would be out of sync with the number of microseconds). Some acuraccy has been lost but the function actually

[PHP-CVS] cvs: php4 /ext/standard/tests/time .cvsignore 001.phpt

2001-02-04 Thread James Moore
jmoore Sun Feb 4 08:56:59 2001 EDT Added files: /php4/ext/standard/tests/time .cvsignore 001.phpt Log: Adding microtime() tests Index: php4/ext/standard/tests/time/.cvsignore +++ php4/ext/standard/tests/time/.cvsignore *.exp *.out *.php phpt.* Inde

Re: [PHP] Arrays from forms

2001-02-04 Thread Steve Werby
"Jamie" <[EMAIL PROTECTED]> wrote: > $results = mysql_query("SELECT option_type, code FROM options WHERE > code='000' ORDER BY option_type",$db); > mysql_fetch_array($results); > // From what understand I should have an array some thig like this: > // ("Size"=>"A4" , "Size" => "A3", "Size"=>"A5"

[PHP] Problem with Zend Encoder testdrive - Win2k

2001-02-04 Thread Carsten Gehling
Downloaded the Encoder testdrive and installed it with a license file (zend_encoder.dat). Did what the manual stated, except that I installed it on E:\program files\zend instead of C:\program files\zend (I did modify the install_license.reg before installing it into the registration database) Whe

[PHP] PHP Authenticate

2001-02-04 Thread FredrikAT
Hi... I have a problem with PHP Authenticate ...if I enter user/pw wrong the first time it stops and I have to close/open browser.! I've tried to unset $PHP_AUTH_USER but then it just loops... if(!isset($PHP_AUTH_USER)) { Header("WWW-Authenticate: Basic realm=\".: Privat område :.\"");

Re: [PHP] PHP and Oracle resources

2001-02-04 Thread Jon Jacob
Kristofer Widholm wrote: > > Well, I've been given the joyous task of implementing the DaveTV > project at CBS via PHP, using Oracle as a database. > > I've never used Oracle before. > > Looking at the PHP functions for Oracle, and having heard about it in > the past, it seems like quite a diff

RE: [PHP] HTTP compression

2001-02-04 Thread Alain Fontaine
Sean, Thanks, I see. How about headers ? Do they need to be compressed, too; in other words, do headers "belong" to the output ? > -Message d'origine- > De : Sean Cazzell [mailto:[EMAIL PROTECTED]] > Envoye : dimanche 4 fevrier 2001 17:39 > A : Alain Fontaine > Cc : [EMAIL PROTECTED] > O

[PHP] db paging with MS Sql

2001-02-04 Thread Scott Parks
Has anyone seen a good lession or code example on paging records from MS Sql 7? Say I have 300 records and want to break them down to 10 per page using [previous | next ] and a list of page numbers at the bottom. tia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [E

[PHP] 2 questions

2001-02-04 Thread Adrian Teasdale
Hi I have a couple of questions. One about hosting and the other about IP addresses. The first on the IP's. I have been speaking to a company that I am looking at getting a dedicated server from. They ONLY do one IP address per server and use name-based hosting. I have asked for dedic

Re: [PHP] 2 questions

2001-02-04 Thread andreas \(@work\)
Hi, name-based hostig is quite okay but you shoulsd know that the cobald raq needs an extra ip for each site offering anonymous ftp and using ssl-certificate !! i installed php4.04pl1 and mysql 3.22.32 ( its easy and straightforward ) [ have a look at cobalt-users list ] greetings andreas

Re: [PHP] HTTP compression

2001-02-04 Thread Teodor Cimpoesu
Alain Fontaine wrote: > > Sean, > > Thanks, I see. How about headers ? Do they need to be compressed, too; in > other words, do headers "belong" to the output ? a HTTP response is made of response header(s) and the response body. Only the body is compressed, and this is signaled in the header

Re: [PHP] Newbie:Cannot send session cookie...

2001-02-04 Thread Teodor Cimpoesu
james wrote: > > 1. Cannot send session cookie - headers already sent by (output started at > c:/program files/apache group/apache/htdocs/index.php4:10) in c:/program > files/apache group/apache/htdocs/index.php4 on line 11 > > What does it mean? > > Any hints? the error message is quite expl

RE: [PHP] HTTP compression

2001-02-04 Thread Alain Fontaine
Teodor, Looked at it from that point of view, the question was pretty stupid ! ;) > -Message d'origine- > De : Teodor Cimpoesu [mailto:[EMAIL PROTECTED]] > Envoye : dimanche 4 fevrier 2001 19:09 > A : Alain Fontaine > Cc : Sean Cazzell; [EMAIL PROTECTED] > Objet : Re: [PHP] HTTP compres

Re: [PHP] db paging with MS Sql

2001-02-04 Thread Alain Fontaine
Scott, As far as I know, MS SQL supports a syntax like this: SELECT TOP 10 FROM table_name WHERE etc etc However, I don't know how to make it start from a certain offset; I guess MS SQL's documentation, especially the T-SQL doc, should help. ""Scott Parks"" <[EMAIL PROTECTED]> a écrit dans le

Re: [PHP] HTTP compression

2001-02-04 Thread Carsten Gehling
From: "Teodor Cimpoesu" <[EMAIL PROTECTED]> Sent: Sunday, February 04, 2001 7:08 PM > a HTTP response is made of response header(s) and the response body. > Only the body > is compressed, and this is signaled in the headers so the User Agent > will know > not to stare to a bunch of binary data :)

Re: [PHP] Is this a missing feature?

2001-02-04 Thread Lux
Where do I make a formal request for a feature? In Perl or Ruby, I could have said: foo ({ 'var1' => 'value', 'var2' => 'value'}); and it is so much more elegant than having to say: $hash = array ( 'var1' => 'value', 'var2' => 'value' ); foo ($hash); elegance is everything, man. lux

Re: [PHP] 2 questions

2001-02-04 Thread Steve Werby
"Adrian Teasdale" <[EMAIL PROTECTED]> wrote: > I have been speaking to a company that I am looking at getting a dedicated > server from. They ONLY do one IP address per server and use name-based > hosting. I have asked for dedicated IP's, but their answer has been that > all hosting companies ar

Re: [PHP] Session With Cookies

2001-02-04 Thread phpLover
I never wanted this question to be an offense for anyone. I thank you all for your answers. Regards PHPLover Lux <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > It's unlikely I suppose, but there's a must-have book you should look at > if you want info on hack

Re: [PHP] Replacing A Word in HTML page

2001-02-04 Thread phpLover
Thanks for your answerm but what does eregi_replace() do? Regards "Steve Werby" <[EMAIL PROTECTED]> wrote in message 045801c08e7f$3c4f61c0$6401a8c0@mobile">news:045801c08e7f$3c4f61c0$6401a8c0@mobile... > "phpLover" <[EMAIL PROTECTED]> wrote: > > I want to read an HTML page from another site and

Re: [PHP] HTTP compression

2001-02-04 Thread Teodor Cimpoesu
Carsten Gehling wrote: > > From: "Teodor Cimpoesu" <[EMAIL PROTECTED]> > Sent: Sunday, February 04, 2001 7:08 PM > > > a HTTP response is made of response header(s) and the response body. > > Only the body > > is compressed, and this is signaled in the headers so the User Agent > > will know >

Re: [PHP] Is this a missing feature?

2001-02-04 Thread Teodor Cimpoesu
Lux wrote: > > Where do I make a formal request for a feature? In Perl or Ruby, I > could have said: > > foo ({ 'var1' => 'value', 'var2' => 'value'}); > > and it is so much more elegant than having to say: > > $hash = array ( >'var1' => 'value', >'var2' => 'value' > ); > foo ($hash

[PHP] Connectivity to AS/400

2001-02-04 Thread Pete Lancashire
I'm going to be trying to connect to the native DB2 database in a AS/400 So far thats all I know about the IBM side. Can someone give me a short update on what options I have ? TIA !!! -pete -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: [PHP] Replacing A Word in HTML page

2001-02-04 Thread Steve Werby
"phpLover" <[EMAIL PROTECTED]> wrote: > Thanks for your answerm but what does eregi_replace() do? Short answer is to see http://www.php.net/manual/en/function.eregi-replace.php. Usage examples can be found right on php.net. See longer answer below. Previously "phpLover" <[EMAIL PROTECTED]> wro

Re: [PHP] Is this a missing feature?

2001-02-04 Thread Steve Edberg
At 8:40 PM +0200 2/4/01, Teodor Cimpoesu wrote: >Lux wrote: >> >> Where do I make a formal request for a feature? In Perl or Ruby, I >> could have said: >> >> foo ({ 'var1' => 'value', 'var2' => 'value'}); >> >> and it is so much more elegant than having to say: >> >> $hash = array ( >>

RE: [PHP] HTTP compression

2001-02-04 Thread Sander Pilon
Check the http 1.1 rfc - http://www.faqs.org/rfcs/rfc2616.html It links to the gzip file format rfc - http://www.faqs.org/rfcs/rfc1952.html > -Original Message- > From: Carsten Gehling [mailto:[EMAIL PROTECTED]] > Sent: 4 February 2001 19:19 > To: [EMAIL PROTECTED] > Subject: Re: [PHP]

Re: [PHP] Is this a missing feature?

2001-02-04 Thread Lux
Thanks, just what I was looking for! > Now, let me tell you that somehow I agreed with you :) cause I love > > Python way > > of dealing with arrays, but we are in PHP, so we have to figure PHP way, > > not > > way. Let's make PHP our favourite language! If another has a better feature,

RE: [PHP] HTTP compression

2001-02-04 Thread Sander Pilon
> Sean, > > Thanks, I see. How about headers ? Do they need to be compressed, too; in > other words, do headers "belong" to the output ? How about RTFR? :) (Read the .. RFC.) Really, when you've read http://www.faqs.org/rfcs/rfc2616.html you'll be able to understand a lot more about how htt

Re: [PHP] Is this a missing feature?

2001-02-04 Thread Teodor Cimpoesu
> > foo ($hash = array('var1'=>'value', 'var2'=>'value')); > >should work. > You don't need the $hash in that function call unless you need to use > it later on in your main program, so you can just say: > > foo (array('var1'=>'value', 'var2'=>'value')); that won't work (Lux's compla

[PHP] Re: [PHP-DB] Connectivity to AS/400

2001-02-04 Thread szii
There's been a lot of talk about this recently. Check the archives for the last 2 months, and PHPBuilder.com Last I heard, you needed DRDA(DB2 Connect) installed, as well as the runtime client. Also on the client - DB2 Application Development package. Use this to compile PHP --with-ibm-db2=.

Re: [PHP-CVS] cvs: php4 /win32 time.c

2001-02-04 Thread Andi Gutmans
I don't think you should be using static variables in the functions. Don't forget that you might have more than one thread accessing this function at a time (unless you came to the conclusion that a race here can't do any harm). Andi At 03:52 PM 2/4/2001 +, James Moore wrote: >jmoore

[PHP] XML Parsing with PHP

2001-02-04 Thread Steve Haemelinck
Where can I find some info on parsing XML with PHP? I am not looking for functions, but examples and explanations ! Thx -- 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 administrat

[PHP] Email Selected Data

2001-02-04 Thread Website4S
Hi, I am selecting data using the below and trying to insert it into a mail, it does everything except send the data selected, anyone have an idea? $SQLStatement = "SELECT * FROM Orders Where Status='N' Order by OrderID"; $SQLConn = mysql_connect($host, $user, $pass); $db = mysql_select_db($dba

[PHP] Installing Verisign PFPro Support

2001-02-04 Thread Brady J. Horenstein
Hello! I'm trying to configure PHP with Verisign PayFlow PRO support on my server. I'm running FreeBSD 4, Apache 1.3.12, mod_ssl, openSSL, and mySQL 3.23.32. I downloaded the newest release of PHP (4.0.4pl2) and tried compiling it, using the ./configure --with-pfpro=[dir] thing and I get the fol

Re: [PHP] XML Parsing with PHP

2001-02-04 Thread Joe Stump
phpbuilder.com - there are a few articles on the site about XML --Joe On Sun, Feb 04, 2001 at 05:02:43PM +0100, Steve Haemelinck wrote: > Where can I find some info on parsing XML with PHP? > I am not looking for functions, but examples and explanations ! > > Thx > > > -- > PHP General Maili

Re: [PHP] Installing Verisign PFPro Support

2001-02-04 Thread John Donagher
Brady- Regardless of your compilation problems, Verisign has not yet released their fixed SDK for BSD. They've only released it for Linux (libc5 & glibc2) and Solaris. You're kind of SOL until they do. See the user comments on www.php.net/pfpro for why you're SOL. John On Sun, 4 Feb 2001, Brad

RE: [PHP] PHP hosting - the final frontier.

2001-02-04 Thread Boaz Yahav
No need to get upset :) just stating MHO (nothing personal). In your own words you say : "People have taken a chance with me" and that's really what they did. Cause you know what happens to backup plans that don't have backup plans that don't... I'm assuming that there may be an audience for thi

Re: [PHP] Is this a missing feature?

2001-02-04 Thread Christian Reiniger
On Sunday 04 February 2001 20:09, Lux wrote: > > Now, let me tell you that somehow I agreed with you :) cause I love > > Python way > > of dealing with arrays, but we are in PHP, so we have to figure PHP > > way, > Let's make PHP our favourite language! If another has a better > feature, take i

Re: [PHP] Replacing A Word in HTML page

2001-02-04 Thread Christian Reiniger
On Sunday 04 February 2001 19:23, phpLover wrote: > Thanks for your answerm but what does eregi_replace() do? Exactly the thing that's written in the documentation for it :) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) The most exciting phrase to hear in science, the one that

Re: [PHP] Email Selected Data

2001-02-04 Thread Christian Reiniger
On Sunday 04 February 2001 21:31, [EMAIL PROTECTED] wrote: > for ($i=0; $i<$num_rows; $i++) > { > mysql_data_seek($SQLResult, $i); > $array=mysql_fetch_array($SQLResult); > $content=printf("First Name: %s\nLast Name: %s\n",$array['FirstName'], Re-read the documentation for "printf". You want

[PHP] Strange behavior with parser/methods?

2001-02-04 Thread T.S.Bhatnagar
[script at end] Does it seem strange that although object members can store functions, they can't be used as methods? That is, we can have $TestObject->mTestMember = create_function('','echo "TestMember";'); but we can't do $TestObject->mTestMember(); Can I get around this using clever plac

Re: [PHP] PHP hosting - the final frontier.

2001-02-04 Thread Robert Covell
I understand your concerns, but with this type of logic this mailing list not not be around. Niether would Linux, Apache, MySql or anyother open source tool that so many people utilize today. We would all be on NT instead of Linux and using IIS with ASP instead of PHP. Do think Ramsus when he s

Re: [PHP] 2 questions

2001-02-04 Thread WreckRman2
I use a RaQ3 and have no problems running PHP and MySQL. I started out using one IP but the biggest problem I found was that in order to view the site or make changes to it, the domain name must resolve to the server before it would work. I decided it would be best for me to assign each site a

Re: [PHP] PHP hosting - the final frontier.

2001-02-04 Thread Christian Reiniger
On Sunday 04 February 2001 23:18, Robert Covell wrote: > I understand your concerns, but with this type of logic this mailing > list not not be around. Niether would Linux, Apache, MySql or anyother > open source tool that so many people utilize today. We would all be on > NT instead of Linux an

Re: [PHP] db paging with MS Sql

2001-02-04 Thread Michael Kimsal
I'm pretty sure there's no other way to do it but to read them all in and only display what you need. AFAIK, MSSQL doesn't support paging itself, but relies on the ADO driver to do this. If you make an reference to an ADO object in VBScript, you can set how many rows are in a 'page', then tell i

[PHP] Learning MySQL

2001-02-04 Thread Jeff Oien
What would your advice be for learning MySQL with PHP on an Apache server? I know a little Perl and am beginning to learn PHP. I'm more of a designer than a programmer (not enough geek genes). I went through the tutorial at WebMonkey and have it all installed and working, but the tutorial isn't

[PHP] db forms creator?

2001-02-04 Thread Jaxon
Hi, can anyone point me towards an easy way to generate forms to update a mysql database? I've seen some sites where I can specify a list of table fields and the datatype for each, and get an output of: 1. the sql to create the table 2. a php form that can be used to update the table problem is

Re: [PHP] Learning MySQL

2001-02-04 Thread eschmid+sic
On Sun, Feb 04, 2001 at 05:06:02PM -0600, Jeff Oien wrote: > What would your advice be for learning MySQL with PHP on an > Apache server? I know a little Perl and am beginning to learn PHP. > I'm more of a designer than a programmer (not enough geek genes). > I went through the tutorial at WebMo

[PHP] upload

2001-02-04 Thread DragoslaV \( Paul \)
Hello, How can i upload a file from a client to server ? I tryed copy() but it doesint works. Paul

Re: [PHP] Is this a missing feature?

2001-02-04 Thread Lux
> But the feature is useless :) Here, I removed the reference, so we can stop fussing over it (it wasn't the question to begin with), and here's an example of a potential use for this (a stupid example, but still...). I'm not weighing out the benefits of references, I'm striving to achieve the c

[PHP] I should apologize

2001-02-04 Thread Lux
I don't mean to bash php in any way (as in the Ruby plugs in my last post). I use it because it has so many advantages over other more system-oriented not web-oriented languages for this type of work. It's fantastic. I see so much enthusiasm on the web for this language, a significant codeb

Re: [PHP] Is this a missing feature?

2001-02-04 Thread Josh G
What's this ruby? Care to send the list a URL so we can go have a look for ourselves? Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From: "Lux" <[EMA

Re: [PHP] Is this a missing feature?

2001-02-04 Thread Lux
sure here's the ruby page: http://www.ruby-lang.org/ here's another ruby site: http://www.rubycentral.com/ there's also a really good book you can find info about here: http://pragmaticprogrammer.com/ruby/index.html it's not really used much yet anywhere except japan, where it's actually overta

Re: [PHP] db paging with MS Sql

2001-02-04 Thread Manuel Lemos
Hello Scott, On 04-Feb-01 14:41:58, you wrote: >Has anyone seen a good lession or code example on paging records from MS Sql >7? Say I have 300 records and >want to break them down to 10 per page using [previous | next ] and a list >of page numbers at the bottom. You may want to use Metabase t

Re: [PHP] Is this a missing feature?

2001-02-04 Thread Christian Reiniger
On Monday 05 February 2001 00:51, Lux wrote: > > But the feature is useless :) > function a ($hash, $text = "") { >$attr_text = ""; >while (list ($k, $v) = each ($hash)) { > $attr_text .= " $k=\"$v\""; >} >return "$text"; > } > // what also d

Re: [PHP] db paging with MS Sql

2001-02-04 Thread Joe Stump
AFAIK this is more of a SQL thing than a DB specific thing. Just look up the LIMIT equivilent in MS SQL (should just be LIMIT) and use that for paging, once you get the hang of it it's quite easy. You can look through my paging class at www.miester.org/software - it goes one deeper and does [ pre

Re: [PHP] db paging with MS Sql

2001-02-04 Thread Michael Kimsal
AFAICT there is no 'LIMIT' feature in MS SQL products (TOP and supposedly BOTTOM, but BOTTOM has never worked for me and TOP doesn't seem to work on all versions). How is metabase handling this? Pulling everything, looping thru, and only returning the requested rows? Yes, I could log in/downloa

Re: [PHP] Is this a missing feature?

2001-02-04 Thread Lux
I should check my version then... =O) lux Christian Reiniger wrote: > On Monday 05 February 2001 00:51, Lux wrote: > > >>> But the feature is useless :) > >> > >> function a ($hash, $text = "") { > >>$attr_text = ""; > >>while (list ($k, $v) = each ($hash)) { > >>

Re: [PHP] reload help!!!

2001-02-04 Thread Wen Ni Leong
Wen Ni Leong wrote: > > Can you please explain more detail because I'm new in Javascript and > PHP? How should I write my coding in order to target the parent > window? I am trying so many ways but I'm still can't manage to do it. > > Please help me again. > > This is in Parent window. The

Re: [PHP] I should apologize

2001-02-04 Thread Michael Kimsal
Lux wrote: > I don't mean to bash php in any way (as in the Ruby plugs in my last > post). I use it because it has so many advantages over other more > system-oriented not web-oriented languages for this type of work. It's > fantastic. > Yes it is. :) > > I see so much enthusiasm on the we

Re: [PHP] PHP hosting - the final frontier.

2001-02-04 Thread Robert Covell
I agree, point taken... Sincerely, Robert T. Covell President / Owner Rolet Internet Services, LLC Web: www.rolet.com Email: [EMAIL PROTECTED] Phone: 816.210.7145 Fax: 816.753.1952 - Original Message - From: "Christian Reiniger" <[EMAIL PROTECTED]> To: "Php-General" <[EMAIL PROTECTED]

Re: [PHP] Learning MySQL

2001-02-04 Thread Toby Butzon
I agree. It's a great reference & learning guide, but you _have_ to be patient and not skip around too much with it or it'll be quite intimidating. --Toby [EMAIL PROTECTED] wrote: > > On Sun, Feb 04, 2001 at 05:06:02PM -0600, Jeff Oien wrote: > > What would your advice be for learning MySQL wit

Re: [PHP] db paging with MS Sql

2001-02-04 Thread Manuel Lemos
Hello Michael, On 04-Feb-01 21:23:26, you wrote: >AFAICT there is no 'LIMIT' feature in MS SQL products (TOP and supposedly >BOTTOM, but BOTTOM has never worked for me and TOP doesn't seem to work on >all versions). >How is metabase handling this? Pulling everything, looping thru, and only >re

  1   2   >