OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
php-general Digest 1 Sep 2006 00:19:17 -0000 Issue 4323

php-general-digest-helplists.php.net
Date: Thu Aug 31 2006 - 19:19:17 CDT


php-general Digest 1 Sep 2006 00:19:17 -0000 Issue 4323

Topics (messages 241273 through 241304):

Re: send a file or stream
        241273 by: Rafael Mora

Re: Free Shopping Carts
        241274 by: The Doctor
        241275 by: Jay Blanchard
        241298 by: John Nichel
        241299 by: John Nichel

remove SimpleXML nodes
        241276 by: Javier Ruiz
        241278 by: Paul Scott
        241289 by: Jay Paulson
        241290 by: Anas Mughal
        241292 by: Anas Mughal
        241300 by: Adam Zey
        241301 by: Curt Zirzow

Re: strip slashes from beginning and end of string in one expression
        241277 by: Dave M G

Texture and wrap
        241279 by: Emil Edeholt
        241281 by: Emil Edeholt
        241282 by: tedd
        241288 by: tedd
        241293 by: Jon Anderson
        241294 by: Emil Edeholt
        241302 by: Micky Hulse
        241303 by: Robert Cummings
        241304 by: tedd

Php and Cygwin SVN
        241280 by: Mariano Guadagnini
        241284 by: Adam Zey
        241295 by: Mariano Guadagnini
        241296 by: Adam Zey

Re: Email with pregmatch
        241283 by: tedd

Error Handling Library?
        241285 by: Jay Paulson
        241286 by: Rafael Mora
        241287 by: Robert Cummings

Eaccelerator
        241291 by: Alex Turner

Re: character set when sending emails with PHP
        241297 by: Manuel Lemos

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscribelists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscribelists.php.net

To post to the list, e-mail:
        php-generallists.php.net

----------------------------------------------------------------------

attached mail follows:


Thank you very much Curt!, I'm tests right now with this. The client is not
a web browser, it is an application that calls the .php file with $_GET
params, and the app waits to receive the file compressed, this is the way I
want it to work!

I'll let u know about this. But anyway thank you

Rafa

PS: what is that ob_start though?

On 8/31/06, Curt Zirzow <czirzowgmail.com> wrote:
>
> On 8/29/06, Rafael Mora <moralocogmail.com> wrote:
> > Hi!
> >
> > i want to send a file or output stream in a .php, but first compress it,
> I
> > tryed the example to compress files but how do i do to send as answer to
> the
> > http request??
>
> Unlike my recent posts, this could be a candidate for using ob_*
>
> There is no need to compress it first, just use ob_start('ob_gzhandler');
>
> if the client supports a compression method, no special things are
> needed and the content sent is compressed otherwise it is sent without
> compression.
>
> see http://php.net/ob-gzhandler for more info.
>
> HTH,
> Curt.
>
> Curt.
>

attached mail follows:


On Thu, Aug 31, 2006 at 09:56:44AM +0200, Jose Leon wrote:
> Hello,
> On 8/31/06, The Doctor <doctordoctor.nl2k.ab.ca> wrote:
> >Are there free shopping carts that would work with
> >
> >PHP 5.0.X + and MySQL 4.1.X + and /or PostgresQL 8.1+ ?
> I think it's not so hard to tell you an url, right? ;-)
>
> http://www.oscommerce.com
>

Actually we , customer and myself as admin, ran into:

New Installation

Please customize the new installation with the following options:
Import Catalog Database:
Fatal error: Call to undefined function osc_draw_checkbox_field() in /path/to/shop/install/templates/pages/install.php on line 24

MYSQL used as DB.

Why did the above take place?
 
> Regards
> --
> qstudio :: PHP Visual RAD development environment
> http://www.qadram.com/products.php
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>

--
Member - Liberal International
This is doctornl2k.ab.ca Ici doctornl2k.ab.ca
God Queen and country! Beware Anti-Christ rising!
New Brunswick kick out the Harper Puppet and VOTE LIBERAL on 18 Sept 2006

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

attached mail follows:


[snip]
Actually we , customer and myself as admin, ran into:

New Installation

Please customize the new installation with the following options:
Import Catalog Database:
Fatal error: Call to undefined function osc_draw_checkbox_field() in
/path/to/shop/install/templates/pages/install.php on line 24

MYSQL used as DB.

Why did the above take place?
[/snip]

Because the function osc_draw_checkbox_field() was called from
/path/to/shop/install/templates/pages/install.php on line 24 and does
not appear to exist. Look at install.php on line 24 and then follow the
trail back to where the function should exist. There are probably some
include files above line 24.

Oscommerce has forums at http://forums.oscommerce.com/

I searched for osc_draw_checkbox_field() in the form and came up with

http://forums.oscommerce.com/index.php?act=Search&CODE=simpleresults&sid
=910579afc7e9c2d09ea1c8d7e3b250f2&highlite=osc_draw_checkbox_field%28%29

which appears to be a pretty in depth discussion of the error at hand. I
have decided not to post that discussion here because this e-mail would
become unnecessarily long and is pretty much an osCommerce issue rather
than a PHP issue.

Can we do anything else for you today?

attached mail follows:


Curt Zirzow wrote:
> On 8/30/06, Jay Blanchard <jblanchardpocket.com> wrote:
>> [snip]
>> Are there free shopping carts that would work with
>>
>> PHP 5.0.X + and MySQL 4.1.X + and /or PostgresQL 8.1+ ?
>> [/snip]
>>
>>
>> Yes.
>
> Just in case:
>
> Try google: 'php mysql shopping' cart or
> 'php pgsql shopping cart'
>

Freaking goody, goody. ;)

--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
jnicheldotcomholdingsofbuffalo.com

attached mail follows:


Jay Blanchard wrote:
> Can we do anything else for you today?
>

I'm a php programmer and I have a valve knocking in the engine of my
car. Can you fix it?

--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
jnicheldotcomholdingsofbuffalo.com

attached mail follows:


Hi all,

Is there any way to remove a non-unique* *node using SimpleXML?
For example, let's say I have:

$myXML = <<ENDXML
<database ...>
  <table name='one'>
      ...
  </table>
  <table name='two'>
      ...
  </table>
  <table name='three'>
      ...
  </table>
</database>
ENDXML;

So I want to do...

$xmlDatabase = new SimpleXMLElement($myXML);
foreach ($xmlDatabase as $oneTable)
{
   if ($oneTable['name'] == 'two')
   {
      /// ---- HERE I WANT TO DELETE THE $oneTable NODE
      unset($oneTable); // <-- and this doesn't work...
   }
}

any ideas?

attached mail follows:


On Thu, 2006-08-31 at 14:38 +0200, Javier Ruiz wrote:

> So I want to do...
>
> $xmlDatabase = new SimpleXMLElement($myXML);
> foreach ($xmlDatabase as $oneTable)
> {
> if ($oneTable['name'] == 'two')
> {
> /// ---- HERE I WANT TO DELETE THE $oneTable NODE
> unset($oneTable); // <-- and this doesn't work...
> }
> }

I tried to do the same a while back and could not figure it out. I think
that SimpleXML is just that - simple. You should rather try using DOMXML
functions, or as I did, roll an XML parser and do it like that.

--Paul

All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm

attached mail follows:


>> So I want to do...
>>
>> $xmlDatabase = new SimpleXMLElement($myXML);
>> foreach ($xmlDatabase as $oneTable)
>> {
>> if ($oneTable['name'] == 'two')
>> {
>> /// ---- HERE I WANT TO DELETE THE $oneTable NODE
>> unset($oneTable); // <-- and this doesn't work...
>> }
>> }
>
> I tried to do the same a while back and could not figure it out. I think
> that SimpleXML is just that - simple. You should rather try using DOMXML
> functions, or as I did, roll an XML parser and do it like that.

Why can't you just recreate the XML and skip the node you don't want to
include? So something like below:

foreach ($xmlDatabase as $oneTable)
{
    // skip node you don't want in your final xml output
    if ($oneTable['name'] != 'two')
    {
        ....
    }
}

attached mail follows:


Yes, I agree. SimpleXML is limited.
Do not expect to find advanced features in SimpleXML.

Regards.

On 8/31/06, Jay Paulson <Jay.Paulsonwholefoods.com> wrote:
>
> >> So I want to do...
> >>
> >> $xmlDatabase = new SimpleXMLElement($myXML);
> >> foreach ($xmlDatabase as $oneTable)
> >> {
> >> if ($oneTable['name'] == 'two')
> >> {
> >> /// ---- HERE I WANT TO DELETE THE $oneTable NODE
> >> unset($oneTable); // <-- and this doesn't work...
> >> }
> >> }
> >
> > I tried to do the same a while back and could not figure it out. I think
> > that SimpleXML is just that - simple. You should rather try using DOMXML
> > functions, or as I did, roll an XML parser and do it like that.
>
> Why can't you just recreate the XML and skip the node you don't want to
> include? So something like below:
>
> foreach ($xmlDatabase as $oneTable)
> {
> // skip node you don't want in your final xml output
> if ($oneTable['name'] != 'two')
> {
> ....
> }
> }
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--
Anas Mughal

attached mail follows:


I found sample code. Hope this helps.

        $doc = new DOMDocument;
        if (!is_dir($source_dir)) {
            $logger->fatal("Source directory IN is not found.
Terminating...");
             die("Source directory IN is not found. Terminating...");
        }
        $doc->Load($source_dir . "/" . $xmlfilename);
        $xpath = new DomXPath($doc);

        // Find parent node
        $parent = $xpath->query($parent_path);

        // new node will be inserted before this node
        $next = $xpath->query($next_path);

        // Create the new element
        $contentidelement = $doc->createElement('source_id', $contentid);
        $element = $doc->createElement('fallback', 'true');
        $secondelement = $doc->createElement('fallback_locale',
$originatingLocale);

        // Insert the new element
        $parent->item(0)->insertBefore($contentidelement, $next->item(0));
        $parent->item(0)->insertBefore($element, $next->item(0));
        $parent->item(0)->insertBefore($secondelement, $next->item(0));

        //remove the language_code node.
        $parent->item(0)->removeChild($next->item(0));

        // append new node
        $newNode = $doc->createElement("language_code",
$currentfallbacklocale);
        $parent->item(0)->appendChild($newNode);

--
Anas Mughal

On 8/31/06, Anas Mughal <anasmughalgmail.com> wrote:
>
> Yes, I agree. SimpleXML is limited.
> Do not expect to find advanced features in SimpleXML.
>
> Regards.
>
>
>
>
>
>
> On 8/31/06, Jay Paulson < Jay.Paulsonwholefoods.com> wrote:
> >
> > >> So I want to do...
> > >>
> > >> $xmlDatabase = new SimpleXMLElement($myXML);
> > >> foreach ($xmlDatabase as $oneTable)
> > >> {
> > >> if ($oneTable['name'] == 'two')
> > >> {
> > >> /// ---- HERE I WANT TO DELETE THE $oneTable NODE
> > >> unset($oneTable); // <-- and this doesn't work...
> > >> }
> > >> }
> > >
> > > I tried to do the same a while back and could not figure it out. I
> > think
> > > that SimpleXML is just that - simple. You should rather try using
> > DOMXML
> > > functions, or as I did, roll an XML parser and do it like that.
> >
> > Why can't you just recreate the XML and skip the node you don't want to
> > include? So something like below:
> >
> > foreach ($xmlDatabase as $oneTable)
> > {
> > // skip node you don't want in your final xml output
> > if ($oneTable['name'] != 'two')
> > {
> > ....
> > }
> > }
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> Anas Mughal
>

--
Anas Mughal

attached mail follows:


Javier Ruiz wrote:
> Hi all,
>
> So I want to do...
>
> $xmlDatabase = new SimpleXMLElement($myXML);
> foreach ($xmlDatabase as $oneTable)
> {
> if ($oneTable['name'] == 'two')
> {
> /// ---- HERE I WANT TO DELETE THE $oneTable NODE
> unset($oneTable); // <-- and this doesn't work...
> }
> }
>
>
> any ideas?
>

The answer is simple, everybody else seems to have missed it. foreach()
makes a copy of the array before working on it. Changes made to
$oneTable would obviously never affect the original. You're just
unsetting a temporary variable that's going to be overwritten next time
through the loop anyhow.

You should have better luck with this code:

$xmlDatabase = new SimpleXMLElement($myXML);
foreach ($xmlDatabase as $key => $oneTable)
{
   if ($oneTable['name'] == 'two')
   {
      /// ---- HERE I WANT TO DELETE THE $oneTable NODE
      unset($xmlDatabase[$key]);
   }
}

What that is doing is having foreach also get the key of the array
element that $oneTable represents. It then does the unset() on the
original table instead of the copy. Remember that all array elements
have keys, even if you didn't set one or it doesn't look like they
should. In this case, you don't know what the key is internally, and you
don't care either.

attached mail follows:


On 8/31/06, Adam Zey <azeynit.ca> wrote:
> Javier Ruiz wrote:
> > Hi all,
> >
> > So I want to do...
> >
> > $xmlDatabase = new SimpleXMLElement($myXML);
> > foreach ($xmlDatabase as $oneTable)
> > {
> > if ($oneTable['name'] == 'two')
> > {
> > /// ---- HERE I WANT TO DELETE THE $oneTable NODE
> > unset($oneTable); // <-- and this doesn't work...
> > }
> > }
> >
> >
> > any ideas?
> >
>
> The answer is simple, everybody else seems to have missed it. foreach()
> makes a copy of the array before working on it. Changes made to
> $oneTable would obviously never affect the original. You're just
> unsetting a temporary variable that's going to be overwritten next time
> through the loop anyhow.
>
> You should have better luck with this code:
>
> $xmlDatabase = new SimpleXMLElement($myXML);
> foreach ($xmlDatabase as $key => $oneTable)

fwiw, In php5 you can do something like:

foreach ($xmlDatabase as $key => &$oneTable)
                 //note the & ------------------^^^^
  unset($oneTable);

attached mail follows:


M. Sokolewiczz, Stut,

Thank you for your answers. Both are very helpful.

I will use the trim() method, although it's helpful to know the regular
expression for learning purposes.

Unless I can find a way to make things much more complicated.

Your time and advice is much appreciated.

--
Dave M G
Ubuntu 6.06 LTS
Kernel 2.6.17.7
Pentium D Dual Core Processor
PHP 5, MySQL 5, Apache 2

attached mail follows:


Hi

I would like to output an image from php where an input image is
textured and wrapped around a frame. Like when you assemble a canvas on
a frame (on, not under). So I get a sort of canvas looking texture on
the image and that the edges of the image are wrapped around the sides
of the frame in a 3d-ish look.

Do you understand what I mean? Is this somehow possible? I guess I would
use gd and maybe a transparent png to get the texture, or am I way off?
The wrapping thing I have no clue how to make.

Thanks for your time!

Regards Emil

attached mail follows:


Hi

Thanks, but what I meant with wrapping around a frame was this:
http://www.proformat.se/gfx/pic_006_kilram.jpg

Not just a normal frame around the image.

Emil
>
> Emil:
>
> Yes, that can be done by simply merging images (i.e., watermark). For
> example:
>
> http://xn--ovg.com/watermark
>
> The texture image should be to some degree transparent and the frame
> simply larger OR be added via css.
>
> hth's
>
> tedd
>

attached mail follows:


At 4:08 PM +0200 8/31/06, Emil Edeholt wrote:
>Hi
>
>I would like to output an image from php where an input image is
>textured and wrapped around a frame. Like when you assemble a canvas
>on a frame (on, not under). So I get a sort of canvas looking
>texture on the image and that the edges of the image are wrapped
>around the sides of the frame in a 3d-ish look.
>
>Do you understand what I mean? Is this somehow possible? I guess I
>would use gd and maybe a transparent png to get the texture, or am I
>way off? The wrapping thing I have no clue how to make.
>
>Thanks for your time!
>
>Regards Emil

Emil:

Yes, that can be done by simply merging images (i.e., watermark). For example:

http://xn--ovg.com/watermark

The texture image should be to some degree transparent and the frame
simply larger OR be added via css.

hth's

tedd

--
-------
http://sperling.com http://ancientstones.com http://earthstones.com

attached mail follows:


Emil:

To continue top posting.

Dude, an image is an image. You're not wrapping anything -- you're
just producing an image that looks a certain way.

My first example did not just put a frame around an image, it merged
two images. If I had wanted to put a frame around your image, I would
have done this:

http://xn--ovg.com/pframes

Incidentally, styles #4 and #2 put a shadow around it, which could be
expanded to mimic what I think you want.

I suggest that you back up and re-read what I said.

tedd

----

At 5:05 PM +0200 8/31/06, Emil Edeholt wrote:
>Hi
>
>Thanks, but what I meant with wrapping around a frame was this:
>http://www.proformat.se/gfx/pic_006_kilram.jpg
>
>Not just a normal frame around the image.
>
>Emil
>>
>>Emil:
>>
>>Yes, that can be done by simply merging images (i.e., watermark).
>>For example:
>>
>>http://xn--ovg.com/watermark
>>
>>The texture image should be to some degree transparent and the
>>frame simply larger OR be added via css.
>>
>>hth's
>>
>>tedd

--
-------
http://sperling.com http://ancientstones.com http://earthstones.com

attached mail follows:


Emil Edeholt wrote:
> I would like to output an image from php where an input image is
> textured and wrapped around a frame. Like when you assemble a canvas
> on a frame (on, not under). So I get a sort of canvas looking texture
> on the image and that the edges of the image are wrapped around the
> sides of the frame in a 3d-ish look.
Your description is pretty ambiguous, so I'm going to take a guess...

I think what you're talking about is essentially doing 3D rendering.
Taking an abitrary shape made of polygons (the "frame") and wrapping a
texture around it to form a "3d-ish look"ing object...?

I'm not familiar with any way of doing it, but:
- http://pear.php.net/package/Image_3D might be a start
- http://www.icarusindie.com/DoItYourSelf/rtsr/php3d/ has a pretty neat
little writeup on how to do software 3D rendering in PHP. You could use
the same principles to do 3D.

jon

attached mail follows:


Hi again

Sorry if I was unclear what I wanted was of course what Jon Anderson
said. I wanted what was pictured in the image I posted (the look of
wrapping a canvas over a frame) with some kind of fake or simple 3d
rendering. The pear libs for doing it seems like what I was looking for,
I hope it will look good and that it's fast/easy enough for me to implement.

Thanks both of you.

tedd wrote:
> Emil:
>
> To continue top posting.
>
> Dude, an image is an image. You're not wrapping anything -- you're
> just producing an image that looks a certain way.
>
> My first example did not just put a frame around an image, it merged
> two images. If I had wanted to put a frame around your image, I would
> have done this:
>
> http://xn--ovg.com/pframes
>
> Incidentally, styles #4 and #2 put a shadow around it, which could be
> expanded to mimic what I think you want.
>
> I suggest that you back up and re-read what I said.
>

attached mail follows:


tedd wrote:
> http://xn--ovg.com/pframes

Whoa, nice work Tedd! :)

Very cool. Gives me some fun ideas... thanks for sharing.

Cheers,
Micky

attached mail follows:


On Thu, 2006-08-31 at 16:23 -0700, Micky Hulse wrote:
> tedd wrote:
> > http://xn--ovg.com/pframes
>
> Whoa, nice work Tedd! :)
>
> Very cool. Gives me some fun ideas... thanks for sharing.

Tedd,

I'm very disappointed that it doesn't render properly in Opera 9. What
is with the "lockout Opera users" vibe I'm feeling?? >:B

Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'

attached mail follows:


At 7:31 PM -0400 8/31/06, Robert Cummings wrote:
>On Thu, 2006-08-31 at 16:23 -0700, Micky Hulse wrote:
>> tedd wrote:
>> > http://xn--ovg.com/pframes
>>
>> Whoa, nice work Tedd! :)
>>
>> Very cool. Gives me some fun ideas... thanks for sharing.
>
>Tedd,
>
>I'm very disappointed that it doesn't render properly in Opera 9. What
>is with the "lockout Opera users" vibe I'm feeling?? >:B
>
>Cheers,
>Rob.

Not intentional Opera lockout -- it should be easily fixed. I was
working with this a few months ago, just never got around to
finishing.

tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com

attached mail follows:


Hello list,
I'm developing an application that fetches some files from a local svn
repository, and shows them on request (using svn cat, svn list and
such). Originally, it was deployed in Linux (Apache, PHP5.0) and worked
perfectly well. I tried to port it to Windows (specifically, WinXP Pro
SP2, PHP5, IIS5), and because it depends on many command line utilities,
i decided to install cygwin. After struggling a bit, i got it working.
The thing is that, when executing any cygwin svn command (via
shell_exec), many command windows pops up appears on the windows
desktop, making the sistem quite slow during the process. I realized
that, this happens because of shell_exec opening a new shell on every
command call, i tried the other exec functions, but the same happened. I
wonder if it is posible to launch those commands in a silent manner.

Thanks,

Mariano.-

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/434 - Release Date: 30/08/2006

attached mail follows:


Mariano Guadagnini wrote:
> Hello list,
> I'm developing an application that fetches some files from a local svn
> repository, and shows them on request (using svn cat, svn list and
> such). Originally, it was deployed in Linux (Apache, PHP5.0) and worked
> perfectly well. I tried to port it to Windows (specifically, WinXP Pro
> SP2, PHP5, IIS5), and because it depends on many command line utilities,
> i decided to install cygwin. After struggling a bit, i got it working.
> The thing is that, when executing any cygwin svn command (via
> shell_exec), many command windows pops up appears on the windows
> desktop, making the sistem quite slow during the process. I realized
> that, this happens because of shell_exec opening a new shell on every
> command call, i tried the other exec functions, but the same happened. I
> wonder if it is posible to launch those commands in a silent manner.
>
>
> Thanks,
>
>
> Mariano.-
>
>

There is a windows port of Subversion, and the GNU utilities you're
referring to have mostly been ported to Windows without the use of
cygwin (see gnuwin32). Do you really need to rely on cygwin?

Regards, Adam Zey.

attached mail follows:


Thanks for your reply. I checked those ports and seem nice. Actually, i
use cygwin mainly because it was already installed on the Windows
server. But the same problem arises with any command I execute trough
shell_exec, no matter if it's a cygwin executable or a windows native
app, the command shell pop ups always.
There should be some way to execute something without the cmd windows
opening again and again, i guess. Any ideas?

Adam Zey wrote:
> Mariano Guadagnini wrote:
>> Hello list,
>> I'm developing an application that fetches some files from a local
>> svn repository, and shows them on request (using svn cat, svn list
>> and such). Originally, it was deployed in Linux (Apache, PHP5.0) and
>> worked perfectly well. I tried to port it to Windows (specifically,
>> WinXP Pro SP2, PHP5, IIS5), and because it depends on many command
>> line utilities, i decided to install cygwin. After struggling a bit,
>> i got it working. The thing is that, when executing any cygwin svn
>> command (via shell_exec), many command windows pops up appears on the
>> windows desktop, making the sistem quite slow during the process. I
>> realized that, this happens because of shell_exec opening a new shell
>> on every command call, i tried the other exec functions, but the same
>> happened. I wonder if it is posible to launch those commands in a
>> silent manner.
>>
>>
>> Thanks,
>>
>>
>> Mariano.-
>>
>>
>
> There is a windows port of Subversion, and the GNU utilities you're
> referring to have mostly been ported to Windows without the use of
> cygwin (see gnuwin32). Do you really need to rely on cygwin?
>
> Regards, Adam Zey.
>

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.7/434 - Release Date: 30/08/2006

attached mail follows:


Look into the syntax of the Windows command "start" (open a console and
type "start /?"). It's purpose is to start other processes, and it
provides some flexibility as to how they're launched. One of the options
is to hide the console windows.

Regards, Adam Zey.

Mariano Guadagnini wrote:
> Thanks for your reply. I checked those ports and seem nice. Actually,
> i use cygwin mainly because it was already installed on the Windows
> server. But the same problem arises with any command I execute trough
> shell_exec, no matter if it's a cygwin executable or a windows native
> app, the command shell pop ups always.
> There should be some way to execute something without the cmd windows
> opening again and again, i guess. Any ideas?
>
>
> Adam Zey wrote:
>> Mariano Guadagnini wrote:
>>> Hello list,
>>> I'm developing an application that fetches some files from a local
>>> svn repository, and shows them on request (using svn cat, svn list
>>> and such). Originally, it was deployed in Linux (Apache, PHP5.0) and
>>> worked perfectly well. I tried to port it to Windows (specifically,
>>> WinXP Pro SP2, PHP5, IIS5), and because it depends on many command
>>> line utilities, i decided to install cygwin. After struggling a bit,
>>> i got it working. The thing is that, when executing any cygwin svn
>>> command (via shell_exec), many command windows pops up appears on
>>> the windows desktop, making the sistem quite slow during the
>>> process. I realized that, this happens because of shell_exec opening
>>> a new shell on every command call, i tried the other exec functions,
>>> but the same happened. I wonder if it is posible to launch those
>>> commands in a silent manner.
>>>
>>>
>>> Thanks,
>>>
>>>
>>> Mariano.-
>>>
>>>
>>
>> There is a windows port of Subversion, and the GNU utilities you're
>> referring to have mostly been ported to Windows without the use of
>> cygwin (see gnuwin32). Do you really need to rely on cygwin?
>>
>> Regards, Adam Zey.
>>
>
>
>

attached mail follows:


At 1:11 AM -0700 8/31/06, Curt Zirzow wrote:
>so the question is does it pass local tests, which should be rather
>simple, the domain part gets rather complcated since you cant predict
>at what domain level we are talking about:
>
> locala.b.c.mydomain.com
> localx.org
> localx.co.uk
> localx.mydomain

The last email address is not valid because it has no TLD (top level
domain) -- that's probably just an omission error.

One thing to add to this topic is multilingual domains, which use
PUNYCODE. This is a technique that uses ASCII characters to represent
Unicode code points -- a mapping and look-up function.

For IE browsers and many email programs (in fear of homographic
attacks) do not translate multilingual domains properly. Instead,
multilingual domains will be shown with a "xn--" prefix, such as:

localxn--<whatever>.TLD

Like:

http://xn--ovg.com

This prefix is probably the last one to be used, but it was not the first.

PUNYCODE was never meant to be seen by the end user, but M$ had other
ideas -- if your native language is other than English, apparently M$
doesn't care. IMO, that's a giant step backwards for true global
access to the Internet, but I digress.

So, in any evaluation to determine valid email addresses, one should
also consider "xn--" appearing at the start of the domain name, such
as:

teddxn--ovg.com

hth's

tedd

PS: So Curt, what's your solution?
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com

attached mail follows:


I've been doing some research and was wondering if anyone out there has
written a library for error handling? I haven't found anything as of yet
but would love to hear suggestions!

Thanks!

attached mail follows:


Hi!, u can extend the exception class and handle ur own errors, If u need
help let me know!

Rafa

On 8/31/06, Jay Paulson <Jay.Paulsonwholefoods.com> wrote:
>
> I've been doing some research and was wondering if anyone out there has
> written a library for error handling? I haven't found anything as of yet
> but would love to hear suggestions!
>
> Thanks!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


On Thu, 2006-08-31 at 11:12 -0500, Jay Paulson wrote:
> I've been doing some research and was wondering if anyone out there has
> written a library for error handling? I haven't found anything as of yet
> but would love to hear suggestions!

PEAR

Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'

attached mail follows:


All,

I have just had some very pleasing success with Eaccelerator on windows.
  Has anyone else been trying this on windows. Has anyone had
production experience with this?

Thanks for any feedback. I have written up the work I have done so far
at http://nerds-central.blogspot.com/2006/08/eaccelerator-rocks.html

Cheers

AJ

--
www.deployview.com
www.nerds-central.com
www.project-network.com

attached mail follows:


Hello,

on 08/30/2006 06:48 AM Angelo Zanetti said the following:
>>> I have various PHP CRONTAB scripts that run and send automated emails to
>>> people, the subject often contains the "TM" character: ™, in most of the
>>> email clients the character shows correctly but in some webmail
>>> applications the character is replaced with a square, it obviously
>>> doesnt recognise the character. Now if I forward one the mails from the
>>> email client to the webmail account it then recognises and shows the
>>> character correctly? Very weird as it is the same mail just forwarded,
>>> is the problem that the mail forwarded from the email client uses a
>>> different content type when sent? The one specified in the PHP script is
>>> as follows:
>>>
>>> $mail->setHeader("Content-type", "text/plain; charset=iso-8859-1");
>>>
>>> Or is there something wrong with the charset that I'm specifying above?
>>>
>>
>> The content-type header only applies to that message body part. The
>> character set of the headers is defined in a different way using
>> q-encoding.
>>
>> Take a look at this class that lets you define headers with whatever
>> encoding and character set you need to use:
>>
>> http://www.phpclasses.org/mimemessage
>
> thanks for the reply, I've got the classes now how do I know which
> character set to use for the TM to be shown correctly?

I think chr(153). I can see it with iso-8859-1 but I am not sure if it
is a legal character for this character set. You can always specify
windows-1252 as character set to make sure it works.

--

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/