php-general Digest 19 Jan 2001 04:11:50 -0000 Issue 463 Topics (messages 35371 through 35559): Forms! 35371 by: Fredrik Arild Takle 35432 by: Alex Black 35440 by: Clive Cartlidge 35445 by: Alex Black 35448 by: Clive Cartlidge Re: (Newbie) String within a string 35372 by: jalist help me!! cookie and IIS 35373 by: Giancarlo Re: PHP Editors... perhaps Ultraedit 35374 by: Alexander Wagner 35377 by: Rudy McDaniel Re: Automated Scripts 35375 by: Jon Farmer Re: Array help needed 35376 by: php3.developersdesk.com 35380 by: Kristi Russell 35382 by: April 35455 by: CDitty Internals of Session files 35378 by: Eivind Trondsen 35381 by: Chris Lee 35402 by: Chris Adams Re: Ethics question... 35379 by: Brian Huddleston 35415 by: Ayan R. Kayal 35418 by: Randy Johnson 35420 by: Scott Gerhardt 35421 by: Scott Gerhardt 35544 by: John Hinsley CSS and PHP 35383 by: Brandon Orther 35403 by: Chris Adams cookie problem 35384 by: Fai Sendmail User ID 35385 by: Yurais Fernandez Leal 35391 by: Julia A . Case 35450 by: Yurais Fernandez Leal 35453 by: Egan 35521 by: Yurais Fernandez Leal 35527 by: Yurais Fernandez Leal Re: calling static class functions using a function variable 35386 by: Richard Lynch 35404 by: John Donagher 35406 by: Richard Lynch Print vs. Echo 35387 by: Karl J. Stubsjoen 35389 by: Jon Haworth 35394 by: Philip Olson quick question on the passed variables between scripts 35388 by: Romulo Roberto Pereira 35393 by: Ignacio Vazquez-Abrams Re: PHP Editors 35390 by: Ignacio Vazquez-Abrams 35395 by: Brandon Orther Re: [PHP-WIN] best user authentication method? 35392 by: Ignacio Vazquez-Abrams Re: Spell checker? 35396 by: Brandon Orther ClibPDF Tutorial? 35397 by: Tom Harris Re: php 4.0.5.dev will not read php.ini on NT 35398 by: Robert question on time-based function 35399 by: Rudy McDaniel Variable Scope 35400 by: Karl J. Stubsjoen 35405 by: Philip Olson 35407 by: Rasmus Lerdorf 35417 by: Philip Olson 35425 by: Michael Kimsal Re: preg_replace problem 35401 by: Ignacio Vazquez-Abrams GD, PHP and Apache troubles 35408 by: Kees Hoekzema 35409 by: Rasmus Lerdorf isset inside echo? 35410 by: Romulo Roberto Pereira 35413 by: Ignacio Vazquez-Abrams find out if a number is a multiple of three 35411 by: Brett 35414 by: Ignacio Vazquez-Abrams decimal point movement... 35412 by: Christopher Allen 35447 by: Robert Collins 35459 by: DanO 35461 by: jeremy brand 35463 by: DanO 35465 by: jeremy brand using both version 3 and 4? 35416 by: OutBox 35419 by: O.Cook.etoncollege.org.uk disable_functions - but which? 35422 by: Maciek Uhlig Re: upgrade problems 35423 by: Bart A. Verbeek Re: help me!! Cookie 35424 by: Diego Fulgueira Can a PHP program recieve an e-mail and write it to a file??? 35426 by: Jeremy Bowen 35428 by: Ignacio Vazquez-Abrams 35462 by: Chris Hayes 35469 by: Chris Hayes 35507 by: Ignacio Vazquez-Abrams Re: PHP connecting to FIlemaker Database 35427 by: Andy Clarke 35431 by: Michael Stearne Re: Running java under php4 (PHP4 ext/java) 35429 by: Alex Akilov 35547 by: Fraser MacKenzie LDAP problems 35430 by: Bill.Hoffman.walgreens.com Re: ext/java causes segfault in Apache 35433 by: Alex Akilov disable_functions and httpd.conf 35434 by: Maciek Uhlig 35442 by: Maciek Uhlig Re: < Levels of Access > 35435 by: Alex Black Re: How to avoid submitting twice? 35436 by: Alex Black Re: <? PHP vs. <? 35437 by: Alex Black 35439 by: Alexander Wagner 35441 by: eschmid+sic.s.netic.de 35444 by: Alexander Wagner 35446 by: eschmid+sic.s.netic.de 35449 by: Alexander Wagner 35451 by: eschmid+sic.s.netic.de 35464 by: Michael Talbot-Wilson 35496 by: Toby Butzon 35499 by: Shawn Blaylock 35506 by: eschmid+sic.s.netic.de Re: Problem with PHP using Java Classes 35438 by: Alex Akilov 35548 by: Fraser MacKenzie Re: PHP ext/java and sapi/servlet reliability 35443 by: Alex Akilov question (as if anything else would be in an email to the list...) 35452 by: Jason Jacobs 35457 by: Alex Black 35458 by: DanO 35460 by: Jason Jacobs Clear an array 35454 by: Brandon Orther 35456 by: Ignacio Vazquez-Abrams XML Parser is a bit strict 35466 by: Butler, Shaun 35472 by: Chris Lee 35474 by: Mike Heath 35510 by: Chris Adams 35529 by: Brian White 35545 by: Francois Beauregard srtoring user selection on the database... 35467 by: Romulo Roberto Pereira 35470 by: jeremy brand 35483 by: Romulo Roberto Pereira 35487 by: jeremy brand 35489 by: Ignacio Vazquez-Abrams 35490 by: Ignacio Vazquez-Abrams 35491 by: Ignacio Vazquez-Abrams why does pdfclock and example 1 doesn't 35468 by: Tom Harris How to participate from the digest? 35471 by: dphillips.rfdinc.com 35473 by: jeremy brand 35475 by: Chris Lee 35476 by: Philip Olson Quotes and Values 35477 by: Karl J. Stubsjoen 35480 by: Darryl Friesen 35482 by: jeremy brand 35486 by: Philip Olson 35488 by: Chris Lee 35492 by: Josh G Clearing a variable 35478 by: Brandon Orther 35479 by: Ignacio Vazquez-Abrams 35481 by: Matthew Mundy 35484 by: Sterling Hughes 35485 by: jeremy brand $PHP_SELF truncated to 17 chars 35493 by: Shawn Blaylock 35501 by: jeremy brand 35502 by: Shawn Blaylock 35505 by: jeremy brand 35508 by: Shawn Blaylock Where is information about Forms? 35494 by: Karl J. Stubsjoen 35495 by: Ignacio Vazquez-Abrams 35497 by: Josh G 35504 by: Ignacio Vazquez-Abrams Announcement: Smarty - the PHP compiling template engine 35498 by: Monte Ohrt 35526 by: Josh G How to get userID/password from the browser session 35500 by: david klein 35503 by: Ignacio Vazquez-Abrams 35509 by: david klein Re: I love/hate FrontPage - need another HTML editor. 35511 by: Murph 35512 by: Ignacio Vazquez-Abrams 35515 by: Toby Butzon 35523 by: Egan date problem: some months have 5 weeks... how I discover which ones? 35513 by: Romulo Roberto Pereira 35518 by: Josh G 35519 by: jeremy brand 35524 by: Romulo Roberto Pereira 35528 by: jeremy brand (PHP+Linux+Apache+MySQL)+(Windows+Explorer) 35514 by: Andrés de la Varga 35517 by: Ignacio Vazquez-Abrams 35522 by: jeremy brand 35538 by: Kevin Leavell Ultimate Editor 35516 by: Chris Aitken 35531 by: Nathan Cook 35532 by: Michael A. Peters 35533 by: Scott Gerhardt 35534 by: Ignacio Vazquez-Abrams 35535 by: Jerry Lake 35536 by: Scott Gerhardt 35539 by: Michael A. Peters 35541 by: Michael A. Peters 35542 by: James Mclean R: [PHP] Can a PHP program recieve an e-mail and write it to a file??? 35520 by: Delbono problems creating a png image from an array{HELP} 35525 by: Nikos Tahos Variable method 35530 by: Blaine Grady Web hosting for PHP/MySQl development 35537 by: Chris Lott 35540 by: Tyler Longren 35551 by: Maxim Maletsky 35559 by: Egan Re: how do I do this, please? 35543 by: John Hinsley Help with PHP Shell Scripting 35546 by: Justin Yu File upload on linux 35549 by: MacBane cookie does not work 35550 by: Fai date("t") 35552 by: Maurice Rickard 35553 by: Toby Butzon 35554 by: Maurice Rickard Re: MySQL + PWS Problems 35555 by: Chris 35556 by: Chris 35557 by: Toby Butzon a text formating & cpu question 35558 by: Noel Akins Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
I know this isn't the right place to ask this question, but... Anybody know how i can make/find a wysiwy (what you see is what you get) online html editor (like the one Hotmail has!) ... I'm gonna use it in a newsgroup (which supports rich text)! Any tips anyone? NOTE! I'm not a part of this group at home, but could you please answer me directly? [EMAIL PROTECTED] Best Regards Fredrik A. Takle
you'd need a java applet to do that... I actually had one made, but you can't get text in on the clipboard because java can't get access to system resources, which of course makes it useless. :) -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth St Suite 433 Berkeley, CA 94710-2522 > From: [EMAIL PROTECTED] ("Fredrik Arild Takle") > Newsgroups: php.general > Date: 18 Jan 2001 08:11:40 -0800 > Subject: [PHP] Forms! > > I know this isn't the right place to ask this question, but... > > Anybody know how i can make/find a wysiwy (what you see is what you get) > online html editor (like the one Hotmail has!) ... > > I'm gonna use it in a newsgroup (which supports rich text)! > > Any tips anyone? > > NOTE! I'm not a part of this group at home, but could you please answer me > directly? [EMAIL PROTECTED] > > Best Regards > Fredrik A. Takle > >
Alex, True ... to a point. A signed applet has access to read/write to the client's clipboard. Cheers. -- http://www.datamirror.com Clive Cartlidge mailto:[EMAIL PROTECTED] Senior Web Developer phone: 905-415-0310 x160 DataMirror Corporation fax: 905-415-0340 > -----Original Message----- > From: Alex Black [mailto:[EMAIL PROTECTED]] > Sent: January 18, 2001 3:30 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Forms! > > > you'd need a java applet to do that... I actually had one > made, but you > can't get text in on the clipboard because java can't get > access to system > resources, which of course makes it useless. > > :) > > > -- > Alex Black, Head Monkey > [EMAIL PROTECTED] > > The Turing Studio, Inc. > http://www.turingstudio.com > > vox+510.666.0074 > fax+510.666.0093 > > Saul Zaentz Film Center > 2600 Tenth St Suite 433 > Berkeley, CA 94710-2522 > > > > > > From: [EMAIL PROTECTED] ("Fredrik Arild Takle") > > Newsgroups: php.general > > Date: 18 Jan 2001 08:11:40 -0800 > > Subject: [PHP] Forms! > > > > I know this isn't the right place to ask this question, but... > > > > Anybody know how i can make/find a wysiwy (what you see is > what you get) > > online html editor (like the one Hotmail has!) ... > > > > I'm gonna use it in a newsgroup (which supports rich text)! > > > > Any tips anyone? > > > > NOTE! I'm not a part of this group at home, but could you > please answer me > > directly? [EMAIL PROTECTED] > > > > Best Regards > > Fredrik A. Takle > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] >
Unfortunately, that makes it a little weird to distribute as a free product, and has all sorts of yucky legal implications (or inconvenience) :) _alex -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth St Suite 433 Berkeley, CA 94710-2522 > From: [EMAIL PROTECTED] (Clive Cartlidge) > Newsgroups: php.general > Date: 18 Jan 2001 12:42:33 -0800 > Subject: RE: [PHP] Forms! > > Alex, > > True ... to a point. A signed applet has access to read/write to the client's > clipboard. > > Cheers. > > > -- http://www.datamirror.com > Clive Cartlidge mailto:[EMAIL PROTECTED] > Senior Web Developer phone: 905-415-0310 x160 > DataMirror Corporation fax: 905-415-0340 > >> -----Original Message----- >> From: Alex Black [mailto:[EMAIL PROTECTED]] >> Sent: January 18, 2001 3:30 PM >> To: [EMAIL PROTECTED] >> Subject: Re: [PHP] Forms! >> >> >> you'd need a java applet to do that... I actually had one >> made, but you >> can't get text in on the clipboard because java can't get >> access to system >> resources, which of course makes it useless. >> >> :) >> >> >> -- >> Alex Black, Head Monkey >> [EMAIL PROTECTED] >> >> The Turing Studio, Inc. >> http://www.turingstudio.com >> >> vox+510.666.0074 >> fax+510.666.0093 >> >> Saul Zaentz Film Center >> 2600 Tenth St Suite 433 >> Berkeley, CA 94710-2522 >> >> >> >> >>> From: [EMAIL PROTECTED] ("Fredrik Arild Takle") >>> Newsgroups: php.general >>> Date: 18 Jan 2001 08:11:40 -0800 >>> Subject: [PHP] Forms! >>> >>> I know this isn't the right place to ask this question, but... >>> >>> Anybody know how i can make/find a wysiwy (what you see is >> what you get) >>> online html editor (like the one Hotmail has!) ... >>> >>> I'm gonna use it in a newsgroup (which supports rich text)! >>> >>> Any tips anyone? >>> >>> NOTE! I'm not a part of this group at home, but could you >> please answer me >>> directly? [EMAIL PROTECTED] >>> >>> Best Regards >>> Fredrik A. Takle >>> >>> >> >> >> -- >> PHP General Mailing List (http://www.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] >
Agreed. Just thought I'd throw it out there for discussion. "Now talk amongst yourselves." Cheers. Clive > -----Original Message----- > From: Alex Black [mailto:[EMAIL PROTECTED]] > Sent: January 18, 2001 3:59 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Forms! > > > Unfortunately, that makes it a little weird to distribute as > a free product, > and has all sorts of yucky legal implications (or inconvenience) :) > > _alex > > > -- > Alex Black, Head Monkey > [EMAIL PROTECTED] > > The Turing Studio, Inc. > http://www.turingstudio.com > > vox+510.666.0074 > fax+510.666.0093 > > Saul Zaentz Film Center > 2600 Tenth St Suite 433 > Berkeley, CA 94710-2522 > > > > > > From: [EMAIL PROTECTED] (Clive Cartlidge) > > Newsgroups: php.general > > Date: 18 Jan 2001 12:42:33 -0800 > > Subject: RE: [PHP] Forms! > > > > Alex, > > > > True ... to a point. A signed applet has access to > read/write to the client's > > clipboard. > > > > Cheers. > > > > > > -- http://www.datamirror.com > > Clive Cartlidge mailto:[EMAIL PROTECTED] > > Senior Web Developer phone: 905-415-0310 x160 > > DataMirror Corporation fax: 905-415-0340 > > > >> -----Original Message----- > >> From: Alex Black [mailto:[EMAIL PROTECTED]] > >> Sent: January 18, 2001 3:30 PM > >> To: [EMAIL PROTECTED] > >> Subject: Re: [PHP] Forms! > >> > >> > >> you'd need a java applet to do that... I actually had one > >> made, but you > >> can't get text in on the clipboard because java can't get > >> access to system > >> resources, which of course makes it useless. > >> > >> :) > >> > >> > >> -- > >> Alex Black, Head Monkey > >> [EMAIL PROTECTED] > >> > >> The Turing Studio, Inc. > >> http://www.turingstudio.com > >> > >> vox+510.666.0074 > >> fax+510.666.0093 > >> > >> Saul Zaentz Film Center > >> 2600 Tenth St Suite 433 > >> Berkeley, CA 94710-2522 > >> > >> > >> > >> > >>> From: [EMAIL PROTECTED] ("Fredrik Arild Takle") > >>> Newsgroups: php.general > >>> Date: 18 Jan 2001 08:11:40 -0800 > >>> Subject: [PHP] Forms! > >>> > >>> I know this isn't the right place to ask this question, but... > >>> > >>> Anybody know how i can make/find a wysiwy (what you see is > >> what you get) > >>> online html editor (like the one Hotmail has!) ... > >>> > >>> I'm gonna use it in a newsgroup (which supports rich text)! > >>> > >>> Any tips anyone? > >>> > >>> NOTE! I'm not a part of this group at home, but could you > >> please answer me > >>> directly? [EMAIL PROTECTED] > >>> > >>> Best Regards > >>> Fredrik A. Takle > >>> > >>> > >> > >> > >> -- > >> PHP General Mailing List (http://www.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] >
Excellent, thanks a lot Chris. Steve (jalist) [EMAIL PROTECTED] http://ls2k.org -----Original Message----- From: Chris Hayes [mailto:[EMAIL PROTECTED]] Sent: 18 January 2001 15:43 To: jalist; PHP Subject: Re: [PHP] (Newbie) String within a string jalist: > I'm trying to grab a string from within a string based on a matching word or > phrase. Example... You say you want the middle, not two words before and two words after. I see several ways. 1. Explode into an word-array and use that: 1. prepare string a) add spaces after comma's and fullstops by some replace operation (replace ',' by ', '). b) remove double spaces 2. split to an array using explode (space as string separator) Now you have every word in a separate place in the array 3. Get # of words by count($array) 4. Divide by two and get nearest integer (hence floor and +0.5!) $mid= floor(count($array)/2 + 0.5) OH NO, correction, that's the middle, you wanted a specific word. I'm afraid you'll have to walk thorugh the array to find the word you need. for (i=0;i<count($array);i++) { if ($array[$i]==$searchword) { $fragment= "...". $array[$mid-2] ." " $array[$mid-1] ." " $array[$mid] ." " $array[$mid+1] ." " $array[$mid+2] ."..."; ##extra job for you: make sure $i >= 2 ## and $i <= count-2 ## or you'll get an error [exit the for loop somehow, maybe drop this in a function and RETURN;] } } OR 2. Continue with the strpos and strrpos, organize it a bit better. For instance find the middle of the string. Split at nearest space in leftstring and rightstring. Make a function chop_last_word, chop last two or three words from leftstring and add to resultstring in right order. Same for rightstring. I think the array way is cleaner. Chris -------------------------------------------------------------------- -- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands -- -------------------------------------------------------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
i work with php3 and mysql in IIS webserver,my project in php work right on the localhost, but not in the other pc of the LAN, what can i do? the internet options enable Cookies. thank you?
John Huggins wrote: > I suggest Ultraedit (on the PC) at http://www.ultraedit.com. I use it > along side Dreamweaver with good results and good organization. Ultraedit > (out of the box) does not know about PHP; you configure it with one of the > several wordlist files and then you will have syntax highlighting. I try > to use Dreamweaver to organize and FTP the files back and forth from server > to workstation. However, I have frequently used the built in FTP Load/Save > ability in Ultraedit; This is a great timesaver. That depends. If you can't test locally, it can. If you can, and especially when you're working on some bigger application and use CVS anyway it won't do you any good. > Still, an editor is just an editor But emacs is pretty different, isn't it? You can't compare emacs or vi to any other editor. Wagner -- One maniac alone can do what 20 together cannot
I use editplus, which has php highlighting built in... and a great ftp utility as well. http://www.editplus.com for more info. Rudy ----- Original Message ----- From: "Alexander Wagner" <[EMAIL PROTECTED]> To: "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 11:18 AM Subject: Re: [PHP] PHP Editors... perhaps Ultraedit > John Huggins wrote: > > I suggest Ultraedit (on the PC) at http://www.ultraedit.com. I use it > > along side Dreamweaver with good results and good organization. Ultraedit > > (out of the box) does not know about PHP; you configure it with one of the > > several wordlist files and then you will have syntax highlighting. I try > > to use Dreamweaver to organize and FTP the files back and forth from server > > to workstation. However, I have frequently used the built in FTP Load/Save > > ability in Ultraedit; This is a great timesaver. > > That depends. If you can't test locally, it can. If you can, and especially > when you're working on some bigger application and use CVS anyway it won't do > you any good. > > > Still, an editor is just an editor > > But emacs is pretty different, isn't it? You can't compare emacs or vi to any > other editor. > > Wagner > > -- > One maniac alone can do what 20 together cannot > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com
You could either Compile PHP as a command line executable or Use Lynx to call a php page through HTTP. either wat cron is the way to go Regards -- Jon Farmer www.workcam.co.uk +44 (0)7968 524175 2001 should be pronounced twenty o one not two thousand and one "Jason Murray" <[EMAIL PROTECTED]> wrote in message 1595534C9032D411AECE00508BC766FB01052937@MERCURY">news:1595534C9032D411AECE00508BC766FB01052937@MERCURY... > > I need to run a script that renames a file and deletes an old > > one then ships it to another server every Monday at a certain > > time.... I know this is possible, but what is the technology > > called? Does PERL or PHP have the ability to do this? Can I > > get CRON objects to run PHP source code? > > Is this an example of such a script, emailling the same mail > to the mailing list every monday at a specific time? > > I already replied to you off-list. > > Jason > > -- > Jason Murray > [EMAIL PROTECTED] > Web Design Team, Melbourne IT > Fetch the comfy chair! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
Addressed to: CDitty <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from CDitty <[EMAIL PROTECTED]> Thu, 18 Jan 2001 06:58:22 -0600 I see someone else has another suggestion that might be better, using array_count(). You learn something new every day, which is why I watch this list... anyway, the thing I see in your code: > > while(list($index, $value) = each($dice)){ // Changed from $Input to ^ > $Output[$Value]++; } ^ $Value != $value I know my use of caps or not in this example sucks. I usually always use Caps On Each Word for my var names, but I am trying to switch to what appears to be the php standard, lower case everywhere. Sorry about that... Rick Widmer Internet Marketing Specialists http://www.developersdesk.com
I wouldn't call it a php standard. I personally feel that readability is far more important than following anything that 'appears' to be standard. I use a format such as this for everything I name: If one word, lowercase, if more than one word: $userSelectedDate or displayCalendar(). So basically everything starts with a lowercase word and all words after that are capitalized at the beginning. Just my two cents. Kristi ----- Original Message ----- > I know my use of caps or not in this example sucks. I usually always > use Caps On Each Word for my var names, but I am trying to switch to > what appears to be the php standard, lower case everywhere. Sorry > about that... > > > > > Rick Widmer > Internet Marketing Specialists > http://www.developersdesk.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
As a generalness, from what I've seen, people who just switched from ASP use somethingUppercase at first. Then forget to capitalize it a few times, and switch to completely lowercase in disgust (case-sensitivity can be quite a shock when you're not used to it). And the people who've done PHP since they started out use whatever they damn well feel like using. I use Something_Something if left ot my own devices, I have no idea why, it just happens. ----- Original Message ----- From: "Kristi Russell" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 10:40 AM Subject: Re: [PHP] Array help needed > I wouldn't call it a php standard. > > I personally feel that readability is far more important than following > anything that 'appears' to be standard. I use a format such as this for > everything I name: If one word, lowercase, if more than one word: > $userSelectedDate or displayCalendar(). So basically everything starts with > a lowercase word and all words after that are capitalized at the beginning. > > Just my two cents. > Kristi > > > ----- Original Message ----- > > I know my use of caps or not in this example sucks. I usually always > > use Caps On Each Word for my var names, but I am trying to switch to > > what appears to be the php standard, lower case everywhere. Sorry > > about that... > > > > > > > > > > Rick Widmer > > Internet Marketing Specialists > > http://www.developersdesk.com > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
Thanks. Didn't see that myself. Thanks for the help Chris At 10:28 AM 1/18/01, [EMAIL PROTECTED] wrote: >Addressed to: CDitty <[EMAIL PROTECTED]> > [EMAIL PROTECTED] > >** Reply to note from CDitty <[EMAIL PROTECTED]> Thu, 18 Jan 2001 >06:58:22 -0600 > >I see someone else has another suggestion that might be better, using >array_count(). You learn something new every day, which is why I watch >this list... > > >anyway, the thing I see in your code: > > > > > while(list($index, $value) = each($dice)){ // Changed from $Input to > ^ > > > $Output[$Value]++; } > ^ > >$Value != $value > > > >I know my use of caps or not in this example sucks. I usually always >use Caps On Each Word for my var names, but I am trying to switch to >what appears to be the php standard, lower case everywhere. Sorry >about that... > > > > >Rick Widmer >Internet Marketing Specialists >http://www.developersdesk.com
Hi all! Can someone shed any light on the internals of the session file format? Is it documented somewhere? We are building a system to log user paths, and are thinking of harvesting PHP session objects to accomplish this. Has someone done the same? Thanks for all help! :-) -- -- Eivind Trondsen http://www.allycards.com -- UberGeek gsm://+4797044324
No if memory serves me correctly php by default saves the session files in its own format, but you can tell php to save sessions in XML (wddx? am I way off) Ive never used XML, WDDX, or tried doing anything directly with the sessions files.... Chris Lee "Eivind Trondsen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi all! > > Can someone shed any light on the internals of the session file > format? Is it documented somewhere? > > We are building a system to log user paths, and are thinking of > harvesting PHP session objects to accomplish this. Has someone done > the same? > > Thanks for all help! :-) > > -- > -- Eivind Trondsen http://www.allycards.com > -- UberGeek gsm://+4797044324 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
On 18 Jan 2001 08:28:50 -0800, Eivind Trondsen <[EMAIL PROTECTED]> wrote: >Can someone shed any light on the internals of the session file >format? Is it documented somewhere? > >We are building a system to log user paths, and are thinking of >harvesting PHP session objects to accomplish this. Has someone done >the same? First, you probably want to have your code log to a database instead. The session files won't have the context information you want. Alternately, just turn on mod_usertrack in your Apache config and any decent log analysis program will be able to do that for you. However, if you do want to decipher those files, note the similarity between the contents of one and the output of serialize($HTTP_SESSION_VARS).
> > Why would Microsoft be using Solaris, or Linux even? (hint, the same > > reason -- their stuff works less good). > > Do you know for a fact that they do? If so, how? That'd be a very cool > tidbit of information to share . . . Yep it is (was) true. We used to laugh about it at work. (We were in the middle of a big Unix vs. NT debate). They used solaris on their web servers early on. (Probably because a) The Intel "server class" machine market was relatively immature at that point and b) Prior to NT4 SP3, NT had no chance of holding up under any sort of load). They are all Win2k now last time I checked. Hotmail did use FreeBSD as I recall. This was an external company that Microsoft acquired and they made the decision not to completely rewrite it when they acquired it (although considering how completely clueless Hotmail was about web security they probably should've done it). There are (or used to be) some number of publically available Linux boxes in the microsoft.com domain. (Mostly in their research labs.) You should be able to do a web or deja search and find info on them if you are really interested. -Brian
Before Microsoft bought it, Hotmail had a FreeBSD/Apache frontend and a Sun/Solaris backend. Supposedly, corporate wanted MS to move Hotmail to NT, but supposedly it failed so miserably at serving up 10 million users that they had to nix those plans. I think Hotmail is running FreeBSD/Apache for the most part, but 5-10% of the servers are Win2K... As for Linux, from what I've heard (haven't tested this out myself or anything), FreeBSD and Sun/Solaris are quite a bit more efficient for web servers. Linux just can't take the number of hits that the other two can. Linux is okay for development, but personally I'd rather run the same system on my development machines as I do for my live machines... O- ~ARK CFO, Hmedicine.com, Inc. I hope it feels so good to be right. There's nothing more exhilarating than pointing out the shortcomings of others, is there?... ~Randal from "Clerks" > -----Original Message----- > From: jeremy brand [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 18, 2001 10:22 AM > To: CC Zona > Subject: Re: [PHP] Ethics question... > > > > > Why would Microsoft be using Solaris, or Linux even? > (hint, the same > > > > reason -- their stuff works less good). > > Www.microsoft.com used to be served off of Solaris (where else could > you run a high performance installation of Oracle? ;). Hotmail was > (is) FreeBSD. Anyone would be stupid to not be using linux in their > interprise somewhere.
is there any benchmarks or proof that I should host a high traffic site on a FREEBSD/APACHE instead of a redhat Linux/Apache server? randy -----Original Message----- From: Ayan R. Kayal [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 1:42 PM To: [EMAIL PROTECTED] Subject: [PHP] RE: Ethics question... Before Microsoft bought it, Hotmail had a FreeBSD/Apache frontend and a Sun/Solaris backend. Supposedly, corporate wanted MS to move Hotmail to NT, but supposedly it failed so miserably at serving up 10 million users that they had to nix those plans. I think Hotmail is running FreeBSD/Apache for the most part, but 5-10% of the servers are Win2K... As for Linux, from what I've heard (haven't tested this out myself or anything), FreeBSD and Sun/Solaris are quite a bit more efficient for web servers. Linux just can't take the number of hits that the other two can. Linux is okay for development, but personally I'd rather run the same system on my development machines as I do for my live machines... O- ~ARK CFO, Hmedicine.com, Inc. I hope it feels so good to be right. There's nothing more exhilarating than pointing out the shortcomings of others, is there?... ~Randal from "Clerks" > -----Original Message----- > From: jeremy brand [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 18, 2001 10:22 AM > To: CC Zona > Subject: Re: [PHP] Ethics question... > > > > > Why would Microsoft be using Solaris, or Linux even? > (hint, the same > > > > reason -- their stuff works less good). > > Www.microsoft.com used to be served off of Solaris (where else could > you run a high performance installation of Oracle? ;). Hotmail was > (is) FreeBSD. Anyone would be stupid to not be using linux in their > interprise somewhere. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
I have come across numerous reports/tests comparing the various OS's in terms of raw speed and scalability. There are many conclusions but some things seem to stick out: 1.) Linux is very well supported and sometimes easier to maintain than the BSD's (RedHat & RPM's etc.) 2.) Linux and FreeBSD are FREE! 3.) The BSD's (Free, Net, Open, BSDI) have the some of the best networking stacks and scale very well under heavy loads. 4.) Solaris scales very well under heavy loads and is rock solid but this comes at a great expense (hardware and OS). 5.) Linux is fast under light to medium-heavy loads but tends to slow down when saturated where as the BSD's and Solaris just keep on chugging. 6.) NT and 2000 are easy to deploy BUT are never as stable as any *NIX, cost money, and you are fored to do everything the MS "closed-source" way. 7.) NT/2000 uptimes will never compare to any *NIX OS. Everything is relative and is always changing with development.... you could spend many $10,000.00's on Sun/Solaris or you can run Linux or BSD and buy lots of inexpensive Intel/AMD/Alpha hardware. More hardware always wins as long as you have a reasonable OS. That's my two cents worth. ___________________________________ Scott A. Gerhardt P.Geo. Gerhardt Information Technologies [EMAIL PROTECTED] ___________________________________ > Before Microsoft bought it, Hotmail had a FreeBSD/Apache frontend and a > Sun/Solaris backend. Supposedly, corporate wanted MS to move > Hotmail to NT, > but supposedly it failed so miserably at serving up 10 million users that > they had to nix those plans. I think Hotmail is running FreeBSD/Apache for > the most part, but 5-10% of the servers are Win2K... > As for Linux, from what I've heard (haven't tested this out > myself or > anything), FreeBSD and Sun/Solaris are quite a bit more efficient for web > servers. Linux just can't take the number of hits that the other two can. > Linux is okay for development, but personally I'd rather run the > same system > on my development machines as I do for my live machines... > > O- ~ARK > CFO, Hmedicine.com, Inc. > I hope it feels so good to be right. There's nothing more > exhilarating than > pointing out the shortcomings of others, is there?... ~Randal > from "Clerks" > > > -----Original Message----- > > From: jeremy brand [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, January 18, 2001 10:22 AM > > To: CC Zona > > Subject: Re: [PHP] Ethics question... > > > > > > > Why would Microsoft be using Solaris, or Linux even? > > (hint, the same > > > > > reason -- their stuff works less good). > > > > Www.microsoft.com used to be served off of Solaris (where else could > > you run a high performance installation of Oracle? ;). Hotmail was > > (is) FreeBSD. Anyone would be stupid to not be using linux in their > > interprise somewhere. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >
Forgot to add this: http://www.linuxrx.com/WS_Linux/OS_comparison.html > Before Microsoft bought it, Hotmail had a FreeBSD/Apache frontend and a > Sun/Solaris backend. Supposedly, corporate wanted MS to move > Hotmail to NT, > but supposedly it failed so miserably at serving up 10 million users that > they had to nix those plans. I think Hotmail is running FreeBSD/Apache for > the most part, but 5-10% of the servers are Win2K... > As for Linux, from what I've heard (haven't tested this out > myself or > anything), FreeBSD and Sun/Solaris are quite a bit more efficient for web > servers. Linux just can't take the number of hits that the other two can. > Linux is okay for development, but personally I'd rather run the > same system > on my development machines as I do for my live machines... > > O- ~ARK > CFO, Hmedicine.com, Inc. > I hope it feels so good to be right. There's nothing more > exhilarating than > pointing out the shortcomings of others, is there?... ~Randal > from "Clerks" > > > -----Original Message----- > > From: jeremy brand [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, January 18, 2001 10:22 AM > > To: CC Zona > > Subject: Re: [PHP] Ethics question... > > > > > > > Why would Microsoft be using Solaris, or Linux even? > > (hint, the same > > > > > reason -- their stuff works less good). > > > > Www.microsoft.com used to be served off of Solaris (where else could > > you run a high performance installation of Oracle? ;). Hotmail was > > (is) FreeBSD. Anyone would be stupid to not be using linux in their > > interprise somewhere. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >
Frank Joerdens <[EMAIL PROTECTED]> wrote: (the context is Microsoft using other OSs) > Do you know for a fact that they do? If so, how? That'd be a very cool > tidbit of information to share . . . See also: http://www.unix-vs-nt.org/kirch/ A good document to hit clients/funders/bosses over the head with if they insist you use NT/IIS (yuk!) [makes sign of the cross and exits, stage left....] -- ****************************************************************************** Marx: "Why do Anarchists only drink herbal tea?" Proudhon: "Because all proper tea is theft." ******************************************************************************
Hello, I am making a script that creates a dynamic htm page. One of the many things that this script does is change the css. The problem I am having is that it doesn't seem to display the css when it is loaded through the web server. When I look at the source and save it as an htm file. It loads up perfectly. Has anyone ever had this problem before? Thank you, -------------------------------------------- Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com --------------------------------------------
On 18 Jan 2001 08:58:45 -0800, Brandon Orther <[EMAIL PROTECTED]> wrote: >I am making a script that creates a dynamic htm page. One of the many >things that this script does is change the css. The problem I am having is >that it doesn't seem to display the css when it is loaded through the web >server. When I look at the source and save it as an htm file. It loads up >perfectly. Has anyone ever had this problem before? PHP doesn't care about the bytes being sent, so there shouldn't be any special problems related to CSS. Have you verified whether or not any of what you expect is showing up in the generated HTML? At a guess, there's something slightly wrong in the generated code which is causing a display failure. If you're saving it through IE, some of the save options will have IE save it's internal parsed version (it's the same cause as the difference between View Source's code and View Partial Source's output), which could explain why that works.
I'm working with php3 and IIS, i had set cookie with: name, $session->cookie, $session->timeid+3600, "/"); ?> but these cokkie work right only on localhost and not on the others computer of the LAN, the options setting of internet: enable Cookie, where is the problem? Thank You!
Hi I have a web site that sends virtual greetings cards But the mails are been sent as nobody@webserver nobody is the user that runs the web server. Should I run the web server as a different user so that the mails get sent as this user instead of nobody ? I've play with the headers in the mail() function with no success. Any idea ? -- ------------------------------------------------ Yurais Fernández Leal, Systems Administrator Public Health Network Santiago de Cuba [EMAIL PROTECTED] http://www.scu.sld.cu/ Phone: (53) 226-54204 (home) (53) 226-51556 FAX: (53) 226-54204 ICQ: 33792610 ------------
$mailsent = mail("[EMAIL PROTECTED]", "Subject", $mesg, "From: [EMAIL PROTECTED]\n") Try this, Julia Quoting Yurais Fernandez Leal ([EMAIL PROTECTED]): > > Hi > > I have a web site that sends virtual greetings cards > > But the mails are been sent as nobody@webserver > > nobody is the user that runs the web server. > > Should I run the web server as a different user so that the mails get > sent as this user instead of nobody ? > > > I've play with the headers in the mail() function with no success. > > Any idea ? > > > -- > ------------------------------------------------ > Yurais Fernández Leal, Systems Administrator > Public Health Network Santiago de Cuba > [EMAIL PROTECTED] > http://www.scu.sld.cu/ > Phone: (53) 226-54204 > (home) (53) 226-51556 > FAX: (53) 226-54204 > ICQ: 33792610 > ------------ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- [ Julia Anne Case ] [ Ships are safe inside the harbor, ] [Programmer at large] [ but is that what ships are really for. ] [ Admining Linux ] [ To thine own self be true. ] [ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 it seems you didn't understand I tried this option, as I cited in my email I play with the options in the mail() function. The problem is, yes, I know that in the remote mail client the mail appears as if sent from [EMAIL PROTECTED], but in the sendmail connection, for example the Return-Path is set to the UID of the web server, the problem I live in Cuba, and here all the users can't send mails to the internet, thera are selected users who can do so, for example user nobody, can't send mails outside Cuba.... - ----- Original Message ----- From: "Andrew Rush" <[EMAIL PROTECTED]> To: "Yurais Fernandez Leal" <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 12:22 PM Subject: Re: [PHP] Sendmail User ID > > On Thursday, January 18, 2001, at 12:05 PM, Yurais Fernandez Leal > wrote: > > > Should I run the web server as a different user so that the mails > > get sent as this user instead of nobody ? > > no, you should do this: > > $mailTo="[EMAIL PROTECTED]"; > $mailSub="This is an Email"; > $mailBody="Hope you like it." > $addHeaders="From: [EMAIL PROTECTED]"); > > mail($mailTo, $mailSubject, $mailBody, $addHeaders); > > and if you need any more additional header, such as perhaps a Cc: > > $addHeaders="From: [EMAIL PROTECTED]\nCc: [EMAIL PROTECTED]"); > > have a great day, > andy > > :: Andrew Rush :: Lead Systems Developer :: MaineToday.com :: > ******************************************************************** > ****** "Crippled but free, blind all the time, i was learning to > see" > > - J. Garcia / R. Hunter > ******************************************************************** > ****** > > The views expressed herein are not necessarily those of my > employer, but they let me have them anyway. -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com> iQA/AwUBOmc7DkfSljpOGnYdEQKy3wCgof+bX7k/8EYRPPQ701LG0G1z1asAoJWH Zxh4FGo3veHI+nfza89WWWWM =mrax -----END PGP SIGNATURE-----
On Thu, 18 Jan 2001 13:50:56 -0500, Yurais Fernández Leal <[EMAIL PROTECTED]> wrote: >The problem is, yes, I know that in the remote mail client the mail >appears as if sent from [EMAIL PROTECTED], but in the sendmail >connection, for example the Return-Path is set to the UID of the web >server, the problem This issue was discussed a few days ago in another thread. The site performing final delivery determines Return-Path from the envelope address. That means you cannot control Return-Path by means of header manipulation. The only way to control the envelope address is to have the web server call sendmail with the -f option as a trusted user. The -f option will let you specify any address. This has great potential for abuse, so you must tell sendmail, via its configuration, that the web server UID can be trusted. But before doing that, consider the potential for abuse. For example, in a virtual hosting environment, what would prevent PHP authors from providing users with a web form which takes an email address input and calls sendmail with the -f option, forcing it to use a possibly forced address as the envelope address? If the web server is a trusted sendmail user, any PHP script could do that. Whoa! Egan
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Well man I'd consider the choice of invoking sendmail -f, it's right what I need to do, but how can I do so in the mail function ? Is there something I have to alter in the php.ini file ? - ----- Original Message ----- From: "Robert Hough" <[EMAIL PROTECTED]> To: "Yurais Fernandez Leal" <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 5:54 PM Subject: Re: [PHP] Sendmail User ID > On Thu, 18 Jan 2001, Yurais Fernandez Leal wrote: > > > But the mails are been sent as nobody@webserver > > It would help to post the actual snippet of code your using. It > could be any number of things. Though, what I think you are > experiencing, is soemething I dealt with a few days ago. > > > nobody is the user that runs the web server. > > You are probably talking about the Return-Path, which can be > changed by invoking sendmail with the -f option. You will need to > setup a trusted user for this though. > > > Should I run the web server as a different user so that the mails > > get sent as this user instead of nobody ? > > If you setup the trusted user stuff in sendmail, I highly advise > changing the uid from nobody to something else. You must also > consider the serious possibility of someone taking advantage of > this on you. > > Hope that helps, good luck. > > -- > Robert Hough ([EMAIL PROTECTED]) -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com> iQA/AwUBOmeF8UfSljpOGnYdEQIPmwCghNZ3T10g5KbYT2itN3X08sGIb10AniuR RoAoX8G4DGlBi/S2+ty8ZvER =GYr6 -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ok I solved the problem I put a user on the trusted class of the sendmail and added -f otheruser in the php.ini file... thanks everyone -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com> iQA/AwUBOmeMYkfSljpOGnYdEQLl6wCfaQ5pn6k8/3Gwo29d1qA3tB71x64AoKiI 17wy9M5yWqsbmd+R4HMfU7nq =92k6 -----END PGP SIGNATURE-----
> Check out chapter 13 of the php manual: > http://www.php.net/manual/en/language.oop.php > "Static class methods are apparently supported in php v4.02"... using > :: notation. A user-comment that "it works" does not exactly qualify as a documented feature... I wouldn't count on it. By Day: |By Night: Don't miss the Zend Web Store's | There's not enough room here... Grand Opening on January 23, 2001! | Start here: http://www.zend.com | http://l-i-e.com/artists.htm
Static class methods certainly do work, and have for some time. I think Shaun's point is that variable-named function support seems to be missing for calling static class methods. John On Thu, 18 Jan 2001, Richard Lynch wrote: > > Check out chapter 13 of the php manual: > > http://www.php.net/manual/en/language.oop.php > > "Static class methods are apparently supported in php v4.02"... using > > :: notation. > > A user-comment that "it works" does not exactly qualify as a documented > feature... > > I wouldn't count on it. > > By Day: |By Night: > Don't miss the Zend Web Store's | There's not enough room here... > Grand Opening on January 23, 2001! | Start here: > http://www.zend.com | http://l-i-e.com/artists.htm > > > > -- John Donagher Application Engineer Intacct Corp. - Powerful Accounting on the Web 408-395-0989 720 University Ave. Los Gatos CA 95032 www.intacct.com -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.0.1 (GNU/Linux) Comment: For info see http://www.gnupg.org mQGiBDnCZ1oRBACFgkFCV6p3dWic1qm1FLhip5beIyzZSt+ccTDYQQdPZA/t5H+k PZ7ZFBIUrXz/oEqwQwlEKlg8JQqg7hgtcL+xrIJ0BInLeSJG4lvvB551g59Thr7/ OsdxNVxKci775+K+GkdAz4xcULMuB+QE7t665Ri46EAS8ALos5UG6DGmhwCguD0v 1cxwy/KlKr+oi4sWM9caueED/RmjiSD3vmBZQt6PMisVe1AmkEf6cJoemduCSJxu 0eMz/LIeu+CqfpuJH2N/dZ3hRj9xMSHF4l71wKqV99zhm58kDGwG1u3yVzULPDqz 0yL+8nunlkoOUyn3zOnh3Zmz4POFVMZQ5oian3QkLllUwly5JCi5tWULxZ2vOkb0 zzjuA/4jigNxYV4NAyCl+wAbnyzk9/Iz8EHv4/0Ex8ytlcMtvBJKa9HjJxlyIl74 yOILHk3+GSAdM0b3ZmbavpoCpebinOMBhqEVBwCI4VUIAqf86gx+2dKBGxfKPnU4 Xxvqs/BOl/EbeJjyd4uieYndGRaWg+kYXqZ7SxrlFN24fohnd7QgSm9obiBEb25h Z2hlciA8am9obkB3ZWJtZXRhLmNvbT6IVgQTEQIAFgUCOcJnWgQLCgQDAxUDAgMW AgECF4AACgkQIt6tVu6+jd3SHwCgjssFktMXf8NjE9JBR+sJ2gDIsW8An0CFNdFd dU+DJYC6ogYP9AsVfM27uQENBDnCZ2MQBAD8E0qe1gBKjtoRmyiyORtwhOz/2XZE mqiZN2NouAUWRRZd4dHggFAA1jUsp2MVIZZQyY9ajNVy3Oaxj5kYz8LR5GItxxcD jC8RFXKM40ZfTJeR7fH6eJa689w+le71Tt4ALyN4xcjSWuksr8795AhHFjonDi8D rgGIq6GtWvi/KwADBgQAmeBbcjPzhqR2M8TdvEyNfVTQSSp/RNoTjNNWpHui8V0p kiQ49tbsqeMjXGToGgMugfmrX77JidXyuVjgYjT9xUdaaA25qKAR75M9izDliT7Y h5L+QZTAw0/5X9go7XK3WI3LYfFrp4TP0veXgSWxDqccqsRzWKW7IoXsliTCbVqI RgQYEQIABgUCOcJnYwAKCRAi3q1W7r6N3YIcAKCkJMTPLu6tOPnXPl2s3xmnSawy BACeOx83WlBhVScYWo+BUzntJ6ks4T0= =OkJU -----END PGP PUBLIC KEY BLOCK-----
> Static class methods certainly do work, and have for some time. I think > Shaun's point is that variable-named function support seems to be > missing for calling static class methods. Then it looks like somebody needs to file a couple Feature Requests: Documentation to validate that calling static class methods is supported. Variable function names to work for them.
What is the basic difference between print and echo? As I am understanding it, Echo allows you to define a multi-line area to output text without having to repeat quoting for each line but then what is the advantage of print? Thanks!
>From www.php.net/print : The print() function returns a boolean indicating the status of the call. If the write was successful, print() returns 1. If not, it returns 0. This can be used to detect when the client has closed the connection, and appropriate measures taken. The builtin echo does not provide this same service. This may be handy for you, though there's probably a lot more to it. HTH Jon -----Original Message----- From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]] Sent: 18 January 2001 17:02 To: PHP Mailing List Subject: [PHP] Print vs. Echo What is the basic difference between print and echo? As I am understanding it, Echo allows you to define a multi-line area to output text without having to repeat quoting for each line but then what is the advantage of print? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Have a look here : What is the difference between echo and print? : ----------------------------------------------------------- http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/41 Philip On Thu, 18 Jan 2001, Karl J. Stubsjoen wrote: > What is the basic difference between print and echo? As I am understanding > it, Echo allows you to define a multi-line area to output text without > having to repeat quoting for each line but then what is the advantage of > print? > > Thanks! > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
Hello! I have one script that has a bunch of checkboxes in a form, all them with different names. As you know the <form> only submit the ones that are checked. I would like to know witch ones the user checked (they will come in the path as variables I suppose) because I need to make a sum of the ones that are checked, and right now I am using isset() to verify before I sum. This is way too bad, because as I have 48 checkboxes I have too many IFs. Please help! Rom Example: this is what I am doing: script 1: <form action=script2.php> <input type=checkbox name=cb01 value=729> <input type=checkbox name=cb02 value=815> <input type=checkbox name=cb03 value=36> <input type=checkbox name=cb04 value=988> <input type=checkbox name=cb05 value=215> <input type=checkbox name=cb06 value=45446> <input type=checkbox name=cb07 value=22> <input type=checkbox name=cb08 value=52564> <input type=checkbox name=cb09 value=455> <input type=checkbox name=cb10 value=21132> </form> script 2: $sum = 0; if (isset($cb01)) $sum = $sum + $cb01; if (isset($cb02)) $sum = $sum + $cb02; if (isset($cb03)) $sum = $sum + $cb03; if (isset($cb04)) $sum = $sum + $cb04; if (isset($cb05)) $sum = $sum + $cb05; if (isset($cb06)) $sum = $sum + $cb06; if (isset($cb07)) $sum = $sum + $cb07; if (isset($cb08)) $sum = $sum + $cb08; if (isset($cb09)) $sum = $sum + $cb09; if (isset($cb10)) $sum = $sum + $cb10; echo $sum;
On Thu, 18 Jan 2001, Romulo Roberto Pereira wrote: > Hello! > > I have one script that has a bunch of checkboxes in a form, all them with > different names. As you know the <form> only submit the ones that are > checked. I would like to know witch ones the user checked (they will come in > the path as variables I suppose) because I need to make a sum of the ones > that are checked, and right now I am using isset() to verify before I sum. > This is way too bad, because as I have 48 checkboxes I have too many IFs. > > Please help! > > Rom > > Example: this is what I am doing: > > script 1: > > <form action=script2.php> > <input type=checkbox name=cb01 value=729> > <input type=checkbox name=cb02 value=815> > <input type=checkbox name=cb03 value=36> > <input type=checkbox name=cb04 value=988> > <input type=checkbox name=cb05 value=215> > <input type=checkbox name=cb06 value=45446> > <input type=checkbox name=cb07 value=22> > <input type=checkbox name=cb08 value=52564> > <input type=checkbox name=cb09 value=455> > <input type=checkbox name=cb10 value=21132> > </form> > > script 2: > $sum = 0; > if (isset($cb01)) $sum = $sum + $cb01; > if (isset($cb02)) $sum = $sum + $cb02; > if (isset($cb03)) $sum = $sum + $cb03; > if (isset($cb04)) $sum = $sum + $cb04; > if (isset($cb05)) $sum = $sum + $cb05; > if (isset($cb06)) $sum = $sum + $cb06; > if (isset($cb07)) $sum = $sum + $cb07; > if (isset($cb08)) $sum = $sum + $cb08; > if (isset($cb09)) $sum = $sum + $cb09; > if (isset($cb10)) $sum = $sum + $cb10; > > echo $sum; > Try: script1: <form ...> <input type="checkbox" name="cb[1]" value="729"> <input type="checkbox" name="cb[2]" value="815"> <input type="checkbox" name="cb[3]" value="36"> ... </form> script2: <?php $sum=0; while (list($key, $val)=each($cb)) { $sum+=$val; }; print($sum); ?> -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
On Thu, 18 Jan 2001, Karl J. Stubsjoen wrote: > So what editor is recommended? I'm a little familiar with Emacs (kinda > cool, but I'm use to keywords and such being colored - as in Interdev). > > Thanks! > I've found vim to be quite capable. Only a few syntax highlighting problems, but no big deal. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
I am not sure what OS you are running but for windows I use PHPED. Check it out at www.phped.com -----Original Message----- From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 7:03 AM To: PHP Mailing List Subject: [PHP] PHP Editors So what editor is recommended? I'm a little familiar with Emacs (kinda cool, but I'm use to keywords and such being colored - as in Interdev). Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
On Thu, 18 Jan 2001, Wacks, David wrote: > DOES anyone know if there is a way to us MS Authentication directly from > Linux? I am looking into LDAP right now, but am hoping there is an easier > way > > --Dave > Try pam_smb. We've implemented this to allow users to use their domain logon password as their e-mail password, and we always get rave reviews over this feature :) -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
Check here, I have never messed with it just ran into it the other day. I hope it helps. http://www.php.net/manual/en/ref.pspell.php Thank you, -------------------------------------------- Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com -------------------------------------------- -----Original Message----- From: Nik Gare [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 6:13 AM To: [EMAIL PROTECTED] Subject: [PHP] Spell checker? Hi, I have a site which will be updated periodically by someone else, so have made some forms with textareas for them to upload the text into the MySQL database. I was wondering if there is a PHP function/class which could spell check these forms? TTFN Nik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Does anyone know a good tutorial on using the ClibPDF functions (I gave up on pdflib, couldn't get it complied correctly)? I don't need to know how to do anything complex, just put text into a pdf that outputs directly to the browser. Thanks.
Configuration File (php.ini) Path php.ini is what it said before. It still says that, I switched back to 4.04pl1 and now it works fine I wrote an IC parts search engine that will search our MSSQL database for partial part numbers and part numbers with the dash in the wrong place. It's working now!!! YAY! Now I need to parse the output and send a message with only the requested parts. ----- Original Message ----- From: "Brian Clark" <[EMAIL PROTECTED]> To: "PHP is not a drug ." <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 10:57 PM Subject: Re: [PHP] php 4.0.5.dev will not read php.ini on NT > > Hello Robert, > > (R == "Robert") [EMAIL PROTECTED] writes: > > R> PHP 4.0.5.dev I installed it on my Windows 2000 Pro machine with > R> IIS and MySQL and it works like a champ I installed it on my > R> Windows NT Server with IIS and MSSQL and it will not read the > R> php.ini file I put it in the following folders to try to get it to > R> work > > R> C:\winnt > R> C:\ > R> C:\winnt\system32 > R> C:\windows <-------created just to see if it would work > > Stick <?php phpinfo(); ?> into a file and load it in a browser. Look > for the line that says something along the lines of: > > php.ini file path is set to: X > > Where X is the base directory. I'm not sure about 4.x's phpfino() > saying those exact words, but where ever it says it should be, > put it in that directory and try it. > > R> GRRR!!! > R> What's up here? > R> Thanks > > -Brian > -- > If a listener nods his head when you're > explaining your program, wake him up. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >
Anyone have any ideas on how to make a function reset every 24-hours? For example, I have a function that grabs a random quote from a file and selects a new one every time the page is reloaded. What I want, however, is for the quote to remain the same for a day and then reset at some specified time (say midnight) and grab a new random quote for the next day. It seems like their should be any easy way to do this using mktime( ) or a similar function but I'm not fully grasping it. Any ideas on how to do this would be much appreciated. Rudy function displayRandomQuote() { $file_input_name = "quotes.data"; srand ((double) microtime() * 10000000); $open_file = file($file_input_name); $random_index = array_rand($open_file); $unformatted = $open_file[$random_index]; $quoteOfTheDay = explode("::",$unformatted); $quote = $quoteOfTheDay[0]; $author = $quoteOfTheDay[1]; echo "<i>"; echo $quote."<br></i>." -- ".$author; }
I'm a bit troubled with the fact that variables declared at the top of your script are not then global to functions within that script. That in order to see that variable within a function you'd have to declare it as global in the function (understanding that the variable could have been set at the top of the script). This seems extremely backwards to me (me being a VB guy). Would someone kindly shine the light down upon me with an explanation of this logic? And why can't I possibly declare the variable as Global at the top of my script? Thats a big "Hmmmm...."
A nice explanation, via the mind of Lars Torben Wilson, exists here : http://marc.theaimsgroup.com/?l=php-general&m=97717398101040&w=2 Also, you may want to check out : http://www.php.net/manual/en/language.constants.php http://www.php.net/manual/en/function.define.php Philip On Thu, 18 Jan 2001, Karl J. Stubsjoen wrote: > I'm a bit troubled with the fact that variables declared at the top of your > script are not then global to functions within that script. That in order > to see that variable within a function you'd have to declare it as global in > the function (understanding that the variable could have been set at the top > of the script). This seems extremely backwards to me (me being a VB guy). > > Would someone kindly shine the light down upon me with an explanation of > this logic? And why can't I possibly declare the variable as Global at the > top of my script? > > Thats a big "Hmmmm...." > > > -- > PHP General Mailing List (http://www.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'm a bit troubled with the fact that variables declared at the top of your > script are not then global to functions within that script. That in order > to see that variable within a function you'd have to declare it as global in > the function (understanding that the variable could have been set at the top > of the script). This seems extremely backwards to me (me being a VB guy). > > Would someone kindly shine the light down upon me with an explanation of > this logic? And why can't I possibly declare the variable as Global at the > top of my script? Once upon a time in a cold land far far away, a brave programming team was building a castle. The castle was large and complex with countless rooms and secret passageways. On one frightful day the team got stuck. They had built one too many rooms with one too many secret passageways and suddenly the castle was beginning to crumble. A desperate plea went out to the local wizard who was strong and powerful. The local wizard looked at the problem, saw the many rooms and the many secret passageways and gave the following decree: "Thou must post a sign in each and every room declaring which secret passageways connect to this room." The brave programming team feared the wizard and implemented the decree immediately although they really didn't understand how it would help. What they found was that a number of secret passageways did not connect to anything and others connected to places that didn't make any sense. After fixing these the castle was solid again. The moral of this tale is that one must declare ones' global variables that one intends to use within a function. In languages like C where this is not required one can end up with all sorts of weird side effects when a function changes a variable that the programmer intended to be local to the function and it affects code elsewhere in the system. This is almost impossible to track down. The tale of the brave programming team led to this being a requirement in PHP. -Rasmus
How about allowing for metaPasses within the castle? Am sure this topic came up, what's the conclusion? Philip On Thu, 18 Jan 2001, Rasmus Lerdorf wrote: > > I'm a bit troubled with the fact that variables declared at the top of your > > script are not then global to functions within that script. That in order > > to see that variable within a function you'd have to declare it as global in > > the function (understanding that the variable could have been set at the top > > of the script). This seems extremely backwards to me (me being a VB guy). > > > > Would someone kindly shine the light down upon me with an explanation of > > this logic? And why can't I possibly declare the variable as Global at the > > top of my script? > > Once upon a time in a cold land far far away, a brave programming team was > building a castle. The castle was large and complex with countless rooms > and secret passageways. On one frightful day the team got stuck. They > had built one too many rooms with one too many secret passageways and > suddenly the castle was beginning to crumble. A desperate plea went out > to the local wizard who was strong and powerful. The local wizard looked > at the problem, saw the many rooms and the many secret passageways and > gave the following decree: "Thou must post a sign in each and every room > declaring which secret passageways connect to this room." The brave > programming team feared the wizard and implemented the decree immediately > although they really didn't understand how it would help. What they found > was that a number of secret passageways did not connect to anything and > others connected to places that didn't make any sense. After fixing these > the castle was solid again. > > The moral of this tale is that one must declare ones' global variables > that one intends to use within a function. In languages like C where this > is not required one can end up with all sorts of weird side effects when a > function changes a variable that the programmer intended to be local to > the function and it affects code elsewhere in the system. This is almost > impossible to track down. The tale of the brave programming team led to > this being a requirement in PHP. > > -Rasmus > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
I find the VB way (or VBScript anyway) of doing functions backwards. My recollection is that if I call a function blah... x = blahfunction('cow') 'blahfunction' itself has to be defined *in* the function to get the value back. I can't even think of a good example, it's so foreign to me and I haven't done much new vbscript in a while. To get 'x' to equal something, you'd have to have a line in the blahfunction that actually says blahfunction='moo' *That's* weird to me. Anyway, not meant to be bashing, but you brought up VB. What's helped me to think of globals in PHP is that I know variables defined in the main area of the page work on that level. As I go deeper into the code (down a level) into a function, if I need something from a level above, I have to say GLOBAL $varname to make sure I get the varname I want. It's helped me immensely over the last year, but mostly by making me do functions with argument lists and return values, rather than modifying GLOBAL variables. My functions are far more portable between projects than they were a few years ago. "Karl J. Stubsjoen" wrote: > I'm a bit troubled with the fact that variables declared at the top of your > script are not then global to functions within that script. That in order > to see that variable within a function you'd have to declare it as global in > the function (understanding that the variable could have been set at the top > of the script). This seems extremely backwards to me (me being a VB guy). > > Would someone kindly shine the light down upon me with an explanation of > this logic? And why can't I possibly declare the variable as Global at the > top of my script? > > Thats a big "Hmmmm...."
On Thu, 18 Jan 2001, The Captain wrote: > I have a regular expression that's not giving me the results i really need. > > I have a bunch of strings coming at me that need to be truncated if they're > over 15 characters... but not to truncate until after it reaches the first > word. > > This regular expression just doesn't seem to want to work 100%: > > $myString = preg_replace("/.{15}\w)?\s.*/","\\1",$myString); > > > This will turn: > > 'PROJECT - Marketing Pitch' > > into > > 'PROJECT - Marketing\1' > > > However... when i change it to: /(.{15}\w)+.*/ > everything seems to work fine. > I can't really use this regex though, because it will keep matching that 15 > character word until it reaches the end. I need it to stop matching after > it finds the first match (if it needs to match at all). > > In perl: > + <- means match 1 or many times > * <- means match 0 or many times > ? <- means match 0 or 1 time > > Could someone help me see my error... i'm driving myself bananas trying to > find it. Perhaps pcre in PHP doesn't support the ? in the regular > expressions. > > Best Regards, > Rob > Try "/^(.{15}\w)+.*/". -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
Hi all, I've some strange problems. I compiled apache & PHP from fresh .tar.gz, as static. (and fresh GD, libpng, jpeg-6b, zlib compilations) PHP adn GD aren't giving any troubles at all, but the compilation of apache gives some errors when trying to compile the PHP4 module... here are they: =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- gcc -DLINUX=2 -I/root/source/php-4.0.4 -I/root/source/php-4.0.4/main -I/roo t/source/php-4.0.4/main -I/root/source/php-4.0.4/Zend -I/root/source/php-4.0 .4/Zend -I/root/source/php-4.0.4/TSRM -I/root/source/php-4.0.4/TSRM -I/root/ source/php-4.0.4 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` \ -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a lib/expat-lite/libexpat.a -rdynamic -Lmodules/php4 -L../modules/php4 -L../. ./modules/php4 -lmodphp4 -ldl -lz -lpng -lgd -lresolv -lm -ldl -lcrypt -ln sl -lresolv -lm -lcrypt /usr/local/lib/libgd.a(gd_png.o): In function `gdPngErrorHandler': gd_png.o(.text+0x37): undefined reference to `png_get_error_ptr' /usr/local/lib/libgd.a(gd_png.o): In function `gdPngReadData': gd_png.o(.text+0x95): undefined reference to `png_get_io_ptr' /usr/local/lib/libgd.a(gd_png.o): In function `gdPngWriteData': gd_png.o(.text+0xc5): undefined reference to `png_get_io_ptr' /usr/local/lib/libgd.a(gd_png.o): In function `gdImageCreateFromPngCtx': gd_png.o(.text+0x155): undefined reference to `png_check_sig' ... /usr/local/lib/libgd.a(gd_png.o): In function `gdImagePngCtx': gd_png.o(.text+0x975): undefined reference to `png_create_write_struct' gd_png.o(.text+0x9ab): undefined reference to `png_create_info_struct' ... gd_png.o(.text+0xefd): undefined reference to `png_write_end' gd_png.o(.text+0xf16): undefined reference to `png_destroy_write_struct' collect2: ld returned 1 exit status make[3]: *** [target_static] Error 1 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- My commands to compile: ~/source/php-4.0.4# ./configure --with-apache=/root/source/apache_1.3.14 --with-mysql=/usr/local /mysql --with-gd=/root/source/gd-1.8.3 --with-postgres=/usr/src/postgresql-7 .0.3 --with-ftp --without-ttf --with-jpeg-dir=/root/source/jpeg-6b ~/source/php-4.0.4# cd ../apache_1.3.14 ; make ; make install ~/source/apache_1.3.14# ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a ; make ; make install I have/try: PHP 4.0.4 Apache 1.3.114 GD 1.3.8 libpng 1.0.8 zlib 1.1.3 Linux 2.2.17 Original distro Slackware 7.0 Does anyone know a solution? please let me know :) Kees Hoekzema, [EMAIL PROTECTED]
> gcc -DLINUX=2 -I/root/source/php-4.0.4 -I/root/source/php-4.0.4/main -I/roo > t/source/php-4.0.4/main -I/root/source/php-4.0.4/Zend -I/root/source/php-4.0 > .4/Zend -I/root/source/php-4.0.4/TSRM -I/root/source/php-4.0.4/TSRM -I/root/ > source/php-4.0.4 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` > \ > -o httpd buildmark.o modules.o modules/standard/libstandard.a > modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a > lib/expat-lite/libexpat.a -rdynamic -Lmodules/php4 -L../modules/php4 -L../. > ./modules/php4 -lmodphp4 -ldl -lz -lpng -lgd -lresolv -lm -ldl -lcrypt -ln > sl -lresolv -lm -lcrypt Hrm.. Interesting. -lpng should be listed after -lgd on that link line. Find your libphp4.module file which PHP copied to your Apache tree and edit the LIBS line and switch the order of those two. Let me know if that fixes it. -Rasmus
it is possible to use isset inside a echo? like this: $checked = "CHECKED"; $nothing = ""; echo "<input type=checkbox name=cb[0] value=$value[0] ".isset(cb[0])?$checked:$nothing.">"; Rom
On Thu, 18 Jan 2001, Romulo Roberto Pereira wrote: > it is possible to use isset inside a echo? > > like this: > $checked = "CHECKED"; > $nothing = ""; > echo "<input type=checkbox name=cb[0] value=$value[0] >".isset(cb[0])?$checked:$nothing.">"; > > Rom > isset() is a proper function, so yes. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
I am trying to find out if I can take a the quantity of a product ordered and find out if it is a multiple of three. Can someone point me in the direction of some documentation or an exmaple of how this can be accomplished. Thanks, Brett
On Thu, 18 Jan 2001, Brett wrote: > I am trying to find out if I can take a the quantity of a product ordered > and find out if it is a multiple of three. Can someone point me in the > direction of some documentation or an exmaple of how this can be > accomplished. > > Thanks, > Brett > if (!($number%3)) print("$number is divisible by 3!"); -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
Greetings! I am looking for an efficeient way to assign a decimal to a number and store the new number. I wanto add a decimal point after the first 2 leading digitis.. while ( query runs) { $temp=007170; $changed_to_deicmal_form; // would store .7170 } Furthermore I was using printf to round up numbers...has anyone found a different or better way? Christopher C. M. Allen
Christopher, try a regular expression somthing like this <? $temp = "007170"; ereg ("([0-9]{2})([0-9]*)", $temp, $test); $changed_to_deicmal_form = $test[1].".".$test[2]; echo "$changed_to_deicmal_form"; ?> Robert -----Original Message----- From: Christopher Allen [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 11:35 AM To: php Subject: [PHP] decimal point movement... Greetings! I am looking for an efficeient way to assign a decimal to a number and store the new number. I wanto add a decimal point after the first 2 leading digitis.. while ( query runs) { $temp=007170; $changed_to_deicmal_form; // would store .7170 } Furthermore I was using printf to round up numbers...has anyone found a different or better way? Christopher C. M. Allen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
why go thru the costly overhead of a regex when you can use math? ex: <? $number = '600'; $new = $number/100; $rem = $new-$new%100; if ($rem == 0) { $new .= ".00"; } print $number; print "\n"; print $new; ?> you divide the number by 100 to push the decimal back, and, if there is no remainder (by modulus division), you append .00 to the variable. DanO -----Original Message----- From: Robert Collins [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 1:05 PM To: 'Christopher Allen'; php Subject: RE: [PHP] decimal point movement... Christopher, try a regular expression somthing like this <? $temp = "007170"; ereg ("([0-9]{2})([0-9]*)", $temp, $test); $changed_to_deicmal_form = $test[1].".".$test[2]; echo "$changed_to_deicmal_form"; ?> Robert -----Original Message----- From: Christopher Allen [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 11:35 AM To: php Subject: [PHP] decimal point movement... Greetings! I am looking for an efficeient way to assign a decimal to a number and store the new number. I wanto add a decimal point after the first 2 leading digitis.. while ( query runs) { $temp=007170; $changed_to_deicmal_form; // would store .7170 } Furthermore I was using printf to round up numbers...has anyone found a different or better way? Christopher C. M. Allen -- PHP General Mailing List (http://www.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 you want to use the modulus, why not just use modulus (%) ? But, instead of doing all that math, why not just use the number_format() function? Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://www.JEEP-FOR-SALE.com/ -- I need a buyer Get your own Free, Private email at http://www.smackdown.com/ On Thu, 18 Jan 2001, DanO wrote: > Date: Thu, 18 Jan 2001 13:57:55 -0800 > From: DanO <[EMAIL PROTECTED]> > To: "Php-General@Lists. Php. Net" <[EMAIL PROTECTED]> > Subject: RE: [PHP] decimal point movement... > > > why go thru the costly overhead of a regex when you can use math? > > > ex: > > <? > $number = '600'; > $new = $number/100; > $rem = $new-$new%100; > if ($rem == 0) { > $new .= ".00"; > } > > print $number; > print "\n"; > print $new; > ?> > > you divide the number by 100 to push the decimal back, and, if there is no > remainder (by modulus division), you append .00 to the variable. > > DanO > > -----Original Message----- > From: Robert Collins [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 18, 2001 1:05 PM > To: 'Christopher Allen'; php > Subject: RE: [PHP] decimal point movement... > > > Christopher, > > try a regular expression somthing like this > > <? > $temp = "007170"; > ereg ("([0-9]{2})([0-9]*)", $temp, $test); > $changed_to_deicmal_form = $test[1].".".$test[2]; > echo "$changed_to_deicmal_form"; > ?> > > Robert > > -----Original Message----- > From: Christopher Allen [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 18, 2001 11:35 AM > To: php > Subject: [PHP] decimal point movement... > > > > Greetings! > > I am looking for an efficeient way to assign a decimal to a number and store > the new number. > I wanto add a decimal point after the first 2 leading digitis.. > while ( query runs) > { > > $temp=007170; > $changed_to_deicmal_form; // would store .7170 > } > > Furthermore I was using printf to round up numbers...has anyone found a > different or better way? > > > > > > Christopher C. M. Allen > > > -- > PHP General Mailing List (http://www.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] > >
cuz i didn't know it existed ;) my point is that math should be used instead of a regex as it is more efficient. DanO -----Original Message----- From: jeremy brand [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 2:06 PM To: DanO Cc: Php-General@Lists. Php. Net Subject: RE: [PHP] decimal point movement... If you want to use the modulus, why not just use modulus (%) ? But, instead of doing all that math, why not just use the number_format() function? Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://www.JEEP-FOR-SALE.com/ -- I need a buyer Get your own Free, Private email at http://www.smackdown.com/ On Thu, 18 Jan 2001, DanO wrote: > Date: Thu, 18 Jan 2001 13:57:55 -0800 > From: DanO <[EMAIL PROTECTED]> > To: "Php-General@Lists. Php. Net" <[EMAIL PROTECTED]> > Subject: RE: [PHP] decimal point movement... > > > why go thru the costly overhead of a regex when you can use math? > > > ex: > > <? > $number = '600'; > $new = $number/100; > $rem = $new-$new%100; > if ($rem == 0) { > $new .= ".00"; > } > > print $number; > print "\n"; > print $new; > ?> > > you divide the number by 100 to push the decimal back, and, if there is no > remainder (by modulus division), you append .00 to the variable. > > DanO > > -----Original Message----- > From: Robert Collins [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 18, 2001 1:05 PM > To: 'Christopher Allen'; php > Subject: RE: [PHP] decimal point movement... > > > Christopher, > > try a regular expression somthing like this > > <? > $temp = "007170"; > ereg ("([0-9]{2})([0-9]*)", $temp, $test); > $changed_to_deicmal_form = $test[1].".".$test[2]; > echo "$changed_to_deicmal_form"; > ?> > > Robert > > -----Original Message----- > From: Christopher Allen [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 18, 2001 11:35 AM > To: php > Subject: [PHP] decimal point movement... > > > > Greetings! > > I am looking for an efficeient way to assign a decimal to a number and store > the new number. > I wanto add a decimal point after the first 2 leading digitis.. > while ( query runs) > { > > $temp=007170; > $changed_to_deicmal_form; // would store .7170 > } > > Furthermore I was using printf to round up numbers...has anyone found a > different or better way? > > > > > > Christopher C. M. Allen > > > -- > PHP General Mailing List (http://www.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] > >
> my point is that math should be used instead of a regex as it is more > efficient. I totally agree. :) Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://www.JEEP-FOR-SALE.com/ -- I need a buyer Get your own Free, Private email at http://www.smackdown.com/
Hello, I've already compiled PHP4 on my server for php scripts, but there is one script which seems to only use PHP 3. So what i'd like to know is if it is possible to both install PHP 3 and 4 on the same server and use them both at the same time? Thanks for any help! Sincerely, Jero
I just did this the other day. It's quite a simple task really. Instructions are at the end of the PHP4 INSTALL file. If you want to compile both as Apache modules, just re`configure` both with --enable-versioning. Regards, Ollie > -----Original Message----- > From: OutBox [mailto:[EMAIL PROTECTED]] > Sent: 18 January 2001 18:18 > To: php-general > Subject: [PHP] using both version 3 and 4? > > > Hello, > I've already compiled PHP4 on my server for php scripts, > but there is > one > script which seems to only use PHP 3. So what i'd like to > know is if it > is > possible to both install PHP 3 and 4 on the same server and > use them both > at the same time? Thanks for any help! > > > Sincerely, > > Jero > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > >
Could somebody kindly recommend a list of functions, which - in his|her opinion - should be disabled by disable_functions php.ini directive - in multiuser environment? Ready php.ini entry would be welcome :-) Maciek
Heb ik ook CGI nodig om php4 te draaien?? -----Oorspronkelijk bericht----- Van: Chris Hayes [mailto:[EMAIL PROTECTED]] Verzonden: donderdag 18 januari 2001 13:18 Aan: Bart A. Verbeek Onderwerp: Re: [PHP] upgrade problems > >> PHP: Unable to parse configuration file. > > Does anyone know what this meens and how to solve it?? Nou ik weet het niet zeker want ik gebruik hetzelfde als jij maar dan met Apache (wist je dat PWS van Microsoft is?? En dat Apache prima draait onder Win 98?). Misschien moet je eens op de upgrade pagina's kijken van PHP. Je kunt ook kijken of je kunt vonden welke exe nu gebruikt wordt; de oude of de nieuwe, en of hij wel de php.ini leest en niet php3.ini, die laatste is onleesbaar voor php4 denk ik! Heb je ge-edit in php.ini? Dan moest ik in de Apache configuratie nog veranderen van AddType application/x-httpd-php3 .php naar to AddType application/x-httpd-php .php (AddType is een Apache commando maar de rest kan ook op PWS van toepassing zijn.) Chris -------------------------------------------------------------------- -- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands -- --------------------------------------------------------------------
When not explicitly set, a cookie works only for the domain where it was originally set. That means that if the user visits your website using the server IP address, he will receive a cookie that will not work when he uses the domain name instead of the IP address. Therefore, I recomend you set the domain property of the cookie to the name of your domain (not the IP or "localhost"). This way, you will make explicit in which enviroment the cookie works. I am not familiarized with the sintax you are using, I usually use setcookie and session_register for a similar purpouse. Hope I'd been of any help. Cheers. PD. Why don't you publish your problem to the whole php list? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, 18 January, 2001 9:59 AM To: [EMAIL PROTECTED] Subject: [PHP] help me!! Cookie this is not a span mail i wanna only ask you a question of php argument, please help me! i'm working with php3 and IIS, i had set cookie with: name, $session->cookie, $session->timeid+3600, "/"); ?> but these cokkie work right only on localhost and not on the others computer of the LAN, the options setting of internet enable Cookie, where is the problem? thank you !!! Per disattivarsi dalla mailinglist : http://www.e-smtech.com/service/multimail/delvis.php3
Hey, Here is what I need to do, I need to have a PHP script recieve an e-mail and write it to a file after erasing whatever was in the file before. I suppose that it should have some sort of authentication built in to prevent people from e-mailing PHP code that could be processed and do bad things. Is there any way to do this? Can a PHP script recieve and e-mail? Could the e-mail be written to a mail queue say [EMAIL PROTECTED] and the script periodically check the mail queue for new e-mail print its contents to a text file somewhere in the serverroot and then erase the mail queue??? Does this sound possibile??? Thanks, Jeremy
On Thu, 18 Jan 2001, Jeremy Bowen wrote: > Hey, > > Here is what I need to do, I need to have a PHP script recieve an e-mail and > write it to a file after erasing whatever was in the file before. > > I suppose that it should have some sort of authentication built in to prevent > people from e-mailing PHP code that could be processed and do bad things. > > Is there any way to do this? Can a PHP script recieve and e-mail? > > Could the e-mail be written to a mail queue say [EMAIL PROTECTED] > and the script periodically check the mail queue for new e-mail print its > contents to a text file somewhere in the serverroot and then erase the mail > queue??? > > Does this sound possibile??? > > Thanks, > > Jeremy > If you're using sendmail, you can set up an alias to execute a program and send the message to the program's standard input whenever the message is sent to an arbitrary address. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
Hi Jeremy, Yes that is possible. But i'm afraid it needs some work. There are several classes on the several dowmload sites. Look for POP3 or IMAP classes. Some recent links at the end of this mail. With them it is possible to get the headers and the body either line by line or in total. It is possible to check mail and delete mail. You can log in to any email address you like by entering the host, username and password. Regular checking must be done by starting a .php file (which reads email of course) from a timescheduler like cron on unix-type servers or with some other scheduler on windows or whatever you use. Check the archives of this php-general list for cron jobs, that question returns about every week. > I suppose that it should have some sort of authentication built in to > prevent people from e-mailing PHP code that could be processed and > do bad things. I don't know about security of strings, i just don't see when they can be activated, but it is worth digging in. Maybe htmlspecialchars($text) will do? I was looking into this too because i would like to receive emails with data, process them and either enter data or return an error-reporting email. About security i am most worried how to know whether the sender is really the sender. I mean, if i make them give their password every time, it could be intercepted. If i check by email address, i know it is only too easy to fake an email being sent from a certain email. Any idea? > Could the e-mail be written to a mail queue say > [EMAIL PROTECTED] and the script periodically check the mail > queue for new e-mail print its contents to a text file somewhere in the > serverroot and then erase the mail queue??? > > Does this sound possibile??? Yes. But it will take quite some time making it solid bastard- and fool-proof. Writing to a file is normal file-processing once you have extracted the text you need from the email. Maybe we can cooperate building a class? There are pop3 classes around that could be extended with some functions i suppose more people can use. What about making this: (just brainstorming) /* build further on an existing pop3 class : function connect {connect using pop_3_class} function disconnect {disconnect using pop_3_class} function getonemail */ class email { vars $sender, $subject, $body, $emailID_for_POP3 function read_one_mail() sets $header, $body, $sender or if you like $body_lines_array maybe even attachments? function validate_user() compares email to database of authorised users for instance 1) find password and username in body, 2) compare to database 3) accept or reject (log possible frauds with full headers) function split_up_body_to_data() because i want to chop up a data mail which may look like [name]Chris [password]Cookies! [announcement_title]Come to my party! [announcement_date]July 11 2001 [announcement_body]Be welcome to my party! I'll have cookies! [end] I want to get this into an kay-val array and further check in another part, maybe return a mail with error, and on succes i can use: function delete_mail(this_one) } I have some links, without having tested them all: * http://home.concepts.nl/~kid/phpmanual/sockets.html * pop3.php Copyright (C) 1998, Manuel Lemos ([EMAIL PROTECTED]) (I think i saw Manuel on this list! :-) ) Also it looks the most structured and general. I forgot where, maybe the px.sklar.com site. * pop3_connect on http://phpclub.unet.ru/samples/73.phps * http://www.weberdev.com/get_example.php3?count=1643 * http://px.sklar.com/code-pretty.html?code_id=108 * http://px.sklar.com/code-pretty.html?code_id=139 PS there might be Perl codes around doing something similar to what you want. Chris Hayes -------------------------------------------------------------------- -- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands -- --------------------------------------------------------------------
Date sent: Thu, 18 Jan 2001 15:20:24 -0500 (EST) From: Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> To: Jeremy Bowen <[EMAIL PROTECTED]> Copies to: <[EMAIL PROTECTED]> Subject: Re: [PHP] Can a PHP program recieve an e-mail and write it to a file??? Jeremy Bowen wrote: > > Here is what I need to do, I need to have a PHP script recieve an e-mail > > and write it to a file after erasing whatever was in the file before. Ignacio Vazquez-Abrams replied: > If you're using sendmail, you can set up an alias to execute a program and > send the message to the program's standard input whenever the message is > sent to an arbitrary address. Wow, that sounds GREAT, much better than what i just suggested (connecting to POP mailbox, reading and dissecting email). I was convinced sendmail could only SEND mail. I mean, it's name suggested that. How can i set it up to get all email to a certain address to a php file? Chris H "The dumber people think you are, the more surprised they will be when you kill them." ---- William Clayton Chris, in the NL ([EMAIL PROTECTED])
On Thu, 18 Jan 2001, Chris Hayes wrote: > > > Date sent: Thu, 18 Jan 2001 15:20:24 -0500 (EST) > From: Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> > To: Jeremy Bowen <[EMAIL PROTECTED]> > Copies to: <[EMAIL PROTECTED]> > Subject: Re: [PHP] Can a PHP program recieve an e-mail and write it to a > file??? > > Jeremy Bowen wrote: > > > Here is what I need to do, I need to have a PHP script recieve an e-mail > > > and write it to a file after erasing whatever was in the file before. > > Ignacio Vazquez-Abrams replied: > > If you're using sendmail, you can set up an alias to execute a program and > > send the message to the program's standard input whenever the message is > > sent to an arbitrary address. > > Wow, that sounds GREAT, much better than what i just suggested (connecting > to POP mailbox, reading and dissecting email). > > I was convinced sendmail could only SEND mail. I mean, it's name suggested > that. > How can i set it up to get all email to a certain address to a php file? > > Chris H > > "The dumber people think you are, the more > surprised they will be when you kill them." > ---- William Clayton > > Chris, in the NL ([EMAIL PROTECTED]) > In your /etc/aliases (surprise!) file put a line like the folloing (fixing all the paths up, of course): myscript "|php -q myscript.php" Then whenever you send a message to [EMAIL PROTECTED], it will be fed into standard input (php://stdin, IIRC) for myscript.php. For more information I strongly suggest you take a look at a book about sendmail. I personally refer to the one by O'Reilly, but there may be simpler books out there. Also, I hate to say this in a mailing list about PHP, but I don't believe that it's the best language for the job. It's great for web stuff, but there are probably better choices for non-web scripts. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
>Has anyone used PHP to connect to a FileMaker database? This may not be appropriate to your circumstances, but I would seriously consider exporting the information from the FMP database and importing it into mySQL. This may take a little more time initially (defining the tables, recreating the relationships, etc) but the PHP->mySQL functionality is built-in and well documented, and will therefore be easier and faster to code. You will probably save time later on. mySQL is a much more serious database application than FMP and has many features (like proper relationships) that you may find useful - it will also be much, much faster than FMP or FMP Server. Another thing that you may wish to bear in mind is the extortionate cost charged by web hosting companies to host FMP databases (mySQL hosting, on the other hand, ranges from free to cheap). Even if you are willing to pay for FMP hosting, you may find it difficult to find one that offers both FMP and PHP. Hope that this helps, Andy Clarke ------------------------------------------------ Andy Clarke 78 West Kensington Court, Edith Villas, London, England W14 9AB phone: 44 (0)20 7602 3382 mobile: 07947 418177 Freelance Lingo/PHP Programmer [EMAIL PROTECTED] ------------------------------------------------
True, but what if the poster has a FMP front-end to be used with the Web version? mySQL is non-existent on the desktop. And FMP makes building front-ends for destop apps very easy. Regardless, if you are using FMP on Win32 go through ODBC. If you are using it on MacOS you might wait until FMP for OS X, but for OS 9 still use ODBC. When OS X comes out you will be able to use the better ODBC available for Unix. I think the current MacOS's ODBC is not very good, but I haven't really used it. In any case I think ODBC is the best way to go when talking to a FMP database from PHP. Michael On Thursday, January 18, 2001, at 03:08 PM, Andy Clarke wrote: > >Has anyone used PHP to connect to a FileMaker database? > > > This may not be appropriate to your circumstances, but I would seriously > consider exporting the information from the FMP database and importing it > into mySQL. This may take a little more time initially (defining the > tables, recreating the relationships, etc) but the PHP->mySQL functionality > is built-in and well documented, and will therefore be easier and faster to > code. You will probably save time later on. > > mySQL is a much more serious database application than FMP and has many > features (like proper relationships) that you may find useful - it will > also be much, much faster than FMP or FMP Server. Another thing that you > may wish to bear in mind is the extortionate cost charged by web hosting > companies to host FMP databases (mySQL hosting, on the other hand, ranges > from free to cheap). Even if you are willing to pay for FMP hosting, you > may find it difficult to find one that offers both FMP and PHP. > > Hope that this helps, > > > Andy Clarke > > > > > ------------------------------------------------ > Andy Clarke > 78 West Kensington Court, Edith Villas, > London, England W14 9AB > > phone: 44 (0)20 7602 3382 > mobile: 07947 418177 > > Freelance Lingo/PHP Programmer > > [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] > > >
Eduard and Fraser, I can try and help you if you list the java section of your php.ini and indicate what platform you're trying to run on. Additional information such as PATH, CLASSPATH and so on would also help. Alex
Ok. Alex, here it is: [java] java.class.path=/home/local/src/php-4.0.4/ext/java/php_java.jar:/home/local/java/jdk1.2.2/jre/lib:/home/local/java/jdk1.2.2/jre/bin java.home=/home/local/java/jdk1.2.2/bin:/home/local/java/jdk1.2.2/jre/bin java.library.path=/home/local/src/php-4.0.4/ext/java:/home/local/java/jdk1.2.2/jre/bin java.library=/home/local/java/jdk1.2.2/jre/lib/i386/classic/libjvm.so extension_dir=/usr/local/src/php-4.0.4/modules:/home/local/java/jdk1.2.2/jre/lib/i386 extension=libphp_java.so Here is my CLASSPATH: /home/local/java/jdk1.2.2/src.jar:/usr/local/java/j2sdkee1.2.1/lib/j2ee.jar:/usr/local/java/jsdk2.0/jsdk.jar:/usr/local/java/jdbc/mm_mysql-2_0_2-bin.jar:/home/verity/k2220/Java/vsearch.jar:. Here is my LD_LIBRARY_PATH: /home/local/java/jdk1.2.2/jre/lib/i386:/home/verity/_ilnx21/bin I am running on linux Mandrak 7.0 with the secure kernel on an SMP machine. I configured PHP with the following: ./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs --with-java=/home/local/java/jdk1.2.2 Fraser On Thu, 18 Jan 2001, Alex Akilov wrote: > Eduard and Fraser, > > I can try and help you if you list the java section of your php.ini > and indicate what platform you're trying to run on. Additional > information such as PATH, CLASSPATH and so on would also > help. > > Alex > > >
Here is my environment again: System Linux [EMAIL PROTECTED] 2.2.5-15 #1 Mon Apr 19 22:21:09 EDT 1999 > i586 unknown > Build Date Sep 7 2000 > Configure Command './configure' '--with-apxs=/usr/local/apache/bin/apxs' ' > --with-config-file-path=/usr/local/apache/conf' '--enable-versioning' ' > --with-mysql' '--enable-ftp' '--with-gd=/usr/local/gd' ' > --enable-bcmath=yes' '--disable-debug' '--enable-memory-limit=yes' ' > --enable-track-vars' ' > --with-openlink=/usr/local/odbc' ' > --with-ldap=/usr/local/openldap' > Server API Apache > Virtual Directory Support disabled > Configuration File (php.ini) Path /usr/local/apache/conf > ZEND_DEBUG disabled > Thread Safety disabled Here is my new problem: I tried a the new version of PHP (4.0.4pl1) and openldap (2.0.7) now. PHP configures fine and compiles fine. When I go to restart apache it gives me the following error: Syntax error on line 237 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: undefined symbol: ldap_value_free Does anyone know what this means or how to make it go away? The problem with having to compile everything in is now apache and php are down because of my ldap problem. It would be nice if it would start apache and php and give me a message that ldap is not installed. One bad apple/module should not spoil the whole bunch. Thanx in advance for any help, BEH
Brice, I just checked in some fixes to the ext/java/config.m4. Are your changes similar or would you like to share if they're not? As far as not being able to start JVMs, I suppose it could be a memory management issue (each JVM is somewhat resource intensive) so it's rather inefficient to do Java from PHP in this manner. I thought you're only supposed to get one JVM started per session so I'm a bit surprised it's trying to start a new one each time. A much better way to run Java in PHP is by using the PHP/Servlet feature which gives you the same capabilities but without the JVM management headaches (although there may be other headaches/bugs in PHP/Servlet that may cause failures after a few attempts as well, which I'm currently investigating). The caveat is that you'll need a Servlet capable web server such as Tomcat or JServ plugged into your Apache. Alex
Is disable_functions supposed to work from httpd.conf? I tried the following: php_value disable_functions "phpinfo" php_value max_execution_time 300 The time is changed from 30 to 300 as expected, however phpinfo is _not_ disabled. I tried also php_value disable_functions phpinfo php_value disable_functions "phpinfo()" php_value disable_functions phpinfo() without effect... How to make it work? Maciek
Sorry to answer myself, but here goes another question: php_admin_value disable_functions phpinfo() or php_admin_value disable_functions phpinfo change the value displayed by phpinfo() but... if I can see the result of phpinfo() it means it's not disabled... What goes on here? Maciek > -----Original Message----- > From: Maciek Uhlig [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 18, 2001 9:34 PM > To: [EMAIL PROTECTED] > Subject: [PHP] disable_functions and httpd.conf > > > Is disable_functions supposed to work from httpd.conf? I tried the > following:
it's the difference between group/category or "object level" access: i.e. "this function is level 1, and all level 1 users can execute it) or this function may be executed by level 1, level 2 users, but that function may only be executed by level 3" or user x can access: -function 1 -function 2 etc (ver long list :) _alex -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth St Suite 433 Berkeley, CA 94710-2522 > From: [EMAIL PROTECTED] (Chris Aitken) > Newsgroups: php.general > Date: 17 Jan 2001 15:07:06 -0800 > Subject: Re: [PHP] < Levels of Access > > > At 10:36 PM 17/01/2001, you wrote: >> Hey Guys, >> >> I wonder if anyone can shed light... >> I have a system that internal users access - >> >> I have separated access levels into 1, 2, 3 etc. So if you have access 1 >> you can view certain things - If you are 2 then you can view more or other >> things. >> >> However the problem arises when someone in access level 1 wants to access a >> level 2 function. I then manually specify that: >> >> if (access = 2 or user=joe) { >> Allow the functions ... >> } >> >> This can get messy - as individuals will be specified all over the place on >> a large system to override levels of access. >> >> Is there a sensible standard that is used to have levels of access but >> special people can access certain higher level functions.? > > > Why not have a database with all usernames/passwords/access levels in > there, and when the user logs in (either with htpasswd or a form login > script system) that info is recorded by a cookie. > > Than have a function which is at the start of every page which passes the > access level of the user, and which levels can access the page. Say there > was 5 levels, you could call the function this way > > auth_user("$access_level","N","N","Y","N","Y"); > > The function just needs to grab the first variable as the users given > access level, then the next 5 variables state whether levels 1 thru 5 are > allowed to view the page (only level 3 and 5 can view it in the above > example). If the users access level returns a Y for its corresponding > level, then its allowed to proceed, otherwise they are shuffled off to a > page telling them to (nicely) go away. > > I dunno if this is a clutzy way of doing it (chances are it is) but thats > how I would try and implement it, and you can also create a nice simple > admin screen system to maintain all users and access levels. Change it in > the DB and its instant on all pages. > > > > > Chris > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
1: register a ver in the session or 2: register the event in the DB -a -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth St Suite 433 Berkeley, CA 94710-2522 > From: [EMAIL PROTECTED] (Chakravarthy K Sannedhi) > Newsgroups: php.general > Date: 17 Jan 2001 13:11:20 -0800 > Subject: [PHP] How to avoid submitting twice? > > hello all, > > I am having a form which contains a dropdown listbox > and a submit button. The user will choose any number > from 1 to 5 and hits the submit button. After this the > data that he had selected (1,2,3,4 or 5) enters into a > mysql database(this data enters into the row with the > latest userid) and a link appears, so that by click > that link he can go to next page. > I want to avoid the user from submitting his opinion > once again if he does it already. > Here is the code that i have wrote, which is going > logically some where wrong. > FYI : opinion and submit are the names of the dropdown > listbox and submit buttons. scene1 is the name of the > field in the table named testtable into which the data > enters(one of 1 to 5) > > mysql_connect ('localhost','myname','password') or die > ('<b>unable to connect to the database.</b>'); > mysql_select_db ('usertest') or die ('<b>unable to > select the database.</b>'); > > if ($submit) { > $result = mysql_query("select * from testtable order > by userid desc limit 1"); > $myrow = mysql_fetch_array ($result); > $id = $myrow["userid"]; > $query = "update testtable set scene1='$opinion' where > userid=$id"; > mysql_query ($query); > echo "<a href=next.php>Go to next page</a>"; > /* this is the part i am trying to use to avoid him > from doing submission second time */ > $result=mysql_query("select * from testtable order by > userid desc limit 1"); > $myrow = mysql_fetch_array ($result); > $scene1 = $myrow["scene1"]; > if ($scene1 == 1||2||3||4||5) { > echo "<script language=\"javascript\">"; > echo "alert(\"You can choose the rating only > once\");"; > echo "</script>"; > } > } > > Thanks > Chakravarthy K Sannedhi > > __________________________________________________ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.com/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
xml problems? _what_ xml problems? _alex -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth St Suite 433 Berkeley, CA 94710-2522 > From: [EMAIL PROTECTED] (Teodor Cimpoesu) > Organization: DIGICOM, Romania > Newsgroups: php.general > Date: 17 Jan 2001 12:57:37 -0800 > Subject: Re: [PHP] <? PHP vs. <? > > Hi Philip! > On Wed, 17 Jan 2001, Philip Olson wrote: > >> >>> Short open tags won't work with xml. Therefore they won't work with >>> xhtml. They conflict with where the Web is going. >> >> Aha! Yet another reason not to use <?= >> >> :-) >> > you can always use <% and <%= instead. > No XML problems, and you may confuse your {A,J}SP coders :) > > -- teodor. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
Alex Black wrote: > xml problems? > > _what_ xml problems? <?xml is considered a short-tag or something like that. Wagner -- One maniac alone can do what 20 together cannot
On Thu, Jan 18, 2001 at 09:37:55PM +0100, Alexander Wagner wrote: > Alex Black wrote: > > xml problems? > > > > _what_ xml problems? > > <?xml is considered a short-tag or something like that. No, <? is the short opening tag and is only valid for PHP with the short open tag enabled in php.ini. -Egon -- http://www.linuxtag.de/ http://php.net/books.php http://www.concert-band.de/ mailto:[EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: > > > xml problems? > > > > > > _what_ xml problems? > > > > <?xml is considered a short-tag or something like that. > > No, <? is the short opening tag and is only valid for PHP with the short > open tag enabled in php.ini. I meant that with short-tags on, <?xml will be considered a short-Tag, because it begins like one, although it's just plain XML and has nothing to do with PHP. Wagner -- One maniac alone can do what 20 together cannot
On Thu, Jan 18, 2001 at 09:51:52PM +0100, Alexander Wagner wrote: > [EMAIL PROTECTED] wrote: > > > > xml problems? > > > > > > > > _what_ xml problems? > > > > > > <?xml is considered a short-tag or something like that. > > > > No, <? is the short opening tag and is only valid for PHP with the short > > open tag enabled in php.ini. > > I meant that with short-tags on, <?xml will be considered a short-Tag, > because it begins like one, although it's just plain XML and has nothing to > do with PHP. <? short open tag for PHP <?php open tag for PHP <?xml open tag for XML And for all three cases the closing tag is ?>. -Egon -- http://www.linuxtag.de/ http://php.net/books.php http://www.concert-band.de/ mailto:[EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: > <? short open tag for PHP > <?php open tag for PHP > <?xml open tag for XML > > And for all three cases the closing tag is ?>. Wasn't there a thread on PHP-DEV about the PHP-parser mistaking <?xml for a short-Tag (for <?xml would be valid PHP like <?echo $var?>). Got my point? Wagner -- One maniac alone can do what 20 together cannot
On Thu, Jan 18, 2001 at 10:02:42PM +0100, Alexander Wagner wrote: > [EMAIL PROTECTED] wrote: > > <? short open tag for PHP > > <?php open tag for PHP > > <?xml open tag for XML > > > > And for all three cases the closing tag is ?>. > > Wasn't there a thread on PHP-DEV about the PHP-parser mistaking <?xml for a > short-Tag (for <?xml would be valid PHP like <?echo $var?>). > > Got my point? No, there was a discussion if we should disable the short open tag (<?) in php.ini by default. But that would break the most PHP scripts. But anyway you should use the always allowed long open tag for portable code and the benefit of it would be, you can mix PHP with XML. Another point is, if you move your scripts to a ISP who have disabled short open tags, your scripts wouldn't work anymore. The normal open tag was discussed in 1997 and was choosen with XML in mind. -Egon -- http://www.linuxtag.de/ http://php.net/books.php http://www.concert-band.de/ mailto:[EMAIL PROTECTED]
Ye 2001-01-18 21:46 +0100, [EMAIL PROTECTED] skribis: > On Thu, Jan 18, 2001 at 09:37:55PM +0100, Alexander Wagner wrote: > > Alex Black wrote: > > > xml problems? > > > > > > _what_ xml problems? > > > > <?xml is considered a short-tag or something like that. > > No, <? is the short opening tag and is only valid for PHP with the short > open tag enabled in php.ini. If you enable it and use it, does it work with (otherwise) valid xhtml?
Has using <?[space] instead of just <? as the short tag been discussed? --Toby ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "Alexander Wagner" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 4:21 PM Subject: Re: [PHP] <? PHP vs. <? > On Thu, Jan 18, 2001 at 10:02:42PM +0100, Alexander Wagner wrote: > > [EMAIL PROTECTED] wrote: > > > <? short open tag for PHP > > > <?php open tag for PHP > > > <?xml open tag for XML > > > > > > And for all three cases the closing tag is ?>. > > > > Wasn't there a thread on PHP-DEV about the PHP-parser mistaking <?xml for a > > short-Tag (for <?xml would be valid PHP like <?echo $var?>). > > > > Got my point? > > No, there was a discussion if we should disable the short open tag (<?) in > php.ini by default. But that would break the most PHP scripts. But anyway > you should use the always allowed long open tag for portable code and the > benefit of it would be, you can mix PHP with XML. Another point is, if you > move your scripts to a ISP who have disabled short open tags, your scripts > wouldn't work anymore. The normal open tag was discussed in 1997 and was > choosen with XML in mind. > > -Egon > > -- > http://www.linuxtag.de/ > http://php.net/books.php > http://www.concert-band.de/ > mailto:[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] > >
It's my understanding that whitespace is ignored. I could be wrong here, though. --Shawn Toby Butzon wrote: > > Has using <?[space] instead of just <? as the short tag been discussed? > > --Toby > > ----- Original Message ----- > From: <[EMAIL PROTECTED]> > To: "Alexander Wagner" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Thursday, January 18, 2001 4:21 PM > Subject: Re: [PHP] <? PHP vs. <? > > > On Thu, Jan 18, 2001 at 10:02:42PM +0100, Alexander Wagner wrote: > > > [EMAIL PROTECTED] wrote: > > > > <? short open tag for PHP > > > > <?php open tag for PHP > > > > <?xml open tag for XML > > > > > > > > And for all three cases the closing tag is ?>. > > > > > > Wasn't there a thread on PHP-DEV about the PHP-parser mistaking <?xml > for a > > > short-Tag (for <?xml would be valid PHP like <?echo $var?>). > > > > > > Got my point? > > > > No, there was a discussion if we should disable the short open tag (<?) > in > > php.ini by default. But that would break the most PHP scripts. But anyway > > you should use the always allowed long open tag for portable code and the > > benefit of it would be, you can mix PHP with XML. Another point is, if > you > > move your scripts to a ISP who have disabled short open tags, your > scripts > > wouldn't work anymore. The normal open tag was discussed in 1997 and was > > choosen with XML in mind. > > > > -Egon > > > > -- > > http://www.linuxtag.de/ > > http://php.net/books.php > > http://www.concert-band.de/ > > mailto:[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] -- Shawn Blaylock, ClipperNet Software Engineer [EMAIL PROTECTED] http://www.clipper.net/ Eugene OR 541-431-3360 x406 Toll Free 866-673-6260 x406
On Thu, Jan 18, 2001 at 03:14:44PM -0800, Shawn Blaylock wrote: > It's my understanding that whitespace is ignored. I could be wrong here, > though. Whitespace plays a very importend role. Between the opening tag and after a whitespace should follow valid PHP or XML code. There is one exception: <?phpinfo()?> -Egon -- http://www.linuxtag.de/ http://php.net/books.php http://www.concert-band.de/ mailto:[EMAIL PROTECTED]
Fraser, >extension_dir=/usr/local/lib/php/extensions/no-debug-non-zts-20001214:/home/local/java/jdk1.2.2/jre/lib/i386 Change the above to only list the directory that contains the libphp_java.so. The jdk directories should go to java.library.path (or LD_LIBRARY_PATH or ld.so.conf). Note that java.library.path should also list the location of libphp_java.so (as you had correctly). Alex
Thanks. I will try this. Fraser On Thu, 18 Jan 2001, Alex Akilov wrote: > Fraser, > > >>extension_dir=/usr/local/lib/php/extensions/no-debug-non-zts-20001214:/home/local/java/jdk1.2.2/jre/lib/i386 > > Change the above to only list the directory that contains the > libphp_java.so. > The jdk directories should go to java.library.path (or LD_LIBRARY_PATH > or ld.so.conf). Note that java.library.path should also list the > location > of libphp_java.so (as you had correctly). > > Alex > > >
Juan, I'm currently looking at the Java/Servlet code and trying to get it to be a little more stable (Sam appointed me to this task a few months ago and I've been slowly coming up to speed). I apologize on Sam's behalf for not responding to you but he's moved on to other responsibilities which involves a lot of travel and he may not be as attentive to the needs of PHP users as he may have been in the past. So far, I found that the Java feature is very inefficient since it starts up a JVM per session and could quickly max out your machine's resources. The Servlet feature, on the other hand, is much more practical but there may be some reentrancy bugs in it as I always get a trap after 3 attempts if I compile without debug. However, enabling debug appears to mask the problem so that it doesn't trap (at least with my limited testing). I hope to have this fixed soon and we're planning to take it through some more intensive stress testing to make sure it's ready for prime time. Watch this space. Alex
Hi again. I have a new problem. I have a form with a drop down list. When the user chooses something from the list, I need a variable to change values so it can be used upon submission of the form. I thought maybe I could throw a little line of code into an onChange() function in the <select > tag, but I got the MS Debugger thrown up on me. Anyone got an idea of how to do this? Is it possible to call a javascript function and change the variable in there? Or an easier way (like inline php code...)? Thanks Jason
that's the MS debugger being bitchy. as far as I know that's a) legal and b)useful. then again, in the context of what you're doing, why not just build in a little php logic that knows if your select is a certain value, something else should happen? note that onChange may only be associated with the <select> element, not the <option> element. -alex -- Alex Black, Head Monkey [EMAIL PROTECTED] The Turing Studio, Inc. http://www.turingstudio.com vox+510.666.0074 fax+510.666.0093 Saul Zaentz Film Center 2600 Tenth St Suite 433 Berkeley, CA 94710-2522 > From: [EMAIL PROTECTED] ("Jason Jacobs") > Newsgroups: php.general > Date: 18 Jan 2001 13:29:29 -0800 > Subject: [PHP] question (as if anything else would be in an email to the > list...) > > Hi again. I have a new problem. I have a form with a drop down list. When > the user chooses something from the list, I need a variable to change values > so it can be used upon submission of the form. I thought maybe I could > throw a little line of code into an onChange() function in the <select > > tag, but I got the MS Debugger thrown up on me. Anyone got an idea of how > to do this? Is it possible to call a javascript function and change the > variable in there? Or an easier way (like inline php code...)? Thanks > > Jason > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
just write a js function like: --cut here-- <script> <!-- function changeValue(newValue) { document.formname.inputNameToChange.value = newValue; //here is alert to show you the thingy alert(document.formname.inputNameToChange.value); } //--> </script> <form name=formname> <input type=hidden name=inputNameToChange> <select onChange="changeValue(this.options[this.selectedIndex].value);"> <option value=value1>label1 <option value=value2>label2 </select> </form> --end cutting-- DanO (javascript is your friend, not your enemy!) -----Original Message----- From: Jason Jacobs [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 1:33 PM To: [EMAIL PROTECTED] Subject: [PHP] question (as if anything else would be in an email to the list...) Hi again. I have a new problem. I have a form with a drop down list. When the user chooses something from the list, I need a variable to change values so it can be used upon submission of the form. I thought maybe I could throw a little line of code into an onChange() function in the <select > tag, but I got the MS Debugger thrown up on me. Anyone got an idea of how to do this? Is it possible to call a javascript function and change the variable in there? Or an easier way (like inline php code...)? Thanks Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
> then again, in the context of what you're doing, why not just build in a > little php logic that knows if your select is a certain value, something > else should happen? Well, the select can't be a value until the user choses something (the <option> stuff). Based on the option the choose, a value needs to be written to the <select> variable (in this case, it's an id value that is used later to put the choice in a database field. It's a venue location selector for various shows, and the id of the venue gets put in the record of the show). So, I *am* trying to build a little php logic. Kinda. But it's not working. As for the suggestion to do the javascript, would this code work (assuming that all the variables had values except the ones being written to)... <script> <!-- function changeValue(newValue) { document.formname.inputNameToChange.value = newValue; } //--> </script> <form name=formname> <input type=hidden name=inputNameToChange> <select name="location"onChange="changeValue(this.options[this.selectedIndex].value) ;"> <option value= <? $value1 ?>>label1 <option value=<? $value2 ?>>label2 </select> </form> and then me be able to use $location in a query? I didn't think it could work this way... -j
How can I clear an array of all it's values. Thank you, -------------------------------------------- Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com --------------------------------------------
On Thu, 18 Jan 2001, Brandon Orther wrote: > How can I clear an array of all it's values. > > Thank you, > > -------------------------------------------- > Brandon Orther > $array=Array(); -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
I am using php 4.02 and Apache 1.3.12 and am trying to do some XML parsing. HTML is also in the text I'm parsing and the xml parsing dies if it sees an html tag that does not have a matching closing tag. Is there any work around to this and if so is there a way to make it so XML tags don't need to be closed too? -- Shaun Butler [EMAIL PROTECTED] x2905
I dont know if there is a work around for this, but Im under the understanding that XML has to (not an option) have a closing tag on everything. I know in XHTML they have exeptions, but its slacker. ie. invalid <br> valid <br></br> or <br/> I dont know if you can use XHTML syntax in XML, I dont think it works like this, I think XML is more strict. Chris Lee Mediawaveonline.com ""Butler, Shaun"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I am using php 4.02 and Apache 1.3.12 and am trying to do some XML parsing. > HTML is also in the text I'm parsing and the xml parsing dies if it sees an > html tag that does not have a matching closing tag. Is there any work around > to this and if so is there a way to make it so XML tags don't need to be > closed too? > > -- > Shaun Butler > [EMAIL PROTECTED] > x2905 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
Really the only way around it is to not use XML since your HTML has to have closing tags to make the XML document valid. As far as any XML parser is concerned your HTML is not HTML anymore but is more XML. -Mike -----Original Message----- From: Butler, Shaun [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 10:10 AM To: [EMAIL PROTECTED] Subject: [PHP] XML Parser is a bit strict I am using php 4.02 and Apache 1.3.12 and am trying to do some XML parsing. HTML is also in the text I'm parsing and the xml parsing dies if it sees an html tag that does not have a matching closing tag. Is there any work around to this and if so is there a way to make it so XML tags don't need to be closed too? -- Shaun Butler [EMAIL PROTECTED] x2905 -- PHP General Mailing List (http://www.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 18 Jan 2001 14:28:16 -0800, Chris Lee <[EMAIL PROTECTED]> wrote: >I dont know if you can use XHTML syntax in XML, I dont think it works like >this, I think XML is more strict. XHTML *is* XML - it's just HTML reformulated so that a valid XHTML document can be parsed by a normal XML parser without using all of the special case rules an HTML parser needs.
( I am still not used to this mailing list - I keep hiting "Reply" and only sending it to the poster. ) Part of the XML standard is that every element will have start and end tags. HTML actually uses the syntax of SGML, which allows some tags to have their end tags omitted - therefore, on some level you *can't* process HTML as XML because it isn't XML. As far as I understand XHMTL, it simply HTML made XML compliant, which basically means you always have to put in an end tag. BTW - if you have an empty element such as "<br>" , in XML you have two choices: 1) <br></br> 2) <br/> (shorthand for (1) ) At 05:09 PM 1/18/01 +0000, you wrote: I am using php 4.02 and Apache 1.3.12 and am trying to do some XML parsing. HTML is also in the text I'm parsing and the xml parsing dies if it sees an html tag that does not have a matching closing tag. Is there any work around to this and if so is there a way to make it so XML tags don't need to be closed too? -- Shaun Butler [EMAIL PROTECTED] x2905 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] ------------------------- Brian White Step Two Designs Pty Ltd - SGML, XML & HTML Consultancy http://www.steptwo.com.au/ [EMAIL PROTECTED]
At 11:52 01-01-19 +1100, Brian White wrote: >As far as I understand XHMTL, it simply HTML made XML compliant, which >basically means you always have to put in an end tag. True enough... There is a tool though on the w3c call HTMLTidy that you can pass your HTML code through and will give you back a clean XHTML document... You can then pass it through XML without problems... P.S.: I never tested that, but some folk told me it's working pretty well... >BTW - if you have an empty element such as "<br>" , in XML you have two >choices: > > 1) <br></br> > 2) <br/> (shorthand for (1) ) > > >At 05:09 PM 1/18/01 +0000, you wrote: > >I am using php 4.02 and Apache 1.3.12 and am trying to do some XML parsing. >HTML is also in the text I'm parsing and the xml parsing dies if it sees an >html tag that does not have a matching closing tag. Is there any work around >to this and if so is there a way to make it so XML tags don't need to be >closed too?
hello! I have a form and in this form I have 48 checkboxes. is there a way that my program could remember which ones were selected? looks like this:: <form> <input type=checkbox name=cb[0] value=1> <input type=checkbox name=cb[1] value=1> <input type=checkbox name=cb[2] value=1> <input type=checkbox name=cb[3] value=1> <input type=checkbox name=cb[4] value=1> ... <input type=checkbox name=cb[45] value=1> <input type=checkbox name=cb[46] value=1> <input type=checkbox name=cb[47] value=1> </form> I would lke to remember which ones the user clicked on... Thank you! Rom
Yes you can. I hate to say it, but there isn't any one answer. You are going to need to keep track of the user (using most any form of sessions). Once you can track the user, then use that tracking code to store the data. You will have to decide how you want to store it in your DB. You could use serialized values (yuck!) or spend some time with your friend that has taken database class and come up with some rational, normalized tables to represent your data. Then store your data in these tables. Retrieve them, etc. Of course, if you don't need to store them more than past the next page, you could just print them out as <input type=hidden" ... > elements. while(list($key, $val) = each($cb)) print '<input type="hidden" name="cb[' .$key. ']" value="' .htmlspecialchars($val). '">' . "\n"; Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://www.JEEP-FOR-SALE.com/ -- I need a buyer Get your own Free, Private email at http://www.smackdown.com/ On Thu, 18 Jan 2001, Romulo Roberto Pereira wrote: > Date: Thu, 18 Jan 2001 17:18:15 -0500 > From: Romulo Roberto Pereira <[EMAIL PROTECTED]> > To: php-general <[EMAIL PROTECTED]> > Subject: [PHP] srtoring user selection on the database... > > hello! > > I have a form and in this form I have 48 checkboxes. is there a way that my program >could remember which ones were selected? > > looks like this:: > > <form> > <input type=checkbox name=cb[0] value=1> > <input type=checkbox name=cb[1] value=1> > <input type=checkbox name=cb[2] value=1> > <input type=checkbox name=cb[3] value=1> > <input type=checkbox name=cb[4] value=1> > ... > <input type=checkbox name=cb[45] value=1> > <input type=checkbox name=cb[46] value=1> > <input type=checkbox name=cb[47] value=1> > </form> > > I would lke to remember which ones the user clicked on... > > Thank you! > > Rom > >
Hey!!! thank you for your answer... what you think about this solution: while(list($key, $val) = each($cb)) { if ($val == 1 && $key != 0) { $acc = $key; } else { $acc = $acc.",".$key; } } // by the way this: $acc=.$key would be a valid command? like the c++ $a =+ $b in this solution I store all the indexes that have a value 1 or that are setted.. so let's say tha the user had click in 2,4,8,25 I would have $acc=2,4,8,25... later on I explode that and I will have the clicks... What do you think? Rom ----- Original Message ----- From: jeremy brand <[EMAIL PROTECTED]> To: Romulo Roberto Pereira <[EMAIL PROTECTED]> Cc: php-general <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 5:27 PM Subject: Re: [PHP] srtoring user selection on the database... Yes you can. I hate to say it, but there isn't any one answer. You are going to need to keep track of the user (using most any form of sessions). Once you can track the user, then use that tracking code to store the data. You will have to decide how you want to store it in your DB. You could use serialized values (yuck!) or spend some time with your friend that has taken database class and come up with some rational, normalized tables to represent your data. Then store your data in these tables. Retrieve them, etc. Of course, if you don't need to store them more than past the next page, you could just print them out as <input type=hidden" ... > elements. while(list($key, $val) = each($cb)) print '<input type="hidden" name="cb[' .$key. ']" value="' .htmlspecialchars($val). '">' . "\n"; Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://www.JEEP-FOR-SALE.com/ -- I need a buyer Get your own Free, Private email at http://www.smackdown.com/ On Thu, 18 Jan 2001, Romulo Roberto Pereira wrote: > Date: Thu, 18 Jan 2001 17:18:15 -0500 > From: Romulo Roberto Pereira <[EMAIL PROTECTED]> > To: php-general <[EMAIL PROTECTED]> > Subject: [PHP] srtoring user selection on the database... > > hello! > > I have a form and in this form I have 48 checkboxes. is there a way that my program could remember which ones were selected? > > looks like this:: > > <form> > <input type=checkbox name=cb[0] value=1> > <input type=checkbox name=cb[1] value=1> > <input type=checkbox name=cb[2] value=1> > <input type=checkbox name=cb[3] value=1> > <input type=checkbox name=cb[4] value=1> > ... > <input type=checkbox name=cb[45] value=1> > <input type=checkbox name=cb[46] value=1> > <input type=checkbox name=cb[47] value=1> > </form> > > I would lke to remember which ones the user clicked on... > > Thank you! > > Rom > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
> while(list($key, $val) = each($cb)) { > if ($val == 1 && $key != 0) { > $acc = $key; > } else { > $acc = $acc.",".$key; > } This looks syntactically correct. > } > // by the way this: $acc=.$key would be a valid command? like the c++ $a =+ > $b I usually use (for a string): .= that would be: $foo .= "old foo plus more stuff"; is the same as $foo = $foo . "old foo plus more stuff"; in PHP you use += for mathimatics. > > in this solution I store all the indexes that have a value 1 or that are > setted.. so let's say tha the user had click in 2,4,8,25 I would have > $acc=2,4,8,25... later on I explode that and I will have the clicks... > > What do you think? well, now you have the values. You need to state them. Either print them to "hidden" HTML input tags or save and retrieve them from the DB. :) Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://www.JEEP-FOR-SALE.com/ -- I need a buyer Get your own Free, Private email at http://www.smackdown.com/
On Thu, 18 Jan 2001, Romulo Roberto Pereira wrote: > Hey!!! thank you for your answer... what you think about this solution: > > while(list($key, $val) = each($cb)) { > if ($val == 1 && $key != 0) { > $acc = $key; > } else { > $acc = $acc.",".$key; > } > > } > Even shorter: $acc=implode(",", array_flip($cb)); > // by the way this: $acc=.$key would be a valid command? like the c++ $a =+ > $b > Other way: $acc.=$key, $a+=b > Rom > -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
On Thu, 18 Jan 2001, Ignacio Vazquez-Abrams wrote: > Even shorter: > > $acc=implode(",", array_flip($cb)); > Assuming, of course, that the original values are unique (oops!). -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
On Thu, 18 Jan 2001, Ignacio Vazquez-Abrams wrote: > On Thu, 18 Jan 2001, Ignacio Vazquez-Abrams wrote: > > > Even shorter: > > > > $acc=implode(",", array_flip($cb)); > > > > Assuming, of course, that the original values are unique (oops!). > > Oh wait: $acc=implode(",", array_keys($cb)); THAT will definitely work. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
On http://www.php.net/manual/en/ref.cpdf.php the clock example works fine for IE. But the Example 1(even the modified one in the comments) falls victim to the IE wants Content-length set, problem. Can some explain this to me? Thanks
Because of the high level of activity of this list, I receive the digest. When I see items of interest I note their subject, and then look them up from the archive at http://www.phpbuilder.com/mail/php-general/2001012/ (for today's, for example). Sometimes I see an item I'd like to respond to with helpful information or useful commentary. Is there a way I can easily do this, and in such a way that my messages get properly slotted into the thread? Thanks. --David Disclaimer: This message does not necessarily represent the opinion of RFD & Associates, Inc.Confidentiality: The sender intends this message for the exclusive use of the recipient. This message may include confidential or privileged information you may not disclose to others. Protection: We protect mail content through the use of MIMEsweeper (tm). For more information contact RFD & Associates via http://www.rfdinc.com.
You can add a Re: to the "Subject:" header, then make sure that your "In-Reply-To:" header is in reply to the "Message-ID:" header of the message you are replying to. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://www.JEEP-FOR-SALE.com/ -- I need a buyer Get your own Free, Private email at http://www.smackdown.com/ On Thu, 18 Jan 2001 [EMAIL PROTECTED] wrote: > Date: Thu, 18 Jan 2001 16:26:46 -0600 > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: [PHP] How to participate from the digest? > > Because of the high level of activity of this list, I receive the digest. > When I see items of interest I note their subject, and then look them up > from the archive at http://www.phpbuilder.com/mail/php-general/2001012/ > (for today's, for example). Sometimes I see an item I'd like to respond to > with helpful information or useful commentary. Is there a way I can easily > do this, and in such a way that my messages get properly slotted into the > thread? Thanks. > --David > > > Disclaimer: This message does not necessarily represent the opinion of > RFD & Associates, Inc.Confidentiality: The sender intends this message > for the exclusive use of the recipient. This message may include > confidential or privileged information you may not disclose to others. > > Protection: We protect mail content through the use of MIMEsweeper (tm). > For more information contact RFD & Associates via http://www.rfdinc.com. >
There is nothing easier then by going to news://news.php.net I never until php had any use for news groups, they were for perverts with to much bandwidth, haha. now I use my news reader all the time :) Chris Lee Mediawaveonline.com <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Because of the high level of activity of this list, I receive the digest. > When I see items of interest I note their subject, and then look them up > from the archive at http://www.phpbuilder.com/mail/php-general/2001012/ > (for today's, for example). Sometimes I see an item I'd like to respond to > with helpful information or useful commentary. Is there a way I can easily > do this, and in such a way that my messages get properly slotted into the > thread? Thanks. > --David > > > Disclaimer: This message does not necessarily represent the opinion of > RFD & Associates, Inc.Confidentiality: The sender intends this message > for the exclusive use of the recipient. This message may include > confidential or privileged information you may not disclose to others. > > Protection: We protect mail content through the use of MIMEsweeper (tm). > For more information contact RFD & Associates via http://www.rfdinc.com. >
Just send an email with with the subject in it, from anywhere. If replying, put the Re: in it. Anybody can write to the list. Philip On Thu, 18 Jan 2001 [EMAIL PROTECTED] wrote: > Because of the high level of activity of this list, I receive the digest. > When I see items of interest I note their subject, and then look them up > from the archive at http://www.phpbuilder.com/mail/php-general/2001012/ > (for today's, for example). Sometimes I see an item I'd like to respond to > with helpful information or useful commentary. Is there a way I can easily > do this, and in such a way that my messages get properly slotted into the > thread? Thanks. > --David > > > Disclaimer: This message does not necessarily represent the opinion of > RFD & Associates, Inc.Confidentiality: The sender intends this message > for the exclusive use of the recipient. This message may include > confidential or privileged information you may not disclose to others. > > Protection: We protect mail content through the use of MIMEsweeper (tm). > For more information contact RFD & Associates via http://www.rfdinc.com. >
Hello, I am trying to do this: $myVal = "<form name="$name"" action="$action" method="$method""> *trying to accomplish putting " qotes around my string values* Thanks!
> $myVal = "<form name="$name"" action="$action" method="$method""> > *trying to accomplish putting " qotes around my string values* Try $myVal = "<form name=\"$name\" action=\"$action\" method=\"$method\">"; or $myVal = '<form name="' . $name . 'action="' . $action . '" method="' . $method . '">'; - Darryl ---------------------------------------------------------------------- Darryl Friesen, B.Sc., Programmer/Analyst [EMAIL PROTECTED] Education & Research Technology Services, http://gollum.usask.ca/ Department of Computing Services, University of Saskatchewan ---------------------------------------------------------------------- "Go not to the Elves for counsel, for they will say both no and yes"
Then you need to escape your double quotes: $myVal = "<form name=\"$name\" action=\"$action\" method=\"$method\">"; or use the single quote equivilant: $myVal = '<form name="'.$name.'" action="'.$action.'" method="'.$method.'">'; or (PHP4 only) $myVal = <<<EOT <form name="$name" action="$action" method="$method"> EOT; Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://www.JEEP-FOR-SALE.com/ -- I need a buyer Get your own Free, Private email at http://www.smackdown.com/ On Thu, 18 Jan 2001, Karl J. Stubsjoen wrote: > Date: Thu, 18 Jan 2001 15:44:06 -0700 > From: Karl J. Stubsjoen <[EMAIL PROTECTED]> > To: PHP Mailing List <[EMAIL PROTECTED]> > Subject: [PHP] Quotes and Values > > Hello, > > I am trying to do this: > > $myVal = "<form name="$name"" action="$action" method="$method""> > *trying to accomplish putting " qotes around my string values* > > Thanks! > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >
Hello Karl, This tutorial will be of use : Using Strings : ---------------------------------------------------------- http://www.zend.com/zend/tut/using-strings.php In short, three ways come to mind : $a = "<form name=\"$name\" action=\"$action\" method=\"$method\">"; $a = '<form name="'.$name.'" action="'.$action.'" method="'.$method.'">'; $a = "<form name='$name' action='$action' method='$method'>"; Which will make more sense after reading (and printing out) the above tutorial. As well as : PHP Manual : Strings : ---------------------------------------------------------- http://www.php.net/manual/en/language.types.string.php Regards, Philip On Thu, 18 Jan 2001, Karl J. Stubsjoen wrote: > Hello, > > I am trying to do this: > > $myVal = "<form name="$name"" action="$action" method="$method""> > *trying to accomplish putting " qotes around my string values* > > Thanks! > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
alot of people inside on escaping your double quotes, I dont, I use single quotes, its nicer to read. echo "<form method='post' name='form_1' action='somepage.php'>\n"; echo "<form method=\"post\" name=\"form_1\" action=\"somepage.php\">\n"; I find the prior easier to read. they both work 100% no quibles. Chris Lee Mediawaveonline.com ""Karl J. Stubsjoen"" <[EMAIL PROTECTED]> wrote in message 017b01c081a0$2ad77e50$0afc020a@kstubsjoen">news:017b01c081a0$2ad77e50$0afc020a@kstubsjoen... > Hello, > > I am trying to do this: > > $myVal = "<form name="$name"" action="$action" method="$method""> > *trying to accomplish putting " qotes around my string values* > > Thanks! > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
True, but iirc it's not xml compliant, and might not be a good habit, and it then leaves you without the option to use it in JS calls, like: echo "<a href=\"#\" onclick=\"do_something('withthis')\">" Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. ----- Original Message ----- From: "Chris Lee" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 19, 2001 9:51 AM Subject: Re: [PHP] Quotes and Values > alot of people inside on escaping your double quotes, I dont, I use single > quotes, its nicer to read. > > echo "<form method='post' name='form_1' action='somepage.php'>\n"; > > echo "<form method=\"post\" name=\"form_1\" action=\"somepage.php\">\n"; > > I find the prior easier to read. they both work 100% no quibles. > > Chris Lee > Mediawaveonline.com > > > > ""Karl J. Stubsjoen"" <[EMAIL PROTECTED]> wrote in message > 017b01c081a0$2ad77e50$0afc020a@kstubsjoen">news:017b01c081a0$2ad77e50$0afc020a@kstubsjoen... > > Hello, > > > > I am trying to do this: > > > > $myVal = "<form name="$name"" action="$action" method="$method""> > > *trying to accomplish putting " qotes around my string values* > > > > Thanks! > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
Hello, How can I clear a variable? Thank you, -------------------------------------------- Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com --------------------------------------------
On Thu, 18 Jan 2001, Brandon Orther wrote: > Hello, > > How can I clear a variable? > > Thank you, > > -------------------------------------------- > Brandon Orther > WebIntellects Design/Development Manager > [EMAIL PROTECTED] > 800-994-6364 > www.webintellects.com > -------------------------------------------- > unset($var); -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
unset($var) On Thu, 18 Jan 2001, Brandon Orther wrote: > Hello, > > How can I clear a variable? > > Thank you, > > -------------------------------------------- > Brandon Orther > WebIntellects Design/Development Manager > [EMAIL PROTECTED] > 800-994-6364 > www.webintellects.com > -------------------------------------------- > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
> On Thu, 18 Jan 2001, Brandon Orther wrote: > > > Hello, > > > > How can I clear a variable? > > > > Thank you, > > > > -------------------------------------------- > > Brandon Orther > > WebIntellects Design/Development Manager > > [EMAIL PROTECTED] > > 800-994-6364 > > www.webintellects.com > > -------------------------------------------- > > > > unset($var); > Actually, just to clarify, that removes a variable from the symbol table. to clear the contents of a variable, just set it to null: $var = NULL; // $var is now empty -sterling
you can clear a string by doing this: $string = ''; you can clear an array by doing this: $array = array(); you can clear (or zero out rather) an integer or float by doing: $int_or_float = 0; or you can simply unset() the variable: unset($any_of_the_above); Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://www.JEEP-FOR-SALE.com/ -- I need a buyer Get your own Free, Private email at http://www.smackdown.com/ On Thu, 18 Jan 2001, Brandon Orther wrote: > Date: Thu, 18 Jan 2001 14:44:56 -0800 > From: Brandon Orther <[EMAIL PROTECTED]> > To: PHP User Group <[EMAIL PROTECTED]> > Subject: [PHP] Clearing a variable > > Hello, > > How can I clear a variable? > > Thank you, > > -------------------------------------------- > Brandon Orther > WebIntellects Design/Development Manager > [EMAIL PROTECTED] > 800-994-6364 > www.webintellects.com > -------------------------------------------- > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >
I'm having a problem with $PHP_SELF being cut down to 17 characters, for instance /Scripts/php/phpscript.php?value=123 would be cut down to /Scripts/php/phps There was a bug opened up on bugs.php.net, id number 5380, but I can't find a solution in the comments listed there. I was wondering if anyone knew how to solve this problem? I'm using the Zeus web server and PHP is set up as an ISAPI module. Thanks! -- Shawn Blaylock, ClipperNet Software Engineer [EMAIL PROTECTED] http://www.clipper.net/ Eugene OR 541-431-3360 x406 Toll Free 866-673-6260 x406
I'm not aware of this bug, but temporarily you might consider using the $SCRIPT_NAME variable. The same values is stored in it AFAIK. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://www.JEEP-FOR-SALE.com/ -- I need a buyer Get your own Free, Private email at http://www.smackdown.com/ On Thu, 18 Jan 2001, Shawn Blaylock wrote: > Date: Thu, 18 Jan 2001 15:03:39 -0800 > From: Shawn Blaylock <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: [PHP] $PHP_SELF truncated to 17 chars > > I'm having a problem with $PHP_SELF being cut down to 17 characters, for > instance > > /Scripts/php/phpscript.php?value=123 > would be cut down to > /Scripts/php/phps > > There was a bug opened up on bugs.php.net, id number 5380, but I can't > find a solution in the comments listed there. I was wondering if anyone > knew how to solve this problem? > > I'm using the Zeus web server and PHP is set up as an ISAPI module. > Thanks! > > -- > > Shawn Blaylock, ClipperNet Software Engineer > [EMAIL PROTECTED] > http://www.clipper.net/ > Eugene OR 541-431-3360 x406 > Toll Free 866-673-6260 x406 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >
Unfortunately, it's hacking off the last few characters in SCRIPT_NAME, too. --Shawn jeremy brand wrote: > > I'm not aware of this bug, but temporarily you might consider using > the $SCRIPT_NAME variable. The same values is stored in it AFAIK. > > Jeremy > > Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] > http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > http://www.JEEP-FOR-SALE.com/ -- I need a buyer > Get your own Free, Private email at http://www.smackdown.com/ > > On Thu, 18 Jan 2001, Shawn Blaylock wrote: > > > Date: Thu, 18 Jan 2001 15:03:39 -0800 > > From: Shawn Blaylock <[EMAIL PROTECTED]> > > To: [EMAIL PROTECTED] > > Subject: [PHP] $PHP_SELF truncated to 17 chars > > > > I'm having a problem with $PHP_SELF being cut down to 17 characters, for > > instance > > > > /Scripts/php/phpscript.php?value=123 > > would be cut down to > > /Scripts/php/phps > > > > There was a bug opened up on bugs.php.net, id number 5380, but I can't > > find a solution in the comments listed there. I was wondering if anyone > > knew how to solve this problem? > > > > I'm using the Zeus web server and PHP is set up as an ISAPI module. > > Thanks! > > > > -- > > > > Shawn Blaylock, ClipperNet Software Engineer > > [EMAIL PROTECTED] > > http://www.clipper.net/ > > Eugene OR 541-431-3360 x406 > > Toll Free 866-673-6260 x406 > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > -- Shawn Blaylock, ClipperNet Software Engineer [EMAIL PROTECTED] http://www.clipper.net/ Eugene OR 541-431-3360 x406 Toll Free 866-673-6260 x406
Then it is something else, not those variables themselves. Do you have a configuration issue? Are you running on Windows; do you need to reboot? check phpinfo(); and see if all your variables are truncated. Just a few thought. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://www.JEEP-FOR-SALE.com/ -- I need a buyer Get your own Free, Private email at http://www.smackdown.com/ On Thu, 18 Jan 2001, Shawn Blaylock wrote: > Date: Thu, 18 Jan 2001 15:19:37 -0800 > From: Shawn Blaylock <[EMAIL PROTECTED]> > To: jeremy brand <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] $PHP_SELF truncated to 17 chars > > Unfortunately, it's hacking off the last few characters in SCRIPT_NAME, > too. > > --Shawn > > jeremy brand wrote: > > > > I'm not aware of this bug, but temporarily you might consider using > > the $SCRIPT_NAME variable. The same values is stored in it AFAIK. > > > > Jeremy > > > > Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] > > http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > http://www.JEEP-FOR-SALE.com/ -- I need a buyer > > Get your own Free, Private email at http://www.smackdown.com/ > > > > On Thu, 18 Jan 2001, Shawn Blaylock wrote: > > > > > Date: Thu, 18 Jan 2001 15:03:39 -0800 > > > From: Shawn Blaylock <[EMAIL PROTECTED]> > > > To: [EMAIL PROTECTED] > > > Subject: [PHP] $PHP_SELF truncated to 17 chars > > > > > > I'm having a problem with $PHP_SELF being cut down to 17 characters, for > > > instance > > > > > > /Scripts/php/phpscript.php?value=123 > > > would be cut down to > > > /Scripts/php/phps > > > > > > There was a bug opened up on bugs.php.net, id number 5380, but I can't > > > find a solution in the comments listed there. I was wondering if anyone > > > knew how to solve this problem? > > > > > > I'm using the Zeus web server and PHP is set up as an ISAPI module. > > > Thanks! > > > > > > -- > > > > > > Shawn Blaylock, ClipperNet Software Engineer > > > [EMAIL PROTECTED] > > > http://www.clipper.net/ > > > Eugene OR 541-431-3360 x406 > > > Toll Free 866-673-6260 x406 > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > -- > > Shawn Blaylock, ClipperNet Software Engineer > [EMAIL PROTECTED] > http://www.clipper.net/ > Eugene OR 541-431-3360 x406 > Toll Free 866-673-6260 x406 >
I've checked phpinfo(); and none of the other vars are truncated. I think I just solved the problem! It's a crude hack though =( I set $PHP_SELF = $HTTP_SERVER_VARS['PATH_INFO'] at the beginning of the script, and that seems to have solved it. In the bug info they said it might be related to the Zeus ISAPI, however, they didn't confirm nor deny this, so I was still left hanging. jeremy brand wrote: > > Then it is something else, not those variables themselves. Do you > have a configuration issue? Are you running on Windows; do you need > to reboot? > > check phpinfo(); and see if all your variables are truncated. > > Just a few thought. > > Jeremy > > Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] > http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > http://www.JEEP-FOR-SALE.com/ -- I need a buyer > Get your own Free, Private email at http://www.smackdown.com/ > > On Thu, 18 Jan 2001, Shawn Blaylock wrote: > > > Date: Thu, 18 Jan 2001 15:19:37 -0800 > > From: Shawn Blaylock <[EMAIL PROTECTED]> > > To: jeremy brand <[EMAIL PROTECTED]> > > Cc: [EMAIL PROTECTED] > > Subject: Re: [PHP] $PHP_SELF truncated to 17 chars > > > > Unfortunately, it's hacking off the last few characters in SCRIPT_NAME, > > too. > > > > --Shawn > > > > jeremy brand wrote: > > > > > > I'm not aware of this bug, but temporarily you might consider using > > > the $SCRIPT_NAME variable. The same values is stored in it AFAIK. > > > > > > Jeremy > > > > > > Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] > > > http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more > > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > > "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 > > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > > http://www.JEEP-FOR-SALE.com/ -- I need a buyer > > > Get your own Free, Private email at http://www.smackdown.com/ > > > > > > On Thu, 18 Jan 2001, Shawn Blaylock wrote: > > > > > > > Date: Thu, 18 Jan 2001 15:03:39 -0800 > > > > From: Shawn Blaylock <[EMAIL PROTECTED]> > > > > To: [EMAIL PROTECTED] > > > > Subject: [PHP] $PHP_SELF truncated to 17 chars > > > > > > > > I'm having a problem with $PHP_SELF being cut down to 17 characters, for > > > > instance > > > > > > > > /Scripts/php/phpscript.php?value=123 > > > > would be cut down to > > > > /Scripts/php/phps > > > > > > > > There was a bug opened up on bugs.php.net, id number 5380, but I can't > > > > find a solution in the comments listed there. I was wondering if anyone > > > > knew how to solve this problem? > > > > > > > > I'm using the Zeus web server and PHP is set up as an ISAPI module. > > > > Thanks! > > > > > > > > -- > > > > > > > > Shawn Blaylock, ClipperNet Software Engineer > > > > [EMAIL PROTECTED] > > > > http://www.clipper.net/ > > > > Eugene OR 541-431-3360 x406 > > > > Toll Free 866-673-6260 x406 > > > > > > > > -- > > > > PHP General Mailing List (http://www.php.net/) > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > > > > Shawn Blaylock, ClipperNet Software Engineer > > [EMAIL PROTECTED] > > http://www.clipper.net/ > > Eugene OR 541-431-3360 x406 > > Toll Free 866-673-6260 x406 > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Shawn Blaylock, ClipperNet Software Engineer [EMAIL PROTECTED] http://www.clipper.net/ Eugene OR 541-431-3360 x406 Toll Free 866-673-6260 x406
Hello, Looking through the PHP Site (someone needs to improve the search features), and can't find information about querying form field values etc... Thanks!
On Thu, 18 Jan 2001, Karl J. Stubsjoen wrote: > Hello, > > Looking through the PHP Site (someone needs to improve the search features), > and can't find information about querying form field values etc... > > Thanks! > http://www.php.net/manual/en/html/language.variables.external.html -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
they're automagically converted to global variables. <input type="text" name="foo"> becomes $foo on the page you're submitting to. Nice, wot? Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. ----- Original Message ----- From: "Karl J. Stubsjoen" <[EMAIL PROTECTED]> To: "PHP Mailing List" <[EMAIL PROTECTED]> Sent: Friday, January 19, 2001 10:12 AM Subject: [PHP] Where is information about Forms? > Hello, > > Looking through the PHP Site (someone needs to improve the search features), > and can't find information about querying form field values etc... > > Thanks! > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
On Fri, 19 Jan 2001, Josh G wrote: > they're automagically converted to global variables. > Strictly speaking, no. They're put into $HTTP_*_VARS, and if register_globals is on in php.ini, then they're available in $GLOBALS in the order given by variables_order in php.ini. > Gfunk - http://www.gfunk007.com/ > > I sense much beer in you. Beer leads to intoxication, intoxication to > hangovers, and hangovers to... suffering. > -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
Release 1.0. Please welcome Smarty to the PHP template engine arena :-) Inventors: Monte Ohrt Andrei Zmievski http://www.phpinsider.com/php/code/Smarty/ DESCRIPTION: What is Smarty? Smarty is a template engine for PHP. One of the unique aspects about Smarty that sets it apart from other templating solutions is that it compiles the templates into native php scripts upon the first execution. After that, it just executes the compiled PHP scripts. Therefore, there is no costly template file parsing for each request. Some of Smarty's features: * it is extremely fast * it is relatively simple since the PHP parser does the dirty work. * no template parsing overhead, only compiles once. * it is smart about recompiling only the template files that have changed. * you can make custom functions and custom variable modifiers, so the template language is extremely extensible. * configurable template delimiter tag syntax, so you can use {}, {{}}, <!--{}-->, or whatever you like. * template if/elseif/else/endif constructs are passed to the PHP parser, so the if syntax can be as simple or as complex as you like. * unlimited nesting of sections,ifs, etc. allowed * it is possible to imbed PHP code right in your template files, although not recommended and doubtfully needed since the engine is so customizable. Have fun, and good luck! -- Monte Ohrt <[EMAIL PROTECTED]> http://www.ispi.net/
Nice... has a lot of cool ideas in it, a few of which I'm also working on for the templating part of a content management system I'm working on in my spare time (like compilation, except i'm going to do it at save-time, not 1st run-time, since i control the publishing functions). Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering.
In Apache authentication, userID/password are stored in browser session, and every time, these information will be sent back to the Apache server and do the authentication. My question is: can we get the userID/password from the browser session, especially in PHP? Thank you very much in advance. David _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
On Thu, 18 Jan 2001, david klein wrote: > In Apache authentication, userID/password are stored in browser session, and > every time, these information will be sent back to the Apache server and do > the authentication. > > My question is: can we get the userID/password from the browser session, > especially in PHP? > > Thank you very much in advance. > > David > $HTTP_SERVER_VARS["PHP_AUTH_USER"] and $HTTP_SERVER_VARS["PHP_AUTH_PASSWD"], IIRC. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
It works! Great! Thank you very much for the great help! Regards, David >From: Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> >To: david klein <[EMAIL PROTECTED]> >Subject: Re: [PHP] How to get userID/password from the browser session >Date: Thu, 18 Jan 2001 18:38:34 -0500 (EST) > >On Thu, 18 Jan 2001, david klein wrote: > > > > > Ignacio, > > > > Thank you very much! > > The UserID works, but I couldn't get the password ( I used > > print($HTTP_SERVER_VARS["PHP_AUTH_PASSWD"]) ), it is empty. > > Any suggestion? BTW, what does IIRC mean? > > > > Regards, > > David > > > >Whoops, I meant PHP_AUTH_PW. I need to get some more sleep tonight :) > >IIRC means If I Remember Correctly. > >-- >Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> > _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
> James, > > I too have used various WYSIWYG html coders, and most of the time, I found > my self hampered by application limitations. It is a fair way to study code > generated...but that method of learning can be dangerous as well. I also > find I have quicker response/fixes to bugs in handcode. > > Now I exclusively use EditPlus2 - it's worth every dollar I paid for it, and > in my opinion, has helped me gain customers - once they watched me script > and parse code with it. It is good to see others appreciate the simplicity > and power of Edit+. I like it due to the fact it is not limited to HTML and > there is alot of user support templates, auto-completion, etc available. > Working with HTML, ASP, C, VBScript, Java, PHP, mySQL, and just plain old > text files, is a real pleasure with this hand-coding product. I'd like to take a look at EditPlus2. Got a link? What I'd like an editor to do for me is help out with how the page looks. One I set up a page that looks half-way decent - even if I use stock templates or style sheets - I can always plop the code in later by hand and that's no biggie. It's just that initial setting up of tables and stuff that is kind of tedious and I want to get away from that so I can concentrate on the code. Yours, Murph
On Thu, 18 Jan 2001, Murph wrote: > I'd like to take a look at EditPlus2. Got a link? > http://www.editplus.com/ > What I'd like an editor to do for me is help out with how the page looks. > One I set up a page that looks half-way decent - even if I use stock > templates or style sheets - I can always plop the code in later by hand and > that's no biggie. It's just that initial setting up of tables and stuff that > is kind of tedious and I want to get away from that so I can concentrate on > the code. > > Yours, > Murph > *sigh* Unfortunately EditPlus is not a WYSIWYG editor. FrontPage is still better for tables and fluff like that. Mind you, the two do work together somewhat well (for an MS product), all things considered... -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
Plus if you're just looking for soemthing to get your layout started, you can start in FrontPage and just never open PHP files in it once you start adding PHP ;) --Toby ----- Original Message ----- From: "Ignacio Vazquez-Abrams" <[EMAIL PROTECTED]> To: "Murph" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; "James McLaughlin" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 7:02 PM Subject: Re: [PHP] I love/hate FrontPage - need another HTML editor. > On Thu, 18 Jan 2001, Murph wrote: > > > I'd like to take a look at EditPlus2. Got a link? > > > > http://www.editplus.com/ > > > What I'd like an editor to do for me is help out with how the page looks. > > One I set up a page that looks half-way decent - even if I use stock > > templates or style sheets - I can always plop the code in later by hand and > > that's no biggie. It's just that initial setting up of tables and stuff that > > is kind of tedious and I want to get away from that so I can concentrate on > > the code. > > > > Yours, > > Murph > > > > *sigh* > > Unfortunately EditPlus is not a WYSIWYG editor. FrontPage is still better for > tables and fluff like that. Mind you, the two do work together somewhat well > (for an MS product), all things considered... > > -- > Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >
On Thu, 18 Jan 2001 19:08:44 -0500, "Toby Butzon" <[EMAIL PROTECTED]> wrote: >Plus if you're just looking for soemthing to get your layout started, you >can start in FrontPage and just never open PHP files in it once you start >adding PHP ;) I'm using HoTMetaL Pro 6.0. It's great for table layout, and I can open PHP files just fine. I got it for $70 at Amazon. It has bugs when encountering PHP standard tags, but using long tags works around that problem. Another benefit of using long tags is they cause HoTMetaL to format your PHP code as-is, so you can control the indenting of your PHP code however you like. Also, there is no problem using the <?= idiom in HTML like so: > <TD COLSPAN="2" VALIGN="TOP">Card number<BR><INPUT NAME="cardnumber" > SIZE="30" VALUE="<?=$cardnumber?>"><BR><BR></TD> Some have objected that not all ISPs enable short tags, but that's no problem if you host with us. We enabled them. :-) Egan
Hey! A little bit of definition: - a week start on sunday and ends on saturday; - a year has 365/7 ~= 52 weeks; How do I discover what months have 5 weeks and what have 4? Rom
can't think of exactly the math, but get the weekdayday of the 1st, divide how many days in the month/7, and it should be easy enuff. use a combination of date() and mktime() to get the first day of the month methinks. Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. ----- Original Message ----- From: "Romulo Roberto Pereira" <[EMAIL PROTECTED]> To: "php-general" <[EMAIL PROTECTED]> Sent: Friday, January 19, 2001 11:07 AM Subject: [PHP] date problem: some months have 5 weeks... how I discover which ones? Hey! A little bit of definition: - a week start on sunday and ends on saturday; - a year has 365/7 ~= 52 weeks; How do I discover what months have 5 weeks and what have 4? Rom
All months have more than 4 weeks except February (but only when it is not a leap year). I'm probably not understanding what exactly you are trying to do. By your definition then, wouldn't this month only have 3 weeks? January 2001 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Yet there are 10 unaccounted days which is 1 and 3/7 more weeks. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://www.JEEP-FOR-SALE.com/ -- I need a buyer Get your own Free, Private email at http://www.smackdown.com/ On Thu, 18 Jan 2001, Romulo Roberto Pereira wrote: > Date: Thu, 18 Jan 2001 19:07:31 -0500 > From: Romulo Roberto Pereira <[EMAIL PROTECTED]> > To: php-general <[EMAIL PROTECTED]> > Subject: [PHP] date problem: some months have 5 weeks... how I discover which ones? > > Hey! > > A little bit of definition: > > - a week start on sunday and ends on saturday; > > - a year has 365/7 ~= 52 weeks; > > How do I discover what months have 5 weeks and what have 4? > > Rom >
For a newspaper, a week start on sunday and ends in a saturday. Media planners divide ads in newspapers by monhs and than by weeks, respectively. so let's say: january 2001 started in a monday Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 - 1st week 7 8 9 10 11 12 13 - 2nd week 14 15 16 17 18 19 20 - 3rd week 21 22 23 24 25 26 27 - 4th week 28 29 30 31 - 5th week So january is a month that has 5 weeks for a newspaper, because if I would put an ad on a tuesday, january has 5 tuesdays.. got it? How do I do to calculate that? Damn question! Rom ----- Original Message ----- From: jeremy brand <[EMAIL PROTECTED]> To: Romulo Roberto Pereira <[EMAIL PROTECTED]> Cc: php-general <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 7:14 PM Subject: Re: [PHP] date problem: some months have 5 weeks... how I discoverwhich ones? All months have more than 4 weeks except February (but only when it is not a leap year). I'm probably not understanding what exactly you are trying to do. By your definition then, wouldn't this month only have 3 weeks? January 2001 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Yet there are 10 unaccounted days which is 1 and 3/7 more weeks. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://www.JEEP-FOR-SALE.com/ -- I need a buyer Get your own Free, Private email at http://www.smackdown.com/ On Thu, 18 Jan 2001, Romulo Roberto Pereira wrote: > Date: Thu, 18 Jan 2001 19:07:31 -0500 > From: Romulo Roberto Pereira <[EMAIL PROTECTED]> > To: php-general <[EMAIL PROTECTED]> > Subject: [PHP] date problem: some months have 5 weeks... how I discover which ones? > > Hey! > > A little bit of definition: > > - a week start on sunday and ends on saturday; > > - a year has 365/7 ~= 52 weeks; > > How do I discover what months have 5 weeks and what have 4? > > Rom > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
> For a newspaper, a week start on sunday and ends in a saturday. > > Media planners divide ads in newspapers by monhs and than by weeks, > respectively. Well, this _seems_ contradictory to your original "definition", but I got it. > so let's say: > > january 2001 started in a monday > > Su Mo Tu We Th Fr Sa > 1 2 3 4 5 6 - 1st week > 7 8 9 10 11 12 13 - 2nd week > 14 15 16 17 18 19 20 - 3rd week > 21 22 23 24 25 26 27 - 4th week > 28 29 30 31 - 5th week Well, get the timestamp of the first of the month: $ts = mktime(0,0,0,1,1,2001); then add 7 days worth of secnds to it until the month is no longer January: while ((int)date('m',$ts) == 1) { //do stuff for this week $ts += (60*60*24*7); } > So january is a month that has 5 weeks for a newspaper, because if I would > put an ad on a tuesday, january has 5 tuesdays.. got it? > > How do I do to calculate that? I hope this help. It should give you the general idea. I don't have time to write your whole application. ;-) Hopefully I gave you enough to get you going in the right direction. Ultimately you are going to need to cutomize this for what you exactly want to do. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://www.JEEP-FOR-SALE.com/ -- I need a buyer Get your own Free, Private email at http://www.smackdown.com/
Can I have (PHP+Linux+Apache+MySQL)+(Windows+Explorer) in the same machine to develope stand alone? Andrés de la Varga
On Thu, 18 Jan 2001, Andrés de la Varga wrote: > Can I have (PHP+Linux+Apache+MySQL)+(Windows+Explorer) in the same machine > to develope stand alone? > > Andrés de la Varga > http://www.vmware.com/ -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
you can also, very easily, dual boot. (you said same machine). I have had IE 5 working (for the most part) under wine in debian about 6 months ago. It would crash every now and again, and the widgets looked wierd, but it was useable. If I were you, it might make more sense to just spend the whpping cash on a 486 or pentium and use that as your linux server (apache+php+mysql) for development. That is probably still cheaper than VMware and it is always nice to have a server around that can just stay up chugging along. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://www.JEEP-FOR-SALE.com/ -- I need a buyer Get your own Free, Private email at http://www.smackdown.com/ On Thu, 18 Jan 2001, Ignacio Vazquez-Abrams wrote: > Date: Thu, 18 Jan 2001 19:11:33 -0500 (EST) > From: Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> > To: Andrés de la Varga <[EMAIL PROTECTED]> > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] (PHP+Linux+Apache+MySQL)+(Windows+Explorer) > > On Thu, 18 Jan 2001, Andrés de la Varga wrote: > > > Can I have (PHP+Linux+Apache+MySQL)+(Windows+Explorer) in the same machine > > to develope stand alone? > > > > Andrés de la Varga > > > > http://www.vmware.com/ > > -- > Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >
I use PHP, Apache, MySQL, Explorer on my Win98 machine. I set up my client's sites as virtual hosts under Apache which is running in Windows. It works great for me aside from the normal Windows abnormalities. Someday I may grow up and get a Linux box going but this works well for now. Kevin > Subject: Re: [PHP] (PHP+Linux+Apache+MySQL)+(Windows+Explorer) > > On Thu, 18 Jan 2001, Andrés de la Varga wrote: > > > Can I have (PHP+Linux+Apache+MySQL)+(Windows+Explorer) in the same machine > > to develope stand alone? > > > > Andrés de la Varga > > > > http://www.vmware.com/ > > -- > Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
At 06:47 PM 18/01/2001, you wrote: >What I'd like an editor to do for me is help out with how the page looks. >One I set up a page that looks half-way decent - even if I use stock >templates or style sheets - I can always plop the code in later by hand and >that's no biggie. It's just that initial setting up of tables and stuff that >is kind of tedious and I want to get away from that so I can concentrate on >the code. Personally, I would love to find an editor which had colour coded code ability, a nice windows cut/paste/undo/redo feature, much akin to say Homesite, but the most important thing would be that it can simulate a telnet connection (or any connection for that matter) to the web server im working on and use it just like the current editors view/use/display the local hard drive. When you save a file, it instantly saves it on the server. Ive seen some editors which have a supposed publish option but they are either very lame, or made by microsoft (nuff said). I like the ability to have a simple keystroke(s) to instantly update the file so I can reload it direct off the webserver and test it out. Infact, I didnt mind how nedit worked when I was running my FreeBSD box at home, but it too couldnt allow me to work on remote files live. Chris
If I may make a session download phped.com or find another editor (notepad) and then use that in conjunction with ftp net drive (look for it on the web somewhere), it will allow you view the ftp servers drive, copy and paste and save directly to the server... works very nice. .:: Nathan Cook [ [EMAIL PROTECTED] ] ::. Systems & Network Administrator :: Programmer phone == 208.343.3110 :: pager == 208.387.9983 ----- Original Message ----- From: "Chris Aitken" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 5:10 PM Subject: [PHP] Ultimate Editor > At 06:47 PM 18/01/2001, you wrote: > > >What I'd like an editor to do for me is help out with how the page looks. > >One I set up a page that looks half-way decent - even if I use stock > >templates or style sheets - I can always plop the code in later by hand and > >that's no biggie. It's just that initial setting up of tables and stuff that > >is kind of tedious and I want to get away from that so I can concentrate on > >the code. > > > Personally, I would love to find an editor which had colour coded code > ability, a nice windows cut/paste/undo/redo feature, much akin to say > Homesite, but the most important thing would be that it can simulate a > telnet connection (or any connection for that matter) to the web server im > working on and use it just like the current editors view/use/display the > local hard drive. When you save a file, it instantly saves it on the > server. Ive seen some editors which have a supposed publish option but they > are either very lame, or made by microsoft (nuff said). > > I like the ability to have a simple keystroke(s) to instantly update the > file so I can reload it direct off the webserver and test it out. Infact, I > didnt mind how nedit worked when I was running my FreeBSD box at home, but > it too couldnt allow me to work on remote files live. > > > > Chris > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > >
look into nedit. It does very well on linux, and I hear there's a Windows port. I have a screenshot of nedit at http://24.5.29.77/nedit.jpeg nedit website is http://www.nedit.org/ It doesn't have a publish directly to the web function, nor does it have a built in server- but I just use thttpd compiled with php support for that- and enable directory listings so I can browse my working directory and select the file i want to view in action. Publishing directly to the web is nice- and I may look into adding it to nedit (I'm planning to add some features- though I am NOT the maintainer) but i personally never liked all in one products. Maybe a button to interface with the scp already on the users system... On Thursday, January 18, 2001, at 04:10 PM, Chris Aitken wrote: > At 06:47 PM 18/01/2001, you wrote: > > >What I'd like an editor to do for me is help out with how the page looks. > >One I set up a page that looks half-way decent - even if I use stock > >templates or style sheets - I can always plop the code in later by hand and > >that's no biggie. It's just that initial setting up of tables and stuff that > >is kind of tedious and I want to get away from that so I can concentrate on > >the code. > > > Personally, I would love to find an editor which had colour coded code > ability, a nice windows cut/paste/undo/redo feature, much akin to say > Homesite, but the most important thing would be that it can simulate a > telnet connection (or any connection for that matter) to the web server im > working on and use it just like the current editors view/use/display the > local hard drive. When you save a file, it instantly saves it on the > server. Ive seen some editors which have a supposed publish option but they > are either very lame, or made by microsoft (nuff said). > > I like the ability to have a simple keystroke(s) to instantly update the > file so I can reload it direct off the webserver and test it out. Infact, I > didnt mind how nedit worked when I was running my FreeBSD box at home, but > it too couldnt allow me to work on remote files live. > > > > Chris > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=- Michael A. Peters Abriasoft Senior Developer (510) 623-9726x357 Fax: (510) 249-9125
Has anyone tried Bluefish for Linux? > -----Original Message----- > From: Michael A. Peters [mailto:[EMAIL PROTECTED]] > Sent: January 18, 2001 7:02 PM > To: Chris Aitken > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Ultimate Editor > > > look into nedit. > > It does very well on linux, and I hear there's a Windows port. > I have a screenshot of nedit at http://24.5.29.77/nedit.jpeg > > nedit website is http://www.nedit.org/ > > It doesn't have a publish directly to the web function, nor does > it have a built in server- but I just use thttpd compiled with > php support for that- and enable directory listings so I can > browse my working directory and select the file i want to view in action. > > Publishing directly to the web is nice- and I may look into > adding it to nedit (I'm planning to add some features- though I > am NOT the maintainer) but i personally never liked all in one > products. Maybe a button to interface with the scp already on the > users system... > > On Thursday, January 18, 2001, at 04:10 PM, Chris Aitken wrote: > > > At 06:47 PM 18/01/2001, you wrote: > > > > >What I'd like an editor to do for me is help out with how the > page looks. > > >One I set up a page that looks half-way decent - even if I use stock > > >templates or style sheets - I can always plop the code in > later by hand and > > >that's no biggie. It's just that initial setting up of tables > and stuff that > > >is kind of tedious and I want to get away from that so I can > concentrate on > > >the code. > > > > > > Personally, I would love to find an editor which had colour coded code > > ability, a nice windows cut/paste/undo/redo feature, much akin to say > > Homesite, but the most important thing would be that it can simulate a > > telnet connection (or any connection for that matter) to the > web server im > > working on and use it just like the current editors > view/use/display the > > local hard drive. When you save a file, it instantly saves it on the > > server. Ive seen some editors which have a supposed publish > option but they > > are either very lame, or made by microsoft (nuff said). > > > > I like the ability to have a simple keystroke(s) to instantly > update the > > file so I can reload it direct off the webserver and test it > out. Infact, I > > didnt mind how nedit worked when I was running my FreeBSD box > at home, but > > it too couldnt allow me to work on remote files live. > > > > > > > > Chris > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > > > > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Michael A. Peters > Abriasoft Senior Developer > > (510) 623-9726x357 > Fax: (510) 249-9125 > -- > PHP General Mailing List (http://www.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 Thu, 18 Jan 2001, Scott Gerhardt wrote: > Has anyone tried Bluefish for Linux? > Tried it, didn't like it. The best option is probably to use something like Samba (http://www.samba.org/) or NFS Maestro (http://www.hummingbird.com/products/nc/nfs/index.html) to share files cross-platform. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>
I just installed Bluefish a few days ago. I haven't had a lot of time to mess with it, but it seems like a Linux variety of homesite (which is great with me) I'll give it a week or two and see what I think. anyone else? Jerry Lake -----Original Message----- From: Scott Gerhardt [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 5:06 PM To: [EMAIL PROTECTED]; Chris Aitken Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Ultimate Editor Has anyone tried Bluefish for Linux? > -----Original Message----- > From: Michael A. Peters [mailto:[EMAIL PROTECTED]] > Sent: January 18, 2001 7:02 PM > To: Chris Aitken > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Ultimate Editor > > > look into nedit. > > It does very well on linux, and I hear there's a Windows port. > I have a screenshot of nedit at http://24.5.29.77/nedit.jpeg > > nedit website is http://www.nedit.org/ > > It doesn't have a publish directly to the web function, nor does > it have a built in server- but I just use thttpd compiled with > php support for that- and enable directory listings so I can > browse my working directory and select the file i want to view in action. > > Publishing directly to the web is nice- and I may look into > adding it to nedit (I'm planning to add some features- though I > am NOT the maintainer) but i personally never liked all in one > products. Maybe a button to interface with the scp already on the > users system... > > On Thursday, January 18, 2001, at 04:10 PM, Chris Aitken wrote: > > > At 06:47 PM 18/01/2001, you wrote: > > > > >What I'd like an editor to do for me is help out with how the > page looks. > > >One I set up a page that looks half-way decent - even if I use stock > > >templates or style sheets - I can always plop the code in > later by hand and > > >that's no biggie. It's just that initial setting up of tables > and stuff that > > >is kind of tedious and I want to get away from that so I can > concentrate on > > >the code. > > > > > > Personally, I would love to find an editor which had colour coded code > > ability, a nice windows cut/paste/undo/redo feature, much akin to say > > Homesite, but the most important thing would be that it can simulate a > > telnet connection (or any connection for that matter) to the > web server im > > working on and use it just like the current editors > view/use/display the > > local hard drive. When you save a file, it instantly saves it on the > > server. Ive seen some editors which have a supposed publish > option but they > > are either very lame, or made by microsoft (nuff said). > > > > I like the ability to have a simple keystroke(s) to instantly > update the > > file so I can reload it direct off the webserver and test it > out. Infact, I > > didnt mind how nedit worked when I was running my FreeBSD box > at home, but > > it too couldnt allow me to work on remote files live. > > > > > > > > Chris > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > > > > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Michael A. Peters > Abriasoft Senior Developer > > (510) 623-9726x357 > Fax: (510) 249-9125 > -- > PHP General Mailing List (http://www.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]
The latest version of Bluefish really has a lot of tools and features for PHP4. If it's been a while since you tried it, I would suggest taking another look at it. > -----Original Message----- > From: Ignacio Vazquez-Abrams [mailto:[EMAIL PROTECTED]] > Sent: January 18, 2001 7:12 PM > To: Scott Gerhardt > Cc: [EMAIL PROTECTED]; Chris Aitken; [EMAIL PROTECTED] > Subject: RE: [PHP] Ultimate Editor > > > On Thu, 18 Jan 2001, Scott Gerhardt wrote: > > > Has anyone tried Bluefish for Linux? > > > > Tried it, didn't like it. > > The best option is probably to use something like Samba > (http://www.samba.org/) or NFS Maestro > (http://www.hummingbird.com/products/nc/nfs/index.html) to share files > cross-platform. > > -- > Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> > >
Yes. We (abriasoft) include it with some of our products. It's got a lot of nice features, and runs very well. On Thursday, January 18, 2001, at 05:05 PM, Scott Gerhardt wrote: > Has anyone tried Bluefish for Linux? > > > > > -----Original Message----- > > From: Michael A. Peters [mailto:[EMAIL PROTECTED]] > > Sent: January 18, 2001 7:02 PM > > To: Chris Aitken > > Cc: [EMAIL PROTECTED] > > Subject: Re: [PHP] Ultimate Editor > > > > > > look into nedit. > > > > It does very well on linux, and I hear there's a Windows port. > > I have a screenshot of nedit at http://24.5.29.77/nedit.jpeg > > > > nedit website is http://www.nedit.org/ > > > > It doesn't have a publish directly to the web function, nor does > > it have a built in server- but I just use thttpd compiled with > > php support for that- and enable directory listings so I can > > browse my working directory and select the file i want to view in action. > > > > Publishing directly to the web is nice- and I may look into > > adding it to nedit (I'm planning to add some features- though I > > am NOT the maintainer) but i personally never liked all in one > > products. Maybe a button to interface with the scp already on the > > users system... > > > > On Thursday, January 18, 2001, at 04:10 PM, Chris Aitken wrote: > > > > > At 06:47 PM 18/01/2001, you wrote: > > > > > > >What I'd like an editor to do for me is help out with how the > > page looks. > > > >One I set up a page that looks half-way decent - even if I use stock > > > >templates or style sheets - I can always plop the code in > > later by hand and > > > >that's no biggie. It's just that initial setting up of tables > > and stuff that > > > >is kind of tedious and I want to get away from that so I can > > concentrate on > > > >the code. > > > > > > > > > Personally, I would love to find an editor which had colour coded code > > > ability, a nice windows cut/paste/undo/redo feature, much akin to say > > > Homesite, but the most important thing would be that it can simulate a > > > telnet connection (or any connection for that matter) to the > > web server im > > > working on and use it just like the current editors > > view/use/display the > > > local hard drive. When you save a file, it instantly saves it on the > > > server. Ive seen some editors which have a supposed publish > > option but they > > > are either very lame, or made by microsoft (nuff said). > > > > > > I like the ability to have a simple keystroke(s) to instantly > > update the > > > file so I can reload it direct off the webserver and test it > > out. Infact, I > > > didnt mind how nedit worked when I was running my FreeBSD box > > at home, but > > > it too couldnt allow me to work on remote files live. > > > > > > > > > > > > Chris > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > To contact the list administrators, e-mail: > > [EMAIL PROTECTED] > > > > > > > > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > Michael A. Peters > > Abriasoft Senior Developer > > > > (510) 623-9726x357 > > Fax: (510) 249-9125 > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=- Michael A. Peters Abriasoft Senior Developer (510) 623-9726x357 Fax: (510) 249-9125
On Thursday, January 18, 2001, at 05:18 PM, Scott Gerhardt wrote: > The latest version of Bluefish really has a lot of tools and features for > PHP4. Agreed. I still like nedit better, though :D note: nedit does NOT have the php features bluefish has as far as button clicking stuff or syntax lookup, if that's your thing. -=-=-=-=-=-=-=-=-=-=-=-=-=-=- Michael A. Peters Abriasoft Senior Developer (510) 623-9726x357 Fax: (510) 249-9125
yes, but i preferr vim myself. bluefish has an excellent range of php functions available though, it is fast as well and crashes not often > Has anyone tried Bluefish for Linux? > > > > > -----Original Message----- > > From: Michael A. Peters [mailto:[EMAIL PROTECTED]] > > Sent: January 18, 2001 7:02 PM > > To: Chris Aitken > > Cc: [EMAIL PROTECTED] > > Subject: Re: [PHP] Ultimate Editor > > > > > > look into nedit. > > > > It does very well on linux, and I hear there's a Windows port. > > I have a screenshot of nedit at http://24.5.29.77/nedit.jpeg > > > > nedit website is http://www.nedit.org/ > > > > It doesn't have a publish directly to the web function, nor does > > it have a built in server- but I just use thttpd compiled with > > php support for that- and enable directory listings so I can > > browse my working directory and select the file i want to view in action. > > > > Publishing directly to the web is nice- and I may look into > > adding it to nedit (I'm planning to add some features- though I > > am NOT the maintainer) but i personally never liked all in one > > products. Maybe a button to interface with the scp already on the > > users system... > > > > On Thursday, January 18, 2001, at 04:10 PM, Chris Aitken wrote: > > > > > At 06:47 PM 18/01/2001, you wrote: > > > > > > >What I'd like an editor to do for me is help out with how the > > page looks. > > > >One I set up a page that looks half-way decent - even if I use stock > > > >templates or style sheets - I can always plop the code in > > later by hand and > > > >that's no biggie. It's just that initial setting up of tables > > and stuff that > > > >is kind of tedious and I want to get away from that so I can > > concentrate on > > > >the code. > > > > > > > > > Personally, I would love to find an editor which had colour coded code > > > ability, a nice windows cut/paste/undo/redo feature, much akin to say > > > Homesite, but the most important thing would be that it can simulate a > > > telnet connection (or any connection for that matter) to the > > web server im > > > working on and use it just like the current editors > > view/use/display the > > > local hard drive. When you save a file, it instantly saves it on the > > > server. Ive seen some editors which have a supposed publish > > option but they > > > are either very lame, or made by microsoft (nuff said). > > > > > > I like the ability to have a simple keystroke(s) to instantly > > update the > > > file so I can reload it direct off the webserver and test it > > out. Infact, I > > > didnt mind how nedit worked when I was running my FreeBSD box > > at home, but > > > it too couldnt allow me to work on remote files live. > > > > > > > > > > > > Chris > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > To contact the list administrators, e-mail: > > [EMAIL PROTECTED] > > > > > > > > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=- > > Michael A. Peters > > Abriasoft Senior Developer > > > > (510) 623-9726x357 > > Fax: (510) 249-9125 > > -- > > PHP General Mailing List (http://www.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] >
It depends on your MAIL SERVER (and on your OS.) For Linux I think SendMail can forward mails to an external program For WinNT I know POSTOFFICE allows this. But PostOffice is commercially released not for free. In this case the mails are redirected to the program via STDIN Bye N. -----Messaggio originale----- Da: Jeremy Bowen <[EMAIL PROTECTED]> A: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Data: giovedì 18 gennaio 2001 20.32 Oggetto: [PHP] Can a PHP program recieve an e-mail and write it to a file??? >Hey, > >Here is what I need to do, I need to have a PHP script recieve an e-mail and >write it to a file after erasing whatever was in the file before. > >I suppose that it should have some sort of authentication built in to prevent >people from e-mailing PHP code that could be processed and do bad things. > >Is there any way to do this? Can a PHP script recieve and e-mail? > >Could the e-mail be written to a mail queue say [EMAIL PROTECTED] >and the script periodically check the mail queue for new e-mail print its >contents to a text file somewhere in the serverroot and then erase the mail >queue??? > >Does this sound possibile??? > >Thanks, > >Jeremy > >-- >PHP General Mailing List (http://www.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 have a txt file as input.This file has the coordinates for a gas network.With php I am creating an array with the above coordinates and then I create from the array the image from the network.When the txt file is >21Kb there is no image, else all works perfect{with a smaller txt file).I am using php4,apache(sometimes my system hangs with this server) or OMNI httpd(works fine). If anybody know sth PLEASE HELP ME I am newbie in php programming
Suppose I have: $method = "doIt"; inside a class. How do I construct the statment, using $method, to call: $this->doIt(); I tried every combination I can think of but I keep getting "Call to unsupported or undefined function" when doIt() is a proper method. I have no problem with standard functions. Thanks for any help. ===== - Blaine __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Any recommendations for a good, savvy host for doing some PHP/MySQL development? Not looking for a free service, obviously, but somebody with: knowledgeable tech support, good mysql/php 4/zend support, decent mail handling, and developers tools like: telnet/ssh, emacs, procmail, crontab access, etc. Where are you php developers doing your hosting? I have been scouring this list archives, but everyone is focussed on free or extremely cheap. I also know about the PHP hosts listing, but the problem with that is you never know if the positive comments are real or not, and only people experienced with a host can tell you if they are any good or not! via private mail is fine, if you want to share that good thing with one person instead of the list... c -- Chris Lott
I suggest www.csoft.net They've got great servers. They provide inexpensive PHP/MySQL web hosting. I think you get as many databases as you desire. They also have telnet, ssh, and probably emacs. They probably have everything else you listed too. You have the option of having an OpenBSD server. Good stuff. Tyler Longren -----Original Message----- From: Chris Lott [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 7:37 PM To: PHP General Subject: [PHP] Web hosting for PHP/MySQl development Any recommendations for a good, savvy host for doing some PHP/MySQL development? Not looking for a free service, obviously, but somebody with: knowledgeable tech support, good mysql/php 4/zend support, decent mail handling, and developers tools like: telnet/ssh, emacs, procmail, crontab access, etc. Where are you php developers doing your hosting? I have been scouring this list archives, but everyone is focussed on free or extremely cheap. I also know about the PHP hosts listing, but the problem with that is you never know if the positive comments are real or not, and only people experienced with a host can tell you if they are any good or not! via private mail is fine, if you want to share that good thing with one person instead of the list... c -- Chris Lott -- PHP General Mailing List (http://www.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 have just gotten my own dedicated server my my personal websites... it is www.insidecrew.net they are quite cool.. FreeBSD, a good link and root password to you, then you installk what you wish... Cheers, Maxim Maletsky -----Original Message----- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 10:45 AM To: Chris Lott; PHP General Subject: RE: [PHP] Web hosting for PHP/MySQl development I suggest www.csoft.net They've got great servers. They provide inexpensive PHP/MySQL web hosting. I think you get as many databases as you desire. They also have telnet, ssh, and probably emacs. They probably have everything else you listed too. You have the option of having an OpenBSD server. Good stuff. Tyler Longren -----Original Message----- From: Chris Lott [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 7:37 PM To: PHP General Subject: [PHP] Web hosting for PHP/MySQl development Any recommendations for a good, savvy host for doing some PHP/MySQL development? Not looking for a free service, obviously, but somebody with: knowledgeable tech support, good mysql/php 4/zend support, decent mail handling, and developers tools like: telnet/ssh, emacs, procmail, crontab access, etc. Where are you php developers doing your hosting? I have been scouring this list archives, but everyone is focussed on free or extremely cheap. I also know about the PHP hosts listing, but the problem with that is you never know if the positive comments are real or not, and only people experienced with a host can tell you if they are any good or not! via private mail is fine, if you want to share that good thing with one person instead of the list... c -- Chris Lott -- PHP General Mailing List (http://www.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]
>Any recommendations for a good, savvy host for doing some PHP/MySQL >development? Not looking for a free service, obviously, but > knowledgeable tech support We try. > good mysql/php 4/zend support No Zend yet. > decent mail handling APOP for secure POP password. Sendmail. Not sure what else you mean. > and developers tools like: telnet/ssh Yes. > emacs Emacs, yikes! I hate to imagine 100 users all loading emacs at the same time. This might be negotiable per account, upon request. How about vim in the meantime? > procmail Yes. > crontab access Yes, and I wonder how many others offer that? Not many, I expect. If you traceroute to vha.sevenkings.net vs. the competition, I think we compare favorably. We have good connectivity and ample bandwidth near a major NAP in Chicago. We're not on the backwaters like many competitors are. We're not fully open yet, but we're ready for some early testers. Email me if you want to be one and I can let you have a test account to try out at no charge (for a while, not forever). We do ask that testers bring less than 2GB traffic per month with them. :-) Egan
Thanks Richard: I finally got it. I'm *really* rusty 'cos I went completely code blind and struggled for a day with a silly syntax error! This works just fine: <? if ((!ereg("^[0-9]+[.]?[0-9]*$", $val1))||(!ereg("^[0-9]+[.]?[0-9]*$", $val2))|| ($calc =="")) { header("Location: http://localhost/calculate_form.html"); exit; } if ($calc == "add") { $result = $val1 + $val2; } else if ($calc == "subtract") { $result = $val1 - $val2; } else if ($calc == "multiply") { $result = $val1 * $val2; } else if ($calc == "divide") { $result = $val1 / $val2; } ?> <HTML> <HEAD> <TITLE>Calculation Result</TITLE> </HEAD> <BODY> <P>The result of the calculation is: <? echo "$result"; ?></p> </BODY> </HTML> And, for anyone else, it's a simple (but not for me, as it turned out!) ellaboration on the code in Julie Meloni's PHP fast&easy book to allow for error checking if a non-numerical value is entered. -- ****************************************************************************** Marx: "Why do Anarchists only drink herbal tea?" Proudhon: "Because all proper tea is theft." ******************************************************************************
Hi, When I tried connecting to Postgres through a shell script that I wrote, I get the following error: "Fatal error: Call to undefined function: pg_connect()" After searching the web for a solution, I realized that I have to compile PHP into its CGI version. Currently, PHP is installed as an Apache module on my machine. So, I tried to compile PHP by doing the following in the /usr/local/php-4.0RC1 directory where the source files for PHP4.0RC1 are located: ./configure -with-pgsql make But then I get the following error below after typing "make": =============================================================================== <snipped> . . . CONFIG_FILES= CONFIG_HEADERS= ./config.status creating internal_functions.c internal_functions.c is unchanged +--------------------------------------------------------------------+ | Warning: | | You will be compiling the CGI version of PHP without any | | redirection checking. By putting this cgi binary somewhere in | | your web space, users may be able to circumvent existing .htaccess | | security by loading files directly through the parser. See | | http://www.php.net/manual/config-security.php3 for more details. | +--------------------------------------------------------------------+ | License: | | This software is subject to the PHP License, available in this | | distribution in the file LICENSE. By continuing this installation | | process, you are bound by the terms of this license agreement. | | If you do not agree with the terms of this license, you must abort | | the installation process at this point. | +--------------------------------------------------------------------+ /bin/sh ./libtool --silent --mode=link gcc -g -O2 -Wall -o php -export-dynamic stub.lo libphp4.la /usr/lib/crt1.o: In function `_start': /usr/lib/crt1.o(.text+0x18): undefined reference to `main' .libs/libphp4.so: undefined reference to `ap_chdir_file' .libs/libphp4.so: undefined reference to `ap_user_id' .libs/libphp4.so: undefined reference to `ap_pclosef' .libs/libphp4.so: undefined reference to `ap_table_get' .libs/libphp4.so: undefined reference to `ap_update_mtime' .libs/libphp4.so: undefined reference to `ap_kill_timeout' .libs/libphp4.so: undefined reference to `ap_uudecode' .libs/libphp4.so: undefined reference to `ap_setup_client_block' .libs/libphp4.so: undefined reference to `ap_getword' .libs/libphp4.so: undefined reference to `ap_add_cgi_vars' .libs/libphp4.so: undefined reference to `ap_getword_nulls_nc' .libs/libphp4.so: undefined reference to `ap_server_root' .libs/libphp4.so: undefined reference to `ap_destroy_sub_req' .libs/libphp4.so: undefined reference to `ap_group_id' .libs/libphp4.so: undefined reference to `ap_user_name' .libs/libphp4.so: undefined reference to `ap_pstrdup' .libs/libphp4.so: undefined reference to `ap_log_error' .libs/libphp4.so: undefined reference to `ap_table_add' .libs/libphp4.so: undefined reference to `ap_sub_req_lookup_uri' .libs/libphp4.so: undefined reference to `ap_run_sub_req' .libs/libphp4.so: undefined reference to `ap_register_cleanup' .libs/libphp4.so: undefined reference to `ap_signal' .libs/libphp4.so: undefined reference to `ap_send_http_header' .libs/libphp4.so: undefined reference to `ap_log_reason' .libs/libphp4.so: undefined reference to `ap_block_alarms' .libs/libphp4.so: undefined reference to `ap_set_etag' .libs/libphp4.so: undefined reference to `ap_rwrite' .libs/libphp4.so: undefined reference to `ap_popenf' .libs/libphp4.so: undefined reference to `ap_table_set' .libs/libphp4.so: undefined reference to `ap_get_client_block' .libs/libphp4.so: undefined reference to `ap_add_version_component' .libs/libphp4.so: undefined reference to `ap_hard_timeout' .libs/libphp4.so: undefined reference to `ap_rflush' .libs/libphp4.so: undefined reference to `top_module' .libs/libphp4.so: undefined reference to `ap_set_last_modified' .libs/libphp4.so: undefined reference to `ap_reset_timeout' .libs/libphp4.so: undefined reference to `ap_max_requests_per_child' .libs/libphp4.so: undefined reference to `ap_unblock_alarms' .libs/libphp4.so: undefined reference to `ap_add_common_vars' collect2: ld returned 1 exit status make[1]: *** [php] Error 1 make[1]: Leaving directory `/usr/local/php-4.0RC1' make: *** [all-recursive] Error 1 ================================================================================ Any help would be greatly appreciated! Justin
I have some file upload code but it is not woking on debian linux, could some one give me a hand here is the part of the code that is broken the path is below $the_path is set some where else $path = "/var/www/cms/gentext/$section/$doctype/"; if (!@copy($the_file, $the_path."\".$the_file_name)) { // print("<b>Something barfed, check u r path $the_path$the_file_name"); } }
I'm working with php3 and IIS, i had set cookie with: name, $session->cookie, $session->timeid+3600, but these cookie work right only on localhost and not on the others computer of the LAN, the options setting of internet: enable Cookie, can anybody tell me why? Thank You!
I know I can get the number of days in the current month with date("t"), but how would I go about getting the number of days in a different month? I have a form that allows users to insert a date. If the value they put in doesn't exist (February 31, 2001, for example), I want to override it. I'm already using checkdate to determine if a date is bad, but I'm a bit stumped on using date("t") to set a valid maximum for the month the user submits. (I've set up the form so that users will always submit a valid month, but the day is my one loose end.) Here's my code, if you'd like to make suggestions: $ver_date = checkdate($date_month, $date_day, $date_year); if ($ver_date) { $safedate = $date_year."-".$date_month."-".$date_day; } else { //reset their date_day somehow } Thanks for any suggestions, Maurice -- Maurice Rickard http://mauricerickard.com/
You might try this: Arguments for mktime for my reference and for yours are ... int mktime (int hour, int minute, int second, int month, int day, int year [, int is_dst]) Then put it together with date() like this... date("t", mktime(1, 1, 1, $mm, 1, $yyyy)); This is untested, but should work. --Toby ----- Original Message ----- From: "Maurice Rickard" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 10:34 PM Subject: [PHP] date("t") > I know I can get the number of days in the current month with > date("t"), but how would I go about getting the number of days in a > different month? > > I have a form that allows users to insert a date. If the value they > put in doesn't exist (February 31, 2001, for example), I want to > override it. I'm already using checkdate to determine if a date is > bad, but I'm a bit stumped on using date("t") to set a valid maximum > for the month the user submits. (I've set up the form so that users > will always submit a valid month, but the day is my one loose end.) > > Here's my code, if you'd like to make suggestions: > > $ver_date = checkdate($date_month, $date_day, $date_year); > > if ($ver_date) { > > $safedate = $date_year."-".$date_month."-".$date_day; > > } else { > > file://reset their date_day somehow > > } > > > Thanks for any suggestions, > Maurice > > -- > Maurice Rickard > http://mauricerickard.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] > >
It does indeed work. Thanks, Toby! -Maurice At 10:47 PM -0500 1/18/01, Toby Butzon wrote: >You might try this: > >Arguments for mktime for my reference and for yours are ... > >int mktime (int hour, int minute, int second, int month, int day, int year >[, int is_dst]) > >Then put it together with date() like this... > >date("t", mktime(1, 1, 1, $mm, 1, $yyyy)); > >This is untested, but should work. > >--Toby > -- Maurice Rickard http://mauricerickard.com/
i downloaded the binaries but when I compiled it said I was missing string.obj ----- Original Message ----- From: "Phil Driscoll" <[EMAIL PROTECTED]> To: "Chris" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 4:44 AM Subject: Re: [PHP] MySQL + PWS Problems > >Whenever I try to connect with ANY Mysql code on my cpu, I get an error > saying it can't connect. > >I installed usingthe 4.04 win32 installer(heresey I know) which has mysql > built in. Do I have to edit > >anything to all me to try the scripts on my personal cpu? > > Chris > > Reading between the lines, I suspect you haven't installed mysql. The php > binaries have support for mysql built in (ie the ability to talk to mysql) > but not the database itself. > > You can get mysql from www.mysql.com > > Cheers > -- > Phil Driscoll > Dial Solutions > +44 (0)113 294 5112 > http://www.dialsolutions.com > http://www.dtonline.org > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
i downloaded the binaries but when I compiled it said I was missing string.obj ----- Original Message ----- From: "Phil Driscoll" <[EMAIL PROTECTED]> To: "Chris" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 4:44 AM Subject: Re: [PHP] MySQL + PWS Problems > >Whenever I try to connect with ANY Mysql code on my cpu, I get an error > saying it can't connect. > >I installed usingthe 4.04 win32 installer(heresey I know) which has mysql > built in. Do I have to edit > >anything to all me to try the scripts on my personal cpu? > > Chris > > Reading between the lines, I suspect you haven't installed mysql. The php > binaries have support for mysql built in (ie the ability to talk to mysql) > but not the database itself. > > You can get mysql from www.mysql.com > > Cheers > -- > Phil Driscoll > Dial Solutions > +44 (0)113 294 5112 > http://www.dialsolutions.com > http://www.dtonline.org > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] >
What were you doing compiling binaries? Are you referring to mysql or php when you say you tried to compile? What OS? --Toby ----- Original Message ----- From: "Chris" <[EMAIL PROTECTED]> To: "Phil Driscoll" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 10:46 PM Subject: Re: [PHP] MySQL + PWS Problems > i downloaded the binaries but when I compiled it said I was missing > string.obj > ----- Original Message ----- > From: "Phil Driscoll" <[EMAIL PROTECTED]> > To: "Chris" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]> > Sent: Wednesday, January 17, 2001 4:44 AM > Subject: Re: [PHP] MySQL + PWS Problems > > > > >Whenever I try to connect with ANY Mysql code on my cpu, I get an error > > saying it can't connect. > > >I installed usingthe 4.04 win32 installer(heresey I know) which has mysql > > built in. Do I have to edit > > >anything to all me to try the scripts on my personal cpu? > > > > Chris > > > > Reading between the lines, I suspect you haven't installed mysql. The php > > binaries have support for mysql built in (ie the ability to talk to mysql) > > but not the database itself. > > > > You can get mysql from www.mysql.com > > > > Cheers > > -- > > Phil Driscoll > > Dial Solutions > > +44 (0)113 294 5112 > > http://www.dialsolutions.com > > http://www.dtonline.org > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > -- > PHP General Mailing List (http://www.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, Question 1: A long time ago, I started my first big project using php3 and MySQL that would return on a query a listing of info from the database that was displayed in the browser with nested tables. If a user really wanted to test the limits of the database, he/she could get back over 3000 lines. Being that html tables were being used to display the info, a large number of tables were being created, and would crash netscape. I pretty much shelved this project for this reason. I'm now working on a similar project that won't return so many lines, but I would like to be able to use something other than html tables to display the info in a neat manner. Is there any php related things I could use to format a list in a browser other than html tags? could someone point me in the right direction? Question 2: Is there a way for php to detect the cpu speed of a users computer? Thank you