php-general Digest 13 Mar 2001 01:50:28 -0000 Issue 563 Topics (messages 43464 through 43593): Re: Mailing List 43464 by: Jens Nedal 43466 by: Peter Sabaini 43587 by: David Robley (doubt)PHP console run 43465 by: Celestino Roberto Alejandro PHP Book 43467 by: Marcelo Pereira 43482 by: Tristan.Pretty.risk.sungard.com 43484 by: Tristan.Pretty.risk.sungard.com Re: Advanced PHP 43468 by: Brinkman, Theodore 43492 by: PHPBeginner.com PHP scripts 43469 by: Alexandre Hautequest 43570 by: Nuno Silva Re: Good Free PHP Editor? 43470 by: Boget, Chris 43472 by: Kevin Cawthorne 43473 by: Doug Brewer 43483 by: Harshdeep S Jawanda 43485 by: Data Driven Design 43486 by: The Arting Starvist 43493 by: PHPBeginner.com 43506 by: Ryan Christensen 43541 by: Simon Garner 43544 by: Angerer, Chad 43545 by: Boget, Chris 43548 by: James R. Edgar 43550 by: Boget, Chris 43552 by: Boget, Chris 43576 by: Jed Moss Re: [PHP-DB] newbie: MySQL importing data from a variable 43471 by: Miles Thompson javascript question 43474 by: Miguel Loureiro Print form variables in PHP 43475 by: Dream 43478 by: Jon Haworth Re: Best way to pass SQL TEXT field via a link 43476 by: The Arting Starvist content-type problem with file uploads 43477 by: James Tremain 43479 by: Nick Davies Re: fscanf 43480 by: Kubol Re: Pluralize a word for searching a database 43481 by: Robert V. Zwink Good Free Book... 43487 by: stout.stoutstreet.com Re: Functional Programming Style? 43488 by: Ted Goranson syntax for session_register(); 43489 by: stas 43491 by: Sean B. 43498 by: stas Re: Using selected fields 43490 by: Tim Ward Re: Quotes in inputfields & Reload 43494 by: PHPBeginner.com Re: header 43495 by: PHPBeginner.com Re: Variable dynamique 43496 by: PHPBeginner.com Re: ASP vs PHP 43497 by: Michael Kimsal Graphic plugins? 43499 by: Todd Cary Re: Testing for session without setting cookies 43500 by: Simon Woods Re: sending SMS messages via PHP 43501 by: Steven WC (roberto)PHP&JVA 43502 by: Celestino Roberto Alejandro >From beginner 43503 by: Lembit Pirn Re: Classes and Kernel CPU Load? 43504 by: Krznaric Michael 43512 by: Christian Reiniger Linux / PHP and passwords -( md5 function) 43505 by: neil.web100.co.uk 43513 by: Christian Reiniger PHPLib & Phorum 43507 by: Matt Williams search a text file 43508 by: Peter Benoit 43519 by: CC Zona 43520 by: Peter Benoit 43539 by: CC Zona 43542 by: Peter Benoit 43546 by: CC Zona upload file problems 43509 by: Jerry Lake Have you ever seen this? 43510 by: Dhaval Desai 43516 by: Christian Reiniger HTTP_POST_VARS 43511 by: stas Kick one of these darn elements out of my array, I aint having it! 43514 by: Brandon Orther 43515 by: Thomas Deliduka 43584 by: David Robley Bug or what? 43517 by: Fabio Ottolini (EDB) 43518 by: Joe Stump Escape slashes? 43521 by: Tanya Brethour REDIRECT_SCRIPT_URL What/How'd I do this? 43522 by: Paul Warner getting client info 43523 by: Mitchell Hagerty 43536 by: Tanya Brethour Trouble setting up 43524 by: Luis 43525 by: Tanya Brethour 43526 by: Tanya Brethour 43530 by: Luis Get next record 43527 by: WreckRman2 43528 by: Boget, Chris 43529 by: Tanya Brethour what are the steps to recompile PHP? 43531 by: colin olkowski 43532 by: Tanya Brethour Need to download files in IE 43533 by: James R. Edgar 43538 by: Pierre-Yves Lemaire 43547 by: James R. Edgar 43549 by: Peter Benoit SOS ! 43534 by: Nicolas MERLET 43535 by: Phil Driscoll In my attempt to read from a text file... 43537 by: Peter Benoit 43543 by: CC Zona HTTP Bailout 43540 by: Nathan Cassano update two frames at once? 43551 by: Michael George 43553 by: Tanya Brethour 43554 by: Angerer, Chad 43556 by: Tanya Brethour 43559 by: Angerer, Chad 43561 by: Tanya Brethour 43588 by: Rene Maldonado 43589 by: Stephan Ahonen 43591 by: Jon Snell array 43555 by: Marco Aurlio 43558 by: Tanya Brethour 43560 by: James Atkinson Re: payment 43557 by: Philip D. Jenkins 43562 by: Russ Cobbe 43564 by: Mark Maggelet 43567 by: Russ Cobbe 43573 by: Mark Maggelet 43574 by: Aaron Tuller 43582 by: John Donagher 43583 by: Michael Kimsal Re: [PHP-DEV] HTTP Bailout 43563 by: Zeev Suraski PHP (re)install problems 43565 by: Jason Bouwmeester 43566 by: Jack Dempsey 43568 by: Jason Bouwmeester 43586 by: David Robley Re: Close persistent db-Connection 43569 by: Nuno Silva Cache Database-driven site 43571 by: Joachim Maier 43572 by: Aaron Tuller 43579 by: Joe Maier 43580 by: Andrew Hill 43590 by: Jon Snell over riding magic_quotes_sybase with ini_set() 43575 by: Johnson, Kirk Back Button Problem 43577 by: Corey Mosher ob_gzhandler strange behavior? 43578 by: Brian DeFeyter system() function 43581 by: Daniel Lynn DSO x CGI 43585 by: Christian Dechery Re: Grab and print user IP address 43592 by: Jon Snell no php archives? 43593 by: rick 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] ----------------------------------------------------------------------
Seems that such "blasphemy" as unsubscribing is not allowed ;) Dear heathen, once you sold your soul to PHP you have to payback lifelong, dont forget that! No escape ;) Contacting the Admin should do the thing i guess. regards, Jens Nedal on 12.03.2001 13:49 Uhr, Harshdeep S Jawanda at [EMAIL PROTECTED] wrote: > > >> On Mon, Mar 12, 2001 at 11:59:37AM +1030, David Robley wrote: >>> On Mon, 12 Mar 2001 11:54, Thomas Anderson wrote: >>>> Ok, I've tried time and time again to unsubscribe from php.net's >>>> mailing list unisubscribe instructions but it doesn't work. So how do I >>>> get off the list? > > I suppose you must already have tried sending mail to > [EMAIL PROTECTED] by now. > > Just one small point: is the email address from which you send off your > unsubscription request the one at which you receive mail from this list? > > Another point to consider: it may be that you are subscribed to the list using > a redirecting email address. If that is the case, you'll have to send your > unsubscription email from that address. Could you check that up? > > -- > Regards, > Harshdeep Singh Jawanda. > >
On Mon, Mar 12, 2001 at 06:19:04PM +0530, Harshdeep S Jawanda wrote: > > > > On Mon, Mar 12, 2001 at 11:59:37AM +1030, David Robley wrote: > > > On Mon, 12 Mar 2001 11:54, Thomas Anderson wrote: > > > > Ok, I've tried time and time again to unsubscribe from php.net's > > > > mailing list unisubscribe instructions but it doesn't work. So how do I > > > > get off the list? > > I suppose you must already have tried sending mail to > [EMAIL PROTECTED] by now. yes, and i didn't get an error message or bounce. > Just one small point: is the email address from which you send off your > unsubscription request the one at which you receive mail from this list? from the mail header: Received: from toye.php.net (va.php.net [198.186.203.51]) by mailhub.open-it.at (Switch-2.1.0.Beta2/Switch-2.1.0.Beta2) with SMTP id f2CCjYY26922 for <[EMAIL PROTECTED]>; Mon, 12 Mar 2001 13:45:34 +0100 --> at least the host toye.php.net thinks mail to peter sabaini should go to [EMAIL PROTECTED], which is the address i tried to unsubscribe. > Another point to consider: it may be that you are subscribed to the list using > a redirecting email address. If that is the case, you'll have to send your > unsubscription email from that address. Could you check that up? according to the ezlm welcome messg. to ezlm i am known as [EMAIL PROTECTED] regards, peter. -- Peter Sabaini [EMAIL PROTECTED] NETCONOMY Onlineberatungs- und -management Gmbh & Co KG www.netconomy.net - Schoenaugasse 64, 8010 Graz Tel. +43-(0)316 875-3081
On Mon, 12 Mar 2001 19:41, Peter Sabaini wrote: > On Mon, Mar 12, 2001 at 11:59:37AM +1030, David Robley wrote: > > On Mon, 12 Mar 2001 11:54, Thomas Anderson wrote: > > > Ok, I've tried time and time again to unsubscribe from php.net's > > > mailing list unisubscribe instructions but it doesn't work. So how > > > do I get off the list? > > > > The following is at the bottom of each message from the list: > > > > To contact the list administrators, e-mail: > > [EMAIL PROTECTED] > > which i did. and also emailed [EMAIL PROTECTED] > > to no avail i am afraid. > > i think you should check your setup... > > meanwhile i am just going to set up some procmail rule to redirect > this to /dev/null i guess. > > <shrug /> > > peter. > > --- snip --- Return-Path: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] Received: (qmail 14438 invoked from network); 12 Mar 2001 09:13:05 -0000 Received: from r3antvie.styria.co.at (HELO lemonhead.styria.com) (195.12.208.21) by www.nisu.flinders.edu.au with SMTP; 12 Mar 2001 09:13:05 -00 That was from your message to me :-) Note the first line. Now, if you look at the headers of a message from the list to you, you'l see a Return-Path line like (for me): Return-Path: <[EMAIL PROTECTED]> which will tell you what the subscription address is. Armed with this information, you can then send a specific unsubscribe request [EMAIL PROTECTED] but substituting whatever is in your Return-Path. You _should_ then get a confirmation request for your unsubscription. -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA
Hello..friend... ..i have a doubt? how i can do for run php in console mode, or better say, that run script in my shell not in a browser... ..and, you give me a hand an i get the arm, how i can get the argument of the line of command?exist ARGV or ARGC? Roberto Celestino El sitio, "Tu portal en Internet" ----- Original Message ----- From: "Nick Davies" <[EMAIL PROTECTED]> To: "Harshdeep S Jawanda" <[EMAIL PROTECTED]> Cc: "Peter Sabaini" <[EMAIL PROTECTED]>; "PHP General" <[EMAIL PROTECTED]> Sent: Monday, March 12, 2001 10:35 AM Subject: Re: [PHP] Mailing List > On Mon, 12 Mar 2001, Harshdeep S Jawanda wrote: > > > Hi, > > > > Harshdeep S Jawanda wrote: > > > > > I suppose you must already have tried sending mail to > > > [EMAIL PROTECTED] by now. > > > > I tried this address and it worked for me. > > > > Obviously ;) > > > -- > > Regards, > > Harshdeep Singh Jawanda. > > > > > > > > > > > -- > 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] > >
Hi all, I am new at PHP and I realize that the pdf format of the PHP Book by Bruce Momjian at http://www.php.net has been removed from there and now there is only the html format (I guess I arrived very late to get the pdf format). Has anybody downloaded the pdf file of this book when the link was active ??? I really would like to get it. Thanks in advance, Marcelo Pereira Unicamp - Brasil
Hi there, I got this book from php.net is it the one you're after? who knows. I just tried mailing it to you, but it was a huge 9Mb and my Firewall stops mails after 5Mb What I have done for you is put it up on line at my site. Click here to get it, but remember it is 9Mb in size, have you got a fast connection. I'll take it down in a few days, if you still need it, let me know http://www.beetastic.co.uk/phpman.pdf good luck Tris... ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. **********************************************************************
My god, you ever have one of those days??? I missed out an R... the correct address is... http://www.beertastic.co.uk/phpman.pdf I am sorry, lets try again eh? Tris... Could not resolve nameserver. >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< On 3/12/01, 8:44:32 AM, [EMAIL PROTECTED] wrote regarding [PHP] PHP Book: > Hi there, > I got this book from php.net is it the one you're after? who knows. > I just tried mailing it to you, but it was a huge 9Mb and my Firewall stops > mails after 5Mb > What I have done for you is put it up on line at my site. > Click here to get it, but remember it is 9Mb in size, have you got a fast > connection. > I'll take it down in a few days, if you still need it, let me know > http://www.beetastic.co.uk/phpman.pdf > good luck > Tris... > ********************************************************************** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the system manager. > This footnote also confirms that this email message has been swept by > MIMEsweeper for the presence of computer viruses. > ********************************************************************** > -- > 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] _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. **********************************************************************
Actually, the egg did. Eggs existed LONG before land animals, much less chickens. Besides, the first chicken hatched from an egg laid by an almost-chicken. - Theo -----Original Message----- From: Jerry Lake [mailto:[EMAIL PROTECTED]] Sent: Friday, March 09, 2001 6:38 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Advanced PHP The chicken did. as the Chicken is an actual chicken and the egg is a potential chicken. Actuality precedes potentiality Jerry Lake - [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -----Original Message----- From: Keith Vance [mailto:[EMAIL PROTECTED]] Sent: Friday, March 09, 2001 3:14 PM To: Kath Cc: Krznaric Michael; 'Rick St Jean'; [EMAIL PROTECTED] Subject: Re: [PHP] Advanced PHP What came first the chicken or the egg? Keith On Fri, 9 Mar 2001, Kath wrote: > Yeah. I even see some PHP book authors, like Julie Meloni here on this > list. > > There is never a question, no matter how retarded, that this list or #php on > irc.openprojects.net has never been able to answer. > > - Kath > > > ----- Original Message ----- > From: "Krznaric Michael" <[EMAIL PROTECTED]> > To: "'Rick St Jean'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Friday, March 09, 2001 5:11 PM > Subject: RE: [PHP] Advanced PHP > > > > If I'm not mistaken, the big boys keep an eye out over here. > > > > Mike > > > > > > -----Original Message----- > > From: Rick St Jean [mailto:[EMAIL PROTECTED]] > > Sent: Friday, March 09, 2001 4:54 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] Advanced PHP > > > > > > Does anyone know of any other lists that are a little more advanced, > > And has a little less traffic? I am not the end all be all by any means > of > > programming or PHP. I just want to know where the big boys hang out > > and learn some secrets that require some understanding. > > > > Rick > > ########################################################## > > # Rick St Jean, > > # [EMAIL PROTECTED] > > # President of Design Shark, > > # http://www.designshark.com/ > > # Quick Contact: http://www.designshark.com/messaging.ihtml > > # Tel: 905-684-2952 > > ########################################################## > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP 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]
If I am not wrong, there are over 5.000 subscribers to this list, while it only sends 200-300 emails a day. (I took this data from my own 80.000-emails mailbox, so don't judge my previsions) The "big boys", or better say these who do not write because of being busy but always read because there's always something to learn, ARE HERE. If you look at archives you'll find a lot of advanced help messages, as well as generic ones. I think - there's nothing bigger then [EMAIL PROTECTED], that's where I, and most of my team learn and update ourselves. we're always following this community from above. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -----Original Message----- From: Brinkman, Theodore [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 11:16 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Advanced PHP Actually, the egg did. Eggs existed LONG before land animals, much less chickens. Besides, the first chicken hatched from an egg laid by an almost-chicken. - Theo -----Original Message----- From: Jerry Lake [mailto:[EMAIL PROTECTED]] Sent: Friday, March 09, 2001 6:38 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Advanced PHP The chicken did. as the Chicken is an actual chicken and the egg is a potential chicken. Actuality precedes potentiality Jerry Lake - [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -----Original Message----- From: Keith Vance [mailto:[EMAIL PROTECTED]] Sent: Friday, March 09, 2001 3:14 PM To: Kath Cc: Krznaric Michael; 'Rick St Jean'; [EMAIL PROTECTED] Subject: Re: [PHP] Advanced PHP What came first the chicken or the egg? Keith On Fri, 9 Mar 2001, Kath wrote: > Yeah. I even see some PHP book authors, like Julie Meloni here on this > list. > > There is never a question, no matter how retarded, that this list or #php on > irc.openprojects.net has never been able to answer. > > - Kath > > > ----- Original Message ----- > From: "Krznaric Michael" <[EMAIL PROTECTED]> > To: "'Rick St Jean'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Friday, March 09, 2001 5:11 PM > Subject: RE: [PHP] Advanced PHP > > > > If I'm not mistaken, the big boys keep an eye out over here. > > > > Mike > > > > > > -----Original Message----- > > From: Rick St Jean [mailto:[EMAIL PROTECTED]] > > Sent: Friday, March 09, 2001 4:54 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] Advanced PHP > > > > > > Does anyone know of any other lists that are a little more advanced, > > And has a little less traffic? I am not the end all be all by any means > of > > programming or PHP. I just want to know where the big boys hang out > > and learn some secrets that require some understanding. > > > > Rick > > ########################################################## > > # Rick St Jean, > > # [EMAIL PROTECTED] > > # President of Design Shark, > > # http://www.designshark.com/ > > # Quick Contact: http://www.designshark.com/messaging.ihtml > > # Tel: 905-684-2952 > > ########################################################## > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP 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]
Hi all. How do i use php to build "shell scripts"? Please send me the compiler-time options or the link to the page that instructs me to how to do this, i had look at phpbuilder.com as mentioned before, but didn't find anything related. Thanks. -- Alexandre Hautequest hquest at fesppr.br Fundação de Estudos Sociais do Paraná - http://www.fesppr.br/ Centro de Administração de Redes - CAR "Ninguém é melhor do que todos nós juntos." Equipe Zeus Competições ------------------------------------------------- Esta mensagem foi enviada pelo WebMail da FESP. Conheça a FESP: http://www.fesppr.br/
Hi, just ./configure make and you'll get a php binary rwxr-xr-x :) (do not pass --with-apache or --with-apxs to ./configure) Regards, Nuno Alexandre Hautequest wrote: > Hi all. > > How do i use php to build "shell scripts"? Please send me the compiler-time > options or the link to the page that instructs me to how to do this, i had look > at phpbuilder.com as mentioned before, but didn't find anything related. > > Thanks. > > -- > Alexandre Hautequest > hquest at fesppr.br > Fundação de Estudos Sociais do Paraná - http://www.fesppr.br/ > Centro de Administração de Redes - CAR > > "Ninguém é melhor do que todos nós juntos." > Equipe Zeus Competições > > ------------------------------------------------- > Esta mensagem foi enviada pelo WebMail da FESP. > Conheça a FESP: http://www.fesppr.br/
> > Ive been using editpad up till now but my code is starting > > to get so large that ill need syntax highlighting soon... > HomeSite is great. www.allaire.com > - not totally free I'm afraid, but there is an eval version. > - runs under Windows yes > - supports syntax highlighting for lots of languages > including HTML, PHP, > Perl, SQL, ASP (VB/JS). > - can edit multiple files yes > - shows line numbers in gutter on left hand side > - supports regular-expression based search & replace across multiple > files/directories > - nice interface. Has the worst memory management of any software I've ever used. I have to reboot at lest 10 times a day when I use it. The support forum on their site is filled with complaints on this issue. Their response to this issue was not to fix the memory leak (or whatever it is) but to issue a warning when resources are getting dangerously low to give you the opportunity to save all your work before you reboot. Beyond that, their stance is "Well, if you don't like it, return it and we'll give you a refund". If this wasn't the only piece of software that handled projects the way we needed, we'd have thrown out this piece of garbage software a *long* time ago. Chris
Edit Plus - every time !!! www.editplus.com I love it - syntax highlighting and great auto-indent features! Kevin
As long as you are stretching the discussion to shareware, I highly recommend UltraEdit. This is the most feature-loaded extensible text editor I've ever seen. The $30 registration was more than worth it. It has add-on support for syntax highlighting for 100+ languages including PHP. http://www.ultraedit.com Doug | -----Original Message----- | From: Kevin Cawthorne [mailto:[EMAIL PROTECTED]] | Sent: Monday, March 12, 2001 8:35 AM | To: [EMAIL PROTECTED] | Subject: Re: [PHP] Good Free PHP Editor? | | | Edit Plus - every time !!! | | www.editplus.com | | I love it - syntax highlighting and great auto-indent features! | | Kevin | | | -- | 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] |
Hi, Andrew Halliday wrote: > Does anyone know of a good PHP enabled editor that fits the following > criteria:? > > (in order of importance) > - Is free > - Runs under Windows > - Has colors (syntax highlighting) > - Can edit multiple files (ie multi threaded) > - Reports line numbers > - Has good search & replace functionality Have you tried GNU emacs yet? It has all of the above and much more. You may need to separately download and install a package for PHP, though. -- Regards, Harshdeep Singh Jawanda.
It sounds like you just described Homesite. ----- Original Message ----- From: Harshdeep S Jawanda <[EMAIL PROTECTED]> To: Andrew Halliday <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, March 12, 2001 7:54 AM Subject: Re: [PHP] Good Free PHP Editor? > Hi, > > Andrew Halliday wrote: > > > Does anyone know of a good PHP enabled editor that fits the following > > criteria:? > > > > (in order of importance) > > - Is free > > - Runs under Windows > > - Has colors (syntax highlighting) > > - Can edit multiple files (ie multi threaded) > > - Reports line numbers > > - Has good search & replace functionality > > Have you tried GNU emacs yet? It has all of the above and much more. You may > need to separately download and install a package for PHP, though. > > -- > Regards, > Harshdeep Singh Jawanda. > > > > -- > 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] > >
I recently downloaded a newer EditPad Lite version that offers highlighting and other nice improvements over the "classic" EditPad. m -----Original Message----- From: Andrew Halliday <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Monday, March 12, 2001 12:04 AM Subject: Good Free PHP Editor? >Does anyone know of a good PHP enabled editor that fits the following >criteria:? > >(in order of importance) >- Is free >- Runs under Windows >- Has colors (syntax highlighting) >- Can edit multiple files (ie multi threaded) >- Reports line numbers >- Has good search & replace functionality > >??? > >Ive been using editpad up till now but my code is starting to get so large >that ill need syntax highlighting soon... > >AndrewH > >
Have you tried EditPlus? www.editplus.com they are especially good for search, replace function and highlighting is also very easy to use, you can even define your own functions to highlight. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -----Original Message----- From: The Arting Starvist [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 13, 2001 1:04 AM To: Andrew Halliday; [EMAIL PROTECTED] Subject: [PHP] Re: Good Free PHP Editor? I recently downloaded a newer EditPad Lite version that offers highlighting and other nice improvements over the "classic" EditPad. m -----Original Message----- From: Andrew Halliday <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Monday, March 12, 2001 12:04 AM Subject: Good Free PHP Editor? >Does anyone know of a good PHP enabled editor that fits the following >criteria:? > >(in order of importance) >- Is free >- Runs under Windows >- Has colors (syntax highlighting) >- Can edit multiple files (ie multi threaded) >- Reports line numbers >- Has good search & replace functionality > >??? > >Ive been using editpad up till now but my code is starting to get so large >that ill need syntax highlighting soon... > >AndrewH > > -- 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]
I'd definitely agree with that.. I've been using EditPlus for quite a while now, and have no complaints.. ""PHPBeginner.com"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Have you tried EditPlus? www.editplus.com > > they are especially good for search, replace function and highlighting is > also very easy to use, you can even define your own functions to highlight. > > > > Sincerely, > > Maxim Maletsky > Founder, Chief Developer > > PHPBeginner.com (Where PHP Begins) > [EMAIL PROTECTED] > www.phpbeginner.com > > > > > -----Original Message----- > From: The Arting Starvist [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 13, 2001 1:04 AM > To: Andrew Halliday; [EMAIL PROTECTED] > Subject: [PHP] Re: Good Free PHP Editor? > > > I recently downloaded a newer EditPad Lite version that offers highlighting > and other nice improvements over the "classic" EditPad. > > m > > -----Original Message----- > From: Andrew Halliday <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> > Date: Monday, March 12, 2001 12:04 AM > Subject: Good Free PHP Editor? > > > >Does anyone know of a good PHP enabled editor that fits the following > >criteria:? > > > >(in order of importance) > >- Is free > >- Runs under Windows > >- Has colors (syntax highlighting) > >- Can edit multiple files (ie multi threaded) > >- Reports line numbers > >- Has good search & replace functionality > > > >??? > > > >Ive been using editpad up till now but my code is starting to get so large > >that ill need syntax highlighting soon... > > > >AndrewH > > > > > > > -- > 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] >
From: "Boget, Chris" <[EMAIL PROTECTED]> > > HomeSite is great. www.allaire.com > > - not totally free I'm afraid, but there is an eval version. > > - runs under Windows yes > > - supports syntax highlighting for lots of languages > > including HTML, PHP, > > Perl, SQL, ASP (VB/JS). > > - can edit multiple files yes > > - shows line numbers in gutter on left hand side > > - supports regular-expression based search & replace across multiple > > files/directories > > - nice interface. > > Has the worst memory management of any software I've ever used. > I have to reboot at lest 10 times a day when I use it. The support > forum on their site is filled with complaints on this issue. Their response > to this issue was not to fix the memory leak (or whatever it is) but to > issue a warning when resources are getting dangerously low to give > you the opportunity to save all your work before you reboot. Beyond > that, their stance is "Well, if you don't like it, return it and we'll give > you a refund". > If this wasn't the only piece of software that handled projects the way > we needed, we'd have thrown out this piece of garbage software a *long* > time ago. > > Chris > Running under Win2K I can have HomeSite 4.5.1 open for weeks, working on 10+ files, without any problems whatsoever. However, I used to run it under Win98 and it would crash 1-2 times per day... Regards Simon Garner
Yes I use it with NT and run into occasional memory management problems as well. It is a great editor but has small issues that really can annoy a person. Also the FTP engine blows. It can be most unpredictable. Chad -----Original Message----- From: Simon Garner [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 2:43 PM To: Boget, Chris; [EMAIL PROTECTED] Subject: Re: [PHP] Good Free PHP Editor? From: "Boget, Chris" <[EMAIL PROTECTED]> > > HomeSite is great. www.allaire.com > > - not totally free I'm afraid, but there is an eval version. > > - runs under Windows yes > > - supports syntax highlighting for lots of languages > > including HTML, PHP, > > Perl, SQL, ASP (VB/JS). > > - can edit multiple files yes > > - shows line numbers in gutter on left hand side > > - supports regular-expression based search & replace across multiple > > files/directories > > - nice interface. > > Has the worst memory management of any software I've ever used. > I have to reboot at lest 10 times a day when I use it. The support > forum on their site is filled with complaints on this issue. Their response > to this issue was not to fix the memory leak (or whatever it is) but to > issue a warning when resources are getting dangerously low to give > you the opportunity to save all your work before you reboot. Beyond > that, their stance is "Well, if you don't like it, return it and we'll give > you a refund". > If this wasn't the only piece of software that handled projects the way > we needed, we'd have thrown out this piece of garbage software a *long* > time ago. > > Chris > Running under Win2K I can have HomeSite 4.5.1 open for weeks, working on 10+ files, without any problems whatsoever. However, I used to run it under Win98 and it would crash 1-2 times per day... Regards Simon Garner -- 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]
> > Has the worst memory management of any software I've ever used. > > I have to reboot at lest 10 times a day when I use it. The support > > forum on their site is filled with complaints on this issue. Their > > response to this issue was not to fix the memory leak (or whatever > > it is) but to issue a warning when resources are getting dangerously > > low to give you the opportunity to save all your work before you reboot. > > Beyond that, their stance is "Well, if you don't like it, return it and we'll > > give you a refund". > > If this wasn't the only piece of software that handled projects the way > > we needed, we'd have thrown out this piece of garbage software a *long* > > time ago. > Running under Win2K I can have HomeSite 4.5.1 open for weeks, > working on 10+ files, without any problems whatsoever. > However, I used to run it under Win98 and it would crash 1-2 times per > day... Unfortunately, I'm running Win98... :/ Chris
Hello, I use editplus. It has a feature that lets you add in auto completion files, syntax files. It does have an eval version, and it is not that expensive. http://www.editplus.com Regards, Edgar -----Original Message----- From: Boget, Chris [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 3:48 PM To: 'Simon Garner'; [EMAIL PROTECTED] Subject: RE: [PHP] Good Free PHP Editor? > > Has the worst memory management of any software I've ever used. > > I have to reboot at lest 10 times a day when I use it. The support > > forum on their site is filled with complaints on this issue. Their > > response to this issue was not to fix the memory leak (or whatever > > it is) but to issue a warning when resources are getting dangerously > > low to give you the opportunity to save all your work before you reboot. > > Beyond that, their stance is "Well, if you don't like it, return it and we'll > > give you a refund". > > If this wasn't the only piece of software that handled projects the way > > we needed, we'd have thrown out this piece of garbage software a *long* > > time ago. > Running under Win2K I can have HomeSite 4.5.1 open for weeks, > working on 10+ files, without any problems whatsoever. > However, I used to run it under Win98 and it would crash 1-2 times per > day... Unfortunately, I'm running Win98... :/ Chris
> I use editplus. It has a feature that lets you add in auto > completion files, syntax files. It does have an eval version, > and it is not that expensive. The main feature I need of any editor is project management. Of all (and there have been *alot*) the editors I've looked at, Homesite is the only software that works the way we need with respect to projects. :/ Chris
> It does have a project feature. Yup. It sure does. However, it doesn't work as we need it to. When I looked at EditPlus last time, it had a flat project structure. Meaning that you could add files to a project, but when you opened that project, all you would see is a list of all the files. This is irregardless of where the actual file exists. We need projects to be set up in a tree layout so that it basically looks like the directory structure of the website. So you'll end up with: -home --news -software --features ---v1.0 ---v1.5 --screenshots -contact --asia --europe etc with the relevant files in each of the folders/subfolders *in the project* with access to each when you click on the same. EditPlus, as far as I can recall, just lists out all of the files: /home/home1.php /home/home2.php /home/news/news1.php /home/news/news2.php /software/software1.php /software/software2.php and so on. If you have 100s of files in your project, you'll be scrolling and searching for a while to find one particular file... Chris
Check out HTML-Kit http://www.htmlkit.com This is free and has everything you described plus 1000s of features and plugins.
No problem. Initialize the counter before your loop, like so: $counter = 1; In the loop, print out the value of the counter and increment it by 1: echo $counter++; The "++" added to counter instructs PHP to increase the value by 1 AFTER the operation and is a shorthand way of saying echo $counter; $counter = $counter + 1; If the second way is clearer to you, and you feel more comfortable with it, do it that way. It will be well worth your time visiting www.thickbook.com and doing Julie Meloni's tutorials. She covers a lot of basic principles very clearly. You can also pick up a LOT of useful information on PHP at phpessentials, devshed, zend.com and so forth. Have fun - Miles At 11:00 AM 3/12/01 -0800, Gavin Tong wrote: >Miles, thank you for your prompt reply and suggestion. My problem is that I >am an absolute beginer, not only to php, but to programing in general. I >understand the logic of the counter but my attempts to add it into the >script have failed. Any direction you could give me would be greatly >appreciated. >Thanks again, >Gavin Tong
Hello all, I have a small problem, when using IE4.0 the property, in javascript, document.name_form_nameRadio[n].DISABLED it woks fine, but in Netscape 4.6 it dont. Anyone can give an ideia or an url for more information. I know that this isn't a php question, sorry. T.Y. all Miguel Loureiro<[EMAIL PROTECTED] >
Any idea of how to get information from a form (not a form controlled by me, through GET method, i.e. info coming with the URL, like this http://www.xxx.com/xxx.cgi?result=1&age=23&name=john) and print it through php v.3? I don't know how to get the info (coming from an outside form) and pass it throught the php3 variables...... Thanks, marc
If the ACTION attribute of the form points to your PHP script, the variables should automagically appear, i.e. $result would be "1", $age would be "23", and $name would be "john". Failing that you could investigate the explode() function. However, if the form isn't controlled by you, how come is it sending results to your script? Like the e-mail BTW :-) Cheers Jon -----Original Message----- From: Dream [mailto:[EMAIL PROTECTED]] Sent: 12 March 2001 15:27 To: [EMAIL PROTECTED] Subject: [PHP] Print form variables in PHP Any idea of how to get information from a form (not a form controlled by me, through GET method, i.e. info coming with the URL, like this http://www.xxx.com/xxx.cgi?result=1&age=23&name=john) and print it through php v.3? I don't know how to get the info (coming from an outside form) and pass it throught the php3 variables...... Thanks, marc -- 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' **********************************************************************
I'm passing the ID in the url, as recommended, and then having other problems that may or may not really be pertinent to this list: 1) The mySQL text data ($description) won't populate my form. I'm using <textarea> input, and it just won't accept and display the value of $description. It's empty, and when the form is re-submitted after editing, it empties the $description variable. 2) I also have image uploads in my form, and the <type=file> inputs will not accept values, either. Same problem as above .. the empty input areas cause the image names to be deleted from my database when the form is edited and re-submitted. I can think of a few kludgy workarounds, but I'd rather have a way to get these <textarea> and <file> inputs to accept values. Any help would be wonderful! ms -----Original Message----- From: Pierre-Yves Lemaire <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Sunday, March 11, 2001 6:52 AM Subject: Re: [PHP] Best way to pass SQL TEXT field via a link >Yes it would be a lot better to just passed the id in the url. > >py > >----- Original Message ----- >From: Fates <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Sunday, March 11, 2001 5:12 PM >Subject: [PHP] Best way to pass SQL TEXT field via a link > > >> I'm trying to update an existing record based on a link that represents >> the record to update. >> >> I have a link and I am passing variables that were assigned from a SQL >> database to another php form page which will be used to update the >> record. I'm passing variable like so:<a >> href='addupdate.php?name=$name&category=$category&description=$etc..... >> >> This works fine for variables that contain values of only a few lines >> but what about passing a couple paragraphs stored in variable >> $description assigned via database value as TEXT. >> >> Would it be better just to pass the database record ID to the >> destination page and then query the record in the destination form page >> and populate the form with the current values and update the record or >> is there another way I don't know about? >> >> >> -- >> 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] >> > >
I've been successfully uploading graphic files to a directory on my php server for more than a year. Suddenly, it no longer works, and after a lot of probing, I'm at a loss to determine why. I run PHP4.0.4pl1-3 as an Apache module on RedHat7. Files upload as expected, but PHP no longer provides the content-type as it should following the upload, in the variable: $HTTP_POST_FILES['file']['type']. Furthermore, the uploaded file no longer matches the original file: it has the content type prepended at the start of the uploaded file. For example, a file that starts out like this before the upload: -------------------------------- GIF89aB h ooorod?.}zqSL7/' ZO{}! , B h hj0J Zdizhlpn B|HchHZCh <snip> ------------------------------- ....looks like this after being uploaded: -------------------------------- Content-Type: image/gif GIF89aB h ooorod?.}zqSL7/' ZO{}! , B h hj0J Zdizhlpn B|HchHZCh <snip> ------------------------------- Clearly, these problems are related -- it seems the content-type header is being sent, but gets interpreted as part of the file instead of a header about the file. I just can't figure out why, especially since this worked as expected on the same hardware/software setup only days ago. Thank you in advance for any thoughts or recommendations!
Content-type = .... not Content-Type = ... On Mon, 12 Mar 2001, James Tremain wrote: > I've been successfully uploading graphic files to a directory on my php > server for more than a year. Suddenly, it no longer works, and after a lot > of probing, I'm at a loss to determine why. > > I run PHP4.0.4pl1-3 as an Apache module on RedHat7. Files upload as > expected, but PHP no longer provides the content-type as it should following > the upload, in the variable: $HTTP_POST_FILES['file']['type']. Furthermore, > the uploaded file no longer matches the original file: it has the content > type prepended at the start of the uploaded file. > > For example, a file that starts out like this before the upload: > > -------------------------------- > GIF89aB h ooorod?.}zqSL7/' ZO{}! , B h hj0J > Zdizhlpn B|HchHZCh <snip> > ------------------------------- > > ....looks like this after being uploaded: > > -------------------------------- > Content-Type: image/gif > > GIF89aB h ooorod?.}zqSL7/' ZO{}! , B h hj0J > Zdizhlpn B|HchHZCh <snip> > ------------------------------- > > Clearly, these problems are related -- it seems the content-type header is > being sent, but gets interpreted as part of the file instead of a header > about the file. I just can't figure out why, especially since this worked as > expected on the same hardware/software setup only days ago. > > Thank you in advance for any thoughts or recommendations! > > > >
01-03-13 05:00:01, "Yasuo Ohgaki" <[EMAIL PROTECTED]> wrote: >I think fscanf() is line oriented in C, isn't it? (I haven't used fscanf() for a >long time, I'm not 100% sure w/o reference.) no, i'm sure in c fscanf reads the next string available, not first string in next line >Your $buffer should only have "lenin". i agree. in first iteration buffer should contain "lenin", but in second the content should be "lives", not "forever", but is "forever" and i dont know why and i'm angry about it :-) >while (fscanf($file,"%s %s",$buf1,buf2)) >You should get "lives" in $buf2. i agree again, but i dont know how many stings do i have in one line. therefore i cant use fscanf($file,"n*%s",n*some_variables); besides it looks terrible... :-) regards, jakub zytka
In case anyone wonders, I ended up recompiling php with the pspell and aspell functions. These functions will return pluralized versions of words, along with possible spellings. I will probably try to customize the dictionary that comes with the programs, but other that that it appears to be what I am looking for. Thanks for your help. Robert Zwink -----Original Message----- From: Robert V. Zwink [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 28, 2001 11:43 AM To: PHP Mailing Listl (E-mail) Subject: [PHP] Pluralize a word for searching a database Importance: High Has anyone every written a function in php to pluralize an english word, particularly when searching a database? function pluralize($word){ return array of pluralized words; } Any help would be appreciated. Seems like their might be a nice regex waiting to handle this? Thanks! Robert Zwink http://zwink.levitate.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
....about PHP Editors? ;-\
Beyond that. Anything to suggest? The requirement is for a peer-peer agent-based situation-theoretic backward-chainer with quasirealtime browser feedback. A functional paradigm is indicated, with monads and all that. All the rest of the site is PHP-driven, so it could make sense to do as much as possible (on the server side) in php. It looks on the surface that if we stay away from arrays. and we make all functions side-effect free (essentially no overlapping internal variables) and we center the state of results on the browser (a natural for php), then we will be much of the way there, especially if we carefully limit scope as much as possible. Since we have language heaviweights on the list, thought perhaps there would be some insights into this. Thought also, that the list would appreciate a different question than the same old, same old, same old... Best, Ted >Argh Haskell - All the bad memories come flooding back. > >On Fri, 9 Mar 2001, Ted Goranson wrote: > > > Hello-- > > > > Is PHP suitable for programming in a Haskell-like fashion? Is there > > existing information on how to do this? _____________ Ted Goranson Fusecap and Sirius-Beta, Virginia Beach USA 757/426-6704 [EMAIL PROTECTED] Symmetry Conference: http://www.isis-s.unsw.edu.au
Hello, What is the correct syntax for registering a variable that's a part of an array. I tried these variations (i'm doing this in a loop): session_register('$form_val[$val]'); session_register($form_val[$val]); This registers _something_, but not what I need. Thanks for any help! stas
You were close: session_register("varname"); The key thing to remember is that it's the variable name WITHOUT the $. so... $variable = "Hello"; session_register("variable"); > > Hello, > > What is the correct syntax for registering a variable that's a part of an > array. I tried these variations (i'm doing this in a loop): > > session_register('$form_val[$val]'); > > session_register($form_val[$val]); > > This registers _something_, but not what I need. Thanks for any help! > > stas
Sean, as I said, I'm trying to accomplish this in a loop, and the variable is in array. To use your approach I would have to get rid of the loop and type out the code manually. This purpose of this is to create persistant form values in case form validation fails. Here's my code: <?php session_start(); while (list ($key, $val) = each ($form)) { if ($val) { session_register('$form_val[$val]'); $form_val[$val] = $val; echo "$form_val[$val]<br>"; echo "<a href=\"form.php\">test</a>"; } } ?> ----- Original Message ----- From: "Sean B." <[EMAIL PROTECTED]> > You were close: > session_register("varname"); > The key thing to remember is that it's the variable name WITHOUT the $. so... > $variable = "Hello"; > session_register("variable"); > > > > > Hello, > > > > What is the correct syntax for registering a variable that's a part of an > > array. I tried these variations (i'm doing this in a loop): > > > > session_register('$form_val[$val]'); > > > > session_register($form_val[$val]); > > > > This registers _something_, but not what I need. Thanks for any help!
> $sql = "SELECT * FROM $table_name > WHERE member = \"$member\" AND pw = \"$pw\" > "; presumably you then have something like ... $result = mysql_db_query($dbhandle, $sql); if (mysql_num_rows > 0) { $authorised = true; // ... now you can do $sql_fields = mysql_fetch_array($result); $userlevel = $sql_fields["userlevel"]; } else { $authorised = false; $userlevel = 0; } 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: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] > Sent: 12 March 2001 11:04 > To: [EMAIL PROTECTED] > Subject: Using selected fields > > > > > Hi there, > Firstly a big thanks to those who pointed me in the direction > of 'PHP-fast and > easy web development'. it was/is a great book, and I have > learnt loads on the > past week. > > Anyhoo... > > I have a php page and included the line: > > $sql = "SELECT * FROM $table_name > WHERE member = \"$member\" AND pw = \"$pw\" > "; > > Now I have a third column called 'userlevel'. > > I have a cookie that activates on successfully matching the > member and pw fields > from a form on the previous page. make sense? > > How can I tell the page to use the userlevel colunm too? > > Here is the relevent section to my code... can anyone point > me in teh rigth > direction please??? > > ============================ > > $sql = "SELECT * FROM $table_name > WHERE member = \"$member\" AND pw = \"$pw\" > "; > > $result = mysql_query($sql) > or die ("Can't execute query."); > > $num = mysql_numrows($result); > > if (($num != 0) && ($userlevel == 1)) { > > $cookie_name = "auth"; > $cookie_value = "ok"; > $cookie_expire = ""; > $cookie_domain =""; > setcookie($cookie_name, $cookie_value, $cookie_expire, "/", > $cookie_domain, 0); > > $display_block =" > > <p><B>Secret area:</B> > <UL> > <LI><a href=\"secreta.php\">secret page a</A> > <LI><a href=\"secretb.php\">secret page b</A> > <LI><a href=\"secretc.php\">secret page c</A> > <LI><a href=\"secretd.php\">secret page d</A> > <LI><a href=\"secreteb.php\">secret page e</A> > </UL> > "; > > } else { > > header("Location: http://www.mypage.com"); > exit; > } > > > > ================= > > Thanks guys... > Tris... > > > > > > ********************************************************************** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the system manager. > > This footnote also confirms that this email message has been swept by > MIMEsweeper for the presence of computer viruses. > > > ********************************************************************** >
hi Jens, PHP automatically escape the dangerous characters from the user input on form submissions. there are several ways to escape that back : stripslashes() urlencode() htmlentities() read about these, they will soon become your solutions. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -----Original Message----- From: Jens Nedal [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 7:24 PM To: [EMAIL PROTECTED] Subject: [PHP] Quotes in inputfields & Reload Hy everybody, Well here is the deal (Probably an easy one 8)) I have several inputfields and check if the are valid or have content. If an error occurs and the page reloads i simply echo the content of the fields back into the input fields, viola, wonderful. BUT if there are " eg. Quotes in those fields they suddenly read \" instead of " as they should 8( I guess that the parser is doing something to it there since " is a sensitive char in php. BUT how can i get the content to be reloaded correctly into the fields again. Here an example of how those fields look like <input type=text name=v_email value="<?php echo($v_email); ?>" size=40> tried it like this too, no difference: <input type=text name=v_email value="<?php echo("$v_email"); ?>" size=40> thx in advance, Jens Nedal -- 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]
Nick, headers work on Windows just as they do on Linux. Can you give us a piece of code so we can give you a hand with your problem? Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -----Original Message----- From: Nick Kostirya [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 4:33 PM To: [EMAIL PROTECTED] Subject: [PHP] header Hello! Why header under Windows do not work? Nick -- 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]
do this: ${$var.$num} But, as I can only guess you are not very familiar with arrays, they usually better for most of your needs. I think this is what you have to learn instead. www.php.net/arrays Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -----Original Message----- From: Pierre-Yves Lemaire [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 12:58 AM To: [EMAIL PROTECTED] Subject: [PHP] Variable dynamique I receive 2 variables, $var and $num I need to make a variable out of these two like this $var2 where $num = 2 or $var3 where $num = 3 How can I do that ? __________________ Pierre-Yves Lemaire 514.729.8100
Carsten Gehling wrote: > > > Are you sure? The #include is an SSI directive, not ASP. It should create > a > > separate internal HTTP request for the included file. I know for sure that > > for example you can include a JScript ASP page inside a VBScript ASP page > > like this - although I realise that's not the same difference as ASP/PHP. > > You're right about that, but AFAIK ASP will simply not allow two different > serverside script languages on the same page (which it becomes once the > inclusion is complete). You must state your @language=... directive as the > first ASP statement after which it cannot be changed. > > Unless of course you use: > > <script runat=server language=vbscript> > ... your code here > </script> > > <script runat=server language=jscript> > ... your code here > </script> > > Don't know if that will work though. > > - Carsten Yes it will work. we've used it in the past to do millisecond timing - had to use jscript for that because vbscript internals don't have any timer mechanism that accurate, but jscript did. it's the same computer, same OS, but each language had different capabilities.
Is there a plugin for browsers that will give the user the ability to Zoom, rotate, and do other graphic functions with images? Todd -- Todd Cary Ariste Software [EMAIL PROTECTED]
Hi all, Comments in the message below ... Yasuo Ohgaki wrote: > "Simon Woods" <[EMAIL PROTECTED]> wrote in message > > Hi All, > > > > Sorry if I am asking a vfaq but I was unable to find anything in the > > archives. > > > > I am using PHP4 with session handling to track users which have logged > > in to my server. > > > > I would like to (non intrusively) check to see if a user is logged in > > without having to start a new session. 95% of my users do not log in at > > all and do not want to be fed with cookies for no apparent reason. I > > wanted to avoid giving my visitors the impression that I am tracking > > them as well. > > I posted session helper html sample at zend code exchange. I might want to > use to detect cookie and javascript are enabled. You might want to use and > modify code to show reason why you are using cookie. Search keyword with > 'session' and look for session helper HTML. I am able to assume that all of my logged in users have cookies and what ever else I need turned on. > > > Or if you need session only for users logged in, you could write following code > and put each pages you might want to use session for logged in users. > > // If you are only using session cookie > // No auto start in php.ini. Check session value/format/referer also, if you > need. > if (!empty($HTTP_COOKIE_VARS['PHPSESSION'])) { > session_start(); > } > > to avoid sending cookie to users who are not logged in. (You must set session id > when users are logged in) I have added my own function session_isvalid() which checks for the existance of the cookie based on the above code which will be sufficient as a work around for my small application. This defeats the purpose somewhat of the session module however. I thought that the objective was to some extent hide the underlying implementation from the programmer. A non invasive check requires that I know which cookie is being used(assuming the use of cookies at all). The assumption is not very difficult to make, but the session handling would appear to be more complete with something like "session_isValid()".... > > > > I could check to see if the cookie PHPSESSION or what ever I called my > > cookie has been returned by the browser, but I have no guarantee that > > the session is still or at all valid. Checking to see if there are > > corresponding session files or writing my own handler start to get over > > complicated. > > I think all you need to do is checking session value format. HTML session > is easily hijacked if session key is known to users anyway. > Also, writing your own session handlers are not difficult. There are many > session > handlers for verious databases. How about look for one and modify? This would not help really anyway as the handler only replaces the storage mechanism (I hope I have understood this correctly!). We could however check the session id in our DB without having to call session_start(). If I have gone to such bother though (reading cookies directly and looking up in DB), I would be better off starting from scratch and ignoring the session module all together!! Stuff removed...... Thanks again for the help, Simon Woods -- Siemens Business Services D BIM CVS Mch P/Ca, Carl-Weri-Strasse 22, 81739 Muenchen, Germany Tel: +49-89-636-54347 (Fax: -54303) Internet-Mail: mailto:[EMAIL PROTECTED]
Hi, This may soon depend on what Cellco you are sending from/to in the UK. They used to pass on messages between themselves for no cost but I understand that they are going to change over to charging each other per message. This may effect their own free email gateways but it certainly will effect the 'independent' ones. If you want to use an SMSC to do this rather than via an email gateway, and you don't want to set up a link to a real SMSC, you could always use a mobile phone with an 'AT' modem interface (eg, Nokia 7110, 6210) or a GSM modem (a bit more expensive but dedicated to the task) as a virtual SMSC and link the software into that to send the SMS messages for you. There are a few SMS gateways around that will do that - quite a few are free. One example is 'Kannel' - its a WAP and SMS gateway. A nice thing about that one is that you can recieve SMS messages and have them be processed via PHP scripts - to process, respond etc. ""Valter Santos"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi! Instead of send a direct SMS to a SMSCenter you can send the message as an standard email... Many Cellcos allow that, and it will be cheaper to you (no cost!!!).... Here in Portugal we can do it... we just use the MSISDN (phone number) from who we want to send and sms and append the cellco mail server... As an example, to send a SMS to me, you can send a email to [EMAIL PROTECTED] this, probably will work... the mail user alias is my phone number and the server domain is the Cellco' mail server ~ hope this help ............................................ Valter Santos WEB/WAP Consultant Email : [EMAIL PROTECTED] Mobile: +351 93 9650075 WeDo Consulting - http://www.wedo.pt ............................................ > -----Original Message----- > From: Michael Smith [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, March 07, 2001 5:00 PM > 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]
Hello..i'm trying PHP&JAVA ..we can in my .java file import javax.swing classes, and the how i can do that runnin it with php, don't say the Error...of javax.swinng...etc..can't loaded...! thanks... Roberto Celestino
Hi there, I'm real beginner in php and tried to use sockets. I copied an example from manual (Simple TCP/IP client) and connected to my socket server. If I understadn manual correctly, then function read ($socket, $out, $len) is supposed to read buffer with length $len or break out with chr(0) or chr(10). When I tried, it read the buffer, but always timed out with default 30 sec no matter what I was doing on the other end of socket. while ($ab=read ($socket, $out, $len)) { echo $out; } Where should I look ? Lembit Pirn 7+7 Software tel.:+372 6313172 fax:+372 6459780 [EMAIL PROTECTED]
-----Original Message----- From: Krznaric Michael Sent: Monday, March 12, 2001 12:29 PM To: 'Jens Kisters' Subject: RE: [PHP] Classes and Kernel CPU Load? I don't know much about OS design, but I may want to check out how long the context switches are taking. That could be an issue? Mike -----Original Message----- From: Jens Kisters [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 10, 2001 10:25 AM To: [EMAIL PROTECTED] Subject: [PHP] Classes and Kernel CPU Load? I have Scripts that seem to cause imense Kernel (not user) CPU Load under Solaris, could this be caused by using classes? I already removed use of md5() and crypt() from the scripts no change so far. What else could cause an immense increase in Kernel CPU Load? tks Jens -- Grüße aus dem schönen Kleve Jens Kisters rosomm et partner Agentur für neue Medien GmbH Dienstleistungszentrum am Weißen Tor - Eingang B Gocher Landstrasse 2 47551 Kleve / Bedburg-Hau Telefon: 02821 - 97856-20 Telefax: 02821 - 97856-77 [EMAIL PROTECTED] http://www.rosomm-partner.de -- 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]
On Monday 12 March 2001 18:28, you wrote: > I don't know much about OS design, but I may want to check out how long > the context switches are taking. That could be an issue? Definitely not under Solaris :) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Install once, run forever. Linux.
Hello all I am trying to generate a MD5 string equal to a known passwords MD5 string , with no luck in order to make a new password file i have tried use php's : $value = md5($string); and $value = crypt($string,$salt); the passwds in my systems /etc/shadow all start with $1 which i believe is standard for MD5 passwords of 32 length any one have any ideas ? Thanks in advance Neil M
On Monday 12 March 2001 18:31, you wrote: > I am trying to generate a MD5 string equal to a known passwords MD5 > string , with no luck in order to make a new password file > > i have tried use php's : $value = md5($string); > and $value = crypt($string,$salt); > > the passwds in my systems /etc/shadow all start with $1 which i believe > is standard for MD5 passwords of 32 length The "$1$" is the start of a 12-char salt (as described in the manual entry for crypt ()). -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Install once, run forever. Linux.
Hi Does anyone know if anyone has built phorum or any other BB with PHPLib authentication?? I was wondering if I could save myself a lot of time.. TIA M@
I've got a bit of a task where I need to poll a text file for several lines of text which is buried deep within the file. These lines change each day, but the text surrounding them do not. Is it possible to extract these lines of information based on the text surrounding them?
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Peter Benoit) wrote: > I've got a bit of a task where I need to poll a text file for several lines > of text which is buried deep within the file. These lines change each day, > but the text surrounding them do not. > > Is it possible to extract these lines of information based on the text > surrounding them? Sure. preg_match() would be one way. -- CC
OK, I'm a little new to this, else I would have known that. Any examples out there I could use/modify? thanks, pete -----Original Message----- From: CC Zona [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 2:16 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] search a text file In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Peter Benoit) wrote: > I've got a bit of a task where I need to poll a text file for several lines > of text which is buried deep within the file. These lines change each day, > but the text surrounding them do not. > > Is it possible to extract these lines of information based on the text > surrounding them? Sure. preg_match() would be one way. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[quotes returned to bottom-posting, for clarity] In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Peter Benoit) wrote: > In article > <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Peter Benoit) wrote: > > > I've got a bit of a task where I need to poll a text file for several > lines > > of text which is buried deep within the file. These lines change each > day, > > but the text surrounding them do not. > > > > Is it possible to extract these lines of information based on the text > > surrounding them? > > Sure. preg_match() would be one way. > OK, I'm a little new to this, else I would have known that. Any examples > out there I could use/modify? Probably. You could check the manual's page on preg_match (the user annotations often have very useful code examples), phpbuilder.com, hotscripts.com, etc. A quick, oversimplified example: Let's say your complete text was (no laughing now <g>) "Mary had a little lamb, its fleece was white as snow." where "Mary had a " and "fleece was white as snow." are always consistent but whatever's happens to be the portion of the text between them is what you want to extract. You could do something like-- $search_string="Mary had a little lamb, its fleece was white as snow."; $status=preg_match("/^Mary had a(.*)(?=fleece was white as snow.)$/i",$search_string,$match_text); In which case, $status would evaluate to true if a (case-insensitive) match was found, and $match_text[1] would contain " little lamb, its ". -- CC
Very good info, but this text is located in a text file. How can I reference it this way? -----Original Message----- From: CC Zona [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 3:36 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] search a text file [quotes returned to bottom-posting, for clarity] In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Peter Benoit) wrote: > In article > <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Peter Benoit) wrote: > > > I've got a bit of a task where I need to poll a text file for several > lines > > of text which is buried deep within the file. These lines change each > day, > > but the text surrounding them do not. > > > > Is it possible to extract these lines of information based on the text > > surrounding them? > > Sure. preg_match() would be one way. > OK, I'm a little new to this, else I would have known that. Any examples > out there I could use/modify? Probably. You could check the manual's page on preg_match (the user annotations often have very useful code examples), phpbuilder.com, hotscripts.com, etc. A quick, oversimplified example: Let's say your complete text was (no laughing now <g>) "Mary had a little lamb, its fleece was white as snow." where "Mary had a " and "fleece was white as snow." are always consistent but whatever's happens to be the portion of the text between them is what you want to extract. You could do something like-- $search_string="Mary had a little lamb, its fleece was white as snow."; $status=preg_match("/^Mary had a(.*)(?=fleece was white as snow.)$/i",$search_string,$match_text); In which case, $status would evaluate to true if a (case-insensitive) match was found, and $match_text[1] would contain " little lamb, its ". -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Peter Benoit) wrote: > Very good info, but this text is located in a text file. How can I > reference it this way? Get the contents of the text file--for example, using fopen() with fread()--into a variable. Then use that variable as the second argument to preg_match(). -- CC
Using this code <snip> <?php if (is_uploaded_file($userfile)) { echo $userfile; copy($userfile, "/www/workbox/htdocs/audio"); } else { echo "Possible file upload attack: filename '$userfile'."; } ?> </snip> I keep getting the following error. the directory exists and is chmoded to 777, what am I doing wrong ? Warning: Unable to create '/www/workbox/htdocs/audio': Is a directory in /www/workbox/htdocs/upload.php on line 4 Jerry Lake - [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com
Hi! I know this is in no way related to Php but I am writing this mail coz I didn't know where to ask this question and I am sure there are a lot of Web Developers and Programmers who can help me out. Well There are some versions of some sites in two languages and both of them work equally well even If your system doesn't have fonts. It uses some kindaa server font management I gues.. Has anyone of you all out there worked on some site like that or have any idea on how it works. I can give you the URL: http://www.arabia.com __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
On Monday 12 March 2001 19:21, you wrote: > Well There are some versions of some sites in two > languages and both of them work equally well even If > your system doesn't have fonts. > It uses some kindaa server font management I gues.. > > Has anyone of you all out there worked on some site > like that or have any idea on how it works. > > I can give you the URL: > > http://www.arabia.com Well, I guess they should invest some more work in it :) ---- screen output ---- [an error occurred while processing this directive] ---- /screen output ---- -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Install once, run forever. Linux.
Hello, Is it that correct that only non-empty variables get inserted into HTTP_POST_VARS? I am trying to do server side form validations, and this represents a bit of difficulty in terms of notifying a user about which fields are missing values.
Hello, I want to take one element out of an array, is there a way to remove an element and have the array resorted so there isn't a blank spot where I remove the elements? Here is an example if the above text made no sense. Example: $array = Array("1", "2", "3", "4"); So: $array[0] = 1, $array[1] = 2, $array[2] = 3, $array[3] = 4 I want to kick $array[2] out and have $array[3] be moved to $array[2] Thank you, -------------------------------------------- Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com --------------------------------------------
On 3/12/2001 1:38 PM this was written: > I want to take one element out of an array, is there a way to remove an > element and have the array resorted so there isn't a blank spot where I > remove the elements? Here is an example if the above text made no sense. > > Example: $array = Array("1", "2", "3", "4"); > > So: $array[0] = 1, $array[1] = 2, $array[2] = 3, $array[3] = 4 > > I want to kick $array[2] out and have $array[3] be moved to $array[2] Only thing I can think of is a loop: $temparray = array(); Reset($array); while ($elem = current($array)) { if ($elem != "2") { $temparray[] = $elem } next($array); } $array = $temparray; -- Thomas Deliduka IT Manager ------------------------- New Eve Media The Solution To Your Internet Angst http://www.neweve.com/
On Tue, 13 Mar 2001 05:08, Brandon Orther wrote: > Hello, > > I want to take one element out of an array, is there a way to remove an > element and have the array resorted so there isn't a blank spot where I > remove the elements? Here is an example if the above text made no > sense. > > Example: $array = Array("1", "2", "3", "4"); > > So: $array[0] = 1, $array[1] = 2, $array[2] = 3, $array[3] = 4 > > I want to kick $array[2] out and have $array[3] be moved to $array[2] > > Thank you, >From a quick look at the array functions, it seems like array_splice might do the trick. It's PHP4 only, though. -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA
First File - index.php <?php header("Pragma: no-cache"); header("Cache-Control: no-cache, must-revalidate"); if(empty($check)) { $page = "index.php?check=1"; header("Location: $page"); setcookie("testcookie", "1"); } else { if(empty($testcookie)) { echo ("<font face=arial size=4 color=red>Problem detected!</font><br><br>" . "<b>Your browser does not support cookies!</b><br><br>" . "<font size=2>Enable cookies and try again.</font>"); die; } else { $page = "login.php"; header("Location: $page"); } } ?> Second File - login.php <?php header("Pragma: no-cache"); header("Cache-Control: no-cache, must-revalidate"); ?> <html> <head> <title>Forecast Tool - ATL Key Account</title> </head> <body> <form method="post" action="temp.php" name="form_login"> <table> <tr><td><font size="2" face="Arial, Helvetica, sans-serif">Login:</font></td> <td><input type="text" name="login" size="8" maxlength="8"><br></td></tr> <tr><td><font size="2" face="Arial, Helvetica, sans-serif">Password:</font></td> <td><input type="password" name="senha" size="8" maxlength="8"></td></tr> <tr><td><input type="reset" name="botao" value="Clear"></td> <td><input type="submit" name="submit" value="Login"></td></tr> </table> </form> </body> </html> Everything works fine when I use these two files with Apache running on Solaris, RH, Windows 98, Windows ME and Windows NT 4.0. The main objective is to test if the browser supports cookies of course. But... If I use Microsoft IIS with these two files it never works! The cookie is NEVER sent to the browser (this was verified using Netscape's option to warn about new cookies coming in) and obviously I always receive the error message stating that my browser doesn't support cookies! Impossible! The same application running on two different servers produces different results? Is it a bug? Thanks in advance!!! Best regards, Fábio Ottolini
We had NASTY problems with cookies on different servers. I've even seen code work on one linux/apache machine and not another. This is usually due to the fact that the server's clock is off from the browsers clock (or vice versus) and the browser sees that the cookie has passed and destroys it without setting it. --Joe On Mon, Mar 12, 2001 at 01:08:37PM -0600, Fabio Ottolini (EDB) wrote: > First File - index.php > > <?php > header("Pragma: no-cache"); > header("Cache-Control: no-cache, must-revalidate"); > if(empty($check)) { > $page = "index.php?check=1"; > header("Location: $page"); > setcookie("testcookie", "1"); > } > else { > if(empty($testcookie)) { > echo ("<font face=arial size=4 color=red>Problem detected!</font><br><br>" . > "<b>Your browser does not support cookies!</b><br><br>" . > "<font size=2>Enable cookies and try again.</font>"); > die; > } > else { > $page = "login.php"; > header("Location: $page"); > } > } > ?> > > Second File - login.php > > <?php > header("Pragma: no-cache"); > header("Cache-Control: no-cache, must-revalidate"); > ?> > <html> > <head> > <title>Forecast Tool - ATL Key Account</title> > </head> > <body> > <form method="post" action="temp.php" name="form_login"> > <table> > <tr><td><font size="2" face="Arial, Helvetica, sans-serif">Login:</font></td> > <td><input type="text" name="login" size="8" maxlength="8"><br></td></tr> > <tr><td><font size="2" face="Arial, Helvetica, sans-serif">Password:</font></td> > <td><input type="password" name="senha" size="8" maxlength="8"></td></tr> > <tr><td><input type="reset" name="botao" value="Clear"></td> > <td><input type="submit" name="submit" value="Login"></td></tr> > </table> > </form> > </body> > </html> > > Everything works fine when I use these two files with Apache running on Solaris, RH, >Windows 98, Windows ME and Windows NT 4.0. The main objective is to test if the >browser supports cookies of course. But... If I use Microsoft IIS with these two >files it never works! The cookie is NEVER sent to the browser (this was verified >using Netscape's option to warn about new cookies coming in) and obviously I always >receive the error message stating that my browser doesn't support cookies! >Impossible! The same application running on two different servers produces different >results? Is it a bug? > Thanks in advance!!! > > Best regards, > > Fábio Ottolini -- ------------------------------------------------------------------------------- Joe Stump, PHP Hacker, [EMAIL PROTECTED] -o) http://www.geekshare.com http://www.care2.com http://www.miester.org /\\ "Those who can, create. Those who can't, complain." _\_V -------------------------------------------------------------------------------
Hi! I am trying to do some fileuploading.. but I am running into a problem with escaping spaces. Basically, I have this directory that includes spaces and I need to be able to change the spaces to "\ " so for example.. my directory is: Fun Documents I need to change it to: Fun\ Documents That way when I copy.. I wont get errors! Plus, there is always the potential that the filename might have a space in it. So how do I escape these spaces? I have tried this.. and it doesnt work: $copyto = strtr($copyto, " ", "\ "); That basically just replaces the spaces with a backslash. I tried this as well: $copyto = strtr($copyto, " ", "\\ "); Didnt work. I am sorta clueless.. any ideas? Thanks in advance, Tanya
OK, seems I have created some unintended results in PHP. A few weeks ago I was trying to split some common code out into an include file. I was running into problems with an image when the calling file was not in the root of the web directory and was experimenting with various ways to ensure that the image was found no matter where the scripts were included from. Since then, I have noted that I seem to be getting some strange error log entries in Apache: [Fri Feb 23 08:17:02 2001] [error] [client 10.11.30.13] File does not exist: /home/sites/site3/web/b&w-outline.gif In an unrelated issue (actually verifying GD support in PHP) I ran php_info() and noticed that in the environment section there are a bunch of REDIRECT_* and SCRIPT_* variables that point to this image including the same 'File does not exist...' message that has been appearing in my logs (REDIRECT_ERROR_NOTES)! Obviously in trying to specify an include directory, I have messed with something that was GLOBAL and has 'stuck' even through a reboot. Additionally, it is affecting all v-sites on the box. There is no ill effect on the user, however a visit to any page on any v-site seems to trigger a call to this 'script'. I quote that because the 'script' is actually the URI/URL to the above mentioned .GIF! How do I get PHP to stop trying to pull this file? Any help would be most greatly appreciated! -- Paul
I am using http://www.asphyxia.com/PHP_BD/PHPClientSniffer.phps to get info about the browsers connecting to me but I would also like to get the level of encryption they are capable of. Any thoughts on how to do this? tks mitch
I am not sure if there is a way to do this. The only thing you could do is determine level of encryption by browser version. This might work in some cases.. but obviously if they have an old browser version (whose encryption level is low by default) and they install like an encryption_pack (IE example).. it will increase the encryption and you wouldnt have a way to tell. Sorry.. just some thoughts. -Tanya On Mon, 12 Mar 2001, Mitchell Hagerty wrote: > I am using http://www.asphyxia.com/PHP_BD/PHPClientSniffer.phps to get info about >the browsers connecting to > me but I would also like to get the level of encryption they are capable of. > > Any thoughts on how to do this? > > tks > mitch > > > > -- > 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] >
Hello all I new to the php . I was wondering if anyone could help me out with a little problem that I'm having. I download the new version of php. I installed mysql , apache (new version) and php. What i'm having trouble is setting it up. I found a link how to set up php, mysql and apache. I everthing on the page, but when it comes down to editing the httpd.conf file I get lost. I added the two things it tells me to do. 17. Edit your httpd.conf or srm.conf file and add: For PHP 3: AddType application/x-httpd-php3 .php3 For PHP 4: AddType application/x-httpd-php .php I then stop the apache server and restart it. I have a folder that has php file . when i try to bring this up i get this error message. "The page cannot be displayed. " I checked the folder and the permissions . everything looks fine. so can someone tell me what i'm doing wrong. Thank you ..... Luis
Did you copy the php library over? And second.. are you actually going directly to the php script OR.. is it named index.php and you are only going to the directory? -Tanya On Mon, 12 Mar 2001, Luis wrote: > Hello all I new to the php . I was wondering > if anyone could help me out with a little problem > that I'm having. I download the new version of > php. I installed mysql , apache (new version) and > php. > > What i'm having trouble is setting it up. > > I found a link how to set up php, mysql and > apache. I everthing on the page, but when it comes > > down to editing the httpd.conf file I get lost. > I added the two things it tells me to do. > > 17. Edit your httpd.conf or srm.conf file and add: > > > > For PHP 3: > AddType application/x-httpd-php3 .php3 > For PHP 4: > AddType application/x-httpd-php .php > > > I then stop the apache server and restart it. I > have a folder that has php file . when i try to > bring this up i get > this error message. > "The page cannot be displayed. " > I checked the folder and the permissions . > everything looks fine. so can someone tell me what > > i'm doing wrong. > > Thank you ..... > > > Luis >
err not the library.. but php.ini -Tanya On Mon, 12 Mar 2001, Luis wrote: > Hello all I new to the php . I was wondering > if anyone could help me out with a little problem > that I'm having. I download the new version of > php. I installed mysql , apache (new version) and > php. > > What i'm having trouble is setting it up. > > I found a link how to set up php, mysql and > apache. I everthing on the page, but when it comes > > down to editing the httpd.conf file I get lost. > I added the two things it tells me to do. > > 17. Edit your httpd.conf or srm.conf file and add: > > > > For PHP 3: > AddType application/x-httpd-php3 .php3 > For PHP 4: > AddType application/x-httpd-php .php > > > I then stop the apache server and restart it. I > have a folder that has php file . when i try to > bring this up i get > this error message. > "The page cannot be displayed. " > I checked the folder and the permissions . > everything looks fine. so can someone tell me what > > i'm doing wrong. > > Thank you ..... > > > Luis > > > -- > 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] >
Tanya Brethour wrote: > Did you copy the php library over? > > And second.. are you actually going directly to the php script OR.. is it > named index.php and you are only going to the directory? > > -Tanya > > On Mon, 12 Mar 2001, Luis wrote: > > > Hello all I new to the php . I was wondering > > if anyone could help me out with a little problem > > that I'm having. I download the new version of > > php. I installed mysql , apache (new version) and > > php. > > > > What i'm having trouble is setting it up. > > > > I found a link how to set up php, mysql and > > apache. I everthing on the page, but when it comes > > > > down to editing the httpd.conf file I get lost. > > I added the two things it tells me to do. > > > > 17. Edit your httpd.conf or srm.conf file and add: > > > > > > > > For PHP 3: > > AddType application/x-httpd-php3 .php3 > > For PHP 4: > > AddType application/x-httpd-php .php > > > > > > I then stop the apache server and restart it. I > > have a folder that has php file . when i try to > > bring this up i get > > this error message. > > "The page cannot be displayed. " > > I checked the folder and the permissions . > > everything looks fine. so can someone tell me what > > > > i'm doing wrong. > > > > Thank you ..... > > > > > > Luis > > Ok i'm new to this tanya, but I think i did. Here's a link to php site were I found how to set it up. But tried this way and it still down not work. Regarding the folder, I have a folder called ticket with alot of php files. I pointed my browser 192.168.2.119/ticket. What i get is a tree directory of everything inside the folder. Sorry for the silly question but I'm just getting started. Thank you for your help
How can one get the next record to compare two fields... I want to check if the date of the first record matches the date of the next record with the least amount of code... David Smith Indy Web Design http://www.indywebdesign.com
> How can one get the next record to compare two > fields... I want to check if the date of the first record > matches the date of the next record with the least amount > of code... You are going to have to work with row pointers. If you are using mySQL, look at the function: mysql_result(); Chris
Umm if you are talking about records in the sense of a table.. you could do something like "SELECT record_id,record_date FROM table" and then go through the array and compare the dates. You only do one query from the database and then you know which records match by hanging onto their record_id. Is this what you wanted? -Tanya On Mon, 12 Mar 2001, WreckRman2 wrote: > How can one get the next record to compare two fields... I want to check if > the date of the first record matches the date of the next record with the > least amount of code... > > David Smith > Indy Web Design > http://www.indywebdesign.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] >
if one wants to recompile php (to add support for something that was missed during the first compile) is there a step I need to complete that will remove the earlier version of php, or do i just recompile over the old php and not worry about it? thanks colin olkowski - [EMAIL PROTECTED] cell 917.549.8395 land 212.414.4481
I would assume that you need to 1) make sure you install it in the same place :) 2) if you already compiled a Apache binary you need to copy the new binary over.. or do another make install. I would just follow the steps you did when you first installed it.. and it should overwrite everything you did before.. assuming your --prefix is right and what not. -Tanya On Mon, 12 Mar 2001, colin olkowski wrote: > if one wants to recompile php (to add support for something that was missed > during the first compile) is there a step I need to complete that will > remove the earlier version of php, or do i just recompile over the old php > and not worry about it? > > thanks > > colin olkowski - [EMAIL PROTECTED] > cell 917.549.8395 > land 212.414.4481 > > > > -- > 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] >
I am trying to set my script up so that when a person clicks on the link, that the page will prompt for a download w/ the filename in the File Name field in the Save As prompt. I can get this to work in Netscapse but when I try to do it with Internet Explorer I encounter problems. It either says there is no application to read the file (I have acrobat reader on the computer.) or it displays the prompt with either [variable's name passed to script].htm or download.php. And the file I am trying to download is a PDF file. If anyone can help me with this I would greatly appreciate this, and thanks in advance. Regards, Edgar
Hello, I do that with this piece of code. ( This will close the window, so open a new one and put this code inside) header("Content-disposition: attachment; filename=\"$fileName\""); header("Content-type: application-download"); header("Pragma: no-cache"); header("Expires: 0"); $fn=fopen($FileName,"r"); fpassthru($fn); fclose($fn); exit; py ----- Original Message ----- From: James R. Edgar <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 12, 2001 7:57 PM Subject: [PHP] Need to download files in IE > I am trying to set my script up so that when a person clicks on the link, that > the page will prompt for a download w/ the filename in the File Name field in > the Save As prompt. > I can get this to work in Netscapse but when I try to do it with Internet > Explorer I encounter problems. It either says there is no application to read > the file (I have acrobat reader on the computer.) or it displays the prompt with > either [variable's name passed to script].htm or download.php. And the file I am > trying to download is a PDF file. If anyone can help me with this I would > greatly appreciate this, and thanks in advance. > > Regards, > Edgar > > > -- > 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] >
Hello, This is the URL of the link that I use. http://www.sitename.com/pizzeria.php3?pizzeria=aldentes Here is the code from the script. $file_path = "menus"; $file = $pizzeria . ".pdf"; $full_file = $file_path."/".$file; $filesize=filesize($full_file); header("Content-disposition: attachment; filename=\"$file\""); header("Content-type: application-download"); header("Pragma: no-cache"); header("Expires: 0"); $fn=fopen($full_file,"r"); fpassthru($fn); fclose($fn); exit; I tried it and it did not work. When I click on the link it shows "pizzeria.htm" in the File Name field. Any other suggestions. Regards, Edgar -----Original Message----- From: Pierre-Yves Lemaire [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 10:41 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Need to download files in IE Hello, I do that with this piece of code. ( This will close the window, so open a new one and put this code inside) header("Content-disposition: attachment; filename=\"$fileName\""); header("Content-type: application-download"); header("Pragma: no-cache"); header("Expires: 0"); $fn=fopen($FileName,"r"); fpassthru($fn); fclose($fn); exit; py ----- Original Message ----- From: James R. Edgar <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 12, 2001 7:57 PM Subject: [PHP] Need to download files in IE > I am trying to set my script up so that when a person clicks on the link, that > the page will prompt for a download w/ the filename in the File Name field in > the Save As prompt. > I can get this to work in Netscapse but when I try to do it with Internet > Explorer I encounter problems. It either says there is no application to read > the file (I have acrobat reader on the computer.) or it displays the prompt with > either [variable's name passed to script].htm or download.php. And the file I am > trying to download is a PDF file. If anyone can help me with this I would > greatly appreciate this, and thanks in advance. > > Regards, > Edgar > > > -- > 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]
Yes, zip the pdf. Search the MSKB for more info. -----Original Message----- From: James R. Edgar [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 3:50 PM To: 'Pierre-Yves Lemaire' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Need to download files in IE Hello, This is the URL of the link that I use. http://www.sitename.com/pizzeria.php3?pizzeria=aldentes Here is the code from the script. $file_path = "menus"; $file = $pizzeria . ".pdf"; $full_file = $file_path."/".$file; $filesize=filesize($full_file); header("Content-disposition: attachment; filename=\"$file\""); header("Content-type: application-download"); header("Pragma: no-cache"); header("Expires: 0"); $fn=fopen($full_file,"r"); fpassthru($fn); fclose($fn); exit; I tried it and it did not work. When I click on the link it shows "pizzeria.htm" in the File Name field. Any other suggestions. Regards, Edgar -----Original Message----- From: Pierre-Yves Lemaire [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 10:41 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Need to download files in IE Hello, I do that with this piece of code. ( This will close the window, so open a new one and put this code inside) header("Content-disposition: attachment; filename=\"$fileName\""); header("Content-type: application-download"); header("Pragma: no-cache"); header("Expires: 0"); $fn=fopen($FileName,"r"); fpassthru($fn); fclose($fn); exit; py ----- Original Message ----- From: James R. Edgar <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 12, 2001 7:57 PM Subject: [PHP] Need to download files in IE > I am trying to set my script up so that when a person clicks on the link, that > the page will prompt for a download w/ the filename in the File Name field in > the Save As prompt. > I can get this to work in Netscapse but when I try to do it with Internet > Explorer I encounter problems. It either says there is no application to read > the file (I have acrobat reader on the computer.) or it displays the prompt with > either [variable's name passed to script].htm or download.php. And the file I am > trying to download is a PDF file. If anyone can help me with this I would > greatly appreciate this, and thanks in advance. > > Regards, > Edgar > > > -- > 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]
Please help me ! My problem is that I can't load PHP scripts (.php extension) with my personal server. My OS is Windows 95B (but MSIE 5 update), and I use PWS for Win 95 (not 4.0 for Win 98). My PHP version is: 4.0.4pl1 for Win32 I've already done this instructions, I've found in the manual: - Updating DCOM - Copying "php.ini" into "c:\windows\" directory - Writing correct path for "extension_dir" field (my path is "c:\php") - Adding ".php" registry key in "HKLM/System/.../W3Svc/Parameters/ScriptMap" with "c:\php\php.exe %s %s" value - Adding ".php" extension in "HKCR" registry key (with correct parameters, I've tested it, there's no running problem) I don't understand why PHP doesn't run on my server. Maybe "ScriptMap/.php" registry key value is wrong... I'm waiting for any answer... Nicolas Merlet ____________ Tel: +33.674.520.959 Email: [EMAIL PROTECTED]
A few people seem to have this PWS problem - and the only cure seems to be to reinstall PWS. The symptoms seem to be something like PWS is ignoring the scriptmap directive and no end of fiddling around with the registry will make it behave. You could always ditch PWS and use Xitami if you have a simple setup, or Apache if your needs are more complex. Either way you'll have less bother than with PWS. Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org
I'm trying preg_match with no success. I'd like to search inside the text file for my name, then pull all the info from that point till the next name which is Fred. The text file would be called names.txt So I'm trying to preg_match("Peter",names.txt,$myname) then do the same for Fred, and grab all the stuff in between. Is this the right way to do this? Or is there something easier? How can I search names.txt? Can I load it into a variable somehow? Please help
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Peter Benoit) wrote: > I'd like to search inside the text file for my name, then pull all the info > from that point till the next name which is Fred. > > The text file would be called names.txt > > > So I'm trying to > > preg_match("Peter",names.txt,$myname) > > then do the same for Fred, and grab all the stuff in between. > > Is this the right way to do this? Nope. (But see the example in my response to your previous post on the same topic.) -- CC
When a client bails out of a http connection and apache shuts down that thread process, is there something or a way so that php can call some sort of destructor? My problem is if a client bails out right in the middle of a financial transaction I need some way of canceling a pending order. Nathan
Hello al! Is it possible to have two frames updated when cliking on one link? I have a page that is broken into 4 parts: master title section title d section screen i r . what I want is that when a link is clicked on in the directory (the left column), I'd like to update the section title *and* the section screen... It seemed a cool layout at the time, but I'm thinking this isn't easily possible and I might just have to incorporate a section title on the section screen... But before I rewrite it, I thought I'd ask here. Thanks! -Michael P.S. I'd like to commend the regular posters to this list on being SOOO informative and patient! Every small question to this list always gets several useful answers, even when I've seen questions asked over and again. -- No, my friend, the way to have good and safe government, is not to trust it all to one, but to divide it among the many, distributing to every one exactly the functions he is competent to. It is by dividing and subdividing these republics from the national one down through all its subordinations, until it ends in the administration of every man's farm by himself; by placing under every one what his own eye may superintend, that all will be done for the best. -- Thomas Jefferson, to Joseph Cabell, 1816
I dont believe so. -Tanya On Mon, 12 Mar 2001, Michael George wrote: > Hello al! > > Is it possible to have two frames updated when cliking on one link? I have a > page that is broken into 4 parts: > master title > section title > d section screen > i > r > . > > what I want is that when a link is clicked on in the directory (the left > column), I'd like to update the section title *and* the section screen... > > It seemed a cool layout at the time, but I'm thinking this isn't easily > possible and I might just have to incorporate a section title on the section > screen... But before I rewrite it, I thought I'd ask here. > > Thanks! > > -Michael > > P.S. I'd like to commend the regular posters to this list on being SOOO > informative and patient! Every small question to this list always > gets several useful answers, even when I've seen questions asked over > and again. > > -- > No, my friend, the way to have good and safe government, is not to trust it > all to one, but to divide it among the many, distributing to every one exactly > the functions he is competent to. It is by dividing and subdividing these > republics from the national one down through all its subordinations, until it > ends in the administration of every man's farm by himself; by placing under > every one what his own eye may superintend, that all will be done for the > best. > -- Thomas Jefferson, to Joseph Cabell, 1816 > > -- > 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] >
Yes you can.. use Javascript Look here.. http://www.virtualgeoff.com/junkyard/frames/multiple/ Chad -----Original Message----- From: Michael George [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 3:06 PM To: [EMAIL PROTECTED] Subject: [PHP] update two frames at once? Hello al! Is it possible to have two frames updated when cliking on one link? I have a page that is broken into 4 parts: master title section title d section screen i r . what I want is that when a link is clicked on in the directory (the left column), I'd like to update the section title *and* the section screen... It seemed a cool layout at the time, but I'm thinking this isn't easily possible and I might just have to incorporate a section title on the section screen... But before I rewrite it, I thought I'd ask here. Thanks! -Michael P.S. I'd like to commend the regular posters to this list on being SOOO informative and patient! Every small question to this list always gets several useful answers, even when I've seen questions asked over and again. -- No, my friend, the way to have good and safe government, is not to trust it all to one, but to divide it among the many, distributing to every one exactly the functions he is competent to. It is by dividing and subdividing these republics from the national one down through all its subordinations, until it ends in the administration of every man's farm by himself; by placing under every one what his own eye may superintend, that all will be done for the best. -- Thomas Jefferson, to Joseph Cabell, 1816 -- 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]
Well in straight/plain html frames.. I dont believe you can. -Tanya On Mon, 12 Mar 2001, Angerer, Chad wrote: > Yes you can.. use Javascript > > Look here.. http://www.virtualgeoff.com/junkyard/frames/multiple/ > > Chad > > -----Original Message----- > From: Michael George [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 12, 2001 3:06 PM > To: [EMAIL PROTECTED] > Subject: [PHP] update two frames at once? > > > Hello al! > > Is it possible to have two frames updated when cliking on one link? I have > a > page that is broken into 4 parts: > master title > section title > d section screen > i > r > . > > what I want is that when a link is clicked on in the directory (the left > column), I'd like to update the section title *and* the section screen... > > It seemed a cool layout at the time, but I'm thinking this isn't easily > possible and I might just have to incorporate a section title on the section > screen... But before I rewrite it, I thought I'd ask here. > > Thanks! > > -Michael > > P.S. I'd like to commend the regular posters to this list on being SOOO > informative and patient! Every small question to this list always > gets several useful answers, even when I've seen questions asked over > and again. > > -- > No, my friend, the way to have good and safe government, is not to trust it > all to one, but to divide it among the many, distributing to every one > exactly > the functions he is competent to. It is by dividing and subdividing these > republics from the national one down through all its subordinations, until > it > ends in the administration of every man's farm by himself; by placing under > every one what his own eye may superintend, that all will be done for the > best. > -- Thomas Jefferson, to Joseph Cabell, 1816 > > -- > 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] >
By saying straight/plain html frames if you mean strictly HTML and no outside scripting language then you are right you cannot. But I don't think anyone is strictly limited to just HTML. Chad -----Original Message----- From: Tanya Brethour [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 3:21 PM To: Angerer, Chad Cc: 'Michael George'; [EMAIL PROTECTED] Subject: RE: [PHP] update two frames at once? Well in straight/plain html frames.. I dont believe you can. -Tanya On Mon, 12 Mar 2001, Angerer, Chad wrote: > Yes you can.. use Javascript > > Look here.. http://www.virtualgeoff.com/junkyard/frames/multiple/ > > Chad > > -----Original Message----- > From: Michael George [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 12, 2001 3:06 PM > To: [EMAIL PROTECTED] > Subject: [PHP] update two frames at once? > > > Hello al! > > Is it possible to have two frames updated when cliking on one link? I have > a > page that is broken into 4 parts: > master title > section title > d section screen > i > r > . > > what I want is that when a link is clicked on in the directory (the left > column), I'd like to update the section title *and* the section screen... > > It seemed a cool layout at the time, but I'm thinking this isn't easily > possible and I might just have to incorporate a section title on the section > screen... But before I rewrite it, I thought I'd ask here. > > Thanks! > > -Michael > > P.S. I'd like to commend the regular posters to this list on being SOOO > informative and patient! Every small question to this list always > gets several useful answers, even when I've seen questions asked over > and again. > > -- > No, my friend, the way to have good and safe government, is not to trust it > all to one, but to divide it among the many, distributing to every one > exactly > the functions he is competent to. It is by dividing and subdividing these > republics from the national one down through all its subordinations, until > it > ends in the administration of every man's farm by himself; by placing under > every one what his own eye may superintend, that all will be done for the > best. > -- Thomas Jefferson, to Joseph Cabell, 1816 > > -- > 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]
I mean straight html. And people still using just plain html. I was just clearing up my answer. -Tanya On Mon, 12 Mar 2001, Angerer, Chad wrote: > By saying straight/plain html frames if you mean strictly HTML and no > outside scripting language then you are right you cannot. But I don't think > anyone is strictly limited to just HTML. > > Chad > > -----Original Message----- > From: Tanya Brethour [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 12, 2001 3:21 PM > To: Angerer, Chad > Cc: 'Michael George'; [EMAIL PROTECTED] > Subject: RE: [PHP] update two frames at once? > > > > Well in straight/plain html frames.. I dont believe you can. > > -Tanya > > On Mon, 12 Mar 2001, Angerer, Chad wrote: > > > Yes you can.. use Javascript > > > > Look here.. http://www.virtualgeoff.com/junkyard/frames/multiple/ > > > > Chad > > > > -----Original Message----- > > From: Michael George [mailto:[EMAIL PROTECTED]] > > Sent: Monday, March 12, 2001 3:06 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] update two frames at once? > > > > > > Hello al! > > > > Is it possible to have two frames updated when cliking on one link? I > have > > a > > page that is broken into 4 parts: > > master title > > section title > > d section screen > > i > > r > > . > > > > what I want is that when a link is clicked on in the directory (the left > > column), I'd like to update the section title *and* the section screen... > > > > It seemed a cool layout at the time, but I'm thinking this isn't easily > > possible and I might just have to incorporate a section title on the > section > > screen... But before I rewrite it, I thought I'd ask here. > > > > Thanks! > > > > -Michael > > > > P.S. I'd like to commend the regular posters to this list on being SOOO > > informative and patient! Every small question to this list always > > gets several useful answers, even when I've seen questions asked over > > and again. > > > > -- > > No, my friend, the way to have good and safe government, is not to trust > it > > all to one, but to divide it among the many, distributing to every one > > exactly > > the functions he is competent to. It is by dividing and subdividing these > > republics from the national one down through all its subordinations, until > > it > > ends in the administration of every man's farm by himself; by placing > under > > every one what his own eye may superintend, that all will be done for the > > best. > > -- Thomas Jefferson, to Joseph Cabell, 1816 > > > > -- > > 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] >
Hi I had the same problem, and I did not find an answer this way, the only way is with javascript . Rene Michael George wrote: > Hello al! > > Is it possible to have two frames updated when cliking on one link? I have a > page that is broken into 4 parts: > master title > section title > d section screen > i > r > . > > what I want is that when a link is clicked on in the directory (the left > column), I'd like to update the section title *and* the section screen... > > It seemed a cool layout at the time, but I'm thinking this isn't easily > possible and I might just have to incorporate a section title on the section > screen... But before I rewrite it, I thought I'd ask here. > > Thanks! > > -Michael > > P.S. I'd like to commend the regular posters to this list on being SOOO > informative and patient! Every small question to this list always > gets several useful answers, even when I've seen questions asked over > and again. > > -- > No, my friend, the way to have good and safe government, is not to trust it > all to one, but to divide it among the many, distributing to every one exactly > the functions he is competent to. It is by dividing and subdividing these > republics from the national one down through all its subordinations, until it > ends in the administration of every man's farm by himself; by placing under > every one what his own eye may superintend, that all will be done for the > best. > -- Thomas Jefferson, to Joseph Cabell, 1816 > > -- > 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]
In the index page (change cols amounts to suit your layout): <html> <frameset cols="50%,50%"> <frame src="menu.html" name="menu"> <frame src="section.html name="section"> </frameset> </html> Put the menu in menu.html (duh), but here come the fun part. In section.html: <html> <frameset rows="50%,50%"> <frame src="sectiontitle.html" name="sectiontitle"> <frame src="sectioncontent.html" name="sectioncontent"> </frameset> </html> Then in the menu frame, to update the section frames: <a href="sectionframeset.html" target="section">, and put a frameset pointing to separate title and content pages in the sectionframeset.html Clear as mud? Take a look at http://www.geocities.com/tfc_squad/, my attempt at a web page for an ill-fated TFC clan. Sig for a Day Stephan Ahonen, ICQ 491101 "That's very funny Scotty, now beam down my clothes!" Come back tomorrow for a different sig! Backspace a single "s" to reply by email
Doing multiple frames and forms with JavaScript is not really a good idea. Debugging the code for this can become a nightmare... -----Original Message----- From: Rene Maldonado [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 6:59 PM To: Michael George Cc: [EMAIL PROTECTED] Subject: Re: [PHP] update two frames at once? Hi I had the same problem, and I did not find an answer this way, the only way is with javascript . Rene Michael George wrote: > Hello al! > > Is it possible to have two frames updated when cliking on one link? I have a > page that is broken into 4 parts: > master title > section title > d section screen > i > r > . > > what I want is that when a link is clicked on in the directory (the left > column), I'd like to update the section title *and* the section screen... > > It seemed a cool layout at the time, but I'm thinking this isn't easily > possible and I might just have to incorporate a section title on the section > screen... But before I rewrite it, I thought I'd ask here. > > Thanks! > > -Michael > > P.S. I'd like to commend the regular posters to this list on being SOOO > informative and patient! Every small question to this list always > gets several useful answers, even when I've seen questions asked over > and again. > > -- > No, my friend, the way to have good and safe government, is not to trust it > all to one, but to divide it among the many, distributing to every one exactly > the functions he is competent to. It is by dividing and subdividing these > republics from the national one down through all its subordinations, until it > ends in the administration of every man's farm by himself; by placing under > every one what his own eye may superintend, that all will be done for the > best. > -- Thomas Jefferson, to Joseph Cabell, 1816 > > -- > 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]
Hello!!! Please, assume I have the following mysql query: function get_products() { $result = mysql_query("select * from products"); while ($row = mysql_fetch_array($result)) { $prod_id = $row["prod_id"]; $prod_name = $row["prod_name"']; $prod_price = $row["prod_price"]; } return $products; } The question: Ok, my $products variable will be an array with all products ??? Regards, marcoBR
Not that I am a php expert.. but it doesnt look like you ever assign products to anything. Shouldnt you be doing something like $products["$prod_id"] = $row["prod_id"] Also.. if you have more than one rows.. it would overwrite the array. Do you want a 2-d array? -Tanya On Mon, 12 Mar 2001, [iso-8859-1] Marco Aurlio wrote: > Hello!!! > > Please, assume I have the following mysql query: > > function get_products() { > > $result = mysql_query("select * from products"); > while ($row = mysql_fetch_array($result)) { > $prod_id = $row["prod_id"]; > $prod_name = $row["prod_name"']; > $prod_price = $row["prod_price"]; > } > return $products; > } > > The question: > > Ok, my $products variable will be an array with all products ??? > > > Regards, > > marcoBR > > > -- > 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] >
> Hello!!! > > Please, assume I have the following mysql query: > > function get_products() { > > $result = mysql_query("select * from products"); > while ($row = mysql_fetch_array($result)) { > $prod_id = $row["prod_id"]; > $prod_name = $row["prod_name"']; > $prod_price = $row["prod_price"]; > } > return $products; > } > > The question: > > Ok, my $products variable will be an array with all products ??? No, it won't be. Rewrite the function like this: function get_products() { $result = mysql_query("select * from products"); $i = 0; while ($row = mysql_fetch_array($result)) { $products[$i]["prod_id"] = $row["prod_id"]; $products[$i]["prod_name"] = $row["prod_name"']; $products[$i]["prod_price"] = $row["prod_price"]; $i++; } return($products); } That will return a double scripted array of all the products information. - James http://www.phpbb.com
>Their website talks extensively about a merger with a 'Network 1' company >and now a buyout and a chapter 11 filing. The buyout, or "merger" press >release says: "CyberCash Internet Payment Processing Service to Continue >without Interruption." > >Is this incorrect? When you say that it 'died', what are you referring to? There payment services are going to run the same as always. They just didn't have enough money to complete the merger so they filed for Chapter 11 protection so that they could have finacial protection while they arrange the purchase of the company and to be able to keep the services un-interupted during this change. You should not see any degradation of performance at all.
If you are worried about your payment processor going down (which to me would be a very serious concern) you might want to look at www.opayc.com which is a standardized way to talk to about 30 or so payment processors. So say C$ goes under, instead of having to redo integration to your app, you just switch drivers and voila you can use a different processor. You need an account with the new one of course but the integration needs no work. Sample integration code for PHP on the site and in the docs (along with various other languages). > >Their website talks extensively about a merger with a 'Network 1' company > >and now a buyout and a chapter 11 filing. The buyout, or "merger" press > >release says: "CyberCash Internet Payment Processing Service to Continue > >without Interruption." > > > >Is this incorrect? When you say that it 'died', what are you referring to? > > There payment services are going to run the same as always. They just > didn't have enough money to complete the merger so they filed for Chapter > 11 protection so that they could have finacial protection while they > arrange the purchase of the company and to be able to keep the services > un-interupted during this change. You should not see any degradation of > performance at all. > > > -- > 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] > > Russ Cobbe President, Inline Internet Systems, Inc. 405 Britannia Road E, Suite 212 Mississauga, ON L4Z 3E2 P: (905) 712 3841 F: (905) 712 2965 http://www.inline.net http://www.ihtml.com Web Application Servers, E-Commerce Solutions
On Mon, 12 Mar 2001 17:04:13 -0500, Russ Cobbe ([EMAIL PROTECTED]) wrote: >If you are worried about your payment processor going down (which to >me would be a very serious concern) you might want to look at >www.opayc.com which is a standardized way to talk to about 30 or so >payment processors. what makes you think that this company is less likely to go under than a company like cybercash? this isn't a flame, I'm looking for info. thanks, - Mark
> On Mon, 12 Mar 2001 17:04:13 -0500, Russ Cobbe ([EMAIL PROTECTED]) > wrote: > >If you are worried about your payment processor going down (which to > >me would be a very serious concern) you might want to look at > >www.opayc.com which is a standardized way to talk to about 30 or so > >payment processors. > > what makes you think that this company is less likely to go under > than a company like cybercash? this isn't a flame, I'm looking for > info. It isn't a payment processor it is an API to payment processors such as CyberCash, Authorize.Net, Signio/Verisign, iBILL etc... Basically you make an SQL call to a driver instead of a database and that makes the call out to the payment processor. The eliminates the complexity in dealing with the payment processors. Sometimes the integration with them is easy and sometimes it is a royal pain. This makes the integration the same for all of them so you simply switch drivers to switch payment processors. You could build a failover system so if the one you mainly use goes down for some reason you could build in logic to switch to another one quite easily. Russ Cobbe President, Inline Internet Systems, Inc. 405 Britannia Road E, Suite 212 Mississauga, ON L4Z 3E2 P: (905) 712 3841 F: (905) 712 2965 http://www.inline.net http://www.ihtml.com Web Application Servers, E-Commerce Solutions
On Mon, 12 Mar 2001 17:34:14 -0500, Russ Cobbe ([EMAIL PROTECTED]) wrote: >> On Mon, 12 Mar 2001 17:04:13 -0500, Russ Cobbe ([EMAIL PROTECTED]) >> wrote: >> >If you are worried about your payment processor going down (which >>to >> >me would be a very serious concern) you might want to look at >> >www.opayc.com which is a standardized way to talk to about 30 or >>so >> >payment processors. >> >> what makes you think that this company is less likely to go under >> than a company like cybercash? this isn't a flame, I'm looking for >> info. > >It isn't a payment processor it is an API to payment processors such >as CyberCash, Authorize.Net, Signio/Verisign, iBILL etc... >Basically >you make an SQL call to a driver instead of a database and that >makes >the call out to the payment processor. The eliminates the >complexity >in dealing with the payment processors. Sometimes the integration >with them is easy and sometimes it is a royal pain. This makes the >integration the same for all of them so you simply switch drivers to >switch payment processors. You could build a failover system so if >the one you mainly use goes down for some reason you could build in >logic to switch to another one quite easily. hmm, yes but you're still relying on them for the driver updates, I'm sure all the payment processors change their system every once in a while. The failover system sounds like a good idea if you don't mind signing on with 2 payment processors, but otherwise it seems like all you're doing is adding an extra layer where things can go wrong. I'm leaning towards verisign/payflow pro. has anyone had trouble with these guys? thanks - Mark
At 2:32 PM -0800 3/12/01, Mark Maggelet wrote: >I'm leaning towards verisign/payflow pro. has anyone had trouble with >these guys? no. it's good stuff. Verisign is not going out of business anytime soon. and it's flat rate. you can't beat it. -aaron
Agreed. Their test server could be more reliable, but I can't recall ever having problems with their live transaction server. On Mon, 12 Mar 2001, Aaron Tuller wrote: > At 2:32 PM -0800 3/12/01, Mark Maggelet wrote: > >I'm leaning towards verisign/payflow pro. has anyone had trouble with > >these guys? > > no. it's good stuff. Verisign is not going out of business anytime > soon. and it's flat rate. you can't beat it. > > -aaron > > -- John Donagher Application Engineer Intacct Corp. - Powerful Accounting on the Web 408-395-0989 720 University Ave. Los Gatos CA 95032 www.intacct.com Public key available off http://www.keyserver.net Key fingerprint = 4024 DF50 56EE 19A3 258A D628 22DE AD56 EEBE 8DDD
Mark Maggelet wrote: > On Mon, 12 Mar 2001 17:04:13 -0500, Russ Cobbe ([EMAIL PROTECTED]) > wrote: > >If you are worried about your payment processor going down (which to > >me would be a very serious concern) you might want to look at > >www.opayc.com which is a standardized way to talk to about 30 or so > >payment processors. > > what makes you think that this company is less likely to go under > than a company like cybercash? this isn't a flame, I'm looking for > info. > I think the reason Russ doesn't think the company's likely to go under is that it's his company. :)
register_shutdown_function() should do the trick for you... Zeev At 22:34 12/3/2001, Nathan Cassano wrote: >When a client bails out of a http connection and apache shuts down that >thread process, is there something or a way so that php can call some sort >of destructor? My problem is if a client bails out right in the middle of a >financial transaction I need some way of canceling a pending order. > >Nathan > >-- >PHP Development 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/
I just reformatted my computer and reinstalled: Apache 1.3.14 Win32 r2 PHP 4.03pl1 mySQL 3.23.34 - Win I copied over my mySWL database and my PHP files and I get the following error: Warning: Undefined variable: Titlesearch in d:\apache\htdocs\bkhtml\movies.php on line 22 This is line 22 of movies.php: print "<form name=\"search\" method=\"get\" action=\"movies/mysql_moviedb_search.php?Titlesearch=$Titlesearch\">\n"; I also get this error: Warning: Use of undefined constant link - assumed 'link' in d:\apache\htdocs\bkhtml\movies\mysql_movieindex.php on line 15 And this is lines 13-15 of mysql_movieindex.php: $link = mysql_pconnect("localhost",$user,$pass); if(!link) die("Couldn't connect to mySQL"); It still displays what it is supposed to, so it is connecting to and accessing the database, I just get these extra warnings that I never got before. TIA, jb
<snip> > Warning: Undefined variable: Titlesearch in > d:\apache\htdocs\bkhtml\movies.php on line 22 > > This is line 22 of movies.php: > > print "<form name=\"search\" method=\"get\" > action=\"movies/mysql_moviedb_search.php?Titlesearch=$Titlesearch\">\n"; are you sure your variable is capitalized previously? > > I also get this error: > > Warning: Use of undefined constant link - assumed 'link' in > d:\apache\htdocs\bkhtml\movies\mysql_movieindex.php on line 15 > > And this is lines 13-15 of mysql_movieindex.php: > > $link = mysql_pconnect("localhost",$user,$pass); > if(!link) you forgot the $ in front of link.....you want if(!$link) all the best, jack
Yeah I am pretty sure it is right, it was working fine before I reinstalled. And thanks for the !$link that worked. jb <snip> > Warning: Undefined variable: Titlesearch in > d:\apache\htdocs\bkhtml\movies.php on line 22 > > This is line 22 of movies.php: > > print "<form name=\"search\" method=\"get\" > action=\"movies/mysql_moviedb_search.php?Titlesearch=$Titlesearch\">\n"; are you sure your variable is capitalized previously?
On Tue, 13 Mar 2001 08:46, Jason Bouwmeester wrote: > Yeah I am pretty sure it is right, it was working fine before I > reinstalled. > > And thanks for the !$link that worked. > > jb > > <snip> > > > Warning: Undefined variable: Titlesearch in > > d:\apache\htdocs\bkhtml\movies.php on line 22 > > > > This is line 22 of movies.php: > > > > print "<form name=\"search\" method=\"get\" > > action=\"movies/mysql_moviedb_search.php?Titlesearch=$Titlesearch\">\ > >n"; > > are you sure your variable is capitalized previously? Check the level of error reporting in your ini file - looks like you may have warnings turned on. -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA
Hi, you can't close it :) If the connection is persistent pg_close() instructions are ignored (this is also true for other persistent connections and their respective close() instructions). You can do it in the shell sending USR1 to httpd (killall -USR1 httpd) or by restarting apache (apachectl graceful). The above is true for apache, of course :) Regards, Nuno Carola Meyberg wrote: > I cannot find out how I can manually close a persistent > Postgres Database Connection that has been established by > pg_pconnect. > I believe pg_close only closes non-persistent connections. > > Does anyone know how to do this? > > attachment.txt > > Content-Type: > > text/plain
Hi all, i'm appreciating any comments on this idea: I'm about to create a completely database driven site (mySQL). Almost all of the output is generated from database data. A big part of the data is rather static of nature, eg. updated once a month. A smaller part is quite dynamic, e.g. content is added daily. Now the problem: My webhoster's database server (not the webserver!) is nearly breaking down in high-traffic-times. While static sites are performing fine, my site is almost down :-(( Here my idea: I thought of creating a cache-mechanism where each php-page checks for the existence of a static html-cache-page that holds its contents. When the page is there it is read and echoed out to the browser. If it isn't there, it shall be created automatically. To create the HTML-cache page i need to build the whole HTML-page content in memory, instead of echoing it back to the user's browser, and finally write it to disk. That means, i have to write all HTML in php-code. I can't just embed php-parts in html tags. I'm not sure, whether this is the right way to go, as i can see some major drawbacks of this approach, although my general php-architecture is template oriented, which would make the approach practical. I would really appreciate some comments on this. Thanks in advance, Joe
At 11:19 PM +0100 3/12/01, Joachim Maier wrote: >To create the HTML-cache page i need to build the whole HTML-page content in >memory, instead of echoing it back to the user's browser, and finally write >it to disk. That means, i have to write all HTML in php-code. I can't just >embed php-parts in html tags. that's not true. see the output buffering functions. -aaron
Aaron, i would love to believe what you say. But i couldn't find any buffering functions in the online docs. Could you please gimme a pointer on where i can find these functions and what's their name. Are they available in php3? Thanks a lot, Joe -----Ursprungliche Nachricht----- Von: Aaron Tuller [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 12. Marz 2001 23:26 An: [EMAIL PROTECTED]; [EMAIL PROTECTED] Betreff: Re: [PHP] Cache Database-driven site At 11:19 PM +0100 3/12/01, Joachim Maier wrote: >To create the HTML-cache page i need to build the whole HTML-page content in >memory, instead of echoing it back to the user's browser, and finally write >it to disk. That means, i have to write all HTML in php-code. I can't just >embed php-parts in html tags. that's not true. see the output buffering functions. -aaron -- 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]
http://www.php.net/manual/en/ref.outcontrol.php Regards, Andrew On 3/12/01 6:40 PM, "Joe Maier" <[EMAIL PROTECTED]> wrote: > Aaron, > i would love to believe what you say. > But i couldn't find any buffering functions in the online docs. > > Could you please gimme a pointer on where i can find these functions > and what's their name. Are they available in php3? > > Thanks a lot, > Joe > > -----Ursprungliche Nachricht----- > Von: Aaron Tuller [mailto:[EMAIL PROTECTED]] > Gesendet: Montag, 12. Marz 2001 23:26 > An: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Betreff: Re: [PHP] Cache Database-driven site > > > At 11:19 PM +0100 3/12/01, Joachim Maier wrote: >> To create the HTML-cache page i need to build the whole HTML-page content > in >> memory, instead of echoing it back to the user's browser, and finally write >> it to disk. That means, i have to write all HTML in php-code. I can't just >> embed php-parts in html tags. > > that's not true. see the output buffering functions. > > -aaron > > -- > 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] >
There are already some caching packages out there, I'm not sure how they perform with CGI (look into Squid). Having each page check for a cached version of itself sounds like a complicated approach. Another idea is to generate portions of your site as that don't change often from perl scripts, and run these from cron. Using server-side-includes can make this a much easier process. -----Original Message----- From: Joachim Maier [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 4:20 PM To: [EMAIL PROTECTED] Subject: [PHP] Cache Database-driven site Hi all, i'm appreciating any comments on this idea: I'm about to create a completely database driven site (mySQL). Almost all of the output is generated from database data. A big part of the data is rather static of nature, eg. updated once a month. A smaller part is quite dynamic, e.g. content is added daily. Now the problem: My webhoster's database server (not the webserver!) is nearly breaking down in high-traffic-times. While static sites are performing fine, my site is almost down :-(( Here my idea: I thought of creating a cache-mechanism where each php-page checks for the existence of a static html-cache-page that holds its contents. When the page is there it is read and echoed out to the browser. If it isn't there, it shall be created automatically. To create the HTML-cache page i need to build the whole HTML-page content in memory, instead of echoing it back to the user's browser, and finally write it to disk. That means, i have to write all HTML in php-code. I can't just embed php-parts in html tags. I'm not sure, whether this is the right way to go, as i can see some major drawbacks of this approach, although my general php-architecture is template oriented, which would make the approach practical. I would really appreciate some comments on this. Thanks in advance, 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]
Does anyone know if it is possible to override the php.ini setting for magic_quotes_sybase, using the ini_set() function? I have tried both of the following without success: ini_set("magic_quotes_sybase",1); and ini_set("magic_quotes_sybase","On"); I am trying to enable it for a particular application. TIA Kirk
Hi, I have a site that performs insertions into a database, then uses header to redirect the user to a certain page. If the user hits the back button, then the submit button again, the information will be inserted twice. How can I prevent this? Thanks Corey Mosher ----------------------------- Hub.Org Networking Services 251 Main St. Wolfville, NS Canada B0P 1X0 Email: [EMAIL PROTECTED] Phone: (902) 542-3657 ----------------------------- PostgreSQL, Inc. 251 Main St. Wolfville, NS Canada B0P 1X0 Email: [EMAIL PROTECTED] Phone: (902) 542-0713 ----------------------------- Fax: (902) 542-5386
I'm running 4.0.4 with two patched files from CVS to fix the gzhandler memory leak. I'm using 'output_handler = ob_gzhandler' in my php.ini to compress output, however I notice that it usually doesn't work. I'll load a page, which will be uncompressed.. then reload it and it comes back compressed. This happens everytime I load a new page. The first time it's loaded, it's uncompressed. Each time after it's compressed. Anybody else have this problem? (please CC: me, as I'm not on this list) Thanks
I'm having an interesting problem. I'm running on an NT machine. I'm using the function: system("F:/full/path/program"); I've tried it using all kinds of forms of forward and back slashing, doesn't seem to matter... oddly enough, if I copy the text out from between the quote and paste it into a command window it runs fine. I also tried using the exec command, but no luck. The intiger return variable is -1, which I assume to mean it failed... I'm completely lost now so if anyone has any ideas, input, or longshots, I'd be happy to hear them. Thanks -Daniel
What are the main differences of running PHP as a DSO Module or as CGI? I had some problems running as DSO, cuz I need the mssq70 extension and everytime I ran a script it caused a GPF in php4ts.dll. So I switched back to CGI and the error disapeared. I wanna know if I'm loosing something with CGI. ____________________________ . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer
These are normally already stored as variables in PHP for you. Run the phpinfo(); function and it will display a list of the current variables and values... -----Original Message----- From: Dream [mailto:[EMAIL PROTECTED]] Sent: Monday, March 12, 2001 4:00 AM To: [EMAIL PROTECTED] Subject: [PHP] Grab and print user IP address Hi! I need just a little script so I can get and print in browser the currently users IP address and if possible, browser type, etc. Thanks a lot! marc -- 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]
I can't get to the php archives... every time i try a search of the mailing list, I get nothing... :-(