Re: [PHP] Code check please

2001-06-21 Thread Robert Vetter
Andreas Skarin wrote: > > I've tried to get this working for over an hour > now, and it still won't. I don't even get an error > message to help me find the problem so I was > hoping that someone could check my code for me. > > I'm fooling around with a basic form that is > supposed to send on

Re: [PHP] PHP with JAVA support

2001-06-21 Thread Robert Vetter
Jim Kirkpatrick wrote: > > Robert, > > Please include the php code you're using to instantiate the class. That will > give me a better idea of what to suggest. > Hi Jim, Thanks for the response. Here comes the code: getProperty("java.version")." \n"; print "Java vendor=".$system->getProp

[PHP] PHP with JAVA support

2001-06-19 Thread Robert Vetter
Hello, I'm trying to run PHP with Java support and don't get it to work. First I compiled PHP '--with-java=/usr/local/jdk1.2.2/'. Then I added this to the PHP.ini file: [Java] java.home=/usr/local/jdk1.2.2 java.class.path=/usr/local/lib/php/extensions/php_java.jar:/usr/local/jdk1.2.2/src.jar jav

[PHP] PHP with JAVA support

2001-06-19 Thread Robert Vetter
Hello, I'm trying to run PHP with Java support and don't get it to work. First I compiled PHP '--with-java=/usr/local/jdk1.2.2/'. Then I added this to the PHP.ini file: [Java] java.home=/usr/local/jdk1.2.2 java.class.path=/usr/local/lib/php/extensions/php_java.jar:/usr/local/jdk1.2.2/src.jar jav

[PHP] PHP with JAVA support

2001-06-19 Thread Robert Vetter
Hello, I'm trying to run PHP with Java support and don't get it to work. First I compiled PHP '--with-java=/usr/local/jdk1.2.2/'. Then I added this to the PHP.ini file: [Java] java.home=/usr/local/jdk1.2.2 java.class.path=/usr/local/lib/php/extensions/php_java.jar:/usr/local/jdk1.2.2/src.jar jav

Re: [PHP] Counting Words In a String

2001-04-23 Thread Robert Vetter
Greg Donald wrote: > > > I want to check a string and return the amount of words present > > in it. These > > strings could be quite large, some higher than 100,000 > > characters. I realize > > I could explode the string on the whitespace and count the number > > of values. > > However, I'm no

Re: [PHP] checkbox validation

2001-04-18 Thread Robert Vetter
Jacky wrote: > > Hi all > I have a form with the checkbox like this > > $query="select id from foo"; > $result=($query,$con); > while ($row = mysql_fetch_array($result)) > { > > } > submit button and stuffs here... > One possibility: Add a hidden field in the form and write al

Re: [PHP] Back Button Dilemma's

2001-04-10 Thread Robert Vetter
RealGM wrote: > > Hi Guys, > > I know everywhere it says that it is not possible to actually disable the back >button, and people have offered some solutions that have not worked for me, this is >why I am emailing this list. > > I have a form which displays the same page with new content (c

[PHP] freetype info required

2001-04-02 Thread Robert Vetter
Could someone please supply me with a little information about freetype fonts concerning the following points of interest: 1/ A good description of what it actually is. 2/ How to actually use it in a practical sense hopefully in conjunction with php. 3/ Supply of some small code snippets showing r

Re: [PHP] PHP Editor for Linux

2001-03-30 Thread Robert Vetter
Martin Cabrera Diaubalick wrote: > > Hi there! > > I use bluefish for HTML and PHP coding, but I'm not too happy with it. Do > you know a good PHP Editor for Linux, besides Emacs and xjed...? > Try nedit... Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [

Re: [PHP] Better way (if...elseif...else)

2001-03-30 Thread Robert Vetter
"Ashley M. Kirchner" wrote: > > Is there a better way to write the following snippet: > > if ($priority == "000") { > $fcol="high"; > $pstr .= "High\n"; > $pstr .= "Medium\n"; > $pstr .= "Low\n"; > } elseif ($priority == "050") { > $fcol="med"; >

[PHP] Re: Complex mysql query

2001-03-29 Thread Robert Vetter
> Yann Larrivée wrote: > > Thanks for the answer but it is a bit more complexe, i actually > creates these sample table for the example. Here is an attachement of > the structure dump. > > Hummm you got me to think more about my database structure withc is > really good. The idea you bourght u

Re: [PHP] help gurus: multi-dimensional array problem.

2001-03-05 Thread Robert Vetter
Tim Ward wrote: > > Get a list of unique categories then get a list of each one would do it. > > $link_id = mysql_connect($host, $usr, $pass) or die (mysql_error()); > mysql_select_db($database, $link_id); > $sql="select distinct category from links"; > $result

Re: [PHP] dealing with no record

2001-03-05 Thread Robert Vetter
"Jacky@lilst" wrote: > > People > If I run a sniplet like this: > > ** > $query="select name from foo"; > $result= mysql_query($query); > while($row = mysql_fetch_row($result)) > stuff...to display record found > ... > *** > what am I suppos

Re: [PHP] help gurus: multi-dimensional array problem.

2001-03-05 Thread Robert Vetter
andrew wrote: > > Because I want to display it like this: > > category1 (href anchor to category1 below) > category2 > category3 > > category1 > link1 > link2 > link3 > > category2 > link1 > etc... > Hello, Ever heard of mysql_data_seek()? Have a look in the PHP Docs.

Re: [PHP] HREFs that can't be

2001-03-02 Thread Robert Vetter
"Boget, Chris" wrote: > > > > This would require a form for every link and that was something I > > > illustrated earlier as one of the possibilities I had come > > > up with. But it was a possibility that I was trying to avoid... > > No, you could do following: > > > href="javascript:documen

Re: [PHP] HREFs that can't be

2001-03-02 Thread Robert Vetter
"Boget, Chris" wrote: > > > > That won't work. Clicking on a link does not trigger > > > sending of fields (hidden or not). > > No? How about: > > > > > > > > Click here > > or here > > This would require a form for every link and that was something I > illustrated earlier as one of the po

Re: [PHP] Newbie question about running JAVA classes on PHP scripts

2001-03-01 Thread Robert Vetter
Federico Ragazzoni wrote: > > Hi all, I've a problem with my php.ini file, running JAVA classes... > What exactly should write in php.ini? > I've JDK in /usr/local/jdk and PHP in /usr/local/php Would you explain us, what does (or should) php.ini have to do with JAVA? Robert -- PHP General M

Re: [PHP] A small Q

2001-02-28 Thread Robert Vetter
Harshdeep S Jawanda wrote: > > Hi, > > Does the extension of files that are require()-d or include()-d in PHP > have to be ".inc"? Can it be ".php"? > > All examples seem to show this extension as ".inc". Could there be any > problems if the extension is kept ".php"? I don't know what exampl

Re: [PHP] how do i check if a server is online ?

2001-02-27 Thread Robert Vetter
"Markus H. Maussner" wrote: > > hi.. > > i have the problem that i need to connect to a database on a server wich > is quiet often offline. > > how can i connect to this database (mysql) and can check if the server is > online. > like.. if server is online -> fine we work as normaly > if serv

Re: [PHP] Get name of current function

2001-02-21 Thread Robert Vetter
"Ide, Jim" wrote: > > Hi - > > Is there some way I can get the name of the currently executing function? > > For example: > > > function MyFunction () { > echo "The currently executing function is: " . ; > } Solution:> function MyFunction () { echo "The currently execu