RE: [PHP] How to check aBc different from abc ?

2001-05-15 Thread scott [gts]
this also works: $st1 = abc; $st2 = abc; if ($st1 != $st2) { die(Death); } -Original Message- From: Steve [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 6:39 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] How to check aBc different from abc ? $st1 = abc; $st2 =

[PHP] Newbie-Continue Line of Code

2001-05-15 Thread Mike Maki
How do I continue a line of code to the next line? I like to keep my lines of code to about 60 characters in width then wrap to the next line. Is this possible with lines of PHP code? Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

[PHP] again with the regex

2001-05-15 Thread Jerry Lake
I hate to keep asking regex stuff, but it is really evasive for me.. I'm pulling phone numbers out of a DB in the format of 1234567890, I would like to format them like (123) 456-7890 or something else that at least breaks them up a bit. any help is appreciated, Thanks, Jerry Lake Interface

Re: [PHP] Newbie-Continue Line of Code

2001-05-15 Thread phpman
it doesn't matter. the thing in php that separates lines (actually commands) is the -- ; semicolan. In theory you could put all your code on one line. Mike Maki [EMAIL PROTECTED] wrote in message 9dsbhr$52j$[EMAIL PROTECTED]">news:9dsbhr$52j$[EMAIL PROTECTED]... How do I continue a line of

RE: [PHP] again with the regex

2001-05-15 Thread Johnson, Kirk
Jerry, try sprintf(). Here's an example: sprintf((%s) %s-%s, substr($GLOBALS[appPhoneHome], 0, 3),substr($GLOBALS[appPhoneHome], 3, 3),substr($GLOBALS[appPhoneHome], 6, 4)) Kirk -Original Message- From: Jerry Lake [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 4:48 PM To:

RE: [PHP] again with the regex

2001-05-15 Thread scott [gts]
well, if all numbers are *always* 10 digits long, use this $old = 1234567890; $new = preg_match('/(\d{3})(\d{3})(\d{4})/', $old, $matches); print (. $matches[1] .) . $matches[2] .-. $matches[3]; prints (123) 456-7890 -Original Message- From: Jerry Lake [mailto:[EMAIL PROTECTED]]

RE: [PHP] again with the regex

2001-05-15 Thread Jack Dempsey
if they all have the same format, then you can do this (don't need regexs) $number = '1234567890'; $formatted_number = '(' . substr($number,0,3) . ') ' . substr($number,3,3) . '-' . substr($number,6); -jack -Original Message- From: Jerry Lake [mailto:[EMAIL PROTECTED]] Sent: Tuesday,

RE: [PHP] Newbie-Continue Line of Code

2001-05-15 Thread scott [gts]
then people would think you're a perl programmer ;) -Original Message- From: phpman [mailto:[EMAIL PROTECTED]] Subject: Re: [PHP] Newbie-Continue Line of Code In theory you could put all your code on one line. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] again with the regex

2001-05-15 Thread Jerry Lake
Thanks folks, much better now. Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 3:52 PM To: [EMAIL

Re: [PHP] Newbie-Continue Line of Code

2001-05-15 Thread Mike Maki
Phpman, Thanks for the quick reply, Wow, guess I should have tried that before I asked. What a great forum. Quick responses! Thanks again. phpman [EMAIL PROTECTED] wrote in message 9dsblb$9i1$[EMAIL PROTECTED]">news:9dsblb$9i1$[EMAIL PROTECTED]... it doesn't matter. the thing in php that

[PHP] ORDER PROBLEMS

2001-05-15 Thread Rafael Faria
Hello Guys, i'm with problems first i try to add a value like 8.55 into my sql data base that was set up to DOUBLE (10,0) and isn't work... i don't know how this work... but i'm here to ask for someone explain me. well... i did with varchar to add this value as i want to.. do i have a

Re: [PHP] coding for 'no match found'

2001-05-15 Thread James, Yz
Or, try count() in the sql statement.. ? $sql = SELECT count(email) from table WHERE email = '$email'; $result = @mysql_query($sql); if (mysql_result($result, 0, count(email)) == 0) { echo No good.; } ? I think that's faster than: ? $sql = SELECT email FROM table WHERE email =

Re: [PHP] GetImageSize() problem...

2001-05-15 Thread Edwin van Elk
Eric Knudstrup [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I am having an issue with 4.0.5 where the following code snippet: $orig = imagecreatefromjpeg($tmp); echo 'orig x: ' . imagesx($orig) . ' orig y: ' . imagesy($orig) .

[PHP] Image Upload??

2001-05-15 Thread Brave Cobra
Hi, I'm having a problem with a file upload. My code looks as follows : ? include(config.ini); include(funcs.php3); if(empty($Image1)) { ? center table cellpadding=2 cellspacing=0 border=1 trtd bgcolor=? echo $main_color ? width=100Select the file you wish to upload. brIt must be less than

[PHP] Custom Session Func?

2001-05-15 Thread Elan
Hi, Problem: I register a session variable and assign a value to it. The value is lost when I try to access it from a different webpage later. Must I use custom session_save_handler functions if I want to extend the life of a variable's value from Webpage to Webpage? Details: I'm using PHP's

Re: [PHP] GetImageSize() problem...

2001-05-15 Thread Rasmus Lerdorf
I might have the same problem with PHP 4.0.5 (win2k). Some of the images from my Kodak DC-260 digital camera, are not recognized correctly by getimagesize for some reason.. Example: ?php $imagehw = GetImageSize(http://maasdelta.eve-software.com/foto/kinderspelen/P0007811.J PG);

[PHP] Are constants more efficient than variables that never change?

2001-05-15 Thread Noah Spitzer-Williams
I may have a variable that changes page to page, but once it loads up, it never needs to be changed on that page. So my question is should i just do: define(myvar, 3); OR: $myvar = 3; does defining it make that much of a difference (if i have several of these variables that could be defined

Re: [PHP] Image Upload??

2001-05-15 Thread Toby Dacre
chmod the file or directory so that php can access it it doesn't run as you! -- 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] Are constants more efficient than variables that never change?

2001-05-15 Thread CC Zona
In article 9dsknt$fb1$[EMAIL PROTECTED], [EMAIL PROTECTED] (Noah Spitzer-Williams) wrote: So my question is should i just do: define(myvar, 3); OR: $myvar = 3; does defining it make that much of a difference (if i have several of these variables that could be defined instead).

Re: [PHP] Are constants more efficient than variables that never change?

2001-05-15 Thread Noah Spitzer-Williams
Ok, I'm only wondering this because I'm tryin to decrease the load time significantly because each page has to go through a lot of stuff before they're loaded and with the volume of hits it gets, i need anything to help out - Noah CC Zona [EMAIL PROTECTED] wrote in message 9dsm85$kgl$[EMAIL

Re: [PHP] ORDER PROBLEMS

2001-05-15 Thread Miles Thompson
Rafael, Couple of things ... see below. I'm doing this without checking the MySQL docs, so validate this against them. At 08:22 PM 5/15/01 -0300, Rafael Faria wrote: Hello Guys, i'm with problems first i try to add a value like 8.55 into my sql data base that was set up to DOUBLE (10,0)

[PHP] Need a little help with array

2001-05-15 Thread Richard Kurth
I am trying to get the first name and Last name plus the email address out of the database in a format like this Richard Kurth[EMAIL PROTECTED];Richard Kurth[EMAIL PROTECTED] so I can put it in the BCC section of a mail all customer program What I have below works for getting the

[PHP] PHP vs Perl security

2001-05-15 Thread Jeff
Hi. Are there any known/posssible security issues with PHP using SSL? I'm trying to figure out if it would be better to user Perl or PHP based on their security features/flaws. I'm sure there's holes in both, but which one has the bigger hole...? Thanks, Jeff -- PHP General Mailing List

[PHP] EREGI -- Help

2001-05-15 Thread Jason Caldwell
I'm just trying to create a eregi expression that will evaluate a zip code... and I cannot get it to work... can anyone assist me with this? -- also, is there a site that shows regular expression examples for checking fields like, zip codes, phone numbers, etc...

Re: [PHP] free php/mysql hosting

2001-05-15 Thread Philip Olson
See the following : Where can I find some free hosting space by an ISP offering PHP. http://www.faqts.com/knowledge-base/view.phtml/aid/4058/ regards, philip On Tue, 15 May 2001, Christian Dechery wrote: Does anyone knows any good free php/mysql hosting other than www.f2s.com??

RE: [PHP] PHP vs Perl security

2001-05-15 Thread Maxim Maletsky
both are cool. never heard of any holes as such, Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Jeff [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 16, 2001 11:26 AM To:

RE: [PHP] Need a little help with array

2001-05-15 Thread Maxim Maletsky
Try this instead: $sql = SELECT CONCAT(fname, ' ', lname, '', email, '') AS str_email FROM customers ; and then the rest of your code.. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com

[PHP] referer from email client

2001-05-15 Thread Eris Ristemena
hellos, how can we know the referer link is from an email client like outlook ? i have tried this, and the $HTTP_REFERRER is empty. thanks ers __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/

Re: [PHP] Recursively create directories

2001-05-15 Thread Gregory Hernandez
Hello. I just registered to the listserv about two weeks (my 1st time typing here). I'm just curious, if you don't mind me asking. I'm just trying to learn more. But, would someone list any scenarios in which one would want to create directories recursively by using php? Thanks in advance.

Re[2]: [PHP] Need a little help with array

2001-05-15 Thread Richard Kurth
Hello Maxim, This works great except that it does,t print the email if I take the '' '' off then it does but I need those Tuesday, May 15, 2001, 7:58:28 PM, you wrote: Maxim Maletsky Try this instead: Maxim Maletsky $sql = Maxim MaletskySELECT Maxim Maletsky CONCAT(fname, ' ',

RE: Re[2]: [PHP] Need a little help with array

2001-05-15 Thread Maxim Maletsky
because '' is an 'lt;', look at the source of your HTML file when you are outputting these emails for testing. or do htmlentities(); Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message-

RE: [PHP] referer from email client

2001-05-15 Thread Maxim Maletsky
That is a javascripts job. Look at extreeme tracking's code. They have that. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Eris Ristemena [mailto:[EMAIL PROTECTED]] Sent:

Re[4]: [PHP] Need a little help with array

2001-05-15 Thread Richard Kurth
Hello Maxim, That is neat Tuesday, May 15, 2001, 8:44:57 PM, you wrote: Maxim Maletsky because '' is an 'lt;', Maxim Maletsky look at the source of your HTML file when you are outputting these emails Maxim Maletsky for testing. or do htmlentities(); Maxim Maletsky Sincerely, Maxim

[PHP] Uptime script?

2001-05-15 Thread Ryan Christensen
I know I've seen one before, and before I go write my own version, does anyone know of a PHP script that echoes the uptime of a server (Linux) in days,hour,minutes, etc? Thanks! Ryan Christensen -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Uptime script?

2001-05-15 Thread Tyler Longren
exec(uptime); or system(uptime); Tyler -Original Message- From: Ryan Christensen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 11:43 PM To: [EMAIL PROTECTED] Subject: [PHP] Uptime script? I know I've seen one before, and before I go write my own version, does anyone

RE: [PHP] SSL and CURL question --

2001-05-15 Thread Leavell Digital Design
Can't help you with your code but, you may want to check out the snoopy class at Sourceforge.net. http://sourceforge.net/projects/snoopy/ It uses ssl and cURL. Works pretty well. Kevin Leavell Leavell Digital Design Inc. P 406.829.8989 C 406.240.4595 --- -Original Message- --- From:

Re: [PHP] Crypt is not supported in this build??? 4.0.5

2001-05-15 Thread elias
I guess you got the small package of PHP 4.0.5, you can go to www.php4win.de or www.php.net and download the php crypt extension and modifiy the php.ini to enabled it. -elias Brandon Orther [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I just

Re: [PHP] nested functions

2001-05-15 Thread elias
good question...I might need an answer when you get one. -elias Johannes Schmiderer [EMAIL PROTECTED] wrote in message 9ds7le$caa$[EMAIL PROTECTED]">news:9ds7le$caa$[EMAIL PROTECTED]... Is there no way to access the $x within the inner function: function outer() { $x = 50; function

RE: [PHP] IMAP/POP3/OUTLOOK Question .. NEW! ... Complimantary

2001-05-15 Thread Don Read
On 14-May-01 Mattias Segerdahl wrote: Hi, I was wondering if someone could help me explain how Microsoft OUTLOOK knows which emails that it has downloaded from the server, as far as I know, there isn't any way of marking the email in a pop3 queue that they have been either read or

Re: [PHP] Newbie-Continue Line of Code

2001-05-15 Thread Gyozo Papp
that's great :) From: scott [gts] [EMAIL PROTECTED] then people would think you're a perl programmer ;) In theory you could put all your code on one line. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

<    1   2