[PHP] Java And PHP
Hi, I want to use Java in my PHP scripts. I installed PHP 5.2 on windows. From extensions I choosed Java plugin. But Java is not working with PHP 5.2. I have Java installed in C:\Porgram Files\Java\ . I tried to give right jvm.dll path correct C:\Porgram Files\Java\JDK\JRE\bin\server\jvm.dll or C:\Porgram Files\Java\JDK\JRE\bin\client\jvm.dll in php.ini, but I got windows system error when try to call Java in my PHP scripts. If you configured java to work with PHP 5.2 please give me hint. Thank you, Gevorg Harutyunyan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] java .vs php
Quoting [EMAIL PROTECTED]: I know Yahoo! uses PHP and I've heard Google does as well? Google uses Python. http://www.python.org/Quotes.html -- Romanian Web Developers - http://ROWD.ORG -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] java .vs php
Google uses PHP too. For example: http://toolbar.google.com/failed.php http://toolbar.google.com/whatsnew.php3 http://www.google.co.ve/search?q=%22google+uses+php%22 Regards. Skippy wrote: Quoting [EMAIL PROTECTED]: I know Yahoo! uses PHP and I've heard Google does as well? Google uses Python. http://www.python.org/Quotes.html -- Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia, Venezuela. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] java .vs php
Google uses Java also: http://java.sun.com/developer/technicalArticles/J2SE/google/limoore.html Nate Tobik (412)661-5700 x206 VigilantMinds -Original Message- From: Gustavo Narea [mailto:[EMAIL PROTECTED] Sent: Thursday, November 10, 2005 10:25 AM To: php-general@lists.php.net Subject: Re: [PHP] java .vs php Google uses PHP too. For example: http://toolbar.google.com/failed.php http://toolbar.google.com/whatsnew.php3 http://www.google.co.ve/search?q=%22google+uses+php%22 Regards. Skippy wrote: Quoting [EMAIL PROTECTED]: I know Yahoo! uses PHP and I've heard Google does as well? Google uses Python. http://www.python.org/Quotes.html -- Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia, Venezuela. -- 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] java .vs php
On Thu, November 10, 2005 9:45 am, Nathan Tobik wrote: Google uses Java also: http://java.sun.com/developer/technicalArticles/J2SE/google/limoore.html Google uses Pigeons as well. :-) After doing enough web development for enough time, you get to where you really don't care what so-and-so is using, no matter how successful they may be. Oh, sure, you get warm fuzzies in your tummy when you hear Yahoo is using PHP, or Google uses PHP for some stuff, but it doesn't really MATTER to you. Because, in the end, of all the things that they can point to for their success, the development language behind their software is least likely to be a major factor. I'm not saying it doesn't matter at all, nor that there aren't specific reasons to choose one over another. Only that the success/failure of the site rarely, if ever, rides on the language chosen. It rides almost exclusively on the shoulders of the people building/marketing/promoting/using the site. I suppose there's even a good site built in ASP out there somewhere, even if I think all the ones I've ever seen really suck. :-) -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] java .vs php
hi... php appears to be fine/good for prototyping. my question; does anybody have testing experience regarding scalability of php .vs java. ie, can php scale to handle 1000s of simultaneous connections/users, as well as deal with the various security issues... articles dealing with actual live test data would be helpful. i'd also be interested in hearing from your experience if you've actually had to look into this issue. haven't really seen a lot of hard data on this via google.. lots of mine is better than yours.. but i'm trying to really get a feel as to whether php can really drive serious commercial sites... thanks -bruce [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] java .vs php
bruce wrote: hi... php appears to be fine/good for prototyping. my question; does anybody have testing experience regarding scalability of php .vs java. ie, can php scale to handle 1000s of simultaneous connections/users, as well as deal with the various security issues... articles dealing with actual live test data would be helpful. i'd also be interested in hearing from your experience if you've actually had to look into this issue. haven't really seen a lot of hard data on this via google.. lots of mine is better than yours.. but i'm trying to really get a feel as to whether php can really drive serious commercial sites... Put simply, it's down to the quality of the programmer. Good programmer = good code; scalable and performant. Bad programmer = bad code. It doesn't get any simpler than that really. -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] java .vs php
bruce wrote: i'm trying to really get a feel as to whether php can really drive serious commercial sites. Yahoo gets 3.4 billion page views per day. That serious enough for you? Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] java .vs php
Hi bruce, Programming can be as good as the programer can be. If you look at the google site, how it works, how many concurrent processes that code can do, you realize that tools available for this purposes (Phyton, Perl, PHP java) do what you want them to do. Just try to take a look to them and then pick up your tool. In 5 words. It is Up to you bruce wrote: hi... php appears to be fine/good for prototyping. my question; does anybody have testing experience regarding scalability of php .vs java. ie, can php scale to handle 1000s of simultaneous connections/users, as well as deal with the various security issues... articles dealing with actual live test data would be helpful. i'd also be interested in hearing from your experience if you've actually had to look into this issue. haven't really seen a lot of hard data on this via google.. lots of mine is better than yours.. but i'm trying to really get a feel as to whether php can really drive serious commercial sites... thanks -bruce [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] java .vs php
Yahoo gets 3.4 billion page views per day. That serious enough for you? I can't believe that Yahoo! works on PHP. Any proofs? As I know they use their own-written engine, if I'm correct it's called yScript. Am I right? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] java .vs php
On 11/9/05 11:58 AM, Rosty Kerei wrote: Yahoo gets 3.4 billion page views per day. That serious enough for you? I can't believe that Yahoo! works on PHP. Any proofs? As I know they use their own-written engine, if I'm correct it's called yScript. Am I right? Try here for your proof: http://public.yahoo.com/~radwin/talks/php-at-yahoo-zend2005.pdf -- Ben Ramsey http://benramsey.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] java .vs php
[snip] Yahoo gets 3.4 billion page views per day. That serious enough for you? I can't believe that Yahoo! works on PHP. Any proofs? As I know they use their own-written engine, if I'm correct it's called yScript. Am I right? [/snip] You 'were' right...up until 2002 http://news.com.com/2100-1023-963937.html?tag=lh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] java .vs php
On Wed, November 9, 2005 9:40 am, bruce wrote: php appears to be fine/good for prototyping. my question; does anybody have testing experience regarding scalability of php .vs java. ie, can php scale to handle 1000s of simultaneous connections/users, as well as deal with the various security issues... PHP and Java scale up in a rather different manner. PHP itself is generally based on a shared nothing architecture. Need more web bandwidth ; buy more cheap hardware. At the backend of the web, you probably have some kind of other services, usually a database, and frequently some other processes that must share data of some sort. Java tends to throw that into its Framework, and that Framework provides a nexus through which resource allocation/utilization is managed. In PHP, you are expected to choose your own preferred resource management plan. Both can scale as large as you can afford to buy hardware, and as much as your skill allows you to maximize your hardware ROI. articles dealing with actual live test data would be helpful. i'd also be interested in hearing from your experience if you've actually had to look into this issue. haven't really seen a lot of hard data on this via google.. lots of mine is better than yours.. but i'm trying to really get a feel as to whether php can really drive serious commercial sites... Obviously it can because it does. You've already been given an example, and refuse to believe it. There would seem to be little point to giving more examples. You can choose PHP or Java or both and provide whatever services you want #30# -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] java .vs php
Look at the Thousand and Thousands of vBulletin boards, PHPBB's and other PHP/MySQL based BB Systems out there with several thousand Members on at once, not including guests. I know Yahoo! uses PHP and I've heard Google does as well?
Re: [PHP] Java - toString() - php - ?
Um - did you read my last email regarding var_dump var_export and print_r Did you try them? Do they do what you want? On 8/2/05, Adi Zebic [EMAIL PROTECTED] wrote: Rory Browne a écrit : I haven't a monkies what that code(your java) does, and I don't have time to analyse it(in expensive cybercafe), but you may want to consider www.php.net/print-r www.php.net/var-dump and www.php.net/var-export I think they may do what you want without using the toString method, which for what you're describing is basicly an ugly hack. One more thing: Enlighten me: What exactly do you mean by live evolution in your php/java context. If in php context you have class, say, A: class A { var $t1; var $t2; var $t3; //After, you have object contructor of type A //we have something like this function A ($var1, $var2, $var3) { $this - t1 = $var1; $this - t2 = $var2; $this - t3 = $var3; } some other code } //than in some other class we have something like this: class someOtherClass { $aConstructor = new A(1,2,3); //values of t1, t2 and t3 are 1,2 and 3 now } Right? yes. How you can you do something like this inside of someOtherClass print ($aConstructor); to finally have some nice output like Value of t1 is 1; Value of t2 is 2; Value of T3 is 3; or just: 1 2 3 Without creating functions like getValues() function getValues() { print ($this - t1); print ($this - t2); print ($this - t3); } and after explicit invoke function: $aConstructor - getValues(); So, what I want is this: print ($aConstructor); and not this: $aContructor - getValues(); Am I clear :-) ADI -- 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] Java - toString() - php - ?
If you use PHP 5 just use the __toString() magic method which does exactly that. http://www.php.net/manual/en/language.oop5.magic.php#language.oop5.magic.tostring Jasper Rory Browne wrote: Um - did you read my last email regarding var_dump var_export and print_r Did you try them? Do they do what you want? On 8/2/05, Adi Zebic [EMAIL PROTECTED] wrote: Rory Browne a écrit : I haven't a monkies what that code(your java) does, and I don't have time to analyse it(in expensive cybercafe), but you may want to consider www.php.net/print-r www.php.net/var-dump and www.php.net/var-export I think they may do what you want without using the toString method, which for what you're describing is basicly an ugly hack. One more thing: Enlighten me: What exactly do you mean by live evolution in your php/java context. If in php context you have class, say, A: class A { var $t1; var $t2; var $t3; //After, you have object contructor of type A //we have something like this function A ($var1, $var2, $var3) { $this - t1 = $var1; $this - t2 = $var2; $this - t3 = $var3; } some other code } //than in some other class we have something like this: class someOtherClass { $aConstructor = new A(1,2,3); //values of t1, t2 and t3 are 1,2 and 3 now } Right? yes. How you can you do something like this inside of someOtherClass print ($aConstructor); to finally have some nice output like Value of t1 is 1; Value of t2 is 2; Value of T3 is 3; or just: 1 2 3 Without creating functions like getValues() function getValues() { print ($this - t1); print ($this - t2); print ($this - t3); } and after explicit invoke function: $aConstructor - getValues(); So, what I want is this: print ($aConstructor); and not this: $aContructor - getValues(); Am I clear :-) ADI -- 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] Java - toString() - php - ?
Adi Zebic wrote: To print state of object in Java I can define toString() function and then I can do something like this: Java exemple: * import java.io.*; import java.util.*; public class ReadTextFromFile { private static String line; private static String Fable = new String (); private static String NomFable; private static int cptLine = 0; private static int nbrPersonnes = 0; private static String nomPersonnes = new String (); private static ArrayList AListe = new ArrayList(nbrPersonnes); //** public String toString() { return getClass().getName() + [ Nom de la fable: + NomFable + == Nombre de personnes dans dialogue: + nbrPersonnes + ] ; } *** Is there similar kind of function in php that help us to print the state of object in his life evolution? there is but it's use is limited and currently AFAIR it only works on internally defined classes the method is called __toString() - from what I have read and played with it (not recently though) the fucntionality is _bit_ 'halfbaked' - as in the internals guys are still pondering how to imnplement this as nicely as possible. an example: ? class Test { function __toString() { return testing 1,2,3\n; } } $t = new Test; echo $t; print($t); ? the problem with implementing this is the fact that php is dynamically typed - and it autocasts types all over the place - very handy BUT it makes a __toString() [magic] method very hard to implement in a way that is obvious to the people using it (try playing around with the SimpleXML extension to see how it can warp your brain! well it makes my head spin anyway :-) but don't take my word for it - try it yourself, oh and also take a dive into the [php]internals mailing list archives - lots has been discussed about this function AFAIR. Thanks ADI -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Java - toString() - php - ?
I haven't a monkies what that code(your java) does, and I don't have time to analyse it(in expensive cybercafe), but you may want to consider www.php.net/print-r www.php.net/var-dump and www.php.net/var-export I think they may do what you want without using the toString method, which for what you're describing is basicly an ugly hack. One more thing: Enlighten me: What exactly do you mean by live evolution in your php/java context. On 8/2/05, Adi Zebic [EMAIL PROTECTED] wrote: To print state of object in Java I can define toString() function and then I can do something like this: Java exemple: * import java.io.*; import java.util.*; public class ReadTextFromFile { private static String line; private static String Fable = new String (); private static String NomFable; private static int cptLine = 0; private static int nbrPersonnes = 0; private static String nomPersonnes = new String (); private static ArrayList AListe = new ArrayList(nbrPersonnes); //** public String toString() { return getClass().getName() + [ Nom de la fable: + NomFable + == Nombre de personnes dans dialogue: + nbrPersonnes + ] ; } *** Is there similar kind of function in php that help us to print the state of object in his life evolution? Thanks ADI -- 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] Java - toString() - php - ?
Rory Browne a écrit : I haven't a monkies what that code(your java) does, and I don't have time to analyse it(in expensive cybercafe), but you may want to consider www.php.net/print-r www.php.net/var-dump and www.php.net/var-export I think they may do what you want without using the toString method, which for what you're describing is basicly an ugly hack. One more thing: Enlighten me: What exactly do you mean by live evolution in your php/java context. If in php context you have class, say, A: class A { var $t1; var $t2; var $t3; //After, you have object contructor of type A //we have something like this function A ($var1, $var2, $var3) { $this - t1 = $var1; $this - t2 = $var2; $this - t3 = $var3; } some other code } //than in some other class we have something like this: class someOtherClass { $aConstructor = new A(1,2,3); //values of t1, t2 and t3 are 1,2 and 3 now } Right? yes. How you can you do something like this inside of someOtherClass print ($aConstructor); to finally have some nice output like Value of t1 is 1; Value of t2 is 2; Value of T3 is 3; or just: 1 2 3 Without creating functions like getValues() function getValues() { print ($this - t1); print ($this - t2); print ($this - t3); } and after explicit invoke function: $aConstructor - getValues(); So, what I want is this: print ($aConstructor); and not this: $aContructor - getValues(); Am I clear :-) ADI -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Java - toString() - php - ?
To print state of object in Java I can define toString() function and then I can do something like this: Java exemple: * import java.io.*; import java.util.*; public class ReadTextFromFile { private static String line; private static String Fable = new String (); private static String NomFable; private static int cptLine = 0; private static int nbrPersonnes = 0; private static String nomPersonnes = new String (); private static ArrayList AListe = new ArrayList(nbrPersonnes); //** public String toString() { return getClass().getName() + [ Nom de la fable: + NomFable + == Nombre de personnes dans dialogue: + nbrPersonnes + ] ; } *** Is there similar kind of function in php that help us to print the state of object in his life evolution? Thanks ADI -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Java and PHP
hi The same way that you invoke any other system binary with backticks, exec etc like this: `java javasystem -scenario`; NOTE: using java objects directly in PHP is a different kettle of fish altogether, there are some interesting articles on that topic on many web sites including phpbuilder. all the best Fredrik wrote: Hi I want to start a java system from a php script, anybody who know how i can do that. Something like this: if(isset($trigger)){ java javasystem -scenario; } Is this possible and how can i do it. -Fred -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Java and PHP
Hi I want to start a java system from a php script, anybody who know how i can do that. Something like this: if(isset($trigger)){ java javasystem -scenario; } Is this possible and how can i do it. -Fred -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Java in PHP
Hi there. Question. How do you access a custom java class in php that has its own define packages? meaning when I access a java class in php the java class calls other classes to do the job. But when I call the class I get an error: java.lang.NoClassDefFoundError: CaseManager (wrong name: com/company/support/admin/CaseManager) Any thoughts? The Chaos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Java and php domainname validation
Hi, I have write a domain control function in php, the php function will working fine. I have create a simpel form with 2 textboxes and 1 button, i will put in this fields a domainname and the extention like yahoo com if i click on the button, then we want to validate the domainname and the extention This will not working ?php function controle($Domainname, $extention) if ($extention ==com) { $server = whois.internic.net; $query = $Domainname . . . $extention; $data = whois_request($server, $query); if(strstr($data, No match for)) { return ok } else { return notok } } ? script function controledomainname(f) { if (controle(window.document.form1.domainname.value, window.document.form1.extention.value) = notok) { alert(your domainname allready exist) } } /script form name=form1 input TYPE=text NAME=domainname size=20 input TYPE=text NAME=extention size=20 input type=button value=validate onClick=controledomainname() /Form Best regards, Manu
Re: [PHP] Java variables - PHP varialbles
Can someone tell me how we can assign the content of a PHP variable to a Java variables in a script (and vice versa). PHP - JavaScript is easy: ?php echo "\nSCRIPT LANGUAGE=JavaScript\n"; echo "document.foo = $foo;\n"; echo "\n/SCRIPT\n"; ? The other way around is a bit tougher... You see, PHP runs on the server and spits out your web-page to your browser. Then, the page is done, so the server/browser close the connection and aren't really talking to each other. Then, your JavaScript starts executing. Now, if you want your JavaScript to interact with PHP, your JavaScript has to open up a whole new connection to some other page, or the same page, but it has to pass in any values and start over. It's a whole new run of a PHP script either way, and makes for a rather slow web-site except in certain specialized cases. -- 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] Java variables - PHP varialbles
Hi!, I am rather a newbie with PHP. Can someone tell me how we can assign the content of a PHP variable to a Java variables in a script (and vice versa). Thanks Claude -- 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]