[PHP] java.lang.UnsatisfiedLinkError: send trying to install PHP as a Servlet for Tomcat 5.0.18 on FreeBSD

2004-03-01 Thread Dan Hardiker
Hi, Ive searched the web and archives - found many with the same problem, but noone with a solution. I followed the following steps (as per /sapi/servlet/README): 1)./configure --with-servlet --with-java 2) make 3) make install 4) copy the phpsrvlt.jar to the context's WEB-INF/lib 5) added

[PHP] Re: Re: Re: Your document

2004-03-01 Thread damien . seguy
Your file is attached. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get MySQL table field names

2004-03-01 Thread Stuart
Matt Palermo wrote: How can I get the field names from a specified MySQL table? I don't need the data, I just want to get an array of the tables field names. http://php.net/mysql_list_fields -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

php-general Digest 1 Mar 2004 11:22:50 -0000 Issue 2620

2004-03-01 Thread php-general-digest-help
php-general Digest 1 Mar 2004 11:22:50 - Issue 2620 Topics (messages 179139 through 179157): Opps 179139 by: Karl Timmermann Get MySQL table field names 179140 by: Matt Palermo 179141 by: Michael Kunze 179149 by: Five 179151 by: Jason Wong

RE: [PHP] Re: values from string query

2004-03-01 Thread Angelo Zanetti
HI, just to let you all know the curly brackets worked! -Original Message- From: Ben Ramsey [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 4:05 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] Re: values from string query You may want to try putting single

RE: [PHP] header(Location: question

2004-03-01 Thread Chris Sandy
Your directing the client to another site. So yes this will work. -Original Message- From: John [mailto:[EMAIL PROTECTED] Sent: Sunday, February 29, 2004 6:11 PM To: [EMAIL PROTECTED] Subject: [PHP] header(Location: question when you use a command like this: header(Location:

RE: [PHP] How to get the auto-incremented value?

2004-03-01 Thread Angelo Zanetti
run a query: select query from table order by id desc hope this helps -Original Message- From: Brian Dunning [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 6:10 PM To: [EMAIL PROTECTED] Subject: [PHP] How to get the auto-incremented value? When I write a record to a

Re: [PHP] values from string query

2004-03-01 Thread Ian Firla
Try echoing your query and pasting it into mysql to make sure that the problem isn't in the structure of your query. Your connect statement selects a db, right? Ian On Thu, 2004-03-25 at 14:01, Angelo Zanetti wrote: HI all I have a Select that get a resultset, once I get this then I use the

Re[2]: [PHP] How to get the auto-incremented value?

2004-03-01 Thread Richard Davey
Hello Angelo, Monday, March 1, 2004, 1:18:51 PM, you wrote: AZ When I write a record to a MySQL db with an auto-incremented key AZ column, say it's called id, what's the easy to retrieve that value? AZ Do I have to run a query? AZ run a query: AZ select query from table order by id desc Why

Re: [PHP] How to get the auto-incremented value?

2004-03-01 Thread John Nichel
Angelo Zanetti wrote: run a query: select query from table order by id desc hope this helps -Original Message- From: Brian Dunning [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 6:10 PM To: [EMAIL PROTECTED] Subject: [PHP] How to get the auto-incremented value? When I write

[PHP] FTP alternative to copy() ?

2004-03-01 Thread raisinlove
Hi, I'd like to know if there's an alternative to copy() to copy a file from one directory to another, using the FTP functions? I figured I could probably open the file from the server and save/upload it to a specified path. Can this be done? What syntax should I use? Thank you! -s -- PHP

Re: [PHP] FTP alternative to copy() ?

2004-03-01 Thread Richard Davey
Hello, Monday, March 1, 2004, 2:24:39 PM, you wrote: r Hi, I'd like to know if there's an alternative to copy() to copy a file r from one directory to another, using the FTP functions? r I figured I could probably open the file from the server and save/upload r it to a specified path. r Can

Re: [PHP] FTP alternative to copy() ?

2004-03-01 Thread Raditha Dissanayake
Hi, Are you trying to copy from the FTP to the web server or are you trying to pass it through to the end user? if you are on the same network other options include RCP (insecure) and SCP (secure) Richard Davey wrote: r Hi, I'd like to know if there's an alternative to copy() to copy a file

[PHP] Parsing URL's with Apache and PHP

2004-03-01 Thread Brian J. Celenza
I'm trying to setup a system where I can parse the entire URL that is given in the address bar of the broswer. My intentions are to make use of the parse_url() function supplied in PHP, but I cannot find a way to get the full address requested. Example:

Re: [PHP] Parsing URL's with Apache and PHP

2004-03-01 Thread Raditha Dissanayake
Are you trying to do dynamic virtual hosting? using PHP for that would be very inefficient look at the apache documentation for a better solution. with php splitting by the dot (.) and getting the first part ought to do the trick. or you can do a preg_match . Brian J. Celenza wrote: I'm

Re: [PHP] Parsing URL's with Apache and PHP

2004-03-01 Thread Richard Davey
Hello Brian, Monday, March 1, 2004, 3:49:09 PM, you wrote: BJC Are there variables or methods with apache I can use to get this entire BJC address? All I'm seeing is the HTTP Referrer and some other _SERVER vars BJC that do not give me the whole address. Personally I use the following (combined

[PHP] Undefined offset

2004-03-01 Thread Jough P
Greetings all, I'm getting Notice: Undefined offset regarding this line of code while inside a for loop: if($this-inputs[$i] == user) I assume the 'offset' that is undefined is $i. But $i is defined is the for statement above it. Here's the while function: function draw() { echo

[PHP] timer in php-cli

2004-03-01 Thread nobody
Hello, I'm writing a php irc bot. I've come up to the situation where I need a timer for processing different data in a special way. I've searched the archive of the list but I didn't found nothing helpful (I can't use JavaScript here, neither cron). If I use for(;;) or sleep(); the whole script

Re: [PHP] Undefined offset

2004-03-01 Thread Stuart
Jough P wrote: Greetings all, I'm getting Notice: Undefined offset regarding this line of code while inside a for loop: if($this-inputs[$i] == user) I assume the 'offset' that is undefined is $i. But $i is defined is the for statement above it. It doesn't mean that $i isn't defined. It means

Re: [PHP] Undefined offset

2004-03-01 Thread Jough P
Oops, in my previous email I meant to say Here's the WHOLE function. sorry about the typo, hope I didn't confuse... On Mar 1, 2004, at 9:58 AM, Jough P wrote: Greetings all, I'm getting Notice: Undefined offset regarding this line of code while inside a for loop: if($this-inputs[$i] == user)

Re: [PHP] Undefined offset

2004-03-01 Thread Raditha Dissanayake
could be your $i length of array Jough P wrote: Greetings all, I'm getting Notice: Undefined offset regarding this line of code while inside a for loop: if($this-inputs[$i] == user) I assume the 'offset' that is undefined is $i. But $i is defined is the for statement above it. -- Raditha

Re: [PHP] FTP alternative to copy() ?

2004-03-01 Thread raisinlove
Raditha Dissanayake wrote: Hi, Are you trying to copy from the FTP to the web server or are you trying to pass it through to the end user? if you are on the same network other options include RCP (insecure) and SCP (secure) Actually, it's much simpler than that but it might be overkill. My

Re: [PHP] Undefined offset

2004-03-01 Thread Richard Davey
Hello Jough, Monday, March 1, 2004, 3:58:31 PM, you wrote: JP Greetings all, I'm getting Notice: Undefined offset regarding this JP line of code while inside a for loop: if($this-inputs[$i] == user) JP I assume the 'offset' that is undefined is $i. But $i is defined is JP the for statement

Re: [PHP] Undefined offset

2004-03-01 Thread Jough P
I had read elsewhere on this list that it could be the case that $this-inputs[$i] wasn't defined at $i. That is why I encased the for loop in the if condition: if (sizeof($this-inputs) 0) { for($i=0; $i = sizeof($this-inputs); $i++) { . I've used both the

Re: [PHP] Parsing URL's with Apache and PHP

2004-03-01 Thread Brian J. Celenza
That'll work! Didnt' even occur to me to combine two variables from $_SERVER, and at first I didn't thinkg HTTP_HOST would deliver what i was looking for. Thanks! Richard Davey [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello Brian, Monday, March 1, 2004, 3:49:09 PM, you wrote:

Re: [PHP] Parsing URL's with Apache and PHP

2004-03-01 Thread Brian J. Celenza
Well, not quite virtual hosting. Basically, I want to parse the host whatever.somedomain.com and return the whatever part, whatever being a username for example.. use that username and draw whatever from the database to display.. So instead of a user having to do something like

[PHP] Re: SOLVED: [PHP] Undefined offset

2004-03-01 Thread Jough P
AH-HA! that was it! I was getting the notices on the last iteration of $i. I changed this: for($i=0; $i = sizeof($this-inputs); $i++) to this: for($i=0; $i sizeof($this-inputs); $i++) i.e. I changed = to DOH! I guess I need more coffee... On Mar 1, 2004, at 10:15 AM, Raditha Dissanayake

Re: [PHP] Cookies

2004-03-01 Thread Chris Shiflett
--- Paul Higgins [EMAIL PROTECTED] wrote: Miva uses cookies, which is fine. However, the Miva pages would be accessed by my PHP pages on the website. Therefore, the cookies have nowhere to go. You can set cookies on the client with the Set-Cookie header or with the setcookie() function.

[PHP] Building a C++ extension to PHP

2004-03-01 Thread Rob Ristroph
Hi, I am trying to build a stub of a C++ extension, with just some empty classes, just so I can get the build and link process down. I will add real code later. My two main references for this are this HOWTO and the php documentation:

[PHP] need form array help

2004-03-01 Thread Brian V Bonini
while ($result = mysql_fetch_array($dbresult_riderlist)) { print('tr' . \n); print(tdinput type=\hidden\ name=\rider_id[]\ value=\ . $result[rider_id] . ' /' . \n); print(input type=\text\ name=\rider_name[]\ value=\ . $result[rider_name] . ' size=15 //td' . \n); print(tdinput type=\text\

[PHP] Question about magic quotes NEWBIE QUESTION

2004-03-01 Thread James Marcinek
Hello everyone! Are there any concerns with having the 'magic quotes' enabled or should I use the Add Strip Slashes? I will be using a database (MySQL). thanks, James __ Do you Yahoo!? Get better spam protection with Yahoo! Mail.

RE: [PHP] need form array help

2004-03-01 Thread Chris W. Parker
Brian V Bonini mailto:[EMAIL PROTECTED] on Monday, March 01, 2004 11:00 AM said: while ($result = mysql_fetch_array($dbresult_riderlist)) { print('tr' . \n); print(tdinput type=\hidden\ name=\rider_id[]\ value=\ . $result[rider_id] . ' /' . \n); print(input type=\text\

Re: [PHP] Question about magic quotes NEWBIE QUESTION

2004-03-01 Thread Richard Davey
Hello James, Monday, March 1, 2004, 7:09:24 PM, you wrote: JM Are there any concerns with having the 'magic quotes' JM enabled or should I use the Add Strip Slashes? I JM will be using a database (MySQL). I wouldn't be concerned about using them at all - they're not a security risk or anything

RE: [PHP] need form array help

2004-03-01 Thread Chris W. Parker
Chris W. Parker on Monday, March 01, 2004 11:14 AM said: i think i see some code in that jungle. allow me to clean it up a bit! while ($result = mysql_fetch_array($dbresult_riderlist)) { echo QQQ tr td input type=hidden name=rider_id[] value={$result['rider_id']} /

RE: [PHP] need form array help

2004-03-01 Thread Brian V Bonini
On Mon, 2004-03-01 at 14:14, Chris W. Parker wrote: tdEdit: input type=radio name=edit_rider_action[] value=edit / Delete: input type=radio name=edit_rider_action[] value=delete //td should be changed into: tdEdit: input type=radio name=edit_rider_action value=edit /

RE: [PHP] need form array help

2004-03-01 Thread Chris W. Parker
Brian V Bonini mailto:[EMAIL PROTECTED] on Monday, March 01, 2004 11:45 AM said: That make sense except the rendered form is to the effect of: [snip] ok i see... so you want to account for the possibility that each rider might have a different state? said differently, you don't want all

RE: [PHP] need form array help

2004-03-01 Thread Brian V Bonini
On Mon, 2004-03-01 at 15:03, Chris W. Parker wrote: in that case i think php turns form elements with [] on the end of them into regular arrays. example: ?php $edit_rider_action = $_GET['edit_rider_action']; ? you then access it just like any other array: ?php

Re: [PHP] need form array help

2004-03-01 Thread Kelly Hallman
On 1 Mar 2004, Brian V Bonini wrote: while ($result = mysql_fetch_array($dbresult_riderlist)) { print('tr' . \n); print(tdinput type=\hidden\ name=\rider_id[]\ value=\ . $result[rider_id] . ' /' . \n); print(input type=\text\ name=\rider_name[]\ value=\ . $result[rider_name] . ' size=15

[PHP] proc_open problems

2004-03-01 Thread Rick Ridgeway
Hello, I am using php 4.3.0, and am trying to launch the command line interface for cisco network registrar, and be able to send commands to it and read the output from those commands. Problem I am having is that the commands can take some time to actually respond with output. I can make it

[PHP] PHP and FLASH progress bar

2004-03-01 Thread Ryan A
Hi, This is an older problem that I posted to the list and since the solutions posted didnt really work, I started searching for a different solution. Required result: After each email show the client a message: eg: Sent email #1 Sent email #2 etc The message should display after each email

Re: [PHP] php crash and memory_limit

2004-03-01 Thread kringla
No solution? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general Digest 1 Mar 2004 23:41:36 -0000 Issue 2621

2004-03-01 Thread php-general-digest-help
php-general Digest 1 Mar 2004 23:41:36 - Issue 2621 Topics (messages 179158 through 179194): Re: values from string query 179158 by: Angelo Zanetti 179161 by: Ian Firla Re: header(Location: question 179159 by: Chris Sandy Re: How to get the auto-incremented value?

[PHP] IE6 with latest hotfixes breaks forms ...

2004-03-01 Thread Marc G. Fournier
We're having a weird problem with some of our PHP forms, where, when a client uses IE6 with the latest hotfixes, they are reporting that have to re-submit a couple of times for it to take ... as if somehow the data isn't being passed down properly to the FORM/ACTION ... We're using sessions to

Re: [PHP] IE6 with latest hotfixes breaks forms ...

2004-03-01 Thread Chris Shiflett
--- Marc G. Fournier [EMAIL PROTECTED] wrote: We're having a weird problem with some of our PHP forms, where, when a client uses IE6 with the latest hotfixes, they are reporting that have to re-submit a couple of times for it to take ... as if somehow the data isn't being passed down properly

Re: [PHP] FTP alternative to copy() ?

2004-03-01 Thread Raditha Dissanayake
then use `cp source destination` that should work. raisinlove wrote: Raditha Dissanayake wrote: Hi, Are you trying to copy from the FTP to the web server or are you trying to pass it through to the end user? if you are on the same network other options include RCP (insecure) and SCP (secure)

Re: [PHP] IE6 with latest hotfixes breaks forms ...

2004-03-01 Thread Marc G. Fournier
On Mon, 1 Mar 2004, Chris Shiflett wrote: --- Marc G. Fournier [EMAIL PROTECTED] wrote: We're having a weird problem with some of our PHP forms, where, when a client uses IE6 with the latest hotfixes, they are reporting that have to re-submit a couple of times for it to take ... as if

Re: [PHP] IE6 with latest hotfixes breaks forms ...

2004-03-01 Thread Chris Shiflett
--- Marc G. Fournier [EMAIL PROTECTED] wrote: I have access to at leaset one box running the latest IE6 ... instructions on how to 'capture the raw request'? It's not easy if you've never used it, but I think the best bet for Windows is Ethereal (http://www.ethereal.com/download.html). You want

[PHP] Re: timer in php-cli

2004-03-01 Thread Aidan Lister
A simple timer: ? $length = 10; $timestart = time(); for (;;) { if (time() = $timestart + 10) { // go } } ? Also, you should look at the PEAR::Net_SmartIRC framework (it has timers already). It's a fantastic framework, and there's really no point in re-writing the textbook.

RE: [PHP] IE6 with latest hotfixes breaks forms ...

2004-03-01 Thread Beau Hartshorne
Marc: This could be related to the problem I described in detail a few days ago. Here was my solution: http://marc.theaimsgroup.com/?l=php-generalm=107751892631059w=2 Please let us know if this helps! Beau We're having a weird problem with some of our PHP forms, where, when a client uses

RE: [PHP] IE6 with latest hotfixes breaks forms ...

2004-03-01 Thread Marc G. Fournier
Chris, you said you could recreate it ... can you check Beau's solution here to see if it solves the problem we are seeing? Beau's problem appears to have been with 5 and 5.5 also, which I didn't think were causing us problems, but it could also be that nobody reported them also ... On Mon, 1

[PHP] Adverse performance of undefined variables and indexes?

2004-03-01 Thread Rob Paxon
Howdy Fellow PHPers, I am currently recoding the bulk of my web site network. One major change is that I finally made a proper error handling system. To get right down to it, when you use a custom error handler, PHP ignores the error_reporting level you use. Because of this, all those little

[PHP] Credit Card validation

2004-03-01 Thread Binay
Hi, I need to validate credit cards on my web site. So i m looking for information as in what all i need to do / have to implement the card validation . I m running .. Php 4.3.3 Apache 1.3.29 Red Hat Linux 9.0 Any advices are most welcome... Thanks in advance Binay

Re: [PHP] Adverse performance of undefined variables and indexes?

2004-03-01 Thread Robert Cummings
On Tue, 2004-03-02 at 00:19, Rob Paxon wrote: Howdy Fellow PHPers, I am currently recoding the bulk of my web site network. One major change is that I finally made a proper error handling system. To get right down to it, when you use a custom error handler, PHP ignores the

[PHP] openssl - extracting public key

2004-03-01 Thread Tony Carter
Hello, I'm trying to use the openssl function and seem to be having a problem extracting the public key from the keypair generated by openssl_pkey_new. Is there a function to do this in PHP? Here is the sample code. ?php $pubkey = ; $privkey = ; $keypair = ; $privkeyout =; $pubkeyout = ; //

Re: [PHP] Adverse performance of undefined variables and indexes?

2004-03-01 Thread Rob Paxon
Robert Cummings wrote: It's more efficient not to have a custom error handler... when your code fires notices and warnings etc. Well written code won't fire any errors or warnings. Well maintained code won't fire notices. So if you have well written and well maintained code... the overhead is

[PHP] Re: Stumped on a totally wierd problem

2004-03-01 Thread Phillip Jackson
When you solve your own problem it is best to post a short synopsis of the solution so that people who search the group later can learn from your mistake. ~phillip jackson Brian V Bonini [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] nevermind I got it. snip I have something

RE: [PHP] IE6 with latest hotfixes breaks forms ...

2004-03-01 Thread Chris Shiflett
--- Marc G. Fournier [EMAIL PROTECTED] wrote: Chris, you said you could recreate it ... can you check Beau's solution here to see if it solves the problem we are seeing? I'm confused. You're the one having this problem, right? Why don't *you* try his solution and tell us if it solves your