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

2001-05-06 Thread Dean Martin
e var: header("Location: http://something.foo.bar.com/page.extension?var1=etc";); ex with 3 vars: header("Location: http://something.foo.bar.com/page.extension?var1=etc&var2=123&var3=abc";); - Original Message - From: "Jack Dempsey" <[EMAIL PROTECTED]

[PHP] Undefined Variables / PHP 4.0.4pl1

2001-05-18 Thread Martin Thoma
Hello ! I just installed PHP 4.0.4pl1 over an existing PHP 4.0.1 on Win98 with Apache. Alle works greate, but I get a lot of warnings: Warning: Undefined variable: MyVariable in filename The warnings weren't there in the earlier version. How can I turn of these warnings ? Regards M

Re: [PHP] Who has PHP4 and FTP experience?

2001-05-18 Thread Martin Thoma
Whats the problem ? ;-) Gunter Ohrner schrieb: > Hi! > > I'm looking for some hints for the PHP ftp module as I have some problems > using it - if anyone has experience in using the PHP ftp module it would be > very cool someone could send me an email... > > Greetinx, > > Gunter Ohrner > > --

Re: [PHP] Undefined Variables / PHP 4.0.4pl1

2001-05-18 Thread Martin Thoma
Thanx a lot, I found it in php.ini ! "Johnson, Kirk" schrieb: > If you have access to php.ini, see the "Error handling and logging" section. > Else, see http://www.php.net/manual/en/ref.errorfunc.php > > Kirk > > > -----Original Message- > &

[PHP] Color of Pixel

2001-05-19 Thread Martin Thoma
Hello ! I got a jpg-picture on my disk. Is there any way to find out the color of a pixel (let's say, I want to know, which color the pixel 1,12 on image img.jpg is.) Ideas ? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

[PHP] count() multidimensional array

2001-05-19 Thread Dean Martin
I have a multidimensional array being created by a form. Most fields are pre-populated with a few that people can add to the list. There is a box beside each row that they can check whether that item is in or not. My code to list only the rows that were checked is this.. for ($j=1 ; $j=5; $j++

[PHP] VariableName

2001-05-24 Thread Martin Thoma
in a for-next-loop ? Regards 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] VariableName

2001-05-24 Thread Martin Thoma
should equal 5 */ > ${"Name" . $i} = $default_value; > } > > So if $n was 3 and $default_value was 0, you'd have three variables who's > value was 0: > $Name1 > $Name2 > $Name3 > > Variable variables are the way to go. They're so cool :) I wonder if Java

[PHP] New session...

2001-05-24 Thread Martin Thoma
stroy doesn't work, too. What I want is, the PHP assigns MyId a new value. Ideas ? 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]

[PHP] PHP Hosting in The UK

2001-06-20 Thread Martin Wright
When do you need it Jamie we are in the process of setting something up? It is actually focused on PHP business application software but we will be offering hosting as well. Martin > Just a quickieDoes anyone know of any cheap but reliable (i.e. they > know > at least something

[PHP] shared object not open

2001-06-25 Thread Martin Schmidt
each. SuSE 7.1 Prof-Edition, from this distribution I installed apache and PHP (everything working fine, but no idea how to activate informix/oracle-support) Apache says, PHP4-module installed. Thanks a lot for any help Martin Schmidt -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] shared object not open

2001-06-30 Thread Martin Schmidt
Richard Lynch wrote: I had ldconfig running several times (editing ld.so.conf in between by even changing the sequence in the ld.so.conf) but it doesn't help me. Thanks Martin > > Try running ldconfig from your command line. > > I think you just run it and it does things

[PHP] Exec and Session

2001-07-06 Thread Martin Harm
works absolutely fine, if I dont use sessions (eg. just reject the cooky) Any sugestions ? martin harm [EMAIL PROTECTED] PS: Using PHP.4.0.5 on Linux Test-Script: logfile = tempnam("/tmp/","LOG_"); $cmd="nohup perl asyn_proc.pl $para 1> $job->logfile 2>&

Re: [PHP] shared object not open (Solution ?)

2001-07-08 Thread Martin Schmidt
om my SuSE-distribution and gave my to hints: 1. Try to configure PHP with the option --enable-rules=EAPI 2. fetch the apache-server from internet and install this one instead of SuSE's. No. 1 I tried and it works, as long as I do not include --with-informix. So I will have to try no.2 also. Martin

[PHP] associative arrays

2001-07-12 Thread Martin Lucas
Hi everybody i have the following database query: $result=mysql_db_query("database","select item1,item2 from table"); while ($row=mysql_fetch_array($result)){ $a=$row[item1]; $b=$row[item2]; } what i need is an associative array, with $a as

AW: [PHP] associative arrays

2001-07-12 Thread Martin Lucas
hi adrian, many thanks for your tip. it works fine. kind regards martin -Ursprüngliche Nachricht- Von: Adrian Ciutureanu [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 12. Juli 2001 15:46 An: Martin Lucas Cc: [EMAIL PROTECTED] Betreff: RE: [PHP] associative arrays $result

[PHP] Strange Behavior... is it php bug? please help... i'm dying.!!!

2001-07-17 Thread Martin Marconcini
found what exactly is happening) Any help would be appreciated... Thanks in advance. Regards, Martin Marconcini "Life must be lived looking forward and can be understood only looking backward." Soren Kierkegaard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMA

[PHP] Re: How to ENCODE quoted_printable

2001-09-17 Thread Martin Pavlas
th about 33% more space it doesn't seem to me to be the very best >solution :( Base64 works fine. And I think it is the only best solution now :-))) -- Martin Pavlas ParsCom IS s.r.o. http://www.parscom.cz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Problem with compilation with GD support on OpenBSD 2.9

2001-09-19 Thread Martin Ambroz
Hi, I have problem with GD lib in PHP. I try compile PHP with Gdlib on OpenBSD 2.9. I download gd-1.8.4, freetype-2.0.4, libpng-1.2.0 and jpeg-6b. With compile gd i have some problems, but I thought it was OK. But during compilation php-4.0.6 has happened mistake. This: /bin/sh /home/darius/insta

[PHP] Session-id in url, not in cookies

2001-09-27 Thread Martin Thoma
Hello! How can I make the session-id ONLY be stored in the url, even if the user has cookies enabled? I have no access to the php.ini-file. Any ideas? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] Get current date and time

2001-09-29 Thread Martin Kampherbeek
These worked. Thanks - Original Message - From: Kurt Lieber <[EMAIL PROTECTED]> To: 'Martin Kampherbeek' <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, September 30, 2001 2:34 AM Subject: RE: [PHP] Get current date and time > How about o

[PHP] how to decrease serverload easily?

2001-10-02 Thread Martin Lindhe
he configuration. Is there any easy way of doing this? Anyone have previous experience? Software versions and OS'es is of no concern, we'll use what's required. /Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

RE: [PHP] what directory should put the php.ini?

2001-10-02 Thread Martin Lindhe
> Hi all, > > I have just rename the php.ini-dist to php.ini from the > installation directoy but am not sure where to place it in > order for php to > rea,, any help?? > thanks What OS are you running PHP on? /Martin -- PHP General Mailing List (http://www.php.net/) T

[PHP] Using Array of classes as a class member variable?

2001-10-04 Thread Martin Stephenson
variable number of classes (Such as a CObject class in MFC for Visual C++) - i.e. is there soem other collection class/type I don't know of ? Thanks, Martin. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

[PHP] Re: Adding zeros to date

2001-10-05 Thread Martin Thoma
Use the date-function. See help for details. -- 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]

[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

RE: [PHP] Multidimensional array construction

2001-12-03 Thread Martin Towell
I was thinking that you could use a "pointer to var", eg: $var = 'myarray["foo"]["bar"]["red"]["apple"]'; // this would obviously be created dynamically, hard coded for testing $$var = $some_value1; echo $myarray["foo"]["bar"]["red"]["apple"]; but when I tried it, it didn't work :(

RE: [PHP] Why are slashes automatically stripped from db result?

2001-12-03 Thread Martin Towell
maybe mysql is stripping the slashes and not php ?? -Original Message- From: Steve Cayford [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 10:57 AM To: [EMAIL PROTECTED] Subject: [PHP] Why are slashes automatically stripped from db result? Hey all. I'm storing some jpeg imag

RE: [PHP] Problem with round

2001-12-03 Thread Martin Towell
to print two decimal points always, use : printf("%.2f",$value); round() just rounds the number and doesn't store extra zeros. -Original Message- From: Diego Pérez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 04, 2001 11:06 AM To: [EMAIL PROTECTED] Subject: [PHP] Problem with round

RE: [PHP] New Page Escape Sequence

2001-12-04 Thread Martin Towell
if it's just a plain text file then, in theory, you can insert a FF character (0x0C) but as mentioned, this might not work on all printers. if you're using html, try using: or put the style in some other tag if it doesn't work for there's also "page-break-after: always;" that you could use...

RE: [PHP] Logic

2001-12-04 Thread Martin Towell
now change || to && and see if that does the job -Original Message- From: Dan McCullough [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 12:57 PM To: PHP General List Cc: Richard S. Crawford Subject: Re: [PHP] Logic that didnt work,i started off with if ($type != "add") {

RE: [PHP] mysql update query

2001-12-04 Thread Martin Towell
are any of the fields of type number/integer/etc? if so, try removing the quotes for that field. -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 2:36 PM To: Greg Sidelinger; [EMAIL PROTECTED] Subject: Re: [PHP] mysql update query Ever

RE: [PHP] Simple(?) Question

2001-12-05 Thread Martin Towell
if you want the browser to do it (as opposed to getting php to do it), then you could use a "hidden" form, like: ... etc (all hidden fields) ... -Original Message- From: Andrew Forgue [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 06, 2001 9:32 AM To: [EMAIL PROTECTED] Subject:

<    4   5   6   7   8   9   10   11   12   13   >