[PHP] help functions

2001-03-05 Thread Montgomery-Recht, Evan

Has anyone spent any time and thought into including help within the
library, ie. so you could do a.

mysql.connect().help() or something like that so as a developer addeds a new
function we as end users might be able to understand the function.  Most
likely by creating a help file to return to the browser because right now
I'm finding a lot of undocumentented features.

thanks,

evan

-- 
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 and iPlanet on Solaris

2001-03-01 Thread Montgomery-Recht, Evan

Figured it out, it the reference for php4_execute service needs to be higher
up in the file.

evan

 -Original Message-
 From: Montgomery-Recht, Evan [SMTP:[EMAIL PROTECTED]]
 Sent: Wednesday, February 28, 2001 9:33 AM
 To:   [EMAIL PROTECTED]
 Subject:  [PHP] PHP and iPlanet on Solaris
 
 I got the latest snapshot of php to compile on solaris (4.0.4pl1
 wouldn't).
 
 Anyways I edited the mime.types and obj.conf as described in the
 installation instructions, but right now it's trying to download the
 test.php file I created instead of processing.  Is there anything not in
 the
 documentation that I need to add.
 
 thanks,
 
 evan
 
 -- 
 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 and iPlanet on Solaris

2001-02-28 Thread Montgomery-Recht, Evan

I got the latest snapshot of php to compile on solaris (4.0.4pl1 wouldn't).

Anyways I edited the mime.types and obj.conf as described in the
installation instructions, but right now it's trying to download the
test.php file I created instead of processing.  Is there anything not in the
documentation that I need to add.

thanks,

evan

-- 
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] iPlanet issue...

2001-02-28 Thread Montgomery-Recht, Evan

I just noticed a problem with iPlanet...

Appearently once I got php working, then I tried geting things working on
multiple virtual domains.  So this is what happens. Using the standard
test.php ?php phpinfo(); ?.

The script works from the root directory of each virtual domain.

What doesn't work is and directory's under the root directory.  basicly
returns a error message that says it cannot find the file, and that's due to
the fact that it's looking at the following line in the obj.conf file.  This
is for the main one.

Nametrans fn="document-root" root="/usr/netscape/server4/docs"

Then I change it to reflect it for the virtual domain and it works for that
virtual domain, but no others and then all of the sudden if there's anything
on the main page, ofcourse that doesn't work.

help.

evan

-- 
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] Solaris and libtool

2001-02-27 Thread Montgomery-Recht, Evan

Is anyone here framiliar with Solaris/libtool issue's?

thanks,

evan

-- 
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] HTTP Content-length...

2001-02-20 Thread Montgomery-Recht, Evan

I'm working through geting the raw sockets implementation to send a http
post command to a cgi-script.

But there's one thing I'm trying to figure out.

How do I create the content-length?

I don't see a obvious way but my expection would be the following code.

$string ="foo=barfood=apple";
$contentlength=$string.size;
$uuencodestring=uuencode($string);

but I don't seem to see the easy $string.size ?

any ideas on a good way to do this?

thanks,

evan

-- 
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] HTTP POST Question

2001-02-19 Thread Montgomery-Recht, Evan

Good morning...

This should be a good monday morning question.

I have a cgi-bin written in perl (it's actually, a interface to a
perl-module which is a interface to a telnet-like protocol).

Anyways what I need to do is I have already existing code written in PHP,
but at some point I need to call this cgi-bin and get a return code from it
and process (good/bad result) and return to completed php script that says
it called this cgi-bin.  It's not very clear how to set the HTTP_POST_VARS
for sending to a post command (which doesn't seem to exist);

Any ideas I don't see a function called:

$HTTP_POST_VARS =set variables;
$result = http_post("http://localhost/cgi-bin/script.pl");

Thanks,

evan

PS.  I'd appricate a working example, even if it's a dummy version.

-- 
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] HTTP POST Question

2001-02-19 Thread Montgomery-Recht, Evan

I see the basic's... but...  It's not completely clear from what I'm seeing.

1. It appears if I use the header function I have to redirect the page to
another page, it doesn't appear possible to retrieve a page into the current
page?  Unless someone can show me some code that would do that.

2. it's not clear how you would actually set the HTTP_POST_VARS's and when
you use the header("Request-URI:"); if that uses the HTTP_POST_VARS?

as of right now it looks like the code would go as follows:

?php
$HTTP_POST_VARS (not sure how to set these
Something like this $HTTP_POST_VARS['uid']="userid"; )
header("Request-URI: http://localhost/cgi-bin/script.pl");
?

Is that all that has to be done?

thanks,

evan


 -Original Message-
 From: Milan Mlynarcik [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, February 19, 2001 7:33 AM
 To:   Montgomery-Recht, Evan
 Subject:  Re: [PHP] HTTP POST Question
 
 You have to use header() function and how POST work you can find in HTTP
 RFC
 at http://www.w3.org/Protocols/rfc2616/rfc2616.html
 -
 Milan Mlynarcik
 Web Programmer
 Charmed Technology Slovakia
 Nam. sv. Egidia 16/37
 058 01 Poprad, Slovakia
 E-mail: [EMAIL PROTECTED]
 Office: 00421 92 7881 874
 Mobile: 00421 905 964 535
 Web page: http://www.charmed.com/
 -
 - Original Message -----
 From: "Montgomery-Recht, Evan" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, February 19, 2001 1:06 PM
 Subject: [PHP] HTTP POST Question
 
 
  Good morning...
 
  This should be a good monday morning question.
 
  I have a cgi-bin written in perl (it's actually, a interface to a
  perl-module which is a interface to a telnet-like protocol).
 
  Anyways what I need to do is I have already existing code written in
 PHP,
  but at some point I need to call this cgi-bin and get a return code from
 it
  and process (good/bad result) and return to completed php script that
 says
  it called this cgi-bin.  It's not very clear how to set the
 HTTP_POST_VARS
  for sending to a post command (which doesn't seem to exist);
 
  Any ideas I don't see a function called:
 
  $HTTP_POST_VARS =set variables;
  $result = http_post("http://localhost/cgi-bin/script.pl");
 
  Thanks,
 
  evan
 
  PS.  I'd appricate a working example, even if it's a dummy version.
 
  --
  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] HTTP POST Question

2001-02-19 Thread Montgomery-Recht, Evan

OK, any idea's on a good tutorial on how to create the socket to do a
HTTP_POST?

thanks,

evan

PS. My girlfriend always complains when I send back one line e-mail's.  Now
I understand why.

 -Original Message-
 From: Milan Mlynarcik [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, February 19, 2001 9:06 AM
 To:   Montgomery-Recht, Evan
 Subject:  Re: [PHP] HTTP POST Question
 
 You can do it with socket functions.
 -
 Milan Mlynarcik
 Web Programmer
 Charmed Technology Slovakia
 Nam. sv. Egidia 16/37
 058 01 Poprad, Slovakia
 E-mail: [EMAIL PROTECTED]
 Office: 00421 92 7881 874
 Mobile: 00421 905 964 535
 Web page: http://www.charmed.com/
 -
 - Original Message -
 From: "Montgomery-Recht, Evan" [EMAIL PROTECTED]
 To: "'Milan Mlynarcik'" [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Monday, February 19, 2001 2:06 PM
 Subject: RE: [PHP] HTTP POST Question
 
 
  I see the basic's... but...  It's not completely clear from what I'm
 seeing.
 
  1. It appears if I use the header function I have to redirect the page
 to
  another page, it doesn't appear possible to retrieve a page into the
 current
  page?  Unless someone can show me some code that would do that.
 
  2. it's not clear how you would actually set the HTTP_POST_VARS's and
 when
  you use the header("Request-URI:"); if that uses the HTTP_POST_VARS?
 
  as of right now it looks like the code would go as follows:
 
  ?php
  $HTTP_POST_VARS (not sure how to set these
  Something like this $HTTP_POST_VARS['uid']="userid"; )
  header("Request-URI: http://localhost/cgi-bin/script.pl");
  ?
 
  Is that all that has to be done?
 
  thanks,
 
  evan
 
 
   -Original Message-
   From: Milan Mlynarcik [SMTP:[EMAIL PROTECTED]]
   Sent: Monday, February 19, 2001 7:33 AM
   To: Montgomery-Recht, Evan
   Subject: Re: [PHP] HTTP POST Question
  
   You have to use header() function and how POST work you can find in
 HTTP
   RFC
   at http://www.w3.org/Protocols/rfc2616/rfc2616.html
   -
   Milan Mlynarcik
   Web Programmer
   Charmed Technology Slovakia
   Nam. sv. Egidia 16/37
   058 01 Poprad, Slovakia
   E-mail: [EMAIL PROTECTED]
   Office: 00421 92 7881 874
   Mobile: 00421 905 964 535
   Web page: http://www.charmed.com/
   -----
   - Original Message -
   From: "Montgomery-Recht, Evan" [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Monday, February 19, 2001 1:06 PM
   Subject: [PHP] HTTP POST Question
  
  
Good morning...
   
This should be a good monday morning question.
   
I have a cgi-bin written in perl (it's actually, a interface to a
perl-module which is a interface to a telnet-like protocol).
   
Anyways what I need to do is I have already existing code written in
   PHP,
but at some point I need to call this cgi-bin and get a return code
 from
   it
and process (good/bad result) and return to completed php script
 that
   says
it called this cgi-bin.  It's not very clear how to set the
   HTTP_POST_VARS
for sending to a post command (which doesn't seem to exist);
   
Any ideas I don't see a function called:
   
$HTTP_POST_VARS =set variables;
$result = http_post("http://localhost/cgi-bin/script.pl");
   
Thanks,
   
evan
   
PS.  I'd appricate a working example, even if it's a dummy version.
   
--
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 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 and Java (CVS version)

2001-02-13 Thread Montgomery-Recht, Evan

I've noticed a problem with the config.m4 in the ext/java directory.

Basic issue I'm running redhat 7.0 with the sun jdk installed in
/usr/java/jdk1.3

I type in really simple after doing a buildconf

I have my JAVA_HOME and PATH's setup to get all java exe's.

configure --with-mysql=/usr --with-java=/usr/java/jdk1.3

now when I go to do a make it's trying to use zip and not jar, so what I did
what I changed line
 23 to match line 21 and everything compiles correctly.

So it sounds like autoconf is not recognizing the PATH statement in my
system.

I'm not experienced enough with the autoconf and automake to really make
this change so it works properly since I know that I didn't do the right
thing to get it working.

if someone else has a suggestion on how to fix it properly please let me
know, and hopefully the CVS tree will get updated.

evan


-- 
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] cURL telnet

2001-01-31 Thread Montgomery-Recht, Evan

Does anyone have any experience using cURL with Telnet in PHP.

thanks,

evan

-- 
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]