gimjudge / php

PHP tools and files for you
24 stars 55 forks source link

PHP 8 on Windows 7 64-bit? #7

Open MTKilpatrick opened 2 years ago

MTKilpatrick commented 2 years ago

Please can you tell me, before I go through the pain of understanding your procedure, whether you think this will work seamlessly to create a php_printer.dll for xampp on Windows 7 64-bit, using PHP 8.1? I can't seem to find an up-to-date DLL for this.

thanks, Michael

Yarli commented 2 years ago

I tried a while back and struggled to get the 32bit dll compiled for 64bit. I think there were too many differences. Plus i think php 7 and onwards uses a different framework for extensions which probably means a rewrite of the code for this driver to work with version 7 or 8.

If anyone is able to do this then im certainly looking for it myself since we have an old 2008 server running php 5.6 32 bit just to use the old driver. If a newer version could be created then that would certainly help me out too.

On 25 Feb 2022, at 14:02, Michael Killpatrick @.***> wrote:

 Please can you tell me, before I go through the pain of understanding your procedure, whether you think this will work seamlessly to create a php_printer.dll for xampp on Windows 7 64-bit, using PHP 8.1? I can't seem to find an up-to-date DLL for this.

thanks, Michael

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you are subscribed to this thread.

MTKilpatrick commented 2 years ago

Thank you for replying. In the end I just wrote a .bat script to send a file to the printer and did an exec in my PHP script as thankfully it's all I need to do. It's all a bit mad as I'm using a redirected Windows printer port to mangle Postscript output from Sibelius so I can automatically print a n-page spread of music as a n/2 2-page A3 spreads plus one A4 for any extra pages. The raw postscript goes to the PHP which also calls a Perl script (winpstops) to do further mangling before sending to the printer.

It just surprises me that things like php_printer have been dead in the water for so long.

Yarli commented 4 months ago

Just a quick update on this, I will be looking to build a 32bit version of the dll for php 8 later this month and if successful i'll post and updated dll up here. Sadly the 64bit version of PHP is too drastically different and so i don't think I'll be able to look into that. My aim will be to eventually look at migrating this over to 64bit, but that is heavily dependent on my available time.