php-windows Digest 24 May 2002 21:09:31 -0000 Issue 1160

Topics (messages 13961 through 13970):

GD + modify image
        13961 by: Evan
        13962 by: Evan

Re: Passing Variables
        13963 by: Opere, James

Re: Varying Results Creating Table
        13964 by: Hugh Bothwell
        13968 by: Tim Greenleaf

Flush() doesn't work in win98;  urgency
        13965 by: bobby_zhu

php .... xml ...... PARSER ?????
        13966 by: toby z

parsing from vb
        13967 by: Ergin Aytac

including quote character
        13969 by: srini rao
        13970 by: Hugh Bothwell

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 ---
Hi to all!!!
1) phpinfo() return: GD version 1.6.2 or higher
What does this mean exactly? What's the correct  version of my GD?

2) I made a script that upload an image and paste the site logo in the
bottom-left corner.
The problem is that I get the error:
" gd-png warning: alpha channel not supported "
The img logo is a PNG32 with transparent background.
Someone told me that I need GD 2.x.x (to work in truecolor) but is it
possible to make it working with my version of GD?

Here is the script:
  //Adding logo
  $logo = "filigrana.png";
  $dst_im = @ImageCreateFromJPEG("../".$pathImg.$NomeFile);
  $src_im = @ImageCreateFromPNG($logo);
  $dst_size = GetImageSize("../".$pathImg.$NomeFile);
  $src_size = GetImageSize($logo);
  ImageCopy( $dst_im, $src_im, 0, $dst_size[1] - $src_size[1], 0, 0,
$src_size[0], $src_size[1]);
  ImageJPEG($dst_im,"../".$pathImg.$NomeFile);
  ImageDestroy($dst_im);

Thanks for your help,
Evan


--- End Message ---
--- Begin Message ---
Ooops sorry, wrong ng.
However any help is appreciated :-)


--- End Message ---
--- Begin Message ---
I need the group by clause to enable me pick the count of each type of item
that can be used for drawing graphs.Remember that it is not very possible,
although i don't know yet to come up with a chart of different number counts
of each item without converting the counts to numerical values.

-----Original Message-----
From: Nicole Amashta [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 24, 2002 12:52 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: Passing Variables


Why do you need the group by clause? Do one or the other, not both.

either do a

select count(id) from table
or

select field, count(id) from table group by field

Check your query,

Nicole Amashta
www.aeontrek.com

James Opere wrote:
> Hi All,
>  I'm trying to pass variables from one form to the other.I have a problem
> when i want to do the the following:
> 1.COUNT($variable)
> 2.DISTINCT($variable)
> .............
> I realise i can not use the brackets in my query and the variable be
> recognised.When i add COUNT without the brackets i still get an error.
> Example.
> test.html
> <form action="me.php" method="post">
> <input type="text" name="this">
>  ..............
> This is sent to :
> 
> me.php
> <?php 
> $db=mysql_connect('localhost','','');
> mysql_select_db($database,$db);
> $sql="select COUNT($this) from $table group by  $this";
> ................
> ?>
>  This  gives an error.
> Please help.
> 


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Try this:

<html>
  <head>
    <title>PHP Test</title>
    <style type='text/css'>
    <!--
      th {
        font-family: Verdana, Arial, sans-serif;
        font-size: 12px;
        font-weight: 700;
        background-color: #ffcc00;
        text-align: center;
      }
      td {
        font-family: Verdana, Arial, sans-serif;
        font-size: 10px;
        background-color: #ffffff;
      }
      .ctr {
        text-align: center;
      }
    -->
    </style>
  </head>
<body>
    <table border='2' cellspacing='0' cellpadding='3' bordercolor='#C0C0C0'
        width='97%' id='AutoNumber2' style='border-collapse: collapse'
        bgcolor='#FFFFFF'>
      <tr>
        <th width='4%'>&nbsp;</th>
        <th width='28%'>Name</th>
        <th width='13%'>Phone</th>
        <th width='29%'>E-mail</th>
        <th width='22%'>Department</th>
        <th width='4%'>&nbsp;</th>
      </tr>
<?php
    $row['name'] = "Fred Flintstone";
    $row['phone'] = "233-7625";
    $row['email'] = '[EMAIL PROTECTED]';
    $row['dept'] = 'Aggragate Extraction';

    for ($i = 0; $i < 650; $i++)
        echo
            "<tr>"
                ."<td class='ctr'>$i</td>"
                ."<td>{$row['name']}</td>"
                ."<td>{$row['phone']}</td>"
                ."<td><a
href='mailto:{$row['email']}'>{$row['email']}</a></td>"
                ."<td>{$row['dept']}</td>"
                ."<td>&nbsp;</td>"
            ."</tr>";
?>
    </table>
</body>
</html>


--- End Message ---
--- Begin Message ---
Thanks Hugh.....

This script seems to work much better but there are still random errors.
The script I posted had errors just about everytime while this one has
errors less frequently.  I am going to change versions of PHP and see if
that makes any difference....But I think for now I am sticking with ASP if
developing on Windows.

Thanks again.


Tim


"Hugh Bothwell" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Try this:
>
> <html>
>   <head>
>     <title>PHP Test</title>
>     <style type='text/css'>
>     <!--
>       th {
>         font-family: Verdana, Arial, sans-serif;
>         font-size: 12px;
>         font-weight: 700;
>         background-color: #ffcc00;
>         text-align: center;
>       }
>       td {
>         font-family: Verdana, Arial, sans-serif;
>         font-size: 10px;
>         background-color: #ffffff;
>       }
>       .ctr {
>         text-align: center;
>       }
>     -->
>     </style>
>   </head>
> <body>
>     <table border='2' cellspacing='0' cellpadding='3'
bordercolor='#C0C0C0'
>         width='97%' id='AutoNumber2' style='border-collapse: collapse'
>         bgcolor='#FFFFFF'>
>       <tr>
>         <th width='4%'>&nbsp;</th>
>         <th width='28%'>Name</th>
>         <th width='13%'>Phone</th>
>         <th width='29%'>E-mail</th>
>         <th width='22%'>Department</th>
>         <th width='4%'>&nbsp;</th>
>       </tr>
> <?php
>     $row['name'] = "Fred Flintstone";
>     $row['phone'] = "233-7625";
>     $row['email'] = '[EMAIL PROTECTED]';
>     $row['dept'] = 'Aggragate Extraction';
>
>     for ($i = 0; $i < 650; $i++)
>         echo
>             "<tr>"
>                 ."<td class='ctr'>$i</td>"
>                 ."<td>{$row['name']}</td>"
>                 ."<td>{$row['phone']}</td>"
>                 ."<td><a
> href='mailto:{$row['email']}'>{$row['email']}</a></td>"
>                 ."<td>{$row['dept']}</td>"
>                 ."<td>&nbsp;</td>"
>             ."</tr>";
> ?>
>     </table>
> </body>
> </html>
>
>


--- End Message ---
--- Begin Message ---
I am using php under win98, and I want to create a keep-alive web page, so I want to 
use flush().  However flush() doesn't work in php+Apache under win98 as php.net is 
mentioned, so can anyone tells me if there is a suitable web server that can make 
flush() work properly under win98(win2K is also OK)
It is very urgent, I have also tried OmniHTTPD, but it doesn't work, either.
Please Help me!  Thank you.
--- End Message ---
--- Begin Message ---
guyz ....

i didnt do anything about xml support when i installed
php .... (on xp, iis 5.1) :$
and now i NEED to .....
i think i need to add this line to php.ini
" --with-xml "

or do i ????

or should  i do someting else ?????
as i have downloaded the expat parser toolkit
& this line of code i think will enable the expat
parser or will it ????


thnx a milllllion .....

toby .....

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
--- End Message ---
--- Begin Message ---
hi,

1.
I have to parse php scripts from a visual basic program without using apache
or IIS or any other web server. There are several DLL's in php directory and
I think I must use them. Do you have experience for this or know tutorials
discribing the use of php libraries from other windows programs?

Or maybe there is another simple way? For example using php.exe to parse the
scripts. But I couldn't start it using parameters like

   php.exe script.php?par1=aaa.

2.
I have a DLL written in VB with several business logic functions. How can
use it in php without compiling whole php? In the same way using com
objects?

Thank you very much

Ergin Aytac


--- End Message ---
--- Begin Message ---
I am trying to create a CSV(comma separated Value) file
and need to include the quote (") character in PHP file.
do i use double quotes(""""") or single quote('"') or
'&quot;'
i tried these but dont work-
- pl help how i could enclose the quote character.
srini
[EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---

"Srini Rao" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am trying to create a CSV(comma separated Value) file
> and need to include the quote (") character in PHP file.
> do i use double quotes(""""") or single quote('"') or
> '&quot;'
> i tried these but dont work-
> - pl help how i could enclose the quote character.

<?php
    echo "I said, \"What's your problem?\"";
?>


--- End Message ---

Reply via email to