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 15 Jun 2004 07:44:26 -0000 Issue 2822

php-general-digest-helplists.php.net
Date: Tue Jun 15 2004 - 02:44:26 CDT


php-general Digest 15 Jun 2004 07:44:26 -0000 Issue 2822

Topics (messages 188266 through 188303):

Load 2 Frames (possibly OT)
        188266 by: Robert Sossomon
        188268 by: Torsten Roehr

Re: php and CSS
        188267 by: Robert Sossomon
        188271 by: Bruno Santos
        188274 by: Robert Sossomon

Re: [PHP5] Super constructor?
        188269 by: franciccio

Re: protecting your source code?
        188270 by: James Harrell
        188272 by: Edward Peloke
        188273 by: Adrian Teasdale
        188275 by: Manuel Lemos
        188290 by: FrzzMan

PHP en XML een vraag waard
        188276 by: De Saedeleer Yves
        188295 by: Dennis Seavers

Re: Function Date
        188277 by: Juan Pablo Herrera

PHP Online training - Recommendations??
        188278 by: Brian Anderson

Re: MapServer and PHP/MapScript
        188279 by: Lester Caine
        188281 by: René Fournier

Image Map
        188280 by: Juan Pablo Herrera

Eliminating all lowercase words
        188282 by: Andre Dubuc
        188286 by: Michal Migurski
        188288 by: aajdubuc.webhart.net

Re: session_start() warnings
        188283 by: franciccio

can't change upload_tmp_dir--not sure what's up
        188284 by: cory

Re: Cookie Security?
        188285 by: franciccio

Re: Combo problems.. Multi Array??
        188287 by: Michael Benbow

Re: PHP 4.3.7 update - how to
        188289 by: Curt Zirzow

Access Violation at 02B80AFD
        188291 by: Kathleen Ballard

Fw:
        188292 by: Sriranganath
        188293 by: Travis Low
        188299 by: Ulrik S. Kofod
        188301 by: Dennis Freise
        188303 by: Ulrik S. Kofod

Behaviour of get_class_methods() and get_class_vars()
        188294 by: FrzzMan

Re: small and big letter in WHERE statement
        188296 by: Ulrik S. Kofod

Re: Problem with Imagick
        188297 by: Decapode Azur

Regarding variable reference
        188298 by: balaji.ankem.wipro.com
        188302 by: Ulrik S. Kofod

Cookies
        188300 by: Umesh Deshmukh

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:


I need to load 2 frames from within PHP, I just don't know how to do it.

I have tried header calls, I've tried echoing out the javascript
command, but I need a way to load the pages at one time.

Layout:
        add
List
        see

You use list to add information, when things are added in add they call
another script to process the add. At the end of the add is when I need
see to be loaded.

I am pretty sure it is going to have to be a javascript, but even that I
haven't found the code for yet.

Any thoughts?

My current code is:
header("<script language=\"javascript\">parent.C.location.href =
\"show.html\";</script>");
header("<script language=\"javascript\">parent.B.location.href =
\"custn.html\";</script>");

Thanks,
Robert

attached mail follows:


"Robert Sossomon" <robertgcnorris.com> wrote in message
news:002c01c45248$0d229670$6601010aroot2...
> I need to load 2 frames from within PHP, I just don't know how to do it.
>
> I have tried header calls, I've tried echoing out the javascript
> command, but I need a way to load the pages at one time.
>
> Layout:
> add
> List
> see
>
> You use list to add information, when things are added in add they call
> another script to process the add. At the end of the add is when I need
> see to be loaded.
>
> I am pretty sure it is going to have to be a javascript, but even that I
> haven't found the code for yet.
>
> Any thoughts?
>
> My current code is:
> header("<script language=\"javascript\">parent.C.location.href =
> \"show.html\";</script>");
> header("<script language=\"javascript\">parent.B.location.href =
> \"custn.html\";</script>");

Just echo out your JS:
echo '<script language="javascript">parent.C.location.href =
"show.html";</script>';

Regards, Torsten Roehr

attached mail follows:


Bruno,

Drop some code our way, it's just a guessing game for me without it.

Robert

-----Original Message-----
From: Bruno Santos [mailto:brvdsnetvisao.pt]
Sent: Monday, June 14, 2004 3:28 PM
To: php-generallists.php.net
Subject: [PHP] php and CSS

Hello all.

Im deleloping some PHP pages for school work, and now, im trying to put
the pages nice, with some colors and images, etc...

I found a problem regarding CSS and PHP

The same page, with html extension, it works fine, but when the page
becames with php extension, the CSS just dont work..

Someone has any idea why this is happening ??

Cheers

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

attached mail follows:


Robert Sossomon wrote:
> Bruno,
>
> Drop some code our way, it's just a guessing game for me without it.
>
> Robert
>
> -----Original Message-----
> From: Bruno Santos [mailto:brvdsnetvisao.pt]
> Sent: Monday, June 14, 2004 3:28 PM
> To: php-generallists.php.net
> Subject: [PHP] php and CSS
>
>
> Hello all.
>
>
>
> Im deleloping some PHP pages for school work, and now, im trying to put
> the pages nice, with some colors and images, etc...
>
> I found a problem regarding CSS and PHP
>
> The same page, with html extension, it works fine, but when the page
> becames with php extension, the CSS just dont work..
>
> Someone has any idea why this is happening ??
>
>
> Cheers
>

Well, here is it:

<?php
        require ('funcoes.php');
        /*
                Página de Ajuda. Apartir desta pagina, acede-se a ajuda
                que e pedida pelo utilizador.
                Os ficheiros de ajuda estao numa pasta chamada help, e sao txt.
        */
?>
<html>
        <head><title>Ajuda</title>
                <LINK rel="StyleSheet" type="text/css" href="ajuda.css">
        </head>
<body>
<?php

        if (isset ($_GET['idhlp'])) {
                //abrir o ficheiro
                $fileName = HELP.'/'.$_GET['idhlp'].'.txt';
        
                $fp = fopen ($fileName,'r'); //abrir ficheiro de ajuda
                
                /*
                $contents = fread ($fp, filesize ($fileName));
                fclose ($fp); */
        
                //por questoes de seguranca, vamos retirar as tags html do ficheiro
                //$contents = strip_tags ($contents);
                //imprimir o html
                        
                $titulo = fgets ($fp,1024);
                echo '<table widht=100%>';
                echo '<tr>';
                        echo '<td class="titulo">'.$titulo.'</td>';
                echo '</tr>';
                echo '<tr><td>';
                while (!feof($fp)) {
                        $buffer = fgets ($fp,1024);
                        echo $buffer;
                }
                echo '</td></tr>';
                echo '<tr><td><input type="button" value="fechar"
onclick="window.close()">';
                echo '</table>';
        }
        else {
            Header("Location: index.php");
        }
        echo '</body></html>';
?>

has some coments in Portuguese, but, the essential is the first lines.
I've always done this way, and always has work... till now... =:(

Cheers

attached mail follows:


-----Original Message-----
From: Bruno Santos [mailto:brvdsnetvisao.pt]
Sent: Monday, June 14, 2004 4:04 PM
To: Robert Sossomon
Cc: php-generallists.php.net
Subject: Re: [PHP] php and CSS

Robert Sossomon wrote:
> Bruno,
>
> Drop some code our way, it's just a guessing game for me without it.
>
> Robert
>
> -----Original Message-----
> From: Bruno Santos [mailto:brvdsnetvisao.pt]
> Sent: Monday, June 14, 2004 3:28 PM
> To: php-generallists.php.net
> Subject: [PHP] php and CSS
>
>
> Hello all.
>
>
>
> Im deleloping some PHP pages for school work, and now, im trying to
> put
> the pages nice, with some colors and images, etc...
>
> I found a problem regarding CSS and PHP
>
> The same page, with html extension, it works fine, but when the page
> becames with php extension, the CSS just dont work..
>
> Someone has any idea why this is happening ??
>
>
> Cheers
>

Well, here is it:

<?php
        require ('funcoes.php');
        /*
                Página de Ajuda. Apartir desta pagina, acede-se a ajuda
                que e pedida pelo utilizador.
                Os ficheiros de ajuda estao numa pasta chamada help, e
sao txt.
        */
?>
<html>
        <head><title>Ajuda</title>
                <LINK rel="StyleSheet" type="text/css" href="ajuda.css">
        </head>
<body>
<?php

        if (isset ($_GET['idhlp'])) {
                //abrir o ficheiro
                $fileName = HELP.'/'.$_GET['idhlp'].'.txt';
        
                $fp = fopen ($fileName,'r'); //abrir ficheiro de ajuda
                
                /*
                $contents = fread ($fp, filesize ($fileName));
                fclose ($fp); */
        
                //por questoes de seguranca, vamos retirar as tags html
do ficheiro
                //$contents = strip_tags ($contents);
                //imprimir o html
                        
                $titulo = fgets ($fp,1024);
                echo '<table widht=100%>';
                echo '<tr>';
                        echo '<td class="titulo">'.$titulo.'</td>';
                echo '</tr>';
                echo '<tr><td>';
                while (!feof($fp)) {
                        $buffer = fgets ($fp,1024);
                        echo $buffer;
                }
                echo '</td></tr>';
                echo '<tr><td><input type="button" value="fechar"
onclick="window.close()">';
                echo '</table>';
        }
        else {
            Header("Location: index.php");
        }
        echo '</body></html>';
?>

has some coments in Portuguese, but, the essential is the first lines.
I've always done this way, and always has work... till now... =:(

Cheers

attached mail follows:


ok thanks

"Justin Patrin" <papercranereversefold.com> ha scritto nel messaggio
news:20040614191651.65739.qmailpb1.pair.com...
> Franciccio wrote:
>
> > If i'm not wrong php has only 1 level of depth for child class. That
means
> > you can only extends from 1 level up the class.
> > In your example you have the class OneMore that extends down from the
> > "grandfather" Base. It is not a problem in C++ but should not work in
php or
> > either javascript.
> >
> > Am i wrong?
>
> Yes, you are. You can extend as much as you want. If you couldn't, it
> wouldn't be very useful.
>
> >
> > Franciccio
> >
> >
> > "Frzzman" <FrzzManvnOCzone.com> ha scritto nel messaggio
> > news:20040613063640.21005.qmailpb1.pair.com...
> >
> >>Hi guys, hey don't laugh at the subject, in fact I don't what to call
> >>it, so let's call it super constructor :D
> >>
> >>Let's see following code...
> >>
> >>class Base
> >>{
> >>__construct()
> >>{
> >>// Do something
> >>}
> >>}
> >>
> >>class One extends Base
> >>{
> >>__construct()
> >>{
> >>// Do nothing
> >>}
> >>}
> >>
> >>class OneMore extends One
> >>{
> >>__construct()
> >>{
> >>// Do things :D
> >>}
> >>}
> >>
> >>So when I create an instance of OneMore class by:
> >>
> >>$OneMoreInstance = new OneMore()
> >>
> >>The __construct() method of class OneMore will be called, not the one of
> >>One and Base, right?
> >>
> >>So is there any way around to make the Base class have a contructor that
> >>will be called everytime one of its child initialize?
> >>
> >>My problem, I want all of the classes in my object are extend from one
> >>base class, so they are all have some common properties and function,
> >>but PHP won't implicit call the contructor (that's the right way)...
> >>btw, in my case, this is bad, as bad as every constructor would be
> >
> > called...
> >
> >>Well, hope you understand what I'm trying to say...
>
>
> --
> paperCrane <Justin Patrin>

attached mail follows:


Hi Edward,

Check out the Zend Encoder: www.zend.com
To run encoded/compiled programs, the server will need the (free)
Zend Optimizer, available for download at the same location.

Zend has a small-business program that if your yearly revenues are
less than some magic number, you get a major discount on the Zend
Suite which includes the encoder and the development environment.

The Zend Development Environment is fantastic- includes a debugger
and profiler, code completion, etc. After 10+ years as a vi-guy, I
actually made the switch recently. :)

James

>-----Original Message-----
>From: Edward Peloke [mailto:epelokeechoman.com]
>Sent: Monday, June 14, 2004 3:50 PM
>To: Php-General
>Subject: [PHP] protecting your source code?
>
>
>I wrote a bunch of code that will be used for a local site. I usually do
>all my hosting with a friend who I trust...the new site will be hosted by
>another company in town (not my choosing) who I don't necessarily trust to
>not copy the code and reuse it for other sites. How can I protect the code?
>I know there are some encoders but I have never used them.
>
>Thanks,
>Eddie
>
> WARNING: The information contained in this message and any attachments is
>intended only for the use of the individual or entity to which it is
>addressed. This message may contain information that is privileged,
>confidential and exempt from disclosure under applicable law. It may also
>contain trade secrets and other proprietary information for which you and
>your employer may be held liable for disclosing. You are hereby notified
>that any unauthorized dissemination, distribution or copying of this
>communication is strictly prohibited. If you have received this
>communication in error, please notify HIPAAechoman.com by E-Mail and then
>destroy this communication in a manner appropriate for privileged
>information.
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


Thanks James,

I have played with the Zend IDE a little...but will take a look. On a
simpler scale, I usually have one main directory which then holds the
subdirectories for classes, header, etc. then use includes to pull in
header, classes, etc. I tried to call my classes from an external folder
but can instantiate them..why? I seem to be able to pull them in...example

include_once("http://www.peloke.com/myfolder/src/classes/classname.class.php
");

but when I try to instantiate it, get an error that I can't

$classname=new Classname();

Why?

Thanks,
Eddie

-----Original Message-----
From: James Harrell [mailto:jharrellcopernicusllc.com]
Sent: Monday, June 14, 2004 3:55 PM
To: Edward Peloke; Php-General
Subject: RE: [PHP] protecting your source code?

Hi Edward,

Check out the Zend Encoder: www.zend.com
To run encoded/compiled programs, the server will need the (free)
Zend Optimizer, available for download at the same location.

Zend has a small-business program that if your yearly revenues are
less than some magic number, you get a major discount on the Zend
Suite which includes the encoder and the development environment.

The Zend Development Environment is fantastic- includes a debugger
and profiler, code completion, etc. After 10+ years as a vi-guy, I
actually made the switch recently. :)

James

>-----Original Message-----
>From: Edward Peloke [mailto:epelokeechoman.com]
>Sent: Monday, June 14, 2004 3:50 PM
>To: Php-General
>Subject: [PHP] protecting your source code?
>
>
>I wrote a bunch of code that will be used for a local site. I usually do
>all my hosting with a friend who I trust...the new site will be hosted by
>another company in town (not my choosing) who I don't necessarily trust to
>not copy the code and reuse it for other sites. How can I protect the
code?
>I know there are some encoders but I have never used them.
>
>Thanks,
>Eddie
>
> WARNING: The information contained in this message and any attachments is
>intended only for the use of the individual or entity to which it is
>addressed. This message may contain information that is privileged,
>confidential and exempt from disclosure under applicable law. It may also
>contain trade secrets and other proprietary information for which you and
>your employer may be held liable for disclosing. You are hereby notified
>that any unauthorized dissemination, distribution or copying of this
>communication is strictly prohibited. If you have received this
>communication in error, please notify HIPAAechoman.com by E-Mail and then
>destroy this communication in a manner appropriate for privileged
>information.
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

attached mail follows:


Check out:

Zend encoder www.zend.com
SourceGuardian www.sourceguardian.com
IonCube www.ioncube.com

attached mail follows:


Hello,

On 06/14/2004 04:49 PM, Edward Peloke wrote:
> I wrote a bunch of code that will be used for a local site. I usually do
> all my hosting with a friend who I trust...the new site will be hosted by
> another company in town (not my choosing) who I don't necessarily trust to
> not copy the code and reuse it for other sites. How can I protect the code?
> I know there are some encoders but I have never used them.

There are some commercial encoder solutions and some open source like Turck:

http://turck-mmcache.sourceforge.net/

But these are not real PHP compilers. The only real PHP compiler that I
know is RoadSend:

http://www.roadsend.com/

--

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

attached mail follows:


Surely you can't include files that way, that php file will be process
and you will end up include its result. Try include using file system
path instead, it will work...

About your question about source code protecting, try Turck MMCache,
it's a optimizer (the best I known) plus it have encode ability...
finally, it's free :P~

Edward Peloke wrote:
> Thanks James,
>
> I have played with the Zend IDE a little...but will take a look. On a
> simpler scale, I usually have one main directory which then holds the
> subdirectories for classes, header, etc. then use includes to pull in
> header, classes, etc. I tried to call my classes from an external folder
> but can instantiate them..why? I seem to be able to pull them in...example
>
> include_once("http://www.peloke.com/myfolder/src/classes/classname.class.php
> ");
>
> but when I try to instantiate it, get an error that I can't
>
> $classname=new Classname();
>
> Why?
>
> Thanks,
> Eddie
>
>
>
> -----Original Message-----
> From: James Harrell [mailto:jharrellcopernicusllc.com]
> Sent: Monday, June 14, 2004 3:55 PM
> To: Edward Peloke; Php-General
> Subject: RE: [PHP] protecting your source code?
>
>
> Hi Edward,
>
> Check out the Zend Encoder: www.zend.com
> To run encoded/compiled programs, the server will need the (free)
> Zend Optimizer, available for download at the same location.
>
> Zend has a small-business program that if your yearly revenues are
> less than some magic number, you get a major discount on the Zend
> Suite which includes the encoder and the development environment.
>
> The Zend Development Environment is fantastic- includes a debugger
> and profiler, code completion, etc. After 10+ years as a vi-guy, I
> actually made the switch recently. :)
>
> James
>
>
>>-----Original Message-----
>>From: Edward Peloke [mailto:epelokeechoman.com]
>>Sent: Monday, June 14, 2004 3:50 PM
>>To: Php-General
>>Subject: [PHP] protecting your source code?
>>
>>
>>I wrote a bunch of code that will be used for a local site. I usually do
>>all my hosting with a friend who I trust...the new site will be hosted by
>>another company in town (not my choosing) who I don't necessarily trust to
>>not copy the code and reuse it for other sites. How can I protect the
>
> code?
>
>>I know there are some encoders but I have never used them.
>>
>>Thanks,
>>Eddie
>>
>>WARNING: The information contained in this message and any attachments is
>>intended only for the use of the individual or entity to which it is
>>addressed. This message may contain information that is privileged,
>>confidential and exempt from disclosure under applicable law. It may also
>>contain trade secrets and other proprietary information for which you and
>>your employer may be held liable for disclosing. You are hereby notified
>>that any unauthorized dissemination, distribution or copying of this
>>communication is strictly prohibited. If you have received this
>>communication in error, please notify HIPAAechoman.com by E-Mail and then
>>destroy this communication in a manner appropriate for privileged
>>information.
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

attached mail follows:


Gegroet,
Hoi

Ik ben reeds een tijdje bezig met PHP en hier en daar lukt er al eens iets
:=))

 Maar nu stuit ik toch op een probleempje.
 Ik moet voor een siteje XML data gaan parsen die bekomen wordt uit een URL.

 Als ik deze URL in een browser invoer dan krijg ik XML code terug.

 Mijn vraag is nu:
 Welke code moet ik gaan in voeren (instuderen) om de aldus bekomen gevens
om
 te zetten in bruikbare data voor het gebruyik in PHP.

 ik voer in de browser het volgende in:
 http://www.websiote.com/xml/xmlonl.asp?custid=CustID&prodid=ProdID

 en dan krijg ik iets in de zin van de data hieronder terug:

   <?xml version="1.0" ?>
 - <RealData>
   <MSG ID="0">ok</MSG>
 - <ITEM>
   <ID>876607</ID>
   <DESC>Antec Aluminium Midi Tower 4x5,25" 2x3,5" USB &amp; IEEE1394 &amp;
 audio 2x120mm fan NO PSU</DESC>
   <PRICE CURRENCY="EUR">103,3</PRICE>
   <QTY>32</QTY>
   <DELDATE>15062004</DELDATE>
   </ITEM>
   </RealData>

 wat ik hieruit nodig heb zijn de volgende gegevens:
 het veld "QTY", "PRICE CURRENCY" en het veld "DELDATE"

 ik heb totaal geen ervaring met de combinatie PHP en XML.
 Alle hulp is meer dan welkom.

 Yves,

attached mail follows:


42.

> [Original Message]
> From: De Saedeleer Yves <ydspandora.be>
> To: <php-generallists.php.net>
> Date: 06/14/2004 1:28:28 PM
> Subject: [PHP] PHP en XML een vraag waard
>
> Gegroet,
> Hoi
>
> Ik ben reeds een tijdje bezig met PHP en hier en daar lukt er al eens iets
> :=))
>
> Maar nu stuit ik toch op een probleempje.
> Ik moet voor een siteje XML data gaan parsen die bekomen wordt uit een
URL.
>
> Als ik deze URL in een browser invoer dan krijg ik XML code terug.
>
> Mijn vraag is nu:
> Welke code moet ik gaan in voeren (instuderen) om de aldus bekomen gevens
> om
> te zetten in bruikbare data voor het gebruyik in PHP.
>
> ik voer in de browser het volgende in:
> http://www.websiote.com/xml/xmlonl.asp?custid=CustID&prodid=ProdID
>
> en dan krijg ik iets in de zin van de data hieronder terug:
>
> <?xml version="1.0" ?>
> - <RealData>
> <MSG ID="0">ok</MSG>
> - <ITEM>
> <ID>876607</ID>
> <DESC>Antec Aluminium Midi Tower 4x5,25" 2x3,5" USB &amp; IEEE1394
&amp;
> audio 2x120mm fan NO PSU</DESC>
> <PRICE CURRENCY="EUR">103,3</PRICE>
> <QTY>32</QTY>
> <DELDATE>15062004</DELDATE>
> </ITEM>
> </RealData>
>
> wat ik hieruit nodig heb zijn de volgende gegevens:
> het veld "QTY", "PRICE CURRENCY" en het veld "DELDATE"
>
> ik heb totaal geen ervaring met de combinatie PHP en XML.
> Alle hulp is meer dan welkom.
>
>
> Yves,
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

attached mail follows:


Yes!
That's right!
Thank you

Juan

> Hello Juan,
>
> Monday, June 14, 2004, 6:04:56 PM, you wrote:
>
> JPH> I am using date("j M Y"), the format date is 14 Jun 2004, but i
> need this JPH> format 14 JUN 2004. The unique difference is Jun -> JUN.
> How can i change JPH> this?.
>
> $date = strtoupper(date('j M Y'));
>
> :)
>
> Best regards,
>
> Richard Davey
> --
> http://www.launchcode.co.uk - PHP Development Services
> "I am not young enough to know everything." - Oscar Wilde

attached mail follows:


Hello,

Anyone have any recommended(reputable) resources for online PHP
training/certification? I would like good training but a certificate and
course documentation of would be good too.

Thank you,

-Brian Anderson

attached mail follows:


René fournier wrote:

> Anybody have any experience (good or bad) with MapServer?
> (http://mapserver.gis.umn.edu/)
>
> And if so, can you comment on how good or bad PHP/MapScript is?
> (http://mapserver.gis.umn.edu/doc42/phpmapscript-class-guide.html)

I have it running - but I haven't worked out how to make my own map yet :)

--
Lester Caine
-----------------------------
L.S.Caine Electronic Services

attached mail follows:


Can I ask, what platform/OS you are running it on? I am looking to
build it for OSX 10.3...

...Rene

On Monday, June 14, 2004, at 03:16 PM, Lester Caine wrote:

> René fournier wrote:
>
>> Anybody have any experience (good or bad) with MapServer?
>> (http://mapserver.gis.umn.edu/)
>> And if so, can you comment on how good or bad PHP/MapScript is?
>> (http://mapserver.gis.umn.edu/doc42/phpmapscript-class-guide.html)
>
> I have it running - but I haven't worked out how to make my own map
> yet :)
>
> --
> Lester Caine
> -----------------------------
> L.S.Caine Electronic Services
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>

attached mail follows:


Hi!
How can i make an image map with image function php?
My idea is make a similar concept to
http://www.infobae.com/ediciondigital/paginas.php
Thank you!

Juan

attached mail follows:


Hi folks!

I need a function that will examine input for lowercase words. In the
processing of that input, I would like to eliminate them (so as to keep all
uppercase words).

I prototyped a reasonable function using the 'Find: using regex feature' in
KWrite, so it works there.

$search "(([^\bA-Z][a-z]\b*?)*?));
$replace = "";
$add = preg_replace($search, $replace, $add);

hWhen I tried it, it eliminated all lowercase words, and in the case of the
single upper case word, 'Bellingham', it retained only the capital 'B' --
arrgh!

Is there access to the internals of ucase function so I can find out how to do
this, or is there any easier way?

Any ideas, suggestions, and even admonitions would be very welcome!

Tia,
Andre

attached mail follows:


> $search "(([^\bA-Z][a-z]\b*?)*?));
> $replace = "";
> $add = preg_replace($search, $replace, $add);
>
> hWhen I tried it, it eliminated all lowercase words, and in the case of the
> single upper case word, 'Bellingham', it retained only the capital 'B' --
> arrgh!

You could just look for lowercase words, instead of "not-uppercase" words,
like so:
        /\b[a-z]\w+\b/

---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca http://mike.teczno.com/contact.html

attached mail follows:


Thanks Michal,

That's what I thought at first, but it eliminates all lowercase letters in a
capitalized word as well.

I plugged away at it and got it to work:

$search = "(\b[a-z][a-z]*?\b)";
$replace = "";
$add = preg_replace($search, $replace, $add);

Thanks for the help!
Andre

On Monday 14 June 2004 06:41 pm, Michal Migurski wrote:
> > $search "(([^\bA-Z][a-z]\b*?)*?));
> > $replace = "";
> > $add = preg_replace($search, $replace, $add);
> >
> > hWhen I tried it, it eliminated all lowercase words, and in the case of
> > the single upper case word, 'Bellingham', it retained only the capital
> > 'B' -- arrgh!
>
> You could just look for lowercase words, instead of "not-uppercase" words,
> like so:
> /\b[a-z]\w+\b/
>
> ---------------------------------------------------------------------
> michal migurski- contact info and pgp key:
> sf/ca http://mike.teczno.com/contact.html

attached mail follows:


Always call the function on the first line of your page.

Bye

"Paoage" <taiwannowherenetscape.net> ha scritto nel messaggio
news:20040613033235.12184.qmailpb1.pair.com...
> Larry E . Ullman wrote:
> >> When I use session_start function, I receive the following warning
> >> messages:
> >>
> >> Warning: session_start(): Cannot send session cookie - headers already
> >> sent by (output started at
> >> /home/w4t3c101/public_html/ListClientInfo.php:2) in
> >> /home/w4t3c101/public_html/SessionControl.php on line 9
> >> Warning: session_start(): Cannot send session cache limiter - headers
> >> already sent (output started at
> >> /home/w4t3c101/public_html/ListClientInfo.php:2) in
> >> /home/w4t3c101/public_html/SessionControl.php on line 9
> >>
> >> Can anyone explain why it happens and how to solve the warnings.
> >> Thanks :)
> >
> >
> > Something on or about line 2 of ListClientInfo.php is sending data to
> > the Web browser. This could be HTML, plain text, or blank spaces. Get
> > rid of that and you'll get rid of the warnings.
> >
> > Larry
>
>
> Thanks, I got it. I leave a line of space before I use include directive.

attached mail follows:


I am having some serious troubles uploading files to my server. The ISP
cannot provide me with the tmp directory where files are stored so I am
trying to change that directory to a specified one. I am editing the
php.ini file to read as follows:

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if
not
; specified).
upload_tmp_dir = ./var/www/html/tmp/

; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

alas, when i upload a file, nothing arrives in the specified folder. All
permissions are set to full access.

below is the php code:

<HTML>
<HEAD>
<TITLE>Handling File Uploads</TITLE>
</HEAD>
<BODY>
<?php
/* This next conditional determines whether or not to handle the form,
depending upon whether or not $File exists. */
if ($File) {
  print ("File name: $File_name<P>\n");
  print ("File size: $File_size<P>\n");
  if (copy ($File, "users/$File_name")) {
   print ("Your file was successfully uploaded!<P>\n");
  } else {
   print ("Your file could not be copied.<P>\n");
  }
  unlink ($File);
}

print ("Upload a file to the server:\n");
print ("<FORM ACTION=\"FileUpload.php\" METHOD=POST
ENCTYPE=\"multipart/form-data\">\n");
print ("File <INPUT TYPE=FILE NAME=\"File\" SIZE=20><BR>\n");
print ("<INPUT TYPE=SUBMIT NAME=\"SUBMIT\" VALUE=\"Submit!\"></FORM>\n");
?>
</BODY>
</HTML>

any help would be immensely appreciated

Thanks in advance

attached mail follows:


I would suggest (haven't tried to write code in details) to associate a
random number in a variable each time you send a cookie (for new cookies
anyway) and store the key (randomvariable<->cookie) ina database. You should
be able to verify the user at next connection verifying the matching key.

"Michal Migurski" <miketeczno.com> ha scritto nel messaggio
news:Pine.BSF.4.58.0406141437440.21992or.pair.com...
> > [snip}
> > > As well as much harder for AOL subscribers (whose IP's change
per-request)
> > > to use the site.
> > [snip]
> >
> > WHAT?? Are you sure of this? AOL really breaks internet browsing this
> > much? Sorry, I can't believe this. If this was true, many things would
> > break.
>
> Not really -- HTTP is stateless, so there's really no reason for each
> request to come from the same IP. As other posters in this thread have
> pointed out, AOL uses an army of proxy servers. In the past, they've even
> cached and re-compressed images for the benefit of those on slow dialup.
>
> As you say, wacky stuff.
>
> You're on the right track, though - the way to make cookies tougher to
> crack is to associate the cookie with some other piece of user
> information. I've toyed with using an encrypted string based on the user
> agent as part of the cookie, but have never encountered a project where
> this level of care was called-for while SSL was not.
>
> ---------------------------------------------------------------------
> michal migurski- contact info and pgp key:
> sf/ca http://mike.teczno.com/contact.html

attached mail follows:


Thanks Mike,

I have read up a lot on permutation but I'm not completely sure that
this will solve my problem. From what I can gather permutation takes a
sample (i.e. ABC) and tells you how many different ways it can arrange
the letters, with order mattering. What I need to do is take a variable
number of groups (in my example, 3) and then display the combinations of
ways that my sample (in my example, 2) can be spread across the groups.

I had a go at permutation based on your advice and while I was able to
successfully find all the different combinations of ABC it did not help
me in my need of dispersing the sample amongst the available groups.
After I have my combinations I then need to process the data.

The example again is as follows..

A [1][2] B C
A B [1][2] C
A B C [1][2]
A [1] B [2] C
A B [1] C [2]
A [1] B C [2]
A [2] B [1] C
A [2] C C [1]
A B [2] C [1]

Think of the letters as being static amongst all possible combinations, and the numbers as the piece of data which is varying. In my actual code both fields are integers but this isn't really important here.

Does anyone have any idea how I can do the above?

Thanks so much,
Michael.

Ford, Mike [LSS] wrote:

>
>
>>-----Original Message-----
>>From: Michael Benbow [mailto:Michael.BenbowCeLTS.monash.edu.au]
>>Sent: 14 June 2004 08:31
>>To: php-generallists.php.net
>>Subject: [PHP] Combo problems.. Multi Array??
>>
>>
>>Hi,
>>
>>I've got a problem which has left me scratching my head for
>>the better
>>part of a week.
>>
>>
>
>[...]
>
>
>
>>The outcome, if working properly, should be...
>>
>>A [1][2] B C
>>A B [1][2] C
>>A B C [1][2]
>>A [1] B [2] C
>>A B [1] C [2]
>>A [1] B C [2]
>>A [2] B [1] C
>>A [2] C C [1]
>>A B [2] C [1]
>>
>>Does anyone have any ideas on how I could do this? As I said I'm
>>completely stumped.
>>
>>
>
>This is called a permutation. Googling for "permutation formula" brings up
>any number of good links; the most succinct is probably
>http://www.mathwords.com/p/permutation_formula.htm, but most of the other
>top 10 links will give you the same answer with a bit (or a lot!) more
>explanation.
>
>Cheers!
>
>Mike
>
>---------------------------------------------------------------------
>Mike Ford, Electronic Information Services Adviser,
>Learning Support Services, Learning & Information Services, JG125, James
>Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS,
>LS6 3QS, United Kingdom
>Email: m.fordleedsmet.ac.uk
>Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
>
>

--

IT Co-ordinator
Centre for Learning and Teaching Support
Monash University

http://www.celts.monash.edu.au

attached mail follows:


* Thus wrote Alan McDonald (alanmeta.com.au):
> > > I've downloaded the 4.3.7 tar ball and extractted it. I've run configure
> > > (after deleting the cache), no errors. I've run make - no errors, I've
> then
> > > run make install.. no errors, it says it's updating and installing.
> > > Now I've restarted my httpd service - I've even rebooted but I'm left
> with
> > > phpinfo telling me that version 4.2.2 is running.
> > > I'm in RH9 and I have no idea why it doesn't install properly..
> > > Can someone shed some light on this?
> >
> > Not sure if it's relevant, but does httpd.conf point to the new version?
> > It's all I have to tweak in Windows.
> >
> > --
> > Lester Caine
>
> I must be missing something critical here... I was thinking that the make
> install would overwrite the PHP executables but it obviously doesn't ..
> Now where in the conf file does the PHP module get mentioned? I;ve searched
> it with no mention of PHP!

take a look at the configure line in the output of your phpinfo()
(the third entry in the list) script. Notice the gazillion
configure options? There are some options in there that cause a
special installation of php.

But you're basically right, php's installation usually finds the
correct place to put its self, mostly because apaches apxs script
tell it where to put the library. From my experience RH seems to
try its hardest to keep you from compiling your own source code.

Conclusion:

RPM's to source upgrade doesn't work very well. But I think you've
already have seen that :)

Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!

attached mail follows:


I am developing a php app on a win 2003 server with
iis6. Unfortunately, I don't know the version of sql
server or php.

I have been testing code since last Thursday and just
started getting this error:

PHP has encountered an Access Violation at 02B80AFD

This error doesn't happen every time, even if you are
just hitting refresh on the same page. It interferes
with redirects and all update and insert queries fail
(failure to connect) while the select queries run fine
(access violation or not). The access violation is
always at the same address(??) as far as I can tell.

The client's server support thinks it is a permissions
issue of some kind but doesn't know how to fix it.

The access violation occurs now if I try to run
phpinfo()--which is why I don't have the version.

Php is not running as a cgi.

I would really appreciate any ideas.

Kathleen

attached mail follows:


----- Original Message -----
From: Sriranganath
To: php-generallists.php.net
Sent: Tuesday, June 15, 2004 9:50 AM

Dear Sir,
I am finding difficulty in inserting a record into a MySQL DB through PHP inpsite of all the privileges given to that database . Can u plz clarify it?
 
Plz let me know what are all the processes that i have to start or include ..;;; in my files:

 
Plz go through my code: and associated erors messages :
 
<?php
if (isset($_POST['submit'])) {
$conn = mysql_connect("localhost:3308","user","password");
mysql_select_db("database");
$query = "insert into branch (sol_id,sol_desc,ip_address,email_id) values ('".$_POST['solid']."', '".$_POST['brname']."', '".$_POST['ipadd']."', '".$_POST['email']."')";
if (mysql_query($query))
echo 'Success';
   else
      echo 'Failed';
}
else {
?>
<center>
<form method="post" action="<?=$_SERVER['PHP_SELF'] ?>">
Sol-ID <input type="text" name="solid"><br>
Branch Name <input type="text" name="brname"><br>
IP-Address <input type="text" name="ipadd"><br>
E-Mail <input type="text" name="email"><br>
<input type="submit" name="submit" value="submit">
</form></center>
<? }
 ?>

after submitting the inputs; it is giving the following errors:

username is the finfaq and database name is also finfaq
password and username when i give directly to mysql, it is accepting.

Warning: Access denied for user: 'finfaqlocalhost' (Using password: YES) in /var/www/html/whatnew/a.php on line 3

Warning: MySQL Connection Failed: Access denied for user: 'finfaqlocalhost' (Using password: YES) in /var/www/html/whatnew/a.php on line 3
Failed

When i try to insert directly into the table, it is allowing:.

regards
Sriranganath

attached mail follows:


$conn = mysql_connect("localhost:3308","user","password");

You are connecting as user "user" with password "password" in the code, yet the
error message references "finfaqlocalhost" so I'm pretty confused.

cheers,

Travis

Sriranganath wrote:
> ----- Original Message -----
> From: Sriranganath
> To: php-generallists.php.net
> Sent: Tuesday, June 15, 2004 9:50 AM
>
>
> Dear Sir,
> I am finding difficulty in inserting a record into a MySQL DB through PHP inpsite of all the privileges given to that database . Can u plz clarify it?
>
> Plz let me know what are all the processes that i have to start or include ..;;; in my files:
>
>
>
> Plz go through my code: and associated erors messages :
>
> <?php
> if (isset($_POST['submit'])) {
> $conn = mysql_connect("localhost:3308","user","password");
> mysql_select_db("database");
> $query = "insert into branch (sol_id,sol_desc,ip_address,email_id) values ('".$_POST['solid']."', '".$_POST['brname']."', '".$_POST['ipadd']."', '".$_POST['email']."')";
> if (mysql_query($query))
> echo 'Success';
> else
> echo 'Failed';
> }
> else {
> ?>
> <center>
> <form method="post" action="<?=$_SERVER['PHP_SELF'] ?>">
> Sol-ID <input type="text" name="solid"><br>
> Branch Name <input type="text" name="brname"><br>
> IP-Address <input type="text" name="ipadd"><br>
> E-Mail <input type="text" name="email"><br>
> <input type="submit" name="submit" value="submit">
> </form></center>
> <? }
> ?>
>
> after submitting the inputs; it is giving the following errors:
>
> username is the finfaq and database name is also finfaq
> password and username when i give directly to mysql, it is accepting.
>
>
>
> Warning: Access denied for user: 'finfaqlocalhost' (Using password: YES) in /var/www/html/whatnew/a.php on line 3
>
> Warning: MySQL Connection Failed: Access denied for user: 'finfaqlocalhost' (Using password: YES) in /var/www/html/whatnew/a.php on line 3
> Failed
>
> When i try to insert directly into the table, it is allowing:.
>
> regards
> Sriranganath
>
>

--
Travis Low
<mailto:travisdawnstar.com>
<http://www.dawnstar.com>

attached mail follows:


I'm not sure but I think that it is because you give the port number :3308 in the
connect.

the connection is not established the same way as when you just give just
"localhost" and mysql might not see "user" the same way.

I think it will work if you grant access to 'user%' or 'user<hostname>'

But with the info given this is just a guess.

Travis Low sagde:
> $conn = mysql_connect("localhost:3308","user","password");
>
> You are connecting as user "user" with password "password" in the code, yet the
> error message references "finfaqlocalhost" so I'm pretty confused.
>
> cheers,
>
> Travis
>
> Sriranganath wrote:
>> ----- Original Message -----
>> From: Sriranganath
>> To: php-generallists.php.net
>> Sent: Tuesday, June 15, 2004 9:50 AM
>>
>>
>> Dear Sir,
>> I am finding difficulty in inserting a record into a MySQL DB through PHP inpsite
>> of all the privileges given to that database . Can u plz clarify it?
>>
>> Plz let me know what are all the processes that i have to start or include ..;;;
>> in my files:
>>
>>
>>
>> Plz go through my code: and associated erors messages :
>>
>> <?php
>> if (isset($_POST['submit'])) {
>> $conn = mysql_connect("localhost:3308","user","password");
>> mysql_select_db("database");
>> $query = "insert into branch (sol_id,sol_desc,ip_address,email_id) values
>> ('".$_POST['solid']."', '".$_POST['brname']."', '".$_POST['ipadd']."',
>> '".$_POST['email']."')";
>> if (mysql_query($query))
>> echo 'Success';
>> else
>> echo 'Failed';
>> }
>> else {
>> ?>
>> <center>
>> <form method="post" action="<?=$_SERVER['PHP_SELF'] ?>">
>> Sol-ID <input type="text" name="solid"><br>
>> Branch Name <input type="text" name="brname"><br>
>> IP-Address <input type="text" name="ipadd"><br>
>> E-Mail <input type="text" name="email"><br>
>> <input type="submit" name="submit" value="submit">
>> </form></center>
>> <? }
>> ?>
>>
>> after submitting the inputs; it is giving the following errors:
>>
>> username is the finfaq and database name is also finfaq
>> password and username when i give directly to mysql, it is accepting.
>>
>>
>>
>> Warning: Access denied for user: 'finfaqlocalhost' (Using password: YES) in
>> /var/www/html/whatnew/a.php on line 3
>>
>> Warning: MySQL Connection Failed: Access denied for user: 'finfaqlocalhost'
>> (Using password: YES) in /var/www/html/whatnew/a.php on line 3
>> Failed
>>
>> When i try to insert directly into the table, it is allowing:.
>>
>> regards
>> Sriranganath
>>
>>
>
> --
> Travis Low
> <mailto:travisdawnstar.com>
> <http://www.dawnstar.com>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

attached mail follows:


On Tue, 15 Jun 2004 10:24:45 +0530
"Sriranganath" <sriranganathktkbank.com> wrote:

> $conn = mysql_connect("localhost:3308","user","password");
> Warning: Access denied for user: 'finfaqlocalhost' (Using password: YES) in
> /var/www/html/whatnew/a.php on line 3

Maybe that's because the standard MySQL port is 3306 - not 3308 ;-)

--
Dennis Freise <catfinal-frontier.ath.cx>
GnuPG key: 2DE8 CCEF 6E20 11D4 3B27 21EC B0BA 1749 D2C8 38ED
Available at: http://www.final-frontier.ath.cx/?key-plain

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFAzqQtsLoXSdLIOO0RAqJ1AJ9Zlf325FNAKdHmuDPJgZk6v/OFdQCfZPpV
F9AnPG9XOA1pk8URjn8z7X0=
=nuDg
-----END PGP SIGNATURE-----

attached mail follows:


Dennis Freise sagde:
> On Tue, 15 Jun 2004 10:24:45 +0530
> "Sriranganath" <sriranganathktkbank.com> wrote:
>
>> $conn = mysql_connect("localhost:3308","user","password");
>> Warning: Access denied for user: 'finfaqlocalhost' (Using password: YES) in
>> /var/www/html/whatnew/a.php on line 3
>
> Maybe that's because the standard MySQL port is 3306 - not 3308 ;-)
>

I just tested this on my own mysql and it looks like :3308 is ignored.
My MySQL is not listening on 3308, but it connected just fine.
I guess because when you give localhost, you connect to mysql via scoket and not via
tcp/ip.

attached mail follows:


This copy directly from my bug report, someone here do you know any way
around for this problem.

------------------------------------------
Description:
------------
When get_class_vars() return every properties of the class, private and
protected members are mark with [Class Name] and * before its name, well
it better being mark with + or - or # (like UML standard).

Also, this function shouldn't return value of the property as private
and protected can only be expose in the scope that have access
permission.

Next, get_class_methods() also return every methods the class have,
without any marking method?!?! What's the point doing that if I can't
figure out if I can access the class's method or not.

I suggest these two function should return all attributes and methods
with its access marking.

And another function, maybe get_class_vars_value() to expose default
value of attributes in the class, this function should return value of
accessible attribute, too.

Reproduce code:
---------------
<?php
class ClassA
{
     private $PrivateVar = null;
     protected $ProtectedVar = null;
     public $PublicVar = null;

     private function PrivateFunc()
     {}
     protected function ProtectedFunc()
     {}
     public function PublicFunc()
     {}
}

var_dump(get_class_vars('ClassA'));
var_dump(get_class_methods('ClassA'));
?>

Expected result:
----------------
array(3) {
   ["PrivateVar"] => string(1) -
   [" * ProtectedVar"] => string(1) #
   ["PublicVar"] => string(1) +
}
array(3) {
   ["PrivateFunc"] => string(1) -
   ["ProtectedFunc"] => string(1) #
   ["PublicFunc"] => string(1) +
}

Actual result:
--------------
array(3) {
   [" ClassA PrivateVar"] => NULL
   [" * ProtectedVar"] => NULL
   ["PublicVar"] => NULL
}
array(3) {
   [0]=> string(11) "PrivateFunc"
   [1]=> string(13) "ProtectedFunc"
   [2]=> string(10) "PublicFunc"
}
------------------------------------------

attached mail follows:


John Nichel sagde:
> QT wrote:
>> Dear Sirs,
>>
>> When I use where statement, I see that there is no meaning small and big
>> letter. Without looking small caps or big, result comes back. But I want to
>> match only small letters. How can I do that?
>>
>> Best REgards
>>
>
> Where statement for what? MySQL? If so, I don't think you can do it on
> the SQL end as WHERE is normally case-insensitive. You could use a
> regular expression while looping thru your result set.
>
> --

In MySQL you can use the binary() to select case sensitive.

example:
select field_1, count(*) from table where field_1 = 'test' group by binary(field_1);

could give a result looking like this:
test 5
tEst 1
tesT 1
Test 100

select field_1, count(*) from table where binary(field_1) = 'test' group by
binary(field_1);

would then only give
test 5

attached mail follows:


Install the devel package of imageMagick in addition to the binary one.
Or install ImageMagick from sources.

Magick-config gives the c and ld flags to gcc, of all the libs that the
lib-magick uses :
gcc `Magick-config --cflags` app.c `Magick-config --ldflags --libs`
http://www.imagemagick.org/www/api.html

--
InfoBest-IT a écrit :
> I am having a problem installing Imagick in PHP 4.3.6. In the install
> instructions:
>
> 1) make sure the path to Magick-config (the ImageMagick configuration
> script) is in your PATH environment variable
>
> There is no Magick-config file. Anyone know what ŒMagick-config¹ is
> exactly? I figure this is why the install is failing.
>
> Thanks!
>
> /T

attached mail follows:


Hi,
I have variables called Cookie1 to Cookie35.

I would like to print the values of Cookie1 to Cookie35 using for loop.

Could anybody correct the below code to print the variables.

==============================
for($i=1;$i<34;$i++)
{
        $x="Cookie".$i;
        
        if(isset($$x))
        {
                echo "<p>$x:$$x</p>";
        }
}
==============================

Thanks in advance
Balaji

Confidentiality Notice

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or Mailadminwipro.com immediately
and destroy all copies of this message and any attachments.

attached mail follows:


balaji.ankemwipro.com sagde:
>
> Hi,
> I have variables called Cookie1 to Cookie35.
>
> I would like to print the values of Cookie1 to Cookie35 using for loop.
>
> Could anybody correct the below code to print the variables.
>
> =============================for($i=1;$i<34;$i++)
> {
> $x="Cookie".$i;
>
> if(isset($$x))
> {
> echo "<p>$x:$$x</p>";
> }
> }

for($i=1;$i<34;$i++)
{
        $x="Cookie".$i;
        eval("\$y = \$$x;");
        if(isset($y))
        {
                echo "<p>$x:$y</p>";
        }
}

attached mail follows:


Hi,

I want to use cookies in one of my applications.
I want to know the details about the Domain parameter of setcookie function.

What is significance of Domain parameter ?
How the use of Domain parameter helps us for authentication using cookie ?

Please help me in this regard.

Thanking you in anticipation.

Regards,

Umesh.