Re: [PHP] function CreateDate i made doesnt work?

2004-04-06 Thread Red Wingate
I've seen this type of creating a timestamp quite often now and was even so often shaking my head about it. Guess i've seen it somewhere in the PHP Documentation's user contributed notes on day. Just google for the term and you will find many hits like this: http://www.mail-archive.com/[EMAIL

Re[2]: [PHP] function CreateDate i made doesnt work?

2004-04-06 Thread Richard Davey
Hello Red, Tuesday, April 6, 2004, 3:40:07 PM, you wrote: RW I've seen this type of creating a timestamp quite often now and was even so RW often shaking my head about it. Guess i've seen it somewhere in the PHP RW Documentation's user contributed notes on day. Just google for the term and RW

[PHP] function CreateDate i made doesnt work?

2004-04-06 Thread Andy B
Replace the above two lines with $time = date('YmdHis', mktime(0,0,0,$month,$day,$year); ok the function works now because when i echo the output of $_SESSION['add']['start_date'] it shows the right 14 digit timestamp for the date i wanted to create... now the problem is getting it to echo

Re: [PHP] function CreateDate i made doesnt work?

2004-04-06 Thread John W. Holmes
From: Andy B [EMAIL PROTECTED] Replace the above two lines with $time = date('YmdHis', mktime(0,0,0,$month,$day,$year); ok the function works now because when i echo the output of $_SESSION['add']['start_date'] it shows the right 14 digit timestamp for the date i wanted to create...

[PHP] [fixed][PHP] function CreateDate i made doesnt work?

2004-04-06 Thread Andy B
date() expects a UNIX timestamp. MMDDHHMMSS is NOT a UNIX timestamp. So, instead of converting the UNIX timestamp to MMDDHHMMSS in your function, why not leave it a UNIX timestamp? Then you can send it through date() whenever you want it formatted. yea...it works now...hmmm... dont know

[PHP] Function to check a valid date

2004-03-20 Thread Chris Bruce
Hello all, I was going to build a function to check whether a selected date exists, but thought that I would see if anyone has done this type of thing already which would indeed save me some time. I have a form where the users select the day of the week, month, date and year from 4 pulldowns.

[PHP] function 'image'

2004-03-03 Thread Kenneth
dear all, I have a problem on using image function. I've download the zlib and lpng file as it was told, but i still can't use the image function. How can I install these files into php?? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] What PHP function can detect session being expired??

2004-02-13 Thread Scott Fletcher
Hi! When I set the session.cache_expire to 60 minutes then on the webpage, how do I get PHP to tell me that session had expired via PHP function or something? Thanks, Scott F. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What PHP function can detect session being expired??

2004-02-13 Thread Marek Kilimajer
Scott Fletcher wrote: Hi! When I set the session.cache_expire to 60 minutes then on the webpage, how do I get PHP to tell me that session had expired via PHP function or something? Thanks, Scott F. None, but you can take care of the cleanout yourself. Than you have complete control over

Re: [PHP] What PHP function can detect session being expired??

2004-02-13 Thread Richard Davey
Hello Scott, Friday, February 13, 2004, 8:43:59 PM, you wrote: SF When I set the session.cache_expire to 60 minutes then on the webpage, SF how do I get PHP to tell me that session had expired via PHP function or SF something? Check for the existence of the session - if it's not there, it's

[PHP] function only available if PHP4 compiled using --enable-exif

2004-02-07 Thread Paul Furman
Does this mean I need to recompile from source code? (seems an extreme measure to me but what do I know) Is that difficult to do on a windows machine? I see it in some phpinfo's out there like this: http://www.php.net/~jimw/info.php but that's not in mine or at school or most hosting companies

Re: [PHP] Function for crypt and decript.

2004-01-26 Thread Jon Bennett
http://uk.php.net/md5 Thanks, Jon jon bennett | [EMAIL PROTECTED] new media creative _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ J b e n . n e t 91 Gloucester Rd, Trowbridge, Wilts, BA14 0AD t: +44 (0) 1225 341039 w: http://www.jben.net/ On 23 Jan 2004, at 09:55,

[PHP] Function for crypt and decript.

2004-01-23 Thread francesco
Hi all, are in PHP, functions for crypt and decrypt string? I would to use this function in my script in PHP, how can I use this? I need of an example for use this and a list of this function. Thanks in advance.

Re: [PHP] Function for crypt and decript.

2004-01-23 Thread Justin French
On Friday, January 23, 2004, at 08:55 PM, [EMAIL PROTECTED] wrote: Hi all, are in PHP, functions for crypt and decrypt string? I would to use this function in my script in PHP, how can I use this? I need of an example for use this and a list of this function. Thanks in advance. READ THE MANUAL

[PHP] Function Problem (Long-ish)

2004-01-13 Thread Dave Carrera
Hi List, I have a self-made function that uses a MySql statement something like this: Function MyFunc(){ sql = mysql_query(select * from table where somefield=\somevar\){ while(blah blah){ $var =blah blah; } } return $blah; } This works ok but if I add a bit to the sql then I get a

Re: [PHP] Function Problem (Long-ish)

2004-01-13 Thread Richard Davey
Hello Dave, Tuesday, January 13, 2004, 12:34:33 PM, you wrote: DC sql = mysql_query(select *, count(id) as cnt from table where DC somefield=\somevar\){ It's nothing to do with your function, simply that your SQL is invalid. -- Best regards, Richardmailto:[EMAIL

Re: [PHP] Function Problem (Long-ish)

2004-01-13 Thread CPT John W. Holmes
From: Dave Carrera [EMAIL PROTECTED] I get a Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource Whenever you get this warning it's because your query failed for some reason and you're trying to use a result that's not valid. Use mysql_error() to see what the

Re: [PHP] Function Problem (Long-ish)

2004-01-13 Thread Jason Wong
On Tuesday 13 January 2004 20:34, Dave Carrera wrote: [snip] My Question is Why ? Any help is a appreciated and I thank you fully in advance. You're not checking for errors. Incorporate error checking code and make use of mysql_error(). -- Jason Wong - Gremlins Associates -

RE: [PHP] Function Problem (Long-ish)

2004-01-13 Thread Dave Carrera
would appreciate it. Thank you Dave C -Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED] Sent: 13 January 2004 12:48 To: Dave Carrera Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Function Problem (Long-ish) Hello Dave, Tuesday, January 13, 2004, 12:34:33 PM, you wrote: DC

RE: [PHP] Function Problem (Long-ish)

2004-01-13 Thread Vincent Jansen
: [EMAIL PROTECTED] Subject: RE: [PHP] Function Problem (Long-ish) Thanks for the reply Richard. If I use this sql in my func: $sql = mysql_query(select count(fieldtocount) as cnt, sum(fieldforsum) as total from $tab3 where fieldtocompare =\$varcomparedwith\); Then all is fine and works

Re[2]: [PHP] Function Problem (Long-ish)

2004-01-13 Thread Richard Davey
Hello Dave, Tuesday, January 13, 2004, 12:57:35 PM, you wrote: DC If I use this sql in my func: DC $sql = mysql_query(select count(fieldtocount) as cnt, sum(fieldforsum) as DC total from $tab3 where fieldtocompare =\$varcomparedwith\); DC Then all is fine and works as expected. Is this MySQL?

RE: [PHP] Function Problem (Long-ish)

2004-01-13 Thread Dave Carrera
-Original Message- From: Vincent Jansen [mailto:[EMAIL PROTECTED] Sent: 13 January 2004 13:05 To: 'Dave Carrera'; 'Richard Davey' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Function Problem (Long-ish) I doubt that... MySQL says: Mixing of GROUP columns (MIN(),MAX(),COUNT()...) with no GROUP columns

Re: [PHP] Function returns

2004-01-12 Thread Burhan Khalid
Shawn McKenzie wrote: Maybe a dumb question, but as good coding practice, should all functions return something even if they don't need to??? Example: function do_it() { echo hi; } --or-- function do_it() { return echo hi; } Also, if they do other things but really don't return anything,

RE: [PHP] Function returns

2004-01-12 Thread Mark Cubitt
Shawn McKenzie wrote: Maybe a dumb question, but as good coding practice, should all functions return something even if they don't need to??? Example: function do_it() { echo hi; } --or-- function do_it() { return echo hi; } Also, if they do other things but really don't

RE: [PHP] Function returns

2004-01-12 Thread Jonathan Wilkes
] Subject: RE: [PHP] Function returns Shawn McKenzie wrote: Maybe a dumb question, but as good coding practice, should all functions return something even if they don't need to??? Example: function do_it() { echo hi; } --or-- function do_it() { return echo hi; } Also

[PHP] Function returns

2004-01-11 Thread Shawn McKenzie
Maybe a dumb question, but as good coding practice, should all functions return something even if they don't need to??? Example: function do_it() { echo hi; } --or-- function do_it() { return echo hi; } Also, if they do other things but really don't return anything, should they return

[PHP] PHP function for length of the array???

2004-01-06 Thread Scott Fletcher
Hi! Anyone know what is the php function for finding the length of the array? I haven't found the answer at http://us3.php.net/manual/en/ref.array.php . Thanks, FletchSOD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP function for length of the array???

2004-01-06 Thread Chris Hayes
At 15:44 6-1-04, you wrote: Hi! Anyone know what is the php function for finding the length of the array? I haven't found the answer at http://us3.php.net/manual/en/ref.array.php . looking for the number of elements? -count($arrayname) -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP function for length of the array???

2004-01-06 Thread Scott Fletcher
Ah! Thanks!!! Chris Hayes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] At 15:44 6-1-04, you wrote: Hi! Anyone know what is the php function for finding the length of the array? I haven't found the answer at http://us3.php.net/manual/en/ref.array.php . looking

Re: [PHP] PHP function for length of the array???

2004-01-06 Thread Neil Freeman
:44 6-1-04, you wrote: Hi! Anyone know what is the php function for finding the length of the array? I haven't found the answer at http://us3.php.net/manual/en/ref.array.php . looking for the number of elements? -count($arrayname) -- -- www.curvedvision.com

Re: [PHP] PHP function for length of the array???

2004-01-06 Thread Mike Migurski
Anyone know what is the php function for finding the length of the array? I haven't found the answer at http://us3.php.net/manual/en/ref.array.php . You are aware that all the available array functions are listed about halfway down that page, right

Re: [PHP] PHP function for length of the array???

2004-01-06 Thread Chris Shiflett
--- Mike Migurski [EMAIL PROTECTED] wrote: Anyone know what is the php function for finding the length of the array? I haven't found the answer at http://us3.php.net/manual/en/ref.array.php . You are aware that all the available array functions are listed about halfway down that page

[PHP] function problem?

2003-12-30 Thread Jas
Not sure why the last section won't work... /* Function to search for hosts */ function search_dhcp() { if ((empty($_POST['search'])) (empty($_POST['hosts01'])) (empty($_POST['hn'])) (empty($_POST['ma'])) (empty($_POST['i'])) (empty($_POST['v']))) { unset($_SESSION['search']);

RE: [PHP] function problem?

2003-12-30 Thread Jay Blanchard
[snip] Not sure why the last section won't work... ...so much code it made my head hurt [/snip] Not sure either. Did you have a question? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] possible bug in PHP function mysql_query() ?

2003-12-26 Thread Peter Walter
MySQL version: 4.0.16 PHP version: 4.3.2 Problem code: $query = SELECT * FROM tablename WHERE columnname LIKE '%any_eight_digits%'; mysql_query($query); Results: query fails, mysql_errno() returns 1064 (syntax error) I have tracked the problem down to the WHERE clause; using any other number of

[PHP] function problems...

2003-12-03 Thread Jas
I call this function it checks a session variable then displays 1 of 3 menus... for some reason it will only display the first menu regardless of the results of my decoded session var. Any help or just a new pair of eyes would help. Thanks in advance. jas function menu() { $lvl =

Re: [PHP] function problems...

2003-12-03 Thread Richard Davey
Hello Jas, Wednesday, December 3, 2003, 6:15:20 PM, you wrote: J I call this function it checks a session variable then displays 1 of 3 J menus... for some reason it will only display the first menu regardless J of the results of my decoded session var. Any help or just a new pair J of eyes

[PHP] function array problems

2003-12-01 Thread Steve Turner
Hi, Having some problems with multi-dimentional arrays. I am creatng an array using some database data, and adding stuff like an image tag, and hyperlink. Then passing this to another function that creates an Html table from an array. Here is the function to create the table from an

[PHP] function that appends dollar symbol

2003-11-22 Thread Joffrey Leevy
Hi all: The money_format function does not do it for me. Is there a simple php function which appends the '$' symbol to a string value. Example $money = 30 $money = some_php_function($money) echo $money //should show $30 thanks __ Do you Yahoo!? Free Pop

Re: [PHP] function that appends dollar symbol

2003-11-22 Thread John Nichel
Joffrey Leevy wrote: Hi all: The money_format function does not do it for me. Is there a simple php function which appends the '$' symbol to a string value. Example $money = 30 $money = some_php_function($money) echo $money //should show $30 thanks How 'bout... $money = '$' . 30

Re: [PHP] function that appends dollar symbol

2003-11-22 Thread Robert Cummings
On Sat, 2003-11-22 at 23:35, John Nichel wrote: Joffrey Leevy wrote: Hi all: The money_format function does not do it for me. Is there a simple php function which appends the '$' symbol to a string value. Example $money = 30 $money = some_php_function($money) echo $money

Re: [PHP] function that appends dollar symbol

2003-11-22 Thread Ryan A
/* Hmmm, that's prepending... how about: $money = 30.'$'; or if he wants it at the beginning: $money = strrev( strrev( '30' ).'$' ); *heheh* Rob. */ Pretty damn good and didnt require the installation of Interjinn either!!! Hehehe Peace. -Ryan -- PHP General Mailing List

[PHP] Function disabled.

2003-11-21 Thread Vincent M.
Hello, How to test if a function has been disabled. I tried doing this: if(function_exists(rmdir)) { echo rmdir Function exists ; } else { echo rmdir Function DOES NOT exists ; } So the test says that the function exists, but if we use it, I get: rmdir() has been disabled for security

[PHP] php function - netmask validity check

2003-11-06 Thread S H A N
hi, while using ipman php script and come accross this problem... function ip_mask_valid($mask) { $maskroot = (int)sqrt(abs(ip2long($mask))); return ( (float)$maskroot == sqrt(abs(ip2long($mask))) ); } this function is not returning true/successfull output when say given 255.255.254.0

[PHP] function question

2003-10-29 Thread Brian V Bonini
function splitPageResults($query, $max_rows, $count_key = '*', $page_holder = 'page') { Am I wrong in assuming that $count_key is being explicitly set to '*' in this instance? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] function question

2003-10-29 Thread CPT John W. Holmes
From: Brian V Bonini [EMAIL PROTECTED] function splitPageResults($query, $max_rows, $count_key = '*', $page_holder = 'page') { Am I wrong in assuming that $count_key is being explicitly set to '*' in this instance? Only if no value is passed when the function is called.

[PHP] function problem (simple redirect)

2003-10-27 Thread Frank Tudor
I'm trying to make this function work, but I'm not good at functions. I have created a variable for testing payment equal to 1 or 0 to see what would happen based on whatever the condition is in my database (the sql stuff is not here because i have to figure this thing out first). I get a

RE: [PHP] function problem (simple redirect)

2003-10-27 Thread Gregory Kornblum
function $payment{ Change that to: function payment{ $global $payment; Regards, -Gregory -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] function problem (simple redirect)

2003-10-27 Thread Gregory Kornblum
Make that: function payment{ global $payment; -Gregory -Original Message- From: Gregory Kornblum [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 1:30 PM To: 'Frank Tudor'; 1PHP Subject: RE: [PHP] function problem (simple redirect) function $payment{ Change

Re: [PHP] function problem (simple redirect)

2003-10-27 Thread Chris Shiflett
--- Frank Tudor [EMAIL PROTECTED] wrote: function $payment{ You probably mean payment, not $payment. header (location:test_page.html); The Location header has an uppercase L, a space after the colon, and an absolute URL after the space. Your example violates all three. Hope that helps.

Re: [PHP] Run the same php function several times in th background

2003-10-15 Thread Manuel Vázquez Acosta
There's a PEAR (o PCLE, can't remeber, search at http://pear.php.net) implementation of threads, though its experimental yet. Manu. Kb [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dear Mohamed Yes, I am looking for multithreading process , thank you for the suggestion charles

[PHP] Run the same php function several times in th background

2003-10-14 Thread KB
Hi NG I would like to intiate the same function many times, running in the background using php, Thank you in advance for any suggestion Kind regards Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Run the same php function several times in th background

2003-10-14 Thread Jay Blanchard
[snip] I would like to intiate the same function many times, running in the background using php, [/snip] for($i = 0; $i 1000; $i++){ foo($blork); // function runs one thousand times } Please RTFM, STFW, and STFA for PHP tutorials. Thank you. -- PHP General Mailing List

Re: [PHP] Run the same php function several times in th background

2003-10-14 Thread Mohamed Lrhazi
You're talking multithreading and/or forking extra processes? check the docs for that... search for fork... Mohamed~ On Tue, 2003-10-14 at 11:05, KB wrote: Hi NG I would like to intiate the same function many times, running in the background using php, Thank you in advance for any

Re: [PHP] Run the same php function several times in th background

2003-10-14 Thread KB
Dear Mohamed Yes, I am looking for multithreading process , thank you for the suggestion charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Run the same php function several times in th background

2003-10-14 Thread John Nichel
Jay Blanchard wrote: [snip] I would like to intiate the same function many times, running in the background using php, [/snip] for($i = 0; $i 1000; $i++){ foo($blork); // function runs one thousand times } Please RTFM, STFW, and STFA for PHP tutorials. Thank you. This is not what he

RE: [PHP] Run the same php function several times in th background

2003-10-14 Thread Jay Blanchard
[snip] This is not what he asked. He wants to run the process in the background. PHP's process control functions may do what you need http://us3.php.net/manual/en/ref.pcntl.php [/snip] My badunder the influence of anti-histamines and other cold medicines. -- PHP General Mailing List

Re: [PHP] Run the same php function several times in th background

2003-10-14 Thread John Nichel
Jay Blanchard wrote: [snip] This is not what he asked. He wants to run the process in the background. PHP's process control functions may do what you need http://us3.php.net/manual/en/ref.pcntl.php [/snip] My badunder the influence of anti-histamines and other cold medicines. Well, the

Re: [PHP] function to show time passed since event

2003-10-08 Thread Nathan Taylor
g:ia).br /\n; echo Then: .date(m/d/y g:ia, $timesince).br /\n; ? That should be right, I think... - Original Message - From: Chris W. Parker To: [EMAIL PROTECTED] Sent: Wednesday, October 08, 2003 7:34 PM Subject: [PHP] function to show time passed since event Hiya. Tried

[PHP] remove spaces using php function

2003-10-07 Thread Uma Shankari T.
Hello, Is there any function which will remove extra spaces between each words..?? for example if the user typed asked his friend.. is there any function to remove the extra space between his and asked except one space ?? Regards, Uma -- PHP General Mailing List

RE: [PHP] remove spaces using php function

2003-10-07 Thread Javier Tacon
Well, you can make your own function to to that: ?php function repairString($input) { $string = NULL; $iTmp=explode( ,$input); foreach($iTmp as $word) { if($word!=) $string.=$word ; } return trim($string); } print repairString(this is atest ); // prints this is a test ? Javier

RE: [PHP] remove spaces using php function

2003-10-07 Thread Javier Tacon
Or this one works too :) ?php function repairString($input) { while(($ninput=ereg_replace( , ,$input))!=$input) { $input = $ninput; } return trim($ninput); } print repairString(this is atest ); // prints this is a test ? Javier Tacón. -Mensaje original- De: Javier Tacon

Re: [PHP] remove spaces using php function

2003-10-07 Thread Evan Nemerson
You mean something like ereg_replace(' +', ' ', 'asked his friend..'); or perhaps preg_replace('/ +/', ' ', 'asked his friend..'); ? Of course, if you're getting this data from a luser, those may not be spaces. They could be obscure, non-printing characters. Take a look at

Re: [PHP] remove spaces using php function

2003-10-07 Thread Evan Nemerson
FYI, preg_replace /should/ be the fastest of all these methods (including Javier's). On Tuesday 07 October 2003 02:25 am, Evan Nemerson wrote: You mean something like ereg_replace(' +', ' ', 'asked his friend..'); or perhaps preg_replace('/ +/', ' ', 'asked his

[PHP] function call before declaration

2003-10-07 Thread Martin Hochstraßer
Hi! I got a problem with functions which I call before they're defined. I get the error message: Fatal error: Call to undefined function: view() in /daten/www/midgard/cache/62.php on line 470 The code snippet: 8- switch($argv[0]) { case 'view':

[PHP] function mail()

2003-09-30 Thread hiaer
I use mail() function in php, but there's no living mail from my system. MUST be mail() function turn on in some special place (ini file, ...) ?? THANKS. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] function mail()

2003-09-30 Thread Marek Kilimajer
Set SMTP setting in php.ini to the smtp server of your provider (and don't forget to restart web server). [EMAIL PROTECTED] wrote: I use mail() function in php, but there's no living mail from my system. MUST be mail() function turn on in some special place (ini file, ...) ?? THANKS. -- PHP

Re: [PHP] Function in php

2003-09-24 Thread Becoming Digital
September, 2003 01:48 Subject: Re: [PHP] Function in php Hi, Wednesday, September 24, 2003, 3:27:48 PM, you wrote: UST Hello, UST I am using strpos function for finding the string position in a UST particular string . if the searching string is empty it is showing this UST warning error UST

[PHP] Function in php

2003-09-23 Thread Uma Shankari T.
Hello, I am using strpos function for finding the string position in a particular string . if the searching string is empty it is showing this warning error Warning: Empty delimiter in filename text.php on line 33 is there any other way to avoid displaying this warning error..??

Re: [PHP] Function in php

2003-09-23 Thread Tom Rogers
Hi, Wednesday, September 24, 2003, 3:27:48 PM, you wrote: UST Hello, UST I am using strpos function for finding the string position in a UST particular string . if the searching string is empty it is showing this UST warning error UST Warning: Empty delimiter in filename text.php on line

Re: [PHP] consistent PHP function names?

2003-09-22 Thread Eugene Lee
On Sun, Sep 21, 2003 at 09:10:16AM -0700, Raquel Rice wrote: : : On Wed, 17 Sep 2003 21:22:36 +1000 : Justin French [EMAIL PROTECTED] wrote: : : I posted a similar topic a few months back. I guess the answer is : that the collaborative nature of open source, and the fact that : PHP has grown

[PHP] consistent PHP function names?

2003-09-17 Thread Eugene Lee
One thing that's always bothered me about PHP is that the function names are not terribly consistent. For example, when are underscores okay? strip_tags() has an underscore but stripslashes() does not. Also, should inverse functions be named appropriately? htmlentities() and

Re: [PHP] consistent PHP function names?

2003-09-17 Thread Justin French
I posted a similar topic a few months back. I guess the answer is that the collaborative nature of open source, and the fact that PHP has grown from very humble beginnings has meant that naming standards and conventions are a little lacking. It would've been nice if these issues were

RE: [PHP] consistent PHP function names?

2003-09-17 Thread chris . neale
:[EMAIL PROTECTED] Sent: 17 September 2003 10:51 To: [EMAIL PROTECTED] Subject: [PHP] consistent PHP function names? One thing that's always bothered me about PHP is that the function names are not terribly consistent. For example, when are underscores okay? strip_tags() has an underscore

RE: [PHP] consistent PHP function names?

2003-09-17 Thread Marco Schuler
Am Mit, 2003-09-17 um 14.26 schrieb [EMAIL PROTECTED]: In practice, I find that all my code is wrapped up in custom functions and objects anyway - I name those quite carefully to avoid confusing myself and others, but don't need to worry too much about the naming conventions of the functions

Re: [PHP] Function calls and strings

2003-09-14 Thread Curt Zirzow
* Thus wrote Ney André de Mello Zunino ([EMAIL PROTECTED]): I seek to find out whether PHP also has a syntax to allow function calls within a string, so that explicit concatenation is not needed. E.g.: something like: $s = The result is {getResult($foo)}.; as opposed to $s =

[PHP] Function calls and strings

2003-09-11 Thread Ney André de Mello Zunino
Hello. PHP possesses what the manual calls complex syntax for allowing one to include non-trivial expressions in strings, e.g.: $s = The result is {$results[$foo]}.; I seek to find out whether PHP also has a syntax to allow function calls within a string, so that explicit concatenation is

[PHP] function returning array

2003-09-07 Thread Leonie
How do I get a function to return an array? This code doesn't work: function getData() { function builds the array $theArray - tested ok return $theArray; } Any help on the syntax would be appreciated. Cheers Leonie -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] function returning array

2003-09-07 Thread Tom Rogers
Hi, Monday, September 8, 2003, 11:54:10 AM, you wrote: L How do I get a function to return an array? This code doesn't work: L function getData() { L function builds the array $theArray - tested ok L return $theArray; L } L Any help on the syntax would be appreciated. L Cheers L

Re: [PHP] function returning array

2003-09-07 Thread Leonie
Nothing. But it I run: function getData() { etc.. print_r ($theArray); return $theArray; } the data is definitely there. I should add that the function is within a class so it is like this: class excel_com { (all tested - it works well) function getData() { etc..

Re[2]: [PHP] function returning array

2003-09-07 Thread Tom Rogers
Hi, Monday, September 8, 2003, 12:16:47 PM, you wrote: L Nothing. But it I run: L function getData() { L etc.. L print_r ($theArray); L return $theArray; L } L the data is definitely there. L I should add that the function is within a class so it is like this: L class excel_com {

Re: [PHP] function returning array

2003-09-07 Thread Larry E . Ullman
Nothing. But it I run: function getData() { etc.. print_r ($theArray); return $theArray; } the data is definitely there. I think the example in the PHP manual goes something like... function getData () { // blah, blah return array ('value1', 'value2', ...); } Then you would call it

[PHP] Function calling from url

2003-09-06 Thread Robin Kopetzky
Good morning! I would like to call a function from a FORM's ACTION attribute. This is what I'm trying to do: FORM ACTION=www.example.com/PHP_FILENAME/function_name?parameter1=xparameter2=y etc... I can include the PHP_FILENAME but passing parameters to the function I can't figure out how to

Re: [PHP] Function calling from url

2003-09-06 Thread Larry E . Ullman
call a PHP function using a form since a form is on the client and PHP is on the server. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Function calling from url

2003-09-06 Thread John W. Holmes
Robin Kopetzky wrote: I would like to call a function from a FORM's ACTION attribute. This is what I'm trying to do: FORM ACTION=www.example.com/PHP_FILENAME/function_name?parameter1=xparameter2=y etc... I can include the PHP_FILENAME but passing parameters to the function I can't figure out how

Re: [PHP] Function calling from url

2003-09-06 Thread Dan Anderson
I know what you're trying to do you just don't quite know how to say it... I use something like: if ($_GET['somevar'] AND $_GET['something_else']) { do_something($_GET['somevar'], $_GET['something_else']); } else { output_error_message(); } -Dan On Sat, 2003-09-06 at 13:19, Robin Kopetzky

[PHP] Function arguments

2003-08-15 Thread Hardik Doshi
Hi Group, I have a question on overloaded function. What is the best way to pass the arguments so it is easy to maintain in future if function behaviour changes by adding/removing one or more arguments? Currently i am passing arguments in array. But i think it is not the clean way to do it and

Re: [PHP] Function arguments

2003-08-15 Thread [EMAIL PROTECTED]
Hello, If you are worried about this issue your best option is to switch to an object oriented approach. all the best Hardik Doshi wrote: Hi Group, I have a question on overloaded function. What is the best way to pass the arguments so it is easy to maintain in future if function behaviour

Re: [PHP] Function arguments

2003-08-15 Thread Mike Migurski
What is the best way to pass the arguments so it is easy to maintain in future if function behaviour changes by adding/removing one or more arguments? Currently i am passing arguments in array. But i think it is not the clean way to do it and another approach i am using is functionName(arg1,

Re: [PHP] Function arguments

2003-08-15 Thread Jim Lucas
easy to work with functions formated like this. Jim Lucas - Original Message - From: Hardik Doshi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 15, 2003 8:53 AM Subject: [PHP] Function arguments Hi Group, I have a question on overloaded function. What is the best

Re: [PHP] need help with table lock - could this be performed with mysql commands or do I to write my own PHP function

2003-08-14 Thread Curt Zirzow
* Thus wrote anders thoresson ([EMAIL PROTECTED]): set_lock($table_name, $row_id), check_lock($table_name, $row_id) and release_lock($table_name, $row_id). Whenever an editor opens some content for editing, check_lock() will be called to se if table_lock contains a row with the same

Re: [PHP] need help with table lock - could this be performed with mysql commands or do I to write my own PHP function

2003-08-14 Thread anders thoresson
What happens when the user doesn't finish editing or the browser simply crashes on him? Well. Didn't think of that. So how can I avoid that two editors loads the same record for editing at the same time, while still making all records available for regular visitors to read? -- anders thoresson

[PHP] need help with table lock - could this be performed with mysql commands or do I to write my own PHP function

2003-08-10 Thread anders thoresson
Hi, For an application that I'm working on, I wan't users to be able to show content even while an editor/administrator makes changes in one of my database's tables. But if another editor tries to load the same content for editing, he/she shouldn't be able to do this. I've been reading up on

[PHP] function: global, static and...?

2003-07-25 Thread Michael Müller
Hi, I was just thinking about functions, and I believe there were more than two keywords like global and static, which could be used in functions... does anybody know them and their functions? thx for help Michi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] function: global, static and...?

2003-07-25 Thread Curt Zirzow
* Thus wrote Michael Müller ([EMAIL PROTECTED]): Hi, I was just thinking about functions, and I believe there were more than two keywords like global and static, which could be used in functions... does anybody know them and their functions? hm. I dont even know where global and static are

Re: [PHP] function: global, static and...?

2003-07-25 Thread sven
Curt Zirzow wrote: * Thus wrote Michael Müller ([EMAIL PROTECTED]): Hi, I was just thinking about functions, and I believe there were more than two keywords like global and static, which could be used in functions... does anybody know them and their functions? hm. I dont even know where

Re: [PHP] php function on php.net

2003-07-24 Thread Merlin
this is a reply on: I am wondering how on php.net the search for functions is done. You can add any function just behind the php.net like php.net/phpinfo and it will point you right through it. I know how to redirect this as a 404 error in apache to another file, but then the url is

Re: [PHP] php function on php.net

2003-07-24 Thread Ivo Fokkema
Use a path relative to your httpdocs for your error document, e.g. ErrorDocument 404 /myerrorpage.php instead of ErrorDocument 404 http://mysite/myerrorpage.php Unfortunatelly this is not what I mean. I think it is. When you use a relative path in the .htaccess, the URL will not change,

Re: [PHP] php function on php.net

2003-07-24 Thread Curt Zirzow
* Thus wrote Merlin ([EMAIL PROTECTED]): this is a reply on: I am wondering how on php.net the search for functions is done. You can add any function just behind the php.net like php.net/phpinfo and it will point you right through it. I know how to redirect this as a 404 error in

Re: [PHP] php function on php.net

2003-07-24 Thread Curt Zirzow
* Thus wrote Ivo Fokkema ([EMAIL PROTECTED]): Use a path relative to your httpdocs for your error document, e.g. ErrorDocument 404 /myerrorpage.php instead of ErrorDocument 404 http://mysite/myerrorpage.php Unfortunatelly this is not what I mean. I think it is. When you use a

<    1   2   3   4   5   6   7   8   9   >