Re: [PHP] Call to undefined function: mssql_pconnect()

2003-03-18 Thread -{ Rene Brehmer }-
On Tue, 18 Mar 2003 13:44:25 -0500, Miro Kralovic wrote about [PHP] Call to undefined function: mssql_pconnect() what the universal translator turned into this: Hi all.. I'm trying to connect MSSQL2000 Personal Edition from PHP and all I'm getting is Call to undefined function: mssql_pconnect

Re: [PHP] PHP Processing Order || Function Calls

2003-03-18 Thread CF High
Thanks for the tip Erik. Looks like I'll need to test live on this one -- I've got a win2k/Apache/PHP setup locally -- output buffering apparently does not work in this configuration... I'll look into it on our host company's Linux servers, --Noah Erik Price [EMAIL PROTECTED] wrote in

[PHP] Re: PHP newbie ... function with several returns ?

2003-03-15 Thread Jome
Robert Dyke wrote: Hi ... PHP newbie here. I'm migrating from ASP/vbScript. I'd like to set up a subroutine that will change several variables at once. In VB, I can say: Private Sub Change_Variables ($variable1, $variable2) $variable1 = Something different from it's original value

[PHP] Re: PHP newbie ... function with several returns ?

2003-03-15 Thread Robert Dyke
Jome [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Robert Dyke wrote: Hi ... PHP newbie here. I'm migrating from ASP/vbScript. I'd like to set up a subroutine that will change several variables at once. In VB, I can say: Private Sub Change_Variables ($variable1,

[PHP] PHP DOM XML Function

2003-03-14 Thread Fatih stnda
do you have any idea about PHP DOM XML functions? when will PHP DOM XML functions be stable? Fatih stnda Yre Elektronik Yaymclk A.. 0 212 234 00 90 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Populate var with function output string?

2003-03-03 Thread CF High
Hey all. Is it possible to populate a var with an output string generated by a function? So: *** function write_string(count) { for ($x = 0; $x $count; $x++) { echo option value=$x Row $x/option; } } $my_string = write_string(5); echo

Re: [PHP] Populate var with function output string?

2003-03-03 Thread Leif K-Brooks
Try adding each output string to a variable, then returning it, like: function return_string(count) { $return = ''; for ($x = 0; $x $count; $x++) { $return.= option value=$x Row $x/option; } return $return; } If you can't do that for some reason, try using output buffering.

RE: [PHP] Populate var with function output string?

2003-03-03 Thread David Freeman
*** function write_string(count) { for ($x = 0; $x $count; $x++) { echo option value=$x Row $x/option; } } $my_string = write_string(5); echo $my_string; *** 8-Untested

Re: [PHP] Populate var with function output string?

2003-03-03 Thread Ernest E Vogelsinger
At 04:56 04.03.2003, CF High said: [snip] Hey all. Is it possible to populate a var with an output string generated by a function? So: *** function write_string(count) { for ($x = 0; $x $count; $x++) { echo

Re: [PHP] Populate var with function output string?

2003-03-03 Thread Noah
: Monday, March 03, 2003 5:01 PM Subject: Re: [PHP] Populate var with function output string? Try adding each output string to a variable, then returning it, like: function return_string(count) { $return = ''; for ($x = 0; $x $count; $x++) { $return.= option value=$x Row $x

[PHP] Efficient db connect function?

2003-02-23 Thread CF High
Hey all. I'm currently using the following db connection function, but I'm not sure if it's as efficient as it could be. function dbConnect($SQL) { global $result; // Connect to DB if (!$link = mysql_connect($db_host, $db_user, $db_pass)) { $result = 0;

[PHP] Re: PHP mail function From header not working

2003-02-13 Thread Lee W
Marco Alting [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... When I try to use a php script, to send an email, the From header is replaced by a senders email address of my provider. Is there any way to make it so my email address shows up in the From header? In

[PHP] Re: PHP mail function From header not working

2003-02-13 Thread Lee W
Marco Alting [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... When I try to use a php script, to send an email, the From header is replaced by a senders email address of my provider. Is there any way to make it so my email address shows up in the From header?

[PHP] Re: Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? A bug?

2003-02-07 Thread nicos
is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? Is it a bug? Or? My ISP config: System Linux titan 2.4.18-3 #1 Thu Apr 18 07:37:53 EDT 2002 i686 Build Date Jan 24 2003 19:35:29 Configure Command './configure' '--with-mysql

[PHP] Re: Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? A bug?

2003-02-07 Thread nicos
: php.general To: [EMAIL PROTECTED] Sent: Friday, February 07, 2003 3:14 PM Subject: Re: Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? A bug? You need to install jpeg-6bftp://ftp.uu.net/graphics/jpeg/ and dd --with-jpeg-dir=DIR

RE: [PHP] Re: Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? A bug?

2003-02-07 Thread SED
So, why is this function not included in GD like imagecreatefrompng()? Can this be just bad configuration at my Administrator behalf? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 7. febrúar 2003 14:15 To: [EMAIL PROTECTED] Subject: [PHP] Re: Why is function

Re: [PHP] Re: Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? A bug?

2003-02-07 Thread nicos
] Subject: [PHP] Re: Why is function imagecreatefromjpeg() undefined in PHP 4.3 when GD is enabled and imagecreatefrompng() id defined? A bug? You need to install jpeg-6bftp://ftp.uu.net/graphics/jpeg/ and dd --with-jpeg-dir=DIR. -- Regards. M.CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com

[PHP] Call to undefined function: imagetypes()

2003-02-06 Thread Stefan Vogel
Dear Supportteam Im Runing a Apache Webserver under Debian sid (testing). I've installed PHP Version 4.1.2. Now I would like to create a Webalbum, but my Server doesn't know the funktion imagetypes. He gives me the Error-message: Call to undefined function: imagetypes(). I found the same Error

[PHP] $object-function($parameter)-function();

2003-01-22 Thread Chris McCluskey
Hi there, I've been using PHP for about 2 years now and absolutely love it! Our company uses it as our main development language, so far though, there is one thing that has been annoying me for a while now.. the following line of code will not work: $object-function1($parameter)-function2();

[PHP] globals off in function

2003-01-14 Thread Michael Bevz
Hi, all!!! I've such trouble: ( register_globals = off ) in function i call to $smarty variable function showLoginForm(){ global $db, $smarty; // $smarty = new Smarty in main code $smarty-assign(message, $message); // and i receive this error message Fatal error: Call to a

Re: [PHP] globals off in function

2003-01-14 Thread Jason Wong
On Tuesday 14 January 2003 18:46, Michael Bevz wrote: I've such trouble: ( register_globals = off ) The register_globals setting in php.ini has ... in function i call to $smarty variable function showLoginForm(){ global $db, $smarty; // $smarty = new Smarty in main code ...

Re: [PHP] globals off in function

2003-01-14 Thread Chris Hayes
in function i call to $smarty variable function showLoginForm(){ global $db, $smarty; // $smarty = new Smarty in main code Fatal error: Call to a member function on a non-object in Are you sure $smarty = new Smarty is in the main code? Can it be in another function? Try setting

Re: [PHP] globals off in function

2003-01-14 Thread Michael Bevz
Chris Hayes [EMAIL PROTECTED] ïèøåò â ñîîáùåíèè:[EMAIL PROTECTED] in function i call to $smarty variable function showLoginForm(){ global $db, $smarty; // $smarty = new Smarty in main code Fatal error: Call to a member function on a non-object in Are you sure $smarty = new

[PHP] stupid question (Back Function)

2003-01-13 Thread Remon Redika
hi everyone, It's Possible We used Php Scripting to Back the client Browser Like This Below : (ussualy I make it with java script) : javascript:history.back(1) but right now, i need using the 'header's function', functionaly to back the page to previouse page. sorry before :) -- PHP

RE: [PHP] stupid question (Back Function)

2003-01-13 Thread Sean Malloy
PROTECTED] Subject: [PHP] stupid question (Back Function) hi everyone, It's Possible We used Php Scripting to Back the client Browser Like This Below : (ussualy I make it with java script) : javascript:history.back(1) but right now, i need using the 'header's function', functionaly to back the page

Re: [PHP] stupid question (Back Function)

2003-01-13 Thread David T-G
Remon, et al -- ...and then Remon Redika said... % % hi everyone, Hi! % % It's Possible We used Php Scripting to Back the client Browser Well, yes and no. There was just a new 'crumb' class released (see http://www.phpclasses.org/browse.html/package/934.html for more) which will let

Re: [PHP] Auto Include a Function

2003-01-10 Thread Justin French
:) Justin on 10/01/03 9:15 AM, Brian T. Allen ([EMAIL PROTECTED]) wrote: Hi, This may exist, but I haven't been able to find it, and I think it would be REALLY helpful and convenient. The idea is this: When you write a script and call a function: ?php $whatever

[PHP] Auto Include a Function

2003-01-09 Thread Brian T. Allen
Hi, This may exist, but I haven't been able to find it, and I think it would be REALLY helpful and convenient. The idea is this: When you write a script and call a function: ?php $whatever = previously_uncalled_function(one,two); ? PHP would automatically look for a file named

Re: [PHP] Php 4.3.0 and Mail() function

2003-01-01 Thread Carl Bélanger
Exactly!! checking for sendmail... no I've browsed the configure's help and I can't find an option to specify the path to sendmail (which is not at a regular place as we run qmail). Is the a --with-sendmail-path option or something like that? Thanks a lot! Carl Rick Widmer wrote: At 10:11

Re: [PHP] Php 4.3.0 and Mail() function

2003-01-01 Thread Jason Wong
On Thursday 02 January 2003 01:26, Carl Bélanger wrote: Exactly!! checking for sendmail... no I've browsed the configure's help and I can't find an option to specify the path to sendmail (which is not at a regular place as we run qmail). Is the a --with-sendmail-path option or something

Re: [PHP] Php 4.3.0 and Mail() function

2003-01-01 Thread Rick Widmer
At 02:07 AM 1/2/03 +0800, Jason Wong wrote: On Thursday 02 January 2003 01:26, Carl Bélanger wrote: Exactly!! checking for sendmail... no I've browsed the configure's help and I can't find an option to specify the path to sendmail (which is not at a regular place as we run qmail). Is the

[PHP] Php 4.3.0 and Mail() function

2002-12-31 Thread Carl Bélanger
I just upgraded to php 4.3.0 and all by bulletin board are now returning error about the mail function: Fatal error: Call to undefined function: mail() in /var/wwwx/htdocs/forum/private.php on line 687 I've checked in the pear list of installed packages and I have the latest mail (1.0.2).

Re: [PHP] Php 4.3.0 and Mail() function

2002-12-31 Thread Rick Widmer
At 10:11 AM 12/31/02 -0500, Carl Bélanger wrote: I just upgraded to php 4.3.0 and all by bulletin board are now returning error about the mail function: Fatal error: Call to undefined function: mail() in /var/wwwx/htdocs/forum/private.php on line 687 What could be missing? ./configure

[PHP] LogIn check within function within class :: HELP!

2002-12-08 Thread Sean Mayhew
Im just about at wits end here Im trying to verify that a users ID and Password exist in the MySQL Database and then if it does display certain content and if it does not display login form content. ###At present here is the error I'm recieving: Warning: Missing argument 3 for verifylogin() in

Re: [PHP] LogIn check within function within class :: HELP!

2002-12-08 Thread Tom Rogers
Hi, Monday, December 9, 2002, 2:24:47 AM, you wrote: SM Im just about at wits end here Im trying to verify that a users ID and SM Password exist in the MySQL Database and then if it does display certain SM content and if it does not display login form content. SM ###At present here is the

[PHP] Making random string function function more random?

2002-12-06 Thread Leif K-Brooks
I'm using the following function to generate a random string: function randstring($minasc = 32,$maxasc = 255,$minlength = 0,$maxlength = 0){ //If maximum length is lower than minimum length, return string representation of false if($maxlength != 0 and $minlength != 0 and $minlength

[PHP] Check wheter GD function is working

2002-12-06 Thread info
Hello list, how can I check wheter GD-function is working and running? Oliver Etzel

Re: [PHP] Check wheter GD function is working

2002-12-06 Thread @ Edwin
Hello, [EMAIL PROTECTED] wrote: Hello list, how can I check wheter GD-function is working and running? First check phpinfo() and see under gd then read more info here: http://www.php.net/manual/en/ref.image.php - E PS: Pls. don't flood the list with same messages... -- PHP General

[PHP] variable num of function args

2002-12-03 Thread christian haines
hi all, is it possible to somehow have a function which takes a variable number of arguments (with some kind of key association) which can then be converted to variables? i am sick of continually having to go back and add empty parameters to functions in use. an example would be.. function

RE: [PHP] variable num of function args

2002-12-03 Thread Ford, Mike [LSS]
-Original Message- From: christian haines [mailto:[EMAIL PROTECTED]] Sent: 03 December 2002 13:32 hi all, is it possible to somehow have a function which takes a variable number of arguments Yes -- look at the manual pages for func_num_args

[PHP] Call to undefined function: mysql_foo()...

2002-12-01 Thread Adam Atlas
I'm having a strange problem. If I run any MySQL function, I get the error message Call to undefined function: mysql_foo(). Why would I be getting this? I've checked php.ini to see if it has the extension=mysql.so line, and I've run a phpinfo() script which says PHP was compiled with MySQL and

Re: [PHP] Call to undefined function: mysql_foo()...

2002-12-01 Thread Marco Tabini
Is it possible that phpBB is using a different copy of PHP? On Sun, 2002-12-01 at 14:21, Adam Atlas wrote: I'm having a strange problem. If I run any MySQL function, I get the error message Call to undefined function: mysql_foo(). Why would I be getting this? I've checked php.ini to see if

[PHP] calling a php function

2002-11-26 Thread Adrian Partenie
Hello, Can I call a php function using forms in the same way as I do for a javascript function? (in the same page, not with php_self). ?php function() {... } ? form method=post action=function() . /form Thanks, Adrian

Re: [PHP] calling a php function

2002-11-26 Thread John Nichel
No, you can't. PHP is run on the server side. JavaScript is client side. Adrian Partenie wrote: Hello, Can I call a php function using forms in the same way as I do for a javascript function? (in the same page, not with php_self). ?php function() {... } ? form method=post

[PHP] Re: PHP's mail() function doesn't work on my server

2002-11-13 Thread David Robley
In article 004101c288f5$2fa6f0b0$0100a8c0@hub, [EMAIL PROTECTED] says... I have sendmail installed and the path to it in the php.ini is correct, when i try a file just containing the mail() function (no errors in that!) it starts sendmail but nothing gets sent! root 22508 0.0 0.2

RE: [PHP] Problem with is_dir function

2002-11-05 Thread Roger Lewis
On Saturday, November 02, 2002 11:07 AM, I wrote * I'm having a problem with the is_dir function, or maybe I don't understand how it supposed to work. I'm using the following code to check whether or not a directory called $user_dir exists. If it exists, I am returned the proper message.

Re: [PHP] Problem with is_dir function

2002-11-05 Thread rija
]; Php-General [EMAIL PROTECTED] Sent: Wednesday, November 06, 2002 3:41 AM Subject: RE: [PHP] Problem with is_dir function On Saturday, November 02, 2002 11:07 AM, I wrote * I'm having a problem with the is_dir function, or maybe I don't understand how it supposed to work. I'm using

[PHP] Problem with is_dir function

2002-11-02 Thread Roger Lewis
I'm having a problem with the is_dir function, or maybe I don't understand how it supposed to work. I'm using the following code to check whether or not a directory called $user_dir exists. If it exists, I am returned the proper message. But if it doesn't exist, I get the following error

Re: [PHP] Problem with is_dir function

2002-11-02 Thread Andrew Brampton
/incoming are invalid Hope this helps Andrew - Original Message - From: Roger Lewis [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED] Sent: Saturday, November 02, 2002 7:06 PM Subject: [PHP] Problem with is_dir function I'm having a problem with the is_dir function, or maybe I don't

RE: [PHP] Problem with is_dir function

2002-11-02 Thread Roger Lewis
-Original Message- From: Andrew Brampton [mailto:andrew;bramp.freeserve.co.uk] Sent: Saturday, November 02, 2002 11:24 AM To: Roger Lewis; [EMAIL PROTECTED] Subject: Re: [PHP] Problem with is_dir function what values of $user_dir are you passing to is_dir? echo them out before the test, you

[PHP] Adding to cart function.

2002-10-25 Thread Steve Jackson
My boss wants me to add a number of items to the cart based on a user form input. At the moment my add to cart function checks if anything is in it and then increments one item (using this code). I can supply the full function if required but just this part would get me away I think.

Re: [PHP] Adding to cart function.

2002-10-25 Thread Justin French
Hi ? $newamount = 5; if($cart[$new]) $cart[$new] = $cart[$new] + $newamount; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $HTTP_GET_VARS within a function ??

2002-10-14 Thread John Negretti
Jason, What is the difference? Jason Wong [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Monday 14 October 2002 08:36, John Negretti wrote: Marco, I was reading that there were some security risks with register-globals. Is this the same thing

Re: [PHP] $HTTP_GET_VARS within a function ??

2002-10-14 Thread Sascha Cunz
http://localhost/test.php?var=5 results in (global scope) $var = 5; // Register globals on $HTTP_GET_VARS['var'] = 5; // Always (?) $_GET['var'] = 5; // With newer versions of PHP To access this from a function: function x() { global $var; globsl $HTTP_GET_VARS; echo $var.'BR';

[PHP] $HTTP_GET_VARS within a function ??

2002-10-13 Thread John Negretti
Hello All, I am calling a particular function. Within that function I need access to the $HTTP_GET_VARS array. It seem I could only access that array if I pass it as a parameter of the function. Is this how it's supposed to work. Thanks for any direction. NOTE: I am using PHP 4.0.6.

Re: [PHP] $HTTP_GET_VARS within a function ??

2002-10-13 Thread Marco Tabini
Try using global $HTTP_GET_VARS; at the beginning of your function. $HTTP_GET_VARS has global scope, and by default PHP isolates functions from the parent scope. Marco On Sun, 2002-10-13 at 16:39, John Negretti wrote: Hello All, I am calling a particular function. Within that

Re: [PHP] $HTTP_GET_VARS within a function ??

2002-10-13 Thread John Negretti
Marco, I was reading that there were some security risks with register-globals. Is this the same thing as global. John Negretti www.ideablue.com Marco Tabini [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Try using global $HTTP_GET_VARS; at the

Re: [PHP] $HTTP_GET_VARS within a function ??

2002-10-13 Thread Jason Wong
On Monday 14 October 2002 08:36, John Negretti wrote: Marco, I was reading that there were some security risks with register-globals. Is this the same thing as global. No, they're totally different things. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software

[PHP] Re: Using date() function

2002-10-06 Thread nicos
First you should use : $entry_date = date('l, d F Y H:i:s',$sql['date']); And $sql['date'] must be a TIMESTAMP. -- Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet Davy Obdam [EMAIL PROTECTED] a écrit dans le message de news:

RE: [PHP] Re: Using date() function

2002-10-06 Thread Davy Obdam
a solution? Best regards, Davy Obdam, mailto:[EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 06, 2002 1:59 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Re: Using date() function First you should use : $entry_date

[PHP] Re: Using date() function

2002-10-06 Thread @ Edwin
Hello, Why not just do it in your sql query? If you're using MySQL perhaps this page would be helpful: http://www.mysql.com/doc/en/Date_and_time_functions.html Just an idea... - E On Sunday, October 6, 2002 10:01 PM Davy Obdam wrote: Hi people I have a guestbook, and i need to

RE: [PHP] Re: Using date() function

2002-10-06 Thread John W. Holmes
Using $entry_date = date('l, d F Y H:i:s',$sql['date']); now gives me back Tuesday, 19 January 2038 04:14:07 with ever entry. $sql['date'] is a TIMESTAMP and looks like this 20021006141256 in the datebase. It should give me Sunday, 06 October 2002 14:12:56..? Wierd eh? Do u know a solution?

[PHP] RE: [PHP-WIN] RE: [PHP] Re: Using date() function

2002-10-06 Thread Davy Obdam
: John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 06, 2002 3:31 PM To: 'Davy Obdam'; [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP-WIN] RE: [PHP] Re: Using date() function Using $entry_date = date('l, d F Y H:i:s',$sql['date']); now gives me back Tuesday

[PHP] RE: [PHP-WIN] RE: [PHP] Re: Using date() function

2002-10-06 Thread John W. Holmes
Hi John, How do u use UNIX_TIMESTAMP or DATE_FORMAT in your query. My query now looks like this: SELECT * FROM guestbook2002 ORDER BY entryID DESC LIMIT $entry, $show; Can u help me;-) Thanks for your time Did you read the Date and Time Functions chapter of the MySQL manual?? SELECT

RE: [PHP] Problems with dbase_create function

2002-09-29 Thread John W. Holmes
PROTECTED]] Sent: Sunday, September 29, 2002 2:19 AM To: [EMAIL PROTECTED] Subject: [PHP] Problems with dbase_create function Hey All, I'm trying to build a DBF for exporting selected data as a download to the end users... But I can't get further than this... error_reporting

RE: [PHP] Problems with dbase_create function

2002-09-29 Thread Matt Neimeyer
PROTECTED] Subject: [PHP] Problems with dbase_create function Hey All, I'm trying to build a DBF for exporting selected data as a download to the end users... But I can't get further than this... error_reporting(E_ALL); $DBFName = Test.dbf; $Fields = array( array

RE: [PHP] Problems with dbase_create function

2002-09-29 Thread John W. Holmes
, September 29, 2002 11:55 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Problems with dbase_create function I considered that... Problem is I'm not 100% certain how to set that the correct way... (so as not to screw anything else up) Recommendations? Thanks PS It's good to know I wasn't

[PHP] Problems with dbase_create function

2002-09-28 Thread Matt Neimeyer
Hey All, I'm trying to build a DBF for exporting selected data as a download to the end users... But I can't get further than this... error_reporting(E_ALL); $DBFName = Test.dbf; $Fields = array( array (Test,C,32) ); if(dbase_create($DBFName, $Fields))

[PHP] session and expiration function

2002-09-23 Thread christian haines
hi, is it possible to have a function execute when a session expires using php4 sessions? i know how to execute a function if i control the timeout (as mentioned elsewhere in this group) but what about if the session times out itself using the inbuilt garbage collection routine. if so, any ideas

RE: [PHP] session and expiration function

2002-09-23 Thread John Holmes
is it possible to have a function execute when a session expires using php4 sessions? i know how to execute a function if i control the timeout (as mentioned elsewhere in this group) but what about if the session times out itself using the inbuilt garbage collection routine. if so, any

Re: [PHP] session and expiration function

2002-09-23 Thread christian haines
thanks john, hmmm... i suspected as much... i guess the way to do it would be to set a highly improbable garbage collection and long timeout via ini_set. then use a timeout function attached to the session which launches on expiration cheers christian John Holmes [EMAIL PROTECTED] wrote in

RE: [PHP] session and expiration function

2002-09-23 Thread John Holmes
PROTECTED]] Sent: Monday, September 23, 2002 11:06 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] session and expiration function thanks john, hmmm... i suspected as much... i guess the way to do it would be to set a highly improbable garbage collection and long timeout via ini_set. then use

Re: [PHP] session and expiration function

2002-09-23 Thread christian haines
the PHP board at Devshed and someone posted a sample function to handle the cleanup. ---John Holmes... -Original Message- From: christian haines [mailto:[EMAIL PROTECTED]] Sent: Monday, September 23, 2002 11:06 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] session and expiration

[PHP] RE: redefining a function

2002-09-20 Thread Tim Ward
how about http://www.php.net/manual/en/language.oop.php To be honest I can't remember what made classes first click for me but feel free to ask if there's anything there that you don't get. Classes and OOP seem self evident when you've been using them for a while but I seem to remember that

[PHP] RE: redefining a function

2002-09-19 Thread Tim Ward
is using classes an option? Tim Ward www.chessish.com -Original Message- From: David T-G [mailto:[EMAIL PROTECTED]] Sent: 19 September 2002 04:54 To: PHP General list Subject: redefining a function Hi, all -- Is there any way to redefine or undefine (to

[PHP] Re: Cannot Redeclare Function

2002-09-19 Thread Stephan Seidt
Array: ?php function tbl2array ($table, $sortby = default, $keyword = all, $keyfield = 0) { $fpointer = fopen ($table,r); $row = 1; $leaf = array(); $heading = array(); while ($data = fgetcsv ($fpointer,1000)) { if ($row == 1) { $heading = $data

[PHP] Re: redefining a function

2002-09-19 Thread David T-G
Tim, et al -- ...and then Tim Ward said... % % is using classes an option? I don't know. I suppose I need to learn about classes :-) Where do I start? % % Tim Ward % www.chessish.com TIA HAND :-D -- David T-G * It's easier to fight for one's

Re[4]: [PHP] numeric to word function

2002-09-18 Thread Tom Rogers
Hi, Thursday, September 19, 2002, 5:29:06 AM, you wrote: BY What does this do? Here is the class again with all errors fixed and some unfinished bits but it should be enough to get you started. It uses recursion as it repeats after one thousand .. ie one, two, three one thousand, two

Re: [PHP] numeric to word function

2002-09-13 Thread Tom Rogers
Hi, Friday, September 13, 2002, 12:37:41 AM, you wrote: rhc Hi.. rhc anyone know any function to convert numeric values to word.. rhc something like this: 1252 -- one thousand two hundred and fifty two rhc Thanks... Here is a class that will get you started :) class num_to_text { var

Re: [PHP] numeric to word function

2002-09-13 Thread Tom Rogers
Hi, Friday, September 13, 2002, 12:37:41 AM, you wrote: rhc Hi.. rhc anyone know any function to convert numeric values to word.. rhc something like this: 1252 -- one thousand two hundred and fifty two rhc Thanks... Here it is without the typo :) class num_to_text { var $mode;

[PHP] numeric to word function

2002-09-12 Thread rainydays_sunshine
Hi.. anyone know any function to convert numeric values to word.. something like this: 1252 -- one thousand two hundred and fifty two Thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Call to undefined function mysql_connect()

2002-08-25 Thread hugh danaher
Help! I am getting the following error message for : ? $link=mysql_connect(localhost,$user,$pass); // line 34 ? Fatal error: Call to undefined function: mysql_connect() in /home/www/test.somename.org/aux/db-mod.php on line 34 I have used this call successfully on php v4.0.6, and am now

Re: [PHP] Call to undefined function mysql_connect()

2002-08-25 Thread @ Edwin
Help! I am getting the following error message for : ? $link=mysql_connect("localhost","$user","$pass"); // line 34 ? Fatal error: Call to undefined function: mysql_connect() in /home/www/test.somename.org/aux/db-mod.php on line 34 I have used this call successfully on php v4.0.6, and am

Re: [PHP] Call to undefined function mysql_connect()

2002-08-25 Thread hugh danaher
To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, August 25, 2002 8:54 PM Subject: Re: [PHP] Call to undefined function mysql_connect() Help! I am getting the following error message for : ? $link=mysql_connect("localhost","$user","$pass"); // line

RE: [PHP] Call to undefined function mysql_connect()

2002-08-25 Thread Peter Houchin
do a php_info() on a page and check the mysql propeties in there.. might give you a clue.. -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: Monday, 26 August 2002 1:18 PM To: php Subject: [PHP] Call to undefined function mysql_connect() Help! I am getting

[PHP] Passing array to function

2002-08-13 Thread Bill Hudspeth
I am trying to write a function that builds a multiple-choice drop down list. As such, I need to specify an array in the name attribute of the select tag. I am trying to pass a parameter to the function which gets used as this name attribute, but seem to be having problems with the square

RE: [PHP] Passing array to function

2002-08-13 Thread Ford, Mike [LSS]
-Original Message- From: Bill Hudspeth [mailto:[EMAIL PROTECTED]] Sent: 13 August 2002 17:10 [] DESIRED FUNCTION VERSION $elementname=cgroup_1[]; $elementsarray=$chon_group_a; PrintOptionBox($elementname,$elementsarray); Well, looks ok-ish so far -- what's in the

[PHP] Re: Calling a function without variable params

2002-07-27 Thread lallous
you can pass an unlimited number of variable through the array() constructor. as: data_interface(array($table1, $table2, $table3)) you can use an Array manipulation functions for that order too. good luck, Mathieu Dumoulin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL

[PHP] call to undefined function: mysql_connect

2002-07-27 Thread lfindle
Hi. I'm running PHP 4.2.1 MySQL 3.23. I'm getting the error message Call to undefined function: mysql_connect() when I try to use it in my code. If anyone has any ideas as to why this might be happening, I'd be appreciative. Thanks! -- PHP General Mailing List

RE: [PHP] call to undefined function: mysql_connect

2002-07-27 Thread Richard Pijnenburg
It seems then that your mysql support isn't installed correctly with your php. Richard Pijnenburg -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 28, 2002 12:25 AM To: [EMAIL PROTECTED] Subject: [PHP] call to undefined function: mysql_connect

[PHP] Problem on file_exists() function

2002-07-17 Thread Jack
Dear all I had made a test.txt file which stored in the following window path : c:\pdf_reports\dealing\test.txt, In my page, i ask php to check the test.txt exist in foler (c:\pdf_reports\dealing) using the following script: if (file_exists(c:\\pdf_reports\\dealing\\test.txt)) { print

Re: [PHP] Problem on file_exists() function

2002-07-17 Thread Analysis Solutions
On Wed, Jul 17, 2002 at 03:55:10PM +0800, Jack wrote: if (file_exists(c:\\pdf_reports\\dealing\\test.txt)) It seems that php can't detect the file in such path!!! While this isn't your problem, it's nicer coding. Single quotes and forward slashes: if (

[PHP] Problem with implode() function

2002-07-16 Thread Balaji Ankem
Hi, I have an array of elements which are separated with the operator comma(,). == $array = implode(,, $checkb); echo $array.'\n'; $result = mysql_query(DELETE FROM temp WHERE inv_tag IN ($array)) or die('Error in

Re: [PHP] Problem with implode() function

2002-07-16 Thread Jason Wong
WHERE inv_tag IN ($array)) or die('Error in query'.mysql_error()); PTX526_P_1,SIM_1 Error in query Unknown column 'PTX526_P_1' in 'where clause'. Well I can't see what this has to do with PHP let alone the implode() function. The error

RE: [PHP] Problem with implode() function

2002-07-16 Thread Balaji Ankem
Hi Jason, How to make $array look like 'PTX526_P_1','SIM_1' or PTX526_P_1,SIM_1. Thanks and Regards Balaji -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 16, 2002 8:22 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Problem with implode() function

Re: [PHP] Problem with implode() function

2002-07-16 Thread 1LT John W. Holmes
I have an array of elements which are separated with the operator comma(,). == $array = implode(,, $checkb); echo $array.'\n'; $result = mysql_query(DELETE FROM temp WHERE inv_tag IN ($array)) or die('Error in query'.mysql_error());

[PHP] help with mail() function!

2002-07-12 Thread Thomas \omega\ Henning
,strlen($subject)); $subject = [MediaSoft] . $subject; //mail($to, $subject, $body, $headers) or die(tet); mail($to, $subject, $fullbody, From: [EMAIL PROTECTED]); ? I got the pop3.php from www.weberdev.com its a class to download emails from a POP3 server. My problem is: When i send an email from a PHP

Re: [PHP] help with mail() function!

2002-07-12 Thread Analysis Solutions
You wouldn't happen to be on a windows system? Read the Warning: on the manual page: http://www.php.net/manual/en/function.mail.php --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution sqlsolution.info |

Re: [PHP] help with mail() function!

2002-07-12 Thread Thomas \omega\ Henning
No I only work on *nix platforms Analysis Solutions [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You wouldn't happen to be on a windows system? Read the Warning: on the manual page: http://www.php.net/manual/en/function.mail.php --Dan --

[PHP] Configuring the Session Function in php.ini for WinNT...

2002-07-05 Thread Kondwani Spike Mkandawire
Does anyone know how to configure the session function in the php.ini File under WinNT... The Session Function appears to be generic to UNIX... What do I change the save_path variable to... session.save_path = ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

<    1   2   3   4   5   6   7   8   9   >