RE: [PHP] Load Stress tool

2003-11-05 Thread Gregory Kornblum
[snip] I am looking for suggestions on a tool to "load stress" a php application. We want to make sure that the application/web server will be able to handle the amount of users we expect. I have found a few but they seem to be very expensive. Can anyone suggestion an "affordable" and user friendly

RE: [PHP] redirect

2003-10-29 Thread Gregory Kornblum
>header("Location: registratie.html"); That is exactly how you do the PHP version of a response.redirect(). Regards. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] data from database

2003-10-28 Thread Gregory Kornblum
>$result = mysql_query($query) You need to pass the connection resource returned from your mysql_connect call as a second parameter. Regards. -Gregory -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] [PHP-GENERAL] Serving docs from PHP

2003-10-28 Thread Gregory Kornblum
You probably want to add the mime type with 'header("Content-type: application/x-ms-word");'. Regards. -Gregory -Original Message- From: Alex James [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 28, 2003 7:57 AM To: [EMAIL PROTECTED] Subject: [PHP] [PHP-GENERAL] Serving docs from PHP

RE: [PHP] RE: function help redirect help

2003-10-27 Thread Gregory Kornblum
Remove the second 'global $payment;'. Regards. -Gregory -Original Message- From: Frank Tudor [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 2:01 PM To: 1PHP Subject: [PHP] RE: function help redirect help Here is what Ihave I am getting a elseif parse error. Is there somethin

RE: [PHP] function problem (simple redirect)

2003-10-27 Thread Gregory Kornblum
Make that: function payment{ global $payment; -Gregory -Original Message- From: Gregory Kornblum [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 1:30 PM To: 'Frank Tudor'; 1PHP Subject: RE: [PHP] function problem (simple redirect) >function $payment{ C

RE: [PHP] function problem (simple redirect)

2003-10-27 Thread Gregory Kornblum
>function $payment{ Change that to: function payment{ $global $payment; Regards, -Gregory -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Using PHP with JAVA

2003-10-24 Thread Gregory Kornblum
For this you will want to use a standard socket to port 80 with "GET yourscript.php?var=foo HTTP/1.0\r\n\r\n" in the send method and the recieve method will return the results. They have higher level APIs for HTTP but this is my preference. You should easily be able to find examples on using socket

RE: [PHP] From PHP to C and viceversa

2003-10-13 Thread Gregory Kornblum
route you'll want to go. You'll have to read up on it's API and usage at http://www.mysql.com/doc/en/index.html and http://www.mysql.com/documentation/mysql++/index.html. Regards. - Original Message - From: "Gregory Kornblum" <[EMAIL PROTECTED]> To: <[EMA

RE: [PHP] From PHP to C and viceversa

2003-10-13 Thread Gregory Kornblum
>I have apache under linux and I want to exchange data >from a php script to a c programm (some strings): is it possible? Yes in multiple ways. First off you need to figure out if you have the source for the C application. If so you can use sockets, the MySQL client API, and various other connec

RE: [PHP] serialized arrays

2003-10-10 Thread Gregory Kornblum
echo ""; Also here's some functions to help. function Array2URLString($array_in) { $ser = serialize($array_in); $ser = urlencode($ser); return $ser; } function URLString2Array($url_string_in) { $ser1 = stripslashes($url_string_in); $arr1 = urldecode($ser1); $arr1