Re: [PHP-WIN] Misunderstanding mssql_query in the manual

2005-09-12 Thread Darvin Andrioli
> -Messaggio originale- > Da: Alf Stockton [mailto:[EMAIL PROTECTED] > Inviato: lunedì 12 settembre 2005 17.45 [...] > So my code reads:- > > if(($rs = TRUE)) { ^^^ Is it your code or do you forget many "=" in the example? It should be if(($rs === TRUE)) Darvin -- PHP

Re: [PHP-WIN] Call to undefined function printer_open()

2005-04-19 Thread Darvin Andrioli
> -Messaggio originale- > Da: Nick [mailto:[EMAIL PROTECTED] > Inviato: martedì 19 aprile 2005 18.04 > A: php-windows@lists.php.net > Oggetto: Re: [PHP-WIN] Call to undefined function printer_open() > > > yeah, but thats only to print an single line, not a whole word file (MS > office word

[PHP-WIN] R: [PHP-WIN] Call to undefined function printer_open()

2005-04-19 Thread Darvin Andrioli
Have a look at the example at http://it2.php.net/manual/en/function.printer-draw-text.php it may help you. Darvin > -Messaggio originale- > Da: Nick [mailto:[EMAIL PROTECTED] > Inviato: martedì 19 aprile 2005 15.04 > A: php-windows@lists.php.net > Oggetto: Re: [PHP-WIN] Call to undefined

RE: [PHP-WIN] Problem printing on server side

2003-12-04 Thread Darvin Andrioli
> From: Ricardo J. Oliveira [mailto:[EMAIL PROTECTED] > > Hi, > When I try to list my printers with the printer_list function with these > options PRINTER_ENUM_NETWORK | PRINTER_ENUM_REMOTE the array returned are > empty. Hi First the manual says that PRINTER_ENUM_NETWORK and PRINTER_ENUM_REMOT

RE: [PHP-WIN] Problems with mssql_connect

2003-09-12 Thread Darvin Andrioli
> -Original Message- > From: Nicola Romita [mailto:[EMAIL PROTECTED] > Sent: Friday, September 12, 2003 12:58 PM > i get this message..and I'm sure my code is clean...(just from a book) > > Fatal error: Call to undefined function: mssql_connect() in > D:\webster\php\mssql.php on line 10

RE: [PHP-WIN] Date question

2003-06-24 Thread Darvin Andrioli
> From: Harpreet [mailto:[EMAIL PROTECTED] > > I am using php with sql server. I have a field expiration which is of type > datetime. > > I add a date for the expiration as '06/24/03 09:09:09' using a web form. > When i try to display the same expiration in an edit form using > $row["expiration"]

[PHP-WIN] R: [PHP-WIN] maximun execution time

2003-01-27 Thread Darvin Andrioli
http://www.php.net/manual/en/function.set-time-limit.php Darvin > -Messaggio originale- > Da: Bobo Wieland [mailto:[EMAIL PROTECTED]] > Inviato: lunedì 27 gennaio 2003 18.36 > A: [EMAIL PROTECTED] > Oggetto: [PHP-WIN] maximun execution time > > > Is there some way to get around the time l

[PHP-WIN] R: [PHP-WIN] Undefined variable: PHP_SELF -- Need Help

2003-01-17 Thread Darvin Andrioli
Hi Ray you may use $_SERVER['PHP_SELF'] or turn on the parameter 'register_global' For more info: http://www.php.net/manual/en/reserved.variables.php#reserved.variables.serve r Darvin > -Messaggio originale- > Da: Ray [mailto:[EMAIL PROTECTED]] > Inviato: venerdì 17 gennaio 2003 13.40 >

[PHP-WIN] R: [PHP-WIN] PHP 4.3 unable to load php_domxml.dll in WinXP Apache 2.0.43

2002-12-30 Thread Darvin Andrioli
Hi Rui, I may suggest you to copy the *.dll files from the dll directory into system32 or int the same directory where you have the php.exe. I noticed this behaviour when I installed php 4.3, and, with this trick, I got it work, but I haven't read carefully the new file 'install', probably you may

[PHP-WIN] Re: expat extension

2002-11-08 Thread Darvin Andrioli
Ciao Franco > After many test and many consideration I decide to use SAX > instead DOM or XSLT > because XPath it is must stable. But the performance it is not > equal like DOM. Do you had successed to parse the external parameters entities with Expat? If yes, could you explain me how you make it

[PHP-WIN] R: [PHP-WIN] Image generation question

2002-04-24 Thread Darvin Andrioli
Do you have enabled the GD extension ? Darvin > -Messaggio originale- > Da: Matt Babineau [mailto:[EMAIL PROTECTED]] > Inviato: mercoledi 24 aprile 2002 18.02 > A: 'Php-Win (E-mail)' > Oggetto: [PHP-WIN] Image generation question > > > I have been trying to generate images dynamicall b

[PHP-WIN] R: [PHP-WIN] Files....

2002-03-29 Thread Darvin Andrioli
> $filename = "/home/sites/www.ktjconsulting.com/web/demo/cms/cms.htm"; > $fp = @fopen("$filename", "w+") or die ("Could not open File"); > fputs ("$EditorValue"); < LINE 4 ^ Is it an error in your e-mail, or really you have that code? The statement should be "fputs(

[PHP-WIN] R: [PHP-WIN] mail() with attachments

2002-03-28 Thread Darvin Andrioli
See this colomns http://www.zend.com/zend/spotlight/sendmimeemailpart1.php Darvin > -Messaggio originale- > Da: George Pitcher [mailto:[EMAIL PROTECTED]] > Inviato: giovedì 28 marzo 2002 12.26 > A: [EMAIL PROTECTED] > Oggetto: [PHP-WIN] mail() with attachments > > > Hi guys, > > I'm doi

[PHP-WIN] R: [PHP-WIN] for loop...

2002-03-08 Thread Darvin Andrioli
Hi Murphy this is a very dumb answer... you may test if Approve.length is equal to zero before the second loop, so you may change your code to for(int i = 0; i < View.length; i++) if(Approve.length==0) { do something } else { for(int l = 0; l mailto:[EM

[PHP-WIN] R: [PHP-WIN] error query

2002-03-01 Thread Darvin Andrioli
Hi Mark, what is the value of $MID? Have it the table name or any other unespected value? Cheers Darvin > -Messaggio originale- > Da: Mark Sweeney [mailto:[EMAIL PROTECTED]] > Inviato: sabato 2 marzo 2002 0.17 > A: [EMAIL PROTECTED] > Oggetto: [PHP-WIN] error query > > > Sorry to bother,

[PHP-WIN] R: [PHP-WIN] Can't pass variables to PHP scripts?! Please help.

2002-02-04 Thread Darvin Andrioli
Travis, you hve register_globals set to off. You my turn it on, or, according to security issue, use $_REQUEST["testvar"]. Regards Darvin Andrioli > -Messaggio originale- > Da: Travis Wyatt [mailto:[EMAIL PROTECTED]] > Inviato: lunedì 4 febbraio 2002 7.51 &g

[PHP-WIN] R: [PHP-WIN] Shared Memory/Shmop on Windows

2002-01-30 Thread Darvin Andrioli
Gary wrote: > I am porting a website from a Unix server to IIS 5.0 on W2K Advanced > Server. The PHP code currently is using Shared Memory calls. My > developer tells me the information is shmop-based. > > Here's a sample of the code. The site is not functioning as it's > supposed to and I beli

[PHP-WIN] R: [PHP-WIN] PHP Mail / PHP.ini

2002-01-16 Thread Darvin Andrioli
Paul wrote ... > When trying to configure the ini file to accomodate email, I rightly or > wrongly edited the 'php.ini-recommended' file to my SMTP entry to: > These are "suggested" configuration. You may use one of them and configure it to match your requirement. About mail parameter, I haven't

[PHP-WIN] R: [PHP-WIN] Re: $PHP_SELF

2002-01-07 Thread Darvin Andrioli
Try $_SERVER["PHP_SELF"] Darvin > -Messaggio originale- > Da: David [mailto:[EMAIL PROTECTED]] > Inviato: domenica 6 gennaio 2002 3.12 > A: [EMAIL PROTECTED] > Oggetto: [PHP-WIN] Re: $PHP_SELF > > > Steve Yates said something on 05 Jan 2002, in php.windows: > > > "David" <[EMAIL PROTECTE

[PHP-WIN] R: [PHP-WIN] printer_open() undefined

2001-10-04 Thread Darvin Andrioli
Do you have comment out the line "extension=php_printer.dll" in your php.ini? Regards Darvin > -Messaggio originale- > Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Inviato: giovedì 4 ottobre 2001 17.53 > A: [EMAIL PROTECTED] > Oggetto: [PHP-WIN] printer_open() undefined > > > Hi t

[PHP-WIN] R: [PHP-WIN] Install problems

2001-08-23 Thread Darvin Andrioli
Hi Ronald I suggest you to define the line ScriptAlias /php/ "e:/internet/homepage/blank/php/" as an alias, ( Alias /php/ "e:/internet/homepage/blank/php/" ) and then define a new scriptalias for php.exe. I.e. ScriptAlias /phpexe/ "c:/php/" Action application/x-httpd-php "/phpexe/php.exe" Grea

[PHP-WIN] R: [PHP-WIN] Upload

2001-08-23 Thread Darvin Andrioli
Hi Daniel Are the file size less then the parameter "upload_max_filesize"? Darvin > -Messaggio originale- > Da: Sichta Daniel [mailto:[EMAIL PROTECTED]] > Inviato: giovedi 23 agosto 2001 9.23 > A: [EMAIL PROTECTED] > Oggetto: [PHP-WIN] Upload > > > Hi there, > cfg: w2k, Apache 1.3.20, p

[PHP-WIN] R: [PHP-WIN] PHP MSDOS Console

2001-08-21 Thread Darvin Andrioli
The PHP use the C_style to access to the command line. So $argv[1] is the first parameter, $argv[2] the second and so on... $argc is the number of parameters. Greatings Darvin > -Messaggio originale- > Da: SereyVuth Hong [mailto:[EMAIL PROTECTED]] > Inviato: martedì 21 agosto 2001 17.

[PHP-WIN] R: [PHP-WIN] Array

2001-08-21 Thread Darvin Andrioli
Change your code in: } ?> You will obtain an array, named test, with 5 elements. Bye Darvin > -Messaggio originale- > Da: Sichta Daniel [mailto:[EMAIL PROTECTED]] > Inviato: martedi 21 agosto 2001 15.15 > A: [EMAIL PROTECTED] > Oggetto: [PHP-WIN] Array > > > Hi there !! > cfg: php

[PHP-WIN] R: [PHP-WIN] Printing functions

2001-08-13 Thread Darvin Andrioli
Have you inserted "extension=php_printer.dll" in you php.ini ? Darvin > -Messaggio originale- > Da: Deleo Paulo Ribeiro Junior [mailto:[EMAIL PROTECTED]] > Inviato: sabato 11 agosto 2001 15.44 > A: Lista PHP > Oggetto: [PHP-WIN] Printing functions > > > Hello! > > I have sent some ques

RE: [PHP-WIN] saving images which have been assigned a strange name

2001-04-09 Thread Darvin Andrioli
I've got the same problem with IE 4.01, so I looked for it at MIcrosoft and I got: According to RFC 2183, servers should be able to force a Save-As type dialog box by sending a "Content-Disposition: attachment" server response header to the client when sending the requested file back to the bro

RE: [PHP-WIN] HELP!!! (PHP-WINDOWS98-APACHE)

2001-03-27 Thread Darvin Andrioli
Hi, change the following lines: from ScriptAlias /php/ "php" to ScriptAlias /php/ "c:/path/to/your/php/directory/" and the third line from Action application/x-httpd-php "php/php.exe" to Action application/x-httpd-php "/php/php.exe" At the end reboot Apache. Darvin -Original Message

RE: [PHP-WIN] Seriously newbie question

2001-03-27 Thread Darvin Andrioli
It seems that Apache doesn't recognize your script as php file. First have you rebooted Apache after you modified httpd.conf? If so, check the following lines: ScriptAlias /php4/ "f:/php/php4corrente/" AddType application/x-httpd-php4 .php Action application/x-httpd-php4 "/php4/php.exe" This

RE: [PHP-WIN] X-powered line... can't get rid of it!

2001-03-23 Thread Darvin Andrioli
Hi John, I got this message the that I installed the release 4 of PHP. In that case it was caused by an error in php.ini. In that file I configured some dll that I hadnt installed, or, as someone wrote, php can't found. Have a look for "X-Powered" in the past ( last year.. ) threads of this

RE: [PHP-WIN] Uninitialized Variables

2001-03-15 Thread Darvin Andrioli
You may use the function isset. Try this code: if (!isset($id)) { // variable not set } Regards Darvin -Original Message- From: Dwight Sparling [SMTP:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 3:44 AM To: [EMAIL PROTECTED] Subject:[PHP-WIN]

RE: [PHP-WIN] PHP4 and MS Access

2001-02-20 Thread Darvin Andrioli
Check the contents of '$tblIngress' and '$tblText', some characters , such as ' , may give you this error . Darvin -Original Message- From: Glenn [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, February 20, 2001 2:08 PM To: [EMAIL PROTECTED] Subject:[PHP-WIN] PHP4 and MS Access

RE: [PHP-WIN] assigning variable names on the fly, backed myself in to a corner

2001-02-13 Thread Darvin Andrioli
Ignatius wrote: > try assigning it to another variable first: > for > $tag = "$tag_num$i"; > $type = "tag_type$i"; > $sql = VALUES (..., $tag, $type); The last statement must be: $sql = VALUES (..., $$tag, $$type); so you get the value of the variable na

RE: [PHP-WIN] Is it possible to CONVERT file formats?

2001-01-25 Thread Darvin Andrioli
Hi Mike I'm wrinting an intranet site where my colleagues can write notes about their job, so I'm interested to your post. I evaluated many ways to write this notes.Html? No, nobody knows html. Word? Yes it may be a possible solution. As you wrote its usefull get only the text, because I get th