[PHP] PHP Priter Functions

2003-06-13 Thread Stephen Goddard
Hi, Has anyone managed to get the php printer functions to work on a network printer. My code is connecting to the printer but . Warning: couldn't allocate new print job in c:\inetpub\wwwroot\phpprinter\print2.php on line 32 test.bmp Warning: couldn't start a new page in c:\inetpub\wwwroot\ph

[PHP] Switch function problem

2003-06-11 Thread Stephen Goddard
Hi Folks, Anyone know if you can use operators in a switch function? eg. switch ($category){ case "FFS" || "FHG" || "FRG": $soldID = "SFFS"; break; case "DPT" || "DL" || "DF" || "DI" || "DO": $soldID = "SDPT"; break; } Cheers -- PHP Gene

Re: [PHP] Re: use print

2003-06-10 Thread Stephen Goddard
You can print from PHP ! The scrip below will print a bmp. It requires you to enable php_printer.dll in your php.ini file The printer handle must be the same, as the shown printer name, in the printers folder (win) For more info look here :- http://uk.php.net/manual/en/ref.printer.php If yo

[PHP] What does this do?

2003-06-10 Thread Stephen Goddard
Hi, Can anyone tell me what this does ${varname} I cant find any information as to what the braces do. Cheers Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php