[PHP] Function Upload? Função Upload ?

2002-07-18 Thread Skyhawk
Alguém sabe o que esse erro significa? Which the mistake in this function? Warning: HTTP request failed! HTTP/1.1 404 Objeto não encontrado in D:\Projetos\Websites\Portal_Origem\adm\incprodutos.php on line 64 Warning: copy(http://doiscliques/origem-novo/web/upload/alias.bmp;) - No error in

[PHP] function for finding one character in a string?

2002-07-17 Thread Scott Fletcher
I have been looking around in the PHP function listing for a function that can find or match one character from a string. I thought it would be something like post_str() or something but never found anything close to that. I get the idea of post and str from the SQL command. I did check

Re: [PHP] function for finding one character in a string?

2002-07-17 Thread Jason Wong
On Wednesday 17 July 2002 05:36, Scott Fletcher wrote: I have been looking around in the PHP function listing for a function that can find or match one character from a string. I thought it would be something like post_str() or something but never found anything close to that. I get

Re: [PHP] function for finding one character in a string?

2002-07-17 Thread Adam Voigt
around in the PHP function listing for a function that can find or match one character from a string. I thought it would be something like post_str() or something but never found anything close to that. I get the idea of post and str from the SQL command. I did check the ereg() but it is so

Re: [PHP] Function source?

2002-07-11 Thread Richard Lynch
No, they are written in C. And yes, you can of course download the C source code from php.net. If you are interested in a particular PHP function, there's even a really nice interface at http://cvs.php.net that lets you look at it without downloading the whole darn thing. VERY nice. You don't

[PHP] Function source?

2002-07-09 Thread Leif K-Brooks
If I understand correctly, all php functions are written in php. If this is true, is it possible to view function source code? Thanks for any insight into this :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Function source?

2002-07-09 Thread Rasmus Lerdorf
No, they are written in C. And yes, you can of course download the C source code from php.net. -Rasmus On Tue, 9 Jul 2002, Leif K-Brooks wrote: If I understand correctly, all php functions are written in php. If this is true, is it possible to view function source code? Thanks for any

Re: [PHP] Function source?

2002-07-09 Thread Pushkar Pradhan
When you compile from the source (which is in c) the functions that are available are actually c executables. If I understand correctly, all php functions are written in php. If this is true, is it possible to view function source code? Thanks for any insight into this :-) -- PHP General

Re: [PHP] Function source?

2002-07-09 Thread Anas Mughal
As Rasmus said, all functions are in C. PHP is open source: The source code is available to the public. --- Leif K-Brooks [EMAIL PROTECTED] wrote: If I understand correctly, all php functions are written in php. If this is true, is it possible to view function source code? Thanks for

[PHP] function for size of array

2002-07-05 Thread Scott Fletcher
Is there PHP function that would get the total array count. ie --snip-- $array[0] = zero; $array[1] = one; $array[2] = two; $array_count = function to get the array count --snip-- And I would get 3 as an answer. Thanks, FletchSOD -- PHP General Mailing List (http://www.php.net

Re: [PHP] function for size of array

2002-07-05 Thread Terence Kearns
cout($array) Scott Fletcher wrote: Is there PHP function that would get the total array count. ie --snip-- $array[0] = zero; $array[1] = one; $array[2] = two; $array_count = function to get the array count --snip-- And I would get 3 as an answer. Thanks, FletchSOD -- PHP

Re: [PHP] function for size of array

2002-07-05 Thread Terence Kearns
count($array); Scott Fletcher wrote: Is there PHP function that would get the total array count. ie --snip-- $array[0] = zero; $array[1] = one; $array[2] = two; $array_count = function to get the array count --snip-- And I would get 3 as an answer. Thanks, FletchSOD -- PHP

Re: [PHP] function for size of array

2002-07-05 Thread Scott Fletcher
Ah! Thanks! By the way, it's count() with a n. :-) Terence Kearns [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... cout($array) Scott Fletcher wrote: Is there PHP function that would get the total array count. ie --snip-- $array[0] = zero;

Re: [PHP] function for size of array

2002-07-05 Thread Terence Kearns
Scott Fletcher wrote: Is there PHP function that would get the total array count. ie --snip-- $array[0] = zero; $array[1] = one; $array[2] = two; $array_count = function to get the array count --snip-- And I would get 3 as an answer. Thanks, FletchSOD count($array); -- PHP

RE: [PHP] function for size of array

2002-07-05 Thread Cal Evans
size_of() (insert obligatory RTFM comment here) =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED]] Sent: Friday, July 05, 2002 9:16 AM To: [EMAIL PROTECTED] Subject: [PHP] function for size of array

Re: [PHP] function for size of array

2002-07-05 Thread Jason Wong
On Friday 05 July 2002 22:20, Scott Fletcher wrote: Ah! Thanks! By the way, it's count() with a n. :-) That was to trick you into RTFM! Hey you were lucky that the 'o' wasn't left out instead :) -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems

Re: [PHP] function for size of array

2002-07-05 Thread Neil Freeman
LOL - nice one Jason :) Jason Wong wrote: ** This Message Was Virus Checked With : SAVI 3.59 May 2002 Last Updated 3rd July 2002 ** On Friday 05

Re: [PHP] function for size of array

2002-07-05 Thread Scott Fletcher
What is RTFM?? Jason Wong [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Friday 05 July 2002 22:20, Scott Fletcher wrote: Ah! Thanks! By the way, it's count() with a n. :-) That was to trick you into RTFM! Hey you were lucky that the 'o' wasn't left

Re: [PHP] function for size of array

2002-07-05 Thread Philip Olson
It's a term with many different meanings. See: http://wombat.doc.ic.ac.uk/foldoc/foldoc.cgi?RTFM On Fri, 5 Jul 2002, Scott Fletcher wrote: What is RTFM?? Jason Wong [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Friday 05 July 2002 22:20, Scott

Re: [PHP] function for size of array

2002-07-05 Thread Kondwani Spike Mkandawire
Neat!... Philip Olson [EMAIL PROTECTED] wrote in message Pine.BSF.4.10.10207051644510.68593-10@localhost">news:Pine.BSF.4.10.10207051644510.68593-10@localhost... It's a term with many different meanings. See: http://wombat.doc.ic.ac.uk/foldoc/foldoc.cgi?RTFM On Fri, 5 Jul 2002,

Re: [PHP] function for size of array

2002-07-05 Thread Larry Rosenman
On Fri, 2002-07-05 at 11:45, Scott Fletcher wrote: What is RTFM?? Read The Fine Manual Jason Wong [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Friday 05 July 2002 22:20, Scott Fletcher wrote: Ah! Thanks! By the way, it's count() with a n. :-)

[PHP] Function imap_headers question.

2002-07-04 Thread Latex Master
Hello php-general, I've got a little question about imap_headers. I working on a project which must connect to local nntp server. I have no problems doing it, but as far as I know from documentation Imap_headers() fetches msg headers in to the arrey. So let's say I've got 5000 post in

[PHP] function echo ' '

2002-06-25 Thread Martin Johansson
Is there a way to express php variables inside an echo ' '. I want something like this to work: echo 'a href=$address'; I know I can write it like this: echo 'a href='; echo $address; echo ''; But Its to hard to read the code like this. /Martin -- PHP General Mailing List

RE: [PHP] function echo ' '

2002-06-25 Thread Matthew Nock
my understanding is that you could write it like this: ? echo 'a href='.$address.''; ? -Original Message- From: Martin Johansson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 25 June 2002 5:25 PM To: [EMAIL PROTECTED] Subject: [PHP] function echo ' ' Is there a way to express php

Re: [PHP] function echo ' '

2002-06-25 Thread René Moonen
Use the escape character to output double quotes echo 'a href=\$address\'; René Martin Johansson wrote: Is there a way to express php variables inside an echo ' '. I want something like this to work: echo 'a href=$address'; I know I can write it like this: echo 'a href='; echo $address;

Re: [PHP] function echo ' '

2002-06-25 Thread PHPCoder
Yes, just use instead of '. Using ' causes the contents to be treated as literal strings, and the $ is therefore not treated as a $. Just do: echo a href=\$address\; Martin Johansson wrote: Is there a way to express php variables inside an echo ' '. I want something like this to work:

Re: [PHP] function echo ' '

2002-06-25 Thread Craig
Can you use a href=? echo $address; ? or is this bad coding? René moonen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Use the escape character to output double quotes echo 'a href=\$address\'; René Martin Johansson wrote: Is there a way to express

RE: [PHP] function echo ' '

2002-06-25 Thread Niklas Lampén
2002 10:43 To: [EMAIL PROTECTED] Subject: Re: [PHP] function echo ' ' Can you use a href=? echo $address; ? or is this bad coding? René moonen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Use the escape character to output double quotes echo 'a href=\

Re: [PHP] function echo ' '

2002-06-25 Thread Martin Johansson
But the problem is that Im doin it inside a while loop. So I need to echo it. /mj Niklas lampén [EMAIL PROTECTED] skrev i meddelandet 025801c21c1d$55d16210$ba93c5c3@Niklas">news:025801c21c1d$55d16210$ba93c5c3@Niklas... Shorter version would be a href=?=$address? And this is not bad coding, it

Re: [PHP] function echo '

2002-06-25 Thread Pradeep Dsouza
Yes you can a href = link.php??php echo module=1; ? Link Here /a Pradeep Can you use a href=? echo $address; ? or is this bad coding? René moonen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Use the escape character to output double quotes echo 'a

RE: [PHP] function echo ' '

2002-06-25 Thread Niklas Lampén
PROTECTED] Subject: Re: [PHP] function echo ' ' But the problem is that Im doin it inside a while loop. So I need to echo it. /mj Niklas lampén [EMAIL PROTECTED] skrev i meddelandet 025801c21c1d$55d16210$ba93c5c3@Niklas">news:025801c21c1d$55d16210$ba93c5c3@Niklas... Shorter version would be

Re: [PHP] function echo ' '

2002-06-25 Thread Martin Johansson
? a href=page?=$i?.htmPage ?=$i?/a ? }; ? Niklas -Original Message- From: Martin Johansson [mailto:[EMAIL PROTECTED]] Sent: 25. kesäkuuta 2002 10:56 To: [EMAIL PROTECTED] Subject: Re: [PHP] function echo ' ' But the problem is that Im doin it inside a while loop. So I need to echo

Re: [PHP] function echo ' '

2002-06-25 Thread Martin Johansson
Thanks all for your replies! For my code, this is the best way to view variables in echo functions ? echo 'a href='.$address.''; ? It is nice and easy to read while going through a lot of code. /mj -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] function definition causing problems?

2002-06-24 Thread Bill Hudspeth
I am using PHP 4.2.1, Windows 2000P, IIS4 connected to an Access 2000 database with an ISAPI module. I have created a very simple form and have written a function to display radio buttons. While a hard-coded, HTML version of the form works perfectly (correctly returning data), the php file brings

RE: [PHP] function definition causing problems?

2002-06-24 Thread Johnson, Kirk
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\inetpub\wwwroot\PHP\cat_proto3.php on line 46 Line 46 corresponds to the form tag, as follows: FORM ACTION=?php echo $_SERVER['PHP_SELF'] ? method=POST When you echo out

Re: [PHP] function definition causing problems?

2002-06-24 Thread Erik Price
On Monday, June 24, 2002, at 12:15 PM, Johnson, Kirk wrote: When you echo out an array element, the name needs to be enclosed in curlies, e.g., echo {$_SERVER['PHP_SELF']} I think that this is only important when using an associative array element reference within certain kinds of

Re: [PHP] function definition causing problems?

2002-06-24 Thread Rasmus Lerdorf
// this won't work b/c of quoting issues echo This script is called $_SERVER[PHP_SELF]; // this should work fine IIRC echo This script is called $_SERVER['PHP_SELF']; Nope, use: echo This script is called $_SERVER[PHP_SELF]; -Rasmus -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] function definition causing problems?

2002-06-24 Thread Ford, Mike [LSS]
-Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: 24 June 2002 18:12 On Monday, June 24, 2002, at 12:15 PM, Johnson, Kirk wrote: When you echo out an array element, the name needs to be enclosed in curlies, e.g., echo {$_SERVER['PHP_SELF']} I think

RE: [PHP] function definition causing problems?

2002-06-24 Thread Johnson, Kirk
I thought this syntax, an unquoted key name, was deprecated ;) From the manual at http://www.php.net/manual/en/language.types.array.php: You should always use quotes around an associative array index. Kirk Nope, use: echo This script is called $_SERVER[PHP_SELF]; -- PHP General Mailing

RE: [PHP] function definition causing problems?

2002-06-24 Thread Rasmus Lerdorf
Not inside a quoted string. On Mon, 24 Jun 2002, Johnson, Kirk wrote: I thought this syntax, an unquoted key name, was deprecated ;) From the manual at http://www.php.net/manual/en/language.types.array.php: You should always use quotes around an associative array index. Kirk Nope,

Re: [PHP] function definition causing problems?

2002-06-24 Thread Erik Price
On Monday, June 24, 2002, at 01:30 PM, Ford, Mike [LSS] wrote: You can use: echo This script is called {$_SERVER['PHP_SELF']}; echo This script is called ${_SERVER['PHP_SELF']}; echo This script is called $_SERVER[PHP_SELF]; or even echo This script is called .

RE: [PHP] PHP function for listing number of columns in table

2002-06-10 Thread Tim Ward
To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] PHP function for listing number of columns in table No. There is, however, a function that'll tell you how many columns are in a result set. So, if you select all columns, then you can use

RE: [PHP] PHP function for listing number of columns in table

2002-06-10 Thread Mark
] Subject: RE: [PHP] PHP function for listing number of columns in table No. There is, however, a function that'll tell you how many columns are in a result set. So, if you select all columns, then you can use that function to find out how many columns are in the table. www.php.net

Re: [PHP] PHP function for listing number of columns in table

2002-06-10 Thread hugh danaher
Holmes [EMAIL PROTECTED] Sent: Monday, June 10, 2002 1:18 AM Subject: RE: [PHP] PHP function for listing number of columns in table yes, I think getting the result set for 'describe $table' or 'show fields from $table' and then doing mysql_num_rows() on that is best because it will return right

RE: [PHP] PHP function for listing number of columns in table

2002-06-09 Thread John Holmes
PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 09, 2002 12:54 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP function for listing number of columns in table Pardon the probably stupid question but, Is there a PHP function for listing number of columns in a mySQL table? Thanks in advance

[PHP] Function needed

2002-06-08 Thread Gaylen Fraley
I am in need of a function/script that will take a directory and search all filenames, recursively down, for a given file. Can anyone point me to a source? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP function for listing number of columns in table

2002-06-08 Thread webmaster
Pardon the probably stupid question but, Is there a PHP function for listing number of columns in a mySQL table? Thanks in advance JJ Harrison [EMAIL PROTECTED] www.tececo.com

Re: [PHP] PHP function for listing number of columns in table

2002-06-08 Thread hugh danaher
try mysql_num_fields() Hugh - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, June 08, 2002 9:54 PM Subject: [PHP] PHP function for listing number of columns in table Pardon the probably stupid question but, Is there a PHP function for listing number

[PHP] [PHP]: Function strtoupper () does not convert the characterñ to Ñ

2002-06-05 Thread ignacio . estrada
I have a capture form using text fields. This form receives data from the user and then through a php module the data will be stored on an Oracle database via ODBC. All the data is converted to caps so I am using the strtoupper() function. However when the user writes characters like ñ the

[PHP] Run php function with user click

2002-05-31 Thread Dave Shacket
I know how to have my php code run a function within itself. But is there a way that upon an event (clicking a button, etc.), you could run a php function without having to go to a new page? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Run php function with user click

2002-05-31 Thread Michael Davey
e a way that upon an event (clicking a button, etc.), you could run a php function without having to go to a new page? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Run php function with user click

2002-05-31 Thread Michael Sweeney
On Friday 31 May 2002 05:44, you wrote: I know how to have my php code run a function within itself. But is there a way that upon an event (clicking a button, etc.), you could run a php function without having to go to a new page? No. PHP is a server side application. The only way to run

Re: [PHP] Run php function with user click

2002-05-31 Thread Miguel Cruz
On Fri, 31 May 2002, Dave Shacket wrote: I know how to have my php code run a function within itself. But is there a way that upon an event (clicking a button, etc.), you could run a php function without having to go to a new page? javascript onclick or whatever can call a PHP program on your

RE: [PHP] Run php function with user click

2002-05-31 Thread Jay Blanchard
[snip] On Friday 31 May 2002 05:44, you wrote: I know how to have my php code run a function within itself. But is there a way that upon an event (clicking a button, etc.), you could run a php function without having to go to a new page? No. PHP is a server side application. The only way

Re: [PHP] Run php function with user click

2002-05-31 Thread Jim lucas
: Re: [PHP] Run php function with user click On Friday 31 May 2002 05:44, you wrote: I know how to have my php code run a function within itself. But is there a way that upon an event (clicking a button, etc.), you could run a php function without having to go to a new page? No. PHP

RE: [PHP] Run php function with user click

2002-05-31 Thread Leotta, Natalie (NCI/IMS)
JavaScript could do a similar thing with onClick. -Natalie -Original Message- From: Jim lucas [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 4:21 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: Dave Shacket Subject: Re: [PHP] Run php function with user click use flash to open

Re: [PHP] Run php function with user click

2002-05-31 Thread Jim lucas
, May 31, 2002 1:25 PM Subject: RE: [PHP] Run php function with user click JavaScript could do a similar thing with onClick. -Natalie -Original Message- From: Jim lucas [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 4:21 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: Dave

RE: [PHP] Run php function with user click

2002-05-31 Thread Leotta, Natalie (NCI/IMS)
If Michael Sweeney is right that you can run PHP in a JS method that would work. I just do all of my instant gratification stuff in JS. I guess it depends on what is in the PHP function that he wants to run - it's possible that he could do it in JS. -Nat -Original Message- From: Jim

[PHP] function return

2002-05-28 Thread W. Enserink
Hi all, I have a Q about functions. My function should return 2 values. What syntax should I use and how do I call these values outside the function? Are these values returned as en array or something? this is what I have now, - function myFunction($some_vars) {

Re: [PHP] function return

2002-05-28 Thread RIVES Sergio
Hi, I don't know if there is an easier way to do this but why don't you concatenate the two values to be returned and then split the returned value ? ex : function myFunction($some_vars) { $max=count($some_vars); $some_value=($max/2); $result = $some_value.;.$max; return $result; } $resultado

RE: [PHP] function return

2002-05-28 Thread David Freeman
I have a Q about functions. My function should return 2 values. What syntax should I use and how do I call these values outside the function? Are these values returned as en array or something? I don't know if there is an easier way to do this but why don't you concatenate the

RE: [PHP] function return

2002-05-28 Thread Rudolf Visagie
- From: W. Enserink [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 10:02 AM To: [EMAIL PROTECTED] Subject: [PHP] function return Hi all, I have a Q about functions. My function should return 2 values. What syntax should I use and how do I call these values outside the function

Re: [PHP] function return

2002-05-28 Thread 1LT John W. Holmes
- From: W. Enserink [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 28, 2002 4:01 AM Subject: [PHP] function return Hi all, I have a Q about functions. My function should return 2 values. What syntax should I use and how do I call these values outside the function

Re: [PHP] function return

2002-05-28 Thread Miguel Cruz
On Tue, 28 May 2002, W. Enserink wrote: I have a Q about functions. My function should return 2 values. What syntax should I use and how do I call these values outside the function? Are these values returned as en array or something? this is what I have now, -

[PHP] Function Switch($pid) - NEED HELP

2002-05-25 Thread Vincent Kruger
I have a script that switches. switch($pid) { case 1: break; case 2: break; } Now I'm doing a check in case 1 and if everything goes well, i want to switch directly to case 2 while the script is runny. How would i do that ??? -- PHP General Mailing List

RE: [PHP] Function Switch($pid) - NEED HELP

2002-05-25 Thread Jonathan Rosenberg
-Original Message- From: Vincent Kruger [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 25, 2002 8:41 AM To: [EMAIL PROTECTED] Subject: [PHP] Function Switch($pid) - NEED HELP I have a script that switches. switch($pid) { case 1: break; case 2: break; } Now

Re: [PHP] Function Switch($pid) - NEED HELP

2002-05-25 Thread Rasmus Lerdorf
Just don't do the break in case 1 if you want to fall through to case 2. On Sat, 25 May 2002, Vincent Kruger wrote: I have a script that switches. switch($pid) { case 1: break; case 2: break; } Now I'm doing a check in case 1 and if everything goes well, i want to

RE: [PHP] Function Switch($pid) - NEED HELP

2002-05-25 Thread David Freeman
I have a script that switches. switch($pid) { case 1: break; case 2: break; } Now I'm doing a check in case 1 and if everything goes well, i want to switch directly to case 2 while the script is runny. How would i do that ??? In the specific case

[PHP] Function

2002-05-21 Thread Rodrigo
Hi guys I’m trying to use a function on na .inc file, how should I do? How should I write the function and what should I write on the file so that the function file is “Included” to be used on a function call on the php file? I appreciate any kind of sample code. Thanx, Rodrigo de Oliveira

RE: [PHP] Function

2002-05-21 Thread Peter
write the function as normal in na.inc and then on the page that u want to use that function type include(path_to_na.inc); -Original Message- From: Rodrigo [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 22 May 2002 1:48 PM To: 'Php Lista' Subject: [PHP] Function Hi guys I’m trying to use

Re: [PHP] Function

2002-05-21 Thread Sqlcoders.com Programming Dept
in. If file.php contained: function echoThis($this_text){ echo($this_text); } then you could type ?php include 'file.php'; echoThis(I am some text); ? and whatever echoThis() is coded to do will happen just as if the file looked like this: ?php function echoThis($this_text){ echo($this_text

Re: [PHP] Function

2002-05-21 Thread Kevin Waterson
file? in the file you want to include, lets call it inc.php, put.. ?php function blah(){ echo 'blah'; ? then in your main file put ?php // include the file include(inc.php); // now we can call the function normally just as if it was written // where the include statement is blah(); ? ciao

Re: [PHP] Function

2002-05-21 Thread Miguel Cruz
On Wed, 22 May 2002, Sqlcoders.com Programming Dept wrote: When you include information from an include file, PHP treats the text as inline code if you use the include() function. In other words, if you use code like this: ?php include 'file.php'; ? Then any functions inside file.php

[PHP] function over loading?

2002-05-06 Thread Kris Vose
Can you practice function over-loading in php? Kris

[PHP] function over loading?

2002-05-06 Thread Kris Vose
Can you practice function over-loading in php? Kris

RE: [PHP] function over loading?

2002-05-06 Thread Insomniac Admin
PROTECTED]] Sent: 06 May 2002 19:10 To: [EMAIL PROTECTED] Subject: [PHP] function over loading? Can you practice function over-loading in php? Kris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] function sql question

2002-05-05 Thread John Fishworld
I've got a small function which checks city name with post codes And because this needs to be checked in several scripts I want to have it in my common functions file and include it ! require (common_funtions.inc); and then use it if (!check_city_from_plz($t_zipcode)){ echo TRTD

RE: [PHP] function sql question

2002-05-05 Thread John Holmes
return 1; return $city_id; return $cityname; You can't return 3 values...try returning an array, instead. $ret[0] = $city_id; $ret[1] = $cityname; return $ret; or... $ret[City_ID] = $city_id; $ret[CityName] = $cityname; return $ret; ---John Holmes... -- PHP General Mailing

Re: [PHP] function sql question

2002-05-05 Thread John Fishworld
duh ! yeah that makes sense ! but it doesn't work ! I've no idea why but it refuses to give any information back ! I've managed to get round this by now no loger declaring it a function but just actually requiring it where i need it require (get_city_1.inc); print_r(array_values ($city)); I've

RE: [PHP] function sql question

2002-05-05 Thread John Holmes
It will work; you're just doing something wrong. Do you want to fix it, or keep doing it this way? ---John Holmes... -Original Message- From: John Fishworld [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 05, 2002 10:55 AM To: [EMAIL PROTECTED]; 'PHP-General' Subject: Re: [PHP

Re: [PHP] function sql question

2002-05-05 Thread Richard Archer
At 6:34 PM +0200 5/5/02, John Fishworld wrote: John, Your mysql_db_query should contain either DBWEB (with quotes) or $DBWEB (a var). Just DBWEB is an error. Also, from the manual re: mysql_db_query Note: This function has been deprecated since PHP 4.0.6. Do not use this function. Use

[PHP] Function library

2002-05-03 Thread Mrdini
Hi folks, I have a function library, which I'd like to alter for my purposes, to allow PNG images to be stored. The only problem is I can't make head nor tails of the code. It does not seem to call any GD functions, even though it says it's supposed to. Could anyone explain basically what

[PHP] function not returning value

2002-04-30 Thread Mark Pelillo
Why would the following function not return a value: (both $lastname and $firstname are defined) function get_handle($lastname, $firstname) { $handle_guess=$lastname; $handle=array(); $fp=fopen('../truelies/userdb', r); while ($d=fgetcsv($fp, 250, ;)) { $handle[] = $d[0];

Re: [PHP] function not returning value

2002-04-30 Thread Evan Nemerson
http://www.php.net/manual/en/language.variables.scope.php On Tuesday 30 April 2002 19:09 pm, you wrote: Why would the following function not return a value: (both $lastname and $firstname are defined) function get_handle($lastname, $firstname) { $handle_guess=$lastname;

[PHP] function returning true or errors

2002-04-18 Thread Erik Price
I am writing a function that performs some actions. I would like to return true if the actions succeed, or return an error message if the actions fail. How should I go about it? The following code doesn't do it, because the returned error message is interpreted as a boolean true (I think

Re: [PHP] function returning true or errors

2002-04-18 Thread Jason Wong
On Thursday 18 April 2002 23:25, Erik Price wrote: I am writing a function that performs some actions. I would like to return true if the actions succeed, or return an error message if the actions fail. How should I go about it? The following code doesn't do it, because the returned error

RE: [PHP] function returning true or errors

2002-04-18 Thread SHEETS,JASON (Non-HP-Boise,ex1)
a function. -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 18, 2002 9:25 AM To: [EMAIL PROTECTED] Subject: [PHP] function returning true or errors I am writing a function that performs some actions. I would like to return true if the actions

Re: [PHP] function returning true or errors

2002-04-18 Thread Erik Price
On Thursday, April 18, 2002, at 11:56 AM, Jason Wong wrote: What I tend to do is define functions like so: function doo($dah, $dib, $error) { ... I had not even thought about passing an extra parameter by reference -- great idea. Erik Erik Price Web Developer Temp Media

[PHP] Function stored in a database

2002-04-09 Thread Anzak Wolf
I have a question about storing functions. I have some security mode stuff I'm working on and what I'm thinking is that as part of the security mode table I would store a function that could be called if the security mode is called. Something like this. Select s.function from s Security g

Re: [PHP] Function stored in a database

2002-04-09 Thread Miguel Cruz
On Tue, 9 Apr 2002, Anzak Wolf wrote: I have a question about storing functions. I have some security mode stuff I'm working on and what I'm thinking is that as part of the security mode table I would store a function that could be called if the security mode is called. Something like

Re: [PHP] Function stored in a database

2002-04-09 Thread Robert Cummings
Anzak Wolf wrote: I have a question about storing functions. I have some security mode stuff I'm working on and what I'm thinking is that as part of the security mode table I would store a function that could be called if the security mode is called. Something like this. Select

[PHP] Function that escapes special caracters from regular expressions

2002-04-07 Thread Leif K-Brooks
Is there one? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Function that escapes special caracters from regular expressions

2002-04-07 Thread Matt Friedman
: Sunday April 7, 2002 7:16 PM To: [EMAIL PROTECTED] Subject: [PHP] Function that escapes special caracters from regular expressions Is there one? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net

[PHP] function calls...Incorrect output...What am I doing wrong?

2002-03-29 Thread Eric Starr
I am learning PHP and I am having some trouble. I am working on a hit counter application. I am using PHP 4 even though the file extension might lead you to believe I am using PHP 3. This code is on a page called homePage.php3. Here is the instantiation of my Counter: ?php

Re: [PHP] How to get user full name using PHP function?

2002-03-27 Thread gaukia 345
user full name using PHP function? Date: Wed, 27 Mar 2002 01:31:41 -0600 (CST) On Wed, 27 Mar 2002, gaukia 345 wrote: I'm writing a web mail. Having problem grabbing user full name to be included in the email. So I hv a few questions: 1) How do I fetch the user's full name using a PHP

[PHP] How to get user full name using PHP function?

2002-03-26 Thread gaukia 345
Hi all, I'm writing a web mail. Having problem grabbing user full name to be included in the email. So I hv a few questions: 1) How do I fetch the user's full name using a PHP function WITHOUT calling system program finger? I already have the Linux user ID and password since I am using HTTP

Re: [PHP] How to get user full name using PHP function?

2002-03-26 Thread Jason Wong
On Wednesday 27 March 2002 14:44, gaukia 345 wrote: Hi all, I'm writing a web mail. Having problem grabbing user full name to be included in the email. So I hv a few questions: 1) How do I fetch the user's full name using a PHP function WITHOUT calling system program finger? I already have

Re: [PHP] How to get user full name using PHP function?

2002-03-26 Thread Miguel Cruz
On Wed, 27 Mar 2002, gaukia 345 wrote: I'm writing a web mail. Having problem grabbing user full name to be included in the email. So I hv a few questions: 1) How do I fetch the user's full name using a PHP function WITHOUT calling system program finger? I already have the Linux user ID

[PHP] Function Not Accepting Variable Values From a Form

2002-03-21 Thread Dr. Shim
Alas, more problems with forms =) Well now, here is my problem. I have a form, method is set to post, and action is set to the same page. I also have a hidden field named form_post and it's value is 1. Underneath this form is my PHP script. ?php if (isset($form_post)) { echo Function

[PHP] function that extracts numbers from a string

2002-02-22 Thread DigitalKoala
Hi folks, Is there a function that extracts numbers from a string? I can do this with ereg but it's quite slow when you have a long list of variables to get through... thanks! dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    2   3   4   5   6   7   8   9   >