RE: [PHP] sablotron XMl XSLT

2002-04-09 Thread Hunter, Ray

You need to check if you have sablotron compiled in with php.  If you need
the rpms you can get them from here:
http://www.gingerall.com/charlie/ga/xml/d_sab.xml
http://www.gingerall.com/charlie/ga/xml/d_sab.xml 
 
Sablotron also needs javascript engine to run, you can get that here: 
http://rpmfind.net/linux/rpm2html/search.php?query=js
http://rpmfind.net/linux/rpm2html/search.php?query=js 
 
 
I am actually installing it now as we speak...
 

RAY HUNTER
Firmware Engineer

ENTERASYS NETWORKS 

-Original Message-
From: Matthew Luchak [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 09, 2002 12:26 PM
To: [EMAIL PROTECTED]
Subject: [PHP] sablotron XMl XSLT 


PHP 4.1.2
SunOS web-unix1 5.7 
apache_1.3.22
 
 
I'm trying to parse XML/XSL on a shared  box and I'm using :
 
$xslthandler = xslt_create() or die(Can't create XSLT handle!);
 
to test for sablotron.  Unfortunately I just get a Call to undefined
function error which I guess means no - there's no sablotron installed -
but I was wondering if there is another way to test for Sablotron?  I need a
little quicker turnaround time then passing from voicemail to voicemail at
my ISP ;)
 
thanks,

 
Matthew Luchak 
Webmaster 
Kaydara Inc. 
[EMAIL PROTECTED] 

 




RE: [PHP] php and wml

2002-04-09 Thread Hunter, Ray

You can you just need to have php handle the wml pages and supply the
correct headers...



RAY HUNTER
Firmware Engineer

ENTERASYS NETWORKS 

-Original Message-
From: Starman [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 09, 2002 2:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP] php and wml


Can anyone tell me if it is possible to write php scripts withing wml pages?

I need to design a wireless site (wap) and the form will be writing to a
mysql db using php.

Is there any difference in doing this than with html?

TIA

Milt Rodriguez
Stellar Design
http://stellardesign.com



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



RE: [PHP] PHP FAQ (again)

2002-04-03 Thread Hunter, Ray

I am in total agreement with Justin on this one.  Many of the posters use
need help,  newbie needs help , etc.  We need to have some form of FAQ
with detailed instructions on how to post so that I do not have to ask;
What OS are you using, what version of php, which database, etc  This gets
tedious and time consuming.  Not to mention the amount of posts.  

I've been watching Rick Emery give out tons of help, but many of his first
questions are about clarifications on what a users is needing help on.  Some
extra detail will provide faster and reliable help.

Just some extra thoughts here...

I now some mailing lists will not even reply if you do not follow specific
criteria when you post...



Thank you,

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


 -Original Message-
 From: Justin French [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, April 03, 2002 5:58 AM
 To: php
 Subject: [PHP] PHP FAQ (again)
 
 
 I saw this mentioned a few times recently, but I'd really 
 like to put out the call again.
 
 This group needs an FAQ *specific to this list* which helps 
 new members / posters integrate seamlessly... really, I'm 
 sick of seeing non specific subject lines like please help, 
 and I'm sure we're all sick of typing replies to frequent 
 questions, usually with a response like I think you should 
 check the manual before posting.
 
 I'm sure we're also sick of posts which don't ask specific 
 questions (what's wrong with my 150 lines of code??).
 
 
 When I first joined this group, I too was unaware of what was 
 considered a good post (and perhaps still, I don't know!!), 
 but some form of welcome email when people join the group, or 
 a reminder email sent weekly which keeps the peace on this 
 list will not go astray.
 
 
 Perhaps it could:
 
 - include some information on how to use the online 
 manual/website (and the simplicity of searching)
 
 - cover some frequently asked topics which can be summarised 
 with a link to a few manual pages or external references (how 
 many times do we see user authentication, sessions, mail 
 attachments, html email, header redirect and 
 javascript in the subject line  Usually, the writer 
 asks a very generic question, seeks references and tutorials, 
 or doesn't know what function to search for in the manual, or 
 they're just lazy.  A quick reference to these frequent 
 topics will save a heap of time for all concerned.
 
 - remind people that there is an archive to this list that 
 can be searched (and include the URL)
 
 
 Some of the posts (including OT posts, ones with meaningless 
 subject lines, ones which ask insane questions, etc etc) in 
 this group would be laughed at by members of other 
 programming language groups (Perl for example).
 
 As PHP grows as a language, and as the community of users 
 grows with it, this list is going to become higher volume.  
 The FAQs are going to become more frequent, and the poor use 
 / misuse of this list will grow with it.
 
 I can already see frustration growing in this list.
 
 
 I'd like to think that the list and it's standards can be 
 raised a little, to make it a more valuable resource for all 
 users, without the grief.
 
 I attach as a reference a text file FAQ which is posted 
 frequently to the newsgroup 
 comp.infosystems.www.authoring.stylesheets.  It provided me 
 with an excellent resource when I first joined the group, and 
 does help the list stay somewhat moderated and clean.
 
 I'm not saying it's exactly what we need, but I do feel it's 
 time we do something.
 
 
 Sure, new users *could* find the archive by hunting, the 
 *could* get flammed for a bad post, poor question, or for not 
 checking the manual first, but wouldn't it be a smarter move 
 long term for some sort of guideline/FAQ to be incorporated 
 into the list upon subscription, and perhaps on a weekly basis??
 
 
 I'm happy to help in any way I can, but don't consider myself 
 guru enough to develop this from scratch.
 
 
 Apologies for the long post, especially since this topic has 
 been kicked around before.
 
 
 Regards,
 
 Justin French
 
 Creative Director
 http://Indent.com.au
 
 
 



RE: [PHP] PHP FAQ (again)

2002-04-03 Thread Hunter, Ray

It's not so much the newbish questions but the determination of the part of
the newbie to find an answer.  I have found many of my answers on google or
the web.  Some extra searching is required.  Many of the questions can be
answered if some extra searching where involved.  However, when you ask if
they have researched some of the information and the reply is no...Then I
say RTFM and STFI...

This is a general list and newbie questions should be asked here...However,
newbies need to post adequate information for an adequate response...

Thank you,

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


 -Original Message-
 From: Andrew Brampton [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, April 03, 2002 7:04 AM
 To: php
 Subject: Re: [PHP] PHP FAQ (again)
 
 
 Small flaw in this. The new user would have to actually go 
 and read the FAQ... I'm a member of many lists, and I've 
 never read the FAQ about the list... but I've allways been 
 aware that posting newbish questions is frowned on, so I never did so.
 
 So unless the FAQ was placed infront of them when signing up 
 to this list (if they actually sign up), then it might not 
 get the results you expect.
 
 But if it stops just 1 newbish post a year, then its worth it..
 
 Andrew
 - Original Message -
 From: Justin French [EMAIL PROTECTED]
 To: php [EMAIL PROTECTED]
 Sent: Wednesday, April 03, 2002 1:57 PM
 Subject: [PHP] PHP FAQ (again)
 
 
  I saw this mentioned a few times recently, but I'd really 
 like to put 
  out the call again.
 
  This group needs an FAQ *specific to this list* which helps new 
  members / posters integrate seamlessly... really, I'm sick 
 of seeing 
  non specific subject lines like please help, and I'm sure 
 we're all 
  sick of typing replies to frequent questions, usually with 
 a response 
  like I think you should check the manual before posting.
 
  I'm sure we're also sick of posts which don't ask specific 
 questions 
  (what's wrong with my 150 lines of code??).
 
 
  When I first joined this group, I too was unaware of what was 
  considered a good post (and perhaps still, I don't 
 know!!), but some 
  form of welcome email when people join the group, or a 
 reminder email 
  sent weekly which keeps the peace on this list will not go astray.
 
 
  Perhaps it could:
 
  - include some information on how to use the online manual/website 
  (and
 the
  simplicity of searching)
 
  - cover some frequently asked topics which can be summarised with a 
  link
 to
  a few manual pages or external references (how many times do we see 
  user authentication, sessions, mail attachments, 
 html email, 
  header redirect and javascript in the subject line  
 Usually, 
  the writer
 asks
  a very generic question, seeks references and tutorials, or doesn't 
  know what function to search for in the manual, or they're 
 just lazy.  
  A quick reference to these frequent topics will save a heap of time 
  for all concerned.
 
  - remind people that there is an archive to this list that can be 
  searched (and include the URL)
 
 
  Some of the posts (including OT posts, ones with meaningless subject
 lines,
  ones which ask insane questions, etc etc) in this group would be 
  laughed
 at
  by members of other programming language groups (Perl for example).
 
  As PHP grows as a language, and as the community of users 
 grows with 
  it, this list is going to become higher volume.  The FAQs 
 are going to 
  become more frequent, and the poor use / misuse of this 
 list will grow 
  with it.
 
  I can already see frustration growing in this list.
 
 
  I'd like to think that the list and it's standards can be raised a 
  little, to make it a more valuable resource for all users, 
 without the 
  grief.
 
  I attach as a reference a text file FAQ which is posted 
 frequently to 
  the newsgroup comp.infosystems.www.authoring.stylesheets.  
 It provided 
  me with an excellent resource when I first joined the 
 group, and does 
  help the
 list
  stay somewhat moderated and clean.
 
  I'm not saying it's exactly what we need, but I do feel 
 it's time we 
  do something.
 
 
  Sure, new users *could* find the archive by hunting, the *could* get
 flammed
  for a bad post, poor question, or for not checking the 
 manual first, 
  but wouldn't it be a smarter move long term for some sort of 
  guideline/FAQ to
 be
  incorporated into the list upon subscription, and perhaps 
 on a weekly 
  basis??
 
 
  I'm happy to help in any way I can, but don't consider myself guru
 enough
  to develop this from scratch.
 
 
  Apologies for the long post, especially since this topic has been 
  kicked around before.
 
 
  Regards,
 
  Justin French
  
  Creative Director
  http://Indent.com.au
  
 
 
 
 
 --
 --
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: 

RE: [PHP] RE: PHP/MySQL/XML

2002-04-01 Thread Hunter, Ray

One thing you need to thing about is if you are going to us DTDs.  If you
are and they specify that you need the ext/ext elements then it is best
to add a space when nothing is contained in $ext...



Thank you,

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


 -Original Message-
 From: Erik Price [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, April 01, 2002 4:12 PM
 To: Jay Fitzgerald
 Cc: [EMAIL PROTECTED]
 Subject: Re: [PHP] RE: PHP/MySQL/XML
 
 
 
 On Monday, April 1, 2002, at 05:09  PM, Jay Fitzgerald wrote:
 
  OkThanks to all those who are helping me (sorry for
  cross-posting)...
 
 That's okay.  This script looks a lot better -- because you 
 can actually 
 -do- something with the output!  :)
 
  My scripts are working great except for one thingwhen it queries
  the db there are some fields that have a NULL value, thus when it 
  writes the XML file it does this:
  null_field/null_field
 
 Yep.
 
  What I would like to do is either place an nbsp; in the 
 XML tags for
  all of these NULL fields - can I do an if / else statement 
 in the code 
  I am using below??
 
 Yep.  But look at the point where you have placed your pseudo-if/else 
 statement.  Read through this script as though you were the PHP 
 processor -- what would happen?  Well, you'd open the file for 
 appending, you'd write your XML declaration and stylesheet PI, you'd 
 write a few element names, and then you'd write a name pulled 
 from your 
 database.  Fine, everything looks good up to this point... (continued 
 below)
 
  $phone_list = fopen(/usr/local/apache2/htdocs/test/phone_list.xml,
  w+);
 
  fwrite($phone_list, ?xml version=\1.0\
  encoding=\ISO-8859-1\?\n);
  fwrite($phone_list, ?xml-stylesheet type=\text/xsl\ 
  href=\phone_list.xsl\?\n\n);
 
  fwrite($phone_list, test\n);
  fwrite($phone_list, \tphone_list\n);
 
  while ($row = mysql_fetch_array($sql_result))
  {
  $name = $row[name];
  $ext = $row[ext];
  $title = $row[title];
  $home = $row[home];
  $pager = $row[pager];
  $cell = $row[cell];
  $email = $row[email];
 
  fwrite($phone_list, \t\temployee\n);
  fwrite($phone_list, \t\t\tname);
  fwrite($phone_list, $name);
  fwrite($phone_list, /name\n);
 
 Here is where you're going to run into a problem.  Take a 
 close look at 
 what would happen if there is an $ext, and what would happen 
 if there is 
 no $ext (in other words, simulate the if/else statement in your mind):
 
  fwrite($phone_list, \t\t\text);
  // would need an if / else statement here
  fwrite($phone_list, $ext);
  // end if / else statement here
  fwrite($phone_list, /ext\n);
 
 See what's wrong?  Regardless of whether or not there is an if/else 
 statement, you are still going to do the following two lines of code:
 
  fwrite($phone_list, \t\t\text);
 
  fwrite($phone_list, /ext\n);
 
 Because your if/else statement does not encompass these lines.  What 
 will the effect of this be?  I'll show you:
 
 if there is an $ext
   ext123/ext
 if there is no $ext
   ext/ext
 
 So, even if you use the pseudo if/else statement, you will 
 still end up 
 with a possibly empty ext element.  If you changed your if/else 
 statement to encompass this entire section of the code, however, then 
 you can write ext123/ext if there is an $ext variable or you can 
 have nothing happen if there is no $ext.  Here is what it would look 
 like in pseudocode:
 
  // would need an if / else statement here
  fwrite($phone_list, \t\t\text);
  fwrite($phone_list, $ext);
  fwrite($phone_list, /ext\n);
  // end if / else statement here
 
 Does that make sense?  This way, if there's no $ext variable, 
 you don't 
 end up writing the ext and /ext element tags.  So how do you 
 construct the actual statement?  Well, to be honest with you, I don't 
 think you want to use an if/else statement at all -- a simple if 
 statement will do the trick.  It works just like this:
 
if (!empty($ext)) {
  fwrite($phone_list, \t\t\text);
  fwrite($phone_list, $ext);
  fwrite($phone_list, /ext\n);
}
 
 The empty() function (actually a language construct, but the 
 difference isn't important) tests to see if there is actually 
 any value 
 attached to the $ext variable.  And the exclamation point inverts the 
 boolean value of the expression, meaning if this is NOT 
 true.  So the 
 if statement above simply says if the value held by $ext is 
 not empty, 
 write three tabs + ext + $ext + /ext to the file pointed to by 
 $phone_list.
 
 The rest of your code looks good 

RE: [PHP] Program Looping ?

2002-03-29 Thread Hunter, Ray

You need to also make sure that you change the script execution time allowed
in the php.ini file to 5 minutes or more or else you will get a time out
error.



Thank you,

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


 -Original Message-
 From: Jason Caldwell [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, March 28, 2002 11:56 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Program Looping ?
 
 
 I've written a script that checks my email.  However, when I 
 run the script (from the command line) -- I want it to loop 
 with a 5 minute delay and the ability to stop the program 
 anytime by pressing a key on the keyboard (say) the ~ key.
 
 Anyone know how to do this?
 
 ?
 
 function check_mail()
 {
 // my email code is here
 }
 
 check_mail();
 
 ?
 
 thanks.
 jason
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 



RE: [PHP] RADIUS - supported in PHP?

2002-03-28 Thread Hunter, Ray

What are you trying to do with radius and php?



Thank you,

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


 -Original Message-
 From: Benji Spencer [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, March 28, 2002 6:35 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] RADIUS - supported in PHP?
 
 
  From the initial documentation I have found, the answer to 
 my question is 
 No, however I am just seeking confirmation of it.
 
 Does PHP support RADIUS?
 
 If not, does anyone know of any scripts/classes for PHP which 
 deal with RADIUS?
 
 thanks
 
 benji
 
 ---
 Ben Spencer
 Web Support
 [EMAIL PROTECTED]
 x 2288
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 



RE: [PHP] RADIUS - supported in PHP?

2002-03-28 Thread Hunter, Ray

Actually, that is more of a Kerberos system that you are thinking of.

Here is some info on radius:

Taken from rfc 2865 Remote Authentication Dial In User Service (RADIUS).

Key features of RADIUS are:

   Client/Server Model

  A Network Access Server (NAS) operates as a client of RADIUS.  The
  client is responsible for passing user information to designated
  RADIUS servers, and then acting on the response which is returned.

  RADIUS servers are responsible for receiving user connection
  requests, authenticating the user, and then returning all
  configuration information necessary for the client to deliver
  service to the user.

  A RADIUS server can act as a proxy client to other RADIUS servers
  or other kinds of authentication servers.

   Network Security

  Transactions between the client and RADIUS server are
  authenticated through the use of a shared secret, which is never
  sent over the network.  In addition, any user passwords are sent
  encrypted between the client and RADIUS server, to eliminate the
  possibility that someone snooping on an unsecure network could
  determine a user's password.


Basically there is a encryption by using the shared secret, however that
secret is never passed across the network.  The only tough problem here is
that you really need to know what is coming in each packet.  There is
encryption is each packet that must be dealt with.  To do authentication
with radius you need to create sockets and communication back and forth with
the NAS server.  This can be some what more complex and you need a more
powerful language than php.  I use c and sometimes c++.  I like to use php
for the snmp functionality that allows me to query the radius mibs on
network devices.  This gives me authentication and accounting information.

I suggest you read up on these rfcs: 2618, 2619, 2620, 2621, 2865, 2866,
2867, 2869, and 3162.


You could also try writing a radius extension for php?




Thank you,

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


 -Original Message-
 From: Benji Spencer [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, March 28, 2002 7:07 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [PHP] RADIUS - supported in PHP?
 
 
 
 What are you trying to do with radius and php?
 
 I really don't know yet. We are looking at implementing RADIUS as a 
 authentication scheme. I only roughly understand RADIUS, 
 which doesn't help 
 much. I looked at the RADUIS Apache module, which is where I 
 am gaining 
 most of my knowledge. It appears to function much like any other 
 authentication scheme (at least to some extent) like LDAP or using a 
 database (or NT Domain...or...or). As Apache can 
 authentication against 
 RADIUS, I assumed that such a thing could also be achieved via PHP.
 
 Currently we have an Intranet Portal which authenticates 
 against LDAP. We 
 would want to change this over to RADIUS if we implemented 
 RADIUS. How this 
 is done, If it can be done, and what does it take are all 
 questions which 
 are up in the air at this point.
 
  From my understanding, RADIUS is more or less a ticketing 
 mechanism. It is 
 configured on the back end to check various sources (files, 
 SQL, LDAP), and 
 then provides a ticket if authentication is passed. It is 
 this ticked which 
 is passed around by the client and used to authenticate to the same 
 resource, as well as other resources (if you have a valid 
 ticket, you are 
 not asked for username/password info?).
 
 How close am I in understanding this, as well as making this 
 all work in PHP?
 
 thanks..
 
 benji
 
 ---
 Ben Spencer
 Web Support
 [EMAIL PROTECTED]
 x 2288
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 



RE: [PHP] A Newbie needs help with his first Class

2002-03-22 Thread Hunter, Ray

The way that Warwick has it set up is fine as long as you create the new in
the script that is being called by the browsers so that you can access the
class variables...I do not see the need to change the function name unless
it conflicts with any predefined variables.



Thank you,

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


 -Original Message-
 From: Rick Emery [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, March 22, 2002 6:57 AM
 To: 'Stampe, Lars'; 'Don'; php
 Subject: RE: [PHP] A Newbie needs help with his first Class
 
 
 Don's original declaration is correct.  It refers to a 
 constructor.  Without a parameter, the new() will fail.
 
 -Original Message-
 From: Stampe, Lars [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 22, 2002 7:53 AM
 To: 'Don'; php
 Subject: RE: [PHP] A Newbie needs help with his first Class
 
 
 And then replace
 
 $global = new Globals(/staging_area/phase-2/);
 
 with
 
 $global = new Globals;
 $global-someting else(/staging_area/phase-2/);
 
 Lars
 
 -Original Message-
 From: Stampe, Lars [mailto:[EMAIL PROTECTED]]
 Sent: 22 March 2002 13:46
 To: 'Don'; php
 Subject: RE: [PHP] A Newbie needs help with his first Class
 
 
 Hi,
 
 Try and rename the function in your class to something else 
 that the class name, and let me know what happens!
 
 Lars
 
 -Original Message-
 From: Don [mailto:[EMAIL PROTECTED]]
 Sent: 22 March 2002 13:01
 To: php
 Subject: [PHP] A Newbie needs help with his first Class
 
 
 Hi,
 
 I'm trying to write my first class.  Here is the code 
 contained in a file called globals.php:
 
 ?PHP
 class Globals
 {
   var $gDISPLAY  = 1;/* Display graphic - no rollover */
   var $gROLLOVER = 2; /* Display graphic with rollover */
   var $root_path;/* Path to document root directory */
   var $relative_path;/* Path from document root 
 to relative root
 directory */
 
   function Globals($start_dir)
   {
 if ( strlen($DOCUMENT_ROOT) == 0) {
$this-$root_path = /;
 } else {
$this-$root_path = $DOCUMENT_ROOT;
 }
 $this-$relative_path = $this-$root_path . $start_dir;
   }
 }
 
 $global = new Globals(/staging_area/phase-2/);
 ?
 
 
 Within my html page, I am tesing the class by trying the 
 following: ?php require(globals.php); echo 
 $global-root_path . br; echo $global-relative_path . br; ?
 
 However, nothing is being written to my browser.  Is there a 
 problem with the code?
 
 Thanks,.
 Don
 
 -- 
 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] Strange problem passing variables

2002-03-22 Thread Hunter, Ray

Try using $_GET['varnamehere']

Ray Hunter

-Original Message-
From: Jean-Arthur Silve [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 22, 2002 8:05 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Strange problem passing variables

Hi,

A friend of me use PHP4.1.2 on Linux+Apache

Here is the problem :

He pass a parameter using GET method :

http://www.domain.com/test.php?TESTV=1234


test.php is :

?php
echo $TESTV.BR;
echo $HTTP_GET_VARS[TESTV].BR;
phpinfos();
?


But in the script all variables are empty ($TESTV and
$HTTP_GET_VARS[TESTV]).

phpinfos() shows QUERY_STRING environment variable is empty...

any idea ??

Thank you !







EuroVox
4, place Félix Eboue
75583 Paris Cedex 12
Tel : 01 44 67 05 05
Fax : 01 44 67 05 19
Web : http://www.eurovox.fr



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



RE: [PHP] cron with php as apache module

2002-03-22 Thread Hunter, Ray

Yeah, 

Compile php first as CLI, move the contents of the bin directory to where
you want them, and then compile php again for the apache module.

In the bin directory you will have a php executable file which you can use
for your cli apps.

In your php files that you want to run as crons then add this before the
?php

#!/path to php/php

Example on my system
#!/usr/bin/php
?php

Stuff here

?
/* EOF */



Thank you,

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


 -Original Message-
 From: Paul Roberts [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, March 22, 2002 12:00 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] cron with php as apache module
 
 
 I want to run a php script via a crontab, (i can set up the 
 crontab etc).
 
 this is a Linux server and php is installed as an apache 
 module, is there any way to run the php script via cron.
 
  the build details are 
 
   Configure Command './configure' 
 '--with-apxs=/usr/sbin/apxs' '--with-mysql' 
 '--enable-track-vars' '--enable-versioning' '--enable-bcmath' 
 
 
 
 Paul Roberts
 [EMAIL PROTECTED]
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 



[PHP] Sockets and Telnet

2002-03-19 Thread Hunter, Ray

Has anyone created a telnet session in php with sockets and can give me some
help on setting one up?



Thank you,

Ray Hunter
Firmware Engineer I

ENTERASYS NETWORKS

Phone:  801.887.9888
Fax:801.972.5789
Email:  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
www:www.enterasys.com http://www.enterasys.com 






RE: [PHP] Two easy HTML/CSS questions

2002-03-18 Thread Hunter, Ray

Answers:

1. Yes you can do it with css.  http://www.w3schools.com/css/default.asp

2. The text field area is defined by the browse...You cannot change the size
of the actual box that is the text field...



Thank you,

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 18, 2002 11:18 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Two easy HTML/CSS questions


I know I shouldn't be asking these questions on this mailing list but you
guys are ALWAYS EXTREMELY helpful...
 
1) I want a a text link to change color when the mouse is hovering over top
of it.  How do I do this?  Im sure it's some CSS thingy.
 
2) Is it possible to make a text field smaller when using forms. 
Let's say I'm using font size 1, I want the text field to be just as small
as the rest of text.
 
Thanks again



RE: [PHP] Two easy HTML/CSS questions

2002-03-18 Thread Hunter, Ray

Actually,

If I understand correctly, you want the actual text field box to be the same
size as the text (as in height)...You can only change the width of the text
field which is done by size= and this is based on characters...

Example:  input type=text name=stuff size=25  

Then the width of the text field will be 25 characters...This is for the
text and password fields...


Thank you,

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Darren Gamble [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 18, 2002 11:32 AM
To: 'Hunter, Ray'; 'Phil Schwarzmann'; [EMAIL PROTECTED]
Subject: RE: [PHP] Two easy HTML/CSS questions


Good day,

Just to clarify, yes, you can set the size of a text field, as well as its
color, text font, border, and so on.  This is also done with css and is
outside the scope of this mailing list.


Darren Gamble
Planner, Regional Services
Shaw Cablesystems GP
630 - 3rd Avenue SW
Calgary, Alberta, Canada
T2P 4L4
(403) 781-4948


-Original Message-
From: Hunter, Ray [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 11:31 AM
To: 'Phil Schwarzmann'; [EMAIL PROTECTED]
Subject: RE: [PHP] Two easy HTML/CSS questions


Answers:

1. Yes you can do it with css.  http://www.w3schools.com/css/default.asp

2. The text field area is defined by the browse...You cannot change the size
of the actual box that is the text field...



Thank you,

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 18, 2002 11:18 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Two easy HTML/CSS questions


I know I shouldn't be asking these questions on this mailing list but you
guys are ALWAYS EXTREMELY helpful...
 
1) I want a a text link to change color when the mouse is hovering over top
of it.  How do I do this?  Im sure it's some CSS thingy.
 
2) Is it possible to make a text field smaller when using forms. 
Let's say I'm using font size 1, I want the text field to be just as small
as the rest of text.
 
Thanks again



RE: [PHP] SERVER INFO

2002-03-15 Thread Hunter, Ray

Check out the Linux howto's at http://www.linuxdoc.org/docs.html#howto

This will help you set up a server and get online...



Thank you,

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Dani [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 15, 2002 11:42 AM
To: [EMAIL PROTECTED]
Subject: [PHP] SERVER INFO
Importance: High


Hi all,

I appologise if this is off topic but I don't know who to ask. I hope you
guys don't mind.

Does any body know where I can find information about the steps of setting
up a server(LINUX) so that people can find a certain URL address?

I want to sent up a small server for myself from home with my machine but I
don't know how to make it so that the web pages that I put in my server
accessable by other people around the world.

do I have to connect my modem into my phone line (online) all the time
or...???

Does my question make any sense?

any help is welcome.

regards,
Dani


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



RE: [PHP] passing values

2002-03-13 Thread Hunter, Ray

Are you using the post form method to post this variable to the next page.
The value $_POST['inp'] is not present or set...there is a null value there.
You will need to set the value with a post inorder to access it with the
predefined variable $_POST...



Thank you,

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: John Gurley [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, March 13, 2002 6:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP] passing values


this is still not working for passing a value from one page to another:

?php
echo '
input name=inp type=hidden value='. $_POST['inp']. '
';
?

When I look at the source this appears:
input name = inp type = hidden value = 

which I take to mean that it does not know what $inp is. could it be 
something with my browser, or am I still doing something wrong (I wouldn't 
be a bit surprised)

Thanks
John

_
Join the world's largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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



RE: [PHP] Newbie Question

2002-03-13 Thread Hunter, Ray

What type of OS are you running this application on and how was php
compiled?



Thank you,

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Greg [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, March 13, 2002 6:47 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Newbie Question


I have an app that worked with mySQL, but now I'm trying to make it use SQL
Server. The function that connected to to the mySQL was:
 
mysql_pconnect($db_host, $db_user, $db_pass) or die(Unable to connect to
SQL server);
 
I tried to change it to sql_pconnect($db_host, $db_user, $db_pass) or
die(Unable to connect to SQL server); but I get an error that the
function doesn't exist. I'm sure it's something simple, but what's the php
function that will let me connect to the SQL Server?



RE: [PHP] How to access arrays from $GLOBAL?

2002-03-13 Thread Hunter, Ray

Where is some good documentation on how $GLOBALS works and what is really
going on in the background?


Thank you,

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, March 13, 2002 9:53 AM
To: Richard Davey
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] How to access arrays from $GLOBAL?


I don't understand why you think it is illogical.  How else would you
dereference a multi-dimensional array?

On Wed, 13 Mar 2002, Richard Davey wrote:

 Mike Ford [EMAIL PROTECTED] wrote in message 
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED].
 ..
  $GLOBALS['mtxt'][1]

 Fantastic :)

 That's totally illogical but it works a treat.
 PHP has some weird syntax rules sometimes!

 Cheers,

 Rich
 --
 Fatal Design
 http://www.fatal-design.com
 Atari / DarkBASIC / Coding / Since 1995



 --
 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] Execute php script inside an HTML page???

2002-03-12 Thread Hunter, Ray

Yes, 

However, you need to add the .html file extension to the php parser so that
it parses the .html file.



Thank you,

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Lic. Carlos A. Triana Torres [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 12, 2002 1:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Execute php script inside an HTML page???


Hello all,
Can I execute a php script from an HTML document? I mean, with the file
named with html extension? Thanks



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



RE: [PHP] Novata Como inicio??

2002-03-11 Thread Hunter, Ray

Que es su problema?



Thank you,

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Jenny Fox [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 11, 2002 9:41 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Novata Como inicio??


Primeramente alguien sabe español???, estoy iniciandome en PHP entre a dicha
página, pero me quede truncada en la instalación, alguien me puede dar una
mano Saludos de
  Jenny León




RE: [PHP] php.ini ...

2002-03-11 Thread Hunter, Ray

Before you installed did you make a copy of the php.ini file...?  If you did
not then it might have been overwritten with the new installation.  

Sounds like you did the basic installer installation.  You might need to
download the zip file and do a manual installation to get the required data.



Thank you,

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Marcel Besancon [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 11, 2002 10:18 AM
To: [EMAIL PROTECTED]
Subject: [PHP] php.ini ...


Hi, it's me again,

when I used the PHP 4.0.6 I had a php.ini with a lot of entries. Now, at
Version 4.1.1, there's a php.ini with this content:


-
; php.ini for PEAR tests
include_path=..
[mail function]
SMTP= localhost ; for Win32 only
sendmail_from= [EMAIL PROTECTED] ; for Win32 only
upload_tmp_dir = C:\PHP\uploadtemp  ; temporary directory for HTTP uploaded
files (will use system default if not specified) [Session]
session.save_path= C:\PHP\sessiondata; argument passed to save_handler
[PHP]
error_reporting= E_ALL  ~(E_NOTICE | E_USER_NOTICE | E_WARNING |
E_COMPILE_WARNING | E_CORE_WARNING | E_USER_WARNING) ; display all errors


-

Now, where can I find the entries for the extensions that you should be
used? I want to use the gd-library. I copied the DLL to the include-path (I
don't know if that's the correct way !!!), but now I can't tell PHP to use
the DLL!!! Please help me !!!

Marcel

--
registered Fli4l-User #0388



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



RE: [PHP] php CLI

2002-03-08 Thread Hunter, Ray

What type of system are you running this on?


Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: matthew clay shultz [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 08, 2002 12:38 PM
To: [EMAIL PROTECTED]
Subject: [PHP] php CLI


hi,

when i run script from the CLI, it doens't recognize the oracle library
functions.  why is tthis and what can i do aobut it?

thanks everyone!

matt


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



RE: [PHP] Script Debug.

2002-03-07 Thread Hunter, Ray

Also you can set up php to show you all warnings and display them for you.
In the php.ini file you can change some values so that you can do some
debugging.

Here are the values you can change:

display_errors = On
display_startup_errors = On

or

error_log = syslog

or

error_log = filename


Having display_errors on will display errors to you when you run them.
Display_startup_errors will show startup errors that php has if any.  Or you
can have all errors go to syslog or have error_log = filename go to a
specific file for you.  This has helped me debug many scripts that did not
display errors for me.





Thank you,

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: DARCY,MATTHEW (Non-HP-UnitedKingdom,ex2)
[mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 07, 2002 7:52 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Script Debug.


Hi,

someone was helping me with this last night at home, but now I am in work I
am still struggling.

I have a user_auth script what works fine, it registers the username and
password as session variables then matches them to the rows entered in the
database - if they don't match it unregisters the session vars, if it does i
would like to ti register a new sesson var called user_auth_level (ie how
much authorisation this user has) this is the part of the script that does
that. When I print the $user_auth_level I get null ? can any one help. 

thanks, 

Matt.



else {
session_register(user_auth_level);
$auth_select = select account_admin_level from account_details where
username='$login_username'; $run_auth_select = mysql_query($auth_select);
$run_auth_select_results = mysql_fetch_row($run_auth_select);

$user_auth_level = $run_auth_select_results[0];

?

HTML
HEAD/HEAD
BODY BGCOLOR=black
FONT FACE=arial COLOR=white SIZE=3
H1 Access Granted /H1
Welcome you are fully logged into testsite.com
your access level is ? print $user_auth_level ?

/BODY
/HTML
?php
exit;
}


?

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



RE: [PHP] Can I authenicate user with the accounts in passwd and shadow??

2002-03-05 Thread Hunter, Ray

You might want to try setting up an LDAP, kerberos, or NIS system before
using the passwd and shadow file.  There are some security issues that you
might not be aware of...

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 05, 2002 8:21 AM
To: Zenith
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Can I authenicate user with the accounts in passwd and
shadow??



On Monday, March 4, 2002, at 07:51  PM, Zenith wrote:

 But I wonder if I can check the user account against with the 
 /etc/passwd, i.e. use the system accounts.


You can do this I think.  I just saw an Oreillynet article about it, I 
think.  If this link doesn't tell you how, then I don't know.

http://www.onlamp.com/pub/a/php/2001/07/26/encrypt.html



HTH,

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] hmm.. more trouble with telnet.

2002-03-01 Thread Hunter, Ray

It did not find it with your classpath...

Try using locate or slocate, this should find it...

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Sean Kennedy [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 01, 2002 10:28 AM
To: [EMAIL PROTECTED]
Subject: [PHP] hmm.. more trouble with telnet.


Hello,

When I type in 'whereis mysql' it says 'mysql:' so what does that mean?

-Sean



RE: [PHP] PHP and Java

2002-03-01 Thread Hunter, Ray

Is the libphp_java.so located in your apache libexec directory?



Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Proyecto de Grado [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 01, 2002 10:49 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP and Java


 I have Java1.2 , php4.1.1 and apache 1.3.22, sun solaris7

   I did compile php with-java

   1) Java section in php.ini
   [Java]
   java.home = /usr/java1.2
   java.class.path = /usr/local/lib/php/php_java.jar
   java.library=/usr/java1.2/jre/lib/sparc/libjvm.so
   java.library.path = /usr/local/lib/php

   2) prueba.php
   html
   body
   ?
 $system = new Java();
 print Java version=.$system-getProperty(java.version). br\n;
 print Java vendor=.$system-getProperty(java.vendor). p\n\n;
 print OS=.$system-getProperty(os.name). .
 $system-getProperty(os.version). on .
 $system-getProperty(os.arch). br\n;

 $formatter = new Java(java.text.SimpleDateFormat,
   ,  dd,  'at' h:mm:ss a );

 print $formatter-format(new Java(java.util.Date)).\n;

   ?
   html


   the error in browser is:
   Fatal error: Cannot instantiate non-existent class: java in
   /usr/local/apache/htdocs/remotemanager/users/java.php on line 4

 3)  when I run apache in error.log

  PHP Warning:  Unable to load dynamic library './libphp_java.so' -
 ld.so.1:
  /usr/ local/apache/bin/httpd: fatal: ./libphp_java.so: open failed: No
such  file  or directory in Unknown on line 0
  [Fri Mar  1 12:06:01 2002] [notice] Apache/1.3.22 (Unix) PHP/4.1.1
  configured --
   resuming normal operations
  [Fri Mar  1 12:06:01 2002] [notice] Accept mutex: fcntl (Default: fcntl) :



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



RE: [PHP] PHP and Java

2002-03-01 Thread Hunter, Ray

If you are running this on apache then it needs to be in the libexec
directory of apache where it looks for the *.so modules that are to be
loaded.

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Proyecto de Grado [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 01, 2002 10:56 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] PHP and Java


no, it isn't. it is in usr/local/lib/php/modules

 Is the libphp_java.so located in your apache libexec directory?



 Ray Hunter
 Firmware Engineer

 ENTERASYS NETWORKS


 -Original Message-
 From: Proyecto de Grado [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 01, 2002 10:49 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] PHP and Java


  I have Java1.2 , php4.1.1 and apache 1.3.22, sun solaris7

I did compile php with-java

1) Java section in php.ini
[Java]
java.home = /usr/java1.2
java.class.path = /usr/local/lib/php/php_java.jar
java.library=/usr/java1.2/jre/lib/sparc/libjvm.so
java.library.path = /usr/local/lib/php

2) prueba.php
html
body
?
  $system = new Java();
  print Java version=.$system-getProperty(java.version). br\n;
  print Java vendor=.$system-getProperty(java.vendor). p\n\n;
  print OS=.$system-getProperty(os.name). .
  $system-getProperty(os.version). on .
  $system-getProperty(os.arch). br\n;

  $formatter = new Java(java.text.SimpleDateFormat,
,  dd,  'at' h:mm:ss a );

  print $formatter-format(new Java(java.util.Date)).\n;

?
html


the error in browser is:
Fatal error: Cannot instantiate non-existent class: java in
/usr/local/apache/htdocs/remotemanager/users/java.php on line 4

  3)  when I run apache in error.log

   PHP Warning:  Unable to load dynamic library './libphp_java.so' -
  ld.so.1:
   /usr/ local/apache/bin/httpd: fatal: ./libphp_java.so: open failed: 
 No such  file  or directory in Unknown on line 0
   [Fri Mar  1 12:06:01 2002] [notice] Apache/1.3.22 (Unix) PHP/4.1.1
   configured --
resuming normal operations
   [Fri Mar  1 12:06:01 2002] [notice] Accept mutex: fcntl (Default: 
 fcntl)
:



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



RE: [PHP] Re: PHP and Java

2002-03-01 Thread Hunter, Ray

What needs to be done here: You need to have the libphp_java.so in the
libexec directory of apache so that it can load the module.  Your error 2 is
because the module is not loaded.  Fix the 1 problem and the second will go
away.  

Plus,  I would run Tomcat and have that handle of all your java and access
php through java...This is faster and reliable.  Java in php is not as
faster or reliable.  Check the php documentation on this...

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Proyecto de Grado [mailto:[EMAIL PROTECTED]] 
Sent: Friday, March 01, 2002 11:54 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: PHP and Java




I used
LD_LIBRARYPATH=/usr/local/lib:/usr/java1.2/jre/lib/sparc:/usr/local/lib/php/
modules  
but the problems
1) PHP Warning:  Unable to load dynamic library './libphp_java.so' -
ld.so.1: 
 /usr/ local/apache/bin/httpd: fatal: ./libphp_java.so: open failed: No 
 such  file  or directory in Unknown on line 0 
 [Fri Mar  1 12:06:01 2002] [notice] Apache/1.3.22 (Unix) PHP/4.1.1 
 configured --resuming normal operations 
 [Fri Mar  1 12:06:01 2002] [notice] Accept mutex continued.

2)   Fatal error: Cannot instantiate non-existent class: java in 
 /usr/local/apache/htdocs/remotemanager/users/java.php on line 4 

follow.


 -Original Message-
 From: Proyecto de Grado [mailto:[EMAIL PROTECTED]] 
 mailto:[EMAIL PROTECTED]%5D
mailto:[EMAIL PROTECTED]%5D
 Sent: Friday, March 01, 2002 10:49 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] PHP and Java

From my experience getting Java to run w/ PHP and Apache on RedHat 7.0, 
you can try setting the LD_LIBRARY_PATH environment variable ( without 
which my Java would not run) set to the location of libjava.so, 
libjvm.so, and php_java.jar, in my case (without line feeds)

 LD_LIBRARY_PATH=/usr/java/j2sdk1.4.0/jre/lib/i386:
/usr/java/j2sdk1.4.0/jre/lib/i386/server:/usr/local/lib/php

Rich

 -Original Message-
 From: Proyecto de Grado [mailto:[EMAIL PROTECTED]] 
 mailto:[EMAIL PROTECTED]%5D
mailto:[EMAIL PROTECTED]%5D
 Sent: Friday, March 01, 2002 10:49 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] PHP and Java



no, it isn't. it is in usr/local/lib/php/modules

 Is the libphp_java.so located in your apache libexec directory?



 Ray Hunter
 Firmware Engineer

 ENTERASYS NETWORKS


 -Original Message-
 From: Proyecto de Grado [mailto:[EMAIL PROTECTED]] 
 mailto:[EMAIL PROTECTED]%5D
mailto:[EMAIL PROTECTED]%5D
 Sent: Friday, March 01, 2002 10:49 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] PHP and Java


  I have Java1.2 , php4.1.1 and apache 1.3.22, sun solaris7

I did compile php with-java

1) Java section in php.ini
[Java]
java.home = /usr/java1.2
java.class.path = /usr/local/lib/php/php_java.jar
java.library=/usr/java1.2/jre/lib/sparc/libjvm.so
java.library.path = /usr/local/lib/php

2) prueba.php
html
body
?
  $system = new Java();
  print Java version=.$system-getProperty(java.version). br\n;
  print Java vendor=.$system-getProperty(java.vendor). p\n\n;
  print OS=.$system-getProperty(os.name). .
  $system-getProperty(os.version). on .
  $system-getProperty(os.arch). br\n;

  $formatter = new Java(java.text.SimpleDateFormat,
,  dd,  'at' h:mm:ss a );

  print $formatter-format(new Java(java.util.Date)).\n;

?
html


the error in browser is:
Fatal error: Cannot instantiate non-existent class: java in
/usr/local/apache/htdocs/remotemanager/users/java.php on line 4

  3)  when I run apache in error.log

   PHP Warning:  Unable to load dynamic library './libphp_java.so' -
  ld.so.1:
   /usr/ local/apache/bin/httpd: fatal: ./libphp_java.so: open failed: 
 No such  file  or directory in Unknown on line 0
   [Fri Mar  1 12:06:01 2002] [notice] Apache/1.3.22 (Unix) PHP/4.1.1
   configured --
resuming normal operations
   [Fri Mar  1 12:06:01 2002] [notice] Accept mutex: fcntl (Default: 
 fcntl)





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



RE: [PHP] Php-gtk

2002-02-27 Thread Hunter, Ray

Try the php-gtk list.  [EMAIL PROTECTED]

I use this list all the time and they are great at answering questions...

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 26, 2002 7:38 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Php-gtk


I read the tutorial for it on the php-gtk site, but I didn't see a thing
about how to run it? 

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



RE: [PHP] SQL and PHP (socket vs TCP)

2002-02-27 Thread Hunter, Ray

What exactly are your trying to do.  TCP connections use sockets to connect.
Sockets are how you connect...

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Uros Gruber [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 27, 2002 1:08 AM
To: [EMAIL PROTECTED]
Subject: [PHP] SQL and PHP (socket vs TCP)


Hi!

Yesterday i noticed some strange thing with connection PHP to postgreSQL. I
have some script to tell me how long does it take to generate some page.

And i noticed that this time is longer if i connect to socket. Isn't this a
little strange. I know that connection to socket must be quicker that on IP.

Is there something that i don't know.
  

-- 
TIA,
 Uros


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



RE: [PHP] Freeing up locked table?

2002-02-25 Thread Hunter, Ray

This is mysql doing the locking, you will need to look into your mysql
configuration.

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Jeff Lewis [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 25, 2002 2:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Freeing up locked table?


Sometimes when using PHP/mySQL I have encountered a locked table.  I have no
idea why it occurs, I am not explicitly locking the tables but sometimes in
phpmyadmin it says in use.  Is there a way to unlock this table using
PHP?

Jeff



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



RE: [PHP] Numbered Arrays

2002-02-25 Thread Hunter, Ray

Put it in a for loop and add data to the array.

Example:
for( $i = 0; $i  24; $i++)
{
$arr[$i] = Data here.;
}

This is one of the fastests; however, there are other ways as well.


Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Phillip S. Baker [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 25, 2002 2:56 PM
To: PHP Email List
Subject: [PHP] Numbered Arrays


What is the quick way to generate numbered arrays?
I cannot seem to find it in my documentation.

Looking to generate and populate an array with the numbers 0-23.

Thanks

Phillip


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



RE: [PHP] Numbered Arrays

2002-02-25 Thread Hunter, Ray

That is probably faster than going through the for loop...

Helps if I read the documentation on Arrays.

Thanks for info Lars,


Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Lars Torben Wilson [mailto:[EMAIL PROTECTED]] 
Sent: Monday, February 25, 2002 3:05 PM
To: Phillip S. Baker
Cc: PHP Email List
Subject: Re: [PHP] Numbered Arrays


On Mon, 2002-02-25 at 13:56, Phillip S. Baker wrote:
 What is the quick way to generate numbered arrays?
 I cannot seem to find it in my documentation.
 
 Looking to generate and populate an array with the numbers 0-23.
 
 Thanks
 
 Phillip

  http://www.php.net/range

?php
error_reporting(E_ALL);

$array = range(0, 23);

print_r($array);

?


Cheers,

Torben

-- 
 Torben Wilson [EMAIL PROTECTED]
 http://www.thebuttlesschaps.com
 http://www.hybrid17.com
 http://www.inflatableeye.com
 +1.604.709.0506


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



RE: [PHP] imagecreate with Windows .exe installer

2002-02-22 Thread Hunter, Ray

You need to have that dll installed on your system.  You need to download
php-version.zip file that contains all of the dlls in it to run with.

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Mike Brackenridge [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 22, 2002 10:01 AM
To: [EMAIL PROTECTED]
Subject: [PHP] imagecreate with Windows .exe installer


php4 installed with Apache on Windows ME, using as localhost.

I am trying to use imagecreate with a version of php4 that was installed
with the binary .exe installer, php seems to be installed OK.

I have changed the .ini file line:

;extension=php_gd.dll

To

extension=php_gd.dll

But I get an error of:

Fatal error: call to undefined function: imagecreate() in c:directory

Has anyone any idea what the problem is here?

Thanks
Mike 



RE: [PHP] unable to load dynamic library etc. etc.

2002-02-21 Thread Hunter, Ray

Place all the dlls in the same directory as the php.exe file and in your
php.ini file have the extension_dir = .\ (windows).

This works for me great...

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Jeremy Reed [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 21, 2002 9:30 AM
To: [EMAIL PROTECTED]
Subject: [PHP] unable to load dynamic library etc. etc.


I keep getting this error message and cannot figure out why.  The
extension_dir is set correctly in the php.ini, I have put the .dlls into
every conceivable directory I can think of and nothing seems to work.

Anybody else had and fixed this problem?

Thanks,

Jeremy



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



RE: [PHP] php-gtk

2002-02-21 Thread Hunter, Ray

I do not know of any editors for php-gtk.  Here is the general list:
[EMAIL PROTECTED]

website: http://gtk.php.net

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Dasmeet Singh Arora [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 21, 2002 8:59 PM
To: [EMAIL PROTECTED]
Subject: [PHP] php-gtk


Hello! Can anyone tell me about sites where I can find some help and 
resources on PHP GTK. Is their any visual editor available for PHP GTK?
Thanks in advance.


















-- 



'The rose is sweetest washed with morning dew
  And love is loveliest when embalmed in tears'
  - Walter Scott
  __

  http://www.pluginJokes.com - Add Free Dynamic Jokes To Your Site.
  http://nitro.fedoxpress.com - Earn Money While You Surf The Net.
  http://www.fedoXpress.com - Free, Fast  Easy Email.
  http://freeads.fedoXpress.com - Advertise Your Site For Free.
  __



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



RE: [PHP] How to Config PHP to run snmp in php script?

2002-02-20 Thread Hunter, Ray

Raymond,

Here is the break down:

1. Download ucd-snmp tar.gz file.
2. Download openssl tar.gz file.

You will need openssl for snmp v3 for the security stuff.

Uninstall ucd-snmp if it is installed on your system.  Uninstall openssl on
your system.  
3. Untar the files...
4. In the ucd-snmp directory find the file config.h and locate the
NO_ZEROLENGTH_COMMUNITY and uncomment the line if commented and set to 1.
5. Configure, make, make install the ucd-snmp
6. Configure, make, make install the openssl

***NOTE: Do a make clean in the php directory.  Then remove the
config.cache file from the php directory.***

7. Configure php with snmp
Example:
./configure --prefix=/usr/local/php --with-snmp=/usr/local/snmp
--with-openssl=/usr/local/openssl  --with-apxs=/usr/bin/apxs
make 
make install

This should work for you.

***NOTE: THINGS I HAVE TRIED***
1. I have tried to compile php with the openssl and snmp rpms.  However, php
chokes on the openssl rpm.  
2. If you want to try it with your already installed rpms, here is the
configuration that I have tried.

./configure --prefix=/usr/local/php --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/lib --oldincludedir=/usr/include
--with-config-file-path=/etc --with-apxs=/usr/sbin/apxs --with-pear
--enable-sigchild --enable-magic-qoutes --enable-libgcc --enable-bcmath
--enable-calendar --enable-ctype --enable-dbx --enable-ftp
--enable-gd-native-ttf --enable-trans-sid --enable-shmop
--enable-ucd-snmp-hack --enable-sockets --enable-wddx --enable-yp
--enable-inline-optimization --with-xml --disable-debug --enable-pic
--enable-shared --with-regex=system --with-gettext --with-gd
--with-jpeg-dir=/usr --with-zlib --enable-safe-mode --enable-sysvsem
--enable-sysvshm --enable-debugger --with-gdbm --with-db2 --with-db3
--with-png --with-openssl=/usr/include/openssl

The problem that I faced here is that php chokes on finding the evp.h header
file in the openssl direcory.  I look in the directory and it is there.


Let me know if I can help you further.


Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Raymond Mak [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 20, 2002 3:24 AM
To: [EMAIL PROTECTED]
Subject: [PHP] How to Config PHP to run snmp in php script?


Dear All,
I am using RedHat Linux 7.2, PHP4.1 and its buitd-in apache, I had
tested that the php run correctly with apache.

According to the documentation of www.php.net, As shown below:

#
XCIII. SNMP functions
In order to use the SNMP functions on Unix you need to install the UCD SNMP
package. On Windows these functions are only available on NT and not on
Win95/98.

Important: In order to use the UCD SNMP package, you need to define
NO_ZEROLENGTH_COMMUNITY to 1 before compiling it. After configuring UCD
SNMP, edit config.h and search for NO_ZEROLENGTH_COMMUNITY. Uncomment the
#define line. It should look like this afterwards:

#define NO_ZEROLENGTH_COMMUNITY 1
 


If you see strange segmentation faults in combination with SNMP commands,
you did not follow the above instructions. If you do not want to recompile
UCD SNMP, you can compile PHP with the --enable-ucd-snmp-hack switch which
will work around the misfeature.


I had successfully complie PHP with the --enable-ucd-snmp-hack
switch but I can not find the file called config.h to edit. 
Finally, My question is 
WHERE is the file?? and IS THERE any points/steps need to look at in
order to configure PHP to run snmp in PHP script?? 
Thx All.



RE: [PHP] fdisk?

2002-02-20 Thread Hunter, Ray

It depends on who you are talking too...

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Brian V Bonini [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 20, 2002 9:12 AM
To: PHP Lists
Subject: [PHP] fdisk?


Anyone know what fdisk stands for?

I've heard both fixed disk and format disk,
I always thought the later

Sorry for for the OT post.

-B

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



RE: [PHP] question

2002-02-20 Thread Hunter, Ray

A work around is using the one of the system commands and print that way.

Check here for the program execution functions:
http://www.php.net/manual/en/ref.exec.php



Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Matthew Berwald [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 20, 2002 1:48 PM
To: [EMAIL PROTECTED]
Subject: [PHP] question


In php for windows, you can use the printer_open()
function found in the php_printer.dll.  Unfortuantly,
I run a Red hat/Apache web server and this won't work.
 Do you know of any method/package out there that I
could install on my linux machine that will all me to
print data to a printer?  Thanks for the help.


Matthew Berwald


__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com

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



RE: [PHP] Class question

2002-02-20 Thread Hunter, Ray

The whole idea with object-oriented programming is polymorphism and
encapsulation.  You do not want your classes to access global variables but
access that information through objects and messaging between objects.  If
you are referring to the use of non-member as being outside of the class,
then again you want to use objects.  

As for practice, it is up to you.  For me, no...

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Chris Boget [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 20, 2002 1:58 PM
To: PHP General
Subject: [PHP] Class question


I'm still kind of new when it comes to dealing with classes. I'm curious, is
it accepted practice for member functions of your class to:

* access global variables
* use non member, user defined functions

Chris


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



[PHP] PHP binary file

2002-02-19 Thread Hunter, Ray

Has anyone compiled php on linux and found the binary executable file?


Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS

Phone:  801 887-9888
Fax:801 972-5789
Email:  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
www:www.enterasys.com http://www.enterasys.com 




RE: [PHP] Dynamic file creation in Win NT4.

2002-02-19 Thread Hunter, Ray

You need to make sure that php has the correct permissions to access the
directory and write the file that you want it to write too...

Check out the manual for this...

Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Sridhar Moparthy [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 19, 2002 10:44 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP] Dynamic file creation in Win NT4.


Hi All,

Could you please help me on how to create a file dynamically on the server
in PHP. I wanted to open a new file for each day to save all the errors
generated by different web pages on that day.

I am using PHP 4.1.6 on, Win NT4 and IIS .

Thank you in advance!
Sridhar Moparthy





RE: [PHP] argv and argc

2002-02-19 Thread Hunter, Ray

Here are all the predefined variables that are in PHP.  You will notice that
there is an argc and argv here.

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



Ray Hunter
Firmware Engineer

ENTERASYS NETWORKS


-Original Message-
From: Chris Boget [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, February 19, 2002 3:00 PM
To: PHP General
Subject: [PHP] argv and argc


The other day, I was reading the docs and I just happened across something
that emulated argc and argv.  However, I just spent 2 hours in the docs and
can't find it. Is there something in PHP that you can use to get this info?

thnx,
Chris


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