RE: [PHP] Something cool I found in Wired,
Sounds a lot like Netmeeting -Original Message- From: Dallas Kropka [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 12:41 AM To: PHP LIST Subject: [PHP] Something cool I found in Wired, Ok, I know that this is PHP, but I thought that allot of the freelancers out there could find it as appealing as I do. In the current issue of Wired... page 163, there is a new product featured called Groove found at www.groove.net and while only for windows at the moment it allows people to conference with their customers, partners, and well, anyone via voice, text, and SKETCH "chat" systems Best of all, its free. Its says its peer - peer , and identifies you with a handle like ICQ... so it seems secure. This is something that I'm going to try I think it will make communication with the partners easier, and maybe increase production some Just thought that some might get a kick out of this. Oh, ya, it also supports file sharing. Anyway, thought this could be helpful to some... please pardon the infringement. Dallas K. -- 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] cookies - not working with Nutscrape
Why would this work in IE but not NN (4.08)? If I remove "/" ".mydomain.com" it works with NN but not IE. Vice versa if I leave it in. Thanks, -Brian *** ? if (isset($ecb)) { if ($ecb = 5) { $val = 0; } else { $val = $ecb; } } else { $val = 0; } setcookie("ecb", $val+1,mktime(12, 00, 00, 12, 31, 2005), "/", ".mydomain.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] cookies - not working with Nutscrape
Why would this work in IE but not NN (4.08)? If I remove "/" ".mydomain.com" it works with NN but not IE. Vice versa if I leave it in. Thanks, -Brian *** ? if (isset($ecb)) { if ($ecb = 5) { $val = 1; } else { $val = $ecb; $val++; } } else { $val = 1; } $expires = mktime(12, 00, 00, 12, 31, 2005); setcookie("ecb",$val,$expires,"/",".eastcoastbicycles.com",0); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] cookies - not working with Nutscrape
The complete snippet is ? if (isset($ecb)) { if ($ecb = 5) { $val = 1; } else { $val = $ecb; $val++; } } else { $val = 1; } $expires = mktime(12, 00, 00, 12, 31, 2005); setcookie("ecb",$val,$expires,"/",".domain.com",0); ? I've gotten around it for the moment by using a browser detection routine and delivering different methods based on that but that's kind of a dirty hack. -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 7:53 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] cookies - not working with Nutscrape What's the rest of your SetCookie look like? 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 - Original Message - From: Brian V Bonini [EMAIL PROTECTED] To: Richard Lynch [EMAIL PROTECTED]; "Brian V Bonini" [EMAIL PROTECTED] Sent: Friday, January 19, 2001 4:15 PM Subject: RE: [PHP] cookies - not working with Nutscrape That broke em both... -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 4:04 PM To: "Brian V Bonini" Subject: Re: [PHP] cookies - not working with Nutscrape Why would this work in IE but not NN (4.08)? If I remove "/" ".mydomain.com" it works with NN but not IE. Vice versa if I leave it in. Keep just the "/", not the domain. They both suck. 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] cookies - not working with Nutscrape
Actually, it's excepting the time/date. It's the path/domain that is creating a problem. For some reason your original suggestion of leaving the domain out is working today. setcookie("ecb",$val,$expires,"/"); I could not get this to work for the life of me yesterday. Either I was overworked/tired or the Gremlins were out in force. ... ;-) Thank for your persistence. -Brian -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 20, 2001 4:20 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] cookies - not working with Nutscrape $expires = mktime(12, 00, 00, 12, 31, 2005); I think Netscape follows the spec and there's some sort of maximal reliable time limit of two years or somesuch -- and anything else is assumed to be badly-formatted time... Try using something a little more reasonable like a year. 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Newbie: array help....
I apparently misunderstood your implementation, your right, it does work perfectly Thank you! -Original Message- From: Ignacio Vazquez-Abrams [mailto:[EMAIL PROTECTED]] Sent: Monday, January 22, 2001 12:27 PM To: Brian V Bonini Cc: PHP Lists Subject: RE: [PHP] Newbie: array help On Mon, 22 Jan 2001, Brian V Bonini wrote: That's what I thought, which seemed to be the obvious however, when I tried that it returns an error. "Warning: Variable passed to each() is not an array or object in pagetop.inc on line 105" PHP Version 4.0B2 BSDI BSD/OS 4.0.1 Zend Engine v0.90, I reimplemented your snippet from first principles, and here's what I came up with (reformatted and XHTMLized): table ?php $bikes = array( "Road" = array( "Trek 5200" = "URL", "Schwinn Fastback Pro" = "URL", "Va Moots" = "url" ), "Mountain" = array( "Trek Fuel 90" = "url", "Schwinn Homegrown" = "url" ), "BMX" = array( "Haro Mira 540" = "url", "Schwinn Powermatic Pro" = "url" ), "Kids" = array( "Schwinn Tiger" = "put URL here", "Schwinn Bumblebee" = "URL" ) ); while (list($val, $key)=each($bikes["Road"])) { ? tdimg src="images/spacer.gif" width="25" height="1" alt="" border="0" //td tda href="?=$key?" class="menu"?=$val?/a/td ?php }; ? /table Works perfectly. -- 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]
RE: [PHP] Test for Cookies
By trying to set a cookie and read it back. -Original Message- From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 11:50 AM To: PHP Mailing List Subject: [PHP] Test for Cookies Hi, I need to test for cookies. What is the simplest way to do this? Thanks - Karl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Posting to list
Everytime I send a post to [EMAIL PROTECTED] The message goes through but I also recieve back the following This is the Postfix program at host kgb.ijs.si. I'm sorry to have to inform you that the message returned below could not be delivered to one or more destinations. For further assistance, please contact [EMAIL PROTECTED] If you do so, please include this problem report. You can delete your own text from the message returned below. The Postfix program [EMAIL PROTECTED]: mail forwarding loop for [EMAIL PROTECTED] is this happening to anyone else? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Test for Cookies
You'll need to at least reload the page so the cookie can be sent back to the server after it's set. Try this: it's taken directly from the annotations on the setcookie function page of the php manual. ?php $status = 0; if (isset($myTstCky) ($myTstCky == "ChocChip")) $status = 1; if (!isset($CCHK)) { setcookie("myTstCky", "ChocChip"); header("Location: $PHP_SELF?CCHK=1"); exit; } ? html headtitleCookie Check/title/head body bgcolor="#FF" text="#00" Cookie Check Status: ?php printf ('font color="#%s"%s/font ;', $status ? "00FF00" : "FF", $status ? "PASSED!" : "FAILED!"); ? /body /html -Original Message- From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 24, 2001 1:42 PM To: [EMAIL PROTECTED]; PHP Mailing List Subject: Re: [PHP] Test for Cookies By trying to set a cookie and read it back. Okayhere is the scenario: User originates from STATIC Html page, Links to my PHP Cookie Test Page I set a cookie in my PHP Cookie Test Page Can I then check (safely) for cookies right away in my PHP Cookie Test Page without involving a 3rd page? Karl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] html table
$color = "tan"; FOR ($i=0 ; $i $numrows ; $i++) { if ( ($i % 2) == 0 ) { ECHO ("\nTR"); } else { ECHO ("\nTR BGCOLOR=$color"); } } -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 4:19 PM To: Mike Cc: [EMAIL PROTECTED] Subject: Re: [PHP] html table How do I get every other column to be a different color (or font ect.)when I'm populating a table from a db(different field counts all the time) If $i is a counter then $i%2 will alternate between 0 and 1 $i%3 would cycles through 0,1 and 2 -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] -- 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] test
test -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Where is my contrab file located?
You could just create a text file with cron commands and then load it into cron using, %crontab cronfile -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 27, 2001 12:03 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Where is my contrab file located? Where is my crontrab file located? I dunno... You're really not supposed to just edit it like a normal file, cuz then crontab can't run it while you are editing it, I guess. Anyway, the man pages for sure say "Don't do that.", so don't. You're supposed to use: crontab -e to edit it. That will throw you into the editor defined in the variable EDITOR, I think. If you don't like the editor you get, you can change that EDITOR variable to be "vi" or "emacs" or "pico" or "joe" or whatever you normally use to edit text files. Now for a newbie, changing a variable is an exercise in frustation in its own right... No two shells (the program that, like, when you type "ls" it does what it should do) are the same for something as mind-numbingly simple as setting a darn variable. Easiest way to fake your way through not knowing this stuff is this: #1. Cd to your home directory cd #2. Show *all* the files in your home dir: ls -als #3. Edit the file that has a name kinda like .bashrc or .bash_profile... vi .bash_profile *** OR pico .bash_profile #4. Look for something that seems to be setting a variable, like one of these: setenv PATH=blahblahblah PATH=blahbalbhabl export PATH #5. Do kinda the same thing as that, only with DISPLAY and vi, or pico, or whatever. #6. If you don't see anything like setting a variable, quit your editor and try another file in your home dir. Confession: It took me weeks to do my first crontab, due to these sorts of things: I'd just about wrap my poor little brain around the crontab format, and then, BAM!, I'm in some editor I can't even figure out how to use, so off I'd get frustrated and quit. It was never a *need* to do the crontab thing, so I was trying to get it done in a 15-minute task... Anyway, I think I must have stumbled through all of this 3 or 4 times before I finally could manage a block of time big enough to work it all out. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] can .inc run php script?
Well if your using .inc then your probably including this into a php file via include "config.inc"; in which case it will become part of a php file so yes it will be parsed. If your trying to run it as a standalone then that will depend on your web server config and which files you've told it to parse as php files. -Brian * -Original Message- From: John LYC [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 28, 2001 6:31 AM To: PHP List Subject: [PHP] can .inc run php script? hi all, can .inc file run scripts... example... //config.inc function watever() { //do something $var = something; return $var; } 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]
RE: [PHP] Problem!
$today = getdate(); $month = $today[month]; $mday = $today[mday]; $year = $today[year]; print "$month $mday, $year"; -Brian ** -Original Message- From: Fredrik Arild Takle [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 28, 2001 2:32 PM To: [EMAIL PROTECTED] Subject: [PHP] Problem! 1. $date = "20010101"; How could I output 01 01 2001 (or make it 3 variables, like day, month, year)? 2. What is the best way to encrypt (using PHP and MySQL)? Could you please answer me directly by mailadr. ([EMAIL PROTECTED]), because I'm currently not a member of this list at home! - Fredrik A. Takle [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Problems with majodomo
I missed the beginning of this thread, I've got a subscribe routine set up on a website for Majordomo, what are you trying to do? Bring me up to speed -Brian -Original Message- From: Alan Todd [mailto:[EMAIL PROTECTED]] Sent: Monday, January 29, 2001 10:33 AM To: Phpg Subject: [PHP] Problems with majodomo I was wondering if anyone has set it up from a website. the problem i am having is it does send the comfirmation back i have mail("$majordomo", "", "$action $list $email","From: $email"); where $action is subscribe or unsubscribe and $list is oe they pick Thanks ALan /'^'\ ( o o ) ---oOOO--(_)--OOOo Alan Todd Infoave.net Web Development ICQ : 159944 E-Mail : [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Pricing for PHP programming???
Isn't it illegal in the US to discuss rates in this manner? It's always been my understanding that The U.S. law specifically makes discussion of pricing between competitors (all or some) a federal offense. Am I taking this too literally? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Pricing for PHP programming???
Ah, I see. Thanks for clarifying. I only asked because the HTML lists @ the HTML Writers Guild strictly prohibit this sort of discussion, their reason always having been that they are concerned about 'price fixing' laws. It always seemed a little overkill to me. Thanks, -Brian * -Original Message- From: Joe Stump [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 01, 2001 9:52 AM To: Brian V Bonini Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Pricing for PHP programming??? You are taking this WAY to seriously. What you are talking about is the Sherman Act that developed our current antitrust laws. Specifically you are talking about "price fixing", which is illegal in the US. If EVERY PHP coder in the US got together at a trade show and said "We will all demand $150.00 an hour no matter what" then THAT would be illegal. Me mentioning to you how much I charge is totally legal. This mainly applies to big businesses and large manufacturers - OPEC for example would be TOTALLY illegal in the US. --Joe On Thu, Feb 01, 2001 at 08:49:00AM -0500, Brian V Bonini wrote: Isn't it illegal in the US to discuss rates in this manner? It's always been my understanding that The U.S. law specifically makes discussion of pricing between competitors (all or some) a federal offense. Am I taking this too literally? -- 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] -- -- - Joe Stump, PHP Hacker, [EMAIL PROTECTED] -o) http://www.miester.org http://www.care2.com /\\ "It's not enough to succeed. Everyone else must fail" -- Larry Ellison _\_V -- - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Is it odd or even???
Use the modulus operator -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Monday, March 05, 2001 3:18 PM To: PHP User Group Subject: [PHP] Is it odd or even??? Hello, Is there an easy way to check and see if a number is odd or even? 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] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Text and formating
nl2br -- Inserts HTML line breaks before all newlines in a string http://php.net/manual/en/function.nl2br.php -Brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 07, 2001 12:09 PM To: [EMAIL PROTECTED] Subject: [PHP] Text and formating I have news webpage of sorts that pulls entries out of a mysql database. There is a form to submit news and it is automatically added to the new page upon submition. What I am wandering is when a individual submits news, the end result on my news page does not hold the same format it was put in. For example. IN the "add news form" they enter the info in like this: -- This is a test. How are you today. Laddi da, Laddi da -- The output on the news page comes as: This is a test. How are you today.Laddi da, Laddi da Is there a way between php and mysql to ensure that format of the date is same going in and out? Thank you in advance:) Sono -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] include virtual, file or exec cgi?
Is there a reason you not using PHP's include method to do this? Rename your shtml file to have a PHP extension, replace the SSI instructions with PHP functions. You should be good to go. ? include "something.php"; ? -Brian *** -Original Message- From: Christian Dechery [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 21, 2001 11:20 AM To: [EMAIL PROTECTED] Subject: [PHP] include virtual, file or exec cgi? Can't I !--#include file="something.php"-- or !--#include virtual="something.php"-- or !--#exec cgi="something.php"-- ??? I'm trying to, the script works fine if I load it normally, but as an include in a shtml (server parsed) file it always returns "error ocurred bla bla bla". What am I doing wrong? . [ Christian Dechery ] . Webdeveloper @ T Na Mesa! . Listmaster @ Gaita-L . http://www.tanamesa.com.br -- 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] FW: Returned mail: User unknown
Why do I always get his when posting to the list? The original message was sent to [EMAIL PROTECTED] -Original Message- From: Mail Delivery Subsystem [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 21, 2001 3:38 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Returned mail: User unknown The original message was received at Wed, 21 Mar 2001 12:38:25 -0800 from adnin [202.190.176.4] - The following addresses had delivery problems - cose@naim (unrecoverable error) (expanded from: [EMAIL PROTECTED]) - Transcript of session follows - ... while talking to naim.iiu.edu.my: RCPT To:[EMAIL PROTECTED] 550 5.0.0 [EMAIL PROTECTED]... Quota exceeded 550 [EMAIL PROTECTED] User unknown - Message header follows - Received: from iiu.edu.my (adnin [202.190.176.4]) by inet.iiu.edu.my (950413.SGI.8.6.12/950213.SGI.AUTOCF) via SMTP id MAA11611 for [EMAIL PROTECTED]; Wed, 21 Mar 2001 12:38:25 -0800 Return-Path: [EMAIL PROTECTED] Received: from toye.php.net (va.php.net [198.186.203.51]) by iiu.edu.my (950413.SGI.8.6.12/950213.SGI.AUTOCF) via SMTP id XAA10006 for [EMAIL PROTECTED]; Wed, 21 Mar 2001 23:38:24 -0800 Received: (qmail 32276 invoked by uid 1013); 21 Mar 2001 16:33:56 - Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk list-help: mailto:[EMAIL PROTECTED] list-unsubscribe: mailto:[EMAIL PROTECTED] list-post: mailto:[EMAIL PROTECTED] Delivered-To: mailing list [EMAIL PROTECTED] Received: (qmail 32270 invoked from network); 21 Mar 2001 16:33:56 - Errors-To: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] From: "Brian V Bonini" [EMAIL PROTECTED] To: [EMAIL PROTECTED], [EMAIL PROTECTED] Date: Wed, 21 Mar 2001 11:50:24 -0500 Message-ID: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal In-Reply-To: [EMAIL PROTECTED] Subject: RE: [PHP] include virtual, file or exec cgi? - Message body suppressed - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] need help with cookies
I believe you need to set the cookie before any other header information is passed. -brian -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 22, 2001 2:23 PM To: [EMAIL PROTECTED] Subject: [PHP] need help with cookies Hi, I am trying to set a cookie and it doesn't work. I am running IE 5. I have IE set to prompt before setting cookies but I never get a prompt. Here is my code - basically, if someone logs in, it is to set a cookie. What am I missing? Kris if($success==1){ $loginid="$id"; NewSessionID($id); GetProfile($id); $page_title="LTT: $loginid Index"; include("html-head.php3"); if($id==""){ include("ln/ln_ln_dna.php3"); exit; } include("ms/rg1/index.php3"); exit; } function NewSessionID($id){ $sid=""; $length=16; srand((double)microtime()*100); $SessPool = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; $SessPool .= "abcdefghijklmnopqrstuvwxyz"; $SessPool .= "0123456789"; for($tempslime=0; $tempslime $length; $tempslime++) { $sid .= substr($SessPool, (rand()%(strlen($SessPool))), 1); } setcookie("LoginAuth", $sid,time()+3600); } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] web mail clients?
This has been done, no need to re-invent the wheel unless of course you wanted to. -Original Message- From: Philip Jeffs [mailto:[EMAIL PROTECTED]] Sent: Monday, December 31, 2001 8:30 AM To: [EMAIL PROTECTED] Subject: [PHP] web mail clients? Hi, I'm looking into setting up a web based mail client for personal use. I've got most of it figured out (sending, recieving, forwarding etc..). I need to be able to use folders in the mail client to organise the messages. Whats the best way of moving messages around? Do i need to store them as files / in a database or is there an easier way to do it? Thanks. - Philip Jeffs The Tickle Group The Gate House Summerseat Bury Lancashire BL9 5PE United Kingdom W: http://www.tickle.co.uk T: 01706 823456 F: 01706 829500 E: [EMAIL PROTECTED] (daytime) [EMAIL PROTECTED] (evening) - -- 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] Need a little help
I'm trying to redirect based on referring host and request. I have an .htaccess set up like this: RedirectMatch (.*)\.gif$ http://www.domain.com/_borders/test.php to redirect all requests for .gif's to a php script which then determines the referring host. $url=parse_url($HTTP_REFERER); if ($url[host] == domain.com) { //this is where I get stuck do something } else {do some thing} how to I return the correct image. I.e. if the referring page has an img src=mydomain.com/image link and I redirect requests for that image to the php script to determine the host how can I now return a different image for display into the page. Make sense? Is it possible? -Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Need a little help
hmmm, I think I see where your going but that either just puts out a lot of garbage on the screen: ¤X!lø`7Y± Á\t1h^(uT3è¡ J2¶O\ÔG)ÂGì Ìtéä(ò¡¹!n3pPßÔÓÄVõ`\Z·Åô2Ô;Ur©e8òÞhS0Ít%;-X âÑ9ºcI%(CqxpR ¤Ô4ûȶÔ%03. Ì`ÃåP r é ÀÃ^IÀ¦Zª:;}äò,XOWýH0PE8´ä,Sx'ÀµT÷Src`ÀÏÀrBÀ7í¨òT ÙÑç|+iûJFAERKfÙ4 J³Ð² etc. or a broken image symbol. -B -Original Message- From: Girish Nath [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 11:21 AM To: Brian V Bonini Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Need a little help Hi This should send different images to the referer based on what parse_url() returns: ?php $url=parse_url($HTTP_REFERER); if ($url[host] == domain.com) { $requestImage = images/domain_A.gif; } else { $requestImage = images/domain_B.gif; } header (Content-Type: image/gif); header (Content-Length: . filesize($requestImage)); header (Content-Disposition: filename= . $requestImage); readfile($requestImage); ? You may need to modify it a bit perhaps with a switch statement for more flexibilty. Let me know how you get on. Regards Girish -- www.girishnath.co.uk - Original Message - From: Brian V Bonini [EMAIL PROTECTED] To: PHP Lists [EMAIL PROTECTED] Sent: Monday, January 28, 2002 4:02 PM Subject: [PHP] Need a little help I'm trying to redirect based on referring host and request. I have an .htaccess set up like this: RedirectMatch (.*)\.gif$ http://www.domain.com/_borders/test.php to redirect all requests for .gif's to a php script which then determines the referring host. $url=parse_url($HTTP_REFERER); if ($url[host] == domain.com) { file://this is where I get stuck do something } else {do some thing} how to I return the correct image. I.e. if the referring page has an img src=mydomain.com/image link and I redirect requests for that image to the php script to determine the host how can I now return a different image for display into the page. Make sense? Is it possible? -Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Need a little help
What browser are you using? I just read in the annotated manual there may be issues wiht this using ie5.x. Do you have the script running on a public webserver where I can try it from here just to see if I get the same results? -Brian -Original Message- From: Girish Nath [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 7:55 PM To: Brian V Bonini Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Need a little help Hi Brian I've just setup the RedirectMatch in Apache and tried the PHP script (test.php) out and it worked fine. The only thing that caused broken image symbols to appear was if the image redirect script (test.php) created any output before the header() functions. Check for whitespace or any functions that might be outputting error messages within test.php Regards Girish -- www.girishnath.co.uk - Original Message - From: Brian V Bonini [EMAIL PROTECTED] To: Girish Nath [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, January 28, 2002 8:17 PM Subject: RE: [PHP] Need a little help hmmm, I think I see where your going but that either just puts out a lot of garbage on the screen: ¤X!lø`7-Y± Á\t1h^?(uT3è¡? J2¶'O\Ô'G)ÂGì^ Ì-.téZ-ä(òS¡¹!n3pPßsfÔÓÄVoõ`\Z·Åô2'Ô?;Ur©e8òÞhS??0Ít^%;-,X âÑ9ºcI%,(CqxpR ¤Ô4ûȶÔ%03. Ì`?ÃåP? r ~éT ÀÃ^IÀ¦.Zª^:;}ä,ò,XOWýH0PE8´ä,Sx'À^µT÷Src`ÀÏÀrBÀ7í¨òT ÙÑç|+iûJFA?ERKfÙ4 J³Ð² etc. or a broken image symbol. -B -Original Message- From: Girish Nath [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 11:21 AM To: Brian V Bonini Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Need a little help Hi This should send different images to the referer based on what parse_url() returns: ?php $url=parse_url($HTTP_REFERER); if ($url[host] == domain.com) { $requestImage = images/domain_A.gif; } else { $requestImage = images/domain_B.gif; } header (Content-Type: image/gif); header (Content-Length: . filesize($requestImage)); header (Content-Disposition: filename= . $requestImage); readfile($requestImage); ? You may need to modify it a bit perhaps with a switch statement for more flexibilty. Let me know how you get on. Regards Girish -- www.girishnath.co.uk - Original Message - From: Brian V Bonini [EMAIL PROTECTED] To: PHP Lists [EMAIL PROTECTED] Sent: Monday, January 28, 2002 4:02 PM Subject: [PHP] Need a little help I'm trying to redirect based on referring host and request. I have an .htaccess set up like this: RedirectMatch (.*)\.gif$ http://www.domain.com/_borders/test.php to redirect all requests for .gif's to a php script which then determines the referring host. $url=parse_url($HTTP_REFERER); if ($url[host] == domain.com) { file://this is where I get stuck do something } else {do some thing} how to I return the correct image. I.e. if the referring page has an img src=mydomain.com/image link and I redirect requests for that image to the php script to determine the host how can I now return a different image for display into the page. Make sense? Is it possible? -Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Need a little help
Hmmm, I'm using exactly this: ? $url=parse_url($HTTP_REFERER); if ($url[host] == domain.com) { $requestImage = http://www.domain.com/images/image1.gif;; } else { $requestImage = http://www.domain2.com/image2.gif;; } header (Content-Type: image/gif); header (Content-Length: . filesize($requestImage)); header (Content-Disposition: inline; filename= . $requestImage); readfile($requestImage); ? And, it kind of works using Netscape although it hangs the progress bar for a really long time and prevents any gif animations from starting for a long time. When I try it with IE 5.5sp2, no go, just a broken image. -brian ** -Original Message- From: Girish Nath [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 7:55 PM To: Brian V Bonini Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Need a little help Hi Brian I've just setup the RedirectMatch in Apache and tried the PHP script (test.php) out and it worked fine. The only thing that caused broken image symbols to appear was if the image redirect script (test.php) created any output before the header() functions. Check for whitespace or any functions that might be outputting error messages within test.php Regards Girish -- www.girishnath.co.uk - Original Message - From: Brian V Bonini [EMAIL PROTECTED] To: Girish Nath [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, January 28, 2002 8:17 PM Subject: RE: [PHP] Need a little help hmmm, I think I see where your going but that either just puts out a lot of garbage on the screen: ¤X!lø`7-Y± Á\t1h^?(uT3è¡? J2¶'O\Ô'G)ÂGì^ Ì-.téZ-ä(òS¡¹!n3pPßsfÔÓÄVoõ`\Z·Åô2'Ô?;Ur©e8òÞhS??0Ít^%;-,X âÑ9ºcI%,(CqxpR ¤Ô4ûȶÔ%03. Ì`?ÃåP? r ~éT ÀÃ^IÀ¦.Zª^:;}ä,ò,XOWýH0PE8´ä,Sx'À^µT÷Src`ÀÏÀrBÀ7í¨òT ÙÑç|+iûJFA?ERKfÙ4 J³Ð² etc. or a broken image symbol. -B -Original Message- From: Girish Nath [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 11:21 AM To: Brian V Bonini Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Need a little help Hi This should send different images to the referer based on what parse_url() returns: ?php $url=parse_url($HTTP_REFERER); if ($url[host] == domain.com) { $requestImage = images/domain_A.gif; } else { $requestImage = images/domain_B.gif; } header (Content-Type: image/gif); header (Content-Length: . filesize($requestImage)); header (Content-Disposition: filename= . $requestImage); readfile($requestImage); ? You may need to modify it a bit perhaps with a switch statement for more flexibilty. Let me know how you get on. Regards Girish -- www.girishnath.co.uk - Original Message - From: Brian V Bonini [EMAIL PROTECTED] To: PHP Lists [EMAIL PROTECTED] Sent: Monday, January 28, 2002 4:02 PM Subject: [PHP] Need a little help I'm trying to redirect based on referring host and request. I have an .htaccess set up like this: RedirectMatch (.*)\.gif$ http://www.domain.com/_borders/test.php to redirect all requests for .gif's to a php script which then determines the referring host. $url=parse_url($HTTP_REFERER); if ($url[host] == domain.com) { file://this is where I get stuck do something } else {do some thing} how to I return the correct image. I.e. if the referring page has an img src=mydomain.com/image link and I redirect requests for that image to the php script to determine the host how can I now return a different image for display into the page. Make sense? Is it possible? -Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] fdisk?
Anyone know what fdisk stands for? I've heard both fixed disk and format disk, I always thought the later Sorry for for the OT post. -B -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] outgoing email server
http://us4.php.net/manual/en/function.mail.php -Original Message- From: Cristian Cerda [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 4:36 PM To: [EMAIL PROTECTED] Subject: [PHP] outgoing email server How do you set up the outgoing mail server using mail() function? i just can't find it in the manual... the idea is to send it through a mail server that's not the one with PHP. thanks, -- Cristián Cerda Pé [EMAIL PROTECTED] Impulsando Ltda. www.impulsando.com San Pio X 2460 of.604 Providencia - Santiago Tel: (56 2) 3358978 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] outgoing email server
I'm sorry I did not read through your entire post the first time... You set the SMTP server in php config file: SMTP = smtp.yourisp.com -Original Message- From: Cristian Cerda [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21, 2002 4:36 PM To: [EMAIL PROTECTED] Subject: [PHP] outgoing email server How do you set up the outgoing mail server using mail() function? i just can't find it in the manual... the idea is to send it through a mail server that's not the one with PHP. thanks, -- Cristián Cerda Pé [EMAIL PROTECTED] Impulsando Ltda. www.impulsando.com San Pio X 2460 of.604 Providencia - Santiago Tel: (56 2) 3358978 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Change Password
Anyone know of a script that will allow a user to change their system/email password form the web on a UNIX system. wither PHP or Perl based? -B -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] getdate
Any idea why this is off by 4 hours? Server time zone is set correctly, %date Wed Jul 10 14:26:18 EDT 2002 but the script below returns the time as being 4 hours later then that. ? $date = getdate(); $minutes = $date['minutes']; $hours = $date['hours']; $tz=EDT; $today = getdate(); $month = $today['month']; $mday = $today['mday']; $year = $today['year']; $ampm=AM; if ($hours 12) { $hours=$hours-12; $ampm=PM; } elseif ($hours == 12) { $ampm=PM; } if ( $minutes 10) { $minutes=0$minutes; } print $hours:$minutes $ampm $tz $month $mday, $year; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] getdate
Any idea why this is off by 4 hours? Server time zone is set correctly, %date Wed Jul 10 14:26:18 EDT 2002 but the script below returns the time as being 4 hours later then that. ? $date = getdate(); $minutes = $date['minutes']; $hours = $date['hours']; $tz=EDT; $today = getdate(); $month = $today['month']; $mday = $today['mday']; $year = $today['year']; $ampm=AM; if ($hours 12) { $hours=$hours-12; $ampm=PM; } elseif ($hours == 12) { $ampm=PM; } if ( $minutes 10) { $minutes=0$minutes; } print $hours:$minutes $ampm $tz $month $mday, $year; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] getdate
Hmmm, wierd!! The server is physically in PDT I am in EDT but I have the servers time zone set to EDT and as I said date verifies the correct time but yet the script returns a time that is 4 hours ahead. Wierd :( -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 6:24 PM To: Brian V Bonini Cc: [EMAIL PROTECTED] Subject: Re: [PHP] getdate Works fine here. Are you actually in EDT? On Wed, 10 Jul 2002, Brian V Bonini wrote: Any idea why this is off by 4 hours? Server time zone is set correctly, %date Wed Jul 10 14:26:18 EDT 2002 but the script below returns the time as being 4 hours later then that. ? $date = getdate(); $minutes = $date['minutes']; $hours = $date['hours']; $tz=EDT; $today = getdate(); $month = $today['month']; $mday = $today['mday']; $year = $today['year']; $ampm=AM; if ($hours 12) { $hours=$hours-12; $ampm=PM; } elseif ($hours == 12) { $ampm=PM; } if ( $minutes 10) { $minutes=0$minutes; } print $hours:$minutes $ampm $tz $month $mday, $year; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] getdate
Yes, that did the trick... Thanks!!! -Original Message- From: Miguel Cruz [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 11, 2002 6:20 PM To: Brian V Bonini Cc: [EMAIL PROTECTED] Subject: RE: [PHP] getdate The 'date' command-line utility reads the time zone from environment variable 'TZ'. It then adjusts the system time before displaying it. So your server is probably set to GMT, and your login environment specifies EDT, which is 4 hours earlier. PHP is defaulting to GMT. Look into putenv(). miguel On Wed, 10 Jul 2002, Brian V Bonini wrote: Hmmm, wierd!! The server is physically in PDT I am in EDT but I have the servers time zone set to EDT and as I said date verifies the correct time but yet the script returns a time that is 4 hours ahead. Wierd :( -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 10, 2002 6:24 PM To: Brian V Bonini Cc: [EMAIL PROTECTED] Subject: Re: [PHP] getdate Works fine here. Are you actually in EDT? On Wed, 10 Jul 2002, Brian V Bonini wrote: Any idea why this is off by 4 hours? Server time zone is set correctly, %date Wed Jul 10 14:26:18 EDT 2002 but the script below returns the time as being 4 hours later then that. ? $date = getdate(); $minutes = $date['minutes']; $hours = $date['hours']; $tz=EDT; $today = getdate(); $month = $today['month']; $mday = $today['mday']; $year = $today['year']; $ampm=AM; if ($hours 12) { $hours=$hours-12; $ampm=PM; } elseif ($hours == 12) { $ampm=PM; } if ( $minutes 10) { $minutes=0$minutes; } print $hours:$minutes $ampm $tz $month $mday, $year; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] is php.net down ?
I can get in. Try a mirror if you having trouble. -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 11:56 AM To: 'R'twick Niceorgaw'; [EMAIL PROTECTED] Subject: RE: [PHP] is php.net down ? [snip] any one else able to get into www.php.net ? [/snip] Nope... :^[ Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHPMyAdmin interface
Why don't you just install a copy on the server? If the only access you have is through the mysql monitor program then you must have shell access so installing your own copy of phpMyAdmin should not be an issue. But, if your going to access it remotely from a win machine I would use MySQL-Front instead. -B -- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 12:47 PM To: [EMAIL PROTECTED] Subject: [PHP] PHPMyAdmin interface I have just recently just signed up for virtual hosting with a MySQL database. They do not have a PHPMyAdmin interface too access the database. All they have given me is my username and password and the server too login too. They suggested that I install PHPMyAdmin on my workstation and access my database that way. Is there major security risks too my database doing this? Is this normal, where service providers request that I install PHPMyAdmin on my workstation or should I be looking for a new internet service provider who supplies the interface on the server? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Image upload into database
Just curious why you don't upload the image to a dir and just store the link in the db? -Original Message- From: Jesse Lawrence [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 7:44 PM To: [EMAIL PROTECTED] Subject: [PHP] Image upload into database I've setup an image upload feature on a site, which uploads images into a mysql database. The uploads are working absolutely as expected on my local computer (the server), but when someone else tried to upload, only 1/3 of the image was uploaded. Could it be a matter of size? I was originally using just a Blob, and have since switched to a Long Blob. Any thoughts or comments on this would be greatly appreciated. Thanks a bunch, Jesse __ Post your ad for free now! http://personals.yahoo.ca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] phpMyAdmin protection
.htaccess ;-) http://httpd.apache.org/docs-2.0/configuring.html#htaccess -B -Original Message- From: Mantas Kriauciunas [mailto:[EMAIL PROTECTED]] Sent: Monday, April 15, 2002 12:35 AM To: PHP General List Subject: [PHP] phpMyAdmin protection Hey PHP General List, Can anybody point me to tutorial or real good explanation site how to keep Http://localhost/phpmyadmin off for other users. I am using it to help me with MySQL database but other peaople can access it. I know there is something with .httacces but i dont know anything about that .httacces. SO please if anybody can point me to some explanation how to secure phpmyadmin or just explain bu them selves. Thank You. :--: Have A Nice Day! Mantas Kriauciunas A.k.A mNTKz Contacts: [EMAIL PROTECTED] Http://mntkz-hata.visiems.lt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Brain Fart- table formatting help
I'm having a total brain fart and can not seem to get the right logic for this... I'm trying to format the output of a db query with alternating row colors, the thing is the usual if ($i%2) {} will not work here because the alternating colors do not necessarily fall on odd or even rows. The one constant is that if ($row-show_title) is true the table row will have a background color then I need to make the rows after that alternate until if ($row-show_title) is true again. Roughly I have the whole thing laid out like this right now: echo table BORDER=\0\ CELLSPACING=\0\ CELLPADDING=\2\\n; while($row = mysql_fetch_object($result)) { if($row-show_company $row-show_title $row-show_month) { display month; } else if ($row-show_title) { display title; display first row with background color; } else { display rows with no background color; //right here needs to alternate tr background color } } echo /table; I think I've been looking at his too long and I just have jello brain right now but I just can't seem to straighten this out in my head... Thanks for the help... -B -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Brain Fart- table formatting help
Isn't that the same thing essentially? See, from the time ($row-show_title) is true until it is true again is not a fixed number so the only constant is that if ($row-show_title) is true then the tr background color will be on. Then I need to alternate the background color between on and off until ($row-show_title) is true again. Then start the process over. So I'm sure my ignorance has prevented me from fully understanding what you tried to show me below but isn't that the same as saying: if ($i1) { do this; } else { do this; } which is the same as if ($i%2) { etc. } ??? -B -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 9:19 AM To: 'Brian V Bonini'; [EMAIL PROTECTED] Subject: RE: [PHP] Brain Fart- table formatting help [snip] I'm trying to format the output of a db query with alternating row colors, the thing is the usual if ($i%2) {} will not work here because the alternating colors do not necessarily fall on odd or even rows. [/snip] ?php $i = 0; while($exrows = mysql_fetch_object($dbcdrex)){ $bgcolor = ($i++ 1) ? '#FF' : '#CC'; //other table stuff ? HTH! Jay Minds are like parachutes they only function when OPEN * * Want to meet other PHP developers * * in your area? Check out: * * http://php.meetup.com/* * No developer is an island ... * * *** * * * Texas PHP Developers Meeting* * Spring 2003 * * T Bar M Resort Conference Center * * New Braunfels, Texas* * Interested? Contact;* * [EMAIL PROTECTED] * * * *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Brain Fart- table formatting help
Ah, well... that was not clearly explained in your first post. You wanted alternating rows colors, and that is what I gave you. Let's see if I understand the question; For each show_title there are multiple rows of data, but they do not match row counts from show to show? You want the alternating colors to begin with each show_title, in other words the row with the show_title in it shall always be gray, while others rows alternate between white and gray? Sorry, I thougth I had explained it better.. But, yes, you have explained it well now... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Sorting Output
I have a db with the following fields: id | month | company | title | name | role | show_company | show_title | show_month sql query is: select * FROM db ORDER BY month DESC; Output gets formatted like: month - company - title name role name role - title name role - company - title name role name role name role The occurrence of the number of fields within each heading is not static. The oldest data sits at the beginning of the db so the order by month desc sorts the output from newest to oldest. Fine so far. Now, as new data gets added to the db sometimes some of it refers to past months. So although the order by month clause will move the new data to the correct month it will not move it into the correct heading (company) and sub_heading (title). I've tried using group by and using multiple fields in the order by but can not get the results I'm looking for, any suggestions? -Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: PHP4 and MS Excel?
file | save as then chose the format you want in the drop down box -Original Message- From: Jason Caldwell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 30, 2002 2:46 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: PHP4 and MS Excel? So -- it looks like I can connect to Excel via COM -- buuutt... anyone have any examples or can anyone point me to any -- that show how to save-out an excel file as a TEXT (.csv) TAB Delimited file? I guess if there is a way to see each ROW in the Excel Spreadsheet -- then I can grab that data and easily save it out as a \t delimited file (I know how to do that) -- ***so, then*** I guess my real question is; how can I *see* the data using COM ??? I'm not too familiar with COM. Say I have an excel spreadsheet called Test.xls and it has three columns: Name:Salary:Expense: Jon Doe$63,000 $2,345 Jane Doe $65,234$3,256 and so on... Thanks Jason Jome [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I would like to give my users the ability to send (to my website) a Microsoft Excel file, and then have my server (PHP code) extract that data and turn it into a TAB Delimited Text file -- is this possible with PHP? http://groups.google.com/groups?hl=svlr=ie=ISO-8859-1q=data+fro m+excel+ph p Google is your friend. -Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] sort results into two columns
!-- begin Wise crack -- table tr tdlink1/tdtdlinka/td /tr tr tdlink/tdtdlinke/td /tr /table !-- end wise crack -- I suppose an example of the sql query you attempting to use and perhaps an idea of how your db is structured would help a little.. ;-) -Original Message- From: kompresor [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 10:23 AM To: [EMAIL PROTECTED] Subject: [PHP] sort results into two columns hi, how can i sort data from mysql into two columns. Thanks. eg: link1linka link linke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Function search utility
There used to be a utility that let you search php functions from the address bar in your browser by simply appening PHP to the function name eg, php mail I thikn it might of been an IE only thing... I can't remember were I originally got it form and can not find it again, does anyone know? -Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Function search utility
Nope, it was this http://www.php.net/tips.php that I was thiking of But thanks, I didn't know you could do that ;-) -Brian -Original Message- From: Lars Olsson [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 2:41 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Function search utility It still works...try http://www.php.net/mysql or http://www.php.net/fopen for example... /lasso ([EMAIL PROTECTED]) Brian V Bonini wrote: There used to be a utility that let you search php functions from the address bar in your browser by simply appening PHP to the function name eg, php mail I thikn it might of been an IE only thing... I can't remember were I originally got it form and can not find it again, does anyone know? -Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Next and Previous links
Could you send me the URL's for the MySQL examples? Thanks!! -Original Message- From: webmaster [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 10:36 AM To: [EMAIL PROTECTED] Subject: [PHP] Next and Previous links Hello, I've been trying write a .php page that displays 10 results per page with links to the next 10 avail. I've found a couple examples on how to do this with MySQL, and I tried to convert it to work with Postgres with no luck. Has anyone ever done this using PHP4.0.6 and Postgres 7.1? Also, I keep getting an error that pg_fetch_row() and pg_fetch_array() requires at least 2 parameters where all the examples I find only use 1. Is this a DB configuration problem? Thanks in advance, -Elkan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: including a php file in an html doc
Because your trying to put PHP directives in an html file. Your web server does not know to parse html files as php files unless you tell it to do so. -Original Message- From: Alexander Ross [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 9:50 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: including a php file in an html doc I still seem to be missing something. I guess the easiest thing for me to do is just show you my code. All I want is to be able to reference the $hotspots array from any .html page oon my site. I thought I could include hotspot.php and then reference the array using ?= ? syntax. What should I do? The one requirement is that I cannot make all my pages PHP. They must be html. HTML PAGE (test.html): html head titleUntitled Document/title ? include(hotspot.php); ? meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /head body ?=$hotspots['kitten']? /body /html PHP PAGE (hotspot.php): ? include_once(../board/db_fns.php); echo hotspot = .$hotspots; if (!isset $hotspots){ $connect = connect_to_db(); $query = SELECT * FROM hotspots; $result = mysql_query($query); $count = mysql_numrows($result); $hotspots = array(); for($i=0;$i$count;$i++) { $hotspot = mysql_fetch_assoc($result); $hotspots[$hotspot['hotspot']]=$hotspot['val']; } print_r($hotspots); } ? Bogdan Stancescu [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi Alexander! You're missing the distinction between a server-side script (PHP) and a client-side script (JavaScript, VB etc). When you use the syntax you used, the browser attempts to download the src and execute it - and it can't do that, because in the best case the php code runs on the server and returns test (your echo()) and then it tries to run that as php code, which again it doesn't know how. It does work for JavaScript however, because it downloads the JavaScript file (which is plain text) and then executes the code (because it knows how to execute JavaScript). What you should do would be write ? include(hotspot.php); ? instead of script language... etc. Bogdan Alexander Ross wrote: I have a .php file whose purpose, ultimately, is to set one variable; $hotspot. Now I want to include that var in a bunch of places in my html page (it must remain html). So this was my thought. In the head include the following: script language=php src=hotspot.php/script and then anywhere in the html doc I want to print the value of $hotspot I type: ?=$hotspot? but it doesn't work. I have a feeling I cant include a php script that way because in trying to debug the problem I made the first line of hotspot.php = echo test; and the word test never shows. What am I missing? Thnks Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] exec / mkdir question
Just curious, any reason you don't use the mkdir function/ mkdir (/path/to/my/dir, 0700); -Brian -Original Message- From: Simon Ritchie [mailto:[EMAIL PROTECTED]] Sent: Monday, August 12, 2002 2:50 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] exec / mkdir question i'm using the following code to create a directory :- $temp = exec(mkdir $path); it doesn't work... i've validated the $path var which is correct. i suspect it is a permissions issue. what should i look for to resolve this? Try using the mkdir function: That is good practice, but if the problem is with the permissions, the program will just be better written when it fails. A note of the error message and some information about the host environment would help. However ... The user running the PHP script needs to be able to create the file. If this is a UNIX system and the web server is run by the user nobody, then that user needs write access to the directory which will contain the file. To grant that access, your user (the one you, er, use to connect to the server) must own the directory The worst case is when your user and the web server user are not in the same group. In that case, you will need to grant write access to all users. This introduces potential security risks - any user can also remove or rename files in that directory. Simon Ritchie Download my introduction to PHP for $25: http://merrowinternet.com/downloads?source=ml -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Fixing timezone issues
You should really fix it at the core of the issue but... putenv(TZ=EST5EDT); will work.. -Brian -Original Message- From: H. Wade Minter [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 2:44 PM To: [EMAIL PROTECTED] Subject: [PHP] Fixing timezone issues At some point recently, PHP/Apache running on FreeBSD decided that i'm on GMT, instead of EST5EDT. The system date is correct: bash-2.05a# date Tue Aug 13 14:39:37 EDT 2002 But phpinfo() shows me: _ENV[TZ] GMT What's the best way to get PHP thinking I'm in eastern time again? Thanks, Wade -- If you have a VCR or MP3 player, you need to read these links: http://www.digitalconsumer.org/ http://digitalspeech.org/ http://www.libertyboard.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Header and Target
No, but instead you could do something like: header (Location: frame.php?url=content.php); Then in frame.php: ?php if ($url) { ? FRAME NAME=content SRC=?= $url ? MARGINWIDTH=1 MARGINHEIGHT=1 SCROLLING=Auto FRAMEBORDER=0 NORESIZE ?php } ? Make sense? -Brian * -Original Message- From: Christian Ista [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 7:32 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Header and Target That's a HTML thing. I think you're confusing header() with HEAD/HEAD I believe. No no I explaine, I do that : FRAMESET FRAMESET rows=80,*,80 FRAME src=top.html noresize scrolling=No border=0 frameborder=No FRAMESET cols=150,* FRAME src=left.html noresize scrolling=No border=0 frameborder=No FRAME src=mainpage.html border=0 frameborder=No name=content /FRAMESET FRAME src=menu.html noresize scrolling=No border=0 frameborder=No /FRAMESET /FRAMESET I'd like to display all my pages in the frame content. Some times, from the menu for example, I do a a href=. target=content that it's ok but sometimes, I call a php page by header( header(Location: mypage.php); ) but I'd like to display the content in content section frame. To do something like that : www.padeg.be Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] MySQL to csv
Using SQL or PHP? -Original Message- From: Djurovski Dejan [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 11:42 AM To: [EMAIL PROTECTED] Subject: [PHP] MySQL to csv Hi Can someone show me how to export MySQL table to a csv file? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] assoc array question
Off teeh top of my novice head I think count() or sizeof() is what your looking for. -Original Message- From: Alexander Ross [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 5:23 PM To: [EMAIL PROTECTED] Subject: [PHP] assoc array question I have this: (note that $info is an Assoc Array while (list ($key, $val) = each ($info)) { do stuff } I would like to do slightly different stuff if I'm at the very first, or very last item in the array. How do I do this. Below is the pseudo code which would be ideal: while (list ($key, $val) = each ($info)) { if(onFirstKey or onLastKey) do fun stuff else do other stuff } Please help. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Frames and PHP
Are you saying $id is not passed some of your frames content but not others or it does nto get passed at all? -Original Message- From: Sascha Braun [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 15, 2002 4:34 PM To: PHP Mailingliste Subject: [PHP] Frames and PHP I have some links wich open a new window, wich contains some frames. Each frame selects something from a database, based on an id i put an the window open link. But the ID never enters one of my frames, it terribly stays outside, maybe in the frame set, what can I da about that? Schura -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: progress bar for uploading files
Bet this would be perfect for combining Flash and PHP. -Original Message- From: Philip Hallstrom [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 11:57 AM To: electroteque Cc: [EMAIL PROTECTED] Subject: [PHP] Re: progress bar for uploading files You're best bet would be to make an animated gif that looks like a progres bar (or twirling icon or whatever). Then when the users hits submit, turn it on... in the same way you do image rollovers, etc... Then it will spin until the form is submitted... On Fri, 16 Aug 2002, electroteque wrote: hi guys i was wondering if there was anyway to have a progress bar for uploading images ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] A Doubt!
So formal ;-) How about posting your sendmail.php file and also have a look at http://www.php.net/manual/en/ref.mail.php for more information about using the mail function with windows. -Original Message- From: Thiruvelraj Pokkishamani [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 12:56 PM To: [EMAIL PROTECTED] Subject: [PHP] A Doubt! Sir, I am using Windows 2000 server, and i use IIS 4.0 as the server and i have done many php scriptings and everything works fine and i done have any problem regarding this. And i want to send mail to the visitors of this site . for that purpose i use mail() and if i click send button i receive server error in D:\inetpub\wwwroot\test\sendmail.php . i have tried many scripts and i receive this error. Some says that i want to configure the server , how to configure and just iam a beginner to this PHP. if u help me it could b fine for me to finish this project. Xpecting ur mail. Yours Thankingly Thiruvelraj -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] NS4.x / IE3.0 Browser Detection
HTTP_USER_AGENT returns platform info as well doesn't it...?? -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 10:10 AM To: [EMAIL PROTECTED] Subject: [PHP] NS4.x / IE3.0 Browser Detection I need to differentiate between different versions of NS4, particularly the ones that are used by Mac. So far, I've used the following to detect variants: if(eregi((Mozilla/4.[0-8][0-9]),$_SERVER['HTTP_USER_AGENT'])) However, I'm aware that it will not distinguish between PC and Mac-based NS4. My question is: what versions of NS (if any) do Mac's use? I've used the following to detect IE3.0 users: if(eregi((mozilla/3.0),$_SERVER['HTTP_USER_AGENT'])) Is this correct? Any insights or advice most welcome. Tia, Andre -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] why is html code written like this? hr /
The entire point of xx / is backwards compatibility. Read the spec http://www.w3.org/TR/xhtml1/ -B -Original Message- From: Victor [mailto:[EMAIL PROTECTED]] Sent: Monday, September 02, 2002 7:35 AM To: 'Adrian Murphy'; [EMAIL PROTECTED] Subject: RE: [PHP] why is html code written like this? hr / Ok, but is this kind of html compliant with old browsers like Netscape 4? Is it compliant with most new browsers? - Victor www.argilent.com -Original Message- From: Adrian Murphy [mailto:[EMAIL PROTECTED]] Sent: Monday, September 02, 2002 7:13 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] why is html code written like this? hr / thats xhtml - it's xml comliant html. tags must be closed so a tag like hr which didn't have a closing tag is written hr / so,for example in php the nl2br() function now produces br / instead of the old br - Original Message - From: Victor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 02, 2002 12:16 PM Subject: [PHP] why is html code written like this? hr / When I learned html it was always written like this: /hr now I see people write it like this: hr /... why? - Victor www.argilent.com __ Post your free ad now! http://personals.yahoo.ca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ Post your free ad now! http://personals.yahoo.ca -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] FORUM CODE
My guess would be a regex replace function. The latest version of Phorum has this capability. You could grab the source form phorum.org and have a look. -Original Message- From: Tony Harrison [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 2:23 PM To: [EMAIL PROTECTED] Subject: [PHP] FORUM CODE Hi, im wondering how in popular forum software, those 'BB codes' are done in PHP, like, [B] and stuff. I just cant figure it out. - [EMAIL PROTECTED] http://www.cool-palace.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail list/message board
Anyone now of a a PHP mailing list program that has a forum-like interface as well? Somethign that functions similar to yahoo groups if your familiar with that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] replacing \n with br
I'm sorry, I missed the first part of this thread so am only going by its subject line mostly... But, I assume you are all aware of the nl2br function and there's a special reason it does not apply here but I thought I'd mention it any way... Just in case... :) -B -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] help with making an xslt class
Isn't this what the salbatron library is for? -Original Message- From: Geoff [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 2:52 PM To: php list Subject: [PHP] help with making an xslt class I am trying to make a class to process xslt transformations. Here is the class: class xslTransformer extends makexml { var $xh; function xslTransformer($xslfile) { $this-xh = xslt_create(); $result=xslt_process($this-xh,$this-xmlstr,$xslfile); //errors if ($result) { print $result; } else { print Sorry, the xml could not be transformed by the xsl into;print the \$result variable the reason is that . xslt_error($this-xh) . print and the error code is . xslt_errno($this-xh); } xslt_free($this-xh); } } I call it as $this-xmlstr is valid xml (I have checked) the makexml class works fine as well. Here is the error I get: Warning: Sablotron error on line 1: XML parser error 3: no element found in /usr/lib/apache/htdocs/xml/clsmakexml.php on line 200 Sorry, the xml could not be transformed by the xsl into and the error code is 2 the $result variable the reason is that XML parser error 3: no element found -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] xml declaration
Is this the appropriate way to handle this? ?php echo '?xml version=1.0 encoding=UTF-8?' . \n; ? What's everyone else do? I'm not missing something here am I?? :) -B -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] xml declaration
When I do that PHP complains about the ?xml .. -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED]] Sent: Friday, September 13, 2002 9:28 AM To: 'Brian V Bonini'; 'PHP Lists' Subject: RE: [PHP] xml declaration [snip] Is this the appropriate way to handle this? ?php echo '?xml version=1.0 encoding=UTF-8?' . \n; ? What's everyone else do? I'm not missing something here am I?? :) [/snip] You can also place the XML declaration outside of the php tags. I have been able to get proper validation both ways. HTH! Jay -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] fopen // eregi question
From the PHP manual: http://www.php.net/manual/en/features.remote-files.php Example 20-1. Getting the title of a remote page ?php $file = fopen (http://www.php.net/;, r); if (!$file) { echo pUnable to open remote file.\n; exit; } while (!feof ($file)) { $line = fgets ($file, 1024); /* This only works if the title and its tags are on one line */ if (eregi (title(.*)/title, $line, $out)) { $title = $out[1]; break; } } fclose($file); ? How would you make this work if the tags and content spanned several lines? -- 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] Array Help
How can I access the inner most info in this array? Ie, Item and url $var = array( category = array( subcategory = array( Item = url ), ) ); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] declaring variables mandatory???
change error level reporting error_reporting() -Brian -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 2:38 PM To: [EMAIL PROTECTED] Subject: [PHP] declaring variables mandatory??? Hello, I have a problem with my php installation. PHP runs, but all my variables have to be declared, othervise I am getting following error: Warning: Undefined variable: next in e:\projects\globosapiens\07_production\actual\forum\install.php on line 33 I guess this is only on my system, since I have obtained other php code which workes on other systems, but not on mine. Thanx for any help Cheers, Andy -- 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] Stuck on array, need a little help.
I'm stuck. $key returns Array how can I get at each level of this array? if ($cat == 'bikes' $sub_cat != 'Road') { while (list($val, $key)=each($bikes[$sub_cat])) { echo TDIMG SRC=\images/spacer.gif\ WIDTH=\25\ HEIGHT=\1\ ALT=\\ BORDER=\0\/TD\n; echo TDA HREF=\$key\ CLASS=\menu\$val/A/TD\n; $bikes = array( Road = array( Trek = array( Trek 5200 = road.php?brand=t5200 ), LeMond = array( Zurich = road.php?brand=zurich, Chambery = road.php?brand=chambery, Alpe d'Huez = road.php?brand=alpe, BuenosAries = road.php?brand=bueno, Tourmalet = road.php?brand=tourmalet ), Moots = array( VaMoots = road.php?brand=vamoots ) ), Mountain = array( Trek = array( Fuel 100 = mountain.php?brand=tfuel90, Fuel 90 = mountain.php?brand=schhg ), Klein = array( bike 1 = URL, bike 2 = URL ), Gary Fisher = array( bike 1 = URL, bike 2 = URL ), Moots = array( bike 1 = URL, bike 2 = URL ) ), -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Stuck on array, need a little help.
I still can't get this to do what I want: $bikes = array( Road = array( Trek = array( Trek 5200 = road.php?brand=t5200 ), LeMond = array( Zurich = road.php?brand=zurich, Chambery = road.php?brand=chambery, Alpe d'Huez = road.php?brand=alpe, BuenosAries = road.php?brand=bueno, Tourmalet = road.php?brand=tourmalet ), Moots = array( VaMoots = road.php?brand=vamoots ) ), ); if ($cat == 'bikes') { while (list($key, $val)=each($bikes[$sub_cat])) { echo TDIMG SRC=\images/spacer.gif\ WIDTH=\25\ HEIGHT=\1\ ALT=\\ BORDER=\0\/TD\n; echo TDA HREF=\$val\ CLASS=\menu\$key/A/TD\n; while (list($sub_key, $sub_val) = each($val)) { echo TDA HREF=\$sub_val\ CLASS=\menu\$sub_key/a/td\n; } } } Will produce: Trek Trek 5200 LeMond Zurich Chambery Alpe d'Huez BuenosAries Tourmalet Moots VaMoots as it should... But, I need it to produce: Trek LeMond Moots Trek 5200 Zurich Chambery Alpe d'Huez BuenosAries Tourmalet VaMoots And I need to get the value of $sub_val in the nested while loop to where $val is in the outer loop. I'm really stuck, any suggestions?? -Brian ** -Original Message- From: Jim Musil [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 5:26 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Stuck on array, need a little help. The script is still working right, you just need to nest another while loop into your current while loop. Like so ... if ($cat == 'bikes' $sub_cat != 'Road') { while (list($val, $key)=each($bikes[$sub_cat])) { echo trtd$val/td; while (list($sub_val, $sub_key) = each($key)) { echo TDIMG SRC=\images/spacer.gif\ WIDTH=\25\ HEIGHT=\1\ ALT=\\ BORDER=\0\/td\n; echo TDA HREF=\$sub_key\ CLASS=\menu\$sub_val/a/td\n; } } } alternatively, if you know specifically what you want you could do this ... if ($cat == 'bikes' $sub_cat != 'Road') { while (list($val, $key)=each($bikes[$sub_cat][Trek])) { echo TDIMG SRC=\images/spacer.gif\ WIDTH=\25\ HEIGHT=\1\ ALT=\\ BORDER=\0\/td\n; echo TDA HREF=\$key\ CLASS=\menu\$val/a/td\n; } } No, all that will do is reverse the placement of the values. So now it prints out Array and puts the item in the URL. Still the same problem. -Original Message- From: Jim Musil [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 4:54 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Stuck on array, need a little help. Your script is working like you are asking it to ... Change ... while (list($val, $key)=each($bikes[$sub_cat])) { To ... while (list($key, $val)=each($bikes[$sub_cat])) { and it should work like you WANT it to ... I'm stuck. $key returns Array how can I get at each level of this array? if ($cat == 'bikes' $sub_cat != 'Road') { while (list($val, $key)=each($bikes[$sub_cat])) { echo TDIMG SRC=\images/spacer.gif\ WIDTH=\25\ HEIGHT=\1\ ALT=\\ BORDER=\0\/TD\n; echo TDA HREF=\$key\ CLASS=\menu\$val/A/TD\n; $bikes = array( Road = array( Trek = array( Trek 5200 = road.php?brand=t5200 ), LeMond = array( Zurich = road.php?brand=zurich, Chambery = road.php?brand=chambery, Alpe d'Huez = road.php?brand=alpe, BuenosAries = road.php?brand=bueno, Tourmalet = road.php?brand=tourmalet ), Moots = array( VaMoots = road.php?brand=vamoots ) ), Mountain = array( Trek = array( Fuel 100 = mountain.php?brand=tfuel90, Fuel 90 = mountain.php?brand=schhg ), Klein = array( bike 1 = URL, bike 2 = URL ), Gary Fisher = array( bike 1 = URL, bike 2 = URL ), Moots = array( bike 1 = URL, bike 2 = URL ) ), -- 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] -- Jim Musil - Multimedia Programmer Nettmedia -
[PHP] RegEx gurus help...
I need to replace all relative links in an html doc with absolute links on the fly weather it be an image link, img src='/_imgs/imgs_nav/transPix.gif' width='10' height='13' img src='../_imgs/imgs_nav/transPix.gif' width='10' height='13' a URL, a href=/dealers/index.asp a link to an external JS file script language='JavaScript' src='/_js/scripts.js' type='text/javascript'/script or external css file. link rel=stylesheet href=../_css/style.css type=text/css Anyone done this before and have a prefab regex laying around they want to share? -Brian -- 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] RegEx gurus help...
I need to replace all relative links in an html doc with absolute links on the fly weather it be an image link, img src='/_imgs/imgs_nav/transPix.gif' width='10' height='13' img src='../_imgs/imgs_nav/transPix.gif' width='10' height='13' a URL, a href=/dealers/index.asp a link to an external JS file script language='JavaScript' src='/_js/scripts.js' type='text/javascript'/script or external css file. link rel=stylesheet href=../_css/style.css type=text/css Anyone done this before and have a prefab regex laying around they want to share? -Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] RegEx gurus help...
Hey thanks! That was a good starting point... -Brian -Original Message- From: Andrey Hristov [mailto:[EMAIL PROTECTED]] Sent: Monday, December 10, 2001 9:35 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] RegEx gurus help... The code below does almost of the job. There is only one problem. If some path is absolute to the server /aaa/bbb/ the path get file://aaa// but I think no problems with apache. HTH Andrey Hristov IcyGEN Corporation http://www.icygen.com BALANCED SOLUTIONS pre ?php $the_html = 'I need to replace all relative links in an html doc with absolute links on the fly weather it be an image link, img src=\'/_imgs/imgs_nav/transPix.gif\' width=\'10\' height=\'13\' img src=\'../_imgs/imgs_nav/transPix.gif\' width=\'10\' height=\'13\' a URL, a href=/dealers/index.asp a link to an external JS file script language=\'JavaScript\' src=\'/_js/scripts.js\' type=\'text/javascript\'/script or external css file. link rel=stylesheet href=../_css/style.css type=text/css'; echo htmlspecialchars($the_html); $ABSOLUTE_HREF = 'http://someserver.com/somedir/somedir2/'; $count = preg_match_all('~(src=|href=)(|\')(?!href://)(.*?)(\2)~',$the_htm l,$matches); var_dump($matches); $the_html = preg_replace('~(src=|href=)(|\')(?!href://)(.*?)(\2)~','\1\2'.$AB SOLUTE_HREF.'\3\4',$the_html); echo htmlspecialchars($the_html); ? - Original Message - From: Brian V Bonini [EMAIL PROTECTED] To: PHP Lists [EMAIL PROTECTED] Sent: Monday, December 10, 2001 4:21 PM Subject: [PHP] RegEx gurus help... I need to replace all relative links in an html doc with absolute links on the fly weather it be an image link, img src='/_imgs/imgs_nav/transPix.gif' width='10' height='13' img src='../_imgs/imgs_nav/transPix.gif' width='10' height='13' a URL, a href=/dealers/index.asp a link to an external JS file script language='JavaScript' src='/_js/scripts.js' type='text/javascript'/script or external css file. link rel=stylesheet href=../_css/style.css type=text/css Anyone done this before and have a prefab regex laying around they want to share? -Brian -- 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] Date
Why is this: ?php $modified = stat(header.php); echo Last Modified: .date(F j, Y, g:i a,$modified[9]); ? returning this: Last Modified: December 31, 1969, 7:00 pm from this: -rw-r--r-- 1 gfxdesi vuser 1196 Dec 11 09:22 header.php Anyone? -- 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] Date
Why is this: ?php $modified = stat(header.php); echo Last Modified: .date(F j, Y, g:i a,$modified[9]); ? returning this: Last Modified: December 31, 1969, 7:00 pm from this: -rw-r--r-- 1 gfxdesi vuser 1196 Dec 11 09:22 header.php Anyone? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Tracking shipments UPS, FEDEX, etc...
Doesn't UPS provide tools to do this? Not necessarily using PHP but I thought -Original Message- From: Dan Harrington [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 06, 2001 3:45 PM To: Joe Sheble (Wizaerd); General PHP List Subject: RE: [PHP] Tracking shipments UPS, FEDEX, etc... No kidding :-) or calculating shipping costs. -Original Message- From: Joe Sheble (Wizaerd) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 05, 2001 11:47 PM To: General PHP List Subject: [PHP] Tracking shipments UPS, FEDEX, etc... has anybody written any routines or functions they'd care to share for parsing the tracking information out of UPS, FEDEX, or other shipping carriers tracking pages? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] XML - HTML via PHP
Has anyone successfully used PHP to transform XML to HTML on the fly? Can you point me to some info/tutorials. -Brian *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] include files
DOCUMENT_ROOT ??? http://php.net/manual/en/language.variables.predefined.php -Original Message- From: David VanHorn [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 12:16 PM To: [EMAIL PROTECTED] Subject: [PHP] include files I've got kind of a deep page structure, lots of subdirs. I'm having trouble with an include directive. The problem is a footer that I use on all pages, which resides in the base directory. The footer file includes another file, which I use if there is no menu. footer.inc has menu, and includes footer-nomenu.inc footer-nomenu.inc may be used alone. I know this works, in footer.inc, to pull up nomenu. ? include("/home/dvh/public_html/footer-nomenu.inc")? However, is there a more "generic" way to specify the server root as the path? I'd rather not expose my directory structure in the PHP code. I tried various versions of ../ and ../../ without success. -- Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] include files
? include ($DOCUMENT_ROOT . "/footer-nomenu.inc"); ? -Original Message- From: David VanHorn [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 1:04 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] include files At 12:50 PM 2/5/01 -0500, Brian V Bonini wrote: DOCUMENT_ROOT ??? http://php.net/manual/en/language.variables.predefined.php Ok, but having read the docs you pointed to (thanks), I still don't see how to use it in an include directive. I assume that since the vhost is specified to use "/home/dvh/public_html/" as the server root, that DOCUMENT_ROOT is equal to "/home/dvh/public_html/" when the server is running any script from that vhost. But, how do I apply that to the include directive? ? include("/home/dvh/public_html/footer-nomenu.inc")? -- Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] XML Parsing with PHP
You know, some of these guys are members of this list. I don't think they make any claims about being the definitive end all be all source for all things PHP but rather are a bunch of folks sharing their PHP experiences/knowledge. I'd say that's pretty generous of them. -Brian -Original Message- From: Chris Lee [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 1:19 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] XML Parsing with PHP PHPbulder.com classically has terrible tutorials. I myself am trying to learn this XML deal. PHPbuilders code, cut and paste is filled with parse errors. after fiddling Ive got his example to work, but I havent a clue how? he posts this stupid two page article, page one is nothing, page two is nothin plus broken code. He doesn explain what even one of his four functions are for. completely confused. I hate to ramble, but phpbuilder is a terrible site that ruins php for many newbies. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Getting image size from gif/jpeg
getimagesize (string filename [, array imageinfo]) http://php.net/manual/en/function.getimagesize.php -Original Message- From: r a n d y [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 2:55 PM To: [EMAIL PROTECTED] Subject: [PHP] Getting image size from gif/jpeg Is it possible to get the size of an image in PHP4? if so, does it require gif/jpeg support built in? Thanks == r a n d y // sesser at mac dot com http://randys.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]
RE: [PHP] Cookies
lets see some code.. -Original Message- From: Matthew Bean [mailto:[EMAIL PROTECTED]] Sent: Friday, February 09, 2001 5:01 AM To: [EMAIL PROTECTED] Subject: [PHP] Cookies I am having major problems with cookies, it's been stressing me out for over 9 hours. I have a script that can set cookies, and it does that, just fine. What it doesn't do is READ the cookies off the hard drive when the page is reloaded. I have tried everything, messing with the domains, expiration time, setting it to the root, using the php setcookie function as well as doing it through http headers. In each case the script WILL set the cookie on the computer, but it absolutely REFUSES to read it back up, even when called in the same exact scope. Yes, I've checked the spelling too, and the page is rather complex, with various nested includes and so forth. PHP version is 4.0 I use both IE 5.5 and Netscape 6, it does the same thing in both of them. Any help or suggestions would be greatly appreciated, this has been bugging the hell out of me. Thanks. --Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- 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] Newbie dummy questions..... error messages
I get the following on one of my pages, Warning: Use of undefined constant month - assumed 'month' in /usr/local/etc/httpd/vhosts/eastcoastbicycles.com/htdocs/index.php on line 121 Warning: Use of undefined constant mday - assumed 'mday' in /usr/local/etc/httpd/vhosts/eastcoastbicycles.com/htdocs/index.php on line 122 Warning: Use of undefined constant year - assumed 'year' in /usr/local/etc/httpd/vhosts/eastcoastbicycles.com/htdocs/index.php on line 123 and the offending lines are; $month = $today[month]; $mday = $today[mday]; $year = $today[year]; So I change them to; $month = $today['month']; $mday = $today['mday']; $year = $today['year']; and the problem goes away... simple enough I suppose but what baffles me is. This site ran error free before, only after adding "Phorum" (anyone familiar with it?) do the original pages start to return these errors. Even more strange is they only return these error if one of the "phorum" pages is the referring page. I was also getting a lot of stuff like 'undefined variable' when doing; if ($brand == 'nut') { $item = "Chris King 2nut Headset"; } So I changed it to; if (isset($brand)) { if ($brand == 'nut') { $item = "Chris King 2nut Headset"; } } and it's fine, but again, I'd only get the error if one of the "phorum" pages was the referring page. Any thoughts/insight, anyone? BSDI BSD/OS 4.0.1 PHP Version 4.0B2 Zend Engine v0.90 -Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] imagecolorallocate / imagesetpixel / palette size?
That's because it was originally designed for gif's. Gif's only have a 256 color palette.. -Original Message- From: Dan Harrington [mailto:[EMAIL PROTECTED]] Sent: Monday, February 12, 2001 12:30 PM To: Matt McClanahan Cc: [EMAIL PROTECTED] Subject: RE: [PHP] imagecolorallocate / imagesetpixel / palette size? You are kidding me, right? I can't believe it. In this age, 256 colors just doesn't cut the mustard. Oh well, free is free, ya get what ya pay for. And here I was all excited about the GD library. Thanks Dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] How to check if vaiable is defined or not?
if (isset($var)) -Original Message- From: SED [mailto:[EMAIL PROTECTED]] Sent: Monday, February 12, 2001 6:22 PM To: [EMAIL PROTECTED] Subject: [PHP] How to check if vaiable is defined or not? Hi, I'm sending a form, with check-boxes, via post to PHP-script and if the boxes are not checked they don't post value for its variable - Can I check with a function if the variable is defined? (or should I focus on another solution?) Regards, Sumarlidi Einar Dadason SED - Graphic Design -- Phone: (+354) 4615501 Mobile: (+354) 8960376 Fax: (+354) 4615503 E-mail: [EMAIL PROTECTED] Homepage:www.sed.is - New Homepage! -- -- 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] serialize/deserialize data
What exactly does serialize/deserialize data mean? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] ereg_replace
That's exactly what I want to do Thanks! -Original Message- From: Robin Vickery [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 5:05 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] ereg_replace ""VB" == "Brian V Bonini" [EMAIL PROTECTED] writes: I know you can replace A or B or C with D but can you replace A with B and C with D exclusively with one call to ereg_replace or does this need to be done seperately? With ereg_replace it must be done seperately, but if you use preg_replace you can pass it a list of replacements. like this: ?php $string = "this is my string."; print $string . "br\n"; $string = preg_replace( array( '/my/', '/string/'), array( 'your', 'bit of text' ), $string ); print $string . "br\n"; ? The output would be: this is my string. this is your bit of text. -- Robin Vickery. BlueCarrots, 14th Floor, 20 Eastbourne Terrace, London, W2 6LE -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Help Work with files
exec fclose feof fflush fgetc fgetcsv fgets fgetss file file_exists fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype -Original Message- From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 10:14 AM To: PHP Mailing List Subject: [PHP] Help Work with files Hello, I need to work with files on my web server. I need to be able move them, delete them, rename them etc... Is there a section in the documentation devoted to this? - How do I list files in a directory? 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]
RE: [PHP] PHP scripts in HTML
Don, Why don't you just rename your .html file to .php and use 'include' to call an external php script. -brian * -Original Message- From: Scott Mebberson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 14, 2001 4:47 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP scripts in HTML Hi Don, This wont work as PHP is a server side scripting language. So by the time your page gets displayed in a browser, php has already packed up and gone home. It has done it's job and exited your page. For your webserver to recognise php it must be incompessed in ?php ? tags, or ? ?. This is so your webserver knows when to start up php (so to speak). Inserting the script... statement like you did is to late, because all of the information has already be passed to the browser and php can't write any more information to the page. Hope this helps. "Don" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I would like to know if there is a way to accomplish the following: In my HTML file, I have the following: script language="php" src="/phpscript/testscript.php"/script In the testscript.php file, I have: ?PHP echo "Hello Don"; echo "What is up?"; ? When I run the html file, I do not see the PHP code but if I place the above code directly in my HTML file, it displays. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] ereg_replace
Ah right, strings not words, I feel like a dummy now... ;-) -Original Message- From: John Vanderbeck [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 10:57 AM To: [EMAIL PROTECTED]; Robin Vickery; [EMAIL PROTECTED] Subject: Re: [PHP] ereg_replace why does this ?php $string = "this is my string."; print $string . "br\n"; $string = preg_replace( array( '/is/', '/string/'), array( 'is not', 'bit of text' ), $string ); print $string . "br\n"; ? This happens because you are replacing "is" with "is not" so parse your string by hand: "this is my string"..ok the first occurence of "is", is in the word "this", so do the replace..the replaced part in CAPS: "thIS NOT" .. then the second "is": thIS NOT IS NOT" etc..I think you can see why now.. - John Vanderbeck - Admin, GameDesign -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] PHP Editors
Are you using 4.5.2? It runs much smoother then 4.5.1a. Haven't had a single crash since upgrading, even with Photoshop, Illustrator, HS all runnning at the same time. The FTP integration works much better too, no hang time while opening remote files. -Brian -Original Message- From: John Vanderbeck [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 11:53 AM To: Hoover, Josh; 'Julian Wood'; [EMAIL PROTECTED] Subject: Re: [PHP] PHP Editors I have Allaire and use it for web development, but i'm not happy with it. I like the APP itself, but its such a resource hog, crashes all the time, and causes other problems. - John Vanderbeck - Admin, GameDesign - Original Message - From: "Hoover, Josh" [EMAIL PROTECTED] To: "'Julian Wood'" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, February 16, 2001 11:51 AM Subject: RE: [PHP] PHP Editors I think BBEdit can get that percentage because so many people doing web development use Macs. Even though the overall marketshare for Macs is small, there is a high concentration in the web/graphics development areas. Still, those numbers Allaire shows seem a bit out of whack to me too :) Josh Hoover KnowledgeStorm, Inc. Searching for a new IT solution for your company? Need to improve your product marketing? Visit KnowledgeStorm at www.knowledgestorm.com to learn how we can simplify the process for you. KnowledgeStorm - Your IT Search Starts Here how does BBEdit garner 42.6% of the share when the Mac has only a 3-5% share of the worldwide computer market? J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Sending multiple files through ftp in telnet.... PHP files that is
Ummm, Turn off interactive prompting, make sure you in ASCII mode then, ftpmput *.php -Brian ** -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 11:58 AM To: PHP User Group Subject: [PHP] Sending multiple files through ftp in telnet PHP files that is Hello, I have a huge folder for php files that I want to send from one server to another. Is there a way to ftp *.php using ftp instead of having to send each individual file? Does anyone have a ftp script that does this? 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] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Does anyone have experience to customize the phorum
What do you want to do to it? -Original Message- From: Fang Li [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 12:26 PM To: [EMAIL PROTECTED] Subject: [PHP] Does anyone have experience to customize the phorum Hello All, Would anyone give me any advice to customize the phorum which provided in the www.phorum.org? Thanks a lot! Fang -- 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] PHP Book Recommendations
Can I get some recommendations on some good PHP books. Something broad but with good novice concepts -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Re: Creative solution with XML,PHP,MYSQL
Maybe Flash is an option? -Original Message- From: Peter Skipworth [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 17, 2001 9:29 AM To: Siim Einfeldt aka Itpunk Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Re: Creative solution with XML,PHP,MYSQL I'm afraid XML isn't going to help you - you need to investigate DHTML options, although you'll be lucky to find a solution which is compatible across both Netscape and IE. regards, P On Sat, 17 Feb 2001, Siim Einfeldt aka Itpunk wrote: Hi everybody, I want to implement ordering something on a website without refreshing the page. Lets say i have four columns in the html table - name,age,skill and phone. All these are links - under these are the information, eg: Name Age Skill Phone Siim 23 php 051... Tony 18 html 132... Now, when i click on the name, it should order the listings by name, if I click on the age, I get the listing ordered by age and etc,etc. Generally it is easy to do it, but how to do it without refreshing the page every time I want to order by something else? It should be possible with XML; I get the data from mysql database with php, I write it into an array and ... now how could I make it function the way I just described? Could someone point me some already written code or explain me in detail how to do it? Thank you, Siim Einfeldt PS: Sorry about sending this message to so many lists, but I haven`t seen this kind of code anywhere, but at the same time I know it is possible. - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail [EMAIL PROTECTED] To unsubscribe, e-mail [EMAIL PROTECTED] Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Fax manipulation?
There are actually many ways to send an email to a fax gateway. So, you could generate an email, send it to a FAX gateway, ... and presto! -Brian * -Original Message- From: Joshua Long [mailto:[EMAIL PROTECTED]] Sent: Monday, February 19, 2001 9:26 AM To: [EMAIL PROTECTED] Subject: [PHP] Fax manipulation? Hello all... Is there anyway at all for a PHP script to somehow interact with a fax? dynamically generated pdfs... dynamically generated images... dynamically generated... faxes? I mean i don't even know how it would begin to work but is there a way to send a fax maybe as it does e-mail? Thanks in advance, Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] redirect if sql = nothing
$sql = "select * from table where bla bla bla"; if(!isset($sql)) { do this; } else { do this; } I think ? -Brian ** -Original Message- From: Matt Davis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 20, 2001 11:33 AM To: Php Mailing List Subject: [PHP] redirect if sql = nothing If my SQL returns no results then i want to redirect to a page saying no results etc but if results are found then I want it to continue on down the script how would i do this. Matt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] file grabber help
Is this what you mean? $fp = fopen("http://www.domain.com/file.xxx", "a+"); -Brian -Original Message- From: Brian C. Doyle [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 20, 2001 11:27 AM To: [EMAIL PROTECTED] Subject: [PHP] file grabber help Hello all, I need to write a script to grab files via a web port. Is there any way to do this?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Terrible Hosting Experience
We host and provide servers to a good number of clients that have come over from Alabanza. All of them complaining of similar experiences I think that company has been plagued for a long time -Brian *** -Original Message- From: richard merit [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 20, 2001 3:02 PM To: Thomas Deliduka; PHP List Subject: Re: [PHP] Terrible Hosting Experience Actually alabanza hosts a number of "hosting" companies from their baltimore sp? location. About two weeks ago a "hosting" service I used went down, they use alabanza as well, down for almost two days. Then when it did come up, the permissions were all wrong and I couldn't change the files for a time. The problem appears to be with the alabanza servers and that caused problems for a number of "hosting" services. rm --- Thomas Deliduka [EMAIL PROTECTED] wrote: I just need to tell all of you about my terrible hosting experience with yourwebhost.com which owned by hostingventures.com which is also kinda owned by alabanza.com (same owners, I believe, different company) __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Terrible Hosting Experience
Hmmm, well I guess everyone has different experiences. We've been with them (Vservers) for 5 years now and never had a single problem with downtime... -Original Message- From: Gary [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 21, 2001 11:49 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Terrible Hosting Experience Thomas Deliduka wrote: On 2/21/01 10:23 AM this was written: Check out http://www.hostpro.com/hosting/shared/unix_products.html It's a semi-dedicated virtual environment with complete root access. I've heard good things about Host Pro. I disagree! We have had to pull clients off of them. Their site would go down for days at a time and their email would go down the same way. If you emailed support you might hear back from them in a day or two. If you called support, you would be lucky if you were not left on hold for 30 minutes or more. The straw that broke the camels back, they change their email system and didn't notify our clients. In the end it took our clients lawyer to completely break off with them. they kept bill and writing threating letters for months. Gary -- 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]