RE: [PHP] Check for exist function

2001-07-23 Thread Adrian Ciutureanu
http://php.net/require_once -Original Message- From: ROsen [mailto:[EMAIL PROTECTED]] Sent: 23 iulie 2001 14:17 To: [EMAIL PROTECTED] Subject: [PHP] Check for exist function Hi, How can I check, thath some function is declared and to do not declare it second time

[PHP] Re: Code running function

2001-07-17 Thread Inércia Sensorial
eval(); ? -- Julio Nobrega. Because happiness is a warm gun Bang-bang shoot-shoot B R [EMAIL PROTECTED] wrote in message 005501c10ee3$e82b4740$c6655ad1@Test4">news:005501c10ee3$e82b4740$c6655ad1@Test4... I know there's a function that takes a string argument and runs it as PHP code. i.e.

[PHP] does php have a response.flush function

2001-07-15 Thread Andrew Austin
Does php have a funciton like reponse.flush in asp aa -- 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] does php have a response.flush function

2001-07-15 Thread Philip Murray
PROTECTED] To: Php Lists (E-mail) [EMAIL PROTECTED] Sent: Monday, July 16, 2001 12:40 AM Subject: [PHP] does php have a response.flush function Does php have a funciton like reponse.flush in asp aa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

[PHP] Problem with is_file function on WinNT and apache HELP!

2001-07-13 Thread Antony Cleave
I am trying to dynamically generate an image gallery from a directory iof images. To do this I am using the following code while (false!==($file = readdir($handle))) { if ((is_file($file))) { echo .. Link info here }

Re: [PHP] Problem with is_file function on WinNT and apache HELP!

2001-07-13 Thread ReDucTor
http://www.evilwalrus.com/download_agree.php?codeEx=304 is a good example of using directory handles, works in windows... - Original Message - From: Antony Cleave [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 14, 2001 1:17 AM Subject: [PHP] Problem with is_file function

[PHP] Problems with mail() function

2001-07-11 Thread rodrigo
Hello. I wrote a routine that queries a table (Mysql) to pull about 300 records and record their emails. I iterate over this recorset invoking the mail() function to send an email for each record in this recordset. The problem is that on my providers server, there is a big delay before the

RE: [PHP] Missing arguments for function in class? (object-orientedprogramming)

2001-06-29 Thread scott [gts]
'); -Original Message- From: Thomas David Kehoe [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 9:27 AM To: [EMAIL PROTECTED] Subject: [PHP] Missing arguments for function in class? (object-orientedprogramming) I have a function that works perfectly (from within a script

Re: [PHP] Missing arguments for function in class? (object-oriented programming)

2001-06-28 Thread Markus Fischer
On Wed, Jun 27, 2001 at 07:26:53AM -0600, Thomas David Kehoe wrote : [...] $my_records = new Display_Records; [...] ?php class Display_Records { function display_records($row, $record_count) { The constructor of your class assumes two parameters; you're creating an instance

RE: [PHP] Missing arguments for function in class? (object-orientedprogramming)

2001-06-28 Thread Matt Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a function that works perfectly (from within a script). But when I make it a class (object) and call it from an external file, I get the following error: Warning: Missing argument 1 for display_records() in

[PHP] Missing arguments for function in class? (object-orientedprogramming)

2001-06-27 Thread Thomas David Kehoe
class script, followed by the script I use to call the function. -- Thomas David Kehoe, author of THE EVOLUTION OF INTIMATE RELATIONSHIPS How Our Brains Are Hardwired For Relationships http://www.FriendshipCenter.com/TEIR/ ?php class Display_Records { function display_records($row

[PHP] Problems with mail() function

2001-05-23 Thread Kevin Fogleman
The problems that I'm having with the mail function stem from the extra arguments that I'm trying to pass it. What I'm trying to do is write a script to mail links to interesting stories to other people. In doing this, I want to make the mail appear that it came from the e-mail address of the

Re: [PHP] Problems with mail() function

2001-05-23 Thread Tolga \thorr\ Orhon
I had smilar problems before and found out that I missed some \ns. It seems that you missed a \n at the end of headers. That might be a reason. Another solution might be replacing \ns with \r\n. I heard in newsgroups and in some documentations that this might be problem in some systems. I

[PHP] PEAR db nextId() function

2001-05-07 Thread Zon Hisham Bin Zainal Abidin
can anyone help with PEAR nextId() function. it's in mysql.php but NOT part of DB.php usage? rgds. -- 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

[PHP] Help php ICQ function

2001-04-24 Thread Greg Kelly
I am a newuser to php , I am setting up a site with user authenication and I would like to setup a ICQ function some my users will know if other users are online can someone please guide me in the right direction.. Thank You -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Is their a function for this?

2001-04-05 Thread Renze Munnik
"Black S." wrote: Basically I have array variables, lets say: --- $folder[0] = "basic"; $folder[1] = "standard"; $folder[2] = "knowledge"; Fruther down in the code: --- $totalsub_basic = "10";

[PHP] Is their a function for this?

2001-04-04 Thread Black S.
Basically I have array variables, lets say: --- $folder[0] = "basic"; $folder[1] = "standard"; $folder[2] = "knowledge"; Fruther down in the code: --- $totalsub_basic = "10"; $totalsub_standard = "24";

[PHP] Weirdness With Header Function

2001-03-29 Thread Grimes, Dean
?php function auth_user() { exec(""); Header("WWW-Authenticate: Basic realm=\"My Realm\""); Header("HTTP/1.0 401 Unauthorized"); } // Header("WWW-Authenticate: Basic realm=\"My Realm\""); if (!isset($PHP_AUTH_USE

[PHP] Problem with mail function

2001-03-26 Thread Sonya Davey / QDCEL
Hi, Can anyone help me the mail function. I am using PHP 4.04, on Windows 98,with PWS. 1.What must I configure thse settings in my php.ini file to? SMTP= localhost sendmail_from = [EMAIL PROTECTED] 2.Why does this code give me the following error

Re: [PHP] Problem with mail function

2001-03-26 Thread Carsten Gehling
From: "Sonya Davey / QDCEL" [EMAIL PROTECTED] Sent: Monday, March 26, 2001 10:55 AM 1.What must I configure thse settings in my php.ini file to? SMTP = localhost sendmail_from = [EMAIL PROTECTED] SMTP must be set to the address of a SMTP-server (Simple Mail Transfer Protocol) - that is a

RE: [PHP] Problem with mail function

2001-03-26 Thread Ankur Verma
]] Sent: Monday, March 26, 2001 2:25 PM To: '[EMAIL PROTECTED]' Subject: [PHP] Problem with mail function Hi, Can anyone help me the mail function. I am using PHP 4.04, on Windows 98,with PWS. 1.What must I configure thse settings in my php.ini file to? SMTP= localhost

Re: [PHP] attachments with mail() function

2001-03-25 Thread BlackLord
Thank you Michael. I will look for mime_mail classes. "Michael Hall" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm not sure about including them in the mail function as such, but it can certainly be done using one of several mime_mail classes that are

[PHP] attachments with mail() function

2001-03-24 Thread BlackLord
Is there anyway to include attachments in mail() function? If you give a small example, it will be great. Thanks -- 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,

[PHP] Register session in function without global?

2001-03-22 Thread Tobias Talltorp
I am trying to register a session variable in a function without using the global in the beginning. The reason for this is that I don´t always know how many variables I am going to register (I separate the different fields with | like this, "username|email|cellphone" and explode them). Is there

Re: [PHP] Register session in function without global?

2001-03-22 Thread CC Zona
In article 99dn35$duo$[EMAIL PROTECTED], [EMAIL PROTECTED] ("Tobias Talltorp") wrote: I am trying to register a session variable in a function without using the global in the beginning. You can pass the variable(s) to the function as an argument. Perhaps it will be easier to deal with a

Re: [PHP] Register session in function without global?

2001-03-22 Thread Chris Lee
so your trying to take a list of variables and register them as session vars? ?php function make_session($vars) { $vars = explode('|', $vars); foreach($vars as $pos = $val) { global $val; session_register($val); } } ? this will work for that. -- Chris Lee [EMAIL

Re: [PHP] Register session in function without global?

2001-03-22 Thread Tobias Talltorp
Well... Whadda ya know. Right after I sent the post I figured it out. (Solution? Variable variables!) function register_vars($reg_var) { // Make the $reg_var global $global_vars=explode("|", $reg_var); for ($i=0; $isizeof($global_vars); $i++) global $$global_vars[$i]; //

[PHP] Call to undefined function

2001-03-15 Thread Clayton Dukes
Hey everyone, I just upgraded from php v4.03pl1 to php 4.04pl. Everything seems to work okay except my IMP/Webmail. When I load the url, I get: Fatal error: Call to undefined function: page_open() in /home/www/websites/horde/imp/index.php3 on line 15 Is this something that is no longer

Re: [PHP] Call to undefined function

2001-03-15 Thread Clayton Dukes
To: [EMAIL PROTECTED] Sent: Thursday, March 15, 2001 6:53 PM Subject: [PHP] Call to undefined function Hey everyone, I just upgraded from php v4.03pl1 to php 4.04pl. Everything seems to work okay except my IMP/Webmail. When I load the url, I get: Fatal error: Call to undefined

Re: [PHP] Call to undefined function

2001-03-15 Thread Jack Dempsey
clayton, checking php.net for 'page_open()' gives me nothingalso, why is it .php3 if you're on php 4.04? jack Clayton Dukes wrote: Hey everyone, I just upgraded from php v4.03pl1 to php 4.04pl. Everything seems to work okay except my IMP/Webmail. When I load the url, I get:

Re: [PHP] Call to undefined function

2001-03-15 Thread Clayton Dukes
: "Clayton Dukes" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, March 15, 2001 7:03 PM Subject: Re: [PHP] Call to undefined function clayton, checking php.net for 'page_open()' gives me nothingalso, why is it .php3 if you're on php 4.04? jack Clayton Dukes wrot

[PHP] RE: [?] Call a function with a button/link click?

2001-03-14 Thread Tim Ward
php works server side. you cannot get user to run anything in php without resubmitting (posting or whatever) ... you need javascript if this is something you can do client-side, if not you'll have to live with some sort of resubmit. Tim Ward Senior Systems Engineer Please refer

[PHP] Problems with mail function

2001-03-14 Thread Kike
Hi, I have a seious problem with the mail function. It does not send the emails. It returns 1 but does not send them. I think it may be a problem with sendmail permissions. Can you help me? Please. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] Problems with mail function

2001-03-14 Thread Colin May
Quoting Kike (Wed, Mar 14, 2001 at 11:59:32AM -) Hi, I have a seious problem with the mail function. It does not send the emails. It returns 1 but does not send them. I think it may be a problem with sendmail permissions. Can you help me? Please. What do the sendmail mail logs say? if

Re: [PHP] Problems with mail function

2001-03-14 Thread stas
? stas - Original Message - From: "Colin May" [EMAIL PROTECTED] To: "Kike" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, March 14, 2001 11:01 AM Subject: Re: [PHP] Problems with mail function Quoting Kike (Wed, Mar 14, 2001 at 11:59:32AM -) Hi, I h

[PHP] Linux / PHP and passwords -( md5 function)

2001-03-12 Thread neil
Hello all I am trying to generate a MD5 string equal to a known passwords MD5 string , with no luck in order to make a new password file i have tried use php's : $value = md5($string); and $value = crypt($string,$salt); the passwds in my systems /etc/shadow all start with $1 which i believe

Re: [PHP] Linux / PHP and passwords -( md5 function)

2001-03-12 Thread Christian Reiniger
On Monday 12 March 2001 18:31, you wrote: I am trying to generate a MD5 string equal to a known passwords MD5 string , with no luck in order to make a new password file i have tried use php's : $value = md5($string); and $value = crypt($string,$salt); the passwds in my systems /etc/shadow

Re: [PHP] Newbie: Can't find function error.

2001-03-06 Thread php3
Addressed to: Darren Ward [EMAIL PROTECTED] [EMAIL PROTECTED] ** Reply to note from Darren Ward [EMAIL PROTECTED] Tue, 6 Mar 2001 18:17:11 +1100 Hi Guys, Newbie to the list and the world of PHP. I'm having a LOT of trouble getting PHP to work. The PHP and Apache installs

RE: [PHP] Newbie: Can't find function error.

2001-03-06 Thread Darren Ward
PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 06, 2001 7:57 PM To: Darren Ward; [EMAIL PROTECTED] Subject: Re: [PHP] Newbie: Can't find function error. Addressed to: Darren Ward [EMAIL PROTECTED] [EMAIL PROTECTED] ** Reply to note from Darren Ward [EMAIL PROTECTED] Tue, 6

[PHP] time and date function

2001-03-06 Thread Augusto Cesar Castoldi
Can I do any "subtraction" with times and/or dates on php or mysql? I have two times (HH:MM:SS). And I want to know if there is a diference of 5 min between the times. Is there any function that do this? Or I have to program this? regards, Augusto Cesar Castoldi -- PHP General Mailing

Re: [PHP] time and date function

2001-03-06 Thread Nick Davies
Just convert the time to unixtime and - 5*60 (5 mins). On Tue, 6 Mar 2001, Augusto Cesar Castoldi wrote: Can I do any "subtraction" with times and/or dates on php or mysql? I have two times (HH:MM:SS). And I want to know if there is a diference of 5 min between the times. Is there

[PHP] Verify session in function

2001-03-05 Thread Tobias Talltorp
I am building my first basic function to verify a session. If the verification is not in the function it works... What am I missing? (I couldn´t find anything about this in the mailing list archive) -- This works -- session_start(); if (isset($PHPSESSID)){ echo "ok";

Re: [PHP] Verify session in function

2001-03-05 Thread kaab kaoutar
U just have to add global $PHPSESSID to make the session variable global; From: "Tobias Talltorp" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [PHP] Verify session in function Date: Mon, 5 Mar 2001 18:30:00 +0100 I am building my first basic function to verify

[PHP] Newbie: Can't find function error.

2001-03-05 Thread Darren Ward
Hi Guys, Newbie to the list and the world of PHP. I'm having a LOT of trouble getting PHP to work. The PHP and Apache installs have gone well as evidenced by: # ./httpd -l Compiled-in modules: http_core.c mod_env.c mod_log_config.c mod_mime.c mod_negotiation.c mod_status.c

RE: [PHP] Newbie User Def Function Question

2001-02-16 Thread Jeff Oien
?php function someFunction($var) { echo $var; } // Your script someFunction("Foobar!"); ? if you're creating an instance of a class object.... ?php class someClass { function someFunction($var) { echo $var; } } $someClass = new

[PHP] problem with pack function

2001-02-15 Thread Olivier ZILLER
Hello, I need to generate the value '0A 00 00 00' with the pack function. How to do this? TIA -- 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

[PHP] Newbie User Def Function Question

2001-02-15 Thread Jeff Oien
Could anyone give me the correct syntax for calling a function. I have a block of code I want to reuse. How do I name this code block and how do I call it? Having a hard time finding an answer looking through docs. It's so basic I can't find an explanation. :) Jeff Oien -- PHP General Mailing

RE: [PHP] Newbie User Def Function Question

2001-02-15 Thread Jonathan Sharp
?php function someFunction($var) { echo $var; } // Your script someFunction("Foobar!"); ? if you're creating an instance of a class object ?php class someClass { function someFunction($var) { echo $var; } } $someClass = new someClass; $someClass-someFuncti

[PHP] passing array to function?

2001-02-06 Thread Jaxon
How do you write a function that takes an array as an argument? Could someone please point me at an example? Regards, Jaxon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP] passing array to function?

2001-02-06 Thread David Robley
On Wed, 7 Feb 2001 11:30, Jaxon wrote: How do you write a function that takes an array as an argument? Could someone please point me at an example? Regards, Jaxon Try this: ?php function show_elements($ary) { while(list($key,$val) = each($ary)) { echo "

RE: [PHP] PHP evaluates an expression function?

2001-02-02 Thread johnny p.
Well, I think the equivalent PHP function to VB's eval() function is... eval(). go to: http://www.php.net/manual/en/function.eval.php HTH, johnny p. -Original Message- From: ¹æâÇö [mailto:[EMAIL PROTECTED]] Sent: Friday, February 02, 2001 8:11 PM To: [EMAIL PROTECTED] Subject

Re: [PHP] PHP evaluates an expression function?

2001-02-02 Thread
February 03, 2001 1:51 PM Subject: RE: [PHP] PHP evaluates an expression function? Well, I think the equivalent PHP function to VB's eval() function is... eval(). go to: http://www.php.net/manual/en/function.eval.php HTH, johnny p. -Original Message- From:

RE: [PHP] Override already-declared function?

2001-01-30 Thread Jason Murray
You can override (and yet still have access to) inherited class methods in subclasses. Have you looked at applicability of OOP in your implementation? Unfortunately, I'm pretty much an old-school programmer, I just can't wrap my brain around OOP and don't have the time to stop and learn :\

[PHP] but what if.. Function / String Problem

2001-01-19 Thread Karl J. Stubsjoen
ubsjoen" [EMAIL PROTECTED] To: "PHP Mailing List" [EMAIL PROTECTED] Sent: Friday, January 19, 2001 10:17 AM Subject: [PHP] Function / String Problem Okay, what is wrong with this: echo "brbr...are you logged in: $LoggedIn()brbr"; // outputs:...are you logged

Re: [PHP] but what if.. Function / String Problem

2001-01-19 Thread Shawn Blaylock
It won't work even with single quotes. It'll just echo out LoggedIn() as part of the string. "Boget, Chris" wrote: What if I want the function to be processed within the " " quotes? Same as a variable might be interopelated? IOW, can I call a function without concantenating the

RE: [PHP] but what if.. Function / String Problem

2001-01-19 Thread Boget, Chris
It won't work even with single quotes. It'll just echo out LoggedIn() as part of the string. Yeah, I didn't think so. But I knew that '' behaves differently than "". I just wasn't sure of the exact details of the differences. Chris

Re: [PHP] but what if.. Function / String Problem

2001-01-19 Thread Shawn Blaylock
Yep. I think the only difference is the way it handles variable interpolation, but I'm not entirely sure on that one. "Boget, Chris" wrote: It won't work even with single quotes. It'll just echo out LoggedIn() as part of the string. Yeah, I didn't think so. But I knew that '' behaves

Re: [PHP] but what if.. Function / String Problem

2001-01-19 Thread Ignacio Vazquez-Abrams
On Fri, 19 Jan 2001, Shawn Blaylock wrote: Yep. I think the only difference is the way it handles variable interpolation, but I'm not entirely sure on that one. "Boget, Chris" wrote: It won't work even with single quotes. It'll just echo out LoggedIn() as part of the string.

Re: [PHP] but what if.. Function / String Problem

2001-01-19 Thread Shawn Blaylock
O yeah! Thanks for pointing that out! =) Ignacio Vazquez-Abrams wrote: On Fri, 19 Jan 2001, Shawn Blaylock wrote: Yep. I think the only difference is the way it handles variable interpolation, but I'm not entirely sure on that one. "Boget, Chris" wrote: It won't work even

<    4   5   6   7   8   9