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

[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

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

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

2003-01-23 Thread Scott Fletcher
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 is on. On Thu, 2003-01-23 at 12:33, Scott Fletch

[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
I don't see why a string wouldn't work when I use 08 (string) and match it against the integer 8, or 08. Kirk Johnson [EMAIL PROTECTED] wrote in message B11731D518B5D61183C700A0C98BE0D9FFBE5D@chef">news:B11731D518B5D61183C700A0C98BE0D9FFBE5D@chef... -Original Message- Fro

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 ... if ($month == 01) I guess you mean: if ($month == '01')

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

2003-01-27 Thread Scott Fletcher
le, only the value as it is used in a calculation or an if() statement) or settype (alters the variable). Kirk Johnson [EMAIL PROTECTED] wrote in message B11731D518B5D61183C700A0C98BE0D9FFBE5D@chef">news:B11731D518B5D61183C700A0C98BE0D9FFBE5D@chef... -Original Message-

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 been using hte appropriate met

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 [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:

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

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

2003-01-27 Thread Scott Fletcher
Scott Fletcher wrote: 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 hav

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 that not many people know about it. I fir

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 in message [EMAIL PROTECTED]">news:[EMAIL P

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

2003-01-27 Thread Scott Fletcher
s:[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 above (since PHP seems to take most of its low-level terminology from C) is a fixed point number and

[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 to

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] Simple Math Calculation Problem....

2003-08-01 Thread Scott Fletcher
Hi! I'm a little stuck with this simple math problem. I'm trying to get a number of days in integer, not float. --snip-- $input_date = 12/16/2002; $UserInput = explode(/, $input_date); $UserInputMonth = $UserInput[0]; $UserInputDay = $UserInput[1]; $UserInputYear =

Re: [PHP] Simple Math Calculation Problem....

2003-08-01 Thread Scott Fletcher
The int() function is for C/C++ programming only. This Int() function is not supported in PHP. In PHP it would be Intval(). For float, Floatval(). For double, DoubleVal(). Etc. But beware of the Octual numbers. Skate [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] $Days =

Re: [PHP] Simple Math Calculation Problem....

2003-08-01 Thread Scott Fletcher
PROTECTED] I used your snip you just posted and changed the $Days = round(Days) to $Days = round($Days) and got 228. -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 9:18 AM To: [EMAIL PROTECTED] Subject: [PHP] Simple Math Calculation Problem

Re: [PHP] How to get exec() to display output from UNIX Shell Environemnt?

2003-08-05 Thread Scott Fletcher
PROTECTED] On Tuesday 05 August 2003 05:20 pm, Scott Fletcher wrote: Hi! How do I get the php function exec() to spit out the data from the Unix Shell Environment onto the webpage? I mean, I can create a script in bash shell environment using the terminal on the Unix machine and it would spit

Re: [PHP] Formatting an ascii characters in php?

2003-08-08 Thread Scott Fletcher
Thanks for the tips. I did look into this webpage just the same one as you provided in the link before I post a message in this newsgroup. That webpage said, ascii2ebcdic() is an Apache-specific function which is available only on EBCDIC based operating systems (OS/390, BS2000). Problem is I

Re: [PHP] Is PHP cable of handling ASCII characters???

2003-08-09 Thread Scott Fletcher
I don't see how. The data when recevied is already in pieces through the exec() to PHP which convert the PHP variable into an array. Can not store the data into a file on the machine because it is illegal to do so. Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip]

Re: [PHP] Is PHP cable of handling ASCII characters???

2003-08-09 Thread Scott Fletcher
Yea, receiving the data in a serial stream through cURL from someplace into an array() by using exec() function. Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] Is PHP cable of handling the ASCII characters? Back then, I had no problem with it when there are

[PHP] Formatting an ascii characters in php?

2003-08-09 Thread Scott Fletcher
Hi! I use the cURL to send and receive data regardless of what data format is the data in. There are certian ascii characters in the data, like 'LF' for line feed, 'CR' for carriage return, etc. This time I came upon a problem where one of those ascii character caused PHP to get tripped up.

Re: [PHP] Re: fsockopen/ssl

2003-08-14 Thread Scott Fletcher
file it started right up is working great! Thank you for the point in the right direction! Wendy Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Try https://; instead of ssl://, this is what is normally done. As for your problem. It look like the private key when

[PHP] Is PHP cable of handling ASCII characters???

2003-08-14 Thread Scott Fletcher
Hi! Is PHP cable of handling the ASCII characters? Back then, I had no problem with it when there are 'a', 'b', 'c' characters as well as 'LF', 'CR', etc. But when there is a 'NUL' character, it tripped up PHP so I am wondering if ASCII characters is fully supported. Thanks, Scott --

[PHP] Validate The Last Day of Month with server's clock????

2003-08-14 Thread Scott Fletcher
Hi! Here's a trick script. We know that some months have the last day which is 30 while other is 31. As for February, it can be either 28 or 29. So, what's the trick in using the php to find out what is the last day of the month if you want to checked it against the server's clock to find

Re: [PHP] Validate The Last Day of Month with server's clock????

2003-08-14 Thread Scott Fletcher
the date to the first day of the month after the one you want and then subtract one day. HTH Nick On Wednesday 13 Aug 2003 8:00 pm, Scott Fletcher wrote: Hi! Here's a trick script. We know that some months have the last day which is 30 while other is 31. As for February, it can be either

Re: [PHP] Validate The Last Day of Month with server's clock????

2003-08-14 Thread Scott Fletcher
Ah! that seem nicer when just using the script ($month+1)... Cpt John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] From: Nicholas Robinson [EMAIL PROTECTED] The 'usual' trick is to set the date to the first day of the month after the one you want and then subtract

Re: [PHP] Is PHP cable of handling ASCII characters???

2003-08-14 Thread Scott Fletcher
-08-2003 TIME 16:32:35 V001 [22] = END -- EXPERIAN CODE ) --snip-- Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Scott Fletcher ([EMAIL PROTECTED]): Yea, receiving the data in a serial stream through cURL from someplace into an array() by using exec

[PHP] How to get exec() to display output from UNIX Shell Environemnt?

2003-08-14 Thread Scott Fletcher
Hi! How do I get the php function exec() to spit out the data from the Unix Shell Environment onto the webpage? I mean, I can create a script in bash shell environment using the terminal on the Unix machine and it would spit out the background information from the O/S along with the shell

[PHP] Re: PHP and quickcommerce.com

2003-08-14 Thread Scott Fletcher
Well, if you have the manual or documentation from quickcommerce.com on what to give to them that they need to work for you then you should have no problem writing up a script on what to send to quckcommerece.come James Johnson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello,

Re: [PHP] Re: shell script not working with shell_exec

2003-08-14 Thread Scott Fletcher
] wrote in message news:[EMAIL PROTECTED] * Thus wrote Scott Fletcher ([EMAIL PROTECTED]): What you will need to do is to login using the Apache account from the terminal login and execute the command line code. If it doesn't work then you know the problem had nothing to do with Apache and PHP

[PHP] Re: Reading mail with PHP?

2003-08-14 Thread Scott Fletcher
Well, I use the php function mail(). This is the one that is compiled with php by default. You may also have to check the php.ini for proper information depending on the O/S you're using. I frankly don't have problem with mail() and it work great. Sometime, it take some tweaking to your

[PHP] Re: shell script not working with shell_exec

2003-08-14 Thread Scott Fletcher
It doesn't really do you much by changing the file permission and ownership to Apache. By the way, it would be nobody:nobody when it come to Apache, not apache:apache. What you will need to do is to login using the Apache account from the terminal login and execute the command line code. If it

[PHP] Precision value in PHP??

2003-08-14 Thread Scott Fletcher
When I do this calculation, 77 * 2.00 = 154.00 but with PHP, it return only 154. So, how do I set the precision value. I looked up on PHP.net and it once mentioned about BC Math but I'm not looking forward to recompiling PHP and Apache with the prefix option to enable the BC Math. There have to

Re: [PHP] Validate The Last Day of Month with server's clock????

2003-08-14 Thread Scott Fletcher
True but I just only want the day date, don't want the number of seconds. Mike Ford [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 13 August 2003 20:05, Nicholas Robinson wrote: On Wednesday 13 Aug 2003 8:00 pm, Scott Fletcher wrote: Hi! Here's a trick script. We

[PHP] Re: fsockopen/ssl

2003-08-14 Thread Scott Fletcher
Try https://; instead of ssl://, this is what is normally done. As for your problem. It look like the private key when generated was too short, this can be overcomed by entering more characters at the time of the generation of hte key. But from your comments, you mentioned that from the article

Re: [PHP] Validate The Last Day of Month with server's clock????

2003-08-14 Thread Scott Fletcher
to see the last day of Febraury (Then insert the next month to find out). echo strftime(%d, mktime(0,0,0,3,0,2004)); --snip-- Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Alright, interesting thought, never thought it would be possible. So, what would

[PHP] Re: Restricted access

2003-08-14 Thread Scott Fletcher
There is a easier way, I use this all the time and I don't have a problem with it. Sometime the header() need some tweaking to make it work right. You must include an exit() function after the header() due to bugs and bugs in IE. This script below is what I use for file download. Instead of

[PHP] Re: Date Validation, Kinda'

2003-08-21 Thread Scott Fletcher
I did similiar posting about finding the last day of the month last week and got some response. So, I'll just post some clipping from php.net for you. If your machine support the php mktime() then you're in for luck. You can find more info about it at php.net with the function, date() and

[PHP] Any similiar function to number_format????

2003-08-21 Thread Scott Fletcher
Hi! Wondering if there is any similiar function to a php number_format(). This time, without a period. For example, if I get a '1', I would like to format it to be '01' in two digit. Thanks, Scott F. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Quotes in regular expressions

2003-08-21 Thread Scott Fletcher
Try parsing it as a string where the double quote would become a string. See if that help. (Parse the whole characters into strings then find the double quote.) Thaddeus J. Quintin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -- SNIP -- If single-quoting (better, if you don't

Re: [PHP] is the list getting virus spammed?

2003-08-21 Thread Scott Fletcher
Oh, it is normal for college campus to get virus spreading around because it's one of the few places where many different people interact into from home or business, so it get easy for it to go around. Filtering the virus is a bit difficult because some aren't by emails. Richard Baskett [EMAIL

Re: [PHP] Any similiar function to number_format????

2003-08-21 Thread Scott Fletcher
I do that all the time and it is very helpful. I just kind of wonder if there is a php function that would do it all for me. Just got this idea when I use the number_format() and it made me wonder about whether is there such a function as this or not. (Hey Jay! Thanks for the response by the

Re: [PHP] Quotes in regular expressions

2003-08-21 Thread Scott Fletcher
for single quotes, and, failing that, one for double quotes. not the prettiest answer, but I put good comments around it! Thaddeus Scott Fletcher wrote: Try parsing it as a string where the double quote would become a string. See if that help. (Parse the whole characters into strings

[PHP] Using rand() for 10 digit numbers????

2003-09-05 Thread Scott Fletcher
Hi! I looked at the rand() at php.net which spoke about min and max random number. So, I use rand(0,99) to get a 10 digit random number but it only return an 1 digit random number that is displayed at '0'. So, I tried rand(0,) with 4 digit random number and got the random

Re: [PHP] Using rand() for 10 digit numbers????

2003-09-05 Thread Scott Fletcher
How interesting. Yours work while mine doesn't. All I did was .. --snip-- $randomNumber = rand(0,99); echo $randomNumber; --snip-- What PHP version do you use? I only have version 4.3.1 on the machine. Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip]

Re: [PHP] Using rand() for 10 digit numbers????

2003-09-05 Thread Scott Fletcher
Could be Robert Cummings [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] It probably wraps the standard C rand() function which only takes an unsigned integer which is usually 16 bits. Cheers, Rob. On Fri, 2003-09-05 at 12:34, Scott Fletcher wrote: Hi! I looked

[PHP] Re: PHP code generation

2003-09-05 Thread Scott Fletcher
What are the example of code generation project? Are you referring to the generation of the random characters? Chris Hubbard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm working on a code generation project. Is there anyone on the list who has experience building these

[PHP] Very interesting.....

2003-09-05 Thread Scott Fletcher
I tried your code on this machine and I got this... --snip-- 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Re: [PHP] Using rand() for 10 digit numbers????

2003-09-05 Thread Scott Fletcher
Very Interesting. I tried your code on my machine and I got this... --snip-- 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Re: [PHP] Very interesting.....

2003-09-05 Thread Scott Fletcher
There isn't one in php.ini. Could this be the problem? Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] I tried your code on this machine and I got this... 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0. [/snip] What is your numeric precesion set to in the

Re: [PHP] Using rand() for 10 digit numbers????

2003-09-05 Thread Scott Fletcher
Continue(ing) of this replying go into the title, 'Very Interesting'. Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Very Interesting. I tried your code on my machine and I got this... --snip-- 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Re: [PHP] Very interesting.....

2003-09-05 Thread Scott Fletcher
It is not there, so I added it and restarted Apache. Still got the same result. How is PHP is built into Apache was done by downloading the tar.gz file from php.net and compile it. Then compile Apache, had it take in PHP. So, when it was done, there is never a php.ini there. So, I create one

Re: [PHP] Very interesting.....

2003-09-05 Thread Scott Fletcher
Will do that once I get a newer PHP version. No time for it right now. :-) The workaround to rand() I did was to use it twice and add up the result. For ex. --snip-- $randomNumberLeft = rand(0,9); $randomNumberRight = rand(0,9); $randomNumber = $randomNumberLeft.$randomNumberRight;

[PHP] Using PHP to do something with Acrobat PDF....

2003-09-12 Thread Scott Fletcher
Hi Fellas!! Know of any good websites that would provide tutorials, step-by-step, and/or a PHP scripts of creating a PDF, putting datas into PDF, along with Printing PDF, Saving PDF files, etc... I have no experience with using PHP and PDF so I need both a tutorial and quick, plain to the

[PHP] Using PHP to generate Acrobat PDF...

2003-09-12 Thread Scott Fletcher
Anyone have experience with it? Anyone of good information where I can do some research on? Thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Using PHP to generate Acrobat PDF...

2003-09-12 Thread Scott Fletcher
2003 at 13:17, Scott Fletcher wrote: Anyone have experience with it? Anyone of good information where I can do some research on? Have a look at www.pdflib.com. They also have a great documentation for it. We use it to put our company logo at the top af some PDF documents. Works perfectly

[PHP] Is there such a thing as number_format() in JavaScript (Instead of PHP)???

2003-09-16 Thread Scott Fletcher
Hi Fellas! Javascript is driving me crazy. I'm not looking forward to writing a user-defined function that would do something to the numbers as number_format would do. When I do something like (1.00 + 2.34), I would expect a 3.34 in return, not a 3.34900388389495. Thanks, Scott --

[PHP] Re: Is there such a thing as number_format() in JavaScript (Instead of PHP)???

2003-09-16 Thread Scott Fletcher
Ah! Never mind. I only need to do this... AmtRequestBy = Math.round(AmtRequestBy*100)/100; That is multiplying by 100 and dividing by 100 and that will fix it. Sorry for hte Spam Scott F. Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Fellas! Javascript

Re: [PHP] Re: Is there such a thing as number_format() in JavaScript (Instead of PHP)???

2003-09-16 Thread Scott Fletcher
of number_format(). Scott Fletcher wrote: Ah! Never mind. I only need to do this... AmtRequestBy = Math.round(AmtRequestBy*100)/100; That is multiplying by 100 and dividing by 100 and that will fix it. Sorry for hte Spam Scott F. Scott Fletcher [EMAIL PROTECTED] wrote in message

[PHP] How to do Javascript for the HTML/PHP Array (See Below)

2003-09-17 Thread Scott Fletcher
Hi Fellas! Here's the clipping of an article about putting HTML variables into a PHP Array upon submission. Right now, I'm having trouble getting Javascript to do the error checking of each of the HTML variable if it's variable name is treated as an array. Anyone know of a workaround to it

Re: [PHP] SESSION variables losing data on WinXP?

2003-09-17 Thread Scott Fletcher
Speaking of your problem, you're using the header() function to exit the webpage to the login page. So, it all come down to the either one of these two or both of these two if(!isset($uname)) { if (mysql_num_rows($result) == 0) { Upon closer inspection on the script, it look like either

Re: [PHP] How to do Javascript for the HTML/PHP Array (See Below)

2003-09-17 Thread Scott Fletcher
Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] if f = your form then f.elements['MyArray[]'] is a javascript array of input elements. Scott Fletcher wrote: Hi Fellas! Here's the clipping of an article about putting HTML variables into a PHP Array upon submission

[PHP] PHP vs CGI ???

2003-09-19 Thread Scott Fletcher
Hi! I have a question. Someone said that PHP is CGI, that kind of turned my head because PHP is not like that. But I can see one thing, PHP can be compiled as either a 'Shell-Scripting-Language', 'Webserver Component' or 'Both'... PHP would be a form of CGI if it is used as Shell

Re: [PHP] PHP vs CGI ???

2003-09-19 Thread Scott Fletcher
said that its always better to use the Apache Module version. (apparently its much more stable and secure) -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED] Sent: Friday, September 19, 2003 8:38 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP vs CGI ??? Hi! I have

Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Scott Fletcher
Try $_REQUEST['pagename'] instead. Oh before you do that, try this and see if you have any received data at all in the first place. just look for 'pagename' in any arrays, don't look for $_GET['pagename'], just look for 'pagename' and see if there is any. --snip-- ? print_r($GLOBALS); ?

Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Scott Fletcher
Well, I'm using Outlook Express and it looked fine for an hour or so now. But not with the ones earlier in the morning. Strange though! Scott F. Jonathan Duncan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Perhaps it is just Outlook Express but many of your replies are showing as

Re: [PHP] Re: Header won't redirect

2003-09-19 Thread Scott Fletcher
But Jay Blanchard situation wasn't the only one. It's the same for other people. Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Well, I'm using Outlook Express and it looked fine for an hour or so now. But not with the ones earlier in the morning. Strange though

[PHP] $_SESSION stuffs that come with php.ini

2003-09-26 Thread Scott Fletcher
I have been building the website for 6 months with everything and I didn't have hte php.ini on it. Just didn't realize it, so I create the php.ini that come from php.ini_dist that came with php source code. Now the $_SESSION doesn't work. I'm not able to make the php.ini to be like the one that

[PHP] Re: $_SESSION stuffs that come with php.ini

2003-09-26 Thread Scott Fletcher
Is this the one??? http://us3.php.net/session Thanks... Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have been building the website for 6 months with everything and I didn't have hte php.ini on it. Just didn't realize it, so I create the php.ini that come from

[PHP] Re: $_SESSION stuffs that come with php.ini

2003-09-26 Thread Scott Fletcher
Alright that work now Don't know why does the php.ini default is not what it should be... I found a few that aren't on the list in php.ini, but hte most important thing right now is that it is fixed... Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Is this the one

[PHP] Problem with DB2 on Linux?

2003-05-31 Thread Scott Fletcher
Hi! I do not have problem with DB2 on AIX and I had never use DB2 on Linux before. So, I installed it and it was successful but I get an error message saying that it can not create DB2 instance due to permission denied. I tried many workaround to it with no luck, so did anyone who have this

[PHP] PHP using Linter...

2003-06-09 Thread Scott Fletcher
Hi Everyone! Have anyone here ever use the Linter software? What is your opinion on this? Have anyone experienced compiling Apache/PHP with Linter and was it easy to use? Have anyone experienced writing a PHP script to access the Linter? All of those questions, is it giving you a

Re: [PHP] PHP using Linter...

2003-06-10 Thread Scott Fletcher
- From: Scott Fletcher [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2003 2:43 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP using Linter... Hi Everyone! Have anyone here ever use the Linter software? What is your opinion on this? Have anyone experienced compiling Apache/PHP

Re: [PHP] PHP using Linter...

2003-06-10 Thread Scott Fletcher
PROTECTED] Why don't you just use mySQL? -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 10, 2003 5:46 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP using Linter... Linter is a SQL database that is written by a company in Russia

[PHP] Need someone with a fresh mind on tacking this array problem...

2003-06-18 Thread Scott Fletcher
Hi, need someone with a fresh mind on tacking this problem. I haven't gotten this to work right for 1 1/2 days now. In the sample script, you will noticed that the php variable, '$ODBC_RESULT' represent a year in 4 digit, like 2003, 2002, 2001, 2000, etc... When I grab the data from the

[PHP] Re: print all variables

2003-06-18 Thread Scott Fletcher
If you want to see any data beside the form, then you can do this... print_r($GLOBALS); Only if you want to see data beside the submitted form. Matt Palermo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Could anyone tell me how to print all the variables and values from a submitted

Re: [PHP] Need someone with a fresh mind on tacking this arrayproblem...

2003-06-18 Thread Scott Fletcher
, Scott Fletcher wrote: [snip] if ($ArrayCheck == 0) { $ArrayDataCount['$ODBC_RESULT'] = 0; What happens when you remove the single-quotes? You're currently defining only one array value, with the key being the literal string '$ODBC_RESULT'--when you probably want

Re: [PHP] Need someone with a fresh mind on tacking thisarrayproblem...

2003-06-18 Thread Scott Fletcher
] On Wed, 2003-06-18 at 11:11, Scott Fletcher wrote: Well, the PHP Manual said we should be using the quote (single or double) inside the array no matter what, it also reduce the side-effect problem. It's what I read at php.net in the past. That's referring to string literals, but that might

Re: [PHP] Need someone with a fresh mind on tacking thisarrayproblem...

2003-06-18 Thread Scott Fletcher
Array());\n; } $ArrayCheck++; $ArrayDataCount[$ODBC_RESULT] = $ArrayCheck; --clip-- Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Well, I don't remember exactly where was it mentioned. It involve the array, $_SESSION, $_REQUEST, etc. where

[PHP] PHP header and odbc struggle with MS-SQL 2003...

2003-06-19 Thread Scott Fletcher
Any success with making the PHP Header and PHP odbc_connect work successfully on PHP version 4.0.2 while the IIS 5.0 is hooked up to MS-SQL 2003? We had no problem with this if IIS 5.0 is hooked up to MS-SQL 2000. I assumed it had to do with the PHP depending on the named-pipe. I just switched

[PHP] Need Instruction on how to compile PHP in Win32...

2003-06-20 Thread Scott Fletcher
Hi! I have been looking around on the website and haven't found what I'm looking for. What I am looking for is instruction on what software do I need on the machine, environment variables, etc. and the instruction on the compiling of the php as cgi executable for win32. Thanks, Scott --

[PHP] if else if statement failed...

2003-06-26 Thread Scott Fletcher
Hi! Noticed something interesting. I was helping to debug someone's programming problem and found that if there is to many 'else if' in the if and else statement then it doesn't work. Have anyone encoutered this problem and know of a workaround to it? Thanks, Scott -- PHP General

Re: [PHP] if else if statement failed...

2003-06-26 Thread Scott Fletcher
I am seeing the problem now. It seem that it had to do with the 'OR' statement inside the elseif statement... I'm going to try a workaround to it... As for you mentioning about the code... It's too bad this message window doesn't properly display the tabs --clip-- if ($firstname == \\)

Re: [PHP] if else if statement failed...

2003-06-26 Thread Scott Fletcher
Just found the problem, the if, else-if, else statement work okay when it is too many. The reason it doesn't work is because there's a loophole in the script due to someone's flaw logic or haven't thought about it when brainstorming... Thanks, Scott Scott Fletcher [EMAIL PROTECTED] wrote

[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] 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 use IIS 5.0 with PHP 4.0.6 for a while

[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

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

[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

Re: [PHP] $_SESSION act funny...

2003-07-09 Thread Scott Fletcher
I'm kind of expecting them to change because using the hyperlink to go to the next webpage should be treated as such for the same file (webpage file). The reason I'm using the same file is because of the navigation menu with all of the menu options that go to the include file... Mike Migurski

Re: [PHP] $_SESSION act funny...

2003-07-09 Thread Scott Fletcher
Oh Ha ha... I see what you meant.. The $_SESSION['test'] had already been changed from one to two, then three, then four, then back to one. I didn't see that coming.. I thought it just start at one and haven't changed at all. Thanks!!! Scott Fletcher [EMAIL PROTECTED] wrote in message news

[PHP] SQL Query slow with 'Select' ....

2003-07-09 Thread Scott Fletcher
I noticed that database are very quick with the SQL Query string such as Insert, Delete and Update. But with Select, it become very slow. I noticed that I can do the INT() or DOUBLE() for one of the field when using Select and it become very quick. But I am unable to make it work for CHAR() or

[PHP] File download by php header...

2003-07-21 Thread Scott Fletcher
Hi! I'm using PHP 4.3.2 and IIS 5.0. I'm using the PHP header to cause the webserver to download the file to the web browser. Some of the time it work and some of the other time, it doesnt. I haven't figured out why until I looked in the error log which showed hte problem... See two

Re: [PHP] File download by php header...

2003-07-21 Thread Scott Fletcher
] * Thus wrote Scott Fletcher ([EMAIL PROTECTED]): Hi! I'm using PHP 4.3.2 and IIS 5.0. I'm using the PHP header to cause the webserver to download the file to the web browser. Some of the time it work and some of the other time, it doesnt. I haven't figured out why until

<    1   2   3   4   5   6   7   >