[PHP] equivalent of qw?

2002-04-18 Thread Jack Dempsey
. Thanks! Jack Dempsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP 4.1.0 patch for Quanta IDE, The Sequel

2001-12-20 Thread Jack Dempsey
really? ? $THIS_IS_A_VARIABLE=1; $this_is_a_variable=2; echo $THIS_IS_A_VARIABLE\n; echo $this_is_a_variable\n; ? seems sensitive to me... Mike Eheler wrote: Cool, however PHP is not case sensitive, nor is ASP or HTML for that matter, therefore case sensitive syntax highlighting will not be

RE: [PHP] preg_grep() and limit parameter

2001-12-18 Thread Jack Dempsey
only thing i could think up would be if a user is dealing with huge amounts of text and only needs to have the first ten returned, returning/continuing past that would be wastefulnot confident on how often this would really happen and what the actual difference would be... Jack

RE: [PHP] php htpasswd

2001-12-18 Thread Jack Dempsey
not sure i follow...you open it with php do whatever you need and close it...its just a text file... -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 1:00 PM To: [EMAIL PROTECTED] Subject: [PHP] php htpasswd I'm sure question has been

Re: [PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread Jack Dempsey
a quick and inelegant hack 4.1 includes an array that has all of the data sent to the script...(or use the different ones like $_GET etc if need be) then write a globalize function that extracts the vars and declares them global...then use this snippet in an auto_prepend file to magically

RE: [PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread Jack Dempsey
: Monday, December 17, 2001 4:54 PM To: Jack Dempsey; Michael Jurgens Cc: [EMAIL PROTECTED] Subject: RE: [PHP] PHP 4.10: any way to override register_globals = OFF a quick and inelegant hack 4.1 includes an array that has all of the data sent to the script...(or use the different ones like $_GET etc

RE: [PHP] Newsgroups????

2001-12-17 Thread Jack Dempsey
a preventative measure against spamAFAIK you don't actually have to sign up for the e-mail list, you just need to give an e-mail address to prove you're not a spammer. jack -Original Message- From: Eddie Shipman [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 5:23 PM

RE: [PHP] PHP 4.10: any way to override register_globals = OFF

2001-12-17 Thread Jack Dempsey
PM To: Jack Dempsey; Michael Jurgens Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PHP 4.10: any way to override register_globals = OFF Jack $_GET is automatically global to all scopes. No need to globalize. chuck - Original Message - From: Jack Dempsey [EMAIL PROTECTED] To: Michael Jurgens

RE: [PHP] htaccess problems

2001-12-17 Thread Jack Dempsey
i don't think you want that space inbetween private/ and .htpasswd -Original Message- From: Jeremiah Jester [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 12:38 AM To: Php-General Subject: [PHP] htaccess problems I cant seem to get my htaccess file to work. Can anyone

Re: [PHP] now who can help me about cach my query every certain time:(

2001-12-16 Thread Jack Dempsey
Alawi wrote: now who can help me about cach my query every certain time:( I mean the first user requst the page and php will run query for this first time after that I want other user to have the result that the first user have it !! untill the ten minutes end I want the query to run again

Re: [PHP] Problem with Code

2001-12-16 Thread Jack Dempsey
1. http://www.php.net/ChangeLog-4.php 2. and yes, you have to specify the exact filename...your issue is that include_once is not a function in php3, if that code is infact from a php3 file... Phillip B. Bruce wrote: Hi, I have a couple of questions before I get to my problem. 1.

Re: [PHP] Brain dead - need help!

2001-12-15 Thread Jack Dempsey
use a phpinfo() in one of your pages...that'll show you various places to get your data... btw, php does have the $HTTP_GET_VARS that'll have what you want... jack Gaylen Fraley wrote: I know that I know the answer - it's just buried in the recesses of my mind .. PHP has the various

Re: [PHP] connect to a file outside the web space.

2001-12-15 Thread Jack Dempsey
how exactly do you want to connect to it? if you want to link to it in html, then it must be under the html doc root...if you're including, then you can specifiy the path... Webleycity wrote: Hello All If one creates a file outside the web space on a server. How doe's one connect to this

RE: [PHP] Can i do this?

2001-12-13 Thread Jack Dempsey
didn't check your code specifically, but you can definitely have arrays nested inside of arrays...to see how to print them out use something like print_r to look at the structure... -Original Message- From: Daniel Alsén [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 10:12

RE: [PHP] The peacock logo... and others...

2001-12-13 Thread Jack Dempsey
True...guess everyone's forgotten the ol' pocket manual... Any chance a new edition will come out? -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 2:30 PM To: Philip Hallstrom Cc: [EMAIL PROTECTED] Subject: Re: [PHP] The peacock

RE: [PHP] The peacock logo... and others...

2001-12-13 Thread Jack Dempsey
Oh great, I didn't realize there was full book in the making...any ideas on when the full book will be hitting the shelfs? -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 2:39 PM To: Jack Dempsey Cc: [EMAIL PROTECTED] Subject: RE

Re: [PHP] Countdown clock?, X days till christmas

2001-12-13 Thread Jack Dempsey
not sure why and how you need mysql for this...why not just do the date calculation in php? Webleycity wrote: Hello all is it possible to do an interactive countdown clock in MYsql that can be embeded in emails. --- Mark Webley Multimedia design and

Re: [PHP] echo vs. print() performance?

2001-12-13 Thread Jack Dempsey
not as a criticism, but this is among the top 10 questions asked ...or used to be for a while...anyway, there's tons of info on the mailing lists, marc.theaimsgroup.com the short answer is that echo is SLIGHTLY faster being a language construct rather than a function...then again, i believe i

RE: [PHP] Another piece of history, kind of

2001-12-12 Thread Jack Dempsey
but then again, as things look now, PHP 4.x isn't likely to happen within a foreseeable time range, if at all. its good be wrong sometimes :-) -Original Message- From: Andrei Zmievski [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 12, 2001 10:20 PM To: [EMAIL PROTECTED] Subject:

RE: [PHP] RegEx gurus help...

2001-12-10 Thread Jack Dempsey
from the way you describe, i can't help but think that it'd be one hell of a regex.if all you're doing is stripping out .. i'd load up your fav editor and do a search and replace where you can approve each changeor, just change them all and fix what's broken.it'll be much quicker than

RE: [PHP] Running WML (WAP services) under PHP

2001-12-09 Thread Jack Dempsey
i think that php sends out headers showing that the page is html.not sure bout this, but you might have to send a diff header.. -Original Message- From: M [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 09, 2001 5:08 PM To: [EMAIL PROTECTED] Subject: [PHP] Running WML (WAP

RE: [PHP] simple regexp question - validating new line chars

2001-12-08 Thread Jack Dempsey
that's because you're testing to see if '\n' is \n...single quotes mean: interpret the text between literally, so '\n' is a backslash followed by n...doulbe quotes mean: interpolate the value, so \n becomes a newline... -Original Message- From: Krzysztof Jarecki [mailto:[EMAIL

RE: [PHP] How to compute time to load page...

2001-12-08 Thread Jack Dempsey
the search time is different than the page load timegoogle for example can find thousands of records in a tenth of a second, yet it takes longer to get that html result back to your browseryou could estimate page download time by calculating the filesize and using the connection

RE: [PHP] Comparing Dates

2001-12-08 Thread Jack Dempsey
you could pass the values to mktime and compare -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 08, 2001 8:17 PM To: [EMAIL PROTECTED] Subject: [PHP] Comparing Dates I'm trying to do a check on a date, to see if it's after the current

RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output

2001-12-06 Thread Jack Dempsey
.its worth the money jack -Original Message- From: Ken [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 3:08 AM To: Jack Dempsey; liljim; PHP list Subject: RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output At 02:43 PM 12/5/01 -0500, Jack Dempsey wrote

RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output

2001-12-06 Thread Jack Dempsey
= this is some text with a newline in it right here \n there it was; echo $text; echo 'br'; echo preg_replace(/[ ]+\n+[ ]+/,\n,$text); and it made the substitution fine. jack -Original Message- From: Ken [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 1:56 PM To: Jack Dempsey Subject

RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output

2001-12-06 Thread Jack Dempsey
: Thursday, December 06, 2001 5:13 PM To: Jack Dempsey; PHP list Subject: RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output OK, this time the \n worked. The only thing I changed was using / delimiters instead of | delimiters in the search string. No idea if/why that would affect

RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output

2001-12-05 Thread Jack Dempsey
help-Removing extra blank spaces before HTML output Hello, The example Jack gave you will clear up spaces well, though to get both newlines and spaces into one: $input = preg_replace(/([ ]|\n){1,}/, \\1, $input); James Jack Dempsey [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]"

RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output

2001-12-05 Thread Jack Dempsey
Dempsey Subject: RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output At 10:57 AM 12/5/01 -0500, Jack Dempsey wrote: a space (\s is from perl) Ah, OK, yours doesn't deal with newlines. From list member James, a solution that does: - From: liljim [EMAIL PROTECTED] The example

RE: [PHP] problem with ImageCreateJPEG ...

2001-12-04 Thread Jack Dempsey
also, are you sure both versions of php were compiled the same way with the same options and support? -Original Message- From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 9:22 AM To: Miguel Loureiro; [EMAIL PROTECTED] Subject: Re: [PHP] problem with

RE: [PHP] Reg ex help-Removing extra blank spaces before HTML output

2001-12-04 Thread Jack Dempsey
$text = preg_replace('|\s+|',' ',$text); -Original Message- From: Ken [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 2:06 AM To: PHP list Subject: [PHP] Reg ex help-Removing extra blank spaces before HTML output I want to remove all superfluous blank spaces before I

RE: [PHP] php without the php.ini

2001-11-30 Thread Jack Dempsey
are you sure its not there? where does phpinfo say its located? its really not there? hmm...i'm not sure, but php might just use its own internal defaults without a php.ini present, but i thought it was needed..who knows.. jack -Original Message- From: Kunal Jhunjhunwala

RE: [PHP] Array Help

2001-11-27 Thread Jack Dempsey
you can just kept adding []'s $var[category][subcategory][Item] = url; -Original Message- From: Brian V Bonini [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 27, 2001 4:56 PM To: PHP Lists Subject: [PHP] Array Help How can I access the inner most info in this array? Ie, Item and

Re: [PHP] Display Problemo

2001-11-20 Thread Jack Dempsey
1. what do you want the br tags to be? a simple str_replace('br','',$text) will strip the tags... 2. use pre html text /pre jack Lerp wrote: I have a small php app that I'm building to display, insert, edit, etc... various types of code snipits (asp, php, html, etc...) in a db. I also have

Re: [PHP] schedule a task

2001-11-19 Thread Jack Dempsey
cron either a php script itself [if you've got it installed as a cgi] or a lynx request of the page check the archives as well [marc.theaimsgroup.com] because this comes up every week or so - Original Message - From: Gab [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, November 19,

Re: [PHP] schedule a task

2001-11-19 Thread Jack Dempsey
use cron Any other idea? Gab Jack Dempsey [EMAIL PROTECTED] wrote in message 005401c17137$b930af00$[EMAIL PROTECTED]">news:005401c17137$b930af00$[EMAIL PROTECTED]... cron either a php script itself [if you've got it installed as a cgi] or a lynx request of the page check the

Re: [PHP] Difference of queries in PHP/mySQL?

2001-11-17 Thread Jack Dempsey
are you actually doing anything with $request? that just gets a mysql result back in a variable, you then have to extract the data from it... Jeff Lewis wrote: I am wondering if there are any difference between using PHP and using the command line for mySQL. Entering this at the comman line

RE: [PHP] Converting dates?

2001-11-17 Thread Jack Dempsey
search the archives there are tons of messages dealing with date manipulation. basically take the timestamps find the difference in seconds, convert to days, etc jack -Original Message- From: Jeff Lewis [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 17, 2001 3:17 PM To: PHP is

RE: [PHP] PHP Backing up a Database?

2001-11-17 Thread Jack Dempsey
mysqldump check it out, either man or google then ftp that file down, load it wherever, and mysql database dump.sql jack -Original Message- From: cosmin laslau [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 17, 2001 5:25 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP Backing up a

RE: [PHP] Regular expressions?

2001-11-16 Thread Jack Dempsey
If you'd really like to develop your regex skills, and everyone should, pickup Mastering Regular Expressions by Jeffrey Friedl(O'Reilly Press). Its the best out there, and will probably teach you more than you thought possible. Jack -Original Message- From: Martin Thoma [mailto:[EMAIL

[PHP] os x server and php version 4.0b2

2001-11-16 Thread Jack Dempsey
I've been meaning to upgrade and finally feel like I have to bite the bullet. However, I can't find much information on OS X Server and a version of php more recent than 4.0b2 which is what I'm currently running. Can anyone provide some links or their configure line? thanks, Jack -- PHP

[PHP] mirrors?

2001-11-16 Thread Jack Dempsey
has anyone tried selecting a mirror php site from the drop down at the bottom-right? i just tried brazil and bulgaria and it seems to be broken in general... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: [PHP] cron not allowed

2001-11-13 Thread Jack Dempsey
how did you plan on running php from cron? however you do that you could run a perl script that just makes a system call and does the same thing -Original Message- From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 9:04 AM To: Php-General Subject:

RE: [PHP] cron not allowed

2001-11-13 Thread Jack Dempsey
]] Sent: Tuesday, November 13, 2001 9:29 AM To: 'Jack Dempsey'; [EMAIL PROTECTED] Subject: RE: [PHP] cron not allowed how did you plan on running php from cron? Well, this works for me: 0 3 * * * lynx -dump http://mysite.com/mypage.php /dev/null HTH Jon

RE: [PHP] Re: Can If Else statements be split into code blocks??

2001-11-13 Thread Jack Dempsey
David's correct. The reason it wasn't working for you is that you didn't put braces around the code you wanted executed in the if statement. Also, to output large chunks of html in a simple manner with variables included, look into here docs. They look like this: echoEOF This is html with a

RE: [PHP] Login verification

2001-11-12 Thread Jack Dempsey
i would think you could just use crypt() to check the pass against what you read in from the file -Original Message- From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 2:27 AM To: PHP-General List Subject: [PHP] Login verification I want to make a

RE: [PHP]

2001-11-12 Thread Jack Dempsey
you can set error_reporting(E_ALL)that will help... -Original Message- From: Alex Tenitsky [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 9:19 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Hello, I'm curious if there's anything in PHP like use strict in Perl. It

RE: [PHP] for loop problem?

2001-11-12 Thread Jack Dempsey
paste the complete code in and myself and others can run your exact copy -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 11:22 PM To: Martin Towell; [EMAIL PROTECTED] Subject: Re: [PHP] for loop problem? I removed all of the quotes that

RE: [PHP] for loop problem?

2001-11-12 Thread Jack Dempsey
ran it (without mysql queries) and worked finereal strange. have you tried the loop without the mysql queries? -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 11:28 PM To: Jack Dempsey; [EMAIL PROTECTED] Subject: Re: [PHP

RE: [PHP] Resetting ID in mySQL DB

2001-11-11 Thread Jack Dempsey
say you have 100 records. you delete number 36. your db will then be ... 34 35 37 38 ... correct? after a delete, you could then say: update table set id_num=id_num-1 where id 36 and this would update all relevant records -Original Message- From: Thomas Edison Jr. [mailto:[EMAIL

Re: [PHP] Regular expression question

2001-11-09 Thread Jack Dempsey
What is $num going to be? A number? So how do you determine where that number ends and where there shouldn't be another number in front of it...are there any restrictions on the size of $num? say $num is 51 then you're saying that you want to match 51:: but not 151:: however, what if $num is

RE: [PHP] Am i crazy?

2001-11-04 Thread Jack Dempsey
you're assigning, not checking for equality...use two ='s -Original Message- From: Martin [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 04, 2001 12:49 PM To: [EMAIL PROTECTED] Subject: [PHP] Am i crazy? Did I forget everything in a few months? if ($name='admin') {

RE: [PHP] Am i crazy?

2001-11-04 Thread Jack Dempsey
what happens? are you sure $name really equal's admin? if you change header to echo $MYPATH does that work? -Original Message- From: Martin [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 04, 2001 12:54 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Am i crazy? Jack Dempsey wrote

[PHP] documentation comment

2001-11-04 Thread Jack Dempsey
not to start a war, but have you seen php.net's documentation compared to anything microsoft or anyone else has ever put out? i'd say that documentation is microsoft's achilles heel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] problem with copy($file,path) to up load a file

2001-11-03 Thread Jack Dempsey
that means you don't have permissions to write that file to whatever directory is your target.if you tried the same thing from teh command line you'd get the same error -Original Message- From: banyWilson [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 03, 2001 11:39 AM To:

RE: [PHP] simple array tutorial wanted

2001-11-01 Thread Jack Dempsey
http://www.php.net/manual/en/language.types.array.php start with that -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Friday, November 02, 2001 12:33 AM To: php Subject: [PHP] simple array tutorial wanted Hi all, I really want to get me head around arrays,

Re: [PHP] split array in 2 halfs

2001-10-31 Thread Jack Dempsey
Based on what criteria? if you just want to split the array at element 30, you could use array_splice to get the necessary data... - Original Message - From: Daniel Harik [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, November 01, 2001 2:16 AM Subject: [PHP] split array in 2

RE: [PHP] Text DB's bbs lists

2001-10-31 Thread Jack Dempsey
Hi Arsen, I think that'd be a lot of work, and I'm not sure I understand why you can't use MySQL? I suppose you could do it, but i think you'll find once starting it, that its not worth the time it'll need... Jack -Original Message- From: ArsenKirillov [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] Total Newbie in over head

2001-10-30 Thread Jack Dempsey
Hi Warwick, Did you look at the install notes that come with PHP? It explains there how you have to configure Apache to recognize php files and give them to the php interpreter...checkout the README or INSTALL files that come with PHP... jack -Original Message- From: J W W L (Warwick)

RE: [PHP] @#$@# Reg Expressions

2001-10-29 Thread Jack Dempsey
ok, are you trying to get the links returned or just split on them? i missed your original post. watch your caps as well... i'd use preg_split also jack -Original Message- From: brendan [mailto:[EMAIL PROTECTED]] Sent: Monday, October 29, 2001 9:59 PM To: [EMAIL PROTECTED] Subject:

RE: [PHP] @#$@# Reg Expressions

2001-10-29 Thread Jack Dempsey
had given preg_split a go but just got flummoxed with the need to slash everything .. Martin .. I'd tried that .. but i get an array count of 0 from $the_array ..(from $the_array=split(A ([^]*)/A, $html,-1); echo count($the_array); Jack Dempsey wrote: ok, are you trying to get the links

RE: [PHP] @#$@# Reg Expressions

2001-10-29 Thread Jack Dempsey
or the east coast.only 11:35 here in dc -Original Message- From: brendan [mailto:[EMAIL PROTECTED]] Sent: Monday, October 29, 2001 11:14 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] @#$@# Reg Expressions or really bloody narky afgani's Martin Towell wrote: Off track - seems like

RE: [PHP] Portland, Oregon

2001-10-23 Thread Jack Dempsey
ok, how about DC ? :-) -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001 6:54 PM To: Richard Baskett Cc: PHP General Subject: Re: [PHP] Portland, Oregon So Rasmus.. how about coming to Portland, Oregon? I havent seen a PHP class,

RE: [PHP] anyone have...

2001-10-23 Thread Jack Dempsey
would need to check, but: preg_replace(/[^a-zA-z]/,'',$data) should about do it... jack -Original Message- From: Jay Paulson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001 6:50 PM To: [EMAIL PROTECTED] Subject: [PHP] anyone have... anyone have a function that strips out

RE: [PHP] Matching strings in a flat/text file?

2001-10-22 Thread Jack Dempsey
lots of ideas nick, but can you use a database? MySQL is free and i've found its almost always better to use databases when you can... if you can't, you could do something like this: 1. find the pos of the string you need using strpos 2. find the pos of the ending delimiter 3. substr from the

RE: [PHP] Form Question

2001-10-21 Thread Jack Dempsey
ok, several different solutions, best being: 1. use sessions. this is probably the simplest, most robust way of doing it, after you've become familiar with sessions. 2. as someone mentioned before, use one page that posts to itself. this would be easier than using sessions, but not as powerful.

RE: [PHP] Submit

2001-10-21 Thread Jack Dempsey
sure, have to states for your script, one is the normal blank form, the second is the check. in your check, validate the data. if its not good, print the form out again with those values already filled in if they apply. if it is good, redirect to a new page using header(); http://php.net/header

RE: [PHP] Submit

2001-10-21 Thread Jack Dempsey
- From: Chip Landwehr [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 21, 2001 8:39 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Submit But won't using a header kill all the form data? Thought you had to use post for that? Jack Dempsey [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]"

RE: [PHP] Submit

2001-10-21 Thread Jack Dempsey
lol NP--actually I am using sessions-Will I have to declare each form variable as a session variable to do this? Jack Dempsey [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... sorry chip, i'm so used to using sessions, i just kind of assumed y

RE: [PHP] Single Form

2001-10-21 Thread Jack Dempsey
make a php page that prints out the html, and direct the form's action to $PHP_SELF. then have some sort of test to determine if there's been a post, process the data, etc, and you're set. -Original Message- From: Srinivasan Ranganathan [mailto:[EMAIL PROTECTED]] Sent: Monday, October

RE: [PHP] How do i retrieve the records that are NOT linked?

2001-10-20 Thread Jack Dempsey
if i understand you correctly, perhaps this: select * from categories a,category_user_rights b where a.name!=b.username; jack categories contains: ID, parent_ID, name users contains: username, password, name, etc

RE: [PHP] new to the list

2001-10-05 Thread Jack Dempsey
Hey Mick, of course its ok...we've all done it that way (cept a few whose names you'll learn soon enough ;-) ) a few suggestions: 1. www.php.net has most everything you could ask for...also, if you have a function you want to learn more about, type it like this: http://www.php.net/function_name

RE: [PHP] preg_replace

2001-10-05 Thread Jack Dempsey
http://php.net/str_replace if you're just replacing a static string, this will be faster and easier...only use regex's when you really need them jack -Original Message- From: W. Kiecksee [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 2:17 PM To: [EMAIL PROTECTED] Subject:

RE: [PHP] How to eliminate Warning: Undefined variable: messages

2001-10-05 Thread Jack Dempsey
check out error reporting at php.net -Original Message- From: Sridhar Moparthy [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 2:54 PM To: [EMAIL PROTECTED] Subject: [PHP] How to eliminate Warning: Undefined variable: messages Hi All, Is these any parameter in php.ini that

RE: [PHP] accessing localtime array directly

2001-10-05 Thread Jack Dempsey
php doesn't support automatic dereferencing of arrays, so you can't just throw the index on the back, but you could do this: $julianday = array_slice(localtime(),7,1); but then $julianday's an array...so you could wrap an array_pop around that..although it gets you your val in one line, i

RE: [PHP] ereg checking if its only numbers

2001-10-04 Thread Jack Dempsey
if(!preg_match(/^\d+$/,$string){ echo $string has something other than a number; } -Original Message- From: Chris Aitken [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 9:34 PM To: PHP General Mailing List Subject: [PHP] ereg checking if its only numbers Ive been

RE: [PHP] php in css not working with IF's

2001-10-03 Thread Jack Dempsey
nice to know demorgan's laws actually show up every now and then ;-) -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 12:58 AM To: Jason Dulberg Cc: [EMAIL PROTECTED] Subject: RE: [PHP] php in css not working with IF's Theoretically,

RE: [PHP] php in css not working with IF's

2001-10-03 Thread Jack Dempsey
have you thought about a switch statement? haven't looked at your code, but that would allow you a default, and then a bunch of cases, etc... jack -Original Message- From: Jason Dulberg [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 1:43 AM To: Rasmus Lerdorf Cc: [EMAIL

[PHP] venn diagram producer

2001-10-03 Thread Jack Dempsey
think before you code...something i'm quickly learning isn't such a bad mantra so before i and others jump into this, maxim, rasmus, and anyone else following this thread/interested in it, i agree that scoping the script to a max of 3 terms is a necessary choice...any other comments/thoughts

RE: [PHP] How can I suppress my variables from showing up in the address bar?

2001-10-02 Thread Jack Dempsey
use METHOD=POST in your form -Original Message- From: Salty Marine [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 1:57 PM To: [EMAIL PROTECTED] Subject: [PHP] How can I suppress my variables from showing up in the address bar? Greetings to All of You on the List: How can

RE: [PHP] bulk e-mails

2001-10-02 Thread Jack Dempsey
check out the archives and google--there's lots of info on things like qmail,ezmlm, and the topic of bulk emails jack -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 11:05 PM To: PHP-General Subject: [PHP] bulk e-mails Hello everyone,

RE: [PHP] Subroutines

2001-09-30 Thread Jack Dempsey
they're just functions function your_function($arg1,$arg2){ echo $arg1; echo $arg2; } -Original Message- From: Chris Herring [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 30, 2001 2:08 AM To: php list Subject: Re: [PHP] Subroutines My bad,

RE: [PHP] looping through database results

2001-09-30 Thread Jack Dempsey
hi karl just to let you know, i believe there's a good calendar app on php.net before i knew about this though, i wrote my own. some general advice: i often take results from mysql calls and build data structures with the data. then, you always have that data available, and you can loop as many

RE: [PHP] looping through database results

2001-09-30 Thread Jack Dempsey
Right, fetch-array just adds extra results to fetch-row. Have you tried storing your results in an array that you can then loop over later? -Original Message- From: Karl Nelson [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 30, 2001 6:33 PM To: [EMAIL PROTECTED] Cc: [EMAIL

RE: [PHP] select based on time/date

2001-09-25 Thread Jack Dempsey
select * from logged_in where date_add(time_in,interval 1 hour) = now() -jack -Original Message- From: Jason Dulberg [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 25, 2001 6:08 PM To: Sheridan Saint-Michel; [EMAIL PROTECTED] Subject: RE: [PHP] select based on time/date I tried

RE: [PHP] speechmarks

2001-09-25 Thread Jack Dempsey
Put a slash in front of it: don't = don\'t -jack -Original Message- From: Andrew Austin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 25, 2001 7:08 PM To: '[EMAIL PROTECTED]' Subject: [PHP] speechmarks What is the method for mySQL to surround single speechmarks as in (don't) so

[PHP] ucwords added functionality?

2001-09-23 Thread Jack Dempsey
i could roll my own, and for now will just use a str_replace after ucwords, but would it be possible to add an optional parameter to ucwords which would be an array of words to skip? i would think this would be useful to many. any thoughts? -- PHP General Mailing List

[PHP] FW: Undelivered Mail Returned to Sender

2001-09-23 Thread Jack Dempsey
and to whoever asked this a few weeks ago, yes i'm getting this too, and yes its annoying..any possibility of deleting it from the list? -Original Message- From: Mail Delivery System [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 23, 2001 11:17 PM To: [EMAIL PROTECTED] Subject:

RE: [PHP] witing for a post

2001-09-22 Thread Jack Dempsey
not sure i follow Gianluca...the script will stay there, its not going anywhere, so why does it need to wait? it'll process whatever info is sent to it -jack -Original Message- From: Gianluca Baldo [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 22, 2001 2:06 PM To: [EMAIL

RE: [PHP] Is CRON'd PHP script already running?

2001-09-20 Thread Jack Dempsey
i'm sure there are more elegant solutions, but you could control the running of your php script via a perl script called by cronin perl check to see if the process is already running, and if so exit, else start it jack -Original Message- From: Simon Kimber [mailto:[EMAIL PROTECTED]]

RE: [PHP] importing text file

2001-09-20 Thread Jack Dempsey
checkout http://php.net/manual/en/function.file.php -Original Message- From: Dominica Anderson [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 2:14 PM To: [EMAIL PROTECTED] Subject: [PHP] importing text file I have a text file that is formatted as such Something -

RE: [PHP] mysql_pconnect()

2001-09-19 Thread Jack Dempsey
i agree...i wish things were more like microsoft where you could search for days and never find something, and i think bill gates should really stop being involved closely with the development...i mean, where else can you find that? i wonder if he could code a hello world script in C#..

RE: [PHP] re: array question

2001-09-18 Thread Jack Dempsey
perhaps i'm misunderstanding you, but why not use a for loop? for($i=0;$icount($array)-1;$i++){ echo $array[$i]; } jack -Original Message- From: Scott [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 18, 2001 10:11 PM To: [EMAIL PROTECTED] Subject: [PHP] re: array question

RE: [PHP] Counting

2001-09-17 Thread Jack Dempsey
why not use it in your sql? select count(*) from table where foo='bar'; -Original Message- From: Max Mouse [mailto:[EMAIL PROTECTED]] Sent: Monday, September 17, 2001 5:22 PM To: php forum Subject: [PHP] Counting I'm using php/mysql. I want to be able to count the number of records

RE: [PHP] real simple regex

2001-09-17 Thread Jack Dempsey
you actually don't need regex... if you take a few minutes you can do it all with strpos and substr, adn it'll be faster than regex. -Original Message- From: Christian Dechery [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 11, 2001 9:32 PM To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] PHP vs. PERL (Functional Comparison)??

2001-09-16 Thread Jack Dempsey
hallelujah...first time i've seen someone else mention here docs, and being rasmus, not a bad person to make the mention ;-) -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Monday, September 17, 2001 12:17 AM To: speedboy Cc: [EMAIL PROTECTED] Subject: Re: [PHP]

RE: [PHP] Compiling php like C

2001-09-15 Thread Jack Dempsey
zend encoder (www.zend.com) and there's also an opensource project...can't recall the name or link, but you can find it if you search the archives jack -Original Message- From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 15, 2001 3:04 AM To: [EMAIL

RE: [PHP] comparing

2001-09-15 Thread Jack Dempsey
not exactly clear on what you want, but if you want to see what you have most, you could do a count(id) where product='cola' and compare that to a count(id) where product='cd' jack -Original Message- From: Teqila MAN [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 15, 2001 3:13 AM

RE: [PHP] Help a newbie?

2001-09-15 Thread Jack Dempsey
what're you uploading it to? if you're using an IIS server for production scripts, then you'd obviously want to test on IISlikewise for apache.i prefer LAMP over msoft, but to each, his/her own.. -Original Message- From: Peter Gibson [mailto:[EMAIL PROTECTED]] Sent: Sunday,

RE: [PHP] Compiling php like C

2001-09-15 Thread Jack Dempsey
brothers torn apart by Chaos, while the fortress endures, the great leader will succumb , The third big war will begin when the big city is burning - - Nostradamus 1654 - Original Message - From: Jack Dempsey [EMAIL PROTECTED] To: Kunal Jhunjhunwala [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent

  1   2   3   >