php-windows Digest 3 Dec 2003 03:52:18 -0000 Issue 2026
Topics (messages 22271 through 22281):
printer extension problems
22271 by: Chris Pecor
Cannot find ODBC32.dll
22272 by: Miroslav Majdan
22274 by: Piotr Pluciennik
22276 by: Seung Hwan Kang
ereg-replace removing whitespace...
22273 by: Bobo Wieland
22275 by: Justin Patrin
Re: compiling extensions
22277 by: Seung Hwan Kang
Re: HTTP/1.1 500 Server Error
22278 by: Peter Richards
Server for PHP and ASP (and MySQL) ??
22279 by: Peter Richards
22280 by: Seung Hwan Kang
22281 by: H Marc Bower
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Hey guys,
I'm writing a small script that will print pick lists for our online orders
using the printer functions provided with the stock extension. The problem
is I can't get it to span across multiple pages. I've tried checking the Y
position and using end_page and start_page accordingly but for some reason
it's locking up. Here's my code, I'm only posting the bit that's making it
lock up. If I take this bit out it prints flawlessly but it only gives me
one page of data. I commented it out after the fact so if anything isn't
clear just ask me to clarify.
if ($y == 6210){
// I stuffed $y in to see where the page ended, the last line was 6210
// $y increments 110 after every line I draw_text to with a little $y =
$y + 110;
printer_delete_font($itemFont);
// I've tried it with and without deleting the font but I get the same
results
printer_end_page($handle);
// according to the doc this shold end the page
$itemFont = printer_create_font("Arial",72,48,400,false,false,false,0);
// recreate the font
printer_select_font($handle, $itemFont);
// ..
printer_start_page($handle);
// this _should_ start a new page, below I have $y starting at 110 just
for the margin
$y = 110;
}
What am I doing wrong here? I've searched through tons of google's to find
an example of someone doing this but all I can find are endless amounts of
manual entries on the same functions. Little help?
-Chris
--- End Message ---
--- Begin Message ---
I am using Win98. I have installed PHP-4.3.4-Win32. When I tried to run
php.exe, Windows printed a message "Cannon find ODBC32.dll". I really
didn't find that file on my computer. I tried an older PHP-3.0.17, but
with the same result.
I read that PHP since 4.0 has built-in ODBC support so I don't know why is
my system asking for such a thing.
The only change that I made to php.ini was changing extension_dir.
I was searching for the file "odbc.dll" on Win98 instalation CD but that
file wasn't there.
What shall I do?
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
--- End Message ---
--- Begin Message ---
I don't use W98, but I'm afraid it's a problem of your operating system, not
php configuration. Check in Control Panel if your ODBC is properly installed
on your machine.
Piotr
Miroslav Majdan wrote:
> I am using Win98. I have installed PHP-4.3.4-Win32. When I tried to run
> php.exe, Windows printed a message "Cannon find ODBC32.dll". I really
> didn't find that file on my computer. I tried an older PHP-3.0.17, but
> with the same result.
>
> I read that PHP since 4.0 has built-in ODBC support so I don't know why is
> my system asking for such a thing.
>
> The only change that I made to php.ini was changing extension_dir.
>
> I was searching for the file "odbc.dll" on Win98 instalation CD but that
> file wasn't there.
>
> What shall I do?
>
> --
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
As I remember, it comes with MS Office (ACCESS).
:)
Miroslav Majdan wrote:
I am using Win98. I have installed PHP-4.3.4-Win32. When I tried to run
php.exe, Windows printed a message "Cannon find ODBC32.dll". I really
didn't find that file on my computer. I tried an older PHP-3.0.17, but
with the same result.
I read that PHP since 4.0 has built-in ODBC support so I don't know why
is my system asking for such a thing.
The only change that I made to php.ini was changing extension_dir.
I was searching for the file "odbc.dll" on Win98 instalation CD but that
file wasn't there.
What shall I do?
--- End Message ---
--- Begin Message ---
Hi...
I'm trying to use ereg_replace to replace "[/URUB]" with "</strong><br />"
The problem is that ther might, and might not, be any number of trailing
whitespaces after the [/URUB]-tag... Everything between the [/URUB] (and the
tag itself) and the next alphanumeric char should be replaced with
"<strong><br />"
So far I use:
$str = ereg_replace("(\[/URUB\])+( |\n|\t|\r)*","</strong><br />",$str);
which doesn't work, leaving a lot of whitespaces behind...
Thanks for your help...
.bobo
--- End Message ---
--- Begin Message ---
I don't use ereg myself, but with preg_replace you could do:
$str = preg_replace('/\[\/URUB\]\s*/', '</strong><br />', $str);
Bobo Wieland wrote:
Hi...
I'm trying to use ereg_replace to replace "[/URUB]" with "</strong><br />"
The problem is that ther might, and might not, be any number of trailing
whitespaces after the [/URUB]-tag... Everything between the [/URUB] (and the
tag itself) and the next alphanumeric char should be replaced with
"<strong><br />"
So far I use:
$str = ereg_replace("(\[/URUB\])+( |\n|\t|\r)*","</strong><br />",$str);
which doesn't work, leaving a lot of whitespaces behind...
Thanks for your help...
.bobo
--- End Message ---
--- Begin Message ---
Open yourwindowssystems/php.ini
then uncomment it. I mean remove ;
eg.
;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed
for it.
;
;extension=php_bz2.dll
;extension=php_cpdf.dll
;extension=php_crack.dll
;extension=php_curl.dll
.
.
.
.
:)
Piotr Pluciennik wrote:
Hi,
I've already compiled php and now is time for some extensions. So, what
should I do, where can I find info on how to do it under windows?
Waiting to hear from you asap...
Piotr
--- End Message ---
--- Begin Message ---
Hi Eric,
On Tue, 02 Dec 2003 10:04:06 +0100, [EMAIL PROTECTED] (Eric
Colinet) wrote:
>As far as know the CGI version of PHP doesn't work well on Win95.
It worked okay when I used version 4.2.3 , well I didn't use it much,
not for any serious work or db stuff (MySQL), but it did work. I have
heard there is actually more trouble with the ISAPI version under
Win95.
I did some searching and found out that officially, as at verion 4.3,
Win95 is no longer supported. See:
http://bugs.php.net/bug.php?id=21927
(Win95 is no longer supported as of PHP 4.3.0 Closes bug #21927)
http://cvs.php.net/co.php/phpdoc/en/chapters/install.windows.xml?r=1.25&ph
p=6f0ed1fa 04d2b5c8f3a0a6bad322be53
>But just to be sure set error_log (php.ini) to a file and check the content
>of it since 500 is a crash.
I was unable to get the error logging to work, and found some mention
that the error logging doesn't work under Win95.
I re-installed 4.2.3 this morning, and was able to do a phpinfo(), so
that's a start.
Thanks,
Peter
--- End Message ---
--- Begin Message ---
Hi,
I have been using PWS (Personal Web server) from microsoft, version 4
on a Win95b computer. After a few recent problems with using PHP on
the same server (I had to roll back to version 4.2.3), I'd like to
consider my options with running another type of web server under
Win95, that will do:
PHP
ASP
MySQL
Will Apache do ASP ? Hmm, I don't think so.
I guess one option is to install Apache and PWS, but I think that
would be a real _pain_, having to shut down one server and start up
the other, evey time I wanted to run either a PHP or ASP file in my
browser.
Thanks,
Peter
--- End Message ---
--- Begin Message ---
Yes, you can use both ASP & PHP on PWS or IIS. This manual will do for you.
http://www.php.net/manual/en/install.iis.php
:)
Peter Richards wrote:
Hi,
I have been using PWS (Personal Web server) from microsoft, version 4
on a Win95b computer. After a few recent problems with using PHP on
the same server (I had to roll back to version 4.2.3), I'd like to
consider my options with running another type of web server under
Win95, that will do:
PHP
ASP
MySQL
Will Apache do ASP ? Hmm, I don't think so.
I guess one option is to install Apache and PWS, but I think that
would be a real _pain_, having to shut down one server and start up
the other, evey time I wanted to run either a PHP or ASP file in my
browser.
Thanks,
Peter
--- End Message ---
--- Begin Message ---
Perhaps the better solution is to move to a somewhat... newer O/S? :) I
have a P3-450 that I do testing on, using PHP, ASP, and mySQL and it's run
both Windows XP Pro and Windows 2000 Server at various times. If all you're
doing is serving up webpages, that doesn't suck up much in the way of
resources and you should be alright. If your computer is less powerful than
that, I dunno. I had XP Pro running on a P166 at one point, but it was kind
of scary. :)
(V)
----- Original Message -----
From: "Peter Richards" <[EMAIL PROTECTED]>
> Hi,
>
> I have been using PWS (Personal Web server) from microsoft, version 4
> on a Win95b computer. After a few recent problems with using PHP on
> the same server (I had to roll back to version 4.2.3), I'd like to
> consider my options with running another type of web server under
> Win95, that will do:
>
> PHP
> ASP
> MySQL
--- End Message ---