RE: [PHP] here doc performance

2001-04-06 Thread Jack Dempsey
Thanks for your thoughts. I don't believe it can be as fast as single quotes, simply because it does variable interpolation, and that's why printing doubly quoted strings are slower than singles, hence i would think here docs would be slower as well...but nothing so great that i would to worry abo

Re: [PHP] here doc performance

2001-04-06 Thread Plutarck
To my knowledge, though I haven't done any testing with microtime, heredoc is as faster as using single quotes. Since the only thing PHP looks for is the characters that were present at the very begining on the string, there should certainly be no slowdowns at all. If it's not that way, I imagin

[PHP] Ahhh...I see

2001-04-06 Thread Plutarck
Thanks for the site...it answered my question, actually. I was not aware that an auto_increment must be not null. And am I correct that when it says it must be a "key", it means that it must be either Primary or Unique? That I did not know. Anyway, it's working now :) -- Plutarck Should be wo

[PHP] here doc performance

2001-04-06 Thread Jack Dempsey
Hi all, I use the here doc option heavily in pages i create, outputting large chunks of HTML with variables inside the echo<

RE: [PHP] AUTO_INCREMENT with MySQL & phpmyadmin

2001-04-06 Thread Jason Lotito
> -Original Message- > From: Plutarck [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 06, 2001 10:35 PM > To: [EMAIL PROTECTED] > Subject: [PHP] AUTO_INCREMENT with MySQL & phpmyadmin > > > At first I thought this might be better suited on the mysql list, > but since > I'm using phpmyad

[PHP] AUTO_INCREMENT with MySQL & phpmyadmin

2001-04-06 Thread Plutarck
At first I thought this might be better suited on the mysql list, but since I'm using phpmyadmin I thought it better to ask here. My problem is I can't figure out how to create a column with the auto_increment attribute. I want to make one called userid whose value is one higher than the highest

RE: [PHP] Print or Echo.

2001-04-06 Thread Jason Lotito
> -Original Message- > From: Alexander Wagner [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 06, 2001 3:24 PM > To: [EMAIL PROTECTED] > Cc: PHP > Subject: Re: [PHP] Print or Echo. > > > Jeff Oien wrote: > > "As for a print vs. echo, echo gives you more options, > > such as being able

Re: [PHP] escape characters

2001-04-06 Thread Adam
nevermind, i found them -- 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-CVS] cvs: php4 /ext/fdf fdf.c

2001-04-06 Thread Sterling Hughes
On Sat, 7 Apr 2001, Jani Taskinen wrote: > On Fri, 6 Apr 2001, Sterling Hughes wrote: > > >On Sat, 7 Apr 2001, Jani Taskinen wrote: > > > >> sniper Fri Apr 6 19:48:20 2001 EDT > >> > >> Modified files: > >> /php4/ext/fdf fdf.c > >> Log: > >> fixed protos > >> > > > > > >Yi

Re: [PHP] fwrite()

2001-04-06 Thread Adam
simply add: $conteudo = stripslashes($conteudo) -- 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] HELP!! comparing arrays

2001-04-06 Thread Yasuo Ohgaki
How about post some code that does not work as expected? (Simpler code is better) Regards, -- Yasuo Ohgaki ""paula"" <[EMAIL PROTECTED]> wrote in message 001501c0bf29$2f35e740$0f01a8c0@pau">news:001501c0bf29$2f35e740$0f01a8c0@pau... Hi- I'm new here and have this problem that's DRIVING ME CRAZ

[PHP] Double your website traffic

2001-04-06 Thread webmaster
Do you want to double the number of visitors to your homepage everyday? The perfect solution is PopUp Window Exchange! It's a brand new concept from LinkExchange. It will pop up websites instead of traditional banners. As a result, it can bring you REAL web traffic instea

Re: [PHP] Nested for() loops? -> Now Multi Dimension Arrays

2001-04-06 Thread Yasuo Ohgaki
Simple to fix it. You just need to resolve ambiguity with {}. > $res = $i * $j; > $target_array[$i][$j] = $res; > print("result = $target_array[$i][$j] "); print("result = {$target_array[$i][$j]} "); Regards, -- Yasuo Ohgaki <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTE

RE: [PHP-CVS] cvs: php4 /ext/fdf fdf.c php_fdf.h

2001-04-06 Thread Sean R. Bright
I know where the CODING_STANDARDS file is, but it only mentions Emacs' folding mechanism, it does not talk about how to use it. I was hoping that someone could give me some insight into how to enable this function under Emacs, as I cannot find any other documentation on it. > -Original Messa

Re: [PHP] PHP coding question

2001-04-06 Thread andre
Try this : if($page_num % 8 == 0) { do this } or to make it a bit more obvious: if(($page_num % 8) == 0) { do this } This way the "if" statement is executed only when the remainder of $page_num divided by 8 is equal to zero, i.e. $page_num is a multiple of 8. > > if ($page_num is a mul

Re: [PHP] PHP coding question

2001-04-06 Thread Gustavo Vieira Goncalves Coelho Rios
Rory O'Connor wrote: > > I'm not a real programmer, so I am wondering if anyone can help me translate > this psuedo-code into php code: > > if ($page_num is a multiple of 8) { > > do this > > } > > If you want to know what I'm trying to do... > I have a left frame showing a re

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

2001-04-06 Thread Jani Taskinen
On Fri, 6 Apr 2001, Sterling Hughes wrote: >On Sat, 7 Apr 2001, Jani Taskinen wrote: > >> sniper Fri Apr 6 19:48:20 2001 EDT >> >> Modified files: >> /php4/ext/fdffdf.c >> Log: >> fixed protos >> > > >Yikes, it seems like you moved the grammar backwards... > >>From wh

Re: [PHP] Update: 1767 functions!

2001-04-06 Thread Plutarck
Unfortunately I can't find an option to make them all display on one page, or an option to make them easy to cut and paste so I can run them past my PHP script. So I'd have to manually compare the two lists...lmao -- Plutarck Should be working on something... ...but forgot what it was. ""Stev

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

2001-04-06 Thread Sterling Hughes
On Sat, 7 Apr 2001, Jani Taskinen wrote: > sniperFri Apr 6 19:48:20 2001 EDT > > Modified files: > /php4/ext/fdf fdf.c > Log: > fixed protos > Yikes, it seems like you moved the grammar backwards... >From what I remember of english, the active voice is the correc

[PHP] PHP coding question

2001-04-06 Thread Rory O'Connor
I'm not a real programmer, so I am wondering if anyone can help me translate this psuedo-code into php code: if ($page_num is a multiple of 8) { do this } If you want to know what I'm trying to do... I have a left frame showing a recordset of 8 records at a time. the frame on

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

2001-04-06 Thread Jani Taskinen
sniper Fri Apr 6 19:48:20 2001 EDT Modified files: /php4/ext/fdf fdf.c Log: fixed protos Index: php4/ext/fdf/fdf.c diff -u php4/ext/fdf/fdf.c:1.44 php4/ext/fdf/fdf.c:1.45 --- php4/ext/fdf/fdf.c:1.44 Fri Apr 6 16:17:31 2001 +++ php4/ext/fdf/fdf.c F

[PHP] experienced PHP/MYSQL/Perl/JAVA programmer

2001-04-06 Thread SAM G
Hi, I am experienced PHP/MYSQL/Perl/JAVA programmer, with many applications developed. If you have any projects need help, we can work together. If you are interested, pls send me e-mail for more details. Besides, I am in Toronto, would like to make some friends to exchange programming skill. Th

[PHP] $8/mo php hosting on 24/7, OC3+ web server

2001-04-06 Thread Jeffrey Greer
Hello, I am offering php hosting with features at a price no one else has, as far as I know. I'm not going to create a giant web hosting service. I'm doing this to pay for my web portal. - This web portal has been operated by the same person (my partner) for over four years. I have been a co-ad

Re: [PHP-CVS] cvs: php4 /ext/fdf fdf.c php_fdf.h

2001-04-06 Thread Jani Taskinen
On Sat, 7 Apr 2001 [EMAIL PROTECTED] wrote: >Why are you changing in the describtions of protos "Sets" to "Set", "Adds" >to "Add" and so on? I think the former was the right english description. >Please look into CODING_STANDARDS at php.net and phpdoc/funcsummary.txt. hmm..well, I checked the do

Re: [PHP] Update: 1767 functions!

2001-04-06 Thread Steve Werby
"Plutarck" <[EMAIL PROTECTED]> wrote: > I just discovered http://www.php.net/manual-lookup.php again, which happens > to list all the ones found in the manual. But, it doesn't have them all, so > my time wasn't wasted! I haven't counted the # of functions at Zend's PHP function table, but I'm pre

[PHP] cookies that don't expire

2001-04-06 Thread Joseph Bannon
How do you set cookies that don't expire? J Say I'm Hot! - Post Your Picture! http://www.sayimhot.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

[PHP] PHP form script in Javascript window

2001-04-06 Thread Claudia
I am attempting to use a Javascript popup window to open a new php form window that uses a php script to process the form data. All processing for the form is completed in the popup window. The issue I am encoutering is occurring with Netscape only -- I receive the following msg: Warning there

Re: [PHP-CVS] cvs: php4 /ext/fdf fdf.c php_fdf.h

2001-04-06 Thread eschmid+sic
On Fri, Apr 06, 2001 at 08:55:40PM -0400, Sean R. Bright wrote: > Speaking of which. How do I enable this mysterious folding mode in emacs? > I can't seem to find any documentation on it. PHP 4/CODING_STANDARDS. You can also check http://cvs.php.net/ --> php4 --> CODING_STANDARDS. -Egon -- Li

[PHP] how do i...?

2001-04-06 Thread rswfire
$var = "thisclass"; $myclass = new $var; how can i make it recognize $var as a class name? thankz in advance... = = [ rswfire ] http://rswfire.swifte.net/ http://profiles.yahoo.com/rswfire = ___

RE: [PHP-CVS] cvs: php4 /ext/fdf fdf.c php_fdf.h

2001-04-06 Thread Sean R. Bright
Speaking of which. How do I enable this mysterious folding mode in emacs? I can't seem to find any documentation on it. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 06, 2001 8:19 PM > To: Jani Taskinen; [EMAIL PROTECTED] > Subject: Re: [

Re: [PHP-CVS] cvs: php4 /ext/fdf fdf.c php_fdf.h

2001-04-06 Thread eschmid+sic
On Fri, Apr 06, 2001 at 11:17:32PM -, Jani Taskinen wrote: > sniperFri Apr 6 16:17:32 2001 EDT > > Modified files: > /php4/ext/fdf fdf.c php_fdf.h > Log: > Fixed some bugs. Why are you changing in the describtions of protos "Sets" to "Set", "Adds

Re: [PHP] Print or Echo.

2001-04-06 Thread Philip Olson
See this faq : What is the difference between echo and print? --- http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40 regards, philip On Fri, 6 Apr 2001, Sterling wrote: > H- > > Just a quick question. > > Is there any di

[PHP] HELP!! comparing arrays

2001-04-06 Thread paula
Hi- I'm new here and have this problem that's DRIVING ME CRAZY. I have two arrays as a result of two queries that I have to compare. Supose this two tables: This is my today table showing my actual stock (2001-04): t-shirtblue L jacket blackM sweater red

Re: [PHP] Nearly all (1755) PHP functions in a text file

2001-04-06 Thread Plutarck
The ones that started talking to me half-way through. I'd like to give a shout out to 346, 789, and 1747, and blue function#9. *twitch* -- Plutarck Should be working on something... ...but forgot what it was. ""Johnson, Kirk"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMA

php-general Digest 6 Apr 2001 23:40:36 -0000 Issue 612

2001-04-06 Thread php-general-digest-help
php-general Digest 6 Apr 2001 23:40:36 - Issue 612 Topics (messages 47430 through 47526): Re: Nearly all (1755) PHP functions in a text file 47430 by: maatt 47458 by: Phillip Bow 47460 by: Jason Lotito 47484 by: Johnson, Kirk Date formatting 47431 by

[PHP] escape characters

2001-04-06 Thread Adam
what is a list of all the characters that have to be escaped? -- 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] fwrite()

2001-04-06 Thread Richard
Check out .htmlspecialchars(..) .removeslashes() .stripslashes() - Richard "Augusto Cesar Castoldi" <[EMAIL PROTECTED]> wrote in message Pine.GSO.4.10.10104062012140.20277-10@venus">news:Pine.GSO.4.10.10104062012140.20277-10@venus... > I have a textarea and I want to save t

Re: [PHP] function return

2001-04-06 Thread Plutarck
I usually declare $db as global in the function, so I can just execute the function and continue with my querys. -- Plutarck Should be working on something... ...but forgot what it was. "Kurth Bemis" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > i'm tryi

[PHP] Update: 1767 functions!

2001-04-06 Thread Plutarck
*sigh* I just discovered http://www.php.net/manual-lookup.php again, which happens to list all the ones found in the manual. But, it doesn't have them all, so my time wasn't wasted! But I did discover a few I missed, so now there are about 1767 functions listed! The list is valid for all functi

[PHP-CVS] cvs: php4 /ext/fdf fdf.c php_fdf.h

2001-04-06 Thread Jani Taskinen
sniper Fri Apr 6 16:17:32 2001 EDT Modified files: /php4/ext/fdf fdf.c php_fdf.h Log: Fixed some bugs. Index: php4/ext/fdf/fdf.c diff -u php4/ext/fdf/fdf.c:1.43 php4/ext/fdf/fdf.c:1.44 --- php4/ext/fdf/fdf.c:1.43 Wed Apr 4 22:38:18 2001 +++ php4/e

[PHP] fwrite()

2001-04-06 Thread Augusto Cesar Castoldi
I have a textarea and I want to save the textarea text into a file. Then I put this in the html: And this in action of php: $fd = fopen("Augusto.wri", "w" ); fwrite($fd, $conteudo); fclose( $fd ); But I'm having a big problem on this. Is the text has this caracter ("), the PHP add "\" before.

Re: [PHP] Problem with newline and email

2001-04-06 Thread Plutarck
Doesn't either just "\r" or just "\n" work? Then again I've never tried using them, but I can't imagine that newline and carriage return doesn't force a new line. You could always send an HTML mail and use instead? -- Plutarck Should be working on something... ...but forgot what it was. "Pi

Re: [PHP] close tcp-IP connection before php-skript finishes

2001-04-06 Thread Plutarck
Genius! Thank thank thankyou! If I wasn't well rested I'd kiss you. Or more appropriately, I'd kiss the person that programmed that function in the first place...*rubs hands* Oh the fun I'm going to have figuring a way to actually use this for anything other than mail()... -- Plutarck Should b

Re: [PHP] Again about PHP + IRC

2001-04-06 Thread Plutarck
Check out phpwizard.net http://phpwizard.net/projects/phpIRC/ By reading through their code you can probably learn alot of what you want to know. -- Plutarck Should be working on something... ...but forgot what it was. "Marius Petravièius" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTE

Re: [PHP] Nested for() loops?

2001-04-06 Thread Plutarck
While it's apparently not always required, I always reccommend (and always do it personally) that you use a bracket around every function. So it should lool like this: "); } } ?> It makes it easier to see where the loops begin and where they end, and it stops most types of errors from appea

Re: [PHP] PHP Magazines?

2001-04-06 Thread Miles Thompson
None that I know of, but with PHP Advisor publications would not have anyone to suck up to. And where would the advertising stream be? This list, archives and the tutorial articles are more than adequate, in my opinion. Miles Thompson At 01:15 PM 4/3/01 -0400, Chris Anderson wrote: >Are there

Re: [PHP] Newsletter on the way..stuck in the moment!

2001-04-06 Thread Miles Thompson
BCC - blind carbon copy Miles At 11:23 AM 4/6/01 -0700, Dhaval Desai wrote: >Hi! > >Well, I want to send an email to about 300 people. The >problem is that if I use this method people can see >all the email address of the people whoever it is sent >to. > > > >$connect = mysql_connect(); >$query

Re: [PHP] Print or Echo.

2001-04-06 Thread Alexander Wagner
Jeff Oien wrote: > "As for a print vs. echo, echo gives you more options, > such as being able to continue output on multiple lines > like an < you would not be able to accomplish this." There's another difference. print() returns true on success and false when called after a connection abort. E

Re: [PHP] bug in php4 with postgres?

2001-04-06 Thread Martín Marqués
On Friday 06 April 2001 21:44, Kristopher Yates wrote: > How come sometimes I get this message and sometimes I dont? > > [Fri Apr 6 13:49:15 2001] [error] PHP Warning: 3 is not a valid > PostgreSQL lin > k resource in /usr/local/apache/htdocs/ltt-dev/htdocs/formproc.php3 > on line 134 > > It wor

RE: [PHP] mail() limit?

2001-04-06 Thread Boaz Yahav
IMHO, it's not the mail() limit but rather the SMTP protocol limit and it seems to vary between different OS's. I wouldn't go for more than 50 emails in one Bcc. You need to take into consideration that the email length vary and that there may be 50 emails that sum up to 500 chars and some can b

RE: [PHP] Print or Echo.

2001-04-06 Thread Jeff Oien
> H- > > Just a quick question. > > Is there any difference between using print or echo? > > >From what I have read and seen there isn't any. > Than why the two different commands? > > Thanks. > -Sterling See this: http://www.php.net/manual/en/function.print.php "As for a print vs. echo

Re: [PHP] Print or Echo.

2001-04-06 Thread Joe Stump
> Than why the two different commands? Simple - some people come from C which uses print ... others come from languages that use echo. It fosters adaptation by other programmers. --Joe > > Thanks. > -Sterling > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail

[PHP] Print or Echo.

2001-04-06 Thread Sterling
H- Just a quick question. Is there any difference between using print or echo? >From what I have read and seen there isn't any. Than why the two different commands? Thanks. -Sterling -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

[PHP] Looking for members in the Twin Cities

2001-04-06 Thread Chris Moewes-Bystrom
We are looking for members for the Twin Cities PHP User Group. Interested parties can see http://www.moewes.com/tcphpug.html or http://www.phpusergroups.org/groups.phtml?id=3&menu=groups -- Chris Moewes-Bystrom [EMAIL PROTECTED] http://teamstore.com -- PHP General Mailing List (http://www.p

RE: [PHP] Building an array from a URL

2001-04-06 Thread Jonathan Sharp
can you just use a POST instead of a get? seems it might be cleaner in this case... -js > -Original Message- > From: Plutarck [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 05, 2001 11:22 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Building an array from a URL > > > You'll probab

RE: [PHP] Array of words in textfile?

2001-04-06 Thread Jonathan Sharp
If you're splitting by a defined pattern (such as a space " ") explode is quite a bit faster...and i believe that if you need reg exps. you can use split() (which will take a regex as the pattern)... -js > -Original Message- > From: Plutarck [mailto:[EMAIL PROTECTED]] > Sent: Thursday, A

RE: [PHP] Variables

2001-04-06 Thread Jonathan Sharp
Have you looked at php.net/manual/ ? Just read through the variables portion and it goes over it. -js > -Original Message- > From: Cheng, Kynan (London) [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 06, 2001 9:54 AM > To: '[EMAIL PROTECTED]' > Subject: RE: [PHP] Variables > > > Thanks

RE: [PHP] Which is better??

2001-04-06 Thread Jonathan Sharp
> My forms page is named "submit.phtml" > and if you use the then you don't even need to wory about the file name, as it will always submit to itself... -js > -Original Message- > From: Curtis [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 06, 2001 9:27 AM > To: php > Subject: [PH

[PHP] mail() limit?

2001-04-06 Thread Chris
Hi, Does anyone know if and what the limit is of bcc that can be used in the mail() function? Hundreds, thousands? Thanks, Chris

RE: [PHP] Newsletter on the way..stuck in the moment!

2001-04-06 Thread Boaz Yahav
300 recipients is allot. I would not use a script for so many. Why don't you use a program that was designed to send many emails such as Group Mail : http://www.sellshareware.com/CustomView.asp?PrID=34604&AfID=2407&PageID=1 I use it to send mail to tens of thousands of recipients and it's great

[PHP] Tutorial for a php based chat enviroment

2001-04-06 Thread Lars Reith
Hi, has someone an idea where to find a tutorial to build a php based chat enviroment (both implementation and, very important, the logical background) Many thank in advance Lars ;-) __ Do You Yahoo!? Gesendet von Yahoo! Mail - htt

[PHP] Decode ?iso strings?

2001-04-06 Thread Jeroen Geusebroek
Hello, I'm creating a mailinglist archive in PHP, and all is going very well. I'm planning to release it open source when version 1.0 is ready. I have a question, when i get emails and parse them sometimes the name of the sender is in this format: =?iso-8859-13?B?TWFyaXVzIFBldHJhdmnoaXVz?= Ho

[PHP] PHP Magazines?

2001-04-06 Thread Chris Anderson
Are there any PHP magazines stateside? I see all kinds of ASP mags, but none for PHP

[PHP] FastTemplate strange Error

2001-04-06 Thread Gustavo Vieira Goncalves Coelho Rios
Hi folks, i writing in order to get a simple problem i am facing with FastTemplate PHP lib. I am trying to get my template parsed, but when i access the url, i get an error: Warning: Undefined property: table in /usr/home/grios/.public_html/php_inc/FastTemplate.inc on line 376 0 0 1 10 2 20 3 30

[PHP] Again about PHP + IRC

2001-04-06 Thread Marius Petravičius
Hello php, Soeey but I can't find anyexample abot PHP + IRC.. Please help me. _ 2001 m. balandþio 6 d. Marius [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

RE: [PHP] FORM with a posting value

2001-04-06 Thread Johnson, Kirk
Oops. You do need the type=image and src= attributes, instead of what I wrote in the example. Good thing it's Friday :) > -Original Message- > From: Johnson, Kirk > Sent: Friday, April 06, 2001 1:29 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] FORM with a posting value > > > Yes, b

RE: [PHP] FORM with a posting value

2001-04-06 Thread Johnson, Kirk
Yes, but you no longer check the value of "value" to determine which button was clicked. Instead, give each button a unique *name* attribute, then check if $name_x is set. The browser returns the x,y coordinates of the point where the user clicks the button, in variables named name_x and name_y.

[PHP] FORM with a posting value

2001-04-06 Thread Jared Howard
I have a page with multiple form submit buttons that carry different values to do different functions and such. ... Which works great!! However, I grow tiresome of the typical button "look", and in my attempt to use an image instead: failed. Is there a way to do this? I have changed

Re: [PHP] Close Window script

2001-04-06 Thread Pierre-Yves Lemaire
You could do it only in javavascript or in php echo "Close this window\n"; py At 02:45 PM 4/6/01 -0400, you wrote: >Hi all, >Can anyone tell me how to write a script to close the current opened window >with hyperlink? Thank you. > >Calvin Chua >Systems Analyst >InterClean Equipment, Inc. >734

RE: [PHP] Close Window script

2001-04-06 Thread Sam Masiello
You need to do this using Javascript since it is a client side function. window.close() is the function you are looking for. HTH Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: Wee Chua [mailto:[EMAIL PROTECTED]] Sent: Friday,

Re: [PHP] Close Window script

2001-04-06 Thread Lindsay Adams
This is offtopic, but easy User javascript Make your link = linked item If you are wanting to do it with PHP, stop. PHP is server side only http is connectionless, the server can't tell the client to close it's window. On 4/6/01 11:45 AM, "Wee Chua" <[EMAIL PROTECTED]> wrote: > Hi all, > Can

[PHP] Extension_dir in php.ini?

2001-04-06 Thread Lindsay Adams
Okay, you may call me an idiot all you want, But if the extension_dir= ./ In php.ini And PHP is loaded as an apxs module in apache, then just where does ./ point to? ServerRoot? DocumentRoot? Some other directory? Having a major brain in getting my .so into the right place. Also, how can I

[PHP] Close Window script

2001-04-06 Thread Wee Chua
Hi all, Can anyone tell me how to write a script to close the current opened window with hyperlink? Thank you. Calvin Chua Systems Analyst InterClean Equipment, Inc. 734-975-2967 www.InterClean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] bug in php4 with postgres?

2001-04-06 Thread Kristopher Yates
How come sometimes I get this message and sometimes I dont? [Fri Apr 6 13:49:15 2001] [error] PHP Warning: 3 is not a valid PostgreSQL lin k resource in /usr/local/apache/htdocs/ltt-dev/htdocs/formproc.php3 on line 134 It worked fine until I upgraded to PHP4 and now a bunch of code is broke

Re: [PHP] Help please.

2001-04-06 Thread Steve Werby
"Chris" <[EMAIL PROTECTED]> wrote: > I am trying to find some info on upgrading from php3 to php4. > I can't seem to find any docs about upgrading, just installing. > Is this the same thing? > Do I have to re-compile apache just to go from php3 to php4? Upgrading from PHP3 to PHP4 consists of ins

Re: [PHP] Newsletter on the way..stuck in the moment!

2001-04-06 Thread Steve Werby
"Dhaval Desai" <[EMAIL PROTECTED]> wrote: > Well, I want to send an email to about 300 people. The > problem is that if I use this method people can see > all the email address of the people whoever it is sent > to. Add the addresses to the bcc: field instead of the to: field. I believe this is

Re: [PHP] Which is better??

2001-04-06 Thread Felix Kronlage
On Fri, Apr 06, 2001 at 12:27:22PM -0400, Curtis wrote: > Self Referenceing or have the data sent to another page for the > processing. I usually do self-referencing, since this way I have everything in one place, don't rely on two scripts, don't need to open two files in my editor etc. :) -fk

Re: [PHP] Help please.

2001-04-06 Thread Chris
Yes, thank you, but this has nothing to do with what I asked, this is about CODE migration. > http://www.php.net/manual/en/migration4.php > > > -Original Message- > > From: Chris [mailto:[EMAIL PROTECTED]] > > Sent: Friday, April 06, 2001 12:19 PM > > To: php > > Subject: [PHP] Help plea

RE: [PHP] Nearly all (1755) PHP functions in a text file

2001-04-06 Thread Johnson, Kirk
So, now that you've seen 'em all, which one is your favorite? :) Kirk > -Original Message- > From: Plutarck [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 06, 2001 1:17 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Nearly all (1755) PHP functions in a text file > In any case, there are

RE: [PHP] mssql_pconnect issues?

2001-04-06 Thread Kees Hoekzema
maybe, but fact is that it isn't in php404pl1, and it usefull if you use persistent connections :) Kees -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Namens Michael Kimsal Verzonden: Friday, April 06, 2001 5:12 PM Aan: [EMAIL PROTECTED] Onderwerp: Re: [PHP] ms

[PHP] Newsletter on the way..stuck in the moment!

2001-04-06 Thread Dhaval Desai
Hi! Well, I want to send an email to about 300 people. The problem is that if I use this method people can see all the email address of the people whoever it is sent to. \n"; $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; $subject = "hey"; $to = "$add"; $mailmessage = "hey this

RE: [PHP] Help please.

2001-04-06 Thread Johnson, Kirk
http://www.php.net/manual/en/migration4.php > -Original Message- > From: Chris [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 06, 2001 12:19 PM > To: php > Subject: [PHP] Help please. > > > Hi, > I am trying to find some info on upgrading from php3 to php4. > I can't seem to find any

[PHP] Help please.

2001-04-06 Thread Chris
Hi, I am trying to find some info on upgrading from php3 to php4. I can't seem to find any docs about upgrading, just installing. Is this the same thing? Do I have to re-compile apache just to go from php3 to php4? Thanks, Chris.

[PHP-CVS] cvs: php4 /ext/gd gd.c php_gd.h

2001-04-06 Thread Jani Taskinen
sniper Fri Apr 6 11:01:52 2001 EDT Modified files: /php4/ext/gdgd.c php_gd.h Log: Killed some compile warnings. Index: php4/ext/gd/gd.c diff -u php4/ext/gd/gd.c:1.120 php4/ext/gd/gd.c:1.121 --- php4/ext/gd/gd.c:1.120 Sat Mar 31 22:20:45 2001 +++

[PHP] No character set?

2001-04-06 Thread Leon Mergen
Hello all, Today, I compiled my PHP as CGI, since I want to use some PHP scripts in cron jobs. Shouldn't be too hard, I tought, and compiled with ./configure --with-mysql For some strange reason, it does not work. Look at this: [root@blazebox cron]# php ./missiles.php File 'NONEXISTE

[PHP] Virtual Hosts on Solaris with iPlanet Enterprise

2001-04-06 Thread Tom Freeman
Does anyone know the way to make php4 running as NSAPI, work with named virtuals? It seems to work only if it is a real virtual (with its own IP) and not a named virtual. Any help is greatly appreciated Tom Freeman Web Analyst StellarRAD Systems an Everest Global Technologies Company p | 636

Re: [PHP] PHP/MySQL Code

2001-04-06 Thread Steve Werby
"long huynh" <[EMAIL PROTECTED]> wrote: > I think the function should be mysql_num_rows. There's an mSQL function > msql_numrows, but for MySQL it needs the second underscore in between 'num' > and 'rows'. > > > $num = mysql_numrows($result); Either will work. mysql_numrows() is the old name of

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

2001-04-06 Thread Sean Bright
elixer Fri Apr 6 10:48:34 2001 EDT Modified files: /php4/ext/skeleton skeleton.c Log: Fixed possible overflow again. # Heh... Index: php4/ext/skeleton/skeleton.c diff -u php4/ext/skeleton/skeleton.c:1.13 php4/ext/skeleton/skeleton.c:1.14 --- php4/ext/sk

[PHP] "odbc_result", long data get cut off????

2001-04-06 Thread Scott Fletcher
Hi! I found an interesting PHP issues here. I use the "odbc_result_all" or "odbc_fetch_row" or "odbc_result" to display the data in any column in a row. What I got is that a very long data on a column box doesn't show them all on the website. The MS-SQL database showed all of the data in t

Re: [PHP] Nested for() loops? -> Now Multi Dimension Arrays

2001-04-06 Thread Joe Stump
You just do something like this: '.$val."\n"; ?> Just throw arrays into arrays :O) --Joe On Fri, Apr 06, 2001 at 11:18:19AM -0600, [EMAIL PROTECTED] wrote: > > > Joe Stump wrote: > > > > A copy and paste into foo.php and then a php -q foo.php yielded results for > > me. > > Yeah, it's gi

Re: [PHP] Nested for() loops? -> Now Multi Dimension Arrays

2001-04-06 Thread jvoth
Joe Stump wrote: > > A copy and paste into foo.php and then a php -q foo.php yielded results for > me. Yeah, it's giving me results too today. I don't know what went wrong yesterday. To extend my question, I'm trying to work with multidimensional arrays. For example, I would like to do this:

Re: [PHP] PHP/MySQL Code

2001-04-06 Thread long huynh
I think the function should be mysql_num_rows. There's an mSQL function msql_numrows, but for MySQL it needs the second underscore in between 'num' and 'rows'. > $num = mysql_numrows($result); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

RE: [PHP] PHP/MySQL Code

2001-04-06 Thread Jeff Oien
> "Jeff Oien" <[EMAIL PROTECTED]> wrote: > > This code won't work. I'm trying to get an error if the username > > is entered incorrectly but it won't go through the if brackets. I even > > tried printing out $num and it's 0. I also tried > > if ($num = "0") { > > if ($num = '0') { > > The single

Re: [PHP] PHP/MySQL Code

2001-04-06 Thread Brian S. Dunworth
At 11:51 AM 4/6/01 -0500, Jeff Oien wrote: >if ($num = 0) { > print "error message etc. > exit; >} This "conditional" will always run. you are assigning $num the value of zero within your if() statement, and that assignation actually happens, so the result is "true" and the

RE: [PHP] PHP/MySQL Code

2001-04-06 Thread Jon Haworth
The comparison operator is ==. = means "assign". Try: if ($num == 0) { foo(bar, baz); } AFAIK what your code means is "assign 0 to $num and then, if that worked, print the error message." HTH Jon -Original Message- From: Jeff Oien [mailto:[EMAIL PROTECTED]] Sent: 06 April 2001

Re: [PHP] PHP/MySQL Code

2001-04-06 Thread Steve Werby
"Jeff Oien" <[EMAIL PROTECTED]> wrote: > This code won't work. I'm trying to get an error if the username > is entered incorrectly but it won't go through the if brackets. I even > tried printing out $num and it's 0. I also tried > if ($num = "0") { > if ($num = '0') { The single "=" sets the var

RE: [PHP] Variables

2001-04-06 Thread Cheng, Kynan (London)
Thanks for the tips guys, but I'm also new to the coding... can anyone tell me what the script to accept the variable might be? Geocities does do lots of Cgi scripts - is that better/easier? > -Original Message- > From: Jon Haworth [SMTP:[EMAIL PROTECTED]] > Sent: 06 April 2001 17:20 >

RE: [PHP] Nested for() loops?

2001-04-06 Thread Johnson, Kirk
I cut and pasted your code and it worked fine - ??? kirk > As a test, I did this and it doesn't work. The script simply doesn't > give any output. > > error_reporting(E_ALL); > > for( $i=0; $i<10; $i++ ) > for( $j=0; $j<10; $j++ ) > { > $res = $i * $j; > print(" result = $res

[PHP] PHP/MySQL Code

2001-04-06 Thread Jeff Oien
This code won't work. I'm trying to get an error if the username is entered incorrectly but it won't go through the if brackets. I even tried printing out $num and it's 0. I also tried if ($num = "0") { if ($num = '0') { error message etc. exit; } Jeff Oien -- PHP General Mailing List

Re: [PHP] Nested for() loops?

2001-04-06 Thread Joe Stump
A copy and paste into foo.php and then a php -q foo.php yielded results for me. --Joe On Fri, Apr 06, 2001 at 10:44:59AM -0600, [EMAIL PROTECTED] wrote: > Howdy Y'all! > > I'm trying to figure out why I'm having so much difficulty with > nested for loops. > > As a test, I did this and it doesn

  1   2   >