[PHP] PHP5 & JBOSS
Hi, I searched on the net, found a lot of articles about it... followed all the various one by one, tried a lot, but I am getting the famous error: java.lang.UnsatisfiedLinkError: no php5servlet.dll in java.library.path. Here is the steps I folllowed: 1) Get PHP5 PECL and copy to jbossweb-tomcat50.sar the phpsrvlt jar file. I modified the content of reflect.properties and servlet.porperties to refer to the php5servlet.dll library. 2) Copied to windows/system32 the php5servlet.dll and php5ts.dll. 3) web.xml contains the following line: php net.php.servlet 2 php *.php I modified my application to display the java.librara.path which lists (of course) c:/windows/system32 path. However, I am having the message just listed above. Any clue? Note that I have tried with the dll extension in the both property files, but still the same. Thanks in advance. David. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] MySQL, PHP and JBOSS
Hi, I finally managed to run JBOSS/Tomcat with PHP, however, I am facing the following error message when my PHP code is accessing MySQL: Fatal error: Call to undefined function mysql_connect() in C:\APPS\jboss-3.2.6\server\sudetp\deploy\jbossweb-tomcat50.sar\ROOT.war\registration.php on line 87. However, the same code runs successfully on Apache2! Any configuration that I am missing somewhere? Thanks. DvJ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Why is the behavior between Apache2 and Tomcat so different?
Hi, I have the same piece of PHP script running on either Apache2 or Tomcat. On Tomcat, I have the folllowing errors: 1- Cannot modify header information - headers already sent OR 2- Undefined index: error in ... For one, I think this is because I am using the header PHP function. For two, I think this is because there is from time to time a http request parameter ("error") which not always defined. Could someone explain me why this is the case? And how I can change this behavior. Thanks. David Joffrin www.etradinginnovations.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Why is the behavior between Apache2 and Tomcat so different?
It has not been an easy task. In fact, the configuration is running under PHP5/JBOSS! 1- I modified the web.xml to append the following: php net.php.servlet 1 php *.php 2- I copied over the phpsrvlt jar file under the jbossweb-tomcat50.sar 3- Patch the inside the jart the two property files to reference php5servlet and not phpsrvlt anymore (I am PHP5). 4- Start JBOSS and this is it... up to the various different behavior that I have, but I hope to be php.ini related!!! Enjoy it! David Joffrin www.etradinginnovations.co.uk From: Burhan Khalid <[EMAIL PROTECTED]> To: david joffrin <[EMAIL PROTECTED]> CC: php-general@lists.php.net Subject: Re: [PHP] Why is the behavior between Apache2 and Tomcat so different? Date: Tue, 15 Mar 2005 15:45:13 +0300 david joffrin wrote: Hi, I have the same piece of PHP script running on either Apache2 or Tomcat. On Tomcat, I have the folllowing errors: 1- Cannot modify header information - headers already sent OR 2- Undefined index: error in ... For one, I think this is because I am using the header PHP function. For two, I think this is because there is from time to time a http request parameter ("error") which not always defined. Check your error reporting levels. I bet they differ (check in php.ini and any error_reporting() functions) By the way, I'm curious -- how did you get PHP to work on Tomcat? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] send email sample
Very simple sample: // Send a mail to [EMAIL PROTECTED] $headers = "From: \"Webmaster\"<[EMAIL PROTECTED]>"; $mailtext = trim($_POST["email"]); $mailtext .= " is joining the family.\n"; mail('[EMAIL PROTECTED]', 'New Registration', $mailtext, $headers); I am using the "fake sendmail" windows tool very simple to configure, maybe a bit slow though. David Joffrin www.bidnplay.com From: "issin" <[EMAIL PROTECTED]> To: Subject: [PHP] send email sample Date: Sat, 19 Mar 2005 15:25:12 +0800 Dear all, Can you give me a send email sample? Thanks! Best Regards, Issin Yeung Information from NOD32 This message was checked by NOD32 Antivirus System for Linux Mail Server. http://www.nod32.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Insertion of integer in a database
Hi folks, Problem is fairly simple, but how can I insert integer in an SQL statement? So, I only had strings, but now I have introduced a timestamp column (bigint to cover the milleseconds), and I have the following statement: $queryInsert = "INSERT INTO mytables (..., timestamp) VALUES ('"; $queryInsert .= ...; // several columns $queryInsert .= "', '"; $queryInsert .= time() . "')"; $result = mysql_query($queryInsert); This is not working as time() returns an integer and .= only works with strings! How can I cope with that? Thanks. DvJ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] HTML meta tag and PHP
Hi, How can I write something like that? This is obviously not working as the " is assumed as the closing " for the meta tag. Thanks. DvJ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] HTML meta tag and PHP
I tried the following scenario and here is the outcome: .../registration.php?step=4&userId=<%php%20trim($_POST[ with that line: "> Any idea? From: "Pablo Gosse" <[EMAIL PROTECTED]> To: "david joffrin" <[EMAIL PROTECTED]>, Subject: RE: [PHP] HTML meta tag and PHP Date: Tue, 29 Mar 2005 14:51:39 -0800 How can I write something like that? This is obviously not working as the " is assumed as the closing " for the meta tag. Sorry, I botched my previous reply and left the extra " after userId. It should be: "> Pablo. -- 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