[PHP] REGISTER_SHUTDOWN_FUNCTION() -- Still Not Working.

2003-06-16 Thread Jason Caldwell
REGISTER_SHUTDOWN_FUCNTION() still broke. http://bugs.php.net/bug.php?id=14542 This was suppose to be fixed for (Win32 platforms) in release 4.3.2, although I don't see it in the fix-log. I've been pushing to get this fixed for some time now (circa 2001.) If I knew C/C++, I'd hop in there and f

Re: [PHP] REGISTER_SHUTDOWN_FUNCTION() BUG -- Please Fix.

2002-09-17 Thread Jason Caldwell
's a "bug", it's more of a feature request. > > ---John Holmes... > > > -Original Message- > > From: Jason Caldwell [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, September 17, 2002 3:24 AM > > To: [EMAIL PROTECTED] > > Subject: [PHP] REG

[PHP] REGISTER_SHUTDOWN_FUNCTION() BUG -- Please Fix.

2002-09-16 Thread Jason Caldwell
I'm posting this here to give this BUG attention. It's a pretty serious one for Win32 users, and it would be great if it could be fixed *very quickly* -- I posted this in the Bug Reports on PHP.net on May 27th, 2002. Here's the link: http://bugs.php.net/bug.php?id=17461 I need to use this funct

[PHP] Extracting Numbers from a string.

2002-09-11 Thread Jason Caldwell
I need to extract the numbers only from a field. For example: I have an AMOUNT field and so that I can filter out any user typo's I would like to extract the numbers only. If the user enters $56.55 for example or just $56 then I would like to be able to remove the "$" and the "." keeping just t

[PHP] creating .PS or .PRN *files* from the command line or php???

2002-09-04 Thread Jason Caldwell
Does anyone know how to create .PS or .PRN files from the *command line* or PHP under Windows 2000 ??? Thanks. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP4 and MySql - Search Results Question?

2002-08-02 Thread Jason Caldwell
t; -- > Julio Nobrega > Pode acessar: > http://www.inerciasensorial.com.br > > > "Jason Caldwell" <[EMAIL PROTECTED]> escreveu na mensagem > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > I'm using PHP4 and MySQL -- > > > > I'm trying

[PHP] PHP4 and MySql - Search Results Question?

2002-08-02 Thread Jason Caldwell
I'm using PHP4 and MySQL -- I'm trying to write a small search engine -- got it working, however, what I'd like to do is return the TOTAL records found. You see, right now I am using LIMIT within my SQL -- so I only return 15 results at a time. How do I get the total (say for example there are

Re: [PHP] Re: PHP4 and MS Excel?

2002-07-30 Thread Jason Caldwell
n message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > 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: [EMA

[PHP] Re: PHP4 and MS Excel?

2002-07-30 Thread Jason Caldwell
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 an

[PHP] PHP4 and MS Excel?

2002-07-30 Thread Jason Caldwell
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? Thanks. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscri

[PHP] PHP, MySQL & multiple commands??

2002-07-25 Thread Jason Caldwell
I'd like to be able to run a mysql_query() once while executing more than one mysql command... for example: while($row = mysql_fetch_array($result)) { $query_cmd = "INSERT INTO tblTest1 (number) VALUES (1);"; $query_cmd .= "INSERT INTO tblTest2 (id, val) VALUES(LAST_INSERT_ID, 'some data

[PHP] Re: Removing Empty Lines from Text??

2002-06-24 Thread Jason Caldwell
wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > $var = preg_replace("/\n*/","\n",$var); > > "Jason Caldwell" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > >

[PHP] Removing Empty Lines from Text??

2002-06-24 Thread Jason Caldwell
Is there an elegant way to remove excess blank lines from my form data? For example; if someone enters the following text and then press' the Submit button: This is a some text This is more text, and yet even more What I want to do is remove the excess white spa

Re: [PHP] UNSET & Arrays

2002-06-06 Thread Jason Caldwell
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Friday 07 June 2002 09:04, Jason Caldwell wrote: > > i'm trying to unset an array element within my array -- > > > > my array looks like; > > > > $foo[0][magazine] > > $foo[0][subscription] >

Re: [PHP] UNSET & Arrays

2002-06-06 Thread Jason Caldwell
that didn't work. "Mark" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... first try quoting your strings and see if that helps :) $foo[0]["magazine"] On Thu, 6 Jun 2002 18:04:47 -0700, Jason Caldwell wrote: >i'm t

[PHP] UNSET & Arrays

2002-06-06 Thread Jason Caldwell
i'm trying to unset an array element within my array -- my array looks like; $foo[0][magazine] $foo[0][subscription] $foo[0][term] $foo[0][rate] $foo[1][magazine] $foo[1][subscription] $foo[1][term] $foo[1][rate] and so forth -- when i call unset($foo[0]) for example, the entire array goes aw

[PHP] Re: ob_start('gz_handler') and session_start()

2002-06-05 Thread Jason Caldwell
I should add, that I also tried the code with session_start() first, then ob_start('gz_handler') -- neither way worked. Jason "Jason Caldwell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is there a way to

[PHP] ob_start('gz_handler') and session_start()

2002-06-05 Thread Jason Caldwell
Is there a way to make ob_start('gz_handler') work with session_start()? I got them each working independently -- however, when I try to compress a session -- my page just comes up blank. Or, is there another alternative? -- I'd like to use sessions and I'd (definitely) like to compress my pag

[PHP] MSIE & GZIP problem?

2002-05-19 Thread Jason Caldwell
I have several browsers installed; NS4.x, NS6.02, Opera 6.x, and MSIE 6.0 -- I'm using gzip compression on my site through the ob_gzhandler. My pages seem to load fine, however, ONLY in MSIE when I REFRESH (i.e.. with the Refresh Button) the page seems to lose it's table or table format, and ever

[PHP] Re: ob_gzhandler encoding ???

2002-05-19 Thread Jason Caldwell
Will browsers that receive gzip encoded pages, transmit gzip encoded POST or GET data back? Jason "Jason Caldwell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Does anyone know how I can test (and see) if my ob_gzhandler() is wo

[PHP] ob_gzhandler encoding ???

2002-05-19 Thread Jason Caldwell
Does anyone know how I can test (and see) if my ob_gzhandler() is working? I've written the following script, and run it from the command line to "see" the output -- hoping it's encoded -- it isn't -- so I want to make sure I'm doing it right. some HTML code I save then run the file:

[PHP] ob_gzhandler? (compression)

2002-05-19 Thread Jason Caldwell
Is there a listing somewhere that shows which web browsers support "gz-encoded" web pages? Thanks Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Output_Buffering ??

2002-05-19 Thread Jason Caldwell
Forget the question -- I found the link I needed: http://www.php.net/manual/en/function.ob-start.php "Jason Caldwell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Can someone explain output_buffering to me? I looked on p

[PHP] Output_Buffering ??

2002-05-19 Thread Jason Caldwell
Can someone explain output_buffering to me? I looked on php.net -- but cannot find reference to it -- it's a setting in the PHP.INI file. In my *production* .ini version, the output_buffering tag is set to 4096 (4k) -- what exactly is the intent of this tag? What brought this question up was wh

[PHP] Compressing my web pages?

2002-05-18 Thread Jason Caldwell
I'm using IIS5.0 -- and PHP 4.2.1 -- I think there is a compression setting within IIS whereby the pages (before they are sent) are compressed, to be decompressed and then displayed by the browser (pending, of course, if that browser supports the HTTP 1.1 compression standard) -- My questions are

[PHP] Re: Register_Shutdown_Function ??

2002-05-18 Thread Jason Caldwell
I just upgraded from 4.1.1 to 4.2.1 -- didn't fix the problem. I'd be curious to know if other Windows users are having the same problem. Thanks. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: php.net sloooooooowwww

2002-05-18 Thread Jason Caldwell
Is there some place else I can download release 4.2.1 ??? www.php.net is dead slow, and us2.php.net is taking forever to prompt me for the download -- I keep getting hit with the "Page Cannot be Displayed" error. Looking for the Win32 binary. Thanks. Jason -- PHP General Mailing List (http:/

[PHP] php.net sloooooooowwww

2002-05-18 Thread Jason Caldwell
Anyone know why http://www.php.net is s incredibly slow today (all day) ??? Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] bug in SLEEP() function...

2002-05-18 Thread Jason Caldwell
Dunno if this has been mentioned or fixed in the latest release (I'm using PHP version 4.1.1) -- but, a script will not timeout until the sleep() function has finished it's duration -- for example: In my script, if I set "set_time_limit(30)" -- then later in the script I call a "sleep(45)" -- the

[PHP] Re: Register_Shutdown_Function ??

2002-05-18 Thread Jason Caldwell
_log('Script Terminated', 3, 'errorlog.txt');" and see if the "errorlog.txt" file is ever created -- it isn't. If anyone can offer any reason why its doing this, please help -- thanks. Jason "Cc Zona" <[EMA

[PHP] Re: Register_Shutdown_Function ??

2002-05-18 Thread Jason Caldwell
ion time of 1 second exceeded in C:\test999.php on line 7 ------ "Jason Caldwell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm playing with the register_shutdown_function --

[PHP] Register_Shutdown_Function ??

2002-05-18 Thread Jason Caldwell
I'm playing with the register_shutdown_function -- it's seems to work fine if I call exit() within my script -- however, it doesn't seem to work when the script times-out. Anyone know why? It's supposed to work in the event of an error, time-out, user-abort, or script-exit. Thanks Jason --

[PHP] Internet Explorer - BACK Button - Passwords?

2002-04-14 Thread Jason Caldwell
Don't know if anyone can help me with this one: It's not directly a PHP question -- but maybe someone knows the fix? I have a form, when the user presses the submit button, I pass the form vars to my PHP checkform.php script -- which checks all the fields to make sure the user entered the correc

[PHP] Re: mysql question --

2002-04-12 Thread Jason Caldwell
Got it figured out -- To export table structure: C:> mysqldump -d {database name} {tables} >sqltextfile.sql Then to import the new Table Structure: To import table structure / data C:> mysql {database name} mysqldump -d mydb subscribers >subscribers.sql ** edit the "subscr

[PHP] mysql question --

2002-04-12 Thread Jason Caldwell
does anyone know how to copy a tables structure (only) within mysql? thanks. jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP and PDF?????

2002-04-11 Thread Jason Caldwell
HP] PHP and PDF? > On Friday 12 April 2002 03:44, Jason Caldwell wrote: > > Does anyone have any *simple* examples of how I can go about taking a text > > file and converting it to a PDF using PHP's PDF functions? Looking at the > > documentation (http:/

[PHP] PHP and PDF?????

2002-04-11 Thread Jason Caldwell
Does anyone have any *simple* examples of how I can go about taking a text file and converting it to a PDF using PHP's PDF functions? Looking at the documentation (http://www.php.net/manual/en/ref.pdf.php on php) on the PDF functions is a bit confusing... I just want to take a text file and conv

[PHP] Clicking Once -- buttons?

2002-04-10 Thread Jason Caldwell
Is there a way I can ensure the end user clicks the submit button on a given form, *once* ? Can PHP help me with this, or would this be a job for Java? Thanks. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP & .PDF & .ZIP ???

2002-04-07 Thread Jason Caldwell
I need to automatically create a .PDF file from a *dynamically created* text file, then .ZIP that file up. Then *ultimately* have that file attached to an email and automatically sent. Can PHP do .PDF files? .ZIP Files? The caveat on the .PDF file is; it also needs to be locked (or password pr

[PHP] CCS Question -- anyone know?

2002-04-04 Thread Jason Caldwell
I have several checkboxes on my webpage -- all within a particular table. It seems there is some weird spacing *around* the (or a) checkbox as I cannot tighten up my table and my text, that contain the checkboxes -- so, it looks like the table rows are spaced out just a little too much -- kinda an

[PHP] Program Looping ?

2002-03-28 Thread Jason Caldwell
I've written a script that checks my email. However, when I run the script (from the command line) -- I want it to loop with a 5 minute delay and the ability to stop the program anytime by pressing a key on the keyboard (say) the ~ key. Anyone know how to do this? thanks. jason -- PHP Gen

[PHP] PHP & Frames?

2002-02-24 Thread Jason Caldwell
I'm trying to pass vars into a php (html) file that uses FRAMES -- top, main and bottom. The TOP frame has my menu items. The MAIN frame will show the pages, and the BOTTOM frame will have my footer stuff -- Now, when I click on a menu item in the TOP frame I want the TOP and MAIN frames to upd

[PHP] PHP4 and POP Email ?

2002-01-06 Thread Jason Caldwell
Is there a way I can * download * emails and save them to disk (as individual emails) with PHP? I know I can send (SMTP) -- but has anyone written a PHP program that receives emails? Thanks. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

[PHP] Netscape 6.1 problem and SELECT lists / FORMS

2001-10-24 Thread Jason Caldwell
NS6.1 remembers the items that were selected in a SELECT list when I call the same page back with a header() function... normally this wouldn't be a problem -- however, in my case, I am (through PHP) printing all selected items to the top of the list, and all unselected items to the bottom -- this

[PHP] Re: Removing an Array Element

2001-10-24 Thread Jason Caldwell
Julio Nobrega Trabalhando" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >Basically, I just want to know if the Key is set, and if so -- remove it... > > unset();... > > -- > > Julio Nobrega > > A hora está ch

[PHP] Removing an Array Element

2001-10-24 Thread Jason Caldwell
How can I remove an Array Element from my Array? For example: $myArray = array('100'=>'jibberjabber','200'=>'morejibberjabber','0'=>''); if(isset($myArray[0])) // here is where I want to purge Key[0] from the Array all together ; I check for the presence of Key[0], which may not be

[PHP] Re: HTML SELECT Lists -- ??? -- SOLVED.

2001-10-23 Thread Jason Caldwell
FOREACH command builds the list, omitting any SELECTED items */ foreach($states as $key=>$value) { /* If $key is in the array $selectedItems then CONTINUE the loop here (skipping the print commands) */ if(in_array($key, $selectedItems)) continue; print('&#x

[PHP] HTML SELECT Lists -- ???

2001-10-23 Thread Jason Caldwell
I have a (multiple selection) select list on my web page -- My pages are setup with Save & Go Back buttons (through sessions) -- in IE when I select multiple items (or any item) then go forward to the next page, then go back -- the items are still selected, but the select list starts at the top --

[PHP] What attribute is used ... when a session will expire?

2001-10-22 Thread Jason Caldwell
Just curious -- What system attribute is used to help in determining when a session file will be "cleaned up (GTC)" or in other words, deleted? Is it the delete time calculated based on the file's "CREATED" or "MODIFIED" time? Thanks Jason [EMAIL PROTECTED] -- PHP General Mailing List (htt

[PHP] Forms and Netscape -- spacing problem -- Help!

2001-10-21 Thread Jason Caldwell
I have "wrapped around" my web page, my form tag -- my pages are auto-expanding -- that is, always flush with the left, right, top and bottom of the users browser... in IE - the form tag (wrapped around the page) doesn't cause a problem -- however, in NS (4x - 6x) there is some additional space at

[PHP] FIXED -- !

2001-10-18 Thread Jason Caldwell
Ahh -- it seems IE has it's own set of MARGIN parameters... RIGHTMARGIN LEFTMARGIN TOPMARGIN BOTTOMMARGIN Hence: This BODY tag will work for both IE and Netscape. leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginwidth="0" marginheight="0" I was just using (previously): leftm

[PHP] Auto-Stretch and the BACK - FORWARD buttons -- HELP!

2001-10-18 Thread Jason Caldwell
I've also posted this question in a HTML news group -- but no response has come... so I'm hoping some here might have experienced this before and can be of assistance. --- My tables autostretch *with* the browser... when I click my submit button on (say) Page1/Form1 -- everything auto-stretches

[PHP] YES -- THIS SERVER IS BACK UP!

2001-06-19 Thread Jason Caldwell
T H A N K Y O U ! Jason

[PHP] Interesting Problem (Sessions and Cookies)

2001-05-24 Thread Jason Caldwell
Is there a way to store users input on *another* page (i use frames), in hidden fields, then be able to update those hidden fields as the user goes along, also, be able to extract that data when a user returns back to a previous form? I'm thinking of using this instead of Sessions or Cookies. Ba

[PHP] Date (Year) .. adding..

2001-05-22 Thread Jason Caldwell
I'm trying to figure out how to add to the year: for($x=0; $x<20; $x++) { $year = date("Y" + $x); print($year . "\n"); } I've tried several variations on the above and cannot get the year to come out. Any suggestions? Thanks Jason -- PHP General Mailing List (http://www.php.net/) T

[PHP] Passwords?

2001-05-22 Thread Jason Caldwell
I have some field error checking going on ... and when a user (say) doesn't fill in a field correctly, my error page comes up telling them. They then must click on their browsers button and make the changes. Now -- I have a password field, and when they click back, they are forced to re-enter t

[PHP] Regular Expression Help

2001-05-22 Thread Jason Caldwell
I'm trying to figure out how to "say" with a Regular Expression how to check for the following characters in a phone number: ( ) - with a length between 1 and 20 -- I've tried the following and it doesn't seem to work. eregi("^([0-9]|\\(|\\)|\\-){1,20}$") I'm not interested in checking for a

[PHP] Parsing Phone Numbers

2001-05-16 Thread Jason Caldwell
Is there a way I can modify a phone number programmatically -- for example, if I have the following phone number: 1234567890 Now there are no "-" or "." separators... and I would like to automatically add them when the user hits submit... 123-456-7890 Also, I would like to account for optional

[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... if(!(eregi("(^[0-9]{5})(\\-([0-9

[PHP] PHP & Mail (SMTP)

2001-05-14 Thread Jason Caldwell
There's a setting in the PHP.INI file called [Mail Function] - SMTP Can I programmatically set this? Or, am I for now restricted to this .INI entry? I'd like the option of sending to any one of my 3 mail servers, from one script. Thanks Jason -- PHP General Mailing List (http://www.php.net

[PHP] Mail Servers & PHP

2001-05-14 Thread Jason Caldwell
There's a setting in the PHP.INI file called [Mail Function] - SMTP Can I programmatically set this? Or, am I for now restricted to this .INI entry? I'd like the option of sending to any one of my 3 mail servers, from one script. Thanks Jason -- PHP General Mailing List (http://www.php.net

[PHP] Multiple Selections?

2001-05-13 Thread Jason Caldwell
I have a Multiple Selection HTML Field --- the user can select any number of items by holding down the CTRL key. When I submit my form to my (say) TestProg.php -- in the Hidden Input Field I only see the value for the *last* item I selected... how can I see all the items I selected? Thanks. Jaso

Re: [PHP] Hidden Input and Quotes?

2001-05-11 Thread Jason Caldwell
t;[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Jason Caldwell wrote: > > > If I have a text box and enter data into that text box with "quotes" around > > some of the text... and I want to throw that text into a HTML Hidden I

[PHP] Hidden Input and Quotes?

2001-05-11 Thread Jason Caldwell
If I have a text box and enter data into that text box with "quotes" around some of the text... and I want to throw that text into a HTML Hidden Input Field (on my next screen for example) -- the quotes will somehow jackup or truncate that text... because HTML uses "quotes" within in the Hidden In

[PHP] MySQL and LIKE?

2001-04-25 Thread Jason Caldwell
I'm trying to create a multiple pattern search using LIKE (in mySQL) -- the following doesn't seem to work and was wondering if someone knew of an easy efficient way of adding multiple search criteria. SELECT myTable.col FROM myTable, otherTable WHERE myTable.id = otherTable.ID AND otherTable.dat

Re: [PHP] Re: Linux Suggestion

2001-04-22 Thread Jason Caldwell
>> Windows XP Beta contains the sum total of what Windows has been up to now Well, kinda... but not really.. XP is a re-write and is an offshoot of 2000 (although, not really 2000 / NT) -- so it is experimental (as its still in B.) I have not experienced your problem... however, I would recommen

[PHP] Buttons and such...

2001-04-21 Thread Jason Caldwell
I know this is off-topic -- please forgive me. But I figure someone here would know. I'm looking for some really nice *professional* looking (submit, logon, buy, help, etc) buttons for my website... I've done all kinds of searches on MSN and Yahoo -- found a ton of sites that offer all kinds

Re: [PHP] PERL vs. PHP

2001-04-20 Thread Jason Caldwell
Ramus Lerdof, Are you the Ramus that created PHP? If so, just want to say -- THANKS! -- PHP is the coolest thing since Delphi !!! Really Love it! Jason "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > PHP was started as a suite of perl p

[PHP] PERL vs. PHP

2001-04-20 Thread Jason Caldwell
If I know PHP will I *basically* know PERL? Looking at some PERL code... it looks nearly identical. Thanks. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators

Re: [PHP] ENUM or SET and PHP

2001-04-20 Thread Jason Caldwell
Actually did that... plus sacrificed several small rodents, rubbing their internal organs all over the manual... in hopes that the PHP Gods would be kind and giving went into a cave for 12 years, then came back out ... having learned and understood much... but still no SET or ENUM. I've since

Re: [PHP] Regular Expressions?

2001-04-20 Thread Jason Caldwell
Ahh It makes more sense now. Thanks. Jason "Brian Clark" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi Jason, > > @ 3:08:06 AM on 4/20/2001, Jason Caldwell wrote: > > > Sorry if I seem dense. Your

Re: [PHP] Regular Expressions?

2001-04-19 Thread Jason Caldwell
he end it seems pointless? So, I guess my (dense) question is -- why? Why doesn't it just work with the [:alnum:] tag? I'm assuming ALNUM stands for Alpha-Numeric *only*? "Brian Clark" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED

Re: [PHP] Regular Expressions?

2001-04-19 Thread Jason Caldwell
gt; if you put ^ at the start of your regexp, that means you want the start of > the string to match your expression...$ is used for the end of the string... > > -jack > > -Original Message- > From: Jason Caldwell [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 20, 200

Re: [PHP] Regular Expressions?

2001-04-19 Thread Jason Caldwell
Actually ordered that very book (earlier) tonight on Amazon. Looking forward to getting it. Thanks. "Brian Clark" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi Jason, > > @ 2:19:48 AM on 4/20/2001, Jason Caldwell

Re: [PHP] Regular Expressions?

2001-04-19 Thread Jason Caldwell
ot;Brian Clark" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi Jason, > > @ 1:43:19 AM on 4/20/2001, Jason Caldwell wrote: > > ... > > I want to match any of the following: > > > 1.1 or a.a > > > or 1

Re: [PHP] Regular Expressions?

2001-04-19 Thread Jason Caldwell
Thanks Brian! Very helpful. Is there a good website that covers Regular Expressions? Jason "Brian Clark" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi Jason, > > @ 1:43:19 AM on 4/20/2001, Jason Caldwell wrote: >

[PHP] Regular Expressions?

2001-04-19 Thread Jason Caldwell
I'm looking to compare if my array values match any digits or alpha characters with a dot between them... so, if I think I understand Regular Expressions (from what I could gather from PHP.net and Core PHP Programming by Leon Atkinson.) I want to match any of the following: 1.1 or a.a or .1

[PHP] Last Element in an Array?

2001-04-19 Thread Jason Caldwell
Is there a command which will tell me that it is the last in an array? When I use END it just gives me the value IN the array... I want to know when I hit the last element in an array... This is driving me crazy... Thanks. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] PHP and Ranges

2001-04-19 Thread Jason Caldwell
is there a way to compare a value to a preset range. for example; $preset_ range = [0...65535] $a[0] = "12"; $a[1] = "198"; $a[2] = "B"; $ac = count($a); for($x=0; $x < $ac; $x++) { if($a[$x] != $preset_range) { $valid = 0; } else { valid = 1; } pr

[PHP] ENUM or SET and PHP

2001-04-19 Thread Jason Caldwell
Does PHP sport an ENUM or SET statement? Or, equivalent? Thanks. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] PHP and Double?

2001-04-18 Thread Jason Caldwell
how can i separate the digits in a Double number? for example: if i have 3.2 i would like to separate the digits into 3 and 2 and assign each to its own variable, like so numb1 = 3 numb2 = 2 thanks. jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PRO

Re: [PHP] mySQL Question....

2001-04-17 Thread Jason Caldwell
just don't want dups to show up in my SELECT queries. Thanks. Jason ""Jason Caldwell"" <[EMAIL PROTECTED]> wrote in message 9bj9ld$pad$[EMAIL PROTECTED]">news:9bj9ld$pad$[EMAIL PROTECTED]... > if i perform a SELECT query (say) like the following: > &

[PHP] mySQL Question....

2001-04-17 Thread Jason Caldwell
if i perform a SELECT query (say) like the following: SELECT email_addr FROM myTable WHERE x = 1 in this query i want to pull-out (or list) all email addresses where x equals 1, however, suppose i don't want any duplicate email addresses... would i use ORDER BY and COUNT(*) to get listing of no

[PHP] True Appreciation

2001-04-16 Thread Jason Caldwell
Many THANKS! I find this newsgroup to be one of the *best* I've come across! Responses are quick, usually detailed and always right on target... You guys and gals rock! Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

[PHP] General WebServer Question?

2001-04-16 Thread Jason Caldwell
Can anyone recommend (or is there) a utility / app that I can use to hit my webserver (say from another computer outside my subnet) -- any number of times to get an idea of performance - based on my bandwidth and hardware? In other words -- I'd like to do some hard core testing of my website and

Re: [PHP] Netscape 4.77 and PHP

2001-04-15 Thread Jason Caldwell
that was it i was missing the closing thanks ""Jason Caldwell"" <[EMAIL PROTECTED]> wrote in message 9bbd0v$686$[EMAIL PROTECTED]">news:9bbd0v$686$[EMAIL PROTECTED]... > I've created a test.php file that dynamically loads HTML.. works total

Re: [PHP] Netscape 4.77 and PHP

2001-04-15 Thread Jason Caldwell
WOW ! Thanks everyone... great responses :-) I will look at my tables... no doubt I goofed somewhere. Jason ""Jason Caldwell"" <[EMAIL PROTECTED]> wrote in message 9bbd0v$686$[EMAIL PROTECTED]">news:9bbd0v$686$[EMAIL PROTECTED]... > I've created a

[PHP] Netscape 4.77 and PHP

2001-04-14 Thread Jason Caldwell
I've created a test.php file that dynamically loads HTML.. works totally fine in IE 5, but when I test it with Netscape 4.77 -- nothing comes up... just a totally blank page. Anyone know why this might be happening? Thanks. Jason -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] What's XML's Purpose??

2001-04-14 Thread Jason Caldwell
amen brother! ""Plutarck"" <[EMAIL PROTECTED]> wrote in message 9baam8$6sh$[EMAIL PROTECTED]">news:9baam8$6sh$[EMAIL PROTECTED]... > I use to be really enthusiastically pro-XML just as I was getting into PHP, > but now I've basically taken a "XML shmexXML" approach. I get the initial > attractio

Re: [PHP] HTML and PHP?

2001-04-14 Thread Jason Caldwell
> > Just make sure you don't indent the closing marker or the parser will miss > > it! YES!! -- I struggled with that one for a long time... (at least a couple of hours, before I said, hmmm... let me [for giggles] remove the TABS before the closing marker... -- bam... Parser Error went away...)

Re: [PHP] PHP & MySQL Search Results

2001-04-14 Thread Jason Caldwell
Hi Jason, Say you have a search form that says search for "searchbox" and the search box has a variable name of "search": NO Valid search results. "> 1) { echo "Previous"; } if (($num > 25) && (($limit + 25) < $num)) { echo "Next."; } /* End the initial "Else" */ } ?> ___

[PHP] PHP & MySQL Search Results

2001-04-13 Thread Jason Caldwell
Does anyone know (or have) of a good example of how to create search results like a Yahoo or MSN search? for example: Say I do a search for "cars" and there are 10,000 records in my table that match "car"... I would like to show the results in blocks of (say) 25 at a time, therefore I will need

Re: [PHP] HTML and PHP?

2001-04-13 Thread Jason Caldwell
actually just test this... don't need slashes... it works GREAT! thanks. ""Jason Caldwell"" <[EMAIL PROTECTED]> wrote in message 9b8it7$npq$[EMAIL PROTECTED]">news:9b8it7$npq$[EMAIL PROTECTED]... > oh... that rocks! > > would i have to still ad

Re: [PHP] HTML and PHP?

2001-04-13 Thread Jason Caldwell
anO wrote: > >try this: > > > > >print << > > > > >jldsfajlf;dsajfl;dkfl;dsa > > > > > >EOP; > >?> > > > >AFAIK it is the easiest way to do multi-line printing! > > > >DanO > > > > > >"&

[PHP] HTML and PHP?

2001-04-13 Thread Jason Caldwell
Is there a utility that I can use that will take a bunch of HTML and encapsulate it in the PRINT command? i.e. PRINT("{html stuff}\n"); ?? I have a ton of HTML pages that I want to make dynamic, but dread having to type the PRINT command in front of every line of html, and let alone having at