[PHP] IDNDDE & PHP
Hi everybody, First of all, Excuse me for my english but I'm french. I would like to know if somebody already used the com functions of PHP to retrieve data from Reuters terminal using IDNDDE. I'm a newbie in PHP, so i would appreciate if you could detailed the answers Regards Laurent Drouet -- 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] DDE & PHP (follow up)
If I want to access Reuters using VBA I can do : Sub Request () Rem Initiate a conversation with the IDN Server ChannelNumber = DDEInitiate("REUTER", "IDN") Rem Issue a request and place value in cell A1 of the active sheet ActiveSheet.Cells(1, 1).Formula = DDERequest(ChannelNumber, "IBM,LAST") Rem Terminate the conversation with the IDN Server DDETerminate (ChannelNumber) End Sub How can it be done in PHP ? Laurent Drouet --- Hi everybody, First of all, Excuse me for my english but I'm french. I would like to know if somebody already used the com functions of PHP to retrieve data from Reuters terminal using IDNDDE. I'm a newbie in PHP, so i would appreciate if you could detailed the answers Regards Laurent Drouet -- 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] COM
Hi everybody, When i run the following script in a dos box it works fine. If i run it in a browser window i receive a Dr Watson. Anybody has an idea ? My config is Apache 1.3.20 PHP 4.0.5 Windows NT4 SP5 French The script is inspired of the following url http://www.phpbuilder.net/columns/alain20001003.php3 application->Workbooks->Open($workbook,3) or Die ("Did not open"); $sheets = $wkb->Worksheets($sheet);#Select the sheet $sheets->Calculate; $sheets->activate; #Activate it $cell = $sheets->Cells(2,2) ;#Select the cell (Row Column number) $cell->activate;#Activate the cell $oldcell=$cell->value; print "Cac40 = {$cell->value} ";#Print the value of the cell:1 $cell = $sheets->Cells(1,2) ;#Select the cell (Row Column number) $cell->activate;#Activate the cell $oldcell=$cell->value; print "DowJones = {$cell->value} ";#Print the value of the cell:1 #Close all workbooks without questioning $ex->application->ActiveWorkbook->Close(False); unset ($ex); ?> -- 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] PHP without browser
Hi everybody I would like to pass parameters to a php script running as a bach job under windows. Is there any possibility to something like that ? Laurent Drouet -- 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] Mysql / PostgreSQL with PHP
Hi everybody I'm not sure it is the best place for my question. Until now we were using PHP connecting to an oracle database. We are looking to change for an opensource database for the new applications. Do you know where I can find a recent and objective study comparing both with PHP to connect to it. Thanks and exceuse me if it is not the right forum to ask it Laurent Drouet -- 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]
Re: [PHP] PHP IDE
You can use html-kit (www.chami.com) with the php plugin. Very simple editor with syntax highlighting. Free Or you can buy phped from www.nusphere.com more sophisticated. Laurent Drouet -- 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] Ereg ()
Hi, I'm new with RegEx and I would like to use them to validate my forms entries submitted to the server. My question is how can I verify with the regex that a string is - at least 7 chars - contains Chars and Nums - may contains some special chars (ex : % ! : ; , )but not in first or last position . Regards Laurent Drouet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Ereg ()
Thanks for this answer. But how can i test if i actually have numbers AND letters ? Laurent Drouet Erik Price cc: [EMAIL PROTECTED] Subject: Re: [PHP] Ereg () 16/04/02 15:44 On Tuesday, April 16, 2002, at 08:49 AM, [EMAIL PROTECTED] wrote: > > I'm new with RegEx and I would like to use them to validate my forms > entries submitted to the server. > > My question is how can I verify with the regex that a string is > - at least 7 chars > - contains Chars and Nums > - may contains some special chars (ex : % ! : ; , )but not in first or > last > position . I'm assuming that by Chars you mean uppercase/lowercase letters? Numbers are characters too, I thought. preg_match('/^[A-Za-z0-9][A-Za-z0-9%!:;,]{5,}[A-Za-z0-9]$/', $string); The above regex will only match a string that begins with A-Z or a-z or 0-9, then any number of characters that are in the middle character class, then a final A-Z or a-z or 0-9. I think. Try it out, that's untested. Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re : Ereg ()
thanks to all of you for you help. regards Laurent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Pb with socket_set_timeout()
Hi the ML I received the following error message on my web page when I try to communicate with My SMTP server: Warning: socket_set_timeout() is not supported in this PHP build My config is PHP 4.0.6 Win Nt 4 Apache 1.3.22 Any information on this function ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] $HTTP_POST_VARS vs _POST
HI ML Only one little question : I know that _POST doesn't exists on php 4.0.6 but does $HTTP_POST_VARS exist on php 4.1.2 ? Regards Laurent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] validating user input
Hi the M.L. I have to validate forms user inputs before the construction of my query to my Oracle DB Does anybody know the list of characters that should be rejected (for example ;) ? Do you have a function to validate it ? regards Laurent Drouet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP & PDF
Hi the ML I have the following question : I have constructed several pages with PHP which look likes some reports. (I attached one example to my mail) Now I need to convert this HTML page to PDF to send it by mail . Does any one has an idea ? Laurent Drouet (See attached file: samples.zip) # This message has been scanned for viruses with F-Secure Anti-Virus for Lotus Domino and it has been found clean. For more information about computer viruses, connect to http://www.F-Secure.com/vir-info/. # samples.zip Description: Zip archive -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] FFlush
Hi, I was wondering if anyone has already used this function (FFlush). If yes, do you have some example to show to me ? Regards Laurent Drouet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Newbie question about PHP and Oracle
I don't know how it works in my sql. I've written some functions to help me construct these sort of things. It might help you PS : Sorry but the comments are in French. Laurent Drouet /* ** Cette fonction retourne toutes les lignes d'une ** ** requette dans un tableau multidimensionnel. Une ** ** variable globale $db_selectall2_nrows2 est ** ** definie pour pouvoir transmettre le nombre ** ** de ligne de la requette ** **/ function db_selectall2($id_connect,$query) { global $db_selectall2_nrows2; $stmt = ociparse($id_connect,$query); ociexecute($stmt); $db_selectall2_nrows2 = ociFetchStatement($stmt,$results); return $results; } /* ** Creation d'une liste d'options (SELECT) a partir d'un** ** tableau bidimensionnel. Les parametres a fournir a ** ** cette fonction sont le tableau et le nombre de lignes** ** de la requette. Le premier parametre du tableau ** ** contient la valeur de la liste deroulante. Les ** ** autres colonnes du tableau sont concatenees avec ** ** la premiere et sont affichees. Cette fonction ** ** peut etre appelee apres db_selectall2 ** **/ function creat_select($resquery,$totlines, $action) { $nbre=sizeof($resquery); $colres=array_keys($resquery); print "\n"; for ($row=0; $row<$totlines; $row++ ) { print ""; for ($x=0; $x<$nbre; $x++) { if ($x<>0) { print ", ".$resquery[$colres[$x]] [$row]; } else { print $resquery[$colres[$x]] [$row]; } } print "\n"; } print ""; } /* ** Creation d'une liste d'options (SELECT) a partir ** ** d'un tableau bidimensionnel. Les parametres a fournir** ** a cette fonction sont le tableau et le nombre de ** ** ligne de la requette. la valeur de la liste ** ** deroulante sera la concatenation de toutes ** ** les valeurs. Cette fonction peut etre appelee ** ** apres db_selectall2 ** **/ function creat_select1value($resquery,$totlines, $action) { $nbre=sizeof($resquery); $colres=array_keys($resquery); print "\n"; print "<--SELECT-->\n"; for ($row=0; $row<$totlines; $row++ ) { print "0) { $texte.=", ".$resquery[$colres [$x]][$row]; } else { $texte=$resquery[$colres[$x]] [$row]; } } print $texte."\">".$texte."\n"; } print ""; } /* ** Creation d'une liste d'options (SELECT) a partir ** ** d'un tableau bidimensionnel. Les parametres a fournir** ** a cette fonction sont le tableau et le nombre de ** ** ligne de la requette. la valeur de la liste ** ** deroulante sera la concatenation de toutes ** ** les valeurs. Cette fonction peut etre appelee ** ** apres db_selectall2 ** **/ function creat_selectcomplex($resquery,$headervalue, $headerdisplay, $totlines, $action) { $nbrevalue=sizeof($headervalue); $nbredisplay=sizeof($headerdisplay); //$colres=array_keys($resquery); print "\n"; print "<--SELECT-->\n"; for ($row=0; $row<$totlines; $row++ ) { print "0) { $textevalue.=", ".$resquery [$headervalue[$y]][$row]; } else { $textevalue=$resquery[$headervalue [$y]][$row]; } } for ($x=0; $x<$nbredisplay; $x++) { if ($x<>0) { $textedisplay.=", ".$resquery [$headerdisplay[$x]][$row]; } else { $textedisplay
Re: [PHP] Telnet
Hi, you can find all what you want on the following url : http://phpclasses.upperdesign.com/browse.html/class/2/ Personnaly I use the SMTP class from Richard Heyes Laurent "Uma Shankari T." <[EMAIL PROTECTED] To: [EMAIL PROTECTED] et.res.in> cc: Subject: [PHP] Telnet 22/02/02 05:17 Hello, By using telnet option how i will send a mail from my machine using php..If any one came to know this plz tell me how to do it... -Uma -- 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
[PHP] File Upload.
Hi everybody. I use a form to upload data to Oracle database using csv file. I need to display a result page with all the lines who are good and the one which are bad. Everything works fine except the little problem of the refresh If I click on the Explorer Refresh Button I will upload an other time the same file. How can I solve this problem ? Laurent Drouet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Database abstraction layer oci
Hi everybody. I would like your opinion on the Database Abstraction Layer you prefer (I will use it with Oracle 8i) I know that there is Metabase end Pear DB What's your opinion on both or others ? Laurent Drouet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] apache htpasswd win32
Hi everybody I would like to know if somebody already wrote a script to allow apache user administration from php under Win32 All the scripts I found are made for linux (using crypt function) I tried to generate the password with the md5 function but it's not working perhaps I don't know how to use it. Could you help me ? Laurent Drouet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php