Re: [PHP] Credit card storing, for processing

2005-02-01 Thread Angelo Zanetti
HI Richard, thanks for the info. With regard to the setup it will be something more or less like this: I want to generate my own keypair. The private key I keep secure, offline, on the machine that does the admin (charging, refunds etc). The public key is used on the server to encrypt card d

[PHP] Re: mail problem at interland

2005-02-01 Thread kids_pro
Does PEAR installed in most Linux hosting box? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mail problem at interland

2005-02-01 Thread kids_pro
Does PEAR installed in most Linux hosting box? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Required the speakers for LAMP at HYD on 18th or 19th for OU and LUG HYD EVENT

2005-02-01 Thread Sasidhar Kalagara
hello geeks, Linux User Group, Hyderabad and Osmanina University College of Enginnering in together are condcuting the follwing events. And about the events: Lug Festiva( linux workshop) Literati quest (paper presentation) Promethean (project contest) Bugs maze ( debugging contest) Klo

Re: [PHP] cal_days_in_month() missing, how can I tell if it exists

2005-02-01 Thread RaTT
Hi James, http://uk.php.net/manual/en/function.function-exists.php, should help you on your way. hth Jarratt On Tue, 1 Feb 2005 18:57:12 -0600, James Kaufman <[EMAIL PROTECTED]> wrote: > On Tue, Feb 01, 2005 at 08:47:29PM +, Ben Edwards wrote: > > I have been implementing a system on a di

Re: [PHP] cal_days_in_month() missing, how can I tell if it exists

2005-02-01 Thread James Kaufman
On Tue, Feb 01, 2005 at 08:47:29PM +, Ben Edwards wrote: > I have been implementing a system on a different ISP than I normally use > and have got:- > > Fatal error: Call to undefined function: cal_days_in_month() > in > /home/hosted/www.menublackboard.com/public_html/dev/classes/validator.cl

Re: [PHP] Switch Form

2005-02-01 Thread Richard Lynch
Lancer Emotion 16 wrote: > > > > > > > Now, in page.php is possible to do a switch of form name? Something like > this : > > Switch ($_POST['form'] { > 'form1' : ... > 'form2' : ... > } > > If this is possible,i dont know how to call it, can you help me please? The NAME attribut

Re: [PHP] File upload difference between browsers

2005-02-01 Thread Marek Kilimajer
Graham Cossey wrote: I have a problem uploading a file in IE6 or Firefox1.0 but it works fine using Opera7.54. The problem is that I want to ensure that the file being uploaded is a CSV file, so I test the $_FILES['file']['type'] value. In Firefox & IE it is returned as "application/octet-stream" b

Re: [PHP] XML-RPC problem with array

2005-02-01 Thread Richard Lynch
Bambero wrote: > Hello > > I have compiled my php with --with-xmlrpc option to use xmlrpc server. > Everything works fine, but there is one problem. > > Array (indexed from 0): > $array[0] > $array[1] > $array[2] > is changed to xmlrpc 'array' type - thats ok. > > Array (with string indexes): >

Re: [PHP] File upload difference between browsers

2005-02-01 Thread Richard Lynch
Graham Cossey wrote: > The problem is that I want to ensure that the file being uploaded is a > CSV file, so I test the $_FILES['file']['type'] value. That only ensures that somebody else can forge the type header being sent to you. Anybody with half a clue (okay, a clue and a half) could do that

Re: [PHP] stream_set_timeout() mystery

2005-02-01 Thread Richard Lynch
Al wrote: > I can't use a bad URL because the fopen fails. Sorry, that was silly of me. > I assumed from reading the manual that if I started stream_set_timeout() > it > would monitor the stream and do something when it reached the timeout, > either > truncate my data stream or show up as [timed_

[PHP] File upload difference between browsers

2005-02-01 Thread Graham Cossey
I have a problem uploading a file in IE6 or Firefox1.0 but it works fine using Opera7.54. The problem is that I want to ensure that the file being uploaded is a CSV file, so I test the $_FILES['file']['type'] value. In Firefox & IE it is returned as "application/octet-stream" but in Opera it is r

Re: [PHP] RE: Problem with SELECT SQL_CALC_FOUND_ROWS

2005-02-01 Thread Richard Lynch
Matt Babineau wrote: > Ok I installed PHP 4.3.10 and it still has not fixed the problem. If I > remove the SQL_CALC_FOUND_ROWS from the query, it works no problems! This > is > very strange behavior! Not really that strange, I think... While you might want to read this: http://us4.php.net/manual

Re: [PHP] Escaped characters

2005-02-01 Thread Richard Lynch
Brian Dunning wrote: > I am storing some text from forms into MySQL as base64_encode(). So far > this has worked well at dealing with weird characters. But when I > output it, everything is escaped with \. I can't replace those out with > '' since sometimes they are supposed to be in there. What's

[PHP] XML-RPC problem with array

2005-02-01 Thread Bambero
Hello I have compiled my php with --with-xmlrpc option to use xmlrpc server. Everything works fine, but there is one problem. Array (indexed from 0): $array[0] $array[1] $array[2] is changed to xmlrpc 'array' type - thats ok. Array (with string indexes): $array['ad'] $array['sd'] $array['rd'] is ch

Re: [PHP] stream_set_timeout() mystery

2005-02-01 Thread Al
I can't use a bad URL because the fopen fails. I assumed from reading the manual that if I started stream_set_timeout() it would monitor the stream and do something when it reached the timeout, either truncate my data stream or show up as [timed_out] => true. It doesn't appear to do anything.

[PHP] RE: Problem with SELECT SQL_CALC_FOUND_ROWS

2005-02-01 Thread Matt Babineau
Ok I installed PHP 4.3.10 and it still has not fixed the problem. If I remove the SQL_CALC_FOUND_ROWS from the query, it works no problems! This is very strange behavior! Matt Babineau Criticalcode w: http://www.criticalcode.com p: 858.733.0160 e: [EMAIL PROTECTED] -Original Message- Fr

Re: [PHP] stream_set_timeout() mystery

2005-02-01 Thread Jochem Maas
Richard Lynch wrote: Al wrote: Hi Richard, thanks for the help. Note I have the timeout set for 1 microsec, have tried several values, eg, 100ms, 1 sec, etc. I even used a 4mb file and it did nothing. It seems as if stream_set_timeout() does nothing. Note in socket_get_status(), [timed_out] => is

Re: [PHP] cal_days_in_month() missing, how can I tell if it exists

2005-02-01 Thread Jochem Maas
Ben Edwards wrote: I have been implementing a system on a different ISP than I normally use and have got:- Fatal error: Call to undefined function: cal_days_in_month() in /home/hosted/www.menublackboard.com/public_html/dev/classes/validator.class.php on line 134 I found a reference to this an the

[PHP] Escaped characters

2005-02-01 Thread Brian Dunning
I am storing some text from forms into MySQL as base64_encode(). So far this has worked well at dealing with weird characters. But when I output it, everything is escaped with \. I can't replace those out with '' since sometimes they are supposed to be in there. What's the best way to output th

[PHP] cal_days_in_month() missing, how can I tell if it exists

2005-02-01 Thread Ben Edwards
I have been implementing a system on a different ISP than I normally use and have got:- Fatal error: Call to undefined function: cal_days_in_month() in /home/hosted/www.menublackboard.com/public_html/dev/classes/validator.class.php on line 134 I found a reference to this an the web and it seems

[PHP] SOLVED - trouble with JCal Class

2005-02-01 Thread Phillip S. Baker
I was able to figure out the problem. If there is anyone else out there that is using it and needs the solution let me know and I will pass it on. -- Blessed Be Phillip "Phillip S. Baker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am posting this here, as it is a bug in the

RE: [PHP] Switch Form

2005-02-01 Thread Jay Blanchard
[snip] Hi list,I have 2 forms : Now, in page.php is possible to do a switch of form name? Something like this : Switch ($_POST['form'] { 'form1' : ... 'form2' : ... } If this is possible,i dont know how to call it, can you help me please? [/snip] Do this... switch

[PHP] Switch Form

2005-02-01 Thread Lancer Emotion 16
Hi list,I have 2 forms : Now, in page.php is possible to do a switch of form name? Something like this : Switch ($_POST['form'] { 'form1' : ... 'form2' : ... } If this is possible,i dont know how to call it, can you help me please? Thanks in advance. -- lancer emotion 16

Re: [PHP] stream_set_timeout() mystery

2005-02-01 Thread Richard Lynch
Al wrote: > Hi Richard, thanks for the help. > > Note I have the timeout set for 1 microsec, have tried several values, eg, > 100ms, 1 sec, etc. I even used a 4mb file and it did nothing. > > It seems as if stream_set_timeout() does nothing. > > Note in socket_get_status(), [timed_out] => is a

[PHP] Help: trouble with JCal Class

2005-02-01 Thread Phillip S. Baker
I am posting this here, as it is a bug in the application and I awanted to see if anyone else is using this and has come up with a solution. If not and after I figure out more in the code what is going on, if I cannot figure it out I will give you all a block of code. (Oh and I have emailed the aut

Re: [PHP] Displaying a html line as html

2005-02-01 Thread Jochem Maas
Todd Cary wrote: Jochem - Sorry! The prior message was incorrect. Here it is corrected. er ok, no probs. although you needn't have bothered sending the correction as someone has already pointed out the mistake in the function, namely your use of HTML entities instead of normal LT ang GT brackets.

Re: [PHP] function and interface in parameter list?

2005-02-01 Thread Jochem Maas
Marco Schuler wrote: Am Dienstag, 1. Februar 2005 16:07 schrieb Marco Schuler: Am Dienstag, 1. Februar 2005 15:50 schrieb Jochem Maas: Marco Schuler wrote: Hi I found a function declaration in an open source project (in php5) and I could not find documantation for this. The function declaration is:

Re: [PHP] PHP SOAP Client question

2005-02-01 Thread Jochem Maas
PHPDiscuss - PHP Newsgroups and mailing lists wrote: The following wsdl file was provided to me. http://64.122.63.81:5454/IfxService.wsdl I first attempted to genrate the PHP classes using the following code... require_once('SOAP/Client.php'); $wsdl=new SOAP_WSDL('http://64.122.63.81:5454/IfxServ

Re: [PHP] stream_set_timeout() mystery

2005-02-01 Thread Al
Hi Richard, thanks for the help. Note I have the timeout set for 1 microsec, have tried several values, eg, 100ms, 1 sec, etc. I even used a 4mb file and it did nothing. It seems as if stream_set_timeout() does nothing. Note in socket_get_status(), [timed_out] => is always false. Richard Lynch w

Re: [PHP] best flow for this project

2005-02-01 Thread Richard Lynch
Dustin Krysak wrote: > -a user adds their email address, name, etc to a database. > -a responder sends an email to them to confirm their email address > (within 72 hrs). > -upon confirmation of their email address, a script will generate a > store coupon with a random coupon id # in the browser (wh

Re: [PHP] file upload error

2005-02-01 Thread Richard Lynch
Tom wrote: > Thanks for the replies. My manual was out of date, not that it would > have made any difference to this anyway as . > upload_tmp_dir variable was correctly set in the php.ini file, and I'd > restarted the web server several times. It seems however that the file > is getting cached

Re: [PHP] stream_set_timeout() mystery

2005-02-01 Thread Richard Lynch
Al wrote: > Anyone see why stream_set_timeout() / socket_get_status() don't work? Perhaps you should explain what you think isn't working... Cuz it sure looks good to me... > $fp= fopen($URL_full, 'r'); > > stream_set_timeout($fp, 0, 1); tried other values for microseconds > > $procque_str= frea

Re: [PHP] Homebrew fulltext search function (help)

2005-02-01 Thread Richard Lynch
Jason Morehouse wrote: > within a sqlite call. This pases matched content to a function, where > the function needs to pass back a score: > > sqlite_create_function($sDB, 'fulltext', 'fulltext_step',2); > > function fulltext_step($title, $content) { > $words = explode(' ', strtolower('php boo

Re: [PHP] fsockopen

2005-02-01 Thread Richard Lynch
pete M wrote: > am not having a lot of success with opening a socket to a secure domain > (php 4.3.8 - apache - openSSL) > > $fp = fsockopen($url , 443 ,$errno, $errstr, 30); You would need to do S much work to get this going, generating complementary two-way encryption keys... Just use curl:

Re: [PHP] inserting utf8 from PHP to MySQL makes text unreadable [SOLVED]

2005-02-01 Thread Dave
Marek, Thank you for your advice. I've wrapped my variable like so: htmlspecialchars( $HTTP_POST_VARS['introJ'], ENT_COMPAT, "UTF-8") and that seems to have made the variables store and display okay. I actually have no idea what the "ENT_COMPAT" bit is doing, but experimentation has taug

Re: [PHP] Displaying a html line as html

2005-02-01 Thread Matt Harnaga
You are using html entity code for brackets and such. When you use < instead of <, the web browser prints it literally as a < rather than interpreting it as an html symbol to mark the start of an anchor (or whatever). Replace the entity code with their 'regular' equivalents and you're print pr

[PHP] fsockopen

2005-02-01 Thread pete M
am not having a lot of success with opening a socket to a secure domain (php 4.3.8 - apache - openSSL) $fp = fsockopen($url , 443 ,$errno, $errstr, 30); have tried the following $urls --- $url = 'domain.net'; Bad Request Your browser sent a request that this server could not u

Re: [PHP] Displaying a html line as html

2005-02-01 Thread Todd Cary
Jochem - Sorry! The prior message was incorrect. Here it is corrected. Here is the executing code: $page_string = make_page_string($page_string, "Search"); $script_string = make_script_string($script_string, "search.php"); print("Page_string: " . $page_string . ""); print("Script_string: "

Re: [PHP] Displaying a html line as html

2005-02-01 Thread Todd Cary
Jochem - Here is the function: /* Make page path */ function make_page_path($page_string, $script_name) { $parts = explode('|', $page_string); for ($i = 0; $i < count($parts); $i++) { if ($i == 0) { $page_path = '' . $parts[$i] . '';

[PHP] stream_set_timeout() mystery

2005-02-01 Thread Al
Anyone see why stream_set_timeout() / socket_get_status() don't work? $fp= fopen($URL_full, 'r'); stream_set_timeout($fp, 0, 1); tried other values for microseconds $procque_str= fread($fp, 8096); print_r(socket_get_status($fp)) ; Print_r is: Array ( [wrapper_data] => Array

[PHP] Homebrew fulltext search function (help)

2005-02-01 Thread Jason Morehouse
Hello, I'm trying to make up for the lack full text searching in sqlite by passing the search off to php with sqlite_create_function. The parsing part works fine, but I'm a little lost with the scoring, if anyone perhaps a little better @ math than I am, may be of assistance! The parsing code

Re: [PHP] function and interface in parameter list?

2005-02-01 Thread Marco Schuler
Am Dienstag, 1. Februar 2005 16:07 schrieb Marco Schuler: > Am Dienstag, 1. Februar 2005 15:50 schrieb Jochem Maas: > > Marco Schuler wrote: > > > Hi > > > > > > I found a function declaration in an open source project (in > > > php5) and I could not find documantation for this. The function > > >

Re: [PHP] function and interface in parameter list?

2005-02-01 Thread Marco Schuler
Hi Am Dienstag, 1. Februar 2005 15:50 schrieb Jochem Maas: > Marco Schuler wrote: > > Hi > > > > I found a function declaration in an open source project (in > > php5) and I could not find documantation for this. The function > > declaration is: > > > > public function registerComp(IComp $comp) >

Re: [PHP] function and interface in parameter list?

2005-02-01 Thread Jochem Maas
Marco Schuler wrote: Hi I found a function declaration in an open source project (in php5) and I could not find documantation for this. The function declaration is: public function registerComp(IComp $comp) Is it a kind of typecast? no its a type declaration (is that the correct term). it states

Re: [PHP] fopen, fsockopen on my virtual host

2005-02-01 Thread Al
Richard Lynch wrote: Al wrote: Richard Lynch wrote: Al wrote: I've got a script that fetches a stream from a file on our virtual host. Its been working fine; but, yesterday they changed something and it no longer works. Can you define "no longer works" a bit more clearly... Error messages? Just ti

[PHP] function and interface in parameter list?

2005-02-01 Thread Marco Schuler
Hi I found a function declaration in an open source project (in php5) and I could not find documantation for this. The function declaration is: public function registerComp(IComp $comp) Is it a kind of typecast? -- Cheers! Marco -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Displaying a html line as html

2005-02-01 Thread Jochem Maas
Todd Cary wrote: OK...I am close, but still missing something. The string returned by the function is $page_path and it contains http://209.204.172.137/casesearch/php/search.php";>Home-> ^ what ever else you function is doing this is probably not cor

Re: [PHP] Displaying a html line as html

2005-02-01 Thread Todd Cary
OK...I am close, but still missing something. The string returned by the function is $page_path and it contains http://209.204.172.137/casesearch/php/search.php";>Home-> http://209.204.172.137/casesearch/php/search.php";>Search And here is how the function is used: $page_path = make_page_path($

[PHP] PHP SOAP Client question

2005-02-01 Thread PHPDiscuss - PHP Newsgroups and mailing lists
The following wsdl file was provided to me. http://64.122.63.81:5454/IfxService.wsdl I first attempted to genrate the PHP classes using the following code... http://64.122.63.81:5454/IfxService.wsdl); // Look at the generated code... echo ( $wsdl->generateProxyCode() ); ?> ---

Re: [PHP] file upload error

2005-02-01 Thread Tom
Thanks for the replies. My manual was out of date, not that it would have made any difference to this anyway as . upload_tmp_dir variable was correctly set in the php.ini file, and I'd restarted the web server several times. It seems however that the file is getting cached somehow, and is no

Re: [PHP] inserting utf8 from PHP to MySQL makes text unreadable

2005-02-01 Thread Marek Kilimajer
Dave wrote: PHP General, The Situation: I am creating a form for users to enter text into a MySQL 3.23 database. The text is often in Japanese, encoded in utf-8 format. The Problem: When the utf-8 encoded text is inserted into the database, it becomes random ASCII gibberish. What