[PHP] Functions

2002-02-13 Thread Jason Whitaker

Is there a website that lists all the default functions and variables?

EI: $REMOTE_ADDR AND $PHP_SELF

--

Jason Whitaker



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] functions

2002-04-12 Thread Alia Mikati

hi
i would like now how can we call a function within another function in 
php?
thx a lot



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] functions...

2002-01-08 Thread Chris Hall

function lala() {

do i HAVE to define a variable or argument 

function lala($var) {

or can i use it like:

lala($stmt);

will $stmt become part of the function?


--
Chris Hall
hardwired industries



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Functions

2001-01-10 Thread Augusto Cesar Castoldi

How do I use a function?

I did:

function ShowMessage {
  echo "Show message...\n";
}

How can I call the function now?

thanks,

Augusto Cesar Castoldi


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Functions

2001-01-17 Thread Karl J. Stubsjoen

Okay,
There aren't Sub Routines, just Functions?  I've been to the manual
recommended by Augusto *thank you*, that is helping!
I created a function called Foo with a single argument (and I set it up as
optional, that is way cool, I can't do that in ASP) ... and my question is:

I can call foo like this

echo foo(dog);// outputs "This is a dog"
or like this
echo foo('dog');// outputs "This is a dog"
or like this
echo foo("dog");// outputs "This is a dog"

Does it matter which way I pass my arguments to foo?  All arguments were
passed as a string variable.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] functions????

2001-01-27 Thread Kumanan

Hi,

i got problem with functions 


when i call the files with url//filename.php?action=pal

all the time it says
Fatal error: Call to unsupported or undefined function pal_edit() in
/cfiles/memberlink.php on line 7



code





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] functions?

2001-07-06 Thread [EMAIL PROTECTED]

Okay there is a file called global.inc

$row[0]";  }

}



?>

But when I call it like this:



It only shows the first result from the db... How do I get it to list them
all?


Susan


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Functions.

2001-04-24 Thread Anders Clerwall

Hi,
Is there a tutorial of some sort on how I add function sets to PHP4?
I've searched the net for more info about this other than what the PHP4.x
manual says, and I saw some reference to freshmeat, but I couldn't find
that.
Any help appreciated, thanks!
--
 /\ ASCII ribbon | Anders Clerwall * Product Development  Teligent Nordic AB
 \/   campaign   | P.O. Box 213, S-149 23 Nynäshamn, Sweden  *  http://pc131
 /\   against| [EMAIL PROTECTED] * Mobile: +46 (0)70 749 56 57
/  \ HTML email. | "What's with the  'Intel  Inside'  warning label anyway?"





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Functions

2002-02-13 Thread Daniel Kushner

http://www.php.net/manual/en/language.variables.predefined.php
http://www.php.net/manual/en/funcref.php

> -Original Message-
> From: Jason Whitaker [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 13, 2002 4:15 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Functions
> 
> 
> Is there a website that lists all the default functions and variables?
> 
> EI: $REMOTE_ADDR AND $PHP_SELF
> 
> --
> 
> Jason Whitaker
> 
> 
> 
> -- 
> 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/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Functions

2002-02-13 Thread Narvaez, Teresa

Try the phpinfo() function: 

Example: 
PHP Test




-Teresa
 
-Original Message-
From: Jason Whitaker [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 4:15 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Functions


Is there a website that lists all the default functions and variables?

EI: $REMOTE_ADDR AND $PHP_SELF

--

Jason Whitaker



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] functions

2002-04-12 Thread Caspar Kennerdale

function firstfunction(){

code;
code;
code;

secondfunction();

}

-Original Message-
From: Alia Mikati [mailto:[EMAIL PROTECTED]]
Sent: 12 April 2002 06:38
To: [EMAIL PROTECTED]
Subject: [PHP] functions


hi
i would like now how can we call a function within another function in 
php?
thx a lot



-- 
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/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] functions

2002-04-12 Thread Jon Haworth

Hi Alia,

> i would like now how can we call a function within another function in 
> php?

The same way you'd call it from outside a function :-)

";
world();

?>

...should output

hello
hello world

Cheers
Jon

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] functions

2002-04-12 Thread Andrey Hristov



HTH

Regards,
Andrey Hristov

- Original Message - 
From: "Alia Mikati" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 12, 2002 4:37 PM
Subject: [PHP] functions


> hi
> i would like now how can we call a function within another function in 
> php?
> thx a lot
> 
> 
> 
> -- 
> 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/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Functions list

2002-07-09 Thread César Aracena

Hi all.
 
I have the PHP manual in my PDA but its extraordinary large to search
for a function. Does anybody know a Functions list that I can download
for my PDA? I’m looking for something which shows the function and a
short description of what it works for.
 
function_name() = function_does_this
 
Thanks,
 
  Cesar Aracena
CE / MCSE+I
Neuquen, Argentina
+54.299.6356688
+54.299.4466621
 



RE: [PHP] functions...

2002-01-08 Thread Martin Towell

it's possible to pass a variable number of parameters to a function

  $num = func_num_args();
  for ($i = 1; $i < $num; $i++)
  {
$arg = func_get_arg($i);
  }

try looking at these...

-Original Message-
From: Chris Hall [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 1:48 PM
To: [EMAIL PROTECTED]
Subject: [PHP] functions...


function lala() {

do i HAVE to define a variable or argument 

function lala($var) {

or can i use it like:

lala($stmt);

will $stmt become part of the function?


--
Chris Hall
hardwired industries



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



RE: [PHP] functions...

2002-01-09 Thread Robert V. Zwink

More about this here:
http://www.php.net/manual/en/function.func-get-arg.php

Robert Zwink
http://www.zwink.net/daid.php

-Original Message-
From: Chris Hall [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 08, 2002 9:48 PM
To: [EMAIL PROTECTED]
Subject: [PHP] functions...


function lala() {

do i HAVE to define a variable or argument 

function lala($var) {

or can i use it like:

lala($stmt);

will $stmt become part of the function?


--
Chris Hall
hardwired industries



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP functions

2001-02-18 Thread Boaz Yahav

Hi

I guess I was sleeping when this had happened but I still have to ask :

1. When were all of the php functions that hade a "_" in them renamed to
have a "-" instead?
For example "aspell-suggest" instead of "aspell_suggest".

2. When were these functions removed :


ada-commit,ada-connect,ada-exec,ada-fieldname,ada-fieldnum,ada-fieldtype,ada
-freeresult,ada-numfields

ada-numrows,ada-result,ada-resultall,ada-rollback,ada-afetch,ada-autocommit,
ada-close,ada-fetchrow

is-writeable,dir,set-socket-blocking,hw-Changeobject,hw-DocumentAttributes,h
w-DocumentBodyTag
hw-DocumentSize,hw-OutputDocument,hw-Username,ifx-free-slob




Sincerely

  berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Functions

2001-01-10 Thread Emil Rasmussen

Hi

not the () after the function name

> 
> function ShowMessage() {
>   echo "Show message...\n";
> }
> 
> How can I call the function now?
> 


echo ShowMessage();


:: Emil

---
Emil Rasmussen
http://www.noget.net

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Functions

2001-01-10 Thread Emil Rasmussen


That should bee notice and not "not"! Ups :-)

> 
> Hi
> 
> not the () after the function name
> 
> > 
> > function ShowMessage() {
> >   echo "Show message...\n";
> > }
> > 
> > How can I call the function now?
> > 
> 
> 
> echo ShowMessage();
> 
> 
> :: Emil
> 
> ---
> Emil Rasmussen
> http://www.noget.net
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Functions

2001-01-10 Thread Chris Lee

\n";
 }

 function returnfunction()
 {
  return "showfunction\n";
 }

 showfunction();

 echo returnfunction();
?>

Chris Lee
Mediawaveonline.com
"Augusto Cesar Castoldi" <[EMAIL PROTECTED]> wrote in message
Pine.GSO.4.10.10101101404540.1072-10@juno">news:Pine.GSO.4.10.10101101404540.1072-10@juno...
> How do I use a function?
>
> I did:
>
> function ShowMessage {
>   echo "Show message...\n";
> }
>
> How can I call the function now?
>
> thanks,
>
> Augusto Cesar Castoldi
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Functions

2001-01-10 Thread Marcelo Gulin

Hi!

  ShowMessage();

regards
Marcelo Gulin

Augusto Cesar Castoldi escribió:
> 
> How do I use a function?
> 
> I did:
> 
> function ShowMessage {
>   echo "Show message...\n";
> }
> 
> How can I call the function now?
> 
> thanks,
> 
> Augusto Cesar Castoldi
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Functions

2001-01-17 Thread Toby Butzon

> echo foo(dog);// outputs "This is a dog"

This is an example of using a "bareword" - PHP doesn't recognize _dog_ as
any sort of reserved word or constant, so it sends it like a quoted string.
I don't recommend using this because it's ambiguous whether you mean "dog"
or if _dog_ is a constant or whatever else is possible.

> echo foo('dog');// outputs "This is a dog"

Single-quoted string: this is good for strings that don't need to be
"interpretted" by the parser; it's the ideal way to pass the string 'dog'
to foo() in this case.

> echo foo("dog");// outputs "This is a dog"

Double-quoted string: this WILL be interpretted by the parser; for example,
if you had to pass the whole string "This is a dog" to the function, but
"dog" could actually be any word contained in $thing, then you'd do
something like this:

echo foo("This is a $thing");

Et cetera...

>
> Does it matter which way I pass my arguments to foo?  All arguments were
> passed as a string variable.

There are some very slight performance changes between these, but mostly
it's a matter of style.

--Toby


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] functions????

2001-01-27 Thread Nick Winfield

On Sun, 28 Jan 2001, Kumanan wrote:

> Hi,
> 
> i got problem with functions 
> 
> 
> when i call the files with url//filename.php?action=pal
> 
> all the time it says
> Fatal error: Call to unsupported or undefined function pal_edit() in
> /cfiles/memberlink.php on line 7
> 

Declare your functions before the switch() statement - your switch
statement is being executed before your functions even get a chance to be
defined. :)

e.g.

function sayBlah() {
  echo "Blah!";
}

switch($task) {
  case do_stuff:
sayBlah();
break;
  case other_stuff:
# whatever
break;
  default:
# whatever
break;
}

Cheers,

Nicky W..
-[ [EMAIL PROTECTED] ]-


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] functions????

2001-01-27 Thread Joe Sheble (Wizaerd)

your function declarations must appear before you actually call them.

> code
> ...
>  function pf() { echo "profile"; }
> 
> function pal_edit() { echo "pal";  }

> switch ($action) {
> case "pf":
> profile();
> break;
> 
> case "pal":
>pal_edit();
> break;
> 
> }
> 
> 
> 
> ?>

Joseph E. Sheble
a.k.a. Wizaerd
Wizaerd's Realm
Canvas, 3D, Graphics, 
ColdFusion, PHP, and mySQL
http://www.wizaerd.com
=

> -Original Message-
> From: Kumanan [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, January 27, 2001 4:29 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] functions
> 
> 
> Hi,
> 
> i got problem with functions 
> 
> 
> when i call the files with url//filename.php?action=pal
> 
> all the time it says
> Fatal error: Call to unsupported or undefined function pal_edit() in
> /cfiles/memberlink.php on line 7
> 
> 
> 
> code
> ...
>  switch ($action) {
> case "pf":
> profile();
> break;
> 
> case "pal":
>pal_edit();
> break;
> 
> }
> 
> 
> function pf() { echo "profile"; }
> 
> function pal_edit() { echo "pal";  }
> 
> ?>
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] functions????

2001-01-27 Thread Kumanan

o

thanks

kumanan
"Nick Winfield" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On Sun, 28 Jan 2001, Kumanan wrote:
>
> > Hi,
> >
> > i got problem with functions 
> >
> >
> > when i call the files with url//filename.php?action=pal
> >
> > all the time it says
> > Fatal error: Call to unsupported or undefined function pal_edit() in
> > /cfiles/memberlink.php on line 7
> >
>
> Declare your functions before the switch() statement - your switch
> statement is being executed before your functions even get a chance to be
> defined. :)
>
> e.g.
>
> function sayBlah() {
>   echo "Blah!";
> }
>
> switch($task) {
>   case do_stuff:
> sayBlah();
> break;
>   case other_stuff:
> # whatever
> break;
>   default:
> # whatever
> break;
> }
>
> Cheers,
>
> Nicky W..
> -[ [EMAIL PROTECTED] ]-
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] functions????

2001-01-27 Thread Markus Fischer


Have you tried defining those function before actually
using them ? Btw, case "pf" and function 'profile()' does not
really match you definition with function 'pf()' ??

m.

-- 
Markus Fischer,  http://josefine.ben.tuwien.ac.at/~mfischer/
EMail: [EMAIL PROTECTED]
PGP Public  Key: http://josefine.ben.tuwien.ac.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] functions?

2001-07-06 Thread rick

instead of returning that line, put it into some variable... like:

while ($row = mysql_fetch_row ($result)) {
  $map_list .= "$row[0]";  }
}
return $map_list;

- Original Message -
From: <[EMAIL PROTECTED]>
To: "'Php-General (E-Mail)" <[EMAIL PROTECTED]>
Sent: Friday, July 06, 1979 8:27 AM
Subject: [PHP] functions?


> Okay there is a file called global.inc
>
> 
> // display a list from the DB
>
> function list_of_maps () {
>
> db_connect ();
> $sql = "SELECT mapname,rowid FROM maps";
> $result = mysql_query($sql);
>
> while ($row = mysql_fetch_row ($result)) {
> return "$row[0]";  }
>
> }
>
>
>
> ?>
>
> But when I call it like this:
>
> 
> include('global.inc');
> echo list_of_maps ();
>
> ?>
>
> It only shows the first result from the db... How do I get it to list them
> all?
>
>
> Susan
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] functions?

2001-07-06 Thread [EMAIL PROTECTED]

on 7/6/01 11:36 AM, rick at [EMAIL PROTECTED] wrote:

> while ($row = mysql_fetch_row ($result)) {
> $map_list .= "$row[0]";  }
> }
> return $map_list;


Thanks Rick! This worked great.

I guess I'm right in assuming that all you can get back from a function is
one big string return. I've tried passing varibles to function and gave up
on it.


global.inc






mainfile.php3




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Functions.

2001-04-24 Thread Matt McClanahan

On Tue, Apr 24, 2001 at 03:06:40PM +0200, Anders Clerwall wrote:

> Hi,
> Is there a tutorial of some sort on how I add function sets to PHP4?
> I've searched the net for more info about this other than what the PHP4.x
> manual says, and I saw some reference to freshmeat, but I couldn't find
> that.
> Any help appreciated, thanks!

If you mean writing functions in PHP, that would be in the manual:

http://www.php.net/manual/en/functions.php

If you mean writing built-in functions (at the same level of
mysql_connect, array_reverse, etc) then you want

http://www.zend.com/zend/api.php

Or the README.SELF-CONTAINED-EXTENSIONS which is included in the PHP
source.

Matt

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] New php functions?

2002-03-27 Thread charlesk

I went to php.net wnating info on the date() function.  To my surprise the word date 
was already in the "search for" field.  

Has PHP developed some new functions?

Possible code



If not are these ever planned as I have use for them.  

Thanks
Charles Killmer

PS In case you are wondering yes this is supposed to be humorous.  ;-)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] functions and scoping

2002-05-22 Thread David Huyck

I am trying to define a function that is *like* the standard PHP "include()"
function but is slightly different, but I am running into trouble with
varible scoping.  The idea is this:

I want to mimic "include()" in a way such that when I include a file, it can
then include files relative to itself, instead of relative to the root file
in the chain of includes.  For example, if I do something like this:

// we are here: /root/file.php
include("subDir/anotherFile.php");

// we are here: /root/subDir/anotherFile.php
include("diffSubDir/diffFile.php");

I get a warning saying that "diffSubDir" is not a valid directory, because
it is actually looking for "/root/diffSubDir/diffFile.php" when I mean to
include "/root/subDir/diffSubDir/diffFile.php".

The first thing I did was this:
$myPath = getcwd()."/";
chdir($myPath."subDir/");
include("anotherFile.php");
chdir($myPath);

That's fine, but it's kind of kludgey, because I need to be really careful
not to do crush my $rootPath variable if I need to do it again inside my
include...  So the next step was to protect the variable by making it local
to a function.  Here is what I got:

function myInclude($fileName)
{
 //you are here
 $rootPath = getcwd()."/";

 //find where we need to go
 $aryFilePath = split("/", $fileName);
 $fileToInclude = array_pop($aryFilePath);
 $includePath = join("/", $aryFilePath) . "/";

 //do the include
 chdir($rootPath.$includePath);
 include($fileToInclude);
 chdir($rootPath);
}

So that's great!  It does almost everything I want it to do, EXCEPT: the
variable scope within the includes is screwy.  The file included in this
manner is local to the function, so it does not have inherent access to the
variables set before/after the call to myInclude().  That makes sense
conceptually, but it doesn't solve my problem.  Declaring variables as
"global" doesn't really fix it because a) I want to keep this generic, so I
won't always know what variables to call as global, and b) if I call this
function from within an object, I want to keep my variables local to the
class, but not to the function call within the class.  If I am in the class,
for example, and I declare a var as global, I just lost my encapsulation.
Yuck.

What I really want is for this function to work just like the native PHP
"include()" function, where it does its thing without making its own scope.
Is there any way to do such a thing?  I tried declaring and calling the
function as &myInclude(), but that didn't do it either.

Am I out-of-luck, or is there some cool trick I haven't learned yet?

Thanks,
David Huyck



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] synchronizing php functions

2002-07-02 Thread Philip MacIver

Does anyone know anyway to synchronize calls to php functions.
I was thinking of writting a hack that uses a lock file on the server put if there is 
a proper way to do it then I would
rather use that.
Any suggestions would be good.


|---|
   Philip MacIver
|---|  
|  
  

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Functions list

2002-07-09 Thread David Otton

On Tue, 9 Jul 2002 15:05:21 -0300, you wrote:

>I have the PHP manual in my PDA but its extraordinary large to search
>for a function. Does anybody know a Functions list that I can download
>for my PDA? I’m looking for something which shows the function and a
>short description of what it works for.

There's a PHP Pocket Reference in this office... (O'Reilly, ISBN
1565927699). You might find that does the job better than a PDA.

The text is also online:
http://safari.oreilly.com/main.asp?bookname=phppr&cnode=1


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Functions to big

2001-11-09 Thread De Necker Henri

Hi there !

I just want to know what is the max size that a function can be before it
becomes out of range for the function that follows?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Functions to big

2001-11-09 Thread De Necker Henri


> Hi there !
> 
> I just want to know what is the max size that a function can be before it
> becomes out of range for the function that follows?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PHP functions

2001-02-18 Thread Boaz Yahav

Or maybe this is just the file name on the php.net site that
got me confused?

The listing is for _ but the file name is with an -



-Original Message-
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 18, 2001 7:31 PM
To: PHP General (E-mail)
Subject: [PHP] PHP functions


Hi

I guess I was sleeping when this had happened but I still have to ask :

1. When were all of the php functions that hade a "_" in them renamed to
have a "-" instead?
For example "aspell-suggest" instead of "aspell_suggest".

2. When were these functions removed :


ada-commit,ada-connect,ada-exec,ada-fieldname,ada-fieldnum,ada-fieldtype,ada
-freeresult,ada-numfields

ada-numrows,ada-result,ada-resultall,ada-rollback,ada-afetch,ada-autocommit,
ada-close,ada-fetchrow

is-writeable,dir,set-socket-blocking,hw-Changeobject,hw-DocumentAttributes,h
w-DocumentBodyTag
hw-DocumentSize,hw-OutputDocument,hw-Username,ifx-free-slob




Sincerely

  berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.
 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP functions

2001-02-18 Thread Egon Schmid (@vacation)

Boaz Yahav wrote:
> 
> Or maybe this is just the file name on the php.net site that
> got me confused?

The reason is, that the filenames are derived from refentry id's and
ther an underscore isn't allowed.
 
> The listing is for _ but the file name is with an -

Correct.

-Egon
 
> -Original Message-
> From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, February 18, 2001 7:31 PM
> To: PHP General (E-mail)
> Subject: [PHP] PHP functions
> 
> Hi
> 
> I guess I was sleeping when this had happened but I still have to ask :
> 
> 1. When were all of the php functions that hade a "_" in them renamed to
> have a "-" instead?
> For example "aspell-suggest" instead of "aspell_suggest".
> 
> 2. When were these functions removed :
> 
> 
> ada-commit,ada-connect,ada-exec,ada-fieldname,ada-fieldnum,ada-fieldtype,ada
> -freeresult,ada-numfields
> 
> ada-numrows,ada-result,ada-resultall,ada-rollback,ada-afetch,ada-autocommit,
> ada-close,ada-fetchrow
> 
> is-writeable,dir,set-socket-blocking,hw-Changeobject,hw-DocumentAttributes,h
> w-DocumentBodyTag
> hw-DocumentSize,hw-OutputDocument,hw-Username,ifx-free-slob
> 
> Sincerely
> 
>   berber
> 
> Visit http://www.weberdev.com Today!!!
> To see where PHP might take you tomorrow.
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
SIX Offene Systeme GmbH   ·Stuttgart  -  Berlin 
Sielminger Straße 63   ·D-70771 Leinfelden-Echterdingen
Fon +49 711 9909164 · Fax +49 711 9909199 http://www.six.de
Besuchen Sie uns auf der CeBIT 2001,  Halle 6,  Stand F62/4

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] functions and quotes

2001-08-22 Thread Kurth Bemis

i'm working on a site that is going to require some fancy image switching 
based on URL called...thats part isn't a problem...the problem comes in the 
way that i'm passing the HTML from the function.

My main concern here is speed with the second being workload on the server.

right now the function looks like this.

function tab($section){

$hmenav = "";

$comnav = "";

$curnav = "";

$llsnav = "";

$navspc = "";

if ($section == "root"){
$hmenav = "";
}elseif ($section == "company"){
$comnav = "";
}
print "$navspc$hmenav$comnav$curnav$llsnav";
}

section is passed to the function and the function returns the correct 
tab.  IS there a better and faster way?

~kurth


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] New php functions?

2002-03-27 Thread Jason Murray

> I went to php.net wnating info on the date() function.  To my 
> surprise the word date was already in the "search for" field.  

It was probably the last thing you looked for there. I know I
constantly go back to look up Date() placeholders. :)

J

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] New php functions?

2002-03-28 Thread Jon Farmer

> It was probably the last thing you looked for there. I know I
> constantly go back to look up Date() placeholders.

I know the feeling! In the end I printed the Date page out, folded it up and
stapled it into my PHP pocket ref book

--
Jon Farmer
Systems Programmer, Entanet www.enta.net
Tel 01952 428969
PGP Key available, send email with subject: Send PGP Key

:)



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] New php functions?

2002-03-28 Thread Jason Wong

On Thursday 28 March 2002 17:13, Jon Farmer wrote:
> > It was probably the last thing you looked for there. I know I
> > constantly go back to look up Date() placeholders.

It begs the question, why don't you just download the manual? It's available 
in a myriad of different formats, one of which must suit you. It may not be 
bang up-to-date and it may not have the (sometimes) useful user comments but 
it sure saves you a lot of time and bandwidth.

> I know the feeling! In the end I printed the Date page out, folded it up
> and stapled it into my PHP pocket ref book

It's a step in the right direction :)


-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
Q:  What do you say to a Puerto Rican in a three-piece suit?
A:  Will the defendant please rise?
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] New php functions?

2002-04-01 Thread Jason Murray

> It begs the question, why don't you just download the manual? 
> It's available in a myriad of different formats, one of which 
> must suit you. It may not be bang up-to-date and it may not have 
> the (sometimes) useful user comments but it sure saves you a lot 
> of time and bandwidth.

Heheh ... well, for one, it's not my bandwidth :) And the time it
takes to open a new browser and type www.php.net/date and download
the page is a lot faster than the amount of time it'd take to find
out where the heck I put the downloaded document, then find the
right page / entry / etc... :)

J

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] New php functions?

2002-04-01 Thread Rick Emery

I've got the PHP manual as a series of hyper-linked HTML pages.  Searchig is
is very fast.  And, I don't need to wait for download of single page.
I've got the index.html page in my Favoties list, so the PHP manual ia
always available; I don't have to try to remember where the downloaded doc
is.

-Original Message-
From: Jason Murray [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 4:52 PM
To: 'Jason Wong'; [EMAIL PROTECTED]
Subject: RE: [PHP] New php functions?


> It begs the question, why don't you just download the manual? 
> It's available in a myriad of different formats, one of which 
> must suit you. It may not be bang up-to-date and it may not have 
> the (sometimes) useful user comments but it sure saves you a lot 
> of time and bandwidth.

Heheh ... well, for one, it's not my bandwidth :) And the time it
takes to open a new browser and type www.php.net/date and download
the page is a lot faster than the amount of time it'd take to find
out where the heck I put the downloaded document, then find the
right page / entry / etc... :)

J

-- 
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/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] New php functions?

2002-04-01 Thread Jason Murray

> I've got the PHP manual as a series of hyper-linked HTML 
> pages.  Searchig is is very fast.  And, I don't need to wait 
> for download of single page.

Each to their own, each to their own ... :)

J

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] New php functions?

2002-04-01 Thread margehair . terra . es

I love that manual! And what about the one in win help format? Not too bad, 
int it? They say it now works under MSLinux. Probably Mandrake too, but not 
tested yet.
Extended info at http://www.mslinux.org

See ya,
Marga

Vas escriure:
> I've got the PHP manual as a series of hyper-linked HTML pages.  Searchig is
> is very fast.  And, I don't need to wait for download of single page.
> I've got the index.html page in my Favoties list, so the PHP manual ia
> always available; I don't have to try to remember where the downloaded doc
> is.
> 
> -Original Message-
> From: Jason Murray [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 01, 2002 4:52 PM
> To: 'Jason Wong'; [EMAIL PROTECTED]
> Subject: RE: [PHP] New php functions?
> 
> 
> > It begs the question, why don't you just download the manual? 
> > It's available in a myriad of different formats, one of which 
> > must suit you. It may not be bang up-to-date and it may not have 
> > the (sometimes) useful user comments but it sure saves you a lot 
> > of time and bandwidth.
> 
> Heheh ... well, for one, it's not my bandwidth :) And the time it
> takes to open a new browser and type www.php.net/date and download
> the page is a lot faster than the amount of time it'd take to find
> out where the heck I put the downloaded document, then find the
> right page / entry / etc... :)
> 
> J
> 
> -- 
> 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/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] New php functions?

2002-04-01 Thread Rick Emery

>  Extended info at http://www.mslinux.org

ROFLMAO

-Original Message-
From: margehair.terra.es [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 5:17 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] New php functions?


I love that manual! And what about the one in win help format? Not too bad, 
int it? They say it now works under MSLinux. Probably Mandrake too, but not 
tested yet.
Extended info at http://www.mslinux.org

See ya,
Marga

Vas escriure:
> I've got the PHP manual as a series of hyper-linked HTML pages.  Searchig
is
> is very fast.  And, I don't need to wait for download of single page.
> I've got the index.html page in my Favoties list, so the PHP manual ia
> always available; I don't have to try to remember where the downloaded doc
> is.
> 
> -Original Message-
> From: Jason Murray [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 01, 2002 4:52 PM
> To: 'Jason Wong'; [EMAIL PROTECTED]
> Subject: RE: [PHP] New php functions?
> 
> 
> > It begs the question, why don't you just download the manual? 
> > It's available in a myriad of different formats, one of which 
> > must suit you. It may not be bang up-to-date and it may not have 
> > the (sometimes) useful user comments but it sure saves you a lot 
> > of time and bandwidth.
> 
> Heheh ... well, for one, it's not my bandwidth :) And the time it
> takes to open a new browser and type www.php.net/date and download
> the page is a lot faster than the amount of time it'd take to find
> out where the heck I put the downloaded document, then find the
> right page / entry / etc... :)
> 
> J
> 
> -- 
> 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/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
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/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] New php functions?

2002-04-02 Thread Rick Emery

FYI:
http://www.lindows.com

Unlike the http://www.mslinux.org (see below), which is an April Fool's
joke, Lindows is an actual product in beta development now.  It is a Linux
based operating system that runs MS Windows applications.

I can't wait to see the impact on PHP development that Lindows may offer

-Original Message-
From: margehair.terra.es [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 5:17 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] New php functions?


I love that manual! And what about the one in win help format? Not too bad, 
int it? They say it now works under MSLinux. Probably Mandrake too, but not 
tested yet.
Extended info at http://www.mslinux.org

See ya,
Marga

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] New php functions?

2002-04-02 Thread charlesk

Its amazing how a message can change like this. My original meesage was just humorous.

Charles

---Original Message---
I went to php.net wnating info on the date() function.  To my surprise the word date 
was already in the "search for" field.   

Has PHP developed some new functions? 

Possible code 

 

If not are these ever planned as I have use for them.   

Thanks 
Charles Killmer 

PS In case you are wondering yes this is supposed to be humorous.  ;-) 


-- Original Message --
From: Rick Emery <[EMAIL PROTECTED]>
Date: Mon, 1 Apr 2002 17:23:13 -0600 

>  Extended info at http://www.mslinux.org

ROFLMAO

-Original Message-
From: margehair.terra.es [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 5:17 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] New php functions?


I love that manual! And what about the one in win help format? Not too bad, 
int it? They say it now works under MSLinux. Probably Mandrake too, but not 
tested yet.
Extended info at http://www.mslinux.org

See ya,
Marga

Vas escriure:
> I've got the PHP manual as a series of hyper-linked HTML pages.  Searchig
is
> is very fast.  And, I don't need to wait for download of single page.
> I've got the index.html page in my Favoties list, so the PHP manual ia
> always available; I don't have to try to remember where the downloaded doc
> is.
> 
> -Original Message-
> From: Jason Murray [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 01, 2002 4:52 PM
> To: 'Jason Wong'; [EMAIL PROTECTED]
> Subject: RE: [PHP] New php functions?
> 
> 
> > It begs the question, why don't you just download the manual? 
> > It's available in a myriad of different formats, one of which 
> > must suit you. It may not be bang up-to-date and it may not have 
> > the (sometimes) useful user comments but it sure saves you a lot 
> > of time and bandwidth.
> 
> Heheh ... well, for one, it's not my bandwidth :) And the time it
> takes to open a new browser and type www.php.net/date and download
> the page is a lot faster than the amount of time it'd take to find
> out where the heck I put the downloaded document, then find the
> right page / entry / etc... :)
> 
> J
> 
> -- 
> 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/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
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/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: synchronizing php functions

2002-07-02 Thread Richard Lynch

>Does anyone know anyway to synchronize calls to php functions.
>I was thinking of writting a hack that uses a lock file on the server put 
>if there is a proper way to do it then I would
>rather use that.
>Any suggestions would be good.

Shared memory may be faster than lock files...

*WHY* you think you need synched PHP functions might be an interesting
discussion, though if it's just for fun, have at it.

-- 
Like Music?  http://l-i-e.com/artists.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: synchronizing php functions

2002-07-03 Thread Philip MacIver

Well I have a system that people can login to, and I want to produce an array (or 
something of the sort)
that holds who is logged in so that I can monitor it. The problem is that sessions are 
local to the clients machine
so if I tried to put this information in the session then the only information that I 
would get back is the people that
are 
logged in on my machine, not the server (Please tell me if I wrong in what I say 
here). Therefore I need to be able to
but this
information in the session and have it available to all sessions (sort of like the way 
static variables in Java belong
to the class and 
not the individual objects that are created from that class). So if you undersatnd 
what I'm trying to do here and know
of a way
to do it I would love to here it.


On Tue, 02 Jul 2002 18:45:40 -0500
[EMAIL PROTECTED] (Richard Lynch) wrote:

> >Does anyone know anyway to synchronize calls to php functions.
> >I was thinking of writting a hack that uses a lock file on the server put 
> >if there is a proper way to do it then I would
> >rather use that.
> >Any suggestions would be good.
> 
> Shared memory may be faster than lock files...
> 
> *WHY* you think you need synched PHP functions might be an interesting
> discussion, though if it's just for fun, have at it.
> 
> -- 
> Like Music?  http://l-i-e.com/artists.htm
> 


|---|
   Philip MacIver
|---|  
|  
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: synchronizing php functions

2002-07-03 Thread Richard Lynch

>Well I have a system that people can login to, and I want to produce an 
>array (or something of the sort)
>that holds who is logged in so that I can monitor it.

Aha!

The "who's logged in right now" feature!  :-)

Problem #1.
First, you need to clearly define "logged in"

Am I logged in for the less than 2 (hopefully!) seconds that it takes me to
download a single HTTP page, or am I logged in until I "log out" or am I
logged in until I don't do nothing for N minutes, and then I'm
auto-logged-out, or some combination.

Because "logged in" has *NO* real meaning in an HTTP connection, unless you
want to strictly show who's using each HTTP connection at this 2-second
instance in time...

> The problem is that 
>sessions are local to the clients machine

No, no, no.

PHP session data all lives on the server, except for the cookie ID on their
local machine, and you can even avoid the cookie ID if you want to use the
SID in every URL/ACTION/POST/GET HTTP connection.

>so if I tried to put this information in the session then the only 
>information that I would get back is the people that
>are 
>logged in on my machine, not the server (Please tell me if I wrong in what 
>I say here).

Either I'm not understanding what you want, or you're *WAY* off target...

If you want to know who is LOGGED IN to telnet/SSH on your WEB server, you'd
want to do like:



If you want the web-server to know who is LOGGED ON to your desktop, there's
no way PHP can do that.  Big, big, big security issue on that one...

Now, maybe, if you had a Java applet and you authorized it to run and it
sucked in who was logged in to your desktop and sent that back to a Java
servelet, you could do that...

Dunno who would want that or why, nor who would trust the applet enough to
run it in the first place, but I think you *could* do that...

If you want to know who's surfing your web-site "now", then you need to
better define what "now" means, and read the other parts of this post.

> Therefore I need to be able to
>but this
>information in the session and have it available to all sessions (sort of 
>like the way static variables in Java belong
>to the class and 
>not the individual objects that are created from that class). So if you 
>undersatnd what I'm trying to do here and know
>of a way
>to do it I would love to here it.

Easiest way to do this:

First, alter your user login/management table so that there is an 'activity'
datetime field.

Next, include something like this file on every page:



To see who's "logged on", just do:

= now()";
  $current = mysql_query($query) or error_log(mysql_error());
  while (list($username) = mysql_fetch_row($current)){
echo "$username\n";
  }
?>

5*60 is 5 minutes.  (60 seconds per minute)  Change that to whatever you
like.

-- 
Like Music?  http://l-i-e.com/artists.htm


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] <- functions returning multiple values: ->

2001-01-22 Thread Abe Asghar

Hey there,

 is there a way that you can get a function to return multiple values. e.g.:
{and also how to access them}

function VarTest() {

return $var = 10;

return $var2 = 20;
 }

Thanks




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Functions returning by reference

2001-02-01 Thread Richard Heyes

Hi,

What are the advantages/disadvantages of functions returning by reference?

TIA
-- 
Richard Heyes

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] functions returning arrays II

2001-08-24 Thread Frank Loewenthal

A lot of answers about the typing error 
$r[ i ] resp. $r[ $i ]

Sorry, this was only wrong in my mail. But this is not the solution. 


Hi

Perhaps I am confused, but is it not possible to return arrays in PHP?

Example:

function getArray() {
$ret = array('hallo','you');
return $ret;
}

$r = getArray();

for( $i=0;$i < count($r); $i++)
echo "$r[ $i ]";

Does not work! The array shows 2 Elements, but they are emty

Hm... Where is do mistake?

Regards
Frank




--
SFI Technology Services AG
Dr. F. Loewenthal
Stettbachstrasse 10
CH-8600 Dübendorf
Switzerland

[EMAIL PROTECTED]
www.sfi.ch
+41/1-824 49 00

---

--
SFI Technology Services AG
Dr. F. Loewenthal
Stettbachstrasse 10
CH-8600 Dübendorf
Switzerland

[EMAIL PROTECTED]
www.sfi.ch
+41/1-824 49 00

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

---

-- 
SFI Technology Services AG
Dr. F. Loewenthal
Stettbachstrasse 10
CH-8600 Dübendorf
Switzerland

[EMAIL PROTECTED]
www.sfi.ch
+41/1-824 49 00

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: synchronizing php functions

2002-07-03 Thread Erik Price


On Wednesday, July 3, 2002, at 04:08  AM, Philip MacIver wrote:

> The problem is that sessions are local to the clients machine

Huh?

> so if I tried to put this information in the session then the only 
> information that I would get back is the people that
> are
> logged in on my machine, not the server (Please tell me if I wrong in 
> what I say here). Therefore I need to be able to
> but this
> information in the session and have it available to all sessions (sort 
> of like the way static variables in Java belong
> to the class and
> not the individual objects that are created from that class). So if you 
> undersatnd what I'm trying to do here and know
> of a way
> to do it I would love to here it.

This has been discussed on the list before, and even I think just last 
week (so check the archives, using "server variables asp" as your search 
criteria).  Some theories suggest that it would entail a lot of 
overhead, unless you only have a few users to keep track of 
simultaneously.  Possible suggestions are

1) if the data doesn't change, put it into an includefile
2) if the data is dynamic, be clever and implement this yourself with 
database-managed persistence (but beware the overhead).

Erik





Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] <- functions returning multiple values: ->

2001-01-22 Thread Ignacio Vazquez-Abrams

On Mon, 22 Jan 2001, Abe Asghar wrote:

> Hey there,
>
>  is there a way that you can get a function to return multiple values. e.g.:
> {and also how to access them}
>
> function VarTest() {
>
> return $var = 10;
>
> return $var2 = 20;
>  }
>
> Thanks
>

function somefunc()
{
  return Array(10, 20);
};

-- 
Ignacio Vazquez-Abrams  <[EMAIL PROTECTED]>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] <- functions returning multiple values: ->

2001-01-22 Thread Matt McClanahan

On Mon, 22 Jan 2001, Abe Asghar wrote:

> Hey there,
> 
>  is there a way that you can get a function to return multiple values. e.g.:
> {and also how to access them}
> 
> function VarTest() {
> 
> return $var = 10;
> 
> return $var2 = 20;
>  }

Functions can only return one variable.  However, you can return an array,
which contains as many values as you need.

function vartest()
{
   $first = 10;
   $second = 20;

   return Array($first,$second);
}

Matt


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] <- functions returning multiple values: ->

2001-01-22 Thread Abe Asghar

Thanks Guys,



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] functions returning arrays II

2001-08-27 Thread Robert V. Zwink

The line:
echo "$r[ $i ]";

does not need quotation marks.  You should change it to:
echo $r[ $i ];

I removed the quotation marks and your script ran fine on my server.  If
this doesn't help post more information.

Robert Zwink
http://www.zwink.net/daid.net

-Original Message-
From: Frank Loewenthal [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 11:44 AM
To: [EMAIL PROTECTED]
Subject: [PHP] functions returning arrays II


A lot of answers about the typing error
$r[ i ] resp. $r[ $i ]

Sorry, this was only wrong in my mail. But this is not the solution.


Hi

Perhaps I am confused, but is it not possible to return arrays in PHP?

Example:

function getArray() {
$ret = array('hallo','you');
return $ret;
}

$r = getArray();

for( $i=0;$i < count($r); $i++)
echo "$r[ $i ]";

Does not work! The array shows 2 Elements, but they are emty

Hm... Where is do mistake?

Regards
Frank




--
SFI Technology Services AG
Dr. F. Loewenthal
Stettbachstrasse 10
CH-8600 Dübendorf
Switzerland

[EMAIL PROTECTED]
www.sfi.ch
+41/1-824 49 00

---

--
SFI Technology Services AG
Dr. F. Loewenthal
Stettbachstrasse 10
CH-8600 Dübendorf
Switzerland

[EMAIL PROTECTED]
www.sfi.ch
+41/1-824 49 00

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

---

--
SFI Technology Services AG
Dr. F. Loewenthal
Stettbachstrasse 10
CH-8600 Dübendorf
Switzerland

[EMAIL PROTECTED]
www.sfi.ch
+41/1-824 49 00

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] <- functions returning multiple values Followup

2001-01-26 Thread Jerry Artman

Would it be easier to return an OBJECT populated with all the items one
might need?

On 01/22/2001 12:38 PM, "Matt McClanahan" <[EMAIL PROTECTED]> wrote:

> On Mon, 22 Jan 2001, Abe Asghar wrote:
> 
>> Hey there,
>> 
>>  is there a way that you can get a function to return multiple values. e.g.:
>> {and also how to access them}
>> 
>> function VarTest() {
>> 
>> return $var = 10;
>> 
>> return $var2 = 20;
>>  }
> 
> Functions can only return one variable.  However, you can return an array,
> which contains as many values as you need.
> 
> function vartest()
> {
>  $first = 10;
>  $second = 20;
> 
>  return Array($first,$second);
> }
> 
> Matt
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] functions returning arrays II ... Umpf....@!**x@#

2001-08-24 Thread Frank Loewenthal

Hi, 

> A lot of answers about the typing error
> $r[ i ] resp. $r[ $i ]
>
> Sorry, this was only wrong in my mail. But this is not the solution.

Okay this was really the mistake. Hm... it is Friday, sorry for this 
stupid question.

Regards
Frank 






-- 
SFI Technology Services AG
Dr. F. Loewenthal
Stettbachstrasse 10
CH-8600 Dübendorf
Switzerland

[EMAIL PROTECTED]
www.sfi.ch
+41/1-824 49 00

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] getting a list of all php functions

2002-02-01 Thread Mike Eheler

Okay, my goal is to compile an array of *all* functions currently 
defined and available in PHP 4.1.1.

That's a simple task if all I want is functions for the extensions I 
chose to compile into PHP (get_defined_functions()), but what about the 
other ones? Is there a place somewhere that has a text file that I can 
just read line-by-line or perhaps comma separated?

Or maybe a version of PHP I can download which has all extensions built in?

Mike
-- 
Taxes are not levied for the benefit of the taxed.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Storing and getting variables between php functions?

2001-02-09 Thread Kato Strandjord

HI is it possible to do what i have shown with the 3 php files under? I want
that a variable stored in a another php file like this, and then i want to
get the stored variable  from a 3rd php file. How can i do this, i have
tried it but it does not work. When i get the variable in the 3rd php file
it is empty. It seems like i cant store variable outside the function, and
then use it in other functions in the same php file. Is that true! In JAVA
and C++ this was a piece of cake...
Thanks in advance from a frustrated student from Norway.

--
php file called setget.php

--
 php file called set.php

---
php file called get.php

--



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] getting a list of all php functions

2002-02-01 Thread Jason Wong

On Saturday 02 February 2002 02:29, Mike Eheler wrote:
> Okay, my goal is to compile an array of *all* functions currently
> defined and available in PHP 4.1.1.
>
> That's a simple task if all I want is functions for the extensions I
> chose to compile into PHP (get_defined_functions()), but what about the
> other ones? Is there a place somewhere that has a text file that I can
> just read line-by-line or perhaps comma separated?
>
> Or maybe a version of PHP I can download which has all extensions built in?
>

Have you tried the function index in the manual?



-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

/*
Q:  Why do the police always travel in threes?
A:  One to do the reading, one to do the writing, and the other keeps
an eye on the two intellectuals.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] getting a list of all php functions

2002-02-01 Thread Mike Eheler

That'll do! Thanks!

Mike

Jason Wong wrote:
> On Saturday 02 February 2002 02:29, Mike Eheler wrote:
> 
>>Okay, my goal is to compile an array of *all* functions currently
>>defined and available in PHP 4.1.1.
>>
>>That's a simple task if all I want is functions for the extensions I
>>chose to compile into PHP (get_defined_functions()), but what about the
>>other ones? Is there a place somewhere that has a text file that I can
>>just read line-by-line or perhaps comma separated?
>>
>>Or maybe a version of PHP I can download which has all extensions built in?
>>
>>
> 
> Have you tried the function index in the manual?
> 
> 
> 
> 


-- 
"When the only tool you have is a hammer, you tend to treat everything as if
it were a nail."
-- Abraham Maslow


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Storing and getting variables between php functions?

2001-02-09 Thread CC Zona

In article <961qbm$hbj$[EMAIL PROTECTED]>, [EMAIL PROTECTED] 
("Kato Strandjord") wrote:

> HI is it possible to do what i have shown with the 3 php files under? I want
> that a variable stored in a another php file like this, and then i want to
> get the stored variable  from a 3rd php file. How can i do this, i have
> tried it but it does not work. When i get the variable in the 3rd php file
> it is empty. It seems like i cant store variable outside the function, and
> then use it in other functions in the same php file. Is that true! In JAVA
> and C++ this was a piece of cake...

You'll want to read the section of the manual dealing with variable scope, 
especially as it relates to functions.  The section on passing by reference 
may also be of interest at this point...




-- 
CC

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] enabling PHP functions only on specific virtual hosts

2001-04-16 Thread indrek siitan

Hi,

I'm running a small web hosting server on my machine and offering
PHP+MySQL to virtual hosting clients.

I've coded an additional PHP module, which I want to be a paid
add-on feature to the clients. Is there a way to disable the 
module or functions (it contains 2 functions) globally and then 
specifically enable them to certain virtual hosts?


Rgds,
  Tfr

  --==< [EMAIL PROTECTED] >==< http://tfr.cafe.ee/ >==< +372-50-17621 >==-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Nearly all (1755) PHP functions in a text file

2001-04-06 Thread Plutarck

First of all I use Edit Plus, which uses a list of PHP functions to know
what words to highlight in the code.

Well now that I have a seriously throbbing headache, I've done it. Finally.

If you use a program that needs a list of functions for syntax highlighting,
I've finally got one that has every function according to PHP
get_defined_functions (includes quite a few undocumented functions), the PHP
manual, and quite a few others it failed to mention but should be
highlighted. unset() is a good example, along with print/echo, I managed to
put it together. Every entry on it's own line (so it's seperated by "\n").

My head feels like it is being used as the repository for Anna Nichole
Smith's silicone breast implants (both failed and spare parts for future
use).

In any case, there are 1755 entries in the blasted thing. If it's in the PHP
manual or get_defined_functions, it's in there. And damn is that alot.

Here is the link to the text file:
http://crazyoddball.hypermart.net/php.stx.txt


However I learned so many cool things with so many functions I'd like to
use, but I have a severe headache and have to go to work (I'll be in a car
the whole time, so no computer) in one hour, and I haven't slept.

And I'm not getting paid for this either.

Ah yes, this is GeekLife. But I have no caffiene in my system. So this is
the GranolaGeekLife...GGL...giggle?



Well whatever I end up doing/not-doing, enjoy! Hopefully the thing will be
useful.

I certainly hope so, because compiling the whole thing was overkill if I'm
the only one that will use it :)



--
Plutarck
Should be working on something...
...but forgot what it was.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] enabling PHP functions only on specific virtual hosts

2001-04-16 Thread Felix Kronlage

On Mon, Apr 16, 2001 at 12:42:50PM +0200, indrek siitan wrote:

> I've coded an additional PHP module, which I want to be a paid
> add-on feature to the clients. Is there a way to disable the 
> module or functions (it contains 2 functions) globally and then 
> specifically enable them to certain virtual hosts?

you can globally disable function with:

| disable_functions   = 

in php.ini.
For the vhosts, which are allowed to use the functions you can
create a special php.ini, which is loadad (afaik) via .htaccess
then (I'm not sure on this...remember to have read something like
that on this list -> you might want to check the archieve)

-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] enabling PHP functions only on specific virtual hosts

2001-04-16 Thread indrek siitan

Hi,

> you can globally disable function with:
> 
> | disable_functions   = 

ok, got to that point, too.

but is there an enable_functions keyword to explicitly enable
those functions in httpd.conf (this should be possible with
the php_value keyword, as far as I understood from the manual).


Rgds,
  Tfr

  --==< [EMAIL PROTECTED] >==< http://tfr.cafe.ee/ >==< +372-50-17621 >==-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] enabling PHP functions only on specific virtual hosts

2001-04-16 Thread Felix Kronlage

On Mon, Apr 16, 2001 at 07:17:24PM +0200, indrek siitan wrote:

> but is there an enable_functions keyword to explicitly enable
> those functions in httpd.conf (this should be possible with
> the php_value keyword, as far as I understood from the manual).

no. But you can put a .htaccess in the directory of the vhost, which
you want to enable these functipns for, in which you define a different
php.ini to be used (in which you don't disable these functions).
wow, lot's of 'whiches' in this sentence.

At least, I belive this can be done (but I'm not sure of it).
-fkr
-- 
gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0  8A48 0D31 9BD3 D9AC 74D0 
  |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE  |
  |all your base are belong to us  |  shame on me  | fkr@IRCnet | 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] How to pass variables to php functions from url's?

2001-09-07 Thread Martin Lindhe

I need to solve the following problem, but I can't figure out how:

Let's assume we have a server called www.test.com
When a user access http://www.test.com/path/username,
I want a php script to execute, as if the url entered was
http://www.test.com/path.php?value=username.

I'm running PHP 4.0.6 on Apache 1.3.20.
I've looked at both PHP and Apache documentation about this, but
i havent found any information or examples on how this could be solved,
so I'm asking the question here in hope for help.

Thanks!

/Martin Lindhe

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Nearly all (1755) PHP functions in a text file

2001-04-06 Thread maatt

Dammit, that's great Plutarck.

Been wanting to write a documentating script for ages, that basically took
the output from show_source() and added links to all the functions in the
online manual, as well as any functions defined in the script or includes.
Will be handy for a tutorial series I'm doing: users could then just
point-and-click at the bits of the script they don't understand.

All I needed to get going with it was a list of all the pre-defined
functions. And here it is!

Matt

""Plutarck"" <[EMAIL PROTECTED]> wrote in message
9ajqk2$ll4$[EMAIL PROTECTED]">news:9ajqk2$ll4$[EMAIL PROTECTED]...
> First of all I use Edit Plus, which uses a list of PHP functions to know
> what words to highlight in the code.
>
> Well now that I have a seriously throbbing headache, I've done it.
Finally.
>
> If you use a program that needs a list of functions for syntax
highlighting,
> I've finally got one that has every function according to PHP
> get_defined_functions (includes quite a few undocumented functions), the
PHP
> manual, and quite a few others it failed to mention but should be
> highlighted. unset() is a good example, along with print/echo, I managed
to
> put it together. Every entry on it's own line (so it's seperated by "\n").
>
> My head feels like it is being used as the repository for Anna Nichole
> Smith's silicone breast implants (both failed and spare parts for future
> use).
>
> In any case, there are 1755 entries in the blasted thing. If it's in the
PHP
> manual or get_defined_functions, it's in there. And damn is that alot.
>
> Here is the link to the text file:
> http://crazyoddball.hypermart.net/php.stx.txt
>
>
> However I learned so many cool things with so many functions I'd like to
> use, but I have a severe headache and have to go to work (I'll be in a car
> the whole time, so no computer) in one hour, and I haven't slept.
>
> And I'm not getting paid for this either.
>
> Ah yes, this is GeekLife. But I have no caffiene in my system. So this is
> the GranolaGeekLife...GGL...giggle?
>
>
>
> Well whatever I end up doing/not-doing, enjoy! Hopefully the thing will be
> useful.
>
> I certainly hope so, because compiling the whole thing was overkill if I'm
> the only one that will use it :)
>
>
>
> --
> Plutarck
> Should be working on something...
> ...but forgot what it was.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Nearly all (1755) PHP functions in a text file

2001-04-06 Thread Phillip Bow

Geez Plutarck where are all the GTK functions? :)  Just kidding this is
great and I am gonna snarf a copy to use locally.
--
phill

""Plutarck"" <[EMAIL PROTECTED]> wrote in message
9ajqk2$ll4$[EMAIL PROTECTED]">news:9ajqk2$ll4$[EMAIL PROTECTED]...
> First of all I use Edit Plus, which uses a list of PHP functions to know
> what words to highlight in the code.
>
> Well now that I have a seriously throbbing headache, I've done it.
Finally.
>
> If you use a program that needs a list of functions for syntax
highlighting,
> I've finally got one that has every function according to PHP
> get_defined_functions (includes quite a few undocumented functions), the
PHP
> manual, and quite a few others it failed to mention but should be
> highlighted. unset() is a good example, along with print/echo, I managed
to
> put it together. Every entry on it's own line (so it's seperated by "\n").
>
> My head feels like it is being used as the repository for Anna Nichole
> Smith's silicone breast implants (both failed and spare parts for future
> use).
>
> In any case, there are 1755 entries in the blasted thing. If it's in the
PHP
> manual or get_defined_functions, it's in there. And damn is that alot.
>
> Here is the link to the text file:
> http://crazyoddball.hypermart.net/php.stx.txt
>
>
> However I learned so many cool things with so many functions I'd like to
> use, but I have a severe headache and have to go to work (I'll be in a car
> the whole time, so no computer) in one hour, and I haven't slept.
>
> And I'm not getting paid for this either.
>
> Ah yes, this is GeekLife. But I have no caffiene in my system. So this is
> the GranolaGeekLife...GGL...giggle?
>
>
>
> Well whatever I end up doing/not-doing, enjoy! Hopefully the thing will be
> useful.
>
> I certainly hope so, because compiling the whole thing was overkill if I'm
> the only one that will use it :)
>
>
>
> --
> Plutarck
> Should be working on something...
> ...but forgot what it was.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Nearly all (1755) PHP functions in a text file

2001-04-06 Thread Jason Lotito

WoW.  That is UberGeek!  I am humbledcool...fear not, good sir, for that
list will become very handy indeed.

Jason Lotito
www.NewbieNetwork.net
Where those who can, teach;
and those who can, learn.


> -Original Message-
> From: Plutarck [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 06, 2001 12:17 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Nearly all (1755) PHP functions in a text file
>
>
> First of all I use Edit Plus, which uses a list of PHP functions to know
> what words to highlight in the code.
>
> Well now that I have a seriously throbbing headache, I've done
> it. Finally.
>
> If you use a program that needs a list of functions for syntax
> highlighting,
> I've finally got one that has every function according to PHP
> get_defined_functions (includes quite a few undocumented
> functions), the PHP
> manual, and quite a few others it failed to mention but should be
> highlighted. unset() is a good example, along with print/echo, I
> managed to
> put it together. Every entry on it's own line (so it's seperated by "\n").
>
> My head feels like it is being used as the repository for Anna Nichole
> Smith's silicone breast implants (both failed and spare parts for future
> use).
>
> In any case, there are 1755 entries in the blasted thing. If it's
> in the PHP
> manual or get_defined_functions, it's in there. And damn is that alot.
>
> Here is the link to the text file:
> http://crazyoddball.hypermart.net/php.stx.txt
>
>
> However I learned so many cool things with so many functions I'd like to
> use, but I have a severe headache and have to go to work (I'll be in a car
> the whole time, so no computer) in one hour, and I haven't slept.
>
> And I'm not getting paid for this either.
>
> Ah yes, this is GeekLife. But I have no caffiene in my system. So this is
> the GranolaGeekLife...GGL...giggle?
>
>
>
> Well whatever I end up doing/not-doing, enjoy! Hopefully the thing will be
> useful.
>
> I certainly hope so, because compiling the whole thing was overkill if I'm
> the only one that will use it :)
>
>
>
> --
> Plutarck
> Should be working on something...
> ...but forgot what it was.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Nearly all (1755) PHP functions in a text file

2001-04-06 Thread Johnson, Kirk

So, now that you've seen 'em all, which one is your favorite? :)

Kirk

> -Original Message-
> From: Plutarck [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 06, 2001 1:17 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Nearly all (1755) PHP functions in a text file

> In any case, there are 1755 entries in the blasted thing. If 
> it's in the PHP
> manual or get_defined_functions, it's in there. And damn is that alot.
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Nearly all (1755) PHP functions in a text file

2001-04-06 Thread Plutarck

The ones that started talking to me half-way through.

I'd like to give a shout out to 346, 789, and 1747, and blue function#9.

*twitch*


--
Plutarck
Should be working on something...
...but forgot what it was.


""Johnson, Kirk"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> So, now that you've seen 'em all, which one is your favorite? :)
>
> Kirk
>
> > -Original Message-
> > From: Plutarck [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, April 06, 2001 1:17 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] Nearly all (1755) PHP functions in a text file
>
> > In any case, there are 1755 entries in the blasted thing. If
> > it's in the PHP
> > manual or get_defined_functions, it's in there. And damn is that alot.
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] How to pass variables to php functions from url's?

2001-09-07 Thread Krzysztof Kocjan

Try method=GET in Your form to submit if You want to url be like
url?var=value. Or php function header( 'Location: ' .rul . 'var=value' );
That's all You need I hope. Sorry but Your question is not good explained.

Krzysztof Kocjan

Martin Lindhe wrote:

> I need to solve the following problem, but I can't figure out how:
>
> Let's assume we have a server called www.test.com
> When a user access http://www.test.com/path/username,
> I want a php script to execute, as if the url entered was
> http://www.test.com/path.php?value=username.
>
> I'm running PHP 4.0.6 on Apache 1.3.20.
> I've looked at both PHP and Apache documentation about this, but
> i havent found any information or examples on how this could be solved,
> so I'm asking the question here in hope for help.
>
> Thanks!
>
> /Martin Lindhe
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


---
KONKURS: Niedobre miejsca - 50 ksiazek W. Whartona do wygrania!
http://szkola.interia.pl/wharton/strona.html?co=13


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




SV: [PHP] How to pass variables to php functions from url's?

2001-09-07 Thread Martin Lindhe

> Try method=GET in Your form to submit if You want to url be like
> url?var=value. Or php function header( 'Location: ' .rul . 
> 'var=value' );

No, i'm not using a form, and i cant execute any php scripts whatsoever
if there are no php script specified to execute. 

> That's all You need I hope. Sorry but Your question is not 
> good explained.

Please read my mail again, I tried to described my problem as good
as possible.


> Martin Lindhe wrote:
> 
> > I need to solve the following problem, but I can't figure out how:
> >
> > Let's assume we have a server called www.test.com
> > When a user access http://www.test.com/path/username,
> > I want a php script to execute, as if the url entered was
> > http://www.test.com/path.php?value=username.
> >
> > I'm running PHP 4.0.6 on Apache 1.3.20.
> > I've looked at both PHP and Apache documentation about this, but
> > i havent found any information or examples on how this 
> could be solved,
> > so I'm asking the question here in hope for help.
> >
> > Thanks!
> >
> > /Martin Lindhe

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread \[Intent A/S\] Tais M. Hansen

Hi Martin,

Take a look at the Apache mod_rewrite docs.

http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html


I added this to my httpd.conf:

---snip---
RewriteEngine   on
RewriteCond %{HTTP_HOST}^nu\.osd\.dk$
RewriteRule ^.*$http://www.osd.dk/main.php?m=nu
[R=301,L]
---snip---

If a user types the URL "nu.osd.dk" it will call
http://www.osd.dk/main.php?m=nu.


--
Tais M. Hansen



"Martin Lindhe" <[EMAIL PROTECTED]> wrote in message
831D8A28AF18D5119EAA00E018C5B81C23BA08@MAIL1">news:831D8A28AF18D5119EAA00E018C5B81C23BA08@MAIL1...
> I need to solve the following problem, but I can't figure out how:
> Let's assume we have a server called www.test.com
> When a user access http://www.test.com/path/username,
> I want a php script to execute, as if the url entered was
> http://www.test.com/path.php?value=username.
> I'm running PHP 4.0.6 on Apache 1.3.20.
> Thanks!
> /Martin Lindhe



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread \[Intent A/S\] Tais M. Hansen

Note: The example I wrote is only 3 lines, each starting with RewriteX!
Beware of unintended line breaks caused by newsposting. :)


--
Tais M. Hansen


" Tais M. Hansen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> ---snip---
> RewriteEngine   on
> RewriteCond %{HTTP_HOST}^nu\.osd\.dk$
> RewriteRule ^.*$http://www.osd.dk/main.php?m=nu
> [R=301,L]
> ---snip---




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] How to pass variables to php functions from url's?

2001-09-07 Thread Doug Granzow

> > > Let's assume we have a server called www.test.com
> > > When a user access http://www.test.com/path/username,
> > > I want a php script to execute, as if the url entered was
> > > http://www.test.com/path.php?value=username.
> > >
> > > I'm running PHP 4.0.6 on Apache 1.3.20.

Step 1:  Rename "path.php" to "path"

Step 2:  Add this to your Apache conf file:


ForceType application/x-httpd-php


This causes "path" to be executed as a PHP script even though it does not
have a .php extension.

Step 3:  Add this to your "path" php script:

// $PATH_INFO = the rest of the URI after dmb/

// remove anything other than letters, numbers, dots, underscores,
// and dashes, and put into an array

// for example "trading/toptraders" will be an array consisting
// of "trading" ($args[1]) and "toptraders" ($args[2]).  The / is
discarded.

ereg("(^[-_.\/a-zA-Z0-9]*$)", $PATH_INFO, $arg);
$args = split( "/", $arg[1]);


Hope this helps.

Doug Granzow
[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread ~~~i LeoNid ~~

On Fri, 7 Sep 2001 13:28:16 +0200 impersonator of
[EMAIL PROTECTED] (\ Tais M. Hansen) planted &I saw in
php.general:

>Hi Martin,
>
>Take a look at the Apache mod_rewrite docs.
>
>http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html
>
>
>I added this to my httpd.conf:
>
Or if you don't have access to httpd.conf and/or not mod_rewrite
installed, check to see if you can use .htaccess in your respective
directory with adding there handler (your script) for all these files to
be processed by. See Apache docs, if/how it is possible to pass params.

I didn't use it myself, as my servers don't allow it, but read/lerned s/t.


>---snip---
>RewriteEngine   on
>RewriteCond %{HTTP_HOST}^nu\.osd\.dk$
>RewriteRule ^.*$http://www.osd.dk/main.php?m=nu
>[R=301,L]
>---snip---
>
>If a user types the URL "nu.osd.dk" it will call
>http://www.osd.dk/main.php?m=nu.
>
>
>--
>Tais M. Hansen
>
>
>
>"Martin Lindhe" <[EMAIL PROTECTED]> wrote in message
>831D8A28AF18D5119EAA00E018C5B81C23BA08@MAIL1">news:831D8A28AF18D5119EAA00E018C5B81C23BA08@MAIL1...
>> I need to solve the following problem, but I can't figure out how:
>> Let's assume we have a server called www.test.com
>> When a user access http://www.test.com/path/username,
>> I want a php script to execute, as if the url entered was
>> http://www.test.com/path.php?value=username.
>> I'm running PHP 4.0.6 on Apache 1.3.20.
>> Thanks!
>> /Martin Lindhe
>
>
i Leonid.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread Martin Lindhe

> Hi Martin,
> 
> Take a look at the Apache mod_rewrite docs.
> 
> http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html


Thanks alot! 
I made a similar solution which works

RewriteEngine on
RewriteRule "^/x/(.*)"  "http://www.server2.com/users/$1";

takes www.server1.com/x/martin to www.server2.com/users/martin

Great! I'm also wondering wether i can hide this redirect, as of
now the redirected url is shown to the user, but i want this
redirect to be unknown, so user is visually on same server.
I figure i can solve this with a little script & a frame or something,
but it's not a good solution, is it possible to do in any other way?

/Martin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread \[Intent A/S\] Tais M. Hansen

I think I remember doing it a while ago. But I think you need to use
mod_alias instead. Take a look here:

http://httpd.apache.org/docs-2.0/mod/mod_alias.html#redirect

The Redirect/RedirectMatch/RedirectTemp might do it.

--
Tais M. Hansen


"Martin Lindhe" <[EMAIL PROTECTED]> wrote in message
831D8A28AF18D5119EAA00E018C5B81C23BA0F@MAIL1">news:831D8A28AF18D5119EAA00E018C5B81C23BA0F@MAIL1...
> Great! I'm also wondering wether i can hide this redirect, as of
> now the redirected url is shown to the user, but i want this
> redirect to be unknown, so user is visually on same server.
> I figure i can solve this with a little script & a frame or something,
> but it's not a good solution, is it possible to do in any other way?
> /Martin




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread Martin Lindhe

> I think I remember doing it a while ago. But I think you need to use
> mod_alias instead. Take a look here:
> 
> http://httpd.apache.org/docs-2.0/mod/mod_alias.html#redirect
> 
> The Redirect/RedirectMatch/RedirectTemp might do it.
> 

RedirectMatch permanent "^/x/(.*)" http://www.test.com/y/test.php?val=$1";

seems to work somewhat equal to the RewriteRule, it also visibly show
the redirect url. Thanks anyway

/Martin


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread Robin Vickery

[EMAIL PROTECTED] (Martin Lindhe) writes:

> > Hi Martin,
> > 
> > Take a look at the Apache mod_rewrite docs.
> > 
> > http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html
> 
> 
> Thanks alot! 
> I made a similar solution which works
> 
> RewriteEngine on
> RewriteRule "^/x/(.*)""http://www.server2.com/users/$1";
> 
> takes www.server1.com/x/martin to www.server2.com/users/martin
> 
> Great! I'm also wondering wether i can hide this redirect, as of
> now the redirected url is shown to the user

useful link: http://www.apache.org/docs-2.0/misc/rewriteguide.html

RewriteEngine on
RewriteRule ^/x/(.*)http://www.server2.com/users/$1 [P]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread Martin Lindhe

>useful link: http://www.apache.org/docs-2.0/misc/rewriteguide.html
>
>RewriteEngine on
>RewriteRule ^/x/(.*)http://www.server2.com/users/$1 [P]

Hm, what does the [P] do? I played around a bit and figured that
a [T] does the trick for me, thanks!

/Martin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread \[Intent A/S\] Tais M. Hansen

I think if you use "RedirectMatch temp ..." it'll work...

-tais


"Martin Lindhe" <[EMAIL PROTECTED]> wrote in message
831D8A28AF18D5119EAA00E018C5B81C23BA11@MAIL1">news:831D8A28AF18D5119EAA00E018C5B81C23BA11@MAIL1...
> > I think I remember doing it a while ago. But I think you need to use
> > mod_alias instead. Take a look here:
> > http://httpd.apache.org/docs-2.0/mod/mod_alias.html#redirect
> > The Redirect/RedirectMatch/RedirectTemp might do it.
> RedirectMatch permanent "^/x/(.*)" http://www.test.com/y/test.php?val=$1";
> seems to work somewhat equal to the RewriteRule, it also visibly show
> the redirect url. Thanks anyway
> /Martin




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread \[Intent A/S\] Tais M. Hansen

AFAIR it's [P]ermanent and [T]emporary... But I could be wrong!!

-tais


"Martin Lindhe" <[EMAIL PROTECTED]> wrote in message
831D8A28AF18D5119EAA00E018C5B81C23BA13@MAIL1">news:831D8A28AF18D5119EAA00E018C5B81C23BA13@MAIL1...
> >useful link: http://www.apache.org/docs-2.0/misc/rewriteguide.html
> >RewriteEngine on
> >RewriteRule ^/x/(.*)http://www.server2.com/users/$1 [P]
> Hm, what does the [P] do? I played around a bit and figured that
> a [T] does the trick for me, thanks!
> /Martin



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread \[Intent A/S\] Tais M. Hansen

I am wrong! ;)

" Tais M. Hansen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> AFAIR it's [P]ermanent and [T]emporary... But I could be wrong!!
> -tais




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: How to pass variables to php functions from url's?

2001-09-07 Thread \[Intent A/S\] Tais M. Hansen

This is what they mean:

(from http://www.apache.org/docs-2.0/mod/mod_rewrite.html)

***

'proxy|P' (force proxy)
This flag forces the substitution part to be internally forced as a proxy
request and immediately (i.e., rewriting rule processing stops here) put
through the proxy module. You have to make
sure that the substitution string is a valid URI (e.g.,  typically
starting
with http://hostname) which can be handled by the
Apache proxy module. If not you get an error from the proxy module. Use
this flag to achieve a more powerful implementation of the ProxyPass
directive, to map some
remote stuff into the namespace of the local server.

Notice: To use this functionality make sure you have the proxy module
compiled into your Apache server program.  If you don't know please
check
whether mod_proxy.c is part of the ``httpd -l''
output. If yes, this functionality is available to mod_rewrite. If not,
then you first have to rebuild the ``httpd'' program with
mod_proxy enabled.

***

'type|T=MIME-type' (force MIME type)
Force the MIME-type of the target file to be MIME-type. For
instance, this can be used to simulate the mod_alias directive
ScriptAlias which internally forces all files inside
the mapped directory to have a MIME type of
``application/x-httpd-cgi''.

***


" Tais M. Hansen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> AFAIR it's [P]ermanent and [T]emporary... But I could be wrong!!
> -tais





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Is there a way to call php functions in perl? and vice versa

2001-02-06 Thread david klein

Is there a way to call php functions in perl? or call perl functions from 
PHP codes?

Thanks,
David
_
Get your FREE download of MSN Explorer at http://explorer.msn.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Is there a way to call php functions in perl? and vice versa

2001-02-08 Thread Richard Lynch

> Is there a way to call php functions in perl? or call perl functions from
> PHP codes?

\n";
}
if ($error){
echo "OS Error: $error.  Usually path/permissions.\n";
}
?>

Perl could call PHP the same way it calls anything (which I can say blithely
since I have no clue how that is), but you'll need to install PHP as a
stand-alone binary (aka CGI) or make Perl call wget or lynx to surf to a PHP
page.

[It's kinda like if you had mod_perl installed but *not* Perl itself... PHP
compiled as "CGI" is akin to Perl itself.  Except better, of course. :-)]

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]