[PHP] Is linkage to C/C++ lib or programs in Unix possible?

2001-03-15 Thread Martin Lam
idea to re-write them. Thanks for helps! Best regards, Martin Lam -- 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] Fetch side with Cookies

2001-03-15 Thread Martin Thoma
ding a HTTP-Get with the cookie. But I have no idea: - How to use the socket - How to send the GET - How to send the Cookie - How to recieve the data Any help is welcome ! Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

[PHP] sessions problem (and spec. Mozilla vs Opera)

2001-04-15 Thread Martin Skjöldebrand
On my login page (index.php) I have at the top 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] Netscape 4.77 and PHP

2001-04-15 Thread Martin Skjöldebrand
Adam wrote: > try sending us the sample code. I use netscape 4 for testing and it seems > to work just fine. My whole project is based on inserting pieces of html. Works like a dream in Netscape 4.75 Linux. M. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL P

Re: [PHP] Mailbox and PHP

2001-04-15 Thread Martin Skjöldebrand
Richard wrote: > Greetings. > > I have no problem writing an email client in PHP, which sends emails > and > such things. One thing only, can I check someones POP3, such as mine, > through PHP? If so, what should be needed to complete it..? The server I > am using is running Linux FreeBS

Re: [PHP] Want a Good Book for Ref on PHP

2001-04-15 Thread Martin Skjöldebrand
nal PHP Programming.". However from what I saw in the book shop they cover lots of the same ground. I (and my employer) wouldn't like to pay for the same stuff again. Is there a significant difference between the two? Martin S. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Array problem again.

2001-04-16 Thread Martin Skjöldebrand
I'm trying to edit the specific item for each row found in the snippet below. Each item gets a row in a table and I want to pass the item Id (s_id below) to $item. It seems however that the array *item * is not incrementing. For all rows I get the value of the first row. Any ideas of what wron

[PHP] HELP!! "print" problem

2001-04-17 Thread Martin Skjöldebrand
I'm blind!! Whats wrong here? $besk has a value at one place but not in another? Jeez M. $besk=$row1[0]; print "beskr $besk"; <-- prints value of $besk print ""; <-- works print " "; <-- DOES NOT PRINT A THING!! print " "; <-- works print " "; <--works

Re: [PHP] HELP!! "print" problem

2001-04-17 Thread Martin Skjöldebrand
[EMAIL PROTECTED] wrote: > You're missing a single quote after the value of MAXLENGTH on the line > that's not working... Maybe that's the problem. > Yes!! Thanks! I thought I was going crazy. Martin S. -- PHP General Mailing List (http://www.php.net/) To uns

[PHP] imap

2001-04-19 Thread Martin Oust
how can i convert the charset in an e-mail from ascii or any iso-standard, to the unicode-standard, so the webmail can be used outside english-speaking areas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

[PHP] imap_fetchbody

2001-04-20 Thread Martin Oust
documentation: string imap_fetchbody (int imap_stream, int msg_number, string part_number) what is the different part_numbers i should and could use? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[PHP] imap_fetchbody

2001-04-20 Thread Martin Oust
documentation: string imap_fetchbody (int imap_stream, int msg_number, string part_number) what is the different part_numbers i should and could use? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[PHP] imap

2001-04-21 Thread Martin Oust
documentasion: string imap_fetchbody (int imap_stream, int msg_number, string part_number [, flags flags]) how can i exploit the different part_numbers??? what do hey stand for? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

[PHP] imap

2001-04-21 Thread Martin Oust
is there any function to convert the body of a e-mail-massege from mime like you do with the imap_mime_header_decode() ??? -- 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 administ

[PHP] mime

2001-04-21 Thread Martin Oust
is there any function to convert the body of a e-mail-massege from mime like you do with the imap_mime_header_decode() ??? -- 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 adminis

[PHP] Incrementing dates

2001-04-21 Thread Martin Skjöldebrand
#x27;t add the 31, 32 and 33 of April? Martin S. -- 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] Incrementing dates

2001-04-22 Thread Martin Skjöldebrand
, like this (in a table, each record (row) has more data than the one given) date=2001-04-10 date=2001-04-11 date=2001-04-12 This, if I'm mistaken can't be done with interval, at least not without looping in PHP? And using two queries would not perhaps save as much code as the way I solved i

RE: [PHP] Incrementing dates

2001-04-22 Thread Martin Skjöldebrand
>as >integers and strings. Sounds even easier. But what if I'm not doing an UPDATE but an INSERT? Can it read the previous date? I am inserting a batch of bookings at one time. Martin S. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] Incrementing dates

2001-04-22 Thread Martin Skjöldebrand
t;Y-m-d", mktime (0,0,0,$month, $day, $year)) . ""; for($i=1; $i<=9; $i++) { $day++; echo date ("Y-m-d", mktime (0,0,0,$month, $day, $year)) . ""; } Cheers, Martin S. -- 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] if... then... else with HTML

2001-04-23 Thread Martin Thoma
Hello ! I want to do something like if (condition) output this html-block else output that html-block Without printig or echoing the html-block out (because the block has a lot of ", which I all would have to slash out...) How can I do that ? Martin -- PHP General Mailing

Re: [PHP] if... then... else with HTML

2001-04-23 Thread Martin Thoma
Ah, I forgott the {} ;-) You are using Internet Explorer You are not using Internet Explorer Martin Thoma schrieb: > Hello ! > > I want to do something like > > if (condition) > output this html-block > else > output that html-block > > Without printig

RE: [PHP] Site Structure

2001-04-23 Thread Martin Gottlieb
Or better yet: include( "$DOCUMENT_ROOT/includes/header.inc" ); Martin Gottlieb -Original Message- From: Renzi, Sebastian [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 10:56 AM To: 'Jordan Elver'; PHP General Mailing List Subject: RE: [PHP] Site Struct

RE: [PHP] Site Structure

2001-04-23 Thread Martin Gottlieb
duction servers, AND you can keep your includes out of a web server accessible directory. Martin Gottlieb -Original Message- From: Toby Miller [mailto:[EMAIL PROTECTED]] Sent: Monday, April 23, 2001 3:44 PM To: indrek siitan Cc: PHP General Mailing List Subject: Re: [PHP] Site Structure W

RE: [PHP] php install issues on IIS

2001-04-23 Thread Martin Gottlieb
You probably need to go into the IIS console ( mmc ) and go to properties on the directory in question and make sure either the "execute" or "script" checkbox is checked. You may also need to verify the actual file permissions, but I believe this is more of a configur

[PHP] Using

2001-04-23 Thread Martin Cameron
} ?> The thing is that if you simply hit "enter" - rather than click the "submit" button, the first directive in the tag is invoked, and the value of the $hello variable IS passed. regards Martin Cameron

[PHP] BASIC function question

2001-04-23 Thread Martin Skjöldebrand
} If I call it from a script as update_stuff(equipment); I don't get any result (I want to page to automagically update it's contents) while if I include the query lines after each edit case it does update the page contents. I'm missing something basic, but what? Martin S. --

Re: [PHP] is_link() behavior

2001-04-23 Thread Martin Skjöldebrand
J. Jones wrote: > Forgive me for my ignorance, but I've noticed some unwanted behavior (IMO, > at least) with the is_link() function. Given the simple code.. > > if ( is_link ("/tmp/this_is_a_symlink") ) > print ("Success\n"); > > and the file.. > lrwxrwxrwx 1 root root 5 Apr 23 21:19 /tmp/thi

Re: [PHP] Using

2001-04-23 Thread Martin Cameron
Hi Rene I think that I first used a submit button about html ver 2.0. I want to use a button type - not submit. regards Martin Rene Maldonado wrote: > Hi I think it woulf be better this way: > > print " name = 'hello'>"; > print ""

SV: [PHP] Want to send email in html format

2001-04-24 Thread Martin Oust
is it possible to change the Content-Type and Content-Transfer-Encoding in a mail you recieve??? this way you can convert mails written with html-codes, sent from a mail-program that doesn't support it.. "Peter Houchin" <[EMAIL PROTECTED]> skrev i meldingsnyheter:[EMAIL PROTECTED] > have som

SV: [PHP] Want to send email in html format

2001-04-24 Thread Martin Oust
is it possible to change the Content-Type and Content-Transfer-Encoding in a mail you recieve??? this way you can convert mails written with html-codes, sent from a mail-program that doesn't support it.. "Peter Houchin" <[EMAIL PROTECTED]> skrev i meldingsnyheter:[EMAIL PROTECTED] > have so

SV: [PHP] Want to send email in html format

2001-04-24 Thread Martin Oust
is it possible to change the Content-Type and Content-Transfer-Encoding in a mail you recieve??? this way you can convert mails written with html-codes, sent from a mail-program that doesn't support it.. "Peter Houchin" <[EMAIL PROTECTED]> skrev i meldingsnyheter:[EMAIL PROTECTED] > have s

[PHP] Autoupdate of page

2001-04-24 Thread Martin Skjöldebrand
IS there a standard way of "auto-updateing" the contents of a page after a databas insert or edit? Do a SELECT updates the contents I can update tables I've noticed. Contents in select boxes (as in while ($row = mysql_fetch_row($secquery_res)) { print "$row[0]";

Re: [PHP] checking if e-mail address and syntax are valid

2001-04-24 Thread Martin Skjöldebrand
Carlos Fernando Scheidecker Antunes wrote: > Hello all! > > I would like to know if anyone has or know any PHP code to verify if a > form entered e-mail address is valid? > > I would like that things like 4$%^%$@@.com.br could not be sent. I only > has to verify the syntax of it, the existance

[PHP] Where is php.ini located by default?

2001-04-27 Thread Martin Skjöldebrand
s where?, /usr/local/lib/php doesn't have one) or the cwd. I've tried editing the sample file and putting it in either place but my app still gives me the following error: Failed opening required 'class.DBI' (include_path='.:/usr/local/lib/php') in FILENAME

Re: SV: [PHP] PHP Book?

2001-04-27 Thread Martin Skjöldebrand
[EMAIL PROTECTED] wrote: > On Fri, Apr 27, 2001 at 08:06:54PM +0200, Christian Reiniger wrote: >> On Friday 27 April 2001 15:15, Johan Holst Nielsen wrote: >> > > Hey everyone... >> > > >> > > I've been programming in perl for about 3 years now, i have installed >> > > php and have been working o

Re: [PHP] Where is php.ini located by default?

2001-04-27 Thread Martin Skjöldebrand
llowing error: >> >> Failed opening required 'class.DBI' (include_path='.:/usr/local/lib/php') >> in FILENAME >> >> Martin S. > > > read INSTALL doc, they will told you > Found the litte line. Thanks - too all who replied! Martin S.

[PHP] Going crazy again ...

2001-05-01 Thread Martin Skjöldebrand
Going grey haired again. In this code only the first case is working (adding stuff to tables). The second and third are producing - Warning: Supplied argument is not a valid MySQL-Link resource in /chroot/htdocs/diarium/settings.php on line 31 (which is $query_res /ms) error: I've even cop

Re: [PHP] Going crazy again ...

2001-05-01 Thread Martin Skjöldebrand
Jimmy Lantz wrote: > > Hej, jag hade nog inte använt åäö i case men det är bara en vana, kanske > du kan använda en dold variabel via html-formuläret istället och använda > den i case satsen? Men det svarar ju inte på din fråga men lycka till. > / iImmy Fixat! Problemet låg någon annanstans, vi

RE: [PHP] Going crazy again ...

2001-05-01 Thread Martin Skjöldebrand
Altunergil, Oktay wrote: > I was actually interested in the answer to this. I believe one can write > in English if one can read English. (PS: It's not my first language > either) > AS it was my question I'll answer. He said that he was sceptical about using our accented character in code and t

[PHP] Searching for array keys

2001-05-03 Thread Martin Skjöldebrand
What's the best way of finding out if a specific array key is in an array? I have an associative array which *may* look like (car =>saab, house => mansion, countyW=> A) but can equally well look like (boat => daycruiser, house => flat, county => B). I want to find out if the key "car" is in the

Re: [PHP] Searching for array keys

2001-05-04 Thread Martin Skjöldebrand
Mark Charette wrote: > >> > What's the best way of finding out if a specific array key is in an > array? >> > I have an associative array which *may* look like >> > (car =>saab, house => mansion, countyW=> A) but can equally well look > like >> > >> > (boat => daycruiser, house => flat, county =

[PHP] Even more dynamic page

2001-05-04 Thread Martin Skjöldebrand
Is there some way of making PHP even more dynamic? What I would like is that selecting a value from a box would change some info on the page - without having to click a refresh button or something like that. Or do I have to resort to javascript for such things? M. -- PHP General Mailing Li

[PHP] ImageColorTransparent and Netscape?

2001-05-05 Thread martin helie
Hello everyone, I am stumped with ImageColorTransparent and Netscape. In Explorer, everything seems fine with this function, but in Netscape, there is no effect whatsoever. I am using ImagePNG with GD1.8 and PHP4.0.4. Is this another Netscape limitation? Tx, Martin -- PHP General Mailing

[PHP] Image displaying problem

2001-05-06 Thread Estelle Martin
hone.ch/search.php?f=6 Without a form submission, the banner (on the right top of the page) displays correctly. Try to submit the form, the image does not come :-( Thank you for helping, Estelle -- Estelle Marti

Re: [PHP] PHP as apache module and security.

2001-05-06 Thread Estelle Martin
Hi, What do you think about the following configuration: 1) safe-mode on : this ensures that a php script can read only files that are owned by the same Unix user on the machine; then just check that people having a right to use php and mysql on your box have all a different corresponding Unix use

[PHP] Passing variables to another page - newbie

2001-05-06 Thread Dean Martin
("location://url?var1=value1?var2=value2") would work but not luck. Could someone point me in the right direction please? Thanks, Dean Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To c

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]

RE: [PHP] Oracle

2002-01-01 Thread Martin Towell
there's the OCI* or ORA_* functions depending on the version of oracle you're using. -Original Message- From: Phillip B. Bruce [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 10:54 AM To: PHP Subject: [PHP] Oracle Hi, Has any one on this list worked with Oracle, Apache a

Re: [PHP] Select box won't display in Netscape 4.xx

2002-01-02 Thread Martin Schichl
Dear Edwin! Yes, I have had this problem before ... My problem was, that I a line in my style sheets, which could not be solved by NS. (I think it was "border?) Yours, Martin >I'm developing a website for multiple browsers. In Netscape 4.xx (both >Win98 and Linux ve

RE: [PHP] php newbie

2002-01-02 Thread Martin Schichl
To design, you just need a text editor (or html editor) Martin At 13:24 02.01.02 +0200, Niklas Lampén wrote: >To test your PHP scripts you do need a server with PHP. It's very easy >to setup one on to you local machine + there is many completely free >ones. > > >Nikl

RE: [PHP] ora_numrows() function

2002-01-02 Thread Martin Towell
someone left this comment on the php site - [EMAIL PROTECTED] at 27-Dec-2000 09:37 It is important to note that this function acts more as a counter of the number of rows fetched from the cursor. If you execute this prior to processing the cursor

RE: [PHP] Code not working in 4.1

2002-01-02 Thread Martin Towell
use: extract($GLOBALS); http://www.php.net/manual/en/function.extract.php -Original Message- From: Jonathan Hilgeman [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 11:32 AM To: [EMAIL PROTECTED] Subject: [PHP] Code not working in 4.1 I used to run PHP 4.0.3 and at the beg

RE: [PHP] Holy Moly...

2002-01-02 Thread Martin Towell
This one's pretty good, IMO but as for the "best" - hmm... that would be a matter of personal opinion... :) -Original Message- From: Julie Hull [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 1:16 PM To: [EMAIL PROTECTED] Subject: [PHP] Holy Moly... Could someone please dire

RE: [PHP] Date aritmetic

2002-01-02 Thread Martin Towell
convert both in dates into a time stamp using mktime() subtract the two figures you get back then divide by 86400 (60sec/min * 60min/hr * 24hr/day) -Original Message- From: Carlos Fernando Scheidecker Antunes [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 12:57 PM To: PHP-GE

RE: [PHP] Date aritmetic

2002-01-02 Thread Martin Towell
This isn't to pick on Carlos, but I've notice there's heaps of ppl who don't read the manual, or do a search on the manual - I've found that many of my questions have been answered by doing a search on the docs -Original Message- From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] Sent: Thu

RE: [PHP] If Statement with more than one conclusion

2002-01-02 Thread Martin Towell
something like: If(in_array($ext, array("com", "net", "org", "info")){ //Then do this } If(in_array($ext, "com.uk", "me.uk", "org.uk")){ //Then do this } maybe?? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:22 PM To: php-genera

RE: [PHP] Re: how can I add a variable to this sample

2002-01-03 Thread Martin Towell
>$service_type_insert = $x['${key}service_type']; //returns empty even >though I know a value is there change the single quotes to double, thusly: $service_type_insert = $x["${key}service_type"]; 'cause PHP is using the literal "${key}service_type" and not interpreting it -Original Messag

RE: [PHP] no reply-to header?

2002-01-06 Thread Martin Towell
I thought that if there's no "reply-to", then email clients will use the "from" as the reply to ?? -Original Message- From: Jimmy [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 3:22 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] no reply-to header? Hi All, I just

RE: [PHP] counting with dates (help!)

2002-01-07 Thread Martin Towell
o do it in case it crops up for me in the future sometime... Martin -Original Message- From: Sander Peters [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:22 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] counting with dates (help!) Hello, This is my problem:

RE: [PHP] counting with dates (help!)

2002-01-07 Thread Martin Towell
Your comment about not using dd/mm/yy or mm/dd/yy I totally agree with - I use dd-Mon- format for my dates for that reason... Martin -Original Message- From: DL Neil [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 10:42 AM To: Boget, Chris; 'Sander Peters'; [EMAIL PRO

RE: [PHP] Webmail with Attach

2002-01-08 Thread Martin Towell
on: attachment; filename=\"$attach_name\"\n\n"; $msg_body .= "$encoded_attach\n"; as many times as there are attachments, obviously, using the next attachment's content and type for $encoded_attach and $attach_type and don't do: $msg_body .= "--Mess

RE: [PHP] functions...

2002-01-08 Thread Martin Towell
it's possible to pass a variable number of parameters to a function $num = func_num_args(); for ($i = 1; $i < $num; $i++) { $arg = func_get_arg($i); } try looking at these... -Original Message- From: Chris Hall [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 1:4

RE: [PHP] Time

2002-01-08 Thread Martin Towell
date("d M Y, H:i:s", $replyby); -Original Message- From: Necro [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 4:27 PM To: [EMAIL PROTECTED] Subject: [PHP] Time How can I make a variable which is the current time + 48 hrs?? I had $replyby = time() + 172800; But that return

RE: [PHP] need help looping through each record with a query - stumped

2002-01-09 Thread Martin Towell
be okay - (btw, I haven't had experience using mysql, but I'm assuming that it's sql is compatable with interbase and oracle) Hope that helps Martin -Original Message- From: Brian Tully [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 8:59 AM To: PHP DB; PHP Su

RE: [PHP] need help looping through each record with a query - st umped

2002-01-09 Thread Martin Towell
t; so am I "count(*)"... -Original Message- From: Mehmet Kamil ERISEN [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 11:10 AM To: Martin Towell; 'Brian Tully'; PHP DB; PHP Subject: RE: [PHP] need help looping through each record with a query - st umped

RE: [PHP] Delete on exit

2002-01-09 Thread Martin Towell
http://www.php.net/manual/en/function.setcookie.php -Original Message- From: Ryan Kelley [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 12:34 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Delete on exit Exactly how would i do that. I am new to cookies. Please advise. Ryan K

[PHP] Re: weird fopen problem

2002-01-10 Thread Martin Wickman
Jon Farmer wrote: > I am getting a the follwing error: > > Warning: fopen("/home/jon/pgpfiles/sgsdgsdg","w") - Permission denied in > /home/ethiorg/public_html/test.php on line 2 > the directory /home/jon/pgpfiles has mode 777 and is owned by nobody and > group is nobody. Apache runs under user

RE: [PHP] does this work?

2002-01-10 Thread Martin Towell
is this valid in PHP?? (haven't tried it myself yet...) $tempsql = "SELECT COUNT(*) AS count FROM divisions"; maybe it needs to be on one line??? -Original Message- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 8:39 AM To: 'Erik Pric

RE: [PHP] global/local var in a function

2002-01-10 Thread Martin Towell
change for(i=0;imailto:[EMAIL PROTECTED]] Sent: Thursday, January 10, 2002 10:44 PM To: [EMAIL PROTECTED] Subject: [PHP] global/local var in a function Hi, I have a little problem with a function. It calls him self and the var i is lost! after the call! can anybody help me? (it's javascri

RE: [PHP] A variable with a variable

2002-01-10 Thread Martin Towell
you'll be wanting "pointers" eg $Var_1_Stat = "hello world"; $Num = 1; $var_name = "Var_${Num}_Stat"; // set up the actual var name $Var_Call = $$var_name; // now reference the actual var echo $Var_Call; // should by "hello world" ... :) -Original Message- From:

RE: [PHP] Specific References Incident

2002-01-10 Thread Martin Towell
does this work?? change foreach ($this->children as $child) { to foreach ($this->children as &$child) { -Original Message- From: Ken Kinder [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 10:44 AM To: [EMAIL PROTECTED] Subject: [PHP] Specific References Incident I

RE: [PHP] New to list

2002-01-10 Thread Martin Towell
have a look at: http://www.php.net/manual/en/function.number-format.php -Original Message- From: Andrew [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 11:05 AM To: [EMAIL PROTECTED] Subject: [PHP] New to list Hello to you all! I am new to this list and I have a question that

RE: [PHP] ereg

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

[PHP] Re: Redeclaring functions

2002-01-11 Thread Martin Wickman
Arve Bersvendsen wrote: > As a small, personal, "enjoy-myself"-project I'd like to run a > perpetual-running socket server. Problem is; I also want it to be > self-modifying so I can insert, remove and change functions as the > server is running. > > The problem is; under normal circumstances

[PHP] Re: Parsing SAR output with PHP.

2002-01-11 Thread Martin Wickman
Austin Gonyou wrote: > The real question I suppose is how could I parse this type > of output into something I could use to make a graph. > > Example: > 12:20:00 PM CPU %user %nice %system %idle > 12:30:00 PM all 2.17 0.79 0.77 96.27 > Problem is I

[PHP] Re: Specific References Incident

2002-01-11 Thread Martin Wickman
Ken Kinder wrote: > The $this->children attribute should be an array of (references to) objects. > I think somehow in the foreach ($this->children as $child) the objects are > being copied, as $child->validate(); seems not to effect the original objects. Someone just said you can use $a = &

[PHP] Re: php executing system commands..

2002-01-11 Thread Martin Wickman
Louie Miranda wrote: > Hi, can php execute system commands > like df, and then print it to html ? `df`; shell ("df"); exec ("df"); etc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact th

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

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

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

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

RE: [PHP] IF Statements

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

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

2002-01-14 Thread Martin Wickman
Stefan Rusterholz wrote: > Im not sure if "function-backtrace" is the correct word for what I need, so I'll >explain: > If I have for example What you are looking for is a "stacktrace", ie the stack of called functions. Dunno if php has any support for it, but it is normally used when debugg

[PHP] Re: Passing variables with include()

2002-01-14 Thread Martin Wickman
Imar De Vries wrote: > Imar De Vries wrote: > > >>- Including remote files *is* possible. The php manual does not mention this >>does not work, and when I add the variable to the call (include >>/calculate_drivers?serie_id=3.php) the code is processed perfectly. The >>thing is, I can not pa

Re: [PHP] Re: Passing variables with include()

2002-01-14 Thread Martin Wickman
Scott Houseman wrote: > Hi Al. > > While we are on topic, what are the key differences between include() & > require() ? "Unlike include(), require() will always read in the target file, even if the line it's on never executes. If you want to conditionally include a file, use include(). The

Re: [PHP] Content

2002-01-15 Thread Martin Wickman
Jimmy wrote: > Hi Daniel, > > >>variables, but as part of the Content of the HTTP request. Here is a sample: >> > >>POST >>/~rafael/sms_mail/cliente.dcs.php?NotificationProtocolVersion=1.0.0.0&ApplicationName=NPlex&ApplicationVersion=6.0.037&RequestType=NewMsg&RequestTime=01/15/2002%2014:08:23

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

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

[PHP] How to protect JavaScript?

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

[PHP] Re: User authentacation

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

[PHP] Re: Parsing?

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

Re: [PHP] How to protect JavaScript?

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

Re: [PHP] How to protect JavaScript?

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

Re: [PHP] mysql_insert_id?

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

[PHP] Re: htmlspecialchars() alias

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

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