RE: [PHP] ereg

2002-01-10 Thread Martin Towell
what about ? ereg("(.*?)", $lineofhtml, $output); -Original Message- From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 3:05 PM To: Jimmy Cc: php-list Subject: Re: [PHP] ereg Nopes, dint work Regards, Kunal Jhunjhunwala - Original Message - From:

RE: [PHP] How to get a function backtrace?

2002-01-13 Thread Martin Towell
Hmm... I've been wondering if a function to do this exists too... would be REALLY handing for debugging!! Anyone know?? -Original Message- From: Stefan Rusterholz [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 8:35 PM To: PHP Subject: [PHP] How to get a function backtrace? I

RE: [PHP] PHP and search engine???

2002-01-13 Thread Martin Towell
you could try looking at http_referer or remote_host or something like that. Never tried it myself, but sounds like it'd work... dunno what the values for them would be though :( -Original Message- From: Dani [mailto:[EMAIL PROTECTED]] Sent: Monday, January 14, 2002 2:17 PM To: PHP LIST S

RE: [PHP] IF Statements

2002-01-13 Thread Martin Towell
if (action == "list") { if (isset($clientcode)) // or just "if ($clientcode)" would work... { // extended listing here } else { // normal listing here } } else if -Original Message- From: Necro [mailto:[EMAIL PROTECTED]] Sent: Monday, January 14, 2002 2:09 PM To:

RE: [PHP] splitting up an array into lines ...

2002-01-15 Thread Martin Towell
The problem is that this line: $rpm_list = `rpm -qa`; gives back a string, so use this: $rpm_list = `rpm -qa`; $rpm_list = explode("\n", $rpm_list); and see how that goes Martin -Original Message- From: Neil Mooney [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002

RE: [PHP] best way to approach dates

2002-01-20 Thread Martin Towell
Never worked with mysql but I would assume there's something like 'NOW' or now() or something similar, don't know how you'd put a different date in though :( timestamps are handy within php, you can then convert it to whatever format you want with date() or, if you wanted to go even further, cre

RE: [PHP] Variable referencing/substitution

2002-01-20 Thread Martin Towell
${$vNames[1]} = "new value"; // look at variable-variables in the manual for more info -Original Message- From: Gaylen Fraley [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 20, 2002 3:44 PM To: [EMAIL PROTECTED] Subject: [PHP] Variable referencing/substitution How can this be done?

RE: [PHP] Confusing Problem

2002-01-20 Thread Martin Towell
you'll need to make them global then... that's one thing that kept getting me when I started using php, global vars are only global if you tell them to be sorta like "local to the global scope" or something like that :) -Original Message- From: Tj Corley [mailto:[EMAIL PROTECTED]] Sen

RE: [PHP] agh - what am I doing wrong - regular expressions

2002-01-20 Thread Martin Towell
try this... I changed 1. the double quotes in "$pattern = ..." to single quotes 2. escaped the "?" 3. used ereg_replace to do everything, dropping the while loop $content = "http://www.globalhealth.org/text.php3?id=151 adjfladjfajdfkladfjl;kadjf jlkadjflkajdflkj jad

RE: [PHP] Re: PHP-JavaScript

2002-01-20 Thread Martin Towell
the only way php is going to know about a variable is if the server the script is on is sent the variable, the normal way of doing that is through posting/getting a page/script Martin -Original Message- From: Andrew V. Romero [mailto:[EMAIL PROTECTED]] Sent: Monday, January 21, 2002 2:11

RE: [PHP] PHP to another language

2002-01-20 Thread Martin Towell
*light hearted reply* blasphemy! sacrilege!! how can you ask a php mail list about converting code to another language?? (paraphase coming...) "php is the one true language and you shall not code any other language before it" :) Martin -Original Message- From: Andrew V. Romero [mailto:[E

RE: [PHP] ok, I ask again.. how to encrypt to be able to match database info?

2002-01-21 Thread Martin Towell
whichever way the original password was encrypted, encrypt the incoming password the same way, ie. if the original was encrypted in php, encrypt the incoming password in php before passing it to the sql statement, similarly if the original password was encrypted using mysql. Martin -Original

RE: [PHP] file upload with story

2002-01-21 Thread Martin Towell
I'm assuming all this data is coming in from a form - somewhere in the manual (too lazy at the monent to look where) there's a section on how to upload files. Once a file is uploaded (in your case, an image), just move it to somewhere accessable. Have field in the database that contains the name o

RE: [PHP] Re: easy question

2002-01-23 Thread Martin Towell
and I think, also, if it's the last command then you don't need to semi-colon (I put it in anyway for completeness, etc) found that out by accident... -Original Message- From: val petruchek [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 1:02 AM To: PHP Subject: Re: [PHP] Re:

RE: [PHP] to evaluate ...

2002-01-23 Thread Martin Towell
try changing: echo "$$temp\n"; to echo $$temp."\n"; or even echo ${$temp}."\n"; does that work? -Original Message- From: Thorsten Wandersmann [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 12:16 PM To: [EMAIL PROTECTED] Subject: [PHP] to evaluate ...

RE: [PHP] Form Problem

2002-01-23 Thread Martin Towell
somewhere in the form put: -Original Message- From: Michael P. Carel [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 1:48 PM To: php Subject: [PHP] Form Problem Hi there, I have a problem here regarding the form table name variable (i.e ), when i used Href tags to send t

RE: [PHP] I lost the message...

2002-01-23 Thread Martin Towell
$result = `ls foo*`; // :) :# ??? Martin -Original Message- From: Todd Cary [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 3:17 PM To: [EMAIL PROTECTED] Subject: [PHP] I lost the message... I am embarrassed to say that I lost the anser to my question on the syntax t

RE: [PHP] seems easy...

2002-01-23 Thread Martin Towell
$limit = "5000"; if(strlen($text) > $limit) { $text = substr($text, 0, $limit); $text .= "...sorry, text was too long"; } -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 3:34 PM To: php Subject: [PHP] seems easy... Hi, Really

RE: [PHP] Re: Warning: Failed opening '....' for inclusion (.....) in Unknown on line 0

2002-01-24 Thread Martin Towell
"error on line 0", maybe it's the auto-prepend file is not there? -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 3:25 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Warning: Failed opening '' for inclusion (.) in Unknown on line 0

RE: [PHP] Arrays as pointers?

2002-01-24 Thread Martin Towell
it's treating a string as a character array - it's documented somewhere in the manual, can't remember where though :( - not long ago someone was saying that the new way it to use curly-brackets, but square brackets still work for backwark compatibility. -Original Message- From: v0idnull

RE: [PHP] set_time_limit() in a loop

2002-01-24 Thread Martin Towell
your first thought was correct - it sets it to 1800, it's NOT accumulative. it would have something to do with ignore_user_abort(true); and also is your while loop's exit check working? Martin -Original Message- From: Matthew Delmarter [mailto:[EMAIL PROTECTED]] Sent: Friday, January

RE: [PHP] A link

2002-01-24 Thread Martin Towell
ok, i wont!! not trying to do reverse psychology are you? -Original Message- From: Philip J. Newman [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 11:34 AM To: [EMAIL PROTECTED] Subject: [PHP] A link [link snipped] Don't click the above link.

RE: [PHP] set_time_limit() in a loop

2002-01-24 Thread Martin Towell
end... Martin -Original Message- From: Matthew Delmarter [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 11:56 AM To: Martin Towell Cc: PHP Mailing List Subject: RE: [PHP] set_time_limit() in a loop I should also mention that the loop is sending mail using mail(). Is it pos

RE: [PHP] array[] and Javascript.

2002-01-24 Thread Martin Towell
syntax: document.forms["form_name"].elements["element_name"] so: document.forms["fname"].elements["array[]"].somethingelse -Original Message- From: Rodolfo Gonzalez [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 1:55 PM To: [EMAIL PROTECTED] Subject: [PHP] array[] and Javascri

RE: [PHP] Mpeg

2002-01-28 Thread Martin Towell
http://www.wotsit.org/search.asp?page=2&s=animated I haven't looked at the docs there for mpeg - but the other one's i've looked at are really useful... Martin -Original Message- From: Jon Farmer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002 12:22 AM To: Edward van Bilderb

RE: [PHP] Help with Logical 'OR'

2002-01-28 Thread Martin Towell
basically it's to do with "lazy evaluation" or whatever it's called * logical expressions are read from left to right. * with OR, the expression reading is halted when the first TRUE is found * with AND, the expression reading is halted when the first FALSE is found so with : if (true||fals

RE: [PHP] How? :)

2002-01-29 Thread Martin Towell
-- $news = mysql_query("select * from bookmarks ORDER by TNum,AU asc"); $old_TNum = ""; while ($mydata = mysql_fetch_object($news)) { if ($old_TNum != $mydata->TNum) #when TNum occurs the first time, echo it once only.

RE: [PHP] Change Text to CAPS.

2002-01-29 Thread Martin Towell
strtoupper() -Original Message- From: Philip J. Newman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 2:12 PM To: [EMAIL PROTECTED] Subject: [PHP] Change Text to CAPS. Is there anyway that I can change a string with lettle letters to caps? Philip J. Newman Philip's Domain

RE: [PHP] '' and \" -> How do you avoid removing these?

2002-01-29 Thread Martin Towell
there's a directive in the php.ini file, something like "magic_quotes" or something (too lazy to look...), set that to 0 (zero) or use stripslashes() (this might have an underscore in the name, again too lazy to check) on the vars Martin -Original Message- From: Jon [mailto:[EMAIL PROTEC

RE: [PHP] John: [PHP] How? :)

2002-01-29 Thread Martin Towell
:) http://DELETETHISccl.flsh.usherb.ca/bookmarks/DELETETHIS Martin Towell wrote: > -- > $news = mysql_query("select * from bookmarks ORDER by TNum,AU asc"); > $old_TNum = ""; > while ($m

RE: [PHP] Swapping for \n... ?

2002-01-29 Thread Martin Towell
Isn't there a function br2nl() and it's relative nl2br() ?? -Original Message- From: Jason Murray [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 3:14 PM To: 'Jon'; [EMAIL PROTECTED] Subject: RE: [PHP] Swapping for \n... ? > I'm processing a form but all the functions I've

RE: [PHP] Could somebody PLEASE explain this one to me

2002-01-29 Thread Martin Towell
dunno if this'll help, but try changing these two lines $this->$obj = new test1; $test = new test2; to these $this->$obj = &new test1; $test = &new test2; see if that helps - other than that - anyone else? -Original Message- From: Aric Caley [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

RE: [PHP] wait for existance of a remote file.....

2002-01-30 Thread Martin Towell
1. look for it 2. if it's not there 2a. wait a bit 2b. go back to 1. -Original Message- From: Wade Barrance [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 10:57 AM To: [EMAIL PROTECTED] Subject: [PHP] wait for existance of a remote file. I need a function that will wai

RE: [PHP] .

2002-01-30 Thread Martin Towell
sure about that ? -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 2:10 PM To: [EMAIL PROTECTED] Subject: [PHP] . . -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

RE: [PHP] mysql

2002-01-30 Thread Martin Towell
does executing $query through the mysql interface return anything? I'm thinking there's either: 1. An error in the SQL - but it looks good to me, or 2. It returns no records That's the only thing I can think of. Martin -Original Message- From: Mason Batley [mailto:[EMAIL PROTECTED]] Se

RE: [PHP] redirection rather than include()

2002-01-31 Thread Martin Towell
use: { header("location: new_full_url_here"); exit; } -Original Message- From: Benjamin deRuyter [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 9:42 AM To: PHP Subject: [PHP] redirection rather than include() This is a PHP newbie trying to figure something out. I am creatin

RE: [PHP] table row

2002-01-31 Thread Martin Towell
something like ? $cntr = 0; echo ""; while ($r = mysql_fetch_array($result0)) { $cntr++; $cityid = $r["t_city_id_city"]; $cityname = $r["t_city_name"]; echo " $cityname "; if ($cntr % 2 == 0) echo ""; } // from while result 0 echo""; -Original

[PHP] suppressing division by zero errors

2002-01-31 Thread Martin Towell
Is there a way to suppress division by zero errors? echo 5/0; // this give a warning - obviously!! @echo 5/0; // this gives a parse error echo @5/0; // this still comes up with a warning unless I turn error_reporting off before and turn it back on afterwards, but I don't want to do that unl

RE: [PHP] suppressing division by zero errors

2002-01-31 Thread Martin Towell
iam Wesley [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 10:17 AM To: [EMAIL PROTECTED] Cc: Martin Towell Subject: Re: [PHP] suppressing division by zero errors You really need to do some error checking on the denominator. $num = 5; $den = 0; echo $den != 0 ? $num/$den : "0&quo

RE: [PHP] suppressing division by zero errors

2002-01-31 Thread Martin Towell
that's alright - i'm using 4.0.6 and the suppression works thnx again -Original Message- From: Lars Torben Wilson [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 10:33 AM To: Christopher William Wesley Cc: [EMAIL PROTECTED]; Martin Towell Subject: Re: [PHP] s

RE: [PHP] ereg_replace help

2002-02-03 Thread Martin Towell
$lines = file("filename_here.blah"); // read in file as an array $content = implode("\n", $lines); // join it all back together $new_cont = ereg_replace("from", "to", $content); fopen(...); fputs(..., $new_content); fclose(...); if your intent is to replace all new lines with 's then use

RE: [PHP] ereg_replace help

2002-02-03 Thread Martin Towell
Frazer <[EMAIL PROTECTED]> wrote: > nl2br() would serve that purpose as well. See the > Strings section of the > Functions Reference in the manual. > > Mike Frazer > > > > "Martin Towell" <[EMAIL PROTECTED]> wrote in > message > [EMAIL PROT

RE: [PHP] PHP Classes and Sessions

2002-02-04 Thread Martin Towell
i believe you're meant to serialise objects and then register the serialised version?? Don't quote me on that, never used sessions, but I didn't read/hear it somewhere Martin -Original Message- From: PHP-List [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 4:30 PM To: [EMAIL

RE: [PHP] Problem...header already sent by

2002-02-04 Thread Martin Towell
you have : 24. header("www-Authenticate: Basic realm='Private'"); 25. header("HTTP/1.0 401 Unauthrized"); I have (and this works) Header ("WWW-authenticate: Basic realm=\"$blah\""); Header ("HTTP/1.0 401 Unauthorized"); * "Unauthrized" should be "Unauthorized" - missing "o"

RE: [PHP] How do I display variables in text boxes when the value of a drop down menu changes?

2002-02-05 Thread Martin Towell
to "access" php var in javascript, you'll need to set up javascript vars with the values of the php vars you want to use. eg. alert(foobar); // will display nothing - not set yet foobar = ""; alert(foobar); // now will display "testing" remember, to get the vars back t

RE: [PHP] MySQL selecting the maximum value from a column

2002-02-05 Thread Martin Towell
what happens if you do this? $result = mysql_query("SELECT MAX(Thought_Num) as Thought_Num FROM quotes",$db); I'm thinking that the column name in your original query is being called "MAX(Thought_Num)" and not "Thought_Num". Martin -Original Message- From: Melanie Gann [mailto:[EMAIL P

RE: [PHP] Fw: why !^ in email?

2002-02-06 Thread Martin Towell
I think it has something to do with the lines being too long, try throwing in a few carriage returns and see if that solve your problem Martin -Original Message- From: nina [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 5:21 PM To: [EMAIL PROTECTED] Subject: [PHP] Fw: wh

RE: [PHP] Re: Newbie: Question about filesize()

2002-02-06 Thread Martin Towell
that should be okay - it's to make sure that it is exactly equal to (as opposed to equates to be equal to) eg (0 === false) => false (0 == false) => true -Original Message- From: Ben Crawford [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 2:28 AM To: [EMAIL PROTECTED]

RE: [PHP] Re: XML closing elements called for

2002-02-06 Thread Martin Towell
if you set up the xml_set_character_data_handler(), maybe this isn't called for , but it will be called for (??) you might want to check that 'cause I haven't :) Martin -Original Message- From: Christian Stocker [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 10:50 AM To:

RE: [PHP] cURL and XML?

2002-02-06 Thread Martin Towell
this is what I'm using: $ch = curl_init($gat_url); // url to post to curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); // contains the XML curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $x = curl_exec($ch); curl_close($ch); -

RE: [PHP] Using functions before they're defined

2002-02-07 Thread Martin Towell
I've found that you can specify a function anywhere in the page and call it anywhere in the page so: \n"; } foobar(); ?> would work and display the text twice, without errors/warnings I haven't looked at the php's source code, but maybe it's a two pass parser (??) first it gets all the functio

RE: [PHP] Regex function needed

2002-02-07 Thread Martin Towell
what about words at the start of the string?? eg $str = "One can see this is or was a test for short words, although an, should be deleted to."; -Original Message- From: Edward van Bilderbeek - Bean IT [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 10:47 AM To: [EMAIL PROTECTE

RE: [PHP] Regex function needed

2002-02-07 Thread Martin Towell
what about? $str = "a bc def ghij klmno p qr i'd do, it. stu vwxy a"; $az = "[a-zA-Z']"; $str = str_replace(",", " , ", $str); $str = str_replace(".", " . ", $str); $str = trim(preg_replace(array("/ $az /", "/ $az$az /", "/ $az$az$az /"), " ", " $str ")); // couldn't get "/ [a-zA-Z]{1,3} /" to w

RE: [PHP] Checking for plus signs?

2002-02-07 Thread Martin Towell
remember to escape the escape character so php passes it onto the reg.ex. function correctly, so: if(eregi("\\+",$variable)) -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:54 PM To: Jim Lucas [php]; Leif K-Brooks; [EMAIL PROTECTED] Su

RE: [PHP] http://

2002-02-07 Thread Martin Towell
try this: $str = $s24; // this is the string you want to look at... $dst = '\\1\\2'; foreach (array("http://";, "mailto:";, "telnet:", "news:";) as $src) { $str = ereg_replace("(".$src."[^ ]*)( *)", $dst, $str); } echo $str; -Original Message- From: jtjohnston [mailto:[EMAIL PROTECT

RE: [PHP] Execing problems

2002-02-07 Thread Martin Towell
does using system() work? what about back-ticks? - `funky script stuff here`; -Original Message- From: Jason Rennie [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 3:14 PM To: [EMAIL PROTECTED] Subject: [PHP] Execing problems Hi all, I have a seperate perl script that I need

RE: [PHP] determining script url

2002-02-07 Thread Martin Towell
I think what'll you'll need to do is look through the phpinfo() output and piece together all the parts, eg $HTTP_HOST (or should that be $_HTTP["HOST"] ?), $PHP_SELF, etc. If anyone knows of a better way, I'd like to know too Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[

[PHP] call stack

2002-02-07 Thread Martin Towell
I know this comes up again, and again, and I'm bringing it up again now :) There's been requests for a function that displays the current heirachy of calls I was just thinking about this - php must maintain a stack so that it knows what function to return to when another function exits, why can't

RE: [PHP] escaping ?>

2002-02-10 Thread Martin Towell
what about this? $contents = str_replace('', '', $contents); -Original Message- From: Steven Jarvis [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 09, 2002 8:46 AM To: [EMAIL PROTECTED] Subject: [PHP] escaping ?> I'm trying to do some string replaces on XML files to import them i

RE: [PHP] Forms and IE

2002-02-10 Thread Martin Towell
might be the header("location..."); bit - you might need to specify the full address -Original Message- From: Sean Hurley [mailto:[EMAIL PROTECTED]] Sent: Monday, February 11, 2002 3:40 PM To: [EMAIL PROTECTED] Subject: [PHP] Forms and IE Please forgive me if this has been covered bef

RE: [PHP] image generation issues

2002-02-11 Thread Martin Towell
when you say it doesn't work, do you mean that you get an error message or it just doesn't write the text to the image? -Original Message- From: Adrian Murphy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 1:16 PM To: [EMAIL PROTECTED] Subject: [PHP] image generation issues

RE: [PHP] image generation issues

2002-02-11 Thread Martin Towell
ebruary 12, 2002 2:04 PM To: Martin Towell; [EMAIL PROTECTED] Subject: Re: [PHP] image generation issues i get 'Could not read font in..' i set permissions to 777 on both file and folder - Original Message - From: "Martin Towell" <[EMAIL PROTECTED]> To: "

RE: [PHP] PHP Work in New York

2002-02-12 Thread Martin Towell
I guess I'm lucky living in Australia then - there's quite a few places using ASP but there's a HUGE increase in the number of businesses who are starting to use PHP. Maybe you should all move to Oz?? hehehe :) Martin -Original Message- From: Jason Murray [mailto:[EMAIL PROTECTED]] Sent

RE: [PHP] Limiting use on public scripts.

2002-02-12 Thread Martin Towell
maybe have a client id that they need to send with each request and have the checking script use that, instead of the ip or url, etc -Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 10:32 AM To: [EMAIL PROTECTED] Subject: [PHP] Limiting us

RE: [PHP] Troubles With Mail Function

2002-02-12 Thread Martin Towell
Have you set up the [mail function] section of your php.ini file ? -Original Message- From: Dr. Shim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 12:11 PM To: [EMAIL PROTECTED] Subject: [PHP] Troubles With Mail Function Hello. I'm pretty new to PHP, so if this is a dumb

RE: [PHP] Troubles With Mail Function

2002-02-12 Thread Martin Towell
] Troubles With Mail Function No I haven't. How do I do that -------- "Martin Towell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Have you set up the [mail function] section of your php.ini file ? -- PHP General

RE: [PHP] Filling Forms with $variables

2002-02-13 Thread Martin Towell
also remember that strictly speaking, _all_ html attribute values _should_ be quoted -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 9:07 AM To: PHP Subject: RE: [PHP] Filling Forms with $variables Enclose the value in quotes, like so:

RE: [PHP] Troubles With Mail Function

2002-02-13 Thread Martin Towell
I think the SMTP would be same as you use for your email client (outlook, eudora, other?) -Original Message- From: Dr. Shim [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 11:33 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Troubles With Mail Function Alright, I will show you

RE: [PHP] Anyway to open a PHP file and view its code in thebrowser?

2002-02-14 Thread Martin Towell
yeah - going through a seb server, you're going to get the executed version of the code and not the code itself. -Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 9:19 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Anyway to open a PHP file a

RE: [PHP] Anyway to open a PHP file and view its code in the browser?

2002-02-14 Thread Martin Towell
symbolic links are basically pointers to another file/directory eg. you have a file foo.html you can create a symbolic link to it and call it bar.html - if you refer to bar.html, then you're really referring to foo.html why are they useful ? well, suppose you want a two or more files/dirs to

RE: [PHP] searching key words from a database field

2002-02-14 Thread Martin Towell
try something like this (not tested): 0) $sql .= " AND `keywords` LIKE '%".$getme_arr[$i]."%'"; $sql .= " ORDER BY `id` ASC LIMIT 0, 30"; ?> -Original Message- From: Philip J. Newman [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 11:27 AM To: David Robley Cc: David

RE: [PHP] fopen

2002-02-14 Thread Martin Towell
or read the original file into memory, reopen the file for writing, write the first prepend bit, then write what you just read -Original Message- From: Lars Torben Wilson [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 1:18 PM To: John Smythe Cc: [EMAIL PROTECTED] Subject: Re:

RE: [PHP] searching key words from a database field

2002-02-14 Thread Martin Towell
Something at the top - :) -Original Message- From: David Robley [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 2:47 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] searching key words from a database field In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > try somethin

RE: [PHP] Polymorphism question

2002-02-17 Thread Martin Towell
A bit late in replying - but what the hay (or is that "hey"??) oh well... >From my understanding of virtual functions (and it's been at least 3 to 4 years since I've done C++) is that a "virtual function" has basic functionality and a "pure virtual function" has no, and can't have, and code. Ple

RE: [PHP] Re: The ASP "application" object in PHP?

2002-02-17 Thread Martin Towell
Isn't this something to do with shared memory? I haven't played with shared memory before, but this sounds like it might work. Martin -Original Message- From: Philip Hallstrom [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 16, 2002 8:37 AM To: Peter J. Schoenster Cc: [EMAIL PROTECTE

RE: [PHP] form submission error trapping

2002-02-17 Thread Martin Towell
submit back to the same page - or include that page Martin -Original Message- From: Jason Dulberg [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 9:23 AM To: [EMAIL PROTECTED] Subject: [PHP] form submission error trapping I am working on some error trapping for several forms

RE: [PHP] Running php from shell - passing parameters

2002-02-17 Thread Martin Towell
$argv and $argc are prob. what you're after - dunno if there's any parameter parsing functions - but it's a start HTH Martin -Original Message- From: Bostjan Marusic [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 10:00 AM To: [EMAIL PROTECTED] Subject: [PHP] Running php from

RE: [PHP] form submission error trapping

2002-02-17 Thread Martin Towell
something like: not tested but should work - just expand on it Martin -Original Message- From: Jason Dulberg [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 10:22 AM To: Steven Walker Cc: [EMAIL PROTECTED] Subject: RE: [PHP] form submission error trapping

RE: [PHP] form submission error trapping

2002-02-17 Thread Martin Towell
2002 10:40 AM To: Martin Towell Cc: [EMAIL PROTECTED] Subject: RE: [PHP] form submission error trapping Thanks for the code Is there a way to keep track of what fields had the errors as its possible for people to have like 5 errors? Thanks again. Jason -Original Message- From: M

RE: [PHP] building dynamic pdf files?

2002-02-17 Thread Martin Towell
Adobe Acrobat 5 or 6 - whichever's the latest version - can grab web pages and convert them to pdf. Depends if you want to fork out to buy it Martin -Original Message- From: Jeff D. Hamann [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 3:39 PM To: [EMAIL PROTECTED] Subject:

RE: [PHP] help with Header call

2002-02-17 Thread Martin Towell
make sure the url in the header("location:") is a full url and not a relative url Martin -Original Message- From: Robbie Newton [mailto:[EMAIL PROTECTED]] Sent: Monday, February 18, 2002 4:06 PM To: [EMAIL PROTECTED] Subject: [PHP] help with Header call Hello everyone, This is my firs

RE: [PHP] Novice Question

2002-02-18 Thread Martin Towell
window.document.frmName.elements["poly[]"].value !!! -Original Message- From: JSheble [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 9:41 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Novice Question with this type of naming convention, how would you write a javascript fun

RE: [PHP] code

2002-02-18 Thread Martin Towell
shouldn't matter - php would type cast one to other and then compare -Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 10:24 AM To: Tyler Longren; John Gurley; [EMAIL PROTECTED] Subject: Re: [PHP] code Is $inst an int or a string? =dn > ma

RE: [PHP] RE: [PHP-DB] I cant get the logic for this...

2002-02-18 Thread Martin Towell
try this - in pseudo-code, can't do everything for you :) max = 3 col = 0 echo "table" while (row = db_results) if (col == 0) echo "tr" echo "td data /td"; if (col == max - 1) echo "/tr" col = (col + 1) % max wend if col > 0 for i = 1 to max - col echo "td nbsp td" next ec

RE: [PHP] argv and argc

2002-02-19 Thread Martin Towell
IF it is deprecated in 4.1.0, then what are we meant to use in place of it? Martin -Original Message- From: Darren Gamble [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 9:04 AM To: 'Chris Boget'; PHP General Subject: RE: [PHP] argv and argc Good day, The array $argv con

RE: [PHP] Help for passing variable to all pages

2002-02-19 Thread Martin Towell
looks like there's a problem with this line: test link try using this line instead: ">test link looks like you were missing the end quotes and closing "bracket" of the anchor tag See how that goes Martin -Original Message- From: WG4- Cook, Janet [mailto:[EMAIL PROTECTED]]

RE: [PHP] Help for passing variable to all pages

2002-02-19 Thread Martin Towell
that makes me think that your page isn't being executed through php. why this is happening, i don't know - maybe a misconfigured web server Martin -Original Message- From: WG4- Cook, Janet [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 10:50 AM To: Martin Towell

RE: [PHP] regexp on user supplied link

2002-02-19 Thread Martin Towell
reg.ex. something like (not tested): "]*>" this would give you the entire anchor tag, then go from there? or what about using the XML parsing routines, get it to find the anchors and give you it's attributes, then go from there? Martin -Original Message- From: Justin French [mai

RE: [PHP] really hopelessly stuck on this problem!

2002-02-19 Thread Martin Towell
what about just include'ing it? -Original Message- From: DigitalKoala [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 11:53 AM To: [EMAIL PROTECTED] Subject: [PHP] really hopelessly stuck on this problem! hi folks, i've been tearing my hair out over a redirection problem

RE: [PHP] Help for passing variable to all pages

2002-02-19 Thread Martin Towell
ble to help you. Martin -Original Message- From: WG4- Cook, Janet [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 1:18 PM To: Martin Towell; WG4- Cook, Janet; PHP List Subject: RE: [PHP] Help for passing variable to all pages That's not a lot of help - its a new installati

RE: [PHP] search results - details

2002-02-19 Thread Martin Towell
I'm assuming you have an id in that table, so all you need to do is pass the details page the id and the details page can then display whatever you want it to display -Original Message- From: mm fernandez [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 3:21 PM To: [EMAIL PRO

RE: [PHP] how the "ticks" works?

2002-02-20 Thread Martin Towell
As the manual says - it executes the "tick" function every 'n' low-level statement - but what's counted as a low-level statement, I don't know... It appears that, in the example, the low-level statements are the "for" and the "echo" If anyone can shed light on this subject, I'd be interested too

RE: [PHP] Removing every thing between ( )

2002-02-20 Thread Martin Towell
(not tested but...) something like: $string = ereg_replace("\([0-9]* Test\)", "", $string); if you want to keep the backets, then: $string = ereg_replace("\([0-9]* Test\)", "()", $string); HTH Martin -Original Message- From: bvr [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 21,

RE: [PHP] Removing every thing between ( )

2002-02-20 Thread Martin Towell
I agree - I think that if you've worked at something and feel that you're getting nowhere - then by all means ask. But I do feel that there have been some people that have posted to this list in past who have posted just to get someone else to do their code for them, without trying themselves. And

RE: [PHP] Using one submit button

2002-04-16 Thread Martin Towell
user price[] as the name you'll also need to pass the ids as $id[] so you know which one you're updating -Original Message- From: Jennifer Downey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 17, 2002 11:51 AM To: [EMAIL PROTECTED] Subject: [PHP] Using one submit button Hi all, I t

RE: [PHP] Displaying Results

2002-04-16 Thread Martin Towell
I think you can get everything after the ? in the URL with $QUERY_STRING but I think that it would be a bit dangerous to just accept what's passed, I think some checking should be done before you use $QUERY_STRING as is -Original Message- From: Jason Soza [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] Nasty DoS in PHP

2002-04-17 Thread Martin Towell
[snip] > > If this allows a DoS attack, then this is a very real security problem. > > Why should it? Even if there is a verifiable bug allowing time/memory > limits to be exceeded when header() goes into an infinite loop, how could > someone exploit this from the outside? If a scripter is l

RE: [PHP] Nasty DoS in PHP

2002-04-17 Thread Martin Towell
Is that memory usage used by PHP or apache? -Original Message- From: Jason Soza [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 12:35 PM To: CC Zona Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Nasty DoS in PHP For what it's worth, I just ran this script on my server, and desp

RE: [PHP] need your help

2002-04-17 Thread Martin Towell
is this a local server you're connecting to (as in, on the same machine as the script) if it is, then the ip address would prob. need to be "127.0.0.1" and not "172.0.0.1" -Original Message- From: Waty [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 1:29 PM To: [EMAIL PROTECTED]

RE: [PHP] PHP and Quicktime...

2002-04-17 Thread Martin Towell
you don't need php to do this - use html's to do it -Original Message- From: Pusta [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 3:49 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP and Quicktime... Hello all, I'm new at PHP but learning and loving it. For a school project, I

<    1   2   3   4   5   6   7   8   >