Re: [PHP-WIN] file self check

2004-08-08 Thread Ignatius Reilly
You could store a table or a text file associating to each script its MD5 hash string. check the PHP md5() function _ - Original Message - From: "Ragnar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 09, 2004 8:09 AM Subject: [PHP-WIN] file self c

Re: [PHP-WIN] Passing a Multidimensional Array through a hidden form element

2004-05-03 Thread Ignatius Reilly
You can pass them in the following form: then your REQUEST var will be a 2-dimensional array there is a splendid PEAR HTML_Javascript class that converts PHP variables into JS variables. HTH Ignatius _ - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PR

Re: [PHP-WIN] Can you receive email with php?

2004-04-19 Thread Ignatius Reilly
Have a look at the PHP IMAP functions. _ - Original Message - From: "Brent" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 20, 2004 7:47 AM Subject: [PHP-WIN] Can you receive email with php? > Hi, just wondering if anyone knows of some plugin or

Re: [PHP-WIN] quotes in mysql

2004-04-02 Thread Ignatius Reilly
Not so. No stripslashes required. If you add slashes when writing your PHP query, slashes will NOT be sent to the DB. In other words: $name = addslashes( "O'Reilly" ) ; $query = " INSERT ... SET name = '{$name}' " ; // etc. will simply store "O'Reilly" in the DB. The desired result. Neve

Re: [PHP-WIN] ASP.NET web control in PHP?

2004-03-30 Thread Ignatius Reilly
Check the PEAR library, especially: - Quickform - Quickform Controller - Datagrid and many other nice things _ - Original Message - From: "Bill" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, March 30, 2004 7:04 PM Subject: [PHP-WIN]

Re: [PHP-WIN] Problems with CONSTANTS that does not get defined

2004-03-05 Thread Ignatius Reilly
Beats me. Ignatius _ - Original Message - From: "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 05, 2004 13:17 Subject: [PHP-WIN] Problems with CONSTANTS that does not get defined > Running this code: > > > [...] > // META

Re: [PHP-WIN] start an external program (isqlw.exe)

2004-03-02 Thread Ignatius Reilly
Were you using MySQL, you could do it nicely with phpMyAdmin. Ignatius _ - Original Message - From: "Gerardo Rojas" <[EMAIL PROTECTED]> To: "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, March 02, 2004 18:17 Subject: RE: [PHP-WIN] s

Re: [PHP-WIN] Re: Emailing via mail(), secondary servers

2004-02-18 Thread Ignatius Reilly
Although this conversation has by now undoubtedly accrued to human knowledge, there may be other more suitable forums where to pursue it. Ignatius _ - Original Message - From: "Justin Patrin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 18,

Re: [PHP-WIN] printing a php page

2004-02-18 Thread Ignatius Reilly
o Marciano" <[EMAIL PROTECTED]> To: "Ignatius Reilly" <[EMAIL PROTECTED]> Sent: Wednesday, February 18, 2004 17:33 Subject: Re: [PHP-WIN] printing a php page > i mean a page with a summary of information inserted in a form. the user > would like to print

Re: [PHP-WIN] printing a php page

2004-02-18 Thread Ignatius Reilly
I suppose you mean the client's printer? onclick="javascript:window.print()" reminder: PHP is mostly used server-side HTH Ignatius _ - Original Message - From: "Ciro" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 18, 2004 17:20 Subject: [PH

Re: [PHP-WIN] building a string question

2004-02-03 Thread Ignatius Reilly
Syntax error. Try instead $amendmentNumber = $_POST['amendmentID_'.$i]; HTH Ignatius _ - Original Message - From: "Herhuth, Ron" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 03, 2004 16:58 Subject: [PHP-WIN] building a string question I am

Re: [PHP-WIN] How have you learned PHP?

2004-02-02 Thread Ignatius Reilly
I haven't. Ignatius _ - Original Message - From: "Cyrus Misthalin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 02, 2004 20:03 Subject: [PHP-WIN] How have you learned PHP? How have you learned PHP? -- PHP Windows Mailing List (http://www.p

Re: [PHP-WIN] Show the Progress of a file being uploaded

2004-01-20 Thread Ignatius Reilly
Show the Progress of a file being uploaded > I guess you don't get what this discussion is all about. It's about file > upload progress bar not about progress bars in general. > > /Donny > > > Ignatius Reilly wrote: > > >There is a great PEAR class to do j

Re: [PHP-WIN] Show the Progress of a file being uploaded

2004-01-20 Thread Ignatius Reilly
There is a great PEAR class to do just that: HTML_Progress. Easy to use and powerful. I use it with much satisfaction. HTH Ignatius _ - Original Message - From: "Derrick Hermanson" <[EMAIL PROTECTED]> To: "Php-Windows List" <[EMAIL PROTECTED]>; "Arijit Chaudhuri" <[

Re: [PHP-WIN] Regular expressions

2004-01-15 Thread Ignatius Reilly
What do you want to replace a match with? _ - Original Message - From: "Gerardo Rojas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 15, 2004 18:16 Subject: [PHP-WIN] Regular expressions I have 2 regular expressions that work correctly. How

Re: [PHP-WIN] Windows Dll

2003-12-03 Thread Ignatius Reilly
There is a chap who maintains DLL for PHP extensions: http://kromann.info/php4.php Ignatius _ - Original Message - From: "Kimberly Tully" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 03, 2003 14:33 Subject: [PHP-WIN] Windows Dll > Hi, > >

Re: [PHP-WIN] Upload and Download from local to server tools!( like w3Upload in asp)

2003-12-02 Thread Ignatius Reilly
PHP has a very nice FTP library. Check the manual. _ - Original Message - From: "Brent" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 02, 2003 09:53 Subject: [PHP-WIN] Upload and Download from local to server tools!( like w3Upload in asp) > G

Re: [PHP-WIN] Code to splite page

2003-11-27 Thread Ignatius Reilly
You may profitably investigate the PEAR HTML_Pager class. http://pear.php.net/manual/en/package.html.pager.intro.php Ignatius _ - Original Message - From: "Lawrence" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 27, 2003 14:43 Subject: [PHP-W

Re: [PHP-WIN] syntax for remove column

2003-11-26 Thread Ignatius Reilly
I would start here: "How To Ask Questions The Smart Way", an excellent (as always) article by Eric Raymond http://www.catb.org/~esr/faqs/smart-questions.html HTH _ - Original Message - From: "Rinku Shivnani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesd

Re: [PHP-WIN] Using PHP to reload a page w/variable.

2003-11-19 Thread Ignatius Reilly
Investigate the PEAR Quickform package. http://pear.php.net/manual/en/package.html.html-quickform.php _ - Original Message - From: "Roderick Martin" <[EMAIL PROTECTED]> To: "'PHP Help Desk'" <[EMAIL PROTECTED]> Sent: Wednesday, November 19, 2003 20:37 Subject: [PHP

Re: [PHP-WIN] JPgraph

2003-11-13 Thread Ignatius Reilly
http://www.aditus.nu/jpgraph/ _ - Original Message - From: "Rinku Shivnani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 13, 2003 10:45 AM Subject: [PHP-WIN] JPgraph > Dear all, > > Pls guide me on how to install jpGraph library in the serv

Re: [PHP-WIN] popen behaviour 4.3.2 & 4.3.3 bug ? (cli/php-gtk)

2003-11-07 Thread Ignatius Reilly
Wild guess: 'c:\phpdev\php\php-4.3.2\php.exe -q -f ' looks risky better 'c:\\phpdev\\php\\... or 'c:/phpdev/php/... _ - Original Message - From: "Simon Wheeler" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 07, 2003 12:59 PM Subject: [PHP-W

Re: [PHP-WIN] String Help

2003-11-06 Thread Ignatius Reilly
This seems to work: $pattern = "/(\w+) (?:(?:\w\.|\(\w+\))) (\w+)/" ; $replacement = "\$1 \$2" ; //$string = "John D. Smith" ; $string = "Joanne (Taylor) Smith" ; echo preg_replace( $pattern, $replacement, $string ) ; HTH Ignatius _ - Original Message - From: "

Re: [PHP-WIN] Changing the format of a date

2003-11-05 Thread Ignatius Reilly
$months = array( "Jan" => "01", ... ) ; $str = "Jun 15 1956" ; $str = explode( " ", $str ) ; $str = $months[$str[0]] ."/".$str[1] ."/". $str[2] ; HTH Ignatius _ - Original Message - From: "Herhuth, Ron" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, N

Re: [PHP-WIN] vars from page to page

2003-11-05 Thread Ignatius Reilly
Try $_REQUEST['msg'] instead of $msg This is the proper way to access form data. _ - Original Message - From: "Aidal" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 05, 2003 3:17 PM Subject: [PHP-WIN] vars from page to page > Hi NG. > > I ha

Re: [PHP-WIN] Pear ::DB

2003-11-05 Thread Ignatius Reilly
For PEAR-related questions, you probably will find better support on the PEAR mailing lists (php.pear.general), which already has a large, helpful archive. _ - Original Message - From: "Muhammad Imran" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, Nov

Re: [PHP-WIN] R: [PHP-WIN] best php editor?

2003-11-05 Thread Ignatius Reilly
Fast to type, maybe ;-) Reminds me that this list once hosted an epic brawl about Notepad... _ - Original Message - From: "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 05, 2003 11:49 AM Subject: Re: [PHP-WIN] R: [PHP

Re: [PHP-WIN] query error

2003-11-03 Thread Ignatius Reilly
This is a useful trick when generating conditions dynamically in SQL $sql = "SELECT ... WHERE 1 = 1 " ; foreach ( $conditions as $condition ) { $sql .= "AND {$condition}" ; } Ignatius _ - Original Message - From: "Luis Moreira" <[EMAIL P

Re: [PHP-WIN] background image

2003-10-21 Thread Ignatius Reilly
Spelling error: BTW: 1. this question is not very much PHP nor Win-related 2. is deprecated in favour of CSS attributes. HTH Ignatius _ - Original Message - From: "Rinku Shivnani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 21, 2003 9:22 A

Re: [PHP-WIN] Check mail format

2003-10-17 Thread Ignatius Reilly
You can use the following regex: /[EMAIL PROTECTED]/ Ignatius _ - Original Message - From: "MeAndI" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 17, 2003 2:51 PM Subject: [PHP-WIN] Check mail format > Hi, > > I just want to know how I can rec

Re: [PHP-WIN] PHP Graph

2003-10-07 Thread Ignatius Reilly
Investigate Jpgraph. Fantastic package. http://www.aditus.nu/jpgraph/ Ignatius _ - Original Message - From: "Rinku Shivnani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 08, 2003 7:47 AM Subject: [PHP-WIN] PHP Graph > Can any of you help m

Re: [PHP-WIN] Form question

2003-10-07 Thread Ignatius Reilly
To: <[EMAIL PROTECTED]> Sent: Tuesday, October 07, 2003 8:57 PM Subject: [PHP-WIN] Form question A bit off-topic. How do we submit a form on an onChange event of a drop-down list box. -- Gerardo S. Rojas mailto: [EMAIL PROTECTED] -- PHP Windows Mailing List (http://www.php.net/) To unsubscr

Re: [PHP-WIN] php_tidy.dll ?

2003-10-03 Thread Ignatius Reilly
its usd to trsfrm a html str into xhtml so tht u can traverse it w xpath ig _ - Original Message - From: "toby z" <[EMAIL PROTECTED]> To: "Ignatius Reilly" <[EMAIL PROTECTED]>; "Win32 list PHP" <[EMAIL PROTECTED]> Se

[PHP-WIN] php_tidy.dll ?

2003-10-02 Thread Ignatius Reilly
Hello, I am trying to use the Tidy extension found on Frank Kromann's site http://kromann.info/pecl.php (php_tidy.dll, libtidy.dll), but it does not work ("Can not load the specified module") Has anyone got it to work under PHP 4.3.3? Thanks Ignatius _ -- PHP Windows

Re: [PHP-WIN] Strange error

2003-10-01 Thread Ignatius Reilly
What version of MySQL are you using? >From 4.0.13 there is a severe bug that corrupts table after a DELETE operation. Solution: revert to 4.0.12 See http://bugs.mysql.com/bug.php?id=1321 HTH Ignatius _ - Original Message - From: "Charlie Brewer" <[EMAIL PROTECTED]

Re: [PHP-WIN] MySQL question

2003-09-22 Thread Ignatius Reilly
One possible reason why it does not work is that the DAY() function does not exist. Use DATE_FORMAT() instead. Ignatius _ - Original Message - From: "Disko_kex" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, September 22, 2003 10:47 AM Subject: [PHP-WIN]

Re: [PHP-WIN] Cant get maths functions to work in class file

2003-09-03 Thread Ignatius Reilly
echo() can interpolate a variable, but not an expression such as "$this->Unitprice*2" replace: echo " price * two is $this->Unitprice*2"; by: $bytwo = $this->Unitprice*2 ; echo " price * two is $bytwo"; HTH Ignatius _ - Original Message - From: "Mark Harrington"

Re: [PHP-WIN] download function

2003-09-01 Thread Ignatius Reilly
I found the solution to my problem. Sorry Ignatius _ - Original Message - From: "Ignatius Reilly" <[EMAIL PROTECTED]> To: "Win32 list PHP" <[EMAIL PROTECTED]> Sent: Saturday, August 30, 2003 1:19 PM Subject: [PHP-WIN] download fu

[PHP-WIN] download function

2003-08-30 Thread Ignatius Reilly
Hello, I have the following problem: I want users to download content that is stored in a private directory, as a downloadable file. So I do: header( "Content-type: octet/stream" ) ; header( "Content-Length: ".filesize( $file_path ) ) ; header( "Content-Disposition: attachment; filename={$filen

Re: [PHP-WIN] Re: how to establish relationship in Mysql

2003-08-21 Thread Ignatius Reilly
Not so. Actually you can enforce FOREIGN KEYs if you choose the InnoDB table type. Ignatius _ - Original Message - From: "Rob Adams" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 21, 2003 5:41 PM Subject: [PHP-WIN] Re: how to establish relations

Re: [PHP-WIN] Randomize mySQL result array

2003-08-14 Thread Ignatius Reilly
SELECT ... ORDER BY RAND() BTW there is a nice MySQL Windows mailing list. hth Ignatius _ - Original Message - From: "H Marc Bower" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, August 10, 2003 11:46 PM Subject: [PHP-WIN] Randomize mySQL result array

Re: [PHP-WIN] php.ini values ignored?

2003-06-21 Thread Ignatius Reilly
Did you restart Apache? Ignatius _ - Original Message - From: "Kit DeKat" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, June 21, 2003 9:14 PM Subject: [PHP-WIN] php.ini values ignored? > Nothing i change in the php.ini is being read/loaded. > my ''

[PHP-WIN] Fw: PHP array => Javascript array :: solved

2003-04-04 Thread Ignatius Reilly
de temps pour s'habituer à l'obscurité". ____ - Original Message - From: "Ignatius Reilly" <[EMAIL PROTECTED]> To: "Win32 list PHP" <[EMAIL PROTECTED]> Sent: Friday, April 04, 2003 2:53 PM Subject: PHP a

[PHP-WIN] PHP array => Javascript array

2003-04-04 Thread Ignatius Reilly
Hello, I am looking for a function or a class to convert a multidimensional associative PHP array into an equivalent Javascript array (that is the declaration string in : var my_array = ) Googled to no avail. If somebody can save me a few hours of coding this thing, I would greatly appreciate. T

Re: [PHP-WIN] SSL win platform

2003-03-10 Thread Ignatius Reilly
Yes, it does work very nicely. Check this tutorial for installing SSL support: http://www.serverwatch.com/tutorials/article.php/1437211 HTH Ignatius - Original Message - From: "John M." <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, March 08, 2003 11:26 PM Subject: [PHP-WIN]

Re: [PHP-WIN] PHP questionaire

2003-02-14 Thread Ignatius Reilly
You may look up into www.devshed.com I remember seeing a good tutorial for PHP/ MySQL polling ("Democracy - the PHP way" or something approaching) Ignatius - Original Message - From: "Arthur Radulescu" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]

Re: [PHP-WIN] Re: Is there something like findfirst/findnext

2003-02-12 Thread Ignatius Reilly
You could have read even better: This will avoid the "." and ".." elements in the directory, that one usually does not need. HTH INAS, from Brussels (Ignatius is Not Ander Svensson) - Original Message - From: "J.Veenhuijsen" <[EMAIL PROTECTED

Re: [PHP-WIN] reading lines from a file

2003-02-11 Thread Ignatius Reilly
ng about firing himself) - Original Message - From: "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]> To: "Ignatius Reilly" <[EMAIL PROTECTED]> Cc: "Php Win32 list" <[EMAIL PROTECTED]> Sent: Tuesday, Februa

Re: [PHP-WIN] reading lines from a file

2003-02-11 Thread Ignatius Reilly
Hi Mr Svensson , I trust that I am not the only one to be curious to learn more concerning your remark. I routinely parse files similar to those of Mr Pitcher, using PHP from the Windows command line. So far I have never had any problem generating CSV files containing about a million rows (Celero

Re: [PHP-WIN] PHP and Win95

2003-01-25 Thread Ignatius Reilly
This is a known problem. Solution: downgrade to Windows 3.1 Just joking. Now really for development purposes you should use Windows 98SE at least. A second-hand licence costs 15 EUR. Windows 2000 is the minimum required for any serious work. Ignatius -

Re: [PHP-WIN] RE: What kind of Editor you used to build PHP script ?

2003-01-17 Thread Ignatius Reilly
I would add to this list a visual editor of HTML tables. To me a most important feature, and the reason I continue to use Dreamweaver 4 to code PHP, despite the absence of colour highlighting. Ignatius. - Original Message - From: "Uttam" <[EMAIL PROTECTED]> To: "'skyweb'" <[EMAIL PROTECTE

Re: [PHP-WIN] create ranking

2003-01-15 Thread Ignatius Reilly
You can create an auxiliary table, that holds the number of teams for each points amount: CREATE TEMPORARY TABLE T SELECT Points, MIN( Rank ) AS SmallerRank FROM myTable GROUP BY Points You get: Points SmallerRank 101 92 74 Now you join this table to the original

Re: [PHP-WIN] Windows Service interactions with PHP

2003-01-14 Thread Ignatius Reilly
AIL PROTECTED]> To: "Ignatius Reilly" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 14, 2003 7:24 PM Subject: Re: [PHP-WIN] Windows Service interactions with PHP > Yes this does work but how do I simply destermine the > status of the service

Re: [PHP-WIN] Windows Service interactions with PHP

2003-01-14 Thread Ignatius Reilly
You can access the command line with the backtick operator: "file_to_parse.txt"` ; ?> En espérant que cela aide Ignatius - Original Message - From: "Paul Menard" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 14, 2003 5:1

Re: [PHP-WIN] PHP Math

2003-01-13 Thread Ignatius Reilly
you don't use functions, but operators (unary, binary, ternary) like in all usual languages. see the PHP manual under "operators" section. always better to look up the manual first. your question does not belong to this mailing list. Ignatius - Ori

Re: [PHP-WIN] sessions expire for dial up users and old browers

2003-01-13 Thread Ignatius Reilly
It is advisable to write the cookie in full details: // at the top of each page: session_start() ; setcookie( session_name(), session_id(), time()+3600, "/" ) ; ob_start() ; // etc Ignatius - Original Message - From: "Olav Bringedal" <[EMAIL PR

Re: [PHP-WIN] Extract Path from URL

2003-01-06 Thread Ignatius Reilly
Don't use a regex: Try: $input = "http://www.test.com/path1/thisdoc.html"; ; // find last occurence of "/" $pos = strrpos( $input, "/" ) ; // extract until this position $output = substr( $input, 0, $pos - strlen( $input ) + 1 ) ; echo $output ; HTH Ignatius __

Re: [PHP-WIN] loop through string

2003-01-05 Thread Ignatius Reilly
// transform string into an array $arr = explode( ',', $mylist ) ; // loop the array foreach( $arr as $element ) Ignatius - Original Message - From: "Gregory Lewis" <[EMAIL PROTECTED]> To: "php-windows" <[EMAIL PROTECTED]> Sent: Sunday, January

Re: [PHP-WIN] Similiar to server.transfer() ...

2002-12-22 Thread Ignatius Reilly
Check the header( "Location: ... ) function in the PHP manual. Ignatius - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, December 22, 2002 11:50 AM Subject: [PHP-WIN] Similiar to server.transfer() ... > Hey

Re: [PHP-WIN] "subscription" php/mysql script anyone?

2002-12-19 Thread Ignatius Reilly
Your question is a bit too "high-level" to simply ask for a script. There are many ways to define "certain server areas". What content architecture do you use? A subdirectory? A parameter passed? Ignatius - Original Message - From: Wolfga

[PHP-WIN] php_mcrypt.dll compatible with PHP 4.2.3 ??

2002-12-17 Thread Ignatius Reilly
Hello, I am desperately seeking for a php_mcrypt.dll compatible with PHP 4.2.3. I tried a copy downloaded from some obscure place, but it did not work. Can anybody help me? Thanks Ignatius "L'avantage d'être borgne, c'est qu'il faut deux fois moins de temps pour s'habituer à l'obscurité" __

Re: [PHP-WIN] Timed mailing: is it possible?

2002-12-05 Thread Ignatius Reilly
You should use Win2K's excellent task scheduling. Create an AT with the command "c:/php/php.exe c:/.../my_script.php" (adapt) HTH Ignatius - Original Message - From: "Paolo Bonavoglia" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday,

Re: [PHP-WIN] auto increment

2002-12-05 Thread Ignatius Reilly
You can not do it straightforwardly. The required data type does not exist in MySQL. An auto_increment field is of type INTEGER. Ignatius - Original Message - From: "Pat Johnston" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, Decem

Re: [PHP-WIN] array problem need help quick

2002-12-01 Thread Ignatius Reilly
When looping your SELECT result (or whatever), feed two arrays: $arr[] = array( "name" => "marmite", "tally" => 10 ) ; + an "index" array that will serve to rank items: $rank[] = 10 ; Now you sort $rank on the value. The whole idea is that you will not need to sort $arr (you ca

Re: [PHP-WIN] get service status on win32 from php

2002-11-28 Thread Ignatius Reilly
Oops! This is better: `net start > c:/netlist.txt` // back ticks ^^ Ignatius - Original Message - From: "Ignatius Reilly" <[EMAIL PROTECTED]> To: "Alexander Kuznetsov" <[EMAIL PROTECTED]>;

Re: [PHP-WIN] get service status on win32 from php

2002-11-28 Thread Ignatius Reilly
you can do: `net start c:/netlist.txt` // back ticks the resulting file is trivial to parse. HTH Ignatius - Original Message - From: "Alexander Kuznetsov" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 28, 2002 3:39 PM S

Re: [PHP-WIN] Redirect browser to another URL?

2002-11-28 Thread Ignatius Reilly
I concur with Stephen. However, there is an EXTREMELY simple and convenient way to control output - that has not been mentioned in this thread: start all your PHP scripts with : ob_start() ; then you can pepper your script with one < header:Location... > statement EVERYWHERE you want (in my case I

Re: [PHP-WIN] Getting my IP adress (not 127.0.0.1)

2002-11-25 Thread Ignatius Reilly
I once wrote a script to do just that: // get W2K ipconfig info: $text = `ipconfig` ; // back ticks, not single quotes // first extract text block after "PPP" $needle = "PPP" ; $a = strstr( $text, $needle ) ; $a = substr( $a , 0, 180 ) ; // then extract IP address $needle = "IP Address. . . . .

[PHP-WIN] Looking for mcrypt.dll for PHP 4.2.3

2002-11-09 Thread Ignatius Reilly
Hello, I tried to install the mcrypt extension successfully on Windows, but when restarting Apache (PHP 4.2.3 as module) I get the error message: "The procedure entry point _ecalloc could not be located in the dll php4ts.dll" Probably I do not have the correct version for php_mcrypt.dll Anybody

Re: [PHP-WIN] Submit

2002-11-01 Thread Ignatius Reilly
This element will not submit. You have to write: Ignatius - Original Message - From: "Jarrad Kabral" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 01, 2002 7:19 AM Subject: RE: [PHP-WIN] Submit > > > > -Original Mes

Re: [PHP-WIN] MySQL Query

2002-10-25 Thread Ignatius Reilly
s" <[EMAIL PROTECTED]> To: "Ignatius Reilly" <[EMAIL PROTECTED]>; "PHP Helplist Windows" <[EMAIL PROTECTED]> Sent: Friday, October 25, 2002 2:30 PM Subject: RE: [PHP-WIN] MySQL Query > Ok, solved that problem, can anyone help me on my last query, i need to

Re: [PHP-WIN] MySQL Query

2002-10-25 Thread Ignatius Reilly
arrays are not a datatype for MySQL. You have to serialize your array into a string. You must choose a suitable delimitor that will not conflict with your data. Taking as an example ",": $to_feed = implode( "," , my_array ) ; $query = " update user_table set categories in '({$to_feed})' where us

Re: [PHP-WIN] reg expression for stripping Java scrips off HTML?

2002-10-16 Thread Ignatius Reilly
Try: preg_replace( "/((.|[[:space:]])*)<\/script>/", "\\1", $myHTMLstring ) seems to work here - applies to both cases HTH Ignatius - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 16, 2002 11:44

Re: [PHP-WIN] Php Sessions - Well, they don't work :-\

2002-10-14 Thread Ignatius Reilly
I experienced problems with PHP non-persistent cookies, so I feel safer writing them explicitly on the client's disk: all the protected pages in one of my applications start by: // session check session_start() ; setcookie( session_name(), session_id(), time()+3600, "/" ) ; ob_start() ; require

Re: [PHP-WIN] problem passing variables...

2002-10-09 Thread Ignatius Reilly
I remember having met interpolation trouble with such code bits as ...passtest.php?i=".$i."\"/... in echo "Press to continue"; What I do now is write it this way: echo "Press to continue"; And everything works fine. This has the additional advantage of clarity. BTW, you have an erroneous slash

Re: [PHP-WIN] Problems refreshing

2002-10-07 Thread Ignatius Reilly
You can append a variable that is sure to change, such as time(): function redirect() { location.href = "http://mydomain.fr?nocache=" ; } HTH Ignatius - Original Messag

Re: [PHP-WIN] Eregi_replace for font tags?!?

2002-10-07 Thread Ignatius Reilly
Try: $patterns = array( "//" , etc ) ; $replace = array( "replacement_string" , etc ) ; $text = preg_replace( $patterns, $replace, $text ) ; Deserves to be tested extensively, though, depending on what you may have in your data HTH Ignatius _

[PHP-WIN] porting to 4.2.3 - variable interpolation

2002-09-30 Thread Ignatius Reilly
Hullo, After upgrading from 4.2.2 to 4.2.3, I met an annoying problem: I POST a form with fields budget_w1, budget_w2, ... $_POST['budget_w{$i}'] used to work, but does not anymore with 4.2.3: Notice: Use of undefined constant budget_w - assumed 'budget_w' in c:\apache\... Anybody can give me

[PHP-WIN] (Solved) Re: [PHP-WIN] Re: header("location:...") through proxy?

2002-09-27 Thread Ignatius Reilly
Finally I solved the problem by using fopen( "http:remote_url", "wb" ) ; This actually behaves like a GET call, so appended variables can be passed to the remote script. Cheers Ignatius __ - Original Message ----- From: Ignatius Reilly

Re: [PHP-WIN] Re: header("location:...") through proxy?

2002-09-26 Thread Ignatius Reilly
s:[EMAIL PROTECTED]... > Could you give more details? The "location" header is a response header > only. Why would you be generating this from a cron job? > > --- > Seairth Jacobs > [EMAIL PROTECTED] > > > "Ignatius Reilly" <[EMAIL PROTECTED]&g

[PHP-WIN] header("location:...") through proxy?

2002-09-26 Thread Ignatius Reilly
Hello, I need to use header("location:some_url") from a cron job (to do some maintenance work on remote files) my problem is that there is a proxy between me and some_url, so the GET request fails Anybody knows how to do this? Thanks Ignatius

Re: [PHP-WIN] Array issue

2002-09-24 Thread Ignatius Reilly
Are you sure about this checked() function? Is it a custom function of your own? Methinks the standard way to check/ uncheck a checkbox would be: document.myform.mycheckboxfield.checked = true ; (or false) HTH Ignatius

[PHP-WIN] mail() on W2K Pro

2002-09-08 Thread Ignatius Reilly
Hi, I want to be able to use error_log() ( or mail() ) in a W2K Pro installation (PHP 4.2). I suppose some kind of message queuing service or SMTP server has to be installed. I would appreciate if somebody who has done this successfully could give me some indications. Ignatius _

Re: [PHP-WIN] . becomes _ when submitting page

2002-09-08 Thread Ignatius Reilly
Your naming conflicts with javascript. Remember what dots are used for in js. Avoid using other characters than alphanum and underscore. There is no reason you should need to use any other character. I am not quite even sure that it is valid HTML to use dots in attributes values. HTH Ignatius

Re: [PHP-WIN] Checkbox problem

2002-08-21 Thread Ignatius Reilly
One form will always post the same set of POST variables (sometimes a partial set, as when a checkbox is not checked, the variable is not passed) So the best way is to add hidden fields to your form, and manipulate then in javascript, like in this example (several submit buttons, corresponding

[PHP-WIN] Re: XSLT - Problem passing variables with PHP 4.2 => Solved !

2002-08-17 Thread Ignatius Reilly
( $xh, 'xml_content.xml', 'xsl_sheet.xsl', NULL, $xslt_args, $xslt_params ) ==> bad (the transformation works correctly, but parameters are not passed) Fortunately it did not prove necessary to turn register_globals ON. Ignatius Reilly

[PHP-WIN] XSLT: Problem passing variables with PHP 4.2

2002-08-17 Thread Ignatius Reilly
Hi, Since upgrading from PHP 4.0 to 4.2, I do not manage any longer to pass parameters from the PHP script. The XSLT transformations is performed allright, though, but use empty string values for the parameters defined in the script. I tried to kludge by passing parameters in the form of strin