Re: [PHP] Converting PHP code to C#?

2007-09-08 Thread Symbian
mike-22 wrote: > > i'm pretty sure the IV mattered in our stuff. > > and remember i used CBC i think not EBC, and it worked fine. not sure > if you want to try that and make it work for you or not without any > warnings :) > Ah! We're using EBC, also I realised that I needed to implement the

Re: [PHP] Buxa Coding Guidelines

2007-09-08 Thread mike
On 9/8/07, Greg Donald <[EMAIL PROTECTED]> wrote: > I don't put PHP in my HTML. I use PHP to build my HTML, using heredoc > syntax while doing so. My scripts usually only have a single opening tag and never require any closing ?> tags. > > Code that contains short open tags or instances of opi

Re: [PHP] Converting PHP code to C#?

2007-09-08 Thread mike
i'm pretty sure the IV mattered in our stuff. and remember i used CBC i think not EBC, and it worked fine. not sure if you want to try that and make it work for you or not without any warnings :) On 9/8/07, Symbian <[EMAIL PROTECTED]> wrote: > > > > mike-22 wrote: > > > > just hard code the IV in

Re: [PHP] Buxa Coding Guidelines

2007-09-08 Thread Greg Donald
On Sun, 9 Sep 2007, magoo wrote: > Just wanted to see what you think of the strictness of Buxa, according to > their PHP guidelines: > http://www.buxaprojects.com/en/php_coding_guidelines.htm > > In their oppinion stuff like the short PHP init " ?>" is forbidden. > Do you people code that strict?

[PHP] zlib.inflate vs. gzopen/fread

2007-09-08 Thread Gregory Beaver
Hi all, I've run into a peculiar situation where the inflate implementation in the zlib.inflate filter fails to successfully inflate a gzipped file created using gzopen/gzwrite. The file is really quite simple. To replicate, download http://pear.php.net/get/PEAR-1.6.1.tgz and run this script:

[PHP] Pack function in C#

2007-09-08 Thread Symbian
hello, Our PHP dev (who has since left) uses the pack function to turn a base64 string into a binary blob (?): $blob = pack("H*", $postBase64Data); Does anyone know what the above is doing? I need to translate that to C# terms, which I thought was getting the eqivalent of the bytes: byte[] blo

Re: [PHP] Converting PHP code to C#?

2007-09-08 Thread Symbian
mike-22 wrote: > > just hard code the IV in both places. > Thanks for the link, that was most useful, especially the commented bits! RE: The IV, reading the php manual it states that the IV is not used when ECB mode is used (which is what we are using). So knowing this does the use of IV mat

Re: [PHP] Buxa Coding Guidelines

2007-09-08 Thread Kevin Waterson
This one time, at band camp, tedd <[EMAIL PROTECTED]> wrote: > At 12:17 AM +0200 9/9/07, magoo wrote: > >Hi NG! > > > >Just wanted to see what you think of the strictness of Buxa, > >according to their PHP guidelines: > >http://www.buxaprojects.com/en/php_coding_guidelines.htm > > > >In their opp

Re: [PHP] Buxa Coding Guidelines

2007-09-08 Thread tedd
At 12:17 AM +0200 9/9/07, magoo wrote: Hi NG! Just wanted to see what you think of the strictness of Buxa, according to their PHP guidelines: http://www.buxaprojects.com/en/php_coding_guidelines.htm In their oppinion stuff like the short PHP init """ is forbidden. Do you people code that str

[PHP] pdo_mysql segfault error

2007-09-08 Thread Slith
i'm trying to enable pdo_mysql extension, however i keep getting the following segfault error when i restart apache: httpd[20567]: segfault at 0020abef8f07 rip 0020abef8f07 rsp 006e6ad0 error 14 my setup is the following: Apache 1.3.37 php 5.2.2 mysql 5.0.41 not sure wether

Re: [PHP] Image Conversion...

2007-09-08 Thread Kevin Waterson
This one time, at band camp, "Tony Di Croce" <[EMAIL PROTECTED]> wrote: > I need to convert (resize, and store as blob's in a mysql db) images my > users can upload. I'm wondering what the best conversion tool is... I'm > considering ImageMagick... Is this the best? > > Is their anything that is

Re: [PHP] Re: html2png

2007-09-08 Thread Kevin Waterson
This one time, at band camp, Al <[EMAIL PROTECTED]> wrote: The Imagick php extension is at RC2 and like all beta ware, should not be considered for a production environment. > Imagick PHP extension, easiest, or Imagemagick command line using exec(). > > Imagick to read a pdf and output it as a j

[PHP] Buxa Coding Guidelines

2007-09-08 Thread magoo
Hi NG! Just wanted to see what you think of the strictness of Buxa, according to their PHP guidelines: http://www.buxaprojects.com/en/php_coding_guidelines.htm In their oppinion stuff like the short PHP init "$var ?>" is forbidden. Do you people code that strict? -- Kind regards, magoo --

Re: [PHP] Can't execute PHP script

2007-09-08 Thread brian
Randy Patterson wrote: Hey, [Note:] This is a different problem from the one I posted earlier today. I can't get my LAMP server setup to run PHP script. As returned by apache2ctl, I am running; Apache/2.2.4 (Debian) PHP/5.2.3-1+b1 I point my browser to; http://localhost/apache2-default/te

Re: [PHP] Can't execute PHP script

2007-09-08 Thread Børge Holen
as previously stated... give us the printout of: dpkg -l|grep apache dpkg -l|grep php On Saturday 08 September 2007 14:55, Randy Patterson wrote: > Hey, > > [Note:] This is a different problem from the one I posted earlier today. > > I can't get my LAMP server setup to run PHP script. > > As re

[PHP] Can't execute PHP script

2007-09-08 Thread Randy Patterson
Hey, [Note:] This is a different problem from the one I posted earlier today. I can't get my LAMP server setup to run PHP script. As returned by apache2ctl, I am running; Apache/2.2.4 (Debian) PHP/5.2.3-1+b1 I point my browser to; http://localhost/apache2-default/test.php The file test.php

Re: [PHP] Image Conversion... OT!

2007-09-08 Thread Vidyut Luther
I've been using ImageMagick pretty much since 1997, I'm probably biased or ignorant of other tools that are probably available to people these days :). But, ImageMagick still works wonderfully for me, so.. yes it's the best :). Børge Holen wrote: > On Saturday 08 September 2007 13:59, Vidyut Luthe

Re: [PHP] Image Conversion... OT!

2007-09-08 Thread Børge Holen
On Saturday 08 September 2007 13:59, Vidyut Luther wrote: > Børge Holen wrote: > > On Saturday 08 September 2007 12:48, Tony Di Croce wrote: > >> I need to convert (resize, and store as blob's in a mysql db) > > > > oh oh oh... NO we can slap the horse again ;D > > > >> images my > >> users can upl

Re: [PHP] Image Conversion... OT!

2007-09-08 Thread Vidyut Luther
Børge Holen wrote: > On Saturday 08 September 2007 12:48, Tony Di Croce wrote: > >> I need to convert (resize, and store as blob's in a mysql db) >> > oh oh oh... NO we can slap the horse again ;D > > >> images my >> users can upload. I'm wondering what the best conversion tool is... I

Re: [PHP] Image Conversion...

2007-09-08 Thread cajb
On 9/8/07, Tony Di Croce <[EMAIL PROTECTED]> wrote: > I need to convert (resize, and store as blob's in a mysql db) images avoid that for no further problems. > ImageMagick you can use this tool for your needs. -- Romanul s-a nascut poet. Trebuia sa se nasca neamt! -- PHP General Mailing Li

Re: [PHP] Image Conversion... OT!

2007-09-08 Thread Børge Holen
On Saturday 08 September 2007 12:48, Tony Di Croce wrote: > I need to convert (resize, and store as blob's in a mysql db) oh oh oh... NO we can slap the horse again ;D > images my > users can upload. I'm wondering what the best conversion tool is... I'm > considering ImageMagick... Is this the b

Re: [PHP] LAMP Server setup help

2007-09-08 Thread Børge Holen
On Saturday 08 September 2007 12:54, Randy Patterson wrote: > On Saturday 08 September 2007 12:20, Børge Holen wrote: > > On Saturday 08 September 2007 10:07, Randy Patterson wrote: > > > Hey, > > > > > > I have setup a test system on my home network in the past to develop & > > > test PHP apps by

Re: [PHP] LAMP Server setup help

2007-09-08 Thread Børge Holen
On Saturday 08 September 2007 12:54, Randy Patterson wrote: > On Saturday 08 September 2007 12:20, Børge Holen wrote: > > On Saturday 08 September 2007 10:07, Randy Patterson wrote: > > > Hey, > > > > > > I have setup a test system on my home network in the past to develop & > > > test PHP apps by

Re: [PHP] LAMP Server setup help

2007-09-08 Thread Randy Patterson
On Saturday 08 September 2007 12:20, Børge Holen wrote: > On Saturday 08 September 2007 10:07, Randy Patterson wrote: > > Hey, > > > > I have setup a test system on my home network in the past to develop & > > test PHP apps by installing an ISAPI PHP dll in IIS. It worked great but > > now I trying

[PHP] Image Conversion...

2007-09-08 Thread Tony Di Croce
I need to convert (resize, and store as blob's in a mysql db) images my users can upload. I'm wondering what the best conversion tool is... I'm considering ImageMagick... Is this the best? Is their anything that is integrated with PHP itself? td

Re: [PHP] Reg.Photo Upload Tool

2007-09-08 Thread Børge Holen
On Friday 07 September 2007 12:07, Ramesh.b wrote: > Thanks Jay, > > I want a client side tool , something similar to Yahoo photos or flickr, > where it will shrink the size of the image and upload. You'd be better of makin' one yerself. Last time I got some questions about fileuploads and checke

Re: [PHP] LAMP Server setup help

2007-09-08 Thread Børge Holen
On Saturday 08 September 2007 10:07, Randy Patterson wrote: > Hey, > > I have setup a test system on my home network in the past to develop & test > PHP apps by installing an ISAPI PHP dll in IIS. It worked great but now I > trying to setup a LAMP server on Debian/Lenny. I ran the following command

Re: [PHP] LAMP Server setup help

2007-09-08 Thread brian
Randy Patterson wrote: Hey, I have setup a test system on my home network in the past to develop & test PHP apps by installing an ISAPI PHP dll in IIS. It worked great but now I trying to setup a LAMP server on Debian/Lenny. I ran the following command; aptitude install apache2 php5 libapach

[PHP] Re: html2png

2007-09-08 Thread Al
Imagick PHP extension, easiest, or Imagemagick command line using exec(). Imagick to read a pdf and output it as a jpeg: header('Content-type: image/jpeg'); $obj = new Imagick('x.pdf'); $obj->SetImageFormat('jpeg'); echo $obj; Your want to use montage, resizing and write the result to a fil

Re: [PHP] Creating a File in Memory

2007-09-08 Thread Per Jessen
John Schattel wrote: > lacks a file name. So when a program like Google Earth tries to > process the file, it fails. When I bring ndfdViaPipe.kmz into WinZip, > the file has no name but can otherwise be extracted just fine. Once > extracted, Google Earth can process the file. Does anyone know

[PHP] LAMP Server setup help

2007-09-08 Thread Randy Patterson
Hey, I have setup a test system on my home network in the past to develop & test PHP apps by installing an ISAPI PHP dll in IIS. It worked great but now I trying to setup a LAMP server on Debian/Lenny. I ran the following command; aptitude install apache2 php5 libapache2-mod-php5 But got the f

Re: [PHP] 'application' variables not available? Alternatives?

2007-09-08 Thread david
Thanks very much for that Vidyet. This is going to be a massive help. "Vidyut Luther" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi David, > I'd say your best bet is to use memcached. This will allow the > variables you specified to stay in memory, and be accessible to all > o