[PHP] Re: [PEAR] PEAR

2002-04-03 Thread Martin Jansen
r), to include_path in your php.ini and you're done. >and more, importantly do i have 2 force my host to install it or can i do it >myself. i'm just looking to use the file_find package. Upload the desired package somewhere on your website and again add the location to your i

[PHP] Email from Browser

2002-04-03 Thread Martin Schichl
Dear List! Is there an environment variable in PHP, which holds the value of the email-adress, which is stored in the user's browser? Martin - Dipl.-Ing. Martin Schichl SC&C Software, Communication & Consulting

RE: [PHP] Cannot upload JPEG only

2002-04-03 Thread Martin Towell
The reason I asked about the .htaccess files is because I thought that _maybe_ there might be something in prod site that allows jpegs and gifs to be uploaded, or the other way 'round, on the dev site that stops the uploading. It's a shot in the dark but worth a look. Martin ---

[PHP] Logfile of Mysql Queries?

2002-04-04 Thread Moschitz Martin
Is there any possibility of logging all the Insert, Update and Delete Commands to a database of Mysql-Server? I would like to fetch them with php and display them in HTML. thanxs martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Help with " Function " parameter

2002-04-04 Thread Martin Towell
return to this: Return array($realday, $month, $year); and then change this line Datereturn(); to either $tmp = Datereturn(); $realday = $tmp[0]; $month = $tmp[1]; $year= $tmp[2]; Or this (which I think is a better way) list($realday, $month, $year) = Datereturn();

RE: [PHP] Incrementing number by .1 or substracting .1

2002-04-04 Thread Martin Towell
so try something like this for ($i = 5; $i < 6; $i += .1) { echo number_format($i, 1) . ", "; } -Original Message- From: Devin Atencio [mailto:[EMAIL PROTECTED]] Sent: Friday, April 05, 2002 10:37 AM To: [EMAIL PROTECTED] Subject: [PHP] Incrementing number by .1 or substracting .1 D

RE: [PHP] Returned e-mail (PHP mail function)

2002-04-04 Thread Martin Towell
I believe the default from address is the user of the process that sends the email, in this case, the web server. (your isp's sys admins are going to be "happy" with you if you have too many bounced emails.) -Original Message- From: Anthony Rodriguez [mailto:[EMAIL PROTECTED]] Sent:

[PHP] Cannot compile my extension as a shared .so library

2002-04-05 Thread Martin Wickman
Hi php-4.1.2 linux RH 7.2 I have created a small php extension. The extension works as expected when I compile it using $ ./configure --with-foo && make # foo is the extension It gets compiled into the php binary. All is well, but I would like to compile my extension as a loadable modules (

RE: [PHP] asking about .exe file

2002-04-07 Thread Martin Towell
yes - look at system(), exec() and "backtick" in the manual (the last one goes under a different name, I believe) -Original Message- From: wong [mailto:[EMAIL PROTECTED]] Sent: Monday, April 08, 2002 11:58 AM To: [EMAIL PROTECTED] Subject: [PHP] asking about .exe file Can php execute .e

RE: [PHP] Banning javascript?

2002-04-08 Thread Martin Towell
but what about on* - eg onClick, onSubmit, onMouseOver, etc? -Original Message- From: Jason Murray [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 2:17 PM To: 'Leif K-Brooks'; [EMAIL PROTECTED] Subject: RE: [PHP] Banning javascript? Use strip_tags and only allow basic HTML (bas

RE: [PHP] Help I killed PHP on mysever...

2002-04-08 Thread Martin Towell
um - pray which OS and web server are you running? -Original Message- From: Chuck "PUP" Payne [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 09, 2002 4:33 PM To: PHP General Subject: [PHP] Help I killed PHP on mysever... I have done something stupid and not PHP won't work. Everytime y

[PHP] Outputting Array Values

2002-04-09 Thread Martin Clifford
don't understand why it doesn't print out each value in the array... any help would be VERY appreciated! Also, please CC me on any replies, as I'm subscribed to the digest! Thanks! Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Visitors Log Help

2002-04-10 Thread Martin Clifford
please CC me on responses since I'm on the digest! Thank you in advance! Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Visitors Log Help

2002-04-10 Thread Martin Clifford
this looks like a good way to get a handle on file permissions, file writing, reading, etc. Thanks for answering my question though! :) Martin >>> "Andrew Brampton" <[EMAIL PROTECTED]> 04/10/02 11:56AM >>> Well that should write as soon as that php is requeste

Re: [PHP] Visitors Log Help

2002-04-10 Thread Martin Clifford
I don't think I need to concern myself with that as of yet, since my site barely gets any hits per day, I don't think there is the possibility of two people accessing it at the same exact time. Thanks though :o) Martin >>> "Andrew Brampton" <[EMAIL PROTEC

RE: [PHP] PHP/ASP/Siteminder

2002-04-10 Thread Martin Towell
throw in a phpinfo() on the page you want to access that variable on, go down to the bottom and have a look at was variables are set. HTH Martin -Original Message- From: peter ferrigan [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 4:08 AM To: [EMAIL PROTECTED] Subject: [PHP

RE: [PHP] OO-PHP Style question

2002-04-10 Thread Martin Towell
Re: about referencing A from B You're exactly right - to make a reference, you'll need to either 1) make A global, or 2) pass A as a parameter to B's constructor. Re: (un)serialising maintaining reference, not copy Sorry, haven't tried serialising an object with references in it before - I guess

RE: [PHP] image dimentions

2002-04-10 Thread Martin Towell
getimagesize() -Original Message- From: Steve Klugherz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 10, 2002 3:11 PM To: [EMAIL PROTECTED] Subject: [PHP] image dimentions Is there anyway to gather image dimentions from a gif or a jpg file? I need to gather this information from use

RE: [PHP] editors

2002-04-10 Thread Martin Towell
emacs, editplus, phpedit, etc, etc. have a look on google -Original Message- From: Steve Klugherz [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 12:07 PM To: [EMAIL PROTECTED] Subject: [PHP] editors Does anyone know of any text editors that understand the syntax of php? I hav

RE: [PHP] PHP and localhost (newbie!!)

2002-04-10 Thread Martin Towell
you could set up c:\ as your web root :P -Original Message- From: Tiago Simões [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 11:04 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP and localhost (newbie!!) Hello everybody! I'm just entering the wonderful world of PHP and i alread

RE: [PHP] Clicking Once -- buttons?

2002-04-10 Thread Martin Towell
use javascript onClick="this.disabled=true;" I think that's correct -Original Message- From: Jason Caldwell [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 1:09 PM To: [EMAIL PROTECTED] Subject: [PHP] Clicking Once -- buttons? Is there a way I can ensure the end user clicks th

RE: [PHP] ini_set doesn't work

2002-04-10 Thread Martin Towell
why don't you just do an include "hello.html"; at the end of the file? -Original Message- From: Hiroshi Ayukawa [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 2:04 PM To: [EMAIL PROTECTED] Subject: [PHP] ini_set doesn't work Hello, I wnat to set auto_append_file in my own ph

RE: [PHP] A Details Popup

2002-04-10 Thread Martin Towell
use javascript window.open() - call the window some unique name, that way it'll reuse the window if it's already open in the page for that window, use window.focus() to bring it to the front look at http://developer.netscape.com/ and hunt around for the javascript manual (I haven't been there for

RE: [PHP] ini_set doesn't work

2002-04-10 Thread Martin Towell
> [snip mail header info] > > Hello, > > >why don't you just do an include "hello.html"; at the end of the file? > > Because, there are so many files. > thanks. > > [snip mail footer info] but you'd have to put set_ini() in each of your files (unless you're putting it in an auto prepended file)

[PHP] Statistic Variables

2002-04-11 Thread Martin Clifford
ed by" and that kind of thing. Thanks! Please CC me, I'm on digest. Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Pass variables via URL

2002-04-11 Thread Martin Towell
missing an "echo" - -Original Message- From: Craig Westerman [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 9:45 AM To: php-general-list Subject: [PHP] Pass variables via URL I'm trying to set $image = imageA via a URL: http://www.abc123.com/php001/image_switch.php?image=imag

RE: [PHP] "the document contained no data"

2002-04-11 Thread Martin Towell
turn the displaying of errors on, and set the error level to E_ALL I'm thinking that you've got a error somewhere that's stopping the script prematurely -Original Message- From: Phieu Huynh [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 10:49 AM To: [EMAIL PROTECTED] Subject: [PH

RE: [PHP] "the document contained no data"

2002-04-11 Thread Martin Towell
eu Huynh [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 12:31 PM To: Martin Towell; [EMAIL PROTECTED] Subject: Re: [PHP] "the document contained no data" I don't know how to set erro level to E_ALL, can you give me some sample. I did try different way handle."

RE: [PHP] "the document contained no data"

2002-04-11 Thread Martin Towell
odd, I copied your code, changed the dir to "./" and it works for me (php4.0.?, winnt) if dir() doesn't work for you, you might need to use opendir(), readdir(), etc -Original Message- From: Phieu Huynh [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 2:14 PM To

RE: [PHP] "the document contained no data"

2002-04-11 Thread Martin Towell
!== is correct - it's checking for type, as well as value "strict non-equality" -Original Message- From: Phillip S. Baker [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 3:38 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] "the document contained no data" At 10:33 PM 4/11/2002 Thurs

RE: [PHP] "the document contained no data"

2002-04-11 Thread Martin Towell
does that code work if you set the directory path to "./" ? -Original Message- From: Phieu Huynh [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 3:33 PM To: Martin Towell Cc: [EMAIL PROTECTED] Subject: Re: [PHP] "the document contained no data" I also tr

RE: [PHP] String termination

2002-04-11 Thread Martin Towell
I think that all chars (\0 to \255) are valid chars in php, from the looks of it, php maintains the strings length, or something, so that you can have \0 in the string Martin -Original Message- From: Marco Laponder [mailto:[EMAIL PROTECTED]] Sent: Friday, April 12, 2002 4:50 PM To

[PHP] bug in str_replace() ?

2001-10-21 Thread Martin Lindhe
str_replace() does replacements on input, but not on the soon-to-be output it is working on. Is this to be expected, or would it be ok to modify the functionality of str_replace()? /Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] OnUNload Scripts

2001-10-23 Thread Martin Towell
ndow, have it close itself after it's finished processing. Hope this helps. Martin -Original Message- From: Impex Holidays Maldives / Hasan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 24, 2001 4:16 PM To: [EMAIL PROTECTED] Subject: [PHP] OnUNload Scripts Hi everyone, I c

RE: [PHP] URL variables

2001-10-24 Thread Martin Towell
try $QUERY_STRING -Original Message- From: Clint Tredway [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 25, 2001 5:13 AM To: PHP General Subject: [PHP] URL variables How do I reference URL variables..? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAI

RE: [PHP] Re: Using Logical OR operator in IF statement???

2001-10-24 Thread Martin Towell
>> if ((substr($sString,(strlen($sString)-1)!="-")) or Looks to me that the bracketing is wrong... try: if ((substr($sString,(strlen($sString)-1))!="-") or -Original Message- From: Mark [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 25, 2001 11:12 AM To: [EMAIL PROTECTED] Subject: Re

RE: [PHP] Netscape 6.1 problem and SELECT lists / FORMS

2001-10-24 Thread Martin Towell
Haven't tried this, but what about sending "nocache" headers to the browser (??) -Original Message- From: Jason Caldwell [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 25, 2001 4:12 PM To: [EMAIL PROTECTED] Subject: [PHP] Netscape 6.1 problem and SELECT lists / FORMS NS6.1 remembers

RE: [PHP] Re: authentication help

2001-10-25 Thread Martin Towell
($userid == "somename2" && $password == "somepassword2") || ($userid == "somename3" && $password == "somepassword3")) { Martin -Original Message- From: Gaylen Fraley [mailto:[EMAIL PROTECTED]] Sent: Friday, October 26, 2001 2:01

RE: [PHP] Help, need the scripts of processing the to-be-confirmed email.

2001-10-25 Thread Martin Towell
Question 2: you'll notice the 4th parameter to mail() is the headers to send. You can use something like: "From: Name <[EMAIL PROTECTED]>\r\n" or "From: Name <[EMAIL PROTECTED]>\r\nReply-To: Name <[EMAIL PROTECTED]>\r\n" (can't remember if this the right format for the name/email address, but thos

RE: [PHP] tail a file

2001-10-25 Thread Martin Towell
if you're using unix, there's the "tail" command: $results\n"; ?> -Original Message- From: Yamin Prabudy [mailto:[EMAIL PROTECTED]] Sent: Friday, October 26, 2001 4:08 PM To: [EMAIL PROTECTED] Subject: [PHP] tail a file Hi there I need help here I got a file say it's a logs file and ke

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

2001-10-29 Thread Martin Towell
what something like: $the_array=split("]*)", $html,-1); ?? so, everything that's not a ">" -Original Message- From: brendan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 30, 2001 1:59 PM To: [EMAIL PROTECTED] Subject: [PHP] @#$@# Reg Expressions thanks but it didnt work either ..

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

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

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

2001-10-29 Thread Martin Towell
Off track - seems like the only ppl awake now are ozzies :) would I be right? -Original Message- From: Brad Hubbard [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 30, 2001 3:11 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] @#$@# Reg Expressions On Tue, 30 Oct 2001 14:47, brendan wrote:

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

2001-10-29 Thread Martin Towell
Here - I'm from NSW, Oz !!! can't make it any harder for you :) -Original Message- From: Brad Hubbard [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 30, 2001 3:42 PM To: brendan; [EMAIL PROTECTED] Subject: Re: [PHP] @#$@# Reg Expressions On Tue, 30 Oct 2001 15:27, brendan wrote: > Yo

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

2001-10-29 Thread Martin Towell
ARGH!! You, you, missed!! :/ -Original Message- From: Brad Hubbard [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 30, 2001 3:53 PM To: Martin Towell; [EMAIL PROTECTED] Subject: Re: [PHP] @#$@# Reg Expressions On Tue, 30 Oct 2001 15:49, Martin Towell wrote: > Here - I'm from

RE: [PHP] what's this???

2001-11-04 Thread Martin Towell
"$this" refers to the current object so "$this->mode" refers to the variable inside the current object called "mode" Hope this helps Martin -Original Message- From: Christian C. [mailto:[EMAIL PROTECTED]] Sent: Monday, November 05, 2001 12:17 PM To

RE: [PHP] Secure transfer between servers

2001-11-04 Thread Martin Towell
or, instead of MD5 (depending on how secure you want it) you could use base64_(en|de)code -Original Message- From: James [mailto:[EMAIL PROTECTED]] Sent: Monday, November 05, 2001 12:46 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Secure transfer between servers Perhap

RE: [PHP] URGENT: Can PHP on Linux deal with Access DB?

2001-11-04 Thread Martin Towell
I'm interested in knowing how to do this too. If it's at all possible. Martin -Original Message- From: Marco Fioretti [mailto:[EMAIL PROTECTED]] Sent: Monday, November 05, 2001 9:36 AM To: [EMAIL PROTECTED] Subject: [PHP] URGENT: Can PHP on Linux deal with Access DB? Hell

RE: [PHP] Array HELP PLEASE

2001-11-08 Thread Martin Towell
echo ""; for ($i = 6; $i <= 25; $i++) { echo stripslashes($models[$i]).""; } echo ""; Martin T -Original Message- From: René Fournier [mailto:[EMAIL

RE: [PHP] Append to STDIN

2001-11-08 Thread Martin Towell
this wouldn't be something similar to C's ungetch() ?? -Original Message- From: Cleber S. Mori [mailto:[EMAIL PROTECTED]] Sent: Friday, November 09, 2001 3:16 PM To: [EMAIL PROTECTED] Subject: [PHP] Append to STDIN Hi again... I had already RTFM... Neither in exec or ``'s I found any

RE: [PHP] emailing attachments

2001-11-11 Thread Martin Towell
it's HTML -Original Message- From: Don [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 3:37 PM To: php Subject: [PHP] emailing attachments Hi, I have a class that allows me to send e-mail with an attachment. I have a form that gathers information and I would like to allow

RE: [PHP] executing another php.script

2001-11-11 Thread Martin Towell
include "file"; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001 3:44 PM To: [EMAIL PROTECTED] Subject: [PHP] executing another php.script I am sure that I am just .. missing this .. >From one script I wish to 'execute' another scrip

RE: [PHP] how do the thing?

2001-11-11 Thread Martin Towell
once you have read in the file and parsed it up, all you need to do then is to find the correct "string" to execute and call it using : eval($string); happy coding Martin T -Original Message- From: Galkov Vladimir [mailto:[EMAIL PROTECTED]] Sent: Monday, November 12, 2001

[PHP] imap_mail_compose correct?

2001-11-12 Thread Martin Gutbrod
Hello, does anybody have experience with function imap_mail_compose() ?? There is an example in the documentation but in my script the "description" doesn't work. So the filename of the attachement is not avaliable. And why starts the $body-Array with $body[1] and not with bo

RE: [PHP] using mail

2001-11-12 Thread Martin Towell
the forst param to mail is the extra headers to send add in "Reply-To: [EMAIL PROTECTED]\r\n" and/or "From: [EMAIL PROTECTED]\r\n" ( I think this one's correct ) -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 9:41 AM To: PHP User Group

RE: [PHP] using mail

2001-11-12 Thread Martin Towell
oops, "forst" is meant to be "forth" -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 9:44 AM To: 'Brandon Orther'; PHP User Group Subject: RE: [PHP] using mail the forst param to mail is the extra he

RE: [PHP] for loop problem?

2001-11-12 Thread Martin Towell
try removing the quotes and see if that works eg $value1 = "100"; becomes $value1 = 100; and for($i="$value1"; $i<="$value2"; $i++) { becomes for($i=$value1; $i<=$value2; $i++) { Martin T -Original Message- From: Tyler Longren [mailto:[EMAIL

RE: [PHP] date conversion and calculation problem...

2001-11-12 Thread Martin Towell
te1[0] ); Martin T -Original Message- From: py [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 2:47 PM To: [EMAIL PROTECTED] Subject: [PHP] date conversion and calculation problem... Hello, I have 2 date string like this $t1 = "2001-11-12 17:30:10"; $t2 = "2001

RE: [PHP] for loop problem?

2001-11-12 Thread Martin Towell
hmmm... I just tried : $value1 = 100; $value2 = 1223109; for($i = $value1; $i <= $value2; $i++) { echo "$i\n"; } and it spat out all 223109 numbers (albiet after a VERY long time) can't see how adding mysql code would affect the loop... Martin T -Original Messag

RE: [PHP] Group by Howto

2001-11-12 Thread Martin Towell
$name; } now fill in the blanks Martin T -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 2:58 PM To: [EMAIL PROTECTED] Subject: [PHP] Group by Howto I have a database with 2 colums in it -|--| Place of work| Name |

RE: [PHP] for loop problem?

2001-11-12 Thread Martin Towell
bers then adding it back on later Martin T -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 3:38 PM To: Jack Dempsey Cc: PHP-General Subject: Re: [PHP] for loop problem? I've ran it a few times without the MySQL code in there. Runs

RE: [PHP] take date and convert to day of year

2001-11-13 Thread Martin Towell
tried using the original format, strtotime() complained, saying it couldn't convert it. Martin T -Original Message- From: sundogcurt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 7:57 AM To: GENERAL PHP LIST Subject: [PHP] take date and convert to day of year Hi guys, I

RE: [PHP] silly question

2001-11-13 Thread Martin Towell
try adding the "nocache" header() calls to the page to force the broswer to refresh. See how that goes Martin T -Original Message- From: Rodrigo Peres [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 9:43 AM To: PHP Subject: [PHP] silly question Hi list, I hav

RE: [PHP] javascript to php ???????

2001-11-13 Thread Martin Towell
"serialise" the array and make the "value" of a hidden field this value. Then in PHP "unserialise" it. -Original Message- From: fitiux [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 10:18 AM To: PHP General Cc: [EMAIL PROTECTED] Subject: Re: [PHP] javascript to php ???

RE: [PHP] javascript to php ???????

2001-11-13 Thread Martin Towell
Sent: Wednesday, November 14, 2001 10:28 AM To: [EMAIL PROTECTED]; PHP General Subject: RE: [PHP] javascript to php ??? On Wed, 14 Nov 2001 10:16:42 +1100, Martin Towell wrote: >"serialise" the array and make the "value" of a hidden field this >value. >Then in PHP "u

RE: [PHP] take date and convert to day of year

2001-11-13 Thread Martin Towell
L PHP LIST Subject: Re: [PHP] take date and convert to day of year I have tried to implement your code Martin, and I do thank you VERY MUCH for the help, but your code seems to have the same trouble as mine, it doesn't matter what date I start with, I end up with 364 as the day of the year

[PHP] Non-PHP question

2001-11-13 Thread Martin Towell
Sorry about asking a non-PHP question here, but I thought that since I've been helping others recently, you'll give me a bit of lee-way. In IE, to find out how far down a page is scrolled, you can do "document.body.scrollTop" what's the equivalent in Netscape 6 ? Thanks in advance Martin

RE: [PHP] can php detect whether an email address is a valid one?

2001-11-13 Thread Martin Towell
You can set the "Error-To: " header to some email address that runs a script to remove the email address - other that that, no, not that I know of. -Original Message- From: Alex Chau [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 1:31 PM To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] Non-PHP question

2001-11-13 Thread Martin Towell
OK, just found it! window.pageYOffset -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 1:25 PM To: [EMAIL PROTECTED] Subject: [PHP] Non-PHP question Sorry about asking a non-PHP question here, but I thought that since I've

RE: [PHP] Checkboxes / Undefined Variables

2001-11-13 Thread Martin Towell
use : @$name_of_chechbox_3 to suppress warnings or at the start of the file do : if (!isset($name_of_chechbox_3)) $name_of_chechbox_3 = ""; or something similar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 5:03 PM To: [EMAIL P

RE: [PHP] mail() function

2001-11-14 Thread Martin Towell
It's probably thinking that "Do Not Reply" is a user name, so try: "Do Not Reply <[EMAIL PROTECTED]>" and see how that goes -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 10:50 AM To: PHP User Group Subject: [PHP] mail() function Hel

RE: [PHP] Controlling length of table data

2001-11-14 Thread Martin Towell
if you're going to go the "break string in words" way, then try $words = explode(" ", $string); -Original Message- From: Gaylen Fraley [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 2:54 PM To: [EMAIL PROTECTED] Subject: [PHP] Controlling length of table data This is reall

[PHP] Re: strpos

2001-11-15 Thread Martin Thoma
strpos return false if the search fails. You have therefore to test for: if (strpos(...,...) === false) or if (strpos(...,...) !== false) Martin Jtjohnston wrote: > I suppose I'm doing this right? I want to know if the user entered > "\.jpeg" or "\.jpg"

[PHP] Regular expressions?

2001-11-15 Thread Martin Thoma
out of the php-documentaion. Where can I start to learn reg-exp? Should I use the ereg- oder preg-functions? Help! 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: strpos

2001-11-15 Thread Martin Thoma
> if (!strpos(...)) > will be better... Why? -- 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] Segmented Code/HTML VS. ECHO??

2001-11-18 Thread Martin Towell
I think it's just a matter of taste - I haven't found any noticable differences between the two. Sometimes the code it more readable with raw html, sometimes with echos. -Original Message- From: Brad Melendy [mailto:[EMAIL PROTECTED]] Sent: Monday, November 19, 2001 11:37 AM To: [EMAIL P

RE: [PHP] Additional e-mail address in PHP script...

2001-11-18 Thread Martin Towell
add: $mailheaders.="CC: $other_email\n"; $mailheaders.="BCC: $other_email\n"; should also work but I haven't managed to get blind carbon copy to work for me :( -Original Message- From: Anthony Ritter [mailto:[EMAIL PROTECTED]] Sent: Monday, November 19, 2001 12:49 PM To: [EMAIL PROTECTE

RE: [PHP] Different syntax = different performance (concatenating assignment)

2001-11-21 Thread Martin Towell
is the same sort of thing for strings in PHP. Martin -Original Message- From: George Whiffen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 21, 2001 11:39 PM To: [EMAIL PROTECTED] Subject: [PHP] Different syntax = different performance (concatenating assignment) Dear All, I h

[PHP] Flash programming

2001-11-21 Thread Martin Towell
Anyone know how one can "import" a flash file into PHP for use with "ming" or something similar? It's an easy to make a flash animation with ming, but I'd like to be able to modify an existing flash file. thnx Martin

RE: [PHP] PHP Arrays conflicting with Javascript, PLease advise?!?

2001-11-21 Thread Martin Towell
use something like: customer_info["customer_info[shipto_address_line1]"].value = customer_info["customer_info[billto_address_line1]"].value; ie. each form element can be referenced by name within the elements array: frm.name --> frm["name"] -Original Message- From: Steve Maron

RE: [PHP] Need regular match help - possibly

2001-11-21 Thread Martin Towell
for the first case - using "\n", try : ereg_replace('\n+', '\n\n\n', $str) for the second case - using "", try : eregi_replace('()+', '', $str); Martin -Original Message- From: Gaylen Fraley [mailto:[EMAIL PROTECTED]] Se

[PHP] get_included_files() in php3

2001-11-22 Thread Martin Towell
Hi all, Is there a way of generating a list of files that have been included, in php3, similar to php4's get_included_files() ?? If so, can you supply code plz? Thnx Martin

RE: [PHP] Missing PHP.ini

2001-11-22 Thread Martin Towell
doesn't win2k files go under C:\winnt ? what about looking under the php directory??? -Original Message- From: John Monfort [mailto:[EMAIL PROTECTED]] Sent: Friday, November 23, 2001 1:06 PM To: [EMAIL PROTECTED] Subject: [PHP] Missing PHP.ini Hello everyone! I upgraded my system f

RE: [PHP] HTTP_POST_VARS, forms, and not allowing modifications.

2001-11-25 Thread Martin Towell
you said you tried a text field, have you tried a hidden field? does it HAVE to be in $HTTP_POST_VARS ?? can you append it to whatever link you have using "?unique_id=$id" or something similar? Martin T -Original Message- From: C. Bensend [mailto:[EMAIL PROTECTED]] Se

RE: [PHP] Pulling information out of a MySQL database

2001-11-25 Thread Martin Towell
T(EventStartDate, '%W %M %D %Y') AS FormattedEventStartDate, DATE_FORMAT(EventEndDate, '%W %M %D %Y') AS FormattedEventEndDate, TIME_FORMAT(EventStartTime, '%r') AS FormattedEventStartTime, TIME_FORMAT(EventEndTime, '%r') AS FormattedEventEndTime FROM comcal

RE: [PHP] Selecting databases

2001-11-26 Thread Martin Towell
"if" something like: if ($db == 1) connect to db1 else if ($db == 2) connect to db2 else if ($db == 3) connect to db3 would that do? -Original Message- From: Marts [mailto:[EMAIL PROTECTED]] Sent: Friday, November 23, 2001 11:45 AM To: [EMAIL PROTECTED] Subject: [PHP] S

RE: [PHP] how to acess php array var in Js?

2001-11-27 Thread Martin Towell
try : form_name["cb[]"] -Original Message- From: Christian Dechery [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 28, 2001 11:53 AM To: [EMAIL PROTECTED] Subject: [PHP] how to acess php array var in Js? If I have a series of checkboxes like this: This is 1 This is 2 This is 3

RE: [PHP] Re: Updating rows in a MySQL database with PHP

2001-11-27 Thread Martin Towell
Also, I've found that if an SQL statement isn't doing what you're expecting it to do, then echo it out and copy/paste it into the database querier (mysql, sqlplus, isql, etc). I've found these quieriers give better error messages than what you get back through PHP -Original Message- From

RE: [PHP] Newbie Image uplaod question

2001-11-27 Thread Martin Towell
try changing to -Original Message- From: Ryan Stephens [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 28, 2001 4:13 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Newbie Image uplaod question ok... ive tried this but no go: <-> function

RE: [PHP] Newbie Image uplaod question

2001-11-27 Thread Martin Towell
rf: http://www.php.net/manual/en/features.file-upload.php $userfile - The temporary filename in which the uploaded file was stored on the server machine. $userfile_name - The original name or path of the file on the sender's system. $userfile_size - The size of the uploaded file in bytes. $user

RE: [PHP] Re: How can you determine if you on the last result?

2001-11-28 Thread Martin Towell
I believe there's no row count function for oci, so could you change the logic to: while(OCIFetchInto ($curs, $data)) { // normal code here } if($isLastRecord) // do something ?? Martin -Original Message- From: Philip Hallstrom [mailto:[EMAIL PROTECTED]] Sent: Thursday, Nov

RE: [PHP] include or fread a binary file?

2001-11-28 Thread Martin Towell
you might need to set the content-type... -Original Message- From: Bryant Brabson [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 29, 2001 9:56 AM To: [EMAIL PROTECTED] Subject: [PHP] include or fread a binary file? I have a flash file that I need to embed in an iframe on a page. I

[PHP] Recommended book on PHP & e-commerce

2001-11-28 Thread Martin Wright
Can someome recommend such a book to a relative newcomer. I'm looking for something on writing carts and the processing that goes thereafter. Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

RE: [PHP] Explanation

2001-11-28 Thread Martin Towell
it's a ternary operator $string1 = (isset($string2)) ? $HTTP_GET_VARS['pid'] : ""; is the same as if (isset($string2)) $string1 = $HTTP_GET_VARS['pid']; else $string1 = ""; -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 29, 2001 12:28 PM

AW: [PHP] Query Help Needed

2001-11-29 Thread Martin Lucas
take a look at your table definiton. maybe some of your fields have a diferent definition as the value you want to insert. e.g. fax_number in your query-string is defined as string and in your table as integer or something like this regards martin -Ursprüngliche Nachricht- Von

AW: [PHP] Query Help Needed

2001-11-29 Thread Martin Lucas
that seems to be easy: put every string and varchar in single quotes eg '$surname' and every number like $fax_number without quotes regards martin -Ursprüngliche Nachricht- Von: Payzillee [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 29. November 2001 13:16 An: [EMAIL

RE: [PHP] How do I put a path to Sendmail in php script??

2001-11-29 Thread Martin Towell
it's one of the options in the php.ini file, if i'm not mistaken -Original Message- From: Mike [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 11:28 AM To: [EMAIL PROTECTED] Subject: [PHP] How do I put a path to Sendmail in php script?? The server that I am using has Sendmail

RE: [PHP] PHP Authentication

2001-11-29 Thread Martin Towell
use a standard form... and in your php code, use, $username and $password -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 11:23 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] PHP Authentication On Fri, 30 Nov 2001 11:02:45 +1030, [

RE: [PHP] Saving A Database Image to a File (Thumbnail Problems)

2001-11-29 Thread Martin Towell
try changing this line fputs($fd,$Images,strlen($Images)); to fputs($fd,$Images); as you don't need to specify the length. If you don't specify the length, it'll write the entire string. see how that goes... -Original Message- From: Mike Gifford [mailto:[EMAIL PROTECTED]] Sent: Friday

RE: [PHP] Using urlencode to pass varfiables in a URL

2001-12-03 Thread Martin Towell
There is a limit to the size of a GET request - can't remember what it is though POST's can be any size however. Maybe a search of the RFC's might tell you the limit of GET's http://sunsite.dk/RFC/ -Original Message- From: Don [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001

<    6   7   8   9   10   11   12   13   14   15   >