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, Januar

[PHP] How to protect JavaScript?

2002-01-16 Thread Martin Thoma
Hello! I want to protect a JavaScript: It should only be readable out of the document, where it is included (with

[PHP] Re: User authentacation

2002-01-16 Thread Martin Wickman
[EMAIL PROTECTED] wrote: > Hello, > > I need to allow a client, named: "A", to give their clients access to a remote page >on A's server. This is the problem: > 1. I need to record who has accessed this page on A's server grep stuff /var/log/httpd/access.log > 2. password protect this page

[PHP] Re: Parsing?

2002-01-16 Thread Martin Thoma
Hi Tony, you could do this by getting the file through http, which means not open it with fopen("filename.php4", "r") but with fopen("http://servername/filename.php4";, "r"). Then you get exactly the way to browser sees it. But this is very slow if you

Re: [PHP] How to protect JavaScript?

2002-01-16 Thread Martin Thoma
Hi Bart, I think it's the same problem as with php: You could only protect it, when a HTTP_REFERRER is send (which Netscape does not do): Description: Assume we have under http://www.quux-corp.de/~quux/ some pages with inlined GIF graphics. These graphics are nice, so others directly

Re: [PHP] How to protect JavaScript?

2002-01-16 Thread Martin Thoma
ooking for, but I don't see why > you couldn't. > > http://httpd.apache.org/docs-2.0/misc/rewriteguide.html This is a lot of stuff... Could you give me a hint where the way leads to? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROT

Re: [PHP] mysql_insert_id?

2002-01-16 Thread Martin Wickman
Dl Neil wrote: > 2 because the (function argument) controlling feature is the connection, it is not >possible for another > concurrent user to 'steal' your ID or influence the ID returned to you - it's all >yours! Ok, assume you are correct, but what if you are using persistent connections (i

[PHP] Re: htmlspecialchars() alias

2002-01-18 Thread Martin Wickman
Jason G. wrote: > Hello General and Dev list, > > Considering the fact that it is good practice to use htmlspecialchars() > anytime you are outputting non-html content to the browser... > > After typing the 16 characters in the htmlspecialchars() function > thousands of times... > > I was wo

Re: [PHP] Generating a new line in a text file

2002-01-18 Thread Martin Wickman
Jason Murray wrote: >>: Don't know why it's got everyone else stumped. >>: >>: "\n" is the new line character. Make sure you use it in "" and >>: not in ''. >>: >>: Jason >> >>Unfortunately, that doesn't work either, it changes the \n that >>appeared at the end of the new line to a single black

RE: [PHP] best way to approach dates

2002-01-20 Thread Martin Towell
wanted to go even further, create a date class and do all your date manipulation using objects... I've found that easier since I've got a class already written, but don't know where I've put it now :( so I can't send it... Martin -Original Message- From: Justin Frenc

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

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. Rome

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

RE: [PHP] file upload with story

2002-01-21 Thread Martin Towell
s the name of the image so when you come to display it, you'll know if there's an image for that record... Hope that helps. Martin -Original Message- From: will hives [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 22, 2002 10:01 AM To: [EMAIL PROTECTED] Subject: [PHP] fi

[PHP] Split files

2002-01-22 Thread Martin Thoma
Hello! Is there a PHP-function to split binary files into pieces of a several size and glue them together later? Martin -- 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

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

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] Split files

2002-01-23 Thread Martin Thoma
on a cd. It's a part of a backup-mechanism I'm wirting in PHP. Martin -- 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]

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: Frida

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
no, that shouldn't affect it - ignore_user_abort() keeps the script going even if the user aborts (I'm assuming you already knew that...) so the only thing that I can think of that's keeping the script going it the while loop - check the exit condition to make sure it does actually

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

[PHP] Re: Printing JPEG images generated with ImageJPEG with IE/WIN

2002-01-25 Thread Martin Thoma
Hm, it could be that IE tries to reload the picture (which isn't there anymore because the form-data has been expired). Perhaps saving the picture temporarly on the server will prevent the problem. Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [

[PHP] Connect to Mail-Server

2002-01-25 Thread Martin Thoma
Hello! Somewhere I read something on how to connect to a mail-server with php and to send and receive mails on a very "basic" level (calling "Helo" to the mail-server and so on). Does anybody know, where I can get those information exactly? Martin -- PHP Genera

[PHP] RE: [PHP-WIN] HELP! with PHP extension <

2002-01-28 Thread Martin Lindhe
me is "extension"? Just asking you to doublecheck since the default would be "extensions". /Martin -- 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]

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:2

RE: [PHP] Help with Logical 'OR'

2002-01-28 Thread Martin Towell
so with : if (true||false) php will stop processing when it comes across the "true" and with : if (false&&true) php will stop processing when is comes across the "false" in both cases, this means that whatever the second expression is, it wont get "executed"

[PHP] Re: HOWTO: detect browser's script enabled?

2002-01-29 Thread Martin Thoma
Hm, the easiest way would be, try where myfile.js contains simply nothing. Everytime the file is downloaded, someone uses Javascript. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

RE: [PHP] How? :)

2002-01-29 Thread Martin Towell
time, echo it once only. { $old_TNum = $mydata->TNum; $body .= "".$mydata->TNum.":"; } $body .= "".$mydata->AU.""; } ------ tada!! Martin ---

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

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

2002-01-29 Thread Martin Towell
Through email - Y? -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 2:23 PM To: [EMAIL PROTECTED] Subject: [PHP] Martin: [PHP] How? :) Martin, Are you guys getting yours by email or monitoring a newsgroup reader? John Works wonderfully

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

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
that unless I REALLY have to Martin

RE: [PHP] suppressing division by zero errors

2002-01-31 Thread Martin Towell
PI/2), etc] I know there's probably loads of code already written to do what I'm thinking of doing, but there's no substitute in starting from scratch and getting something working yourself :) Thanks Torben, that helped. Martin -Original Message- From: Christopher Will

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
is that a direct copy from your code? - if it is, there's two errors 1. you have a comma just before the closing backet 2. the function is : implode(string glue, array pieces) so that would be : $content = implode("\n", $lines); ie. the two arguments are the wrong wa

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,

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
ng" remember, to get the vars back to php, you'll need to make a request to the server using one of serveral methods hope that helps Martin -Original Message- From: Don [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 9:00 AM To: php list Subject: [PHP] How do I dis

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

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

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, 2

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:

[PHP] call stack

2002-02-07 Thread Martin Towell
why can't something display this stack - or doesn't this stack contain that type of information? Is this the right mailing list - maybe I should have sent it to php-dev ??? Martin

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

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
mail -t -i') if your problem is caused by anything else, then I can't help you there, maybe someone??? HTH (hope this helps) Martin -Original Message- From: Dr. Shim [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 12:26 PM To: [EMAIL PROTECTED] Subject: Re: [PHP

[PHP] pack problem

2002-02-13 Thread Martin Wickman
Hi I am having some problems with the 'pack' function. Some values just doesnt come out right. For instance, 0xa0 turns into x81a0. Here is some code I used for testing. It packs the value, prints it. Then unpacks the value and prints it # This is wrong, but note that unpack gives the correct

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
f it's possible) but on unix, use the command "ln" HTH Martin -Original Message- From: Kevin Stone [mailto:[EMAIL PROTECTED]] Sent: Friday, February 15, 2002 9:44 AM To: 'Andreas Gietl'; [EMAIL PROTECTED] Subject: RE: [PHP] Anyway to open a PHP file and view its c

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
here but you do have to do some of the work :-) And Philip, sorry, I'm not a real Kiwi - just here for a year or so from Oz. -- David Robley Temporary Kiwi! -- database search logic like this can get _REALLY_ complex - you could 1) combine phrase and word search eg something "some text together" 2) allow the user to decide which logic function to use eg foo and bar or hello not world 3) and combine the two eg foo and "bar lala" or "hello world" not anything I'll let you figure out how to do all that - I've done it once, lost the code and now have too many white hairs to think about doing it again!! Martin (Not-a-Kiwi)

RE: [PHP] Polymorphism question

2002-02-17 Thread Martin Towell
tion" has no, and can't have, and code. Please correct me if I'm wrong Martin -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 16, 2002 3:31 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Polymorphism question I've also done C and C++

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

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

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] R

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

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] Su

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,

AW: [PHP] More: Frustrating ?

2002-02-17 Thread Martin Lucas
hi john, maybe this is the right way $where="id like ".$id; $query="select * from ccl where '".$where."' order by AU desc"; $result=mysql_query($query); regards martin > -Ursprüngliche Nachricht- > Von: jtjohnston [mailto:[EMAIL PROTECTE

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 a

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 [

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- F

<    1   2   3   4   5   6   7   8   9   10   >