Re: [PHP] Help Please

2002-07-29 Thread Martin Clifford
Copy and paste the code (minus and indisclosurables) and we can take a look at it :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> Varsha Agarwal <[EMAIL PROTECTED]> 07/29/02 04:27PM >>> Hi

RE: [PHP] Not a Valid File-Handle Resource

2002-07-29 Thread Martin Towell
1. Take out the @ before fopen(), this may shed some light on your problem 2. What does "/home/blurredv/data/".$username."Contact.txt" expand out to actually be? 3. Does the script have write access to the directory/file? -Original Message- From: Chris Carlson [mailto:[EMAIL PROTECTED]] S

RE: [PHP] What is REGEX ?

2002-07-29 Thread Martin Towell
REGEX is short for "Regular Expressions" It gives you a "smarter" way to manupulate strings. The PHP manual has some good docs on reg.ex. - see section LXXXIV and LXXXVI HTH Martin -Original Message- From: Lord Loh. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July

[PHP] RE: One more question

2002-07-29 Thread Martin Towell
;ll have to fix this line up :) { if ($counter % $numcols == 0) echo ""; // echo image stuff here if ($counter % $numcols == $numcols-1) echo ""; } if ($counter % $numcols != $numcols-1) echo ""; (if I remember your original post correctly) Martin -

Re: [PHP] passing variable via url ( newbye question)

2002-07-30 Thread Martin Clifford
http://myaddress/php/mypage.php?modo=123&color=red&size=3 Just separate name/value pairs with ampersand (&). HTH Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> "Saci" <[EMAIL PROT

RE: [PHP] PHP4 and MS Excel?

2002-07-30 Thread Martin Towell
I don't think you'll be able to o this directly with PHP, unless you know the file format of an .xls file... You might be able to use COM somehow (??) Might be easier for the user to save the spreadsheet out as a CSV first Martin -Original Message- From: Jason Caldwe

RE: [PHP] passing variable via url ( newbye question)

2002-07-30 Thread Martin Towell
Is this a direct copy from your code? > echo $_GET['modo']." echo $_GET['color']." echo $_GET['size']." tags see if that helps Martin -Original Message- From: Saci [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 6:09 AM To: [

RE: [PHP] How to become a good PHP coder?

2002-07-30 Thread Martin Towell
wn in code from the start. I think in sorta pseudo-code, then once I have a solution, I then implement in language-specific code. HTH Martin -Original Message- From: Wee Keat [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 9:39 AM To: PHP General List Subject: [PHP] How to be

RE: [PHP] passing arrays between pages with serialize

2002-07-30 Thread Martin Towell
Can you post/send the results of doing a print_r() on the first page (the one that's serialising) and the results of the serialize()? -Original Message- From: DoL [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 31, 2002 2:21 PM To: [EMAIL PROTECTED] Subject: [PHP] passing arrays between

RE: [PHP] thirds of a color wheel

2002-07-30 Thread Martin Towell
You'll need to find out how to convert from RGB to HSV Then all you need to do is look at the hue and fiddle with that. Sorry I can't be any more help than that, because I don't know what the maths is to convert from one colour space to the other :( But this should be a st

[PHP] Re: passing variable via url ( newbye question)

2002-07-31 Thread Martin Clifford
Because you HAVE to use it if you have register_globals OFF. Only when register_globals is ON can you do what you thought is more efficient, but isn't. Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>>

Re: [PHP] select multiple

2002-07-31 Thread Martin Clifford
ally is no limit to how you want to do this. Then just use explode() with the same arguments (although replace array with the comma_seperated string) to go back to an array. HTH! Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/

Re: [PHP] Disabling Browser "BACK" button

2002-07-31 Thread Martin Clifford
cannot use the back button without getting mishapen results, then it doesn't sound as if the site is designed very efficiently. Just my opinion. Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> Petre &l

Re: [PHP] String Question

2002-07-31 Thread Martin Clifford
that starts at $i (0, 8, 16, 24, etc) and grabs 8 characters. So here is how the data should be retrieved. 1st loop: 0-7 (8 elements) 2nd loop: 8-15 (8 elements) 3rd loop: 16-23 (8 elements) 4th loop: 24-26 (3 elements) Let me know how it works out for you :o) Martin Clifford H

[PHP] A Fond Farewell

2002-07-31 Thread Martin Clifford
directly, as I'm unsubscribing after I send this last mail. Against my will, no doubt, but leaving just the same. Take care, everyone, and as always... Happy Coding! :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/

RE: [PHP] Explain?

2002-07-31 Thread Martin Towell
Split() chops up the string (param #2) according to param #1 (in this case, space is the delimiter). Param #3 says, don't chop more than two bits. It then returns an array list() assigns $arr[0] to the first variable, $arr[1] to the second, etc. HTH Martin -Original Message-

RE: [PHP] include()

2002-07-31 Thread Martin Towell
To add to this - you should place critical information (like passwords, etc) outside the document root. That way, even if the server is mis-configured, others wont be able to easily gain access to those files -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Thursday, A

RE: [PHP] Protect PHP coding

2002-08-01 Thread Martin Towell
One option is the Zend Encoder Martin -Original Message- From: YC Nyon [mailto:[EMAIL PROTECTED]] Sent: Friday, August 02, 2002 2:59 AM To: [EMAIL PROTECTED] Subject: [PHP] Protect PHP coding Is there any method to encrypt PHP files. Nyon -- PHP General Mailing List (http

RE: [PHP] Open 10 http connections in parallel

2002-08-08 Thread Martin Towell
use C and fork() php (AFAIK) can't do parallel programming -Original Message- From: NoWhErEMan [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 12:58 PM To: [EMAIL PROTECTED] Subject: [PHP] Open 10 http connections in parallel Hello, I had to write a script to open 10 http co

RE: [PHP] anyone can help?

2002-08-08 Thread Martin Towell
you've got a ";" after the if IF (!$accion); { should be IF (!$accion) { -Original Message- From: ::: Flavio Bastos Amiel::> [mailto:[EMAIL PROTECTED]] Sent: Friday, August 09, 2002 4:34 PM To: [EMAIL PROTECTED] Subject: [PHP] anyone can help? this is not functional and i dont k

RE: [PHP] Resetting the timeout

2002-08-18 Thread Martin Towell
set_time_limit() -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 12:05 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Resetting the timeout On Monday 19 August 2002 10:06, Mike Mannakee wrote: > Is there any way to set the timeout (max length of

RE: [PHP] php string match problem

2002-08-18 Thread Martin Towell
<--- And a third one You only need one of them... HTH Martin -Original Message- From: Pafo [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 3:21 PM To: [EMAIL PROTECTED] Subject: [PHP] php string match problem heh,, is it just me or can anyone see wha

RE: [PHP] php string match problem

2002-08-18 Thread Martin Towell
oh, just realised, one of them needs to go below the "else" line, to end the "while" loop -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 3:37 PM To: 'Pafo'; [EMAIL PROTECTED] Subject: RE: [PHP] php string

RE: [PHP] php string match problem

2002-08-18 Thread Martin Towell
oops again, please ignore my last two posts :( -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 3:38 PM To: 'Pafo'; [EMAIL PROTECTED] Subject: RE: [PHP] php string match problem oh, just realised, one of them needs to go below

RE: [PHP] database value count retrieval

2002-08-19 Thread Martin Towell
try this: -> $sqlcom="select count(codigo) as cnt from comments where codigo=$id"; $resultadocom = mysql_db_query ("database",$sqlcom); $registocom = mysql_fetch_array($resultadocom); -> $contador = $registocom["cnt"]; print("comentarios= $contador"); the lines marked with -> are t

RE: [PHP] Replicate string or something similar

2002-08-19 Thread Martin Towell
str_repeat() -Original Message- From: Saci [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 1:04 PM To: [EMAIL PROTECTED] Subject: [PHP] Replicate string or something similar In ASP I use the expression myvar = string(254,"A") to have a var filled with 254 characters 'A'

RE: [PHP] Sorting a multi-dimensional array

2002-08-20 Thread Martin Towell
http://www.php.net/manual/en/function.usort.php -Original Message- From: Ben [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 21, 2002 11:25 AM To: [EMAIL PROTECTED] Subject: [PHP] Sorting a multi-dimensional array I have looked at array_multisort, asort, etc. NONE of them do what I n

RE: [PHP] passing checkbox info

2002-08-20 Thread Martin Towell
replace "xxx" with the row number for your id field when it gets to php, the index of $cbox will be the id from the database, just use: foreach ($cbox as $id=>$dummy) to loop through the array HTH Martin -Original Message- From: Brian & Shannon Windsor [mailto

Re: [PHP] Code for off-site Maintenance?

2002-08-21 Thread Martin Clifford
our delete statement for your database? Whoops!). Like Justin, my process is to test, test, test, upload, and test some more. Extra time spent now could possibly mean less time spent correcting stupid mistakes. Martin "The more I see of this world, the more I am convinced of the ina

[PHP] when was array_unique fixed?

2002-08-26 Thread Greg Martin
i know that array_unique was broken in version 4.0.4, but does anyone know which version was it fixed in? thanks, greg martin [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Average Number For Math Functions

2002-08-29 Thread Martin Towell
just sum them up and divide by the count - making sure to deal with a count of zero -Original Message- From: JohnP [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 10:56 AM To: [EMAIL PROTECTED] Subject: [PHP] Average Number For Math Functions Ok I looked at all the math functio

RE: [PHP] New as of today

2002-08-29 Thread Martin Towell
if you have each filename on a new line, then use file() to grab the contents. It returns an array, each line is an element in the array. You can then do what you want with the array HTH Martin -Original Message- From: stu9820 [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 1

RE: [PHP] Average Number For Math Functions

2002-08-29 Thread Martin Towell
t; > Ok so how do I sum up an entire column in my db? > > For example if one row is : 1 , the next is 2, and the next is 1 - I need > to > > have a total of 4 and the be able to divide by the num_rows > > > > The problem I ma having is the "inside" row addit

RE: [PHP] Simple regexp

2002-08-29 Thread Martin Towell
try this ereg("^[a-zA-Z0-9:]*$",$string) all your's is doing is looking for any char in $string that's a-z or A-Z or 0-9 or : instead of all chars, from start to end, being them -Original Message- From: Adam Alkins [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 3:20 PM To: PHP

[PHP] How to escape " in hidden field?

2002-09-02 Thread Martin Thoma
Hello! I have a simple hidden input-field like Now sometimes I need to insert " like: But this makes PHP (or the browser?) cutting of the string after "Hello ". How can I escape the "? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: How to escape " in hidden field?

2002-09-02 Thread Martin Thoma
> Using the htmlspecialchars() function, so that "Hello \"world\"" will be > written in pure HTML: "Hello "world"" Thanx a lot! But how do I get it back to 'Hello "world"'? Do I have to do it manually? Martin -- PHP Gene

Re: [PHP] Re: How to escape " in hidden field?

2002-09-02 Thread Martin Thoma
hes would produce), the field gets the value "Hello ". Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How to escape " in hidden field?

2002-09-02 Thread Martin Towell
Hi Martin You can also do this HTH Martin :) -Original Message- From: Tom Rogers [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 11:24 AM To: Martin Thoma Cc: [EMAIL PROTECTED] Subject: Re: [PHP] How to escape " in hidden field? Hi, Monday, September 2, 2002,

RE: [PHP] IE won't post on Windows, but will on Mac

2002-09-02 Thread Martin Towell
Have you checked the $_POST (or $HTTP_POST_VAR) variable to make sure it IS using GET? Martin -Original Message- From: Jed Verity [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 3:19 PM To: [EMAIL PROTECTED] Subject: [PHP] IE won't post on Windows, but will on Mac

Re: [PHP] How to escape " in hidden field?

2002-09-02 Thread Martin Thoma
> Try this with single quotes: > > Year, but then I couldn't use single-quotes in the text ;-) The problem is that the content of the field is inserted by the user, so I cannot say if he uses single- and/or double-quotes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Info into Class

2002-09-03 Thread Greg Martin
The thing about PHP classes is that there are not many rules. It is usually suggested, as a matter of good practice to use get and set functions for your variables in classes in any language. A lot of people my think this is a bunch of extra work, but let's say you are keeping track of customers

RE: [PHP] Count in PHP

2002-09-09 Thread Martin Towell
it's best done in sql using "select count(*)" but can be done in php by looping through the result set -Original Message- From: Chuck "PUP" Payne [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 2:58 PM To: PHP General Subject: [PHP] Count in PHP I am wanting to do a count i

RE: [PHP] Confusing array question ...

2002-09-10 Thread Martin Towell
Try adding curly braces around the var name, like this: for($i=0; $imailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 9:27 AM To: [EMAIL PROTECTED] Subject: [PHP] Confusing array question ... Hi, I have 1 primary array called $item containing 20 values each of whose value is part of

RE: [PHP] What these two things mean: __FILE__ and __LINE__

2002-09-10 Thread Martin Towell
If I remember correctly __FILE__ contains the current file name of the script __LINE__ contails the current line number in the script __PATH__ contains the path to the current script HTH Martin -Original Message- From: Alex Shi [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11

RE: [PHP] Easy Function Question?

2002-09-10 Thread Martin Towell
($name, $phone, $zip=""){ if (!$zip) $zip = ""; echo $name.$phone.$zip } HTH Martin -Original Message- From: Shane [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 10:14 AM To: [EMAIL PROTECTED] Subject: [PHP] Easy Function Question? I have a

RE: [PHP] Easy Function Question?

2002-09-10 Thread Martin Towell
ld be null, "", or "foobar", it doesn't matter, $zip will = $var3 Martin -Original Message- From: Shane [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 11, 2002 10:22 AM To: Martin Towell; [EMAIL PROTECTED] Subject: RE: [PHP] Easy Function Question? Martin, so

RE: [PHP] frame

2002-09-11 Thread Martin Towell
this is more of an HTML question. You'll probably be wanting to look at and -Original Message- From: dinnie [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 12:59 PM To: Milist PHP Subject: [PHP] frame hi all, sorry for disturb all of u for a while... there's anyone can

RE: [PHP] XML Parser Question

2002-09-11 Thread Martin Towell
could you change the "<" to "<" or "%3C" or something similar? -Original Message- From: OrangeHairedBoy [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 1:59 PM To: [EMAIL PROTECTED] Subject: [PHP] XML Parser Question I've been reading the XML parser documention, and I'm no

RE: [PHP] Using HTTP Referer

2002-09-11 Thread Martin Towell
set a hidden form element to be the referring page url, then use that to redirect the user eg: then use: header("location: $myReferer"); remember, also, that $_SERVER['HTTP_REFERER'] is not always set, so you'll need to cater for that Martin -Original Messag

RE: [PHP] how can I return several query results per table row?

2002-09-11 Thread Martin Towell
basing my code on yours: $i = 0; $cols = 3; while (list($FirstName, $LastName) = mysql_fetch_row($result)) { if ($i % $cols == 0) echo ""; echo "$FirstName $LastName"; if ($i % $cols == $cols - 1) echo ""; $i++; } // clean up table... if

RE: [PHP] Query result to an array

2002-09-11 Thread Martin Towell
I'm not totally familiar with mySql, but if I remember correctly, you can get each row (one at a time) back as an (1D) array. All you need to do is append that array onto the end of your dataset array and, bob's your uncle, you have a 2D array full with your dataset HTH Martin ---

RE: [PHP] Query result to an array

2002-09-11 Thread Martin Towell
s it clearer now ? > > Thanks, > > Christian > That's exactly what this will do. mysql_fetch_row() returns an array. Appending that to another array and you get back an array of arrays (which is the same as a 2D array) Try it and see... Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] frame

2002-09-11 Thread Martin Towell
Sorry, can't help you there. I'm not familiar with swf_* functions Martin -Original Message- From: dinnie [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 4:59 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] frame anyway thanks before mr martin..^_^ i know to use

RE: [PHP] Re: Random numbers in a cronned script?

2002-09-13 Thread Martin Towell
if you seed it with unix time then you'll alway be seeding with something different in most cases, the random numbers that are generated will be random enough just my AU2c worth Martin -Original Message- From: lallous [mailto:[EMAIL PROTECTED]] Sent: Friday, September 13, 2002 6:

RE: [PHP] Unserialize stopped working after php & db upgrade

2002-09-18 Thread Martin Towell
one way that I debug things. Instead of var_dump()ing or print_r()ing something, I'll "echo serialize(...)". It's more compact than var_dump/print_r Martin -Original Message- From: Geoff Caplan [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 19, 2002 3:36 PM

RE: [PHP] Installing php in windows 95

2002-09-24 Thread Martin Towell
I was running PHP on Win95 (for local stuff) and now Win98, using OmniHTTPd for the server. It works great. I've recently upgraded to XP Pro (I know - it's taken me ages, but what the heck) and it's still working great. -Original Message- From: Philip J. Newman [mailto:[EMAIL PROTECTED]]

RE: [PHP] error notice - valid code

2002-09-30 Thread Martin Towell
This is what you're really after - quoting the index -Original Message- From: Pablo Oliva [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 01, 2002 1:03 PM To: [EMAIL PROTECTED] Subject: [PHP] error notice - valid code Notice: Use of undefined constant year - assumed 'year' in c:\ap

RE: [PHP] How to send POST info without a form?

2002-10-01 Thread Martin Towell
from the client end, you can't from the server end, you can use curl. HTH Martin -Original Message- From: Chris Nielsen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 3:09 PM To: [EMAIL PROTECTED] Subject: [PHP] How to send POST info without a form? I have a singl

RE: [PHP] Inheritance Question

2002-10-08 Thread Martin Towell
, then either way would be okay... but I'd use $this->jk() anyway, just to keep it all in the object (just in case...) Martin -Original Message- From: Jarrad Kabral [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 09, 2002 11:18 AM To: [EMAIL PROTECTED] Subject: [PHP] Inheritan

Re: [PHP] Displaying one of three functions.

2002-10-28 Thread Martin Hudec
_cost($express)); break; } hope it helps... -- Best regards, Martinmailto:corwin@;corwin.sk Monday, October 28, 2002, 2:20:39 PM, you wrote: SJ>//de-bug SJ>//echo "test & $country & $express"; well shouldn't here

Re[2]: [PHP] Displaying one of three functions.

2002-10-28 Thread Martin Hudec
t($country)); elsif ($country=="finland" && $express=="no") : display_shipping(calculate_shipping_cost($weight)); elseif ($country=="finland" && $express=="yes") : display_shipping(calculate_express_cost($express)); endif; again i apologize... -- Best

Re: [PHP] IP addresses

2002-10-28 Thread Martin Hudec
Hello Bret, use $REMOTE_ADDR like this: -- Best regards, Martinmailto:corwin@;corwin.sk Monday, October 28, 2002, 3:46:04 PM, you wrote: BLC> Hi all, BLC> I've been away for a while but I'm back and have a question about IP addresses. BLC>

Re[4]: [PHP] Displaying one of three functions.

2002-10-28 Thread Martin Hudec
many elsif as you want...also u can end whole thing with else which is executed in case when no previous requirements are met... hope I wrote it goodsorry im too tired to think about english grammar and such things ;))) -- Best regards, Martinmailto:corwin

Re: [PHP] Failing to Make MySQL Query on Submit

2002-10-28 Thread Martin Hudec
$sqlafter execution of first UPDATE thing you set $sql to UPDATE bla bla.then here u set it to SELECT * from bla bla...i recommend using for each sql string in one script various variables like $sql1 = "UPDATE bla bla"; and $sql2 = "SELECT bla bla"; for better reading --

Re: [PHP] for??????

2002-10-28 Thread Martin Hudec
inus one?...for example if you have 10 selected cols...it will do that echo ten times for each $jnot nine as in your original statement...you will have one $j extra... okay hope it helps for now -- Best regards, Martinmailto:corwin@;corwin.sk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] for??????

2002-10-28 Thread Martin Hudec
any fields it hasbut...maybe i am writing stupid things..i really need to go home ;))) okay... -- Best regards, Martinmailto:corwin@;corwin.sk Monday, October 28, 2002, 6:45:15 PM, you wrote: JWH> He's talking columns, not rows. LIMIT is fo

[PHP] fread & EOF

2002-10-28 Thread Martin Adler
Hi, this php-script should read from a server (that i've written in perl) until it receives the EOF signal. My server sends the EOF-signal by print $client "\n\004"; # \004 = EOF to my script but fread wouldn't stop reading and i don't have any ideas why. Is php using an other sign for EOF?

[PHP] Framed Redirect

2002-10-29 Thread Martin Wright
ed or am headed :) -- Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: .inc files doubles up

2002-10-29 Thread Martin Hudec
nclude("foot.inc"); T> $Envoi = 0; T> } T> else { T> $MailBody .= "E-post : $epost\n"; T> } T> if ($kommentarer == ""){ T> include("head.inc"); T> echo("Du fylte ikke ut kommentarer. T> » Tilbake til T> skjemaet"); T> include("foot.inc"); T> $Envoi = 0; T> } T> else { T> $MailBody .= "Kommentarer : $kommentarer\n"; T> } -- Best regards, Martinmailto:corwin@;corwin.sk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Decimal Places

2002-10-29 Thread Martin Towell
have a look at number_format() -Original Message- From: Andrew Wilson [mailto:will@;netwaynetworks.com.au] Sent: Wednesday, October 30, 2002 3:34 PM To: [EMAIL PROTECTED] Subject: [PHP] Decimal Places Hay guys, I have two variables ( integers ) that are being minused one from the other

RE: [PHP] number_format question

2002-10-31 Thread Martin Towell
what about str_replace(",", "", $str) before you pass the value to number_format()? -Original Message- From: [EMAIL PROTECTED] [mailto:ed@;home.homes2see.com] Sent: Friday, November 01, 2002 9:37 AM To: Jay Blanchard Cc: [EMAIL PROTECTED] Subject: RE: [PHP] number_format question Tried

[PHP] How to send mail with authentification?

2002-11-04 Thread Martin Thoma
Hello! Our SMTP-Server has changed to authentification. Now we cannot send mails anymore using mail(). How can I set the password in mail? Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to send mail with authentification?

2002-11-04 Thread Martin Thoma
Thanx, I will try this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Php "Ready-to-go"

2002-11-04 Thread Martin Thoma
Hello! Is there a way to run a php-script on a pc/windows-computer which hasn't php-installed? I thought of somekind of compiler which creates an .exe, which embeds the script and the php-environment. Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

AW: [PHP] special print function

2002-11-05 Thread Martin Lucas
pages with the content you wish. the rest is a little javascript, that calls the system print dialog. hope that helps a little regards martin > -Ursprüngliche Nachricht- > Von: Ines [mailto:ines@;comprehend.de] > Gesendet: Dienstag, 5. November 2002 14:33 > An: [EMAIL PROT

RE: [PHP] function()

2002-11-05 Thread Martin Towell
FYI: 'global' is two way eg: will work. -Original Message- From: Justin French [mailto:justin@;indent.com.au] Sent: Wednesday, November 06, 2002 11:49 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] function() Doesn't 'global' only get variables from outside the function into it OP (

RE: [PHP] problem of javascript with dropdown list of array.

2002-11-05 Thread Martin Towell
you can refer to form elements by: document.forms["formname"].elements["elementname"] so you could use: document.forms["entryform"].elements["select02[]"] -Original Message- From: Mack [mailto:mplescano2000@;yahoo.com] Sent: Tuesday, November 05, 2002 12:30 AM To: [EMAIL PROTECTED] Subject

[PHP] php and electronic pay system

2002-11-06 Thread Martin Hudec
Hello, does anyone have experience with implementation of electronic pay system for website based on PHP? Can you give me directions about this? -- Best regards, Martin Hudec mailto:corwin@;corwin.sk -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] Code help

2002-11-06 Thread Martin Towell
CAUTION: It's not reliable you can use $HTTP_REFERER (or, I think's it's under $_SERVER, $_SERVER["HTTP_REFERER"]) -Original Message- From: William Holroyd [mailto:w.holroyd@;versity-cobalt.com] Sent: Thursday, November 07, 2002 12:42 PM To: [EMAIL PROTECTED] Subject: [PHP] Code help I

RE: [PHP] How to limit chars?

2002-11-07 Thread Martin Towell
use substr($str, 0, 1000) -Original Message- From: Håkan [mailto:hw2k@;barrysworld.com] Sent: Friday, November 08, 2002 12:53 PM To: [EMAIL PROTECTED] Subject: [PHP] How to limit chars? Let's say I have a text field in my mysql database, and a where I write whatever, and I want to limit

RE: [PHP] Graphics question

2002-11-07 Thread Martin Towell
sounds like a browser caching problem to me dunno if that helps though :/ -Original Message- From: Robbert van Andel [mailto:robbert@;vafam.com] Sent: Friday, November 08, 2002 2:30 PM To: [EMAIL PROTECTED] Subject: [PHP] Graphics question I have created a webpage that builds a table and

RE: [PHP] Weird behaviour with references to objects...

2002-11-07 Thread Martin Towell
I remember reading somewhere (can't remember where though, maybe the php.net web site??) that if you use $this in a constructor (or any methods the constuctor calls), then you should instantiate the object using &new otherwise you get a copy of the object that's just been created and not the actual

[PHP] Quick question

2002-11-07 Thread Martin Towell
what is the technical difference between using else if and elseif ?? Are they interpretted the same internally? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How To Delete All Files In A Directory

2002-11-12 Thread Martin Towell
you could break out into the shell and do rm $dir/*(rm -r $dir/* if there's directories too) (or del $dir/*.* for dos) or use opendir, readdir, closedir to read the directory's content and use unlink to delete the file(s) (if $dir is not hardcoded, I can see a security hole he

RE: [PHP] number format

2002-11-13 Thread Martin Towell
you've got it in the subject line http://www.php.net/manual/en/function.number-format.php -Original Message- From: Michael P. Carel [mailto:mikecarel@;teamglac.com] Sent: Thursday, November 14, 2002 9:11 AM To: [EMAIL PROTECTED] Subject: [PHP] number format Hi to all; Is there any php f

RE: [PHP] can a popup window get the page referer?

2002-11-13 Thread Martin Towell
> (B>Message-ID: <[EMAIL PROTECTED]> (B>References: <[EMAIL PROTECTED]> (B> (B>"Joseph Szobody" <[EMAIL PROTECTED]> wrote: (B>>Actually, it still won't work under Windows. (B>> Even on a pop-up window, you can right click, (B>> view properties, copy the page address, open (B>> a new browse

[PHP] php mail confirmation

2002-11-14 Thread Martin Hudec
Hello all, I would like to ask how can I make registration confirmation by email...user will receive mail confirming his registration immediately after he registers in application.is it possible to make mail() function filled with data from registration (email)? -- Best regards, Martin

[PHP] Undefined variables?

2002-11-18 Thread Martin Magnusson
... Hope you understand my problem... Martin Magnusson

[PHP] Problem with browscap.ini

2002-11-20 Thread Martin Magnusson
I've recently installed php 4.2.3 on Apache 2.0.43. (windows2000) I downloaded a browscap.ini file from GaryKeith.com and copied it to c:\WINNT\system32\browscap.ini In php.ini the value for browscap is set to c:\WINNT\system32\browscap.ini This doesn't work... For example: the variable $HTTP_USER

[PHP] character ' in switch

2002-11-21 Thread Martin Hudec
<-- i want this... code break; default: break; } but PHP can't use 'i am thinking about making urlencode() to put that character to %XX value any advices? -- Best regards, Martin mailto:[EMAIL PROTECTED] -- PH

[PHP] HTML page and php

2002-11-21 Thread Martin Johansson
How do I get a html page into a string variable in php? Isnt there any function working like this: $homepage = getHtmlPage(http://www.myhomepage.com/index.html); /Newbie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] multisite hit counter, includin session statistics

2002-06-04 Thread Martin Smetak
Hi! I want to write some multisite hit counter, but including session statistics. Anyone knows how to do that? I mean: I need to place some link on the page, on not allways php enabled site - probably in form of blank image, which will run script on my server. Ex.: http://my_serv.org?site=0011";>

Re: [PHP] multisite hit counter, includin session statistics

2002-06-04 Thread Martin Smetak
gt; Any suggestions welcome... > > ---John Holmes > > - Original Message - > From: "Martin Smetak" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, June 04, 2002 11:30 AM > Subject: [PHP] multisite hit counter, includin session

RE: [PHP] resolution

2002-06-04 Thread Martin Towell
I think this was asked recently by someone else You need to use javascript/vbscript to grab the dimensions then pass it to php php is server side and doesn't know anything about the client unless it's told about it HTH Martin -Original Message- From: Doron [mailto:[EMAIL

RE: [PHP] Creating pop-up window and passing variable to it?

2002-06-04 Thread Martin Towell
function myopen() { window.open("foobar.html?var1=&var2="); } click for new window -Original Message- From: Igor Portnoy [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 9:52 AM To: [EMAIL PROTECTED] Subject: [PHP] Creating pop-up window and passing

RE: RE: [PHP] Creating pop-up window and passing variable to it?

2002-06-04 Thread Martin Towell
quot; for "_blank" and get the same effect. HTH Jason Soza - Original Message - From: Martin Towell <[EMAIL PROTECTED]> Date: Tuesday, June 4, 2002 3:55 pm Subject: RE: [PHP] Creating pop-up window and passing variable to it? > > function myopen() > { >

RE: [PHP] Converting non latin characters

2002-06-04 Thread Martin Towell
'ð' is an accented 'o' - just like these are: 'ò', 'ó', 'ô', 'õ', 'ö' I've never seen an 'o' accented that why before, so I have no idea how you're meant to pronounce it. But going from "Tokyo" then I guess it's pronounced "oe" as in "toe" I dunno what function (built-in or otherwise) you can us

Re: [PHP] multisite hit counter, includin session statistics

2002-06-05 Thread Martin Smetak
P script. Maybe you can > do more with Javascript or SSI, if that's available... > > ---John Holmes... > - Original Message - > From: "Martin Smetak" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, June 04, 2002 12:14 PM > Subject: Re:

Re: [PHP] multisite hit counter, includin session statistics

2002-06-05 Thread Martin Smetak
the user closes the browser, and then comes back to > your site in a new window, then the session will not exist and they will be > considered a "new" user. > > Have you tried anything so far? > > ---John Holmes... > > - Original Message - > From: "Mart

RE: [PHP] redirection

2002-06-05 Thread Martin Clifford
You can pretty much use ANY JavaScript event handler to accomplish the redirection. I'm new to PHP, so the header is the only place I know of to redirect. onclick onmouseup onmousedown onmouseover onmousemove onkeydown onkeypress onkeyup onchange etc. -- PHP General Mailing List (http://www.

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