[PHP] Can it be doen with Array????

2003-01-02 Thread Scott Fletcher
Hi! I know that it can be done with certain variables that can overwrite another variable. Like $test = "123"; $other = "xyz"; $test = $other; What about the Array? Can this be done? $array_test[1] = "abc"; $array_test[2] = "jkl";

Re: [PHP] Can it be doen with Array????

2003-01-02 Thread Scott Fletcher
PROTECTED]... > Bah, I meant > > $a[] = "0"; > $a[] = "1"; > $b = $a; > > echo $b[0]; > > > -Original Message- > > From: Gareth Hastings [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, January 02, 2003 5:05 PM > > To: &#

[PHP] session_start() in php.ini does not work on Microsoft IIS

2003-01-06 Thread Scott Fletcher
Hi! It have been a while that I don't remember how did I jogged MS-IIS's memory or something. Perhap a baseball bat will help. I'm not here to ask for help on writing script for session ID or stuffs like that. I'm here asking for help in jogging IIS's memory with a baseball bat. When I

[PHP] Re: time stamp screwing up

2003-01-06 Thread Scott Fletcher
Instead of the php function, 'time()'. Try 'date()'. Somethine like this --clip-- --clip-- You can customize the way you want the time format to be displayed. You can find it at http://www.php.net/manual/en/function.date.php and you'll see the option for dates and times. "- -" <[EMAIL PROTEC

[PHP] Re: php.ini - changes aren't taking?

2003-01-06 Thread Scott Fletcher
I'm having the same problem with II5 as you do. So, we're in the same boat. I only have one php.ini on Windows and I'm using hte same file path. I even rebooted the machine. I don't see how was I able to make it work before but not now Scott F. "Rad Craig" <[EMAIL PROTECTED]> wrote in mess

Re: [PHP] php.ini - changes aren't taking?

2003-01-06 Thread Scott Fletcher
That is correct, there's no PHP fault. It's is just IIS that aren't doing what it is suppose to be doing. I'm still working on it. "Christoph Grottolo" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Rad Craig wrote: > > Yes, I restart my WebServer (IIS 5) ea

Re: [PHP] php.ini - changes aren't taking?

2003-01-06 Thread Scott Fletcher
The funny thing is that when IIS is freshly installed on a new O/S. It is very simple to make PHP work. Then 6 months later, IIS lose itself and have harder time working with PHP.INI. "Christoph Grottolo" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Rad Cra

[PHP] Re: php.ini - changes aren't taking?

2003-01-06 Thread Scott Fletcher
Yep! I changed the working email address on my php.ini to a different email address, then stopped, started the IIS and test send myself an email. It doesn't go to the new email address and it stuck to the old email address. It is a IIS problem, not php.ini problem because it's not updating itself

[PHP] Fw: Session ID changes

2003-01-06 Thread Scott Fletcher
"[-^-!-%-" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>. .. > > Hello all, > > I need some clarification. To my understanding, each visit to php site > creates a UNIQUE Session ID (SID). And, that ID stays constants until the > browser is shutdown, or the session is specificall

[PHP] Far out!!!! More IIS problems.....

2003-01-06 Thread Scott Fletcher
I tried various methods on IIS after configuring hte PHP.INI. Such as shutting down IIS, restarting IIS and rebooting hte machine. Here's one latest addition that I found to be very far out!! What I did was I renamed the php.ini to php1.ini and goes throught the procedures. Guess what the

[PHP] Re: session_start() in php.ini does not work on Microsoft IIS

2003-01-06 Thread Scott Fletcher
ECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Scott Fletcher wrote: > > > $salt="C4155DDAF13A529594FB7C2541F4D4C7"; > > session_start($salt); > >> > > > > This is the error messages > > > > --cl

Re: [PHP] Far out!!!! More IIS problems.....

2003-01-07 Thread Scott Fletcher
I only have one php.ini on the machine and the filepath point to this one. "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > phpinfo will tell you which php.ini is used > > Scott Fletcher wrote: > >

[PHP] Found a solution to the php.ini problem on IIS.....

2003-01-07 Thread Scott Fletcher
Hi Fella! I found the problem and fixed it. I only have one php.ini which is found under 'c:\winnt\'. What happen was that a couple of months ago, someone in my company without my knowledge had made a backup copy of php.ini and put it into hte D:\ drive. So, IIS for some reason didn't go to

Re: [PHP] Far out!!!! More IIS problems.....

2003-01-07 Thread Scott Fletcher
d changed. Take care, Scott "Brian McGarvie" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > php (.exe or .dll) will look for a php.ini in both, c:\(windows_dir) and > c:\php\ (I am not sure what location takes priority - I&

[PHP] Re: session_start() in php.ini does not work on Microsoft IIS

2003-01-07 Thread Scott Fletcher
weird thing is that when I use phpinfo(). It didnt show any file path. It just said the filepath is 'php.ini', no 'c:\winnt\php.ini' at all. It just said 'php.ini' before I renamed the file. After renaming the file, it still say 'php.ini' as if nothing ha

[PHP] Re: php.ini - changes aren't taking?

2003-01-07 Thread Scott Fletcher
Hi Fella! I found the problem and fixed it. I only have one php.ini which is found under 'c:\winnt\'. What happen was that a couple of months ago, someone in my company without my knowledge had made a backup copy of php.ini and put it into hte D:\ drive. So, IIS for some reason didn't go to

Re: [PHP] Re: fletcher's checksum

2003-01-10 Thread Scott Fletcher
For a moment, I thought you were referring to me when you said "Fletcher" since it's my name also. :-) FletchSOD "Mike Ford" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > -Original Message- > > From: Dave Gervais [mailto:[EMAIL PROTECTED]] > > Sent:

[PHP] Encrypt in Javascript and Decrypt in PHP????

2003-01-10 Thread Scott Fletcher
Here's the challenging project I'm doing. I'm trying to encrypt the user_id and password in javascript and submit it. Then have PHP to decrypt the user_id and password. The only problem I have is I don't know what javascript function or javascript algorithm that can also work the same way as the

[PHP] Re: PHP and DB2

2003-01-10 Thread Scott Fletcher
Yes, it can. Use the odbc_connect. Here's what I use that work... --clip-- $database = "TEST_DB"; $user = "db2inst1"; $pass = "ibmdb2"; $cid = @odbc_connect($database,$user,$pass) or die("Unable to Connect to Database !!!") ; if ($cid == 0){ exit("Unable to Connect to Da

[PHP] Re: PHP and DB2

2003-01-10 Thread Scott Fletcher
Be care of the PHP bug on one of hte php function, odbc_fetch_row(). This function does not very well start at 0 when the odbc_fetch_row() start automatically, so you'll have to at the counter inside the function. Why is that, I do not know. Here's the example of the workaround I did. --clip--

[PHP] Re: PHP and DB2

2003-01-10 Thread Scott Fletcher
G... I meant to say "Be careful of the PHP bug". "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Be care of the PHP bug on one of hte php function, odbc_fetch_row(). This > function does not very

Re: [PHP] session_destroy problem

2003-01-10 Thread Scott Fletcher
Session Destroy will work if you provide the user a way to log out of the website. But if the user closed the browser then that's it. Session Destory can't be used because the browser is a client side and Session Destroy is a server side. So, once the browser close, it doesn't contact the server

[PHP] Re: session problem

2003-01-10 Thread Scott Fletcher
I don't normally have problem with using session functions on the Win2000 Server using IIS 5. It work pretty well. You may will want to narrow down the problem and find out if it is a session problem only or if it is something else. I don't use some of the IIS patches like the IIS Lockdown as an

Re: [PHP] Encrypt in Javascript and Decrypt in PHP????

2003-01-10 Thread Scott Fletcher
;$_POST[hiddenfield]'=MD5(CONCAT(password,$_SESSION[random]))"); > > } else { > $res=mysql_query("SELECT * FROM users WHERE user='$_POST[user]' > AND password=MD5($_POST[password]"); > } > > this example assumes passwords are stored

Re: [PHP] session_destroy problem

2003-01-10 Thread Scott Fletcher
mension Networks, Inc. > (727) 723-8388 > > -Original Message- > From: Scott Fletcher [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 10, 2003 10:58 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] session_destroy problem > > Session Destroy will work if you pro

Re: [PHP] session_destroy problem

2003-01-10 Thread Scott Fletcher
wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Friday 10 January 2003 17:39, Scott Fletcher wrote: > > Javascript has a function for performing actions on window close > That would work only if the webserver IP address is '127.0.0.1' (local > machi

Re: [PHP] session_destroy problem

2003-01-10 Thread Scott Fletcher
is run by > one central process I would think maybe it could do this onwindowclose > behaviour? Maybe a good question for the Javascript list but since it > sounds like you guys have seen this tried before maybe you already know. > > Larry S. Brown > Dimension Networks, Inc. > (72

Re: [PHP] Encrypt in Javascript and Decrypt in PHP????

2003-01-10 Thread Scott Fletcher
workaround to it. You have to manually create a MD5 algorithm in Javascript. I did the google search and got this, it is at http://www-adele.imag.fr/~donsez/cours/exemplescourstechnoweb/js_securehash/ . Pretty cool, isn't it! Take care, Scott "Scott Fletcher" <[EMAIL PROTECT

Re: [PHP] Encrypt in Javascript and Decrypt in PHP????

2003-01-10 Thread Scott Fletcher
ed the process a bit. > > > On Friday, January 10, 2003, at 11:12 AM, Scott Fletcher wrote: > > > I'll look into this and try it out. The only thing that is important > > to me > > is that the password get encrypted before transmitting across the > > internet. &

Re: [PHP] Encrypt in Javascript and Decrypt in PHP????

2003-01-10 Thread Scott Fletcher
OTECTED]">news:[EMAIL PROTECTED]... > Really, pretty cool. I don't know why I was so sure there was a md5 > function in javascript (propably because I thought is was everywhere - > untill now). Thanks for the link. > > Scott Fletcher wrote: > > >Hey! There'

Re: [PHP] Encrypt in Javascript and Decrypt in PHP????

2003-01-10 Thread Scott Fletcher
?> The Login Attempt had Failed!!"; } ?> --clip-- Enjoy! FletchSOD "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTE

[PHP] Here's the sample code for encrypting the login password....

2003-01-10 Thread Scott Fletcher
Here's the sample script that will let the user login then have Javascript encrypt the password and carry it over to PHP and have PHP encrypt the password and match the Javascript encrypted password. This script is pretty effective without the SSL. I got the script working so, I'm posting a scrip

Re: [PHP] session_destroy problem

2003-01-13 Thread Scott Fletcher
Let us know how it goes... The unload event had been tried also. The javascript have been running for a while but the network communication is a bit tricky, it haven't worked well. "Víã Ãðã " <[EMAIL PROTECTED]> wrote in message 004701c2b90d$5de0c440$0700a8c0@sp">news:004701c2b90d$5de0c440$0

Re: [PHP] Encrypt in Javascript and Decrypt in PHP????

2003-01-13 Thread Scott Fletcher
andom > string > > Gerald Timothy Quimpo wrote: > > >On Saturday 11 January 2003 12:12 am, Scott Fletcher wrote: > > > > > >>The only thing that is important to me is that the password get > >>encrypted before transmitting across the internet. > >

Re: [PHP] session_destroy problem

2003-01-13 Thread Scott Fletcher
"Tamas Arpad" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Monday 13 January 2003 15:14, Scott Fletcher wrote: > Let us know how it goes... The unload event had been tried also. The > javascript have been running for a while but th

Re: [PHP] session_destroy problem

2003-01-14 Thread Scott Fletcher
problem to be fixed. "Tamas Arpad" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Monday 13 January 2003 18:09, Scott Fletcher wrote: > It's no problem. We're all very interesting in finding out what can work. > >

[PHP] emptying hte array??

2003-01-14 Thread Scott Fletcher
How to do the proper way of emptying hte array?? Example... $a[0] = "test1"; $a[1] = "test2"; $a[2] = "test3"; $a[3] = "test4"; $a = "";<-- Is this hte proper way to do it I would like the array to be cleared before being it get to be use over and over Thanks... -- PHP General

[PHP] Re: emptying hte array??

2003-01-14 Thread Scott Fletcher
Got an email... The answer to this question is ... --clip-- $a = array(); --clip-- "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How to do the proper way of emptying hte array?? > > Example... > > $

Re: [PHP] emptying hte array??

2003-01-15 Thread Scott Fletcher
;s going to undefine it. > Just overwrite the array with a new empty array like: > > $a = array(); > > That keeps the variable an array variable type and is of course empty. > > HTH, > Jason k Larson > > Justin French wrote: > > > on 15/01/03 7:52 AM,

[PHP] Re: Windows vs Linux

2003-01-15 Thread Scott Fletcher
The default setting for hte error message is different in Windows and Linux. I had that problem but reduced it when I configure the error setting in php.ini. Window just display more error over things that aren't really an error, like an undefined variable that haven't been yet used. In Unix and

[PHP] Is there a way to substitute HTTP_REFERER for PHPSESSID ???

2003-01-15 Thread Scott Fletcher
My company's website rely heavily on $_SERVER["HTTP_REFERER"] and it use Session ID also. Problem is HTTP_REFERER is not reliable because it's data come from the web browser, just like javascript in a way. When I use the Hier Menus or the javascript, 'location.replace', it prevent the HTTP_REFERE

[PHP] Re: PHP/Flash Dynamic Graphs?

2003-01-15 Thread Scott Fletcher
I did once read the article on the website about using PHP and Flash. As we know, that HTML & Javascript is client side and the PHP is the server side. The Flash help to bridge that gap by acting as a glue that hold them together. So, it is indeed possible for the Flash to contact the PHP server

[PHP] Re: Windows PHP vs Linux PHP

2003-01-15 Thread Scott Fletcher
global register had nothing to do with it. It's the configuration in the PHP.INI. Look for error_report & display_error in php.ini. Once you reduced the error messages on the webpages, then put hte @ in front of the php variable or function Windows is not equal to Linux or Unix. Windows is

[PHP] Re: Windows PHP vs Linux PHP

2003-01-15 Thread Scott Fletcher
Well, beaten to it.. "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > global register had nothing to do with it. It's the configuration in the > PHP.INI. > > Look for error_report & display_er

[PHP] HTTP_REFERER work without a problem....

2003-01-15 Thread Scott Fletcher
Here's what I found so interesting This code, $_SERVER['HTTP_REFERER'] have worked without a problem when I use the latest Mozilla build. It even work with the HierMenus, location.replace('http://whatever.com'), and location.href = http://whatever.com... This is a good news for PHP everywher

Re: [PHP] HTTP_REFERER work without a problem....

2003-01-15 Thread Scott Fletcher
or a few years. Those three are 1) HierMenus, 2) location.replace('') and 3) location.href=''. When either one of these are in use, some browsers return with a blank in HTTP_REFERER. Cheers "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTE

Re: [PHP] HTTP_REFERER work without a problem....

2003-01-15 Thread Scott Fletcher
works for me Best Wishes & Happy New Year Paul Roberts [EMAIL PROTECTED] ++++ - Original Message - From: "Scott Fletcher" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 15, 2003 9:07 PM Subject: Re: [PHP] HTTP_REFERER wor

Re: [PHP] HTTP_REFERER work without a problem....

2003-01-15 Thread Scott Fletcher
nd be brought to the login page, it's part of the fail-safe code. I haven't come up with an alternative to HTTP_REFERER that work even better than this. So, better safe than sorry. :-) "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[E

Re: [PHP] HTTP_REFERER work without a problem....

2003-01-15 Thread Scott Fletcher
ust closed the browser without logging out. It is unfortunate that there is no better solution to this. "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > That wouldn't work if there is already a Session ID, so

Re: [PHP] HTTP_REFERER work without a problem....

2003-01-15 Thread Scott Fletcher
That sound wonderful!!! I'm looking forward to hearing about this in the near future... Thanks, Scott F. "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > --- Scott Fletcher <[EMAIL PROTECTED]> wro

Re: [PHP] HTTP_REFERER work without a problem....

2003-01-15 Thread Scott Fletcher
scene. "Christoph Grottolo" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > [EMAIL PROTECTED] (Chris Shiflett) wrote: > > >--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > >> Many PHP programmer tried

Re: [PHP] HTTP_REFERER work without a problem....

2003-01-15 Thread Scott Fletcher
.. > [EMAIL PROTECTED] (Chris Shiflett) wrote: > > >--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > >> Many PHP programmer tried to their best to use > >> HTTP_REFERER so they can keep track of which > >> webpages on the current website did the user > &g

[PHP] session_destroy have strange effect....

2003-01-16 Thread Scott Fletcher
session_destroy() do work when I logged out of the website. But if I'm logged in and open a 2nd browser and try to log in. This where the script I use to detect exisitng session and destroy it before generating a new one. Problem is that session_destroy does not work on the 2nd browser... So, my

Re: [PHP] HTTP_REFERER work without a problem....

2003-01-16 Thread Scott Fletcher
you need > to know that a client has 'returned' to your website set a cookie on their > computer. I'm sure you'll find ways to elaborate from there. You can do > all of this without requiring the user to "login". > -Kevin > > - Original Message ---

[PHP] Re: session_destroy have strange effect....

2003-01-16 Thread Scott Fletcher
Oh never mind. I found a work around to it. I can use the passthru command. Like this... --clip-- passthru("rm -f /tmp/sess_*") --clip-- "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > session_destr

[PHP] REQUEST_URI, which part of $_ is it from??

2003-01-16 Thread Scott Fletcher
Hi! Which part of $_ is the REQUEST_URI be found from? I did the print_r on GLOBALS and found that it is part of $_GET. I'm sure it will work on $_POST also. So, it meant it shoudl work on $_REQUEST["REQUEST_URI"] also Can this also be part of $_SERVER["."]??? Thanks for y

[PHP] Is there a way to undo the md5() encryption??

2003-01-22 Thread Scott Fletcher
Hi! Is there a way to do the decryption of the encrypted data with the use of md5()?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Is there a way to undo the md5() encryption??

2003-01-22 Thread Scott Fletcher
Darn!! There's no way to undo it. So, I can't use this method of encryption for my other project. In that case, I'll live. "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi! Is there a way

Re: [PHP] Is there a way to undo the md5() encryption??

2003-01-22 Thread Scott Fletcher
I had it figured out!! Don't need to decrypt it. Instead, I can encrypt the account number by javascript. Grab the unencrypted account number. Put it into two variable, encrypt the first one with PHP and match it by Javascript. If accept then I use the 2nd variable to grab the data from the d

[PHP] A way to detach the existing session data while making a new one???

2003-01-23 Thread Scott Fletcher
Hi! I'm wondering is, is there a way to lose the existing session and existing session data while making a new session id??? I can't use session_destroy() function because it affected IE users, it doesn't affect the non-IE user at all. I got so tired of problems with IE and having it to wor

Re: [PHP] A way to detach the existing session data while making a new one???

2003-01-23 Thread Scott Fletcher
Can't do the unset either.. For some reason, the session file aren't doing what it is suppose to do. When one IE browser closed, it lose it's link to this session file in /tmp. If I remove this unused file or something, it affected other session files where other IE browsers had already esta

Re: [PHP] A way to detach the existing session data while making anew one???

2003-01-23 Thread Scott Fletcher
ay cross link themselves with old ones, I promise you, you can have 1000 concurrent sessions and no one's data will overlap unless bad programming is involved, and even then setting a value to $_SESSION only sets it for the person who view's the particular page that session code

[PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Scott Fletcher
Found a PHP bug, I'm using PHP version 4.2.3. I have been struggling with why PHP code failed to work with the month is August or September, so I have been playing around it and found the problem. I recently wrote a demo script for you all to play around with. Let me know which PHP version does

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Scott Fletcher
D9FFBE5D@chef... > > > -Original Message- > > From: Scott Fletcher [mailto:[EMAIL PROTECTED]] > > > > Found a PHP bug, I'm using PHP version 4.2.3. I have been > > struggling with > > why PHP code failed to work with the month is August or > > Sep

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Scott Fletcher
I'm referring to '08' and '09' that don't work "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > --- Scott Fletcher <[EMAIL PROTECTED]> wrote: > > Found a PHP bug &g

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Scott Fletcher
> > > >"Kirk Johnson" <[EMAIL PROTECTED]> wrote in message > >B11731D518B5D61183C700A0C98BE0D9FFBE5D@chef">news:B11731D518B5D61183C700A0C98BE0D9FFBE5D@chef... > > > > > > > -Original Message- > > > > From: Scott Fletcher [mailto:[E

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Scott Fletcher
Whoop! FOund it, it is doubleval()... What does settype() do exactly "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I do know that integer, string, double, float, etc are different.. I > have bee

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Scott Fletcher
I would need to use intval() to solve this problem "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm referring to '08' and '09' that don't work > > "Chris Shiflett&qu

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Scott Fletcher
Yea, it's too bad that not many people know about it. I first asked and they told me it is done automatically. That was 3 years ago. I never had a problem for 3 years until now. So, I'm going back to the old way as I did in Javascript and C programming. I first started PHP 3 years ago, so it's

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Scott Fletcher
from hwen floats > were called doubles... > > Scott Fletcher wrote: > > >Whoop! FOund it, it is doubleval()... > > > > > >What does settype() do exactly > > > > > >"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message > >[E

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Scott Fletcher
Aw nut!!! The intval() doesn't work.. I had enough, I'm going to do what Kirk Johnson recommend. That one work better..... "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Yea, it's too bad th

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Scott Fletcher
Another workaround to this problem is as an addition to Kirk Johnson's suggestion --clip-- $month = "08"; if (trim($month) == 8) { echo "You got it!!!"; } --clip-- "Scott Fletcher" <[EMAIL PROTECTED]> wrote

Re: [PHP] Found a PHP bug!!!!!!!!!

2003-01-27 Thread Scott Fletcher
message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > "Scott Fletcher" wrote: > > Double and Float are not exactly the same thing. > > > > Double is ---> 11.123 > > Float is --> .00238823993 > > I am absolutely new to PHP but what is ab

[PHP] A way to break up the string????

2003-01-29 Thread Scott Fletcher
Just curious, is there a PHP function that will break up the string for us? Here's the example --clip-- //Original $name = "Jennifer B Cuff"; //Whatever is to be end result of the original $first_name = "Jennifer"; $middle_name = "B"; $last_name = "Cuff"; --clip-- It is a mind challenging game

Re: [PHP] A way to break up the string????

2003-01-29 Thread Scott Fletcher
Wow!! A lot easier. I think I can do the counting to find out if which go which. For example, "Jennifer B Cuff" as oppose to "Jennifer Cuff". Say, I find 3 words instead of 2 then do something to it. If 2 then do something to it. Etc. I do realize that it is possible for there to be a logic

Re: [PHP] A way to break up the string????

2003-01-29 Thread Scott Fletcher
> * if there is something inbetween it's probably all middle names (allow for > several middle names for catholic dutch people that tend to have names such > as Wilhemus Antonius Johannes Maria den Braber) > Curse those people with double back names, like 'den Braber' here. Or > spaced first names.

[PHP] mail() and php.ini (Any Luck???)

2003-02-11 Thread Scott Fletcher
Hi Everyone The webserver is a Unix machine. I don't want to send the email from the Unix machine, I want to do that from Window. So, if I configure hte php.ini to find the MS-Exchange on Window and use it to send the email while the webpage is on the Unix webserver, such as form fill out an

Re: [PHP] mail() and php.ini (Any Luck???)

2003-02-11 Thread Scott Fletcher
doesn't have this problem. Thanks for the link to www.phpclasses.org . Will look into it. Scott F. "Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Wednesday 12 February 2003 02:12, Scott Fletcher wrote: > >

Re: [PHP] mail() and php.ini (Any Luck???)

2003-02-11 Thread Scott Fletcher
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Tuesday 11 February 2003 02:19 pm, Scott Fletcher wrote: > Someone send me an email to take a look at this > URLhttp://www.php.net/manual/fi/ref.imap.php . > > The send mail on Unix is too basic, not like MS-Exchange...

Re: [PHP] mail() and php.ini (Any Luck???)

2003-02-11 Thread Scott Fletcher
I can see what you meant about the MIME-encoding and stuffs. This is pretty cool also. "Reuben D. Budiardja" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Tuesday 11 February 2003 02:19 pm, Scott Fletcher wrote: > Someone

[PHP] sending e-mail with 'Bcc:' and 'Cc:' not working....

2003-02-13 Thread Scott Fletcher
I'm a little puzzled on why does either of these two, 'Bcc' and 'Cc' not work when I had successfully send the e-mail. My best guess is that I need additional header, if so then what are the required header needed to make this 'Bcc' and 'Cc' work? Here's the Internet Header from the " To: " e-ma

[PHP] php.ini for UNIX sendmail????

2003-02-18 Thread Scott Fletcher
Hi! What is the appropriate filepath with the flag command for the sendmail on the UNIX machine?? I send an email to yahoo and got the error message which I'm going to paste it here... --clip-- - The following addresses had permanent fatal errors - [EMAIL PROTECTED] --- The transcri

Re: [PHP] php.ini for UNIX sendmail????

2003-02-18 Thread Scott Fletcher
ystem by typing "where sendmail". On Tue, 2003-02-18 at 10:25, Scott Fletcher wrote: Hi! What is the appropriate filepath with the flag command for the sendmail on the UNIX machine?? I send an email to yahoo and got the error message which I'm going to paste

Re: [PHP] php.ini for UNIX sendmail????

2003-02-18 Thread Scott Fletcher
ip-- The bad thing is that when I send the mail. I never get an email back when something is not working right by using the return-path. "Adam Voigt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Oh, ok, well how about your PHP

Re: [PHP] php.ini for UNIX sendmail????

2003-02-18 Thread Scott Fletcher
wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Well your missing your \r\n at the end of your return path. On Tue, 2003-02-18 at 10:57, Scott Fletcher wrote: Here's the command... --clip-- mail("[EMAIL PROTECTED]", "the subject", $mess

Re: [PHP] php.ini for UNIX sendmail????

2003-02-18 Thread Scott Fletcher
end of your return path. On Tue, 2003-02-18 at 10:57, Scott Fletcher wrote: Here's the command... --clip-- mail("[EMAIL PROTECTED]", "the subject", $message, "From: webmaster@$SERVER_NAME\r\n" ."Return-Path: [EMAIL PROTECTED]&qu

[PHP] Using mail() function in php.ini (Unix/Linux)

2003-02-18 Thread Scott Fletcher
For those of you who don't know it or are struggling with the problem with the slow sending of hte e-mail behind the firewall. This problem doesn't alway lie with the DNS itself. The workaround to the problem is the hostname resolution or the alias to the hostname. Just open up the /etc/hosts fi

Re: [PHP] php.ini for UNIX sendmail????

2003-02-19 Thread Scott Fletcher
> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is there any way to specify to use a remote smtp server in the php.ini > > On Tue, 18 Feb 2003, Scott Fletcher wrote: > > > Well, okay, even with the '\r\n' path, I still have problem. Here

[PHP] Finally!!! A workaround to mail() in PHP...

2003-02-19 Thread Scott Fletcher
Finally a workaround to the problem in mail() in PHP I did the posting somewhere, so I'll cut to the chase by posting it here My recent posting does not work too well --clip-- This is for any Unix or Linux machine using the Sendmail. However, no guarentee that it would work in Windo

[PHP] mail() using "Return-Path:" and "Error-To:"....

2003-02-19 Thread Scott Fletcher
Hiya fellas I'm doing the test on sending emails and what I found is that I haven't got these two to to work which is "Return-Path:" and "Error-To:" Does anyone know why does it not work??? Here's my sample codes --clip-- $Header = "From: [EMAIL PROTECTED]\r\n"; $Hea

Re: [PHP] Finally!!! A workaround to mail() in PHP...

2003-02-19 Thread Scott Fletcher
ot;>news:023901c2d836$773f83c0$6400a8c0@DANNYS... > I'd say an even simpler workaround would be to add '[EMAIL PROTECTED]' as > the fifth parameter to the mail function - just as in example 3 of the docs. > > Danny. > > - Original Message - > From: "Sc

Re: [PHP] Finally!!! A workaround to mail() in PHP...

2003-02-19 Thread Scott Fletcher
can safely use the 5th parameter... "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > That doesn't work either because this machine's SMTP doesn't know it's user > in it's own domain, s

[PHP] Re: mail() using "Return-Path:" and "Error-To:"....

2003-02-19 Thread Scott Fletcher
'm glad to see it coming to an end. "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hiya fellas > > I'm doing the test on sending emails and what I found is that I haven't > got the

[PHP] php.ini - PHP version 4.3.1 - CGI Error....

2003-03-10 Thread Scott Fletcher
ot figured out why is that. By the way, I'm using IIS 5.0 The error message I got are --clip-- CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: --clip-- Can anyone help me out? Thanks Scott Flet

[PHP] Please Help.. cgi.force_redirect does not work

2003-07-03 Thread Scott Fletcher
Hi! To make the long story short, we use IIS 5.0 with PHP 4.0.6 for a while. Then we builted a new database server, SQL-2000 and point the website to the new server. Then we notice the problem with the CGI error. So, we last week downloaded the PHP 4.3.3 and update the IIS with the newer PHP

[PHP] Re: Please Help.. cgi.force_redirect does not work

2003-07-03 Thread Scott Fletcher
Oddly, the CGI Error message is intermitted. It come on some of the time and some of the other time doesn't. What is the problem here.? "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi! > > To make the long story short, we

[PHP] odbc_result...

2003-07-08 Thread Scott Fletcher
Hi! Is there a way to verify that odbc_resut($result,1) is successfull or not. I'm not talking about --snip-- $result = odbc_exec($connect,$ask); if ($result) { echo "Successfull!"; } else { echo "Failed!!"; } --snip-- --snip-- $result = odbc_exec($connect,$ask); $db_result =

Re: [PHP] PHP4 and PHP5 at one machine

2003-07-09 Thread Scott Fletcher
Well, it is not possible to run two seperate php4ts.dll file in the same file path with the same file name even though they have different version. One workaround to it would be to compile the older version into a different file name while making sure the script point to that different file name bu

Re: [PHP] Refresh PHP

2003-07-09 Thread Scott Fletcher
PHP session functions and $_SESSION work kind of funny with Internet Explorer while this problem rarely happen in 3rd party browser due to the bad design of Internet Explorer... It's a microsoft problem. I have this similiar problem with Internet Explorer. The workaround to the problem I have is

[PHP] $_SESSION act funny...

2003-07-09 Thread Scott Fletcher
Noticed that if I assign data to a $_SESSION array and go to the next webpage then you'll have that new data. If you go to the next webpage by using the same file (webpage) or a $_SERVER['PHP_SELF'], the data in the $_SESSION array remain the same, it does not change as it should. But if you do t

  1   2   3   4   5   6   7   8   >