RE: [PHP] redirect to php problem

2001-09-15 Thread Jack Dempsey
sure look into meta refresh (search google and you'll find info) jack -Original Message- From: Nikola Veber [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 16, 2001 3:57 AM To: php forum Subject: [PHP] redirect to php problem Hi ! I'm having a problem with following : I'd like to

RE: [PHP] How do I use a .tar file?

2001-09-15 Thread Jack Dempsey
man tar in short, if you have a file, foo.tar, tar xvf foo.tar will untar it...if its foo.tar.gz, tar zxvf foo.tar.gz will gunzip it then untar it. try searching google as well, there're some good tutorials out there jack -Original Message- From: Deryck Henson [mailto:[EMAIL

RE: [PHP] if(isset($a)) vs if($a)

2001-09-14 Thread Jack Dempsey
isset checks to see if the $a variable has been set, ie, if it exists. if($a) checks for the truthood of $a, meaning, if it has a non-zero, non-null/empty-string value, then its true, else, false. jack -Original Message- From: David Yee [mailto:[EMAIL PROTECTED]] Sent: Friday, September

Re: [PHP] R: equivelant of ASP's #include file?

2001-09-14 Thread Jack Dempsey
require will grab the file no matter what (if it exists), include can be used in an if else construct.there's probably megabytes of text on this subject in the archives Christian Reiniger wrote: On Friday 14 September 2001 10:17, --- wrote: There are 3 functions in php that works

RE: [PHP] Why doesn't this work?

2001-09-14 Thread Jack Dempsey
php doesn't have as loose a syntax as perl or python. try this: ? $testString = this=is=something; print array_shift(split(=,$testString)); ? mind you, that only works because you wanted the 0th element, and shift returns that first one...something else would be needed for any other index...

[PHP] further info - seg fault

2001-09-13 Thread Jack Dempsey
hello, i sent an e-mail before generally describing a seg fault issue i was having...i did gdb bt and found this: (this is at the end of the data after running gdb) Loaded symbols for /lib/libnss_dns.so.2 #0 0x403dab14 in chunk_realloc (ar_ptr=0x4048aba0, oldp=0x82450f0, oldsize=1444, nb=1560)

RE: [PHP] I am making a mailing list but....

2001-09-12 Thread Jack Dempsey
You should really think about storing things in a db...mysql's free and easy to use and install, and will save you lots of time (especially with this kind of question) If you're only trying to add something to line one, you could open a file, read it, open a new one, print whatever you need to

RE: [PHP] combining variables

2001-09-12 Thread Jack Dempsey
i might be misunderstanding you, but anytime you need dynamic variable names, you'll want variable variables... $count = '123'; $name = count$count; # results in $name being 'count123' $$name = 'something'; # results in $count123 = 'something' jack -Original Message- From: Tyler

RE: [PHP] downloadable annotated PHP manual?

2001-09-12 Thread Jack Dempsey
http://php.net/download-docs.php -Original Message- From: Eugene Lee [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 12, 2001 9:47 PM To: [EMAIL PROTECTED] Subject: [PHP] downloadable annotated PHP manual? Like the subject says, is there a downloadable version of the Annotated

RE: [PHP] single quote replace

2001-09-11 Thread Jack Dempsey
php does;-) $text = str_replace(',replace_text,$text); -Original Message- From: Clint Tredway [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 11, 2001 1:33 PM To: [EMAIL PROTECTED] Subject: [PHP] single quote replace Does anyone have a function that will replace single quotes

RE: [PHP] date/time of current page

2001-09-11 Thread Jack Dempsey
have you tried parsing out the name from $PHP_SELF? I would think that php wouldn't care if it gets 'index.php' or (some processing) index.php, know what i mean? jack -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 11, 2001 1:01 PM To:

RE: [PHP] date/time of current page

2001-09-11 Thread Jack Dempsey
I'm not sure what you mean, but here is what I have tried - try this: ? echo date(m/d/y g:i:s A, filemtime(substr($PHP_SELF,strrpos($PHP_SELF,'/')+1))) ? jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: [PHP] PHP and IIS4

2001-09-10 Thread Jack Dempsey
you won't want to, but yes... -Original Message- From: pong-TC [mailto:[EMAIL PROTECTED]] Sent: Monday, September 10, 2001 10:53 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP and IIS4 Hello All I am using ASP on IIS4, and interested in PHP. I would like to know that if I install PHP on

RE: [PHP] Newbie Question.. (MySQL/PHP)

2001-09-07 Thread Jack Dempsey
sure, am actually doing this right now ;-) It depends on how fancy you want to get...if you don't mind slicing off in the middle of a word, you can just do this: $preview_text = substr($text,0,200) . '. . .'; //gets the first 200 characters and adds an ellipsis afterwards if you want to make

RE: [PHP] ereg_replace - How do I stop it being greedy?

2001-09-07 Thread Jack Dempsey
look into the s modifier...it makes a dot match a newline as well, where normally it wouldn't jack -Original Message- From: George Whiffen [mailto:[EMAIL PROTECTED]] Sent: Friday, September 07, 2001 1:09 PM To: [EMAIL PROTECTED] Subject: [PHP] ereg_replace - How do I stop it being

RE: [PHP] randomly picking a variable from an array

2001-09-07 Thread Jack Dempsey
create a random number from 0 to count($array) and use that as the index jack -Original Message- From: Joseph Bannon [mailto:[EMAIL PROTECTED]] Sent: Friday, September 07, 2001 3:08 PM To: PHP (E-mail) Subject: [PHP] randomly picking a variable from an array How do you randomly

RE: [PHP] Previous / Next Buttons

2001-09-06 Thread Jack Dempsey
http://www.phpbuilder.com/columns/rod2221.php3 jack -Original Message- From: Michael O'Neal [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 06, 2001 12:41 PM To: Php-General@Lists. Php. Net Subject: [PHP] Previous / Next Buttons Hi, what's the simplest way to provide

RE: [PHP] Newbie ?: why this error?

2001-09-04 Thread Jack Dempsey
Hi Vicki, try this: ? if (!$SampFirstName || !$SampLastName || !$SampEmail) { echo You have not entered all the required information. br; #-- you need a semi colon here and echo Please go back and try again.; #-- another echo here. exit; } you could also do this: ? if (!$SampFirstName ||

Re: [PHP] php's future

2001-09-02 Thread Jack Dempsey
exactly...don't believe everything you read... if you want some benchmarking results, search google...from what i've seen, php is the fastest out of any of them...certainly not jsp... jack nick wrote: Haha I tried its code and it only takes 1~2 secs to run it . Wellgod damn lies

Re: [PHP] php's future

2001-09-02 Thread Jack Dempsey
i think he meant in that specific code, they don't change the default time, therefore, it'd be impossible Alexander Skwar wrote: So sprach »Paul Roberts« am 2001-09-02 um 17:06:08 +0100 : me too and as the max execution time is 30 secs and there's no code to override it. Not so.

[PHP] adding functionality to join

2001-08-30 Thread Jack Dempsey
Would anyone find this useful? join(' glue ',$array,0,5) instead of this join(' glue ',array_slice($array,0,5)) Its not the extra typing i mind, it just seems that the parameters go well with the join function.. Any thoughts? Jack -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] If statement within a variable?

2001-08-30 Thread Jack Dempsey
$var = $var2==1 ? 'Hello Mr. Bean' : 'Hello New Comer'; be careful of your if statements and only using one equals.. jack Brandon Orther wrote: Hello, Is there a way to put an if statement in a variable? For example: $var = Hello.IF($var2 = 1) { .Mr. Bean. } else { .New Comer. }. To

Re: [PHP] How to do Add More/expanding forms?

2001-08-30 Thread Jack Dempsey
Try looking for javascript solutions. Give them the default 5 and a javascript function that prints out another input variable and dynamically names it. Then you can just normally post at the end. i don't think the javascript is difficult either, and i'm sure you could find a script for it. check

Re: [PHP] PHP_SELF or REQUEST_URI within Function ?

2001-08-30 Thread Jack Dempsey
you have to use $GLOBALS[SCRIPT_FILENAME] jack Arcadius A. wrote: Hello ! Why this script prints an empty string(it prints nothing) as the value of the variable u ? This happens even if $REQUEST_URI or PHP_SELF is used instead of SCRIPT_FILENAME . Thanks... ? function menu(

Re: [PHP] Math Inside Strings

2001-08-29 Thread Jack Dempsey
echo 'input type=hidden name=currentPosition value=' . $currentPosition+1 .''; use the . to concatentate strings with exressions jack Kevin P wrote: echo input type='hidden' name='currentPosition' value='$currentPosition+1'; can anyone tell me how to get this to stop printing: input

RE: [PHP] New feature suggestion: array in string substitution

2001-08-29 Thread Jack Dempsey
have you looked at the eval function? it will let you do something similar: $string = 'this is a $variable'; $variable = 'template'; eval(\$string = $string); echo $string; - this is a template (haven't checked it, but syntax should be ok) jack -Original Message- From: ---

Re: [PHP] ereg()

2001-08-28 Thread Jack Dempsey
You could try fgets from the fp instead of fread. Then for each line depending on how well structured it is you have a variety of options, but i think this would be at least a good start: www.php.net/preg_split - split on multiple spaces - \s+ jack Ben Quinn wrote: Hi all Say i had text

RE: [PHP] formating numbers

2001-08-24 Thread Jack Dempsey
Javier, Can you provide a lil more info? What exactly are you trying to do? Without seeing your code, its hard to guess...i'd suggest though looking at www.php.net/number_format www.php.net/printf jack -Original Message- From: Javier Bellido [mailto:[EMAIL PROTECTED]] Sent: Saturday,

RE: [PHP] Any point in learning ASP/JSP etc?

2001-08-22 Thread Jack Dempsey
Seb, I think the answer, tho it may not be a great one, is to become a jackofalltrades-verygoodatallofthem kind of person if you truly want to make yourself stand out... Whether you love php or not, you have to respect the power it gives you and the ease with which you can develop with it.

RE: [PHP] Unix vs PC test for server

2001-08-16 Thread Jack Dempsey
Run a phpinfo() script and look for the $OSTYPE variable...you can use that... jack -Original Message- From: Paul S. [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 10:57 AM To: [EMAIL PROTECTED] Subject: [PHP] Unix vs PC test for server I design a website on a PC, and

RE: [PHP] Unix vs PC test for server

2001-08-16 Thread Jack Dempsey
Run a phpinfo() script and look for the $OSTYPE variable...you can use that... jack -Original Message- From: Paul S. [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 10:57 AM To: [EMAIL PROTECTED] Subject: [PHP] Unix vs PC test for server I design a website on a PC, and

RE: [PHP] space in strings

2001-08-13 Thread Jack Dempsey
$string = str_replace(' ','',$string); -Original Message- From: Martin Skjoldebrand [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 14, 2001 12:03 AM To: [EMAIL PROTECTED] Subject: [PHP] space in strings Some time ago I needed a function that remove space in strings. Sure there is one

RE: [PHP] Emulating a POST

2001-08-08 Thread Jack Dempsey
www.php.net/curl jack -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 08, 2001 4:51 PM To: PHP User Group Subject: [PHP] Emulating a POST Hello, I have used perl to emulate a post with LWP:UserAgent I am looking for the same effect in

RE: [PHP] Syntax

2001-08-04 Thread Jack Dempsey
I'm almost positive there's no reason the first should work while the second fails...can you post what you've done...it's probably a typo... jack -Original Message- From: BRACK [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 02, 2001 11:10 AM To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] Q: Hiding Folder Directories from public while still...

2001-08-04 Thread Jack Dempsey
Actually it wouldn't be overkill or big...its really a small quick file to setup...if you just put the index file in there, someone won't be able to get a directory listing, but they'll still have access to your files...if you put the htaccess file in there, they're secure... jack -Original

RE: [PHP] Phone Number #s Only?

2001-08-03 Thread Jack Dempsey
No, the ^ inside the [] means the negation of whatever's inside...so, it'll strip out anything except 0-9. jack -Original Message- From: Martin Cameron [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 02, 2001 8:40 PM To: mike cullerton Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Phone

RE: [PHP] another REGEX question

2001-08-02 Thread Jack Dempsey
Try $str = preg_replace(p.*?, ,$str); jack -Original Message- From: Julian Simpson [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 02, 2001 5:16 PM To: [EMAIL PROTECTED] Subject: [PHP] another REGEX question I have a string can look like either of the following: psome stuff/p p

RE: [PHP] another REGEX question

2001-08-02 Thread Jack Dempsey
REGEX question $str = eregi_replace('p[^]*', ' ', $str); worked! thanx guys Julian At 5:19 PM -0400 8/2/01, Jack Dempsey wrote: Try $str = preg_replace(p.*?, ,$str); jack Or $str = eregi_replace('p[^]*', ' ', $str); This matches p (or P), followed by any character string that DOESN'T

RE: [PHP] Character newline (\n), How to

2001-08-01 Thread Jack Dempsey
How are you using it? Show some code...maybe you're doing echo '\n' instead of \n... jack -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 3:01 PM To: [EMAIL PROTECTED] Subject: [PHP] Character newline (\n), How to Hi, somebody

RE: [PHP] Re: HELP!! What wrong with this code...

2001-07-31 Thread Jack Dempsey
Another solution that some may prefer is the here doc method: Instead of: php; code; here; ? P align=centerYour feedback has been sent to a href=mailto:?=$address??=$name?/a/P ? php; code; here; you would have php; code; here; echoEOF P align=centerYour feedback has been sent to a

RE: [PHP] my php script is very slow. help?

2001-07-27 Thread Jack Dempsey
Be careful with any sort of nested loops. You may not be able to avoid them, but if you nest a while loop within another while loop, and simply iterate through results, you will have quadratic running time. This isn't a big deal if you've got 20 results, but for every increase in N (size of

RE: [PHP] Example high-profile PHP sites

2001-07-26 Thread Jack Dempsey
www.capitalone.com well known credit card company www.audiogalaxy.com -- I wonder about the coders there (no offense if anyone on this list...just that the site is frequently down), but they're doing some cool stuff integrating the website with a windows app for downloading music... -jack

RE: [PHP] Re: split on whitespace, preserving whitespace...

2001-07-20 Thread Jack Dempsey
$text = This contanswhite space .; $matches = preg_split(/(\s+)/,$text,-1, PREG_SPLIT_DELIM_CAPTURE); echo implode('',$matches); try that jack -Original Message- From: Garth Dahlstrom [mailto:[EMAIL PROTECTED]] Sent: Friday, July 20, 2001 7:45 AM To: [EMAIL PROTECTED] Cc:

RE: [PHP] Re: split on whitespace, preserving whitespace...

2001-07-20 Thread Jack Dempsey
Several of these solutions are good ideas, but they don't preserve the whitespace as he desired. Preg_split with the capturing of the (\s+) delimiter does the trick. Jack -Original Message- From: Stefan Rusterholz [mailto:[EMAIL PROTECTED]] Sent: Friday, July 20, 2001 9:48 AM To:

RE: [PHP] PHP and Apache on OS X insight?

2001-07-19 Thread Jack Dempsey
Hi Michael, I run an OS X server with Apache, PHP, and MySQL. We have mostly Apple's in the office, with a few pc's scattered around. What reasons do you have for going with a Mac. I'll tell you this: its easier to deal with linux/unix as far as installation, upgrading, etc. However, there is an

RE: [PHP] Need help with formatting time

2001-07-17 Thread Jack Dempsey
]] Sent: Tuesday, July 17, 2001 5:11 PM To: Jack Dempsey Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Need help with formatting time Jack Dempsey pressed the little lettered thingies in this order... $hours = $time / 60; $minutes = $time % 60; if($hours = 12){ $meridian = 'pm'; $hours -= 12

RE: [PHP] Regular expressions

2001-07-17 Thread Jack Dempsey
Checkout www.php.net/strtr -Original Message- From: Philip Murray [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 1:31 AM To: PHP General List Subject: [PHP] Regular expressions In Perl you can do this: $foo =~ tr/012/mpf/; Which is the same as: $foo =

RE: [PHP] regex help

2001-07-16 Thread Jack Dempsey
What exactly are you trying to do? Switch around in what way? Jack -Original Message- From: Alvin Tan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 17, 2001 12:43 AM To: [EMAIL PROTECTED] Subject: [PHP] regex help hi all, a little OT here, but need some quick help. I have a bunch of

[PHP] something like get_html_translation_table

2001-07-10 Thread Jack Dempsey
Hi all, I hope I haven't missed it if it exists...i've looked through the docs...i'm trying to find something that does the same trick shown at php.net for getting the table, array_flip()'ing it, then using strtr to translate things like nbsp; What about others like 146; etc...it'd be really

RE: [PHP] Authentication

2001-07-10 Thread Jack Dempsey
You should look into sessions...checkout www.phpbuilder.com and other places throughout the net for tutorials...always use www.php.net as well...has everything you need... jack -Original Message- From: David Baldwin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 11:41 AM To:

RE: [PHP] weird behaviour with (Z = Z)

2001-07-10 Thread Jack Dempsey
Perhaps not a great answer, but this issue has been brought up before, and it has to do with the incrementing of a string...search the archives...i think someone had a simple workaround using chr() to get what you want... jack -Original Message- From: Christian Dechery [mailto:[EMAIL

RE: [PHP] weird behaviour with (Z = Z)

2001-07-10 Thread Jack Dempsey
Try this: ? for($i=65;$i=90;$i++){ $str .= chr($i) . ; } echo $str; ? jack -Original Message- From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001 12:10 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] weird behaviour with (Z = Z)

RE: [PHP] ? : where in the manual?

2001-07-10 Thread Jack Dempsey
www.php.net/empty www.php.net/header the x ? Y : z; form is a quick n easy structure that works like if/else do a search for classes and objects for the $CFG-wwwroot part jack -Original Message- From: Rehuel Lobato de Mesquita [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 10, 2001

RE: [PHP] stripping white space?

2001-07-09 Thread Jack Dempsey
You can't do that...deleting ALL spaces will screw up your content... Try str_replace(\n,,$var) to strip newlines, then a preg_replace(/\s+/, ,$var) to strip all multiple spaces down to one... Haven't tested this syntax, but should be about right... jack -Original Message- From: Mukul

RE: [PHP] Re: poor HTML syntax crashing (!) netscape

2001-07-08 Thread Jack Dempsey
Even better, to save Dave some time, go to www.w3c.org They have an html validator there...it's strict, but that's the point... jack -Original Message- From: DAve Goodrich [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 08, 2001 9:00 PM To: Christian Calloway; [EMAIL PROTECTED] Subject:

Re: [PHP] Netscape 6, What a piece of s$#@ ,anyone else had problems with php and Netscape 6?

2001-05-17 Thread Jack Dempsey
looking at it quickly, it looks like you don't close your TR tag before you open another, right about here: td valign=top table width=100% border=0 cellspacing=0 cellpadding=0 tr td width=1% height=15 valign=middlefont class=text a

Re: [PHP] MySQL database

2001-05-16 Thread Jack Dempsey
setup an account with a username and password and flush your privileges...see if you can login on the command line...after that works, then try it with php -jack [Inf] F!RE-WALL wrote: Yo, I'd like to use a MySQL database on my website. If I look at the PHP details of my site (see for

Re: [PHP] Newbie needs help! '' closing PHP Tag

2001-05-15 Thread Jack Dempsey
Marc: should not close php ? will can you paste in the script so i can see what you mean? -jack Marc Johnson wrote: Greetings fellow devs! I am new to PHP (having tried my hand at running ASP/SQL here at the house. No, I didnt chose ASP, it just happened to be the software I had when

RE: [PHP] again with the regex

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

[PHP] phpjobs.com

2001-05-11 Thread Jack Dempsey
anyone know what the deal with it is? i'm trying to find some work for the summer (been REAL hard) and noticed that the site is there, although not really... -jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] PHP and Unix Shell

2001-05-11 Thread Jack Dempsey
www.php.net/system check the archives as well for questions relating to this specific issue -jack YoBro wrote: Hello, Is there any way to execute unix commands as though it was being done at the shell. I am wanting to add users to an htpasswd file. Usually I use at the unix shell:

Re: [PHP] Newbie... Executing UNIX commands...

2001-05-10 Thread Jack Dempsey
for your specific example, check out http://www.php.net/manual/en/function.readdir.php lots of simple functions like that have already been written for you...the joy of php ;-) -jack macky wrote: im using PHP + APACHE on Linux Box i wonder what command in PHP can i use to execute Unix

Re: [PHP] Unix timestamp

2001-05-10 Thread Jack Dempsey
mktime -- Get UNIX timestamp for a date Description int mktime (int hour, int minute, int second, int month, int day, int year [,int is_dst]) Parse that list of values into the respective variables and pass them to mktime -jack TV Karthick Kumar wrote: Hi List.. How do I convert

Re: [PHP] Problem with PHP 4.0.5

2001-05-10 Thread Jack Dempsey
that is in the file, and it was simply called hello.php, as I say, works fine in IE and not in netscape...I dont get it... Regards and thanks for your help biscut -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: 08 May 2001 19:20 To: biscut; John

Re: [PHP] ereg issues

2001-05-10 Thread Jack Dempsey
print preg_replace('/^(.*?)([a-zA-Z]{2})(.*)/','\\2',$blah); try that -jack scott [gts] wrote: oh yeah. sorry... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jack Dempsey Sent: Thursday, May 10, 2001 3:15 PM To: ..s.c.o.t.t.. [gts

Re: [PHP] split string

2001-05-10 Thread Jack Dempsey
http://www.php.net/manual/en/function.explode.php explode on the comma... you could use while loop and variable variables to take care of the naming... -jack Jacky wrote: I got series of string value like this 1,2,3. And the seires are dynamaic, which means it is not always 1,2,3 but

Re: [PHP] carriage return (writing files)

2001-05-09 Thread Jack Dempsey
Magnus Lawrie wrote: hello, I'm writing to files with php. How do I include a carriage return, i.e. write strings to different lines in a text file? Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: [PHP] Wrapping text to store in the database

2001-05-08 Thread Jack Dempsey
check http://www.php.net/manual/en/function.nl2br.php you could also do a regex, searching for \n, and adding a P to it...adding the /P would make it a little more difficult... -jack -Original Message- From: Romulo Roberto Pereira [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001

RE: [PHP] Problem with PHP 4.0.5

2001-05-08 Thread Jack Dempsey
are you sure your html is properly formatted? if you like, send me the small script you're using, and i'll run it on a pre 4.0.5 release... if something shows up in ie but not ns that's a browser, not php problem... -jack -Original Message- From: biscut [mailto:[EMAIL PROTECTED]] Sent:

[PHP] RE: Undelivered Mail Returned to Sender

2001-05-08 Thread Jack Dempsey
every reply i send to the list gives this back...could someone take that address off the list? thanks jack -Original Message- From: Mail Delivery System [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 2:16 PM To: [EMAIL PROTECTED] Subject: Undelivered Mail Returned to Sender

RE: [PHP] conversion script

2001-05-08 Thread Jack Dempsey
a simple perl script would suffice...don't have time to write one now (paper to write...joy) but if you can't find one, i can help later... -jack -Original Message- From: Ryan Christensen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 2:09 PM To: PHP Mailing List Subject: [PHP]

RE: [PHP] php, snmp, and mibs

2001-05-08 Thread Jack Dempsey
Mike, I haven't worked with MIB files myself, but what you're describing sounds like it could be solved with regex's...can you post a snippet of what file looks like that you're trying to extract from? -jack -Original Message- From: Mike Backes [mailto:[EMAIL PROTECTED]] Sent: Tuesday,

RE: [PHP] MYSQLDUMP

2001-05-08 Thread Jack Dempsey
you should be supplying a password...what's the error? -jack -Original Message- From: TopFive [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 08, 2001 5:06 PM To: [EMAIL PROTECTED] Subject: [PHP] MYSQLDUMP When I attempt to backup my database using MYSQLDUMP, I get repeated syntax

RE: [PHP] PHPmyadmin

2001-05-07 Thread Jack Dempsey
http://www.phpwizard.net/projects/phpMyAdmin/ -Original Message- From: John Vanderbeck [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 5:21 PM To: Ryan W. Zajicek; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] PHPmyadmin I'm curious, Where can I get a copy of

RE: [PHP] Sorting Multidimensional Arrays

2001-05-07 Thread Jack Dempsey
check http://www.php.net/manual/en/function.asort.php there's a routine someone wrote in the contributed section... -jack -Original Message- From: Rick Dietz [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 1:21 PM To: [EMAIL PROTECTED] Subject: [PHP] Sorting Multidimensional

RE: [PHP] Variable question

2001-05-07 Thread Jack Dempsey
you can do it a couple ways... echo my user name is . $user_data[username]; or echo my username is ${user_data[username]}; -Original Message- From: King, Justin [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 3:49 PM To: [EMAIL PROTECTED] Subject: [PHP] Variable question How

RE: [PHP] Variable question

2001-05-07 Thread Jack Dempsey
ok, look into eval() -Original Message- From: King, Justin [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 4:07 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Variable question Here let me flesh this out a bit more Consider the query SELECT datafield FROM myTable WHERE id=1; This

RE: [PHP] Passing variables to another page - newbie

2001-05-06 Thread Jack Dempsey
header(Location: http://something.foo.bar.com/page.extension?var1=etc;); -Original Message- From: Dean Martin [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 06, 2001 1:50 PM To: [EMAIL PROTECTED] Subject: [PHP] Passing variables to another page - newbie I have an order form that is

RE: [PHP] Trim a string

2001-05-06 Thread Jack Dempsey
if you're string is a variabe $address, then eregi(http://,$address) will tell you if they've put in the http part, and $address = substr($address,7); will slice off and store the text after the http:// you'll find lots of different ways to do this...whatever suits you, go for it... -jack

RE: [PHP] Really easy question

2001-05-06 Thread Jack Dempsey
check your html whenver you see blank pages in netscape, but they work in IE... -jack -Original Message- From: biscut [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 06, 2001 5:03 PM To: Tom Carter Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Really easy question Thanks very much for your

RE: [PHP] scripts

2001-05-05 Thread Jack Dempsey
You can make the files in the same group as the webserver. I keep my include files (with a .php extension) in a .phpinclude directory outside my web document root. -jack -Original Message- From: Paul O'Neil [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 05, 2001 4:02 PM To: [EMAIL

RE: [PHP] simple database extraction problem :(

2001-05-03 Thread Jack Dempsey
You can keep a count of what row in the result you are and use that accordingly to format your results... -Original Message- From: Sandeep Hundal [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 7:10 PM To: php Subject: [PHP] simple database extraction problem :( hi all! just a

RE: [PHP] Real Time

2001-05-03 Thread Jack Dempsey
PHP is server side. If you want to continously display the real time on your page, accurate to the second, you'd have to refresh every second...if you're not concerned about to the second accuracy, you could just use the date function with teh appropriate parameters to give you the current time

RE: [PHP] add to .htpasswd via php

2001-05-02 Thread Jack Dempsey
what user are you running the command on the the command line, and what user is php running it as? if you're root for the first one, but nobody on the second, that would be your problem... -jack -Original Message- From: Joseph Koenig [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02,

Re: [PHP] This is driving me to drink...

2001-05-01 Thread Jack Dempsey
Have you tried printing the values of $p_code and $neuroKey at various stages? Perhaps there's a space or some other slight inconsistency...if you could paste in the snippet, maybe we could see what was going on before this that might have it acting strange... -jack Richard S. Crawford wrote:

RE: [PHP] a bit off the list but....

2001-05-01 Thread Jack Dempsey
don't know if its what you're talking about, but try www.sap.com also, search google... -jack -Original Message- From: Jacky [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 10:28 AM To: [EMAIL PROTECTED] Subject: [PHP] a bit off the list but It is a bit off the list here

Re: [PHP] How can this be done?

2001-04-27 Thread Jack Dempsey
http://www.php.net/addslashes -jack Subodh Gupta wrote: Hi All, I created a table using the create command. create table trivia ( entry_id integer not null auto_increment, trivia text null ); Now I have a fle tvia.txt, the content of which are as follows: The

RE: [PHP] cell iterations in loop

2001-04-26 Thread Jack Dempsey
I'm a little unclear as to what you're trying to do, but here's my interpretation: problem 2: if it ends on a complete row... solution: put the echoing of the first and last tr's inside your conditional. When $x is initialized to 0, the if will return true, and you will output the very first

RE: [PHP] where are the mailing lists listed?

2001-04-26 Thread Jack Dempsey
Are you looking for a list of the different addresses? If you move your mouse over the yes you'll see the link to the various sections at http://marc.theaimsgroup.com/, or you can go there, scroll to the bottom, and look in the WWW section. They're all there. -jack -Original Message-

RE: [PHP] math calculations query

2001-04-26 Thread Jack Dempsey
initialize a total variable to 0. every time you print out a price, $total += $currentprice. at the end you'll have the total. am i misunderstanding you? -jack -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 3:43 PM To: [EMAIL

[PHP] error reporting/handling

2001-04-26 Thread Jack Dempsey
manesh, its in your php.ini file under error handling and logging... seek and ye shall find... -jack -- 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:

Re: [PHP] What is this??

2001-04-26 Thread Jack Dempsey
Manesh wrote: Warning: Undefined variable How do i get rid of this??? -- 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] if

Re: [PHP] Can I install Lihnux on My Windows 95 machine ?

2001-04-24 Thread Jack Dempsey
Yes, that's the idea behind having multiple drives ( or partitions ). If you format F and load Linux on it, then that won't affect any other partition... -jack Manisha wrote: Hi all, I am having my own personal computer running on windows 95. I have C / D / E / F / G drives with FAT 32

Re: [PHP] Posting to a form

2001-04-23 Thread Jack Dempsey
it looks like you left off the quotes around the value that you're echoing...try putting it in like this input type=text tabindex=17 name=Aname value=? echo strtoupper($Aname); ? -jack Wade wrote: I'm trying to do the following input type=text tabindex=17 name=Aname value= ? echo

Re: [PHP] newbie migration issues

2001-04-23 Thread Jack Dempsey
S.J. Basic syntax that you would be using in things like counters, statistics, date and time functions hasn't changed much at all...I don't have personal experience with php3, but i know that the developers of php4 have tried hard to make php4 very compatible with php3...i'm sure you'll get an

RE: [PHP] Regular Expressions?

2001-04-20 Thread Jack Dempsey
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, 2001 2:41 AM To: [EMAIL PROTECTED]

RE: [PHP] Newbie question: Page Counter

2001-04-20 Thread Jack Dempsey
chmod is a *nix command. you do it to the file: chmod 777 counter.inc on the command line -jack -Original Message- From: Marthe Kristiansen [mailto:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 3:04 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Newbie question: Page Counter then

RE: [PHP] displaying string combinations

2001-04-20 Thread Jack Dempsey
why not do this: //generate your random number and save it in $randomNumber switch($randomNumber){ case 1: echo "$banner1"; break; case 2: echo "$banner2"; break; case 3: echo "$banner3";

RE: [PHP] Problems with pattern matching

2001-04-20 Thread Jack Dempsey
i got the echo of "AOHell user" to appear with this... i'd look at what remote addr returns and check and see if that works with your regexp... jack $hostname = "www.aol.com"; if (eregi(".*\.aol\.com.*", $hostname)) { echo $hostname; echo "AOHell user"; }

RE: [PHP] TheCasino.com: You have been removed!

2001-04-20 Thread Jack Dempsey
aww shucks, now i won't be a millionaire. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, April 20, 2001 10:57 PM To: [EMAIL PROTECTED] Subject: [PHP] TheCasino.com: You have been removed! http://www.TheCasino.com: Better Than Life! (tm)

<    1   2   3   >