Jump to content

laxplayin24

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

laxplayin24's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. anyone have any ideas about this?
  2. I get printer not found. But if i put in a printer i know doesn't exist i get this error: Warning: printer_open() [function.printer-open]: couldn't connect to the printer [\\x335-printsrv\DPOPTRA] in c:\Inetpub\wwwroot\test2.php on line 6 Warning: printer_write(): supplied argument is not a valid Printer Handle resource in c:\Inetpub\wwwroot\test2.php on line 8 Warning: printer_close(): supplied argument is not a valid Printer Handle resource in c:\Inetpub\wwwroot\test2.php on line 9 If i put one in that i know exists i only get: Warning: printer_write(): supplied argument is not a valid Printer Handle resource in c:\Inetpub\wwwroot\test2.php on line 8 Warning: printer_close(): supplied argument is not a valid Printer Handle resource in c:\Inetpub\wwwroot\test2.php on line 9
  3. I am trying to print to a printer on my network. I have installed the php_printer.dll. But I am getting the following errors. Warning: printer_write(): supplied argument is not a valid Printer Handle resource in c:\Inetpub\wwwroot\test2.php on line 8 Warning: printer_close(): supplied argument is not a valid Printer Handle resource in c:\Inetpub\wwwroot\test2.php on line 9 Here is the code that I am using: [code] <?PHP $handle = printer_open("\\\\PRINT_SERVER\\PRINTER_NAME"); printer_write($handle, "Text to print"); printer_close($handle); ?> [/code] Does anyone have any idea what the problem could be? Thanks for the help
  4. I have been using PDFlib to create pdf's from different sources. Does anyone know if there is a way to take an exisitng pdf that I have already created and append to it or do iI have create a new one? Thanks for the help.
  5. I have some images that I want a user to upload and create a pdf from it. I have a program that does this called img2pdf. I was wondering if there is a way I can use php to run the program in a comamnd line. I don't know if this is the best way to create the pdf's from images. If any one knows of a better way I would be very happy to hear it. Thanks.
  6. Anyone have any ideas why I am getting this error message I still haven't solved the problem. Thanks
  7. I am trying to put in a condition to check and see if the odbc connection was successful but I can't get it to work. [code] $user = ''; $pass = ''; $conn = odbc_connect('server', $user, $pass ); if(!$conn) {     die("Connection Failed"); } else {         echo "Connection Established"; } [/code] But i keep gfetting this error message on the webpage Warning: odbc_connect() [function.odbc-connect]: SQL error: [Viaserv][ODBC Driver]DG23155: Allocate error: TCP/IP socket error, RC=10060, Message=ETIMEDOUT., SQL state HY000 in SQLConnect in c:\Inetpub\wwwroot\test.php on line 4 Connection Failed: Thanks for the help
  8. I was wondering if it is possible to disable certain fields in a from based on which drop down is selected. If so could someone help me out i've been looking on the web and haven't found anything. Thanks.
  9. I have some text that I am getting that has carriage returns in it and i was wondering if there is a way in php to remvoe them from the text. Thanks for the help.
  10. I have been trying to access a dbase file through php to run a query on it. I was wondering if this is even possible and if so how could I do it. I have been trying to connect to the file through an odbc connection using datadirect drivers. Thanks for the help.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.