php-windows Digest 18 Feb 2004 19:30:54 -0000 Issue 2128
Topics (messages 22886 through 22900):
Re: [PHP] Replace of ' in a query
22886 by: Svensson, B.A.T. (HKG)
OPTIMIZING PHP
22887 by: zanzamarr
22888 by: David Felton
22891 by: DvDmanDT
22894 by: David Felton
printing a php page
22889 by: Ciro
22890 by: Ignatius Reilly
22892 by: Ignatius Reilly
22896 by: Torsten Schabdach
Working with Base64 data
22893 by: Steve Goodman
22897 by: DvDmanDT
22899 by: Steve Goodman
Re: Emailing via mail(), secondary servers
22895 by: Svensson, B.A.T. (HKG)
22900 by: Manuel Lemos
Installing the php_mhash.dll extension
22898 by: Kevin McNally
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 ---
Never trust the web...
Esacping is bad practis. Doing it, is to ask for trouble when you
try to port the code to another system that a) escapes in another
way, or b) does not escape at all, the transparent way to handle
quote are to quote them. This has been working for the last 40 to
50 years or so, and still works fine. Why not stay with a winner?
-----Original Message-----
From: Brent Baisley
To: carlos castillo
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: 2004-02-17 21:02
Subject: [PHP-WIN] Re: [PHP] Replace of ' in a query
Look at the addslashes command. You should always escape the values you
are accepting from user input. If you read almost any article on web
site security, it will mention something called SQL injection among
other things. This is a way to compromise your data.
For instance, what if a user entered:
"1" OR "A"="A"
Now what if you used that user input to filter a query. You may end up
with:
SELECT * FROM db WHERE field="1" OR "A"="A"
Which would return every record in the database.
On Feb 17, 2004, at 2:44 PM, carlos castillo wrote:
> Hi , i have the following problem, i have a form where a user can
input
> any text, on that text may be a char is ' char(39) when i try to
> execute
> the sql query, i have an error for that ', i need to replace it for
the
> html tag, for example " is " or by chr(39) i dont know, and then
> execute the sql query.
>
> i really appreciate your help, thanks.
>
--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search & Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hello everyone.... what's better for my machine????
Is it better to do so:
----------------------------------------------------------------------------
--------------------------------------------
<p><strong>Localizzazione :</strong><span> <?Php echo $localizzazione;
?></span></p>
<p><strong>Coordinate Geografiche :</strong><span> <?Php echo
$coordinate_geografiche; ?></span></p>
<p><strong>Continente :</strong><span> <?Php echo $area; ?></span></p>
<p><strong>Confini :</strong><span> <?Php echo $confini; ?></span></p>
----------------------------------------------------------------------------
----------------------------------
or put everything in a variabile like $text = "<p><strong>Localizzazione
:</strong><span> <?Php echo $localizzazione; ?></span></p> ....";
and then echo $text;
????????????
--- End Message ---
--- Begin Message ---
The first option is faster, although this might be a slight improvement to
make it more readable:
<p><strong>Localizzazione :</strong><span> <?=$localizzazione?></span></p>
<p><strong>Coordinate Geografiche :</strong><span>
<?=$coordinate_geografiche?></span></p>
<p><strong>Continente :</strong><span> <?=$area?></span></p>
<p><strong>Confini :</strong><span> <?=$confini?></span></p>
- you'll need to have short_quotes enabled to be able to do this.
-----Original Message-----
From: zanzamarr [mailto:[EMAIL PROTECTED]
Sent: 18 February 2004 11:02
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] OPTIMIZING PHP
Hello everyone.... what's better for my machine????
Is it better to do so:
----------------------------------------------------------------------------
--------------------------------------------
<p><strong>Localizzazione :</strong><span> <?Php echo $localizzazione;
?></span></p>
<p><strong>Coordinate Geografiche :</strong><span> <?Php echo
$coordinate_geografiche; ?></span></p>
<p><strong>Continente :</strong><span> <?Php echo $area; ?></span></p>
<p><strong>Confini :</strong><span> <?Php echo $confini; ?></span></p>
----------------------------------------------------------------------------
----------------------------------
or put everything in a variabile like $text = "<p><strong>Localizzazione
:</strong><span> <?Php echo $localizzazione; ?></span></p> ....";
and then echo $text;
????????????
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
**********************************************************************
--- End Message ---
--- Begin Message ---
I do beleive you mean short_open_tag.. :) I doubt you ment short_quotes
anyway.. :)
--
// DvDmanDT
MSN: dvdmandt€hotmail.com
Mail: dvdmandt€telia.com
"David Felton" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> The first option is faster, although this might be a slight improvement
to
> make it more readable:
>
> <p><strong>Localizzazione :</strong><span> <?=$localizzazione?></span></p>
>
> <p><strong>Coordinate Geografiche :</strong><span>
> <?=$coordinate_geografiche?></span></p>
>
> <p><strong>Continente :</strong><span> <?=$area?></span></p>
>
> <p><strong>Confini :</strong><span> <?=$confini?></span></p>
>
>
> - you'll need to have short_quotes enabled to be able to do this.
>
> -----Original Message-----
> From: zanzamarr [mailto:[EMAIL PROTECTED]
> Sent: 18 February 2004 11:02
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] OPTIMIZING PHP
>
>
> Hello everyone.... what's better for my machine????
>
> Is it better to do so:
> --------------------------------------------------------------------------
--
> --------------------------------------------
> <p><strong>Localizzazione :</strong><span> <?Php echo $localizzazione;
> ?></span></p>
>
> <p><strong>Coordinate Geografiche :</strong><span> <?Php echo
> $coordinate_geografiche; ?></span></p>
>
> <p><strong>Continente :</strong><span> <?Php echo $area; ?></span></p>
>
> <p><strong>Confini :</strong><span> <?Php echo $confini; ?></span></p>
> --------------------------------------------------------------------------
--
> ----------------------------------
>
> or put everything in a variabile like $text = "<p><strong>Localizzazione
> :</strong><span> <?Php echo $localizzazione; ?></span></p> ....";
> and then echo $text;
>
> ????????????
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
>
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
> **********************************************************************
--- End Message ---
--- Begin Message ---
Yep that's right.
-----Original Message-----
From: DvDmanDT [mailto:[EMAIL PROTECTED]
Sent: 18 February 2004 4:43
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] OPTIMIZING PHP
I do beleive you mean short_open_tag.. :) I doubt you ment short_quotes
anyway.. :)
--
// DvDmanDT
MSN: dvdmandt€hotmail.com
Mail: dvdmandt€telia.com
"David Felton" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> The first option is faster, although this might be a slight improvement
to
> make it more readable:
>
> <p><strong>Localizzazione :</strong><span> <?=$localizzazione?></span></p>
>
> <p><strong>Coordinate Geografiche :</strong><span>
> <?=$coordinate_geografiche?></span></p>
>
> <p><strong>Continente :</strong><span> <?=$area?></span></p>
>
> <p><strong>Confini :</strong><span> <?=$confini?></span></p>
>
>
> - you'll need to have short_quotes enabled to be able to do this.
>
> -----Original Message-----
> From: zanzamarr [mailto:[EMAIL PROTECTED]
> Sent: 18 February 2004 11:02
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] OPTIMIZING PHP
>
>
> Hello everyone.... what's better for my machine????
>
> Is it better to do so:
> --------------------------------------------------------------------------
--
> --------------------------------------------
> <p><strong>Localizzazione :</strong><span> <?Php echo $localizzazione;
> ?></span></p>
>
> <p><strong>Coordinate Geografiche :</strong><span> <?Php echo
> $coordinate_geografiche; ?></span></p>
>
> <p><strong>Continente :</strong><span> <?Php echo $area; ?></span></p>
>
> <p><strong>Confini :</strong><span> <?Php echo $confini; ?></span></p>
> --------------------------------------------------------------------------
--
> ----------------------------------
>
> or put everything in a variabile like $text = "<p><strong>Localizzazione
> :</strong><span> <?Php echo $localizzazione; ?></span></p> ....";
> and then echo $text;
>
> ????????????
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
>
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
> **********************************************************************
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
hi guys!!
how can i send to the printer a php page from a button on it?
thanks
ciro from italy
--- End Message ---
--- Begin Message ---
I suppose you mean the client's printer?
onclick="javascript:window.print()"
reminder: PHP is mostly used server-side
HTH
Ignatius
_________________________
----- Original Message -----
From: "Ciro" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 18, 2004 17:20
Subject: [PHP-WIN] printing a php page
> hi guys!!
>
> how can i send to the printer a php page from a button on it?
>
> thanks
>
> ciro from italy
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
The button can call a javascript function that:
- opens a pop-up window
- fetches content based on the parent window's form elements,
- echoes javascript-generated dynamic content accordingly (HTML or
otherwise)
Ignatius
_________________________
----- Original Message -----
From: "Ciro Marciano" <[EMAIL PROTECTED]>
To: "Ignatius Reilly" <[EMAIL PROTECTED]>
Sent: Wednesday, February 18, 2004 17:33
Subject: Re: [PHP-WIN] printing a php page
> i mean a page with a summary of information inserted in a form. the user
> would like to print this summary from his browser. how can i do?
>
>
> ----- Original Message -----
> From: "Ignatius Reilly" <[EMAIL PROTECTED]>
> To: "Win32 list PHP" <[EMAIL PROTECTED]>; "Ciro"
<[EMAIL PROTECTED]>
> Sent: Wednesday, February 18, 2004 5:27 PM
> Subject: Re: [PHP-WIN] printing a php page
>
>
> > I suppose you mean the client's printer?
> > onclick="javascript:window.print()"
> >
> > reminder: PHP is mostly used server-side
> >
> > HTH
> > Ignatius
> > _________________________
> > ----- Original Message -----
> > From: "Ciro" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, February 18, 2004 17:20
> > Subject: [PHP-WIN] printing a php page
> >
> >
> > > hi guys!!
> > >
> > > how can i send to the printer a php page from a button on it?
> > >
> > > thanks
> > >
> > > ciro from italy
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
>
>
--- End Message ---
--- Begin Message ---
Hello!
Of course you only should use Javascript, if you can
rely on it, meaning that you know that every user has JS enabled. Else
it would be some kind of unfair.
I mean the most easiest solution would be, to print just a hint beneath
the form that he (the user) can print out this page and of course the
form by clicking on the print button in the browser.
If this is not what you are looking for - for whatever reason - than you
may add a checkbox to your form like this:
<input type="checkbox" name="print" /><label>Print this!</label>
If the user checks this and submits the form, you could show the content
again in a printer-friendly way, i.e. with a different stylesheet.
You could also create a pdf-document and send this via mail to the user.
But this will maybe go too far...
If you want to stay with the JS-solution than you could place the hint,
which I mentioned in the second paragraph, in the the <noscript>-Tag for
providing some information to users with JS disabled.
--
Cheers
Torsten
--- End Message ---
--- Begin Message ---
Hi everyone,
I'm running into an issue decoding base64 data. I have an XML file that
contains a base64 encoded image, which I am attempting to extract, and
display. Sounds simple enough, yet I am running into an issue saving the
image as a jpeg. It seems that when I decode the data, the resulting binary
image file is invalid.
My code:
----------------------------------------------------------------------------
-------------------
<?php
$image_data =
"/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRof
Hh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/wAALCAHSABgBAREA/8QAHwAA
AQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQR
BRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RF
RkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ip
qrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/9oACAEB
AAA/APfKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKg3N6n
86Nzep/Ojc3qfzpKKKTcvqPzo3L6j86Ny+o/OuE/4T/S/wDn8j/76o/4T/S/+fyP/vqj/hP9
L/5/I/8AvquH/wCFeaN/z7y/9/G/xo/4V5o3/PvL/wB/G/xo/wCFeaN/z7y/9/G/xr0TZB/e
/WjZB/e/WjZB/e/Wrm6L/nkv5Ubov+eS/lRui/55L+VO3RelG6L0o3RelY3lyep/Wjy5PU/r
R5cnqf1qXY3pRsb0o2N6VqfJ/s0fJ/s0fJ/s14d/ZvxL/wCek3/kP/4qj+zfiX/z0m/8h/8A
xVH9m/Ev/npN/wCQ/wD4qvaPsi/3T+dH2Rf7p/Oj7Iv90/nTd1z6j86N1z6j86N1z6j86vfZ
x7fnR9nHt+dH2ce351L9oaj7Q1H2hqn8tfU0eWvqaPLX1NN2ye/50bZPf86Nsnv+dS0UUeS3
q350eS3q350eS3q351YoooooqbYvpRsX0o2L6U6iiiiinbG9KNjelGxvSpqKKqedJ/cf86PO
k/uP+dHnSf3H/Op9if3v1o2J/e/WjYn979aTy29RR5beoo8tvUVLRRRRRXF/8J7J/wBC7rv/
AIB//Xo/4T2T/oXdd/8AAP8A+vR/wnsn/Qu67/4B/wD167PavoPyo2r6D8qNq+g/Kloooooo
ooorhfClx4avfFM8vhq805YobeWGdLe4V5r996ZnkAO5ghUqJHyXMrkYBDSd1T8D0owPSjA9
K//Z";
$theFile = base64_decode($image_data);
$file = fopen('test.jpg', 'wb');
fwrite($file, $theFile);
fclose($file);
?>
----------------------------------------------------------------------------
----------------------
When I attempt to view the generated test.jpg in a browser, it is unable to
display. Same with photoshop and the windows built-in pic viewer.
I know that the base64 data is not corrupted, since I can get it to display
properly in netscape with the following code:
echo '<img src="data:image/jpeg;base64,'.$image_data.' ">';
Unfortunately, I'm tied to IE. Has anyone run into a problem like this
before?
Thanks!
Steve
--- End Message ---
--- Begin Message ---
Did you try with PHP 4.3.4 (I think some earlier version was buggy)? It
worked, and created something like a black/white palette or something, and
the number '2' at the bottom, 24x466 px.. :)
Just used this:
echo base64_decode($image_data);
--
// DvDmanDT
MSN: dvdmandt€hotmail.com
Mail: dvdmandt€telia.com
"Steve Goodman" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> Hi everyone,
> I'm running into an issue decoding base64 data. I have an XML file that
> contains a base64 encoded image, which I am attempting to extract, and
> display. Sounds simple enough, yet I am running into an issue saving the
> image as a jpeg. It seems that when I decode the data, the resulting
binary
> image file is invalid.
>
> My code:
> --------------------------------------------------------------------------
--
> -------------------
> <?php
> $image_data =
> "/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRof
> Hh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/wAALCAHSABgBAREA/8QAHwAA
> AQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQR
> BRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RF
> RkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ip
> qrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/9oACAEB
> AAA/APfKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKg3N6n
> 86Nzep/Ojc3qfzpKKKTcvqPzo3L6j86Ny+o/OuE/4T/S/wDn8j/76o/4T/S/+fyP/vqj/hP9
> L/5/I/8AvquH/wCFeaN/z7y/9/G/xo/4V5o3/PvL/wB/G/xo/wCFeaN/z7y/9/G/xr0TZB/e
> /WjZB/e/WjZB/e/Wrm6L/nkv5Ubov+eS/lRui/55L+VO3RelG6L0o3RelY3lyep/Wjy5PU/r
> R5cnqf1qXY3pRsb0o2N6VqfJ/s0fJ/s0fJ/s14d/ZvxL/wCek3/kP/4qj+zfiX/z0m/8h/8A
> xVH9m/Ev/npN/wCQ/wD4qvaPsi/3T+dH2Rf7p/Oj7Iv90/nTd1z6j86N1z6j86N1z6j86vfZ
> x7fnR9nHt+dH2ce351L9oaj7Q1H2hqn8tfU0eWvqaPLX1NN2ye/50bZPf86Nsnv+dS0UUeS3
> q350eS3q350eS3q351YoooooqbYvpRsX0o2L6U6iiiiinbG9KNjelGxvSpqKKqedJ/cf86PO
> k/uP+dHnSf3H/Op9if3v1o2J/e/WjYn979aTy29RR5beoo8tvUVLRRRRRXF/8J7J/wBC7rv/
> AIB//Xo/4T2T/oXdd/8AAP8A+vR/wnsn/Qu67/4B/wD167PavoPyo2r6D8qNq+g/Kloooooo
> ooorhfClx4avfFM8vhq805YobeWGdLe4V5r996ZnkAO5ghUqJHyXMrkYBDSd1T8D0owPSjA9
> K//Z";
>
> $theFile = base64_decode($image_data);
> $file = fopen('test.jpg', 'wb');
> fwrite($file, $theFile);
> fclose($file);
> ?>
> --------------------------------------------------------------------------
--
> ----------------------
>
> When I attempt to view the generated test.jpg in a browser, it is unable
to
> display. Same with photoshop and the windows built-in pic viewer.
> I know that the base64 data is not corrupted, since I can get it to
display
> properly in netscape with the following code:
>
> echo '<img src="data:image/jpeg;base64,'.$image_data.' ">';
>
>
> Unfortunately, I'm tied to IE. Has anyone run into a problem like this
> before?
>
> Thanks!
> Steve
--- End Message ---
--- Begin Message ---
Thanks a bunch! That's what the image should be. I'm running 4.3.2. I'll see
about an upgrade.
steve
"Dvdmandt" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Did you try with PHP 4.3.4 (I think some earlier version was buggy)? It
> worked, and created something like a black/white palette or something, and
> the number '2' at the bottom, 24x466 px.. :)
>
> Just used this:
> echo base64_decode($image_data);
>
> --
> // DvDmanDT
> MSN: dvdmandt€hotmail.com
> Mail: dvdmandt€telia.com
> "Steve Goodman" <[EMAIL PROTECTED]> skrev i meddelandet
> news:[EMAIL PROTECTED]
> > Hi everyone,
> > I'm running into an issue decoding base64 data. I have an XML file that
> > contains a base64 encoded image, which I am attempting to extract, and
> > display. Sounds simple enough, yet I am running into an issue saving the
> > image as a jpeg. It seems that when I decode the data, the resulting
> binary
> > image file is invalid.
> >
> > My code:
>
> --------------------------------------------------------------------------
> --
> > -------------------
> > <?php
> > $image_data =
> >
"/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRof
> > Hh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/wAALCAHSABgBAREA/8QAHwAA
> > AQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQR
> > BRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RF
> > RkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ip
> > qrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/9oACAEB
> > AAA/APfKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKg3N6n
> > 86Nzep/Ojc3qfzpKKKTcvqPzo3L6j86Ny+o/OuE/4T/S/wDn8j/76o/4T/S/+fyP/vqj/hP9
> > L/5/I/8AvquH/wCFeaN/z7y/9/G/xo/4V5o3/PvL/wB/G/xo/wCFeaN/z7y/9/G/xr0TZB/e
> > /WjZB/e/WjZB/e/Wrm6L/nkv5Ubov+eS/lRui/55L+VO3RelG6L0o3RelY3lyep/Wjy5PU/r
> > R5cnqf1qXY3pRsb0o2N6VqfJ/s0fJ/s0fJ/s14d/ZvxL/wCek3/kP/4qj+zfiX/z0m/8h/8A
> > xVH9m/Ev/npN/wCQ/wD4qvaPsi/3T+dH2Rf7p/Oj7Iv90/nTd1z6j86N1z6j86N1z6j86vfZ
> > x7fnR9nHt+dH2ce351L9oaj7Q1H2hqn8tfU0eWvqaPLX1NN2ye/50bZPf86Nsnv+dS0UUeS3
> > q350eS3q350eS3q351YoooooqbYvpRsX0o2L6U6iiiiinbG9KNjelGxvSpqKKqedJ/cf86PO
> > k/uP+dHnSf3H/Op9if3v1o2J/e/WjYn979aTy29RR5beoo8tvUVLRRRRRXF/8J7J/wBC7rv/
> > AIB//Xo/4T2T/oXdd/8AAP8A+vR/wnsn/Qu67/4B/wD167PavoPyo2r6D8qNq+g/Kloooooo
> > ooorhfClx4avfFM8vhq805YobeWGdLe4V5r996ZnkAO5ghUqJHyXMrkYBDSd1T8D0owPSjA9
> > K//Z";
> >
> > $theFile = base64_decode($image_data);
> > $file = fopen('test.jpg', 'wb');
> > fwrite($file, $theFile);
> > fclose($file);
> > ?>
>
> --------------------------------------------------------------------------
> --
> > ----------------------
> >
> > When I attempt to view the generated test.jpg in a browser, it is unable
> to
> > display. Same with photoshop and the windows built-in pic viewer.
> > I know that the base64 data is not corrupted, since I can get it to
> display
> > properly in netscape with the following code:
> >
> > echo '<img src="data:image/jpeg;base64,'.$image_data.' ">';
> >
> >
> > Unfortunately, I'm tied to IE. Has anyone run into a problem like this
> > before?
> >
> > Thanks!
> > Steve
--- End Message ---
--- Begin Message ---
> The main point of requiring a valid address has nothing to
> do with sending you spam, but rather to make it difficult
> for some authors to boost their top download ranking
> positions by creating many accounts and download their own
> packages. That is explained in the why page.
And that's of course what indvidual with low moral will do when
given the chanse. However my first remark (a time ago) was not
ment to spawn a oral war, but suggest reason why people would
like to select this or that package. Sometimes those reason are
not founded in technical motivated arguments, but those of
confidense and easniess. Easiness in the sence that one tend to
stick to what one already know and has developed skills with.
Regards,
//Anders
--- End Message ---
--- Begin Message ---
Hello,
On 02/18/2004 02:15 PM, B.A.T. Svensson wrote:
The main point of requiring a valid address has nothing to
do with sending you spam, but rather to make it difficult
for some authors to boost their top download ranking
positions by creating many accounts and download their own
packages. That is explained in the why page.
And that's of course what indvidual with low moral will do when
If you study a little about the human nature you will realize that tehre
would be people capable of doing that and much worse. If you just think
of people with great needs to satisfy their egos at the cost of getting
exposure to their names it is not hard to understand. It is not wrong to
desire to obtain recognition. What is wrong is to commit fraud to
obtain undeserved recognition.
So, you have an idea, this is the hall of fame page that provides
exposure to those that are top ranked:
http://www.phpclasses.org/browse/top/top.html
given the chanse. However my first remark (a time ago) was not
ment to spawn a oral war, but suggest reason why people would
like to select this or that package. Sometimes those reason are
not founded in technical motivated arguments, but those of
confidense and easniess. Easiness in the sence that one tend to
stick to what one already know and has developed skills with.
Sure, but when somebody does not know, people tend to follow advice or
hints provided by information based on the opinions of a significant
number of people. That is why in the PHP Classes site there charts based
on statistics collected from things like the classes that were
downloaded and rated by many users.
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--- End Message ---
--- Begin Message ---
I need to install the php_mhash.dll extension to use with Authroize.net on
my windows 2000 server. I edited the php.ini file by adding the correct
directory and removing the ; before php_mhash.dll. I then copied the
libmhash.dll file that is needed to the C:\Winnt\system32\ folder.
I ran the test scripts and all worked well. However after I run the script
it seems to freeze up other php files on the server. I try to go to a
another php page and it doesn't load. I removed these 2 files and put back
the php.ini to the way it was before and everything goes back to normal.
Do I need to register the libmhash.dll in the command prompt or fix some
configuration in windows to stop it from freezing my php files. I have never
set one of these extensions up before.
--- End Message ---