php-windows Digest 19 Jun 2001 10:04:55 -0000 Issue 617 Topics (messages 7930 through 7935): Uploading problem with PHP 7930 by: BWW cosine and sin in PHP on Win2K & IIS 5 7931 by: Bradley J Bristow-Stagg 7933 by: Johan Lundqvist 7935 by: Bradley J Bristow-Stagg Re: Dr F!@#son error....argh 7932 by: Johan Lundqvist Truncated pages with PHP 4.0.6-dev & IIS 5.0 7934 by: Alessio Bernesco Lāvore 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] ----------------------------------------------------------------------
Hi there, Hope someone can help me. I have an app in PHP to make upload of images to a web server in a intranet and this works fine if I use my workstation but if any other user tries to upload in another workstation the upload fails without any error. All the setings and previlege folders are correct and any user can upload if they use my workstation and everything works well. It seems that my workstation have something diferent from the other and I can understand the diferences specially because they have all the same software environment. The tech env is: Intranet Server: win nt server 4.0 sp4 + IIS 4.0 + PHP4 Workstations: NT wokstation 4.0 + IE 5.0 Is there anyone who can help me? I will appreciate. Thanks Bob
Hey guys, I am currently dabbling in a little graphics generation with gd_lib in PHP on my Win2K box with IIS 5. Up until now I have had ZERO problems and am really loving working with PHP. My problem then? Well I am rotating a polygon around a point and PHP is not giving me correct values for cos() and sine().. Some sample code and values follow: <code> print "cos:".cos(270); print "sine:".sine(270); </code> <display> cos:0.9843819506325 sin:-0.17604594647121 </display> What's wrong with this picture? Well using my trusty scientific calculator (from the ol' school days) I get: cosine(270) = 0 sine(270) = -1 Without getting correct values for the sine and cosine the rotation equations do some really funky stuff =). So what do I do now? Regards Bradley J Bristow-Stagg /------------------------------------------------------------------------\ \ "Luminous beings are we.. not this crude matter" - Yoda / / "The earth is but ONE country and Mankind it's citizens" - Baha'u'llah \ \------------------------------------------------------------------------/ / www: http://www.staggmatrix.f2s.com | ICQ#: 8618833 \ \------------------------------------------------------------------------/
Hi, That's correct, since PHP cos() and sin() uses radians and not degrees. This can be solved by first using deg2rad(). This would make your code look like this: <code> $i = deg2rad(270); print "cos:".cos($i); print "sine:".sin($i); </code> <display> cos:0 sin:-1 </display> /Johan Bradley J Bristow-Stagg wrote: > > Hey guys, > I am currently dabbling in a little graphics generation with gd_lib in PHP > on my Win2K box with IIS 5. Up until now I have had ZERO problems and am > really loving working with PHP. My problem then? Well I am rotating a > polygon around a point and PHP is not giving me correct values for cos() and > sine().. Some sample code and values follow: > > <code> > print "cos:".cos(270); > print "sine:".sine(270); > </code> > <display> > cos:0.9843819506325 > sin:-0.17604594647121 > </display> > > What's wrong with this picture? Well using my trusty scientific > calculator (from the ol' school days) I get: > cosine(270) = 0 > sine(270) = -1 > > Without getting correct values for the sine and cosine the rotation > equations do some really funky stuff =). So what do I do now? > > Regards > > Bradley J Bristow-Stagg > /------------------------------------------------------------------------\ > > \ "Luminous beings are we.. not this crude matter" - Yoda / > > / "The earth is but ONE country and Mankind it's citizens" - Baha'u'llah \ > > \------------------------------------------------------------------------/ > > / www: http://www.staggmatrix.f2s.com | ICQ#: 8618833 \ > > \------------------------------------------------------------------------/ > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] (Johan Lundqvist) wrote in news:3B2F0C33.5AE1B074 @noatun.org: > deg2rad(270); > Thanks Johann, that worked a treat =) Regards Bradley J Bristow-Stagg -- /------------------------------------------------------------------------\ \ "Luminous beings are we.. not this crude matter" - Yoda / / "The earth is but ONE country and Mankind it's citizens" - Baha'u'llah \ \------------------------------------------------------------------------/ / www: http://www.staggmatrix.f2s.com | ICQ#: 8618833 \ \------------------------------------------------------------------------/
Hi Brendan, I've had the same problems some time ago. It was due to a corrupted php.ini Had to rewrite it from a new one... it was totally f***ed up :-( <parenthesis> Later found that some nice "update feature" installed by the "expert" at the site had done the same with almost all .ini files on the system. He's not working there anymore. Lesson to be learned: Never test anything in production environment, test in testing environment (hence the name of it...). </parenthesis> /Johan Brendan wrote: > > Hi > PHP keeps crashing and I cant isolate why because i just get that damned > Dr Watson error... > the error is > > Acess Violation(0xc0000005), Address: 0x7800d6a1 > > it causes php to crash and the script to stop executing... > i get a cgi no header error in the browser.. > anyone have any ideas? > would be MUCH appreciated > cheers > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi, Installing PHP 4.0.6-dev (and others versions) on a new machine with Win 2K pro & IIS 5.0 the pages are created truncated. I.e. phpinfo shows just the first 20 rows... On the same machine is installed Apache on port 8080 and the same pages works well. It's not the first time i install PHP under IIS 5.0 and every time but this all works well... I've reinstalled PHP (many versions) and IIS several times, but nothing changes. Just very few times the pages works fine, but after refreshing... Has someone an idea? Thank's everyone. Alessio