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-help_at_lists.php.net
Date: Wed Jul 31 2002 - 11:03:17 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    php-general Digest 31 Jul 2002 16:03:17 -0000 Issue 1497

    Topics (messages 110452 through 110530):

    Re: Reg-PHP4.22 and Apache1.3.26 Installation
            110452 by: EdwardSPL.ita.org.mo
            110458 by: SenthilVelavan

    Re: How to become a good PHP coder?
            110453 by: Peter J. Schoenster
            110461 by: Wee Keat
            110476 by: Michael P. Carel
            110529 by: Lee Doolan

    passing arrays between pages with serialize
            110454 by: DoL
            110455 by: Martin Towell
            110479 by: Valeri Felberg

    Re: passing variable via url ( newbye question)
            110456 by: Lord Loh.
            110459 by: Leif K-Brooks
            110481 by: Saci
            110482 by: Saci
            110512 by: Martin Clifford

    variable variables and Sessions
            110457 by: Anup

    thirds of a color wheel
            110460 by: Justin French
            110464 by: Martin Towell

    web services and PHP
            110462 by: Ric Mañalac
            110463 by: Bob Lockie
            110485 by: Brian McGarvie
            110487 by: Andrey Hristov

    Re: Mail Form
            110465 by: Manuel Lemos
            110468 by: Jason Wong

    Session Problems
            110466 by: Bob Irwin

    using Cascading style sheet
            110467 by: Sailom
            110469 by: Justin French
            110470 by: Tom Rogers
            110474 by: Paul Dionne

    Re: SMS message ?
            110471 by: lallous

    HELP! Problem configuring PHP
            110472 by: Markas
            110473 by: EdwardSPL.ita.org.mo

    PHP Installation Problem
            110475 by: Mark Colvin

    PHP + Apache + ODBC on linux
            110477 by: Jose Morales

    Re: my application is not able to communicate with qmail sever !
            110478 by: Sreedhar Katikireddy

    Bcc with the mail command
            110480 by: Carlos Fernando Scheidecker Antunes
            110483 by: lallous

    extending class then calling its original function
            110484 by: lallous
            110489 by: Jason Wong

    file upload
            110486 by: sally tirchett

    Bea Weblogic Webserver
            110488 by: MindHunter
            110492 by: Brian McGarvie

    Question on File Move / Delete and Create Directory
            110490 by: Jack
            110493 by: Brian McGarvie
            110495 by: David Robley
            110496 by: Justin French

    DOMXML...
            110491 by: Brian McGarvie
            110498 by: lallous
            110499 by: Brian McGarvie
            110510 by: Dan Hardiker

    Consideration on Upgrade php
            110494 by: Jack
            110497 by: EdwardSPL.ita.org.mo
            110526 by: j.ellermann

    stripping quotes within an image tag
            110500 by: electroteque
            110501 by: David Robley
            110502 by: lallous
            110503 by: lallous
            110504 by: Jason Wong
            110507 by: electroteque
            110511 by: electroteque
            110516 by: Jason Wong
            110519 by: electroteque

    shorter way to write include function?
            110505 by: Bas Jobsen
            110508 by: lallous
            110520 by: 1LT John W. Holmes

    Re: PHP4 and MS Excel?
            110506 by: Jay Blanchard

    Re: [PHP-DEV] [CROSS POST] PHP Meetup & Texas PHP Users
            110509 by: Jay Blanchard

    There has to be a more elegant way of doing this
            110513 by: Mike
            110514 by: lallous
            110524 by: Mike

    select multiple
            110515 by: christen1.nomade.fr
            110517 by: Martin Clifford
            110518 by: 1LT John W. Holmes

    Trouble Getting PHP Activated on Mac OS X 10.1.4
            110521 by: Robert Contursi

    sablotron debian(unstable) iconv configure problems [please help]
            110522 by: Niklas Fondberg

    mail () will send to everyone except my own domain
            110523 by: Gareth

    More ???s on passing variables
            110525 by: Paul Dionne
            110527 by: Jason Wong

    HowTo: Mutiple Radio Button Values
            110528 by: Shew

    stripping quotes from urls and images
            110530 by: electroteque

    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:


    You may try this installation steps :
    http://www.linuxguruz.org/z.php?id=32&h=php+mysql+apache

    SenthilVelavan wrote:

    > Hello All,
    > I have tried to install Apache 1.3.26 and PHP 4.22 (as DSO ).
    >
    > By following the below steps my Apache 1.3.26 installation was OK
    > ./configure --enable-module=so
    > make
    > make install
    >
    > But while running make for PHP 4.22 i got the following error.
    >
    > [Note : My configure command for PHP 4.22 is ./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql ]
    >
    > Error :
    > stub.lo: file not recognized: File truncated
    > collect2: ld returned 1 exit status
    > make[1]: *** [libphp4.la] Error 1
    > make[1]: Leaving directory `/usr/local/php-4.2.2'
    > make: *** [all-recursive] Error 1
    >
    > Any help is appreciated.
    >
    > Advance thanks and regards,
    > SenthilVelavan.P

    attached mail follows:


    Hello All,
                    I have found one soultion for my bug posted in my previous
    mail.Actually i hve searched from the site.

    1)Do a "./configure --with-apache=/path/to/my/apache", follow this with a
    "make" then delete the files stub.lo & stub.o in the php root directory and
    then all the .lo files in the main directory.
    2)DO NOT do a make clean...
    3)Now, do a "./configure --with-apxs=/path/to/my/apxs", follow with a "make"
    and "make install". This should compile and create the libphp4.so in the
    correct Apache runtime directories.

    Now my Apache 1.3.26 and PHP 4.22 (As DSO ) installation is OK.

    Any one of you may have some other solution.If so please post it.

    regards,
    SenthilVelavan.P

    ----- Original Message -----
    From: "SenthilVelavan" <senthilvellangmx.net>
    To: "PHP-General" <php-generallists.php.net>
    Sent: Wednesday, July 31, 2002 9:10 AM
    Subject: [PHP] Reg-PHP4.22 and Apache1.3.26 Installation

    Hello All,
                I have tried to install Apache 1.3.26 and PHP 4.22 (as DSO ).

    By following the below steps my Apache 1.3.26 installation was OK
    ./configure --enable-module=so
    make
    make install

    But while running make for PHP 4.22 i got the following error.

    [Note : My configure command for PHP 4.22 is
        ./configure --with-apxs=/usr/local/apache/bin/apxs --with-mysql ]

    Error :
    stub.lo: file not recognized: File truncated
    collect2: ld returned 1 exit status
    make[1]: *** [libphp4.la] Error 1
    make[1]: Leaving directory `/usr/local/php-4.2.2'
    make: *** [all-recursive] Error 1

    Any help is appreciated.

    Advance thanks and regards,
    SenthilVelavan.P

    attached mail follows:


    On 31 Jul 2002 at 11:38, Martin Towell wrote:

    > The best way to become proficient in programming (or anything, come to
    > that) is with _lots_ of practice.

    ...snip

    > Personally, I don't bog myself down in code from the start. I think in
    > sorta pseudo-code, then once I have a solution, I then implement in
    > language-specific code.

    I whole-heartedly agree with the above.

    It's all to easy to just start spinning out code and weaving things together and before you know it you've got something. But then come the
    inevitable changes, how will your code handle it?

    I would suggest reading some Steve McConnell.

    http://www.amazon.com/exec/obidos/ASIN/1556154844/ref=ase_stevemcconnelconA/103-2560652-4298245

    That's the author's affiliate id, doesn't hurt to help them make more money. It links to "Code Complete". As one reviewer says:

    > Code Complete showed me that it's a lot more than that, beginning by
    > designing your program, not just starting to write code right away, up
    > to topics like naming conventions for variables, how to determine what
    > code to put into a routine or how to make your program easier to debug.

    I cannot emphsize enough to follow some sort of standard. At least to read through the standard once.

    http://pear.php.net/manual/en/standards.php

    Pragmatic Programmer is also quite good:

    http://www.amazon.com/o/ASIN/020161622X/ref=cm_custrec_gl_acc/103-2560652-4298245

    Anyone with 3/4 a brain can throw together some code to do something. You've got thousands of examples and you might stumble across
    some of mine. It is another thing entirely to write code that will form a basis for evolution. The web is all about evolution. We always have to get
    the latest project done yesterday and then before we've even tested it we've got changes coming in ... thinking about what you are going to do
    and how you are going to grow it and test it are very important.

    Peter

    attached mail follows:


    Hi peter...

    Wow!! That's a heck lot of info for me to digest! Thank you so much for all
    that trouble!

    Very useful stuffs... can't thank you enuff...

    Yours,
    Wee Keat

    ------------------------------------------------------------
    "Good timber does not grow with ease; the stronger the wind, the stronger
    the trees."

    ----- Original Message -----
    From: "Peter J. Schoenster" <peterschoenster.com>
    To: <php-generallists.php.net>
    Sent: 31 July, 2002 2:40 PM
    Subject: RE: [PHP] How to become a good PHP coder?

    > On 31 Jul 2002 at 11:38, Martin Towell wrote:
    >
    > > The best way to become proficient in programming (or anything, come to
    > > that) is with _lots_ of practice.
    >
    > ...snip
    >
    > > Personally, I don't bog myself down in code from the start. I think in
    > > sorta pseudo-code, then once I have a solution, I then implement in
    > > language-specific code.
    >
    > I whole-heartedly agree with the above.
    >
    > It's all to easy to just start spinning out code and weaving things
    together and before you know it you've got something. But then come the
    > inevitable changes, how will your code handle it?
    >
    > I would suggest reading some Steve McConnell.
    >
    >
    http://www.amazon.com/exec/obidos/ASIN/1556154844/ref=ase_stevemcconnelconA/
    103-2560652-4298245
    >
    > That's the author's affiliate id, doesn't hurt to help them make more
    money. It links to "Code Complete". As one reviewer says:
    >
    > > Code Complete showed me that it's a lot more than that, beginning by
    > > designing your program, not just starting to write code right away, up
    > > to topics like naming conventions for variables, how to determine what
    > > code to put into a routine or how to make your program easier to debug.
    >
    > I cannot emphsize enough to follow some sort of standard. At least to read
    through the standard once.
    >
    > http://pear.php.net/manual/en/standards.php
    >
    > Pragmatic Programmer is also quite good:
    >
    >
    http://www.amazon.com/o/ASIN/020161622X/ref=cm_custrec_gl_acc/103-2560652-42
    98245
    >
    > Anyone with 3/4 a brain can throw together some code to do something.
    You've got thousands of examples and you might stumble across
    > some of mine. It is another thing entirely to write code that will form a
    basis for evolution. The web is all about evolution. We always have to get
    > the latest project done yesterday and then before we've even tested it
    we've got changes coming in ... thinking about what you are going to do
    > and how you are going to grow it and test it are very important.
    >
    > Peter
    >
    >
    >
    > --
    > PHP General Mailing List (http://www.php.net/)
    > To unsubscribe, visit: http://www.php.net/unsub.php

    attached mail follows:


    You could also visit http://devshed.com for some of their tutorials
    regarding PHP specially PHP101 nad alot of sample codes and projects.

    Mike

    ----- Original Message -----
    From: "Wee Keat" <weekeatamorphosium.com>
    To: <peterschoenster.com>; <php-generallists.php.net>
    Sent: Wednesday, July 31, 2002 12:57 PM
    Subject: Re: [PHP] How to become a good PHP coder?

    > Hi peter...
    >
    > Wow!! That's a heck lot of info for me to digest! Thank you so much for
    all
    > that trouble!
    >
    > Very useful stuffs... can't thank you enuff...
    >
    >
    > Yours,
    > Wee Keat
    >
    > ------------------------------------------------------------
    > "Good timber does not grow with ease; the stronger the wind, the stronger
    > the trees."
    >
    >
    >
    > ----- Original Message -----
    > From: "Peter J. Schoenster" <peterschoenster.com>
    > To: <php-generallists.php.net>
    > Sent: 31 July, 2002 2:40 PM
    > Subject: RE: [PHP] How to become a good PHP coder?
    >
    >
    > > On 31 Jul 2002 at 11:38, Martin Towell wrote:
    > >
    > > > The best way to become proficient in programming (or anything, come to
    > > > that) is with _lots_ of practice.
    > >
    > > ...snip
    > >
    > > > Personally, I don't bog myself down in code from the start. I think in
    > > > sorta pseudo-code, then once I have a solution, I then implement in
    > > > language-specific code.
    > >
    > > I whole-heartedly agree with the above.
    > >
    > > It's all to easy to just start spinning out code and weaving things
    > together and before you know it you've got something. But then come the
    > > inevitable changes, how will your code handle it?
    > >
    > > I would suggest reading some Steve McConnell.
    > >
    > >
    >
    http://www.amazon.com/exec/obidos/ASIN/1556154844/ref=ase_stevemcconnelconA/
    > 103-2560652-4298245
    > >
    > > That's the author's affiliate id, doesn't hurt to help them make more
    > money. It links to "Code Complete". As one reviewer says:
    > >
    > > > Code Complete showed me that it's a lot more than that, beginning by
    > > > designing your program, not just starting to write code right away, up
    > > > to topics like naming conventions for variables, how to determine what
    > > > code to put into a routine or how to make your program easier to
    debug.
    > >
    > > I cannot emphsize enough to follow some sort of standard. At least to
    read
    > through the standard once.
    > >
    > > http://pear.php.net/manual/en/standards.php
    > >
    > > Pragmatic Programmer is also quite good:
    > >
    > >
    >
    http://www.amazon.com/o/ASIN/020161622X/ref=cm_custrec_gl_acc/103-2560652-42
    > 98245
    > >
    > > Anyone with 3/4 a brain can throw together some code to do something.
    > You've got thousands of examples and you might stumble across
    > > some of mine. It is another thing entirely to write code that will form
    a
    > basis for evolution. The web is all about evolution. We always have to get
    > > the latest project done yesterday and then before we've even tested it
    > we've got changes coming in ... thinking about what you are going to do
    > > and how you are going to grow it and test it are very important.
    > >
    > > Peter
    > >
    > >
    > >
    > > --
    > > 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:


    >>>>> "Wee" == Wee Keat <weekeatamorphosium.com> writes:
                                   [. . .]
        Wee> might be new, but I deeply appreciate the generosity that all
        Wee> of you have given us

    One way to show your appreciation sincerely would be to help others
    in the same way that people have helped you.

    attached mail follows:


    Hi

    I would like to pass three arrays, two of them are two dimensional arrays,
    to another page (or to the same page just submit to itself) using hidden
    field and the function serialize.

    (this is a two dimensional array)
    page-1
     $s_array1 = serialize($array1);

    <INPUT type="HIDDEN" name="h_array1" value="<?php echo urlencode($s_array1);
    ?>">

    page-2
     $array1= unserialize(urldecode(stripslashes($_POST['h_array1'])));

    it seems to work except there appears to be one NULL record added to the
    beginning of the array.
    it affects the following :-
    count(array_keys($array1) ) returns actual_no_of_keys + 1
    foreach () echo with one NULL record at the beginning
    reset($array1) erase the array completely !!

    and it doesn't help to use rawurl(en|de)code, and with | without
    stripslashes!

    PLEASE HELP! if you can resolve this, or has a better ways to pass arrays
    between pages.

    Many Thanks
    /dl

    attached mail follows:


    Can you post/send the results of doing a print_r() on the first page (the
    one that's serialising) and the results of the serialize()?

    -----Original Message-----
    From: DoL [mailto:dwylaunetvigator.com]
    Sent: Wednesday, July 31, 2002 2:21 PM
    To: php-generallists.php.net
    Subject: [PHP] passing arrays between pages with serialize

    Hi

    I would like to pass three arrays, two of them are two dimensional arrays,
    to another page (or to the same page just submit to itself) using hidden
    field and the function serialize.

    (this is a two dimensional array)
    page-1
     $s_array1 = serialize($array1);

    <INPUT type="HIDDEN" name="h_array1" value="<?php echo urlencode($s_array1);
    ?>">

    page-2
     $array1= unserialize(urldecode(stripslashes($_POST['h_array1'])));

    it seems to work except there appears to be one NULL record added to the
    beginning of the array.
    it affects the following :-
    count(array_keys($array1) ) returns actual_no_of_keys + 1
    foreach () echo with one NULL record at the beginning
    reset($array1) erase the array completely !!

    and it doesn't help to use rawurl(en|de)code, and with | without
    stripslashes!

    PLEASE HELP! if you can resolve this, or has a better ways to pass arrays
    between pages.

    Many Thanks
    /dl

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

    attached mail follows:


    Hallo DoL,

    it worked when i didn't use urldecode(), just stripslashes():

    page-1 $s_array1 = urlencode(serialize($array1));

    header("Location: page-2?h_array1=$s_array1");

    page-2 $array1 = unserialize(stripslashes($_GET["h_array1"]));

    The other way that worked was passing arrays in $_SESSION. You don't need even serialize them in that case. D> Hi

    D> I would like to pass three arrays, two of them are two dimensional arrays, D> to another page (or to the same page just submit to itself) using hidden D> field and the function serialize.

    D> (this is a two dimensional array) D> page-1 D> $s_array1 = serialize($array1);

    D> <INPUT type="HIDDEN" name="h_array1" value="<?php echo urlencode($s_array1); ?>>">

    D> page-2 D> $array1= unserialize(urldecode(stripslashes($_POST['h_array1'])));

    D> it seems to work except there appears to be one NULL record added to the D> beginning of the array. D> it affects the following :- D> count(array_keys($array1) ) returns actual_no_of_keys + 1 D> foreach () echo with one NULL record at the beginning D> reset($array1) erase the array completely !!

    D> and it doesn't help to use rawurl(en|de)code, and with | without D> stripslashes!

    D> PLEASE HELP! if you can resolve this, or has a better ways to pass arrays D> between pages.

    D> Many Thanks D> /dl

    -- 
    Mit freundlichen Grüssen
    Valeri Felberg
    [Web developer]
    

    trimfab - internet mediagroup ------------------------------------------ our mission: innovative business solutions

    www.trimfab.com mailto:felbergtrimfab.com

    CZEMINSKI-STR. 1A 10829 BERLIN GERMANY

    FON: +49(0)30 - 768 033 93 FAX: +49(0)30 - 768 033 94

    attached mail follows:


    http://myadress/php/mypage.php?modo=123&color=red&size=3

    is fine!

    you can now use these variables like $modo $color and $size;

    Why bother with $_GET['modo']; ?

    attached mail follows:


    PLEASE don't tell the newbies to mess up their code! That is not compatible with all versions of php! DO NOT USE THOSE!!! STICK TO YOUR CURRENT GOOD CODE! Bother with them for security and compatibly.

    Lord Loh. wrote:

    >http://myadress/php/mypage.php?modo=123&color=red&size=3 > >is fine! > >you can now use these variables like >$modo $color and $size; > >Why bother with $_GET['modo']; ? > > > > > >

    attached mail follows:


    The obvius and easy think is alwaiss the hard to find

    My problem vas the > of the <BR> tag, that I forgot, dummy issue but I made

    The right adn working one now are

    http://myadress/php/mypage.php?modo=123&color=red&size=3

    and to get

    echo $_GET['modo']."<BR>"; echo $_GET['color']."<BR>"; echo $_GET['size']."<BR>";

    "Leif K-Brooks" <eurleifbuyer-brokerage.com> escreveu na mensagem news:3D476DFC.5080607buyer-brokerage.com... > PLEASE don't tell the newbies to mess up their code! That is not > compatible with all versions of php! DO NOT USE THOSE!!! STICK TO YOUR > CURRENT GOOD CODE! Bother with them for security and compatibly. > > Lord Loh. wrote: > > >http://myadress/php/mypage.php?modo=123&color=red&size=3 > > > >is fine! > > > >you can now use these variables like > >$modo $color and $size; > > > >Why bother with $_GET['modo']; ? > > > > > > > > > > > > > > >

    attached mail follows:


    Besides my newbye status, I guess you are not update.

    the $_GET is a must have when you use set globals to off, ( this is default after 4.2.1), and must be maintained for security reasons.

    Since I'm newbye I play with new and fresh version, and I can get details that older "phpers" does not take care since the are still using older versions.

    By the way thank you for your try.

    "Lord Loh." <lord_lohrediffmail.com> escreveu na mensagem news:20020731043752.16511.qmailpb1.pair.com... > http://myadress/php/mypage.php?modo=123&color=red&size=3 > > is fine! > > you can now use these variables like > $modo $color and $size; > > Why bother with $_GET['modo']; ? > > >

    attached mail follows:


    Because you HAVE to use it if you have register_globals OFF. Only when register_globals is ON can you do what you thought is more efficient, but isn't.

    Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/

    >>> "Lord Loh." <lord_lohrediffmail.com> 07/31/02 02:37AM >>> Why bother with $_GET['modo']; ?

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

    attached mail follows:


    I have a question about the following

    $LoadResult = mysql_query("SELECT * from Items where username='test' and password='test'");

    $num_results =mysql_num_rows($LoadResult); for ($i=0; $i < $num_results;$i++) { $myrow = mysql_fetch_array($LoadResult, MYSQL_ASSOC); $ProductName = $myrow["ProductName"]; $Quantity = $myrow["Quantity"];

    $$ProductName = $Quantity; [1] $HTTP_SESSION_VARS[$ProductName] = $Quantity; [2] session_register("$ProductName"); [3] }

    /*END CODE*/ so what I want to do is through the query result, create new session varaibles, where the name of the variable is $ProductName and whose value is $Quantity.

    for some reason if I just have lines [2] and [3] then the session variables are present, but once the page is reloaded/refreshed they are gone. However if I have lines [1] and [3], then my code can't access the session variables (through calls to $HTTP_SEESION_VARS) until the page is refreshed. It seems odd that I have to write lines [1] AND [2] to make the code work. They seem symantically correct.

    Thanks in Advance, Anup

    attached mail follows:


    Hi,

    I'm working on some scripts which generate color schemes from a base color (RRRGGGBBB).

    Working out lighter colors, darker colors and inverse (complimentary) colors was easy, but now I'm trying to figure out the right math for a triad of colors (3 colors with equal spacing around the color wheel), given a starting color.

    Any clues would be great :)

    Justin French

    attached mail follows:


    You'll need to find out how to convert from RGB to HSV

    Then all you need to do is look at the hue and fiddle with that.

    Sorry I can't be any more help than that, because I don't know what the maths is to convert from one colour space to the other :( But this should be a start

    HTH Martin

    -----Original Message----- From: Justin French [mailto:justinindent.com.au] Sent: Wednesday, July 31, 2002 2:56 PM To: php Subject: [PHP] thirds of a color wheel

    Hi,

    I'm working on some scripts which generate color schemes from a base color (RRRGGGBBB).

    Working out lighter colors, darker colors and inverse (complimentary) colors was easy, but now I'm trying to figure out the right math for a triad of colors (3 colors with equal spacing around the color wheel), given a starting color.

    Any clues would be great :)

    Justin French

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

    attached mail follows:


    Hi,

    I'd like to know if it's possible to use PHP to develop and implement Web Services. If so, please point me to sites, articles, or tutorials that discuss this topic in more detail. Thanks.

    --
    Ric Mañalac
    

    Note:

    The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you.

    attached mail follows:


    >I'd like to know if it's possible to use PHP to develop and implement >Web Services. If so, please point me to sites, articles, or tutorials >that discuss this topic in more detail. Thanks.

    How do you define web services?

    attached mail follows:


    A'la ASP WebServices perhaps?

    "Bob Lockie" <bjlockielockie.ca> wrote in message news:200207310445.g6V4jcdN014376gw.lockie.ca... > > >I'd like to know if it's possible to use PHP to develop and implement > >Web Services. If so, please point me to sites, articles, or tutorials > >that discuss this topic in more detail. Thanks. > > How do you define web services? > > >

    attached mail follows:


    There are two ways (SOAP) to use SOAP library written in PHP such as NuSOAP by Dietrich Ayala or to use PHP-SOAP toolkit (module for PHP written in C)by Brad Lafountain(coding) and Shane Caraveo(testing) (available at sourceforge.net).

    Regards, Andrey

    > "Bob Lockie" <bjlockielockie.ca> wrote in message > news:200207310445.g6V4jcdN014376gw.lockie.ca... > > > > >I'd like to know if it's possible to use PHP to develop and implement > > >Web Services. If so, please point me to sites, articles, or tutorials > > >that discuss this topic in more detail. Thanks. > > > > How do you define web services? > > > > > >

    attached mail follows:


    Hello,

    On 07/31/2002 12:35 AM, Bob Lockie wrote: >>use a decent editor with syntax highlighting > > > What is a free cross platform syntax highlighting editor? > Are there any Open Source ones that you know of?

    Use kate that comes with KDE.

    -- 
    

    Regards, Manuel Lemos

    attached mail follows:


    On Wednesday 31 July 2002 11:35, Bob Lockie wrote: > >use a decent editor with syntax highlighting > > What is a free cross platform syntax highlighting editor? > Are there any Open Source ones that you know of?

    vim/emacs?

    -- 
    Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
    Open Source Software Systems Integrators
    * Web Design & Hosting * Internet & Intranet Applications Development *
    

    /* It's not broken, you silly boy.

    - Linus Torvalds offending people on the gcc mailing list */

    attached mail follows:


    G'day,

    I'm having some frustrating issues with PHP 4.1.2 and Apache/1.3.26.

    I am using sessions on a secure server and on a whole, they are working beautifully.

    Using the same code on all pages (after the user logs in successfully, they are given a value and its a simple 'if' statement to determine whether they have a session).

    As I say, this has been working fine. However, just recently I've been having a very strange problem with certain pages.

    What happens is that when I go to an affected page, it simply loses the session information (in fact, the session appears to disappear completely and I'm forced to log in again). The majority of pages, using exactly the same session code, work fine. If I log back in (without closing the browser), I find that all of the pages work as they should. If I close the browser, open it and log in again, the problem occurs again. This problem occurs on multiple computers and multiple browser platforms. So I'm thinking this is either code or server side.

    I have tried starting a session, destroying it and starting it again, thinking that maybe the initial session doesn't initialise properly. I am also clearing all session cookies upon the user logging in successfully.

    Does anyone have any idea what this could be? I'm more than happy to provide any additional information that you might need to diagnose the problem.

    My session code is simply as follows...

    session_start(); $session = session_id();

    As I say, this works fine on other pages in the same directory, with exactly the same code....

    Best Regards Bob Irwin Server Admin & Web Programmer Planet Netcom

    attached mail follows:


    I just turn to use CSS instead of HTML style. Can you explain pros and cons of using CSS? I am quite concern about compatibility to client-side web browser. Thanks

    Sailom

    attached mail follows:


    This is absolutely nothing to do with PHP... suggest you try the newsgroup comp.infosystems.www.authoring.stylesheets

    regards,

    justin

    on 31/07/02 3:48 PM, Sailom (amorndetcolorado.edu) wrote:

    > I just turn to use CSS instead of HTML style. Can you explain pros and > cons of using CSS? I am quite concern about compatibility to client-side > web browser. Thanks > > Sailom > >

    attached mail follows:


    Hi,

    Wednesday, July 31, 2002, 3:48:15 PM, you wrote: S> I just turn to use CSS instead of HTML style. Can you explain pros and S> cons of using CSS? I am quite concern about compatibility to client-side S> web browser. Thanks

    S> Sailom

    God bless google http://lois.co.uk/web/articles/css-or-not.shtml

    -- 
    regards,
    Tom
    

    attached mail follows:


    I am confident nearly all browsers support CSS. Only the oldest still lingering out there will not. But keep in mind your site is still readable if someone is still using an outdated browser.

    Advantages - many But the most important is consistency and centralization. You can change the look of your entire site by modifying one or two files. And it is much easier to have a novice come in and do basic edits to files. For example, I teach my clients who want to post articles of their own how to do bold, italic, underline, header1...6 then I just drop in the include files for header and footer and make any links and done.

    Paul

    Sailom wrote:

    > I just turn to use CSS instead of HTML style. Can you explain pros and > cons of using CSS? I am quite concern about compatibility to client-side > web browser. Thanks > > Sailom

    attached mail follows:


    Lots of pay sites allow you to send SMS programmatically...

    check for example www.smsxchange.com

    "Rija" <rijavatu.com> wrote in message news:035c01c2383d$b39df7f0$3d00a8c0workelp3... Hi all, I'm a newbie, and I'd like some advice, and I don't have any idea, maybe it's a silly question.

    Is-it possible to send SMS message to mobile phone using PHP?

    For example, every monday I send some news about my web site to the mobile phone of my visitors with their approval, of course.

    If possible, how to do it. If not, does anyone have any other ideas how to do this?

    Best regards,

    Ranaivo Rija rijavatu.com BP 1528 Port Vila Vanuatu

    attached mail follows:


    Hello, people. So the problem. I have apache running with php-module. Recently I've upgraded the 4.0.6 version up to 4.2.2. All my php configuration directives in httpd.conf (php_flag, php_admin_flag, php_value, php_admin_value) are not working now. When I change libphp4.so back to 4.0.6 the directives work, if I use 4.2.2 module - they don't. The configuration of apache and php.ini are not being changed. The php.ini in both cases is almost the same. The configure options of both php-versions seems to be the same. Where is the problem? Did I miss anything while configuring and installing 4.2.2 php module? I can not find any info in php docs.

    attached mail follows:


    Hello !

    You may try this installation steps : http://www.linuxguruz.org/z.php?id=32&h=php+mysql+apache

    Before the installation steps, please uninstall all of the sources code packages that you have ever installed...

    Markas wrote:

    > Hello, people. > So the problem. > I have apache running with php-module. > Recently I've upgraded the 4.0.6 version up to 4.2.2. > All my php configuration directives in httpd.conf (php_flag, php_admin_flag, > php_value, php_admin_value) are not working now. When I change libphp4.so > back to 4.0.6 the directives work, if I use 4.2.2 module - they don't. The > configuration of apache and php.ini are not being changed. The php.ini in > both cases is almost the same. > The configure options of both php-versions seems to be the same. > Where is the problem? Did I miss anything while configuring and installing > 4.2.2 php module? I can not find any info in php docs. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

    attached mail follows:


    Thanks all. I have now resolved. For future reference, the problem was as you said, I didn't have php configured for mysql support. I traced this back to the installation of the operating system, Red Hat 7.2. Through the graphical installation, all php modules apart from mysql support and odbc support are installed by default. These two have to be specifically chosen, which I didn't do. Anyway problem now resolved

    **************************************************** This e-mail is intended for the recipient only and may contain confidential information. If you are not the intended recipient then you should reply to the sender and take no further ation based upon the content of the message. Internet e-mails are not necessarily secure and CCM Limited does not accept any responsibility for changes made to this message. Although checks have been made to ensure this message and any attchments are free from viruses the recipient should ensure that this is the case. ****************************************************

    attached mail follows:


    Hi to all!!

    I have a problem and i think maby somebody can help me.

    I have an MS Sql server on a Windows 2000. I have a PHP web in a linux debian. Im trying to access to the MS SQL server through unixodbc. Unixodbc works well becouse y test it under linux , with isql and sqsh, and i know that it works. in my PHP code I load the odbc module with dl('odbc'), and it works, but the problem is that when i do odbc_pconnect("mydsn","myuser","mypasswd"); y have an error like this:

    Warning: SQL error: [unixODBC] Could not find DSN in odbc.ini, SQL state 08001 in SQLConnect in /path/to/my/page.php on line XX Warning: Supplied argument is not a valid ODBC-Link resource in /path/to/my/page.php on line XX

    When i test the odbc with isql under linux, i think that isql find an .odbc.ini under $HOME the file is like this: [ODBC Data Sources] cdr2 = FreeTDS

    [cdr2] Servername = 192.168.129.6 TraceFile = /tmp/odbc.log Driver = /usr/lib/odbc/libtdsodbc.so Description = logs del call manager. DSN = cdr2 DB = CDR User = myuser Password = mypasswd Port = 1433

    [Default] Driver = /usr/lib/odbc/libtdsodbc.so

    and i think that the problem is that apache user dont find this file. My apache user is www-data, and i try to copy an .odbc.ini file to this user $HOME, but dont works...

    the conclusions are: 1º ODBC works 2º I have PHP compiled with ODBC support. 3º other users with an .odbc.ini file under $HOME can access to ODBC.

    but the problem is still there :( so my question is: how can i access from PHP on debian to a well configured ODBC ?

    thanks in advance!!

    attached mail follows:


    Hi All !

    First let me thank Jonas Pasche(qmail),David Phillips(qmail),Richard Lynch(php) and rest of the community for helping me to solve the problem..

    Finally after a bit of trial and error it worked..Here I am pointing out where I did the mistakes..

    The first mistake I did was..what Jonas was pointing about...

    1. I should not have set the sendmail_path As my application is running on Win2k...I need not set the path..I tried with all possible paths like, /var/qmail/bin/qmail-inject As the mail didn't work with qmail, which was working with sendmail, I was confused to set this..I thought first the control goes to SMTP server and then searches for the sendmail_path there in the Linux box.

    After I commented out the sendmail_path,the mail server has thrown me pop-up message..saying.. "See http://pobox.com/~djb/docs/smtplf.html."

    Then I thought it is CR LF problem.. And I tried with the following test mail program.. mail("sreedharcssolutionsinc.com","test","test"); and it worked to my excitement. And that confirmed me that "CR LF problem" is the second mistake I did which was also pointed out by David Phillips..

    2. I have replaced all the headers which were separated by only "\n" before, with "\r\n". ..and that solved my problem.. Actually my problem was only "CR LF problem" and I couldn't diagnose that because I set the sendmail_path..which I should not.. When sendmail_path is set, the mail(test mail for that matter also..) failed without any error notification from the mail server..which gave me the impression that the mail server is sitting idle..

    Thanks once again for all the support..

    Regards ! Sreedhar.

    ========================================== Sreedhar Katikireddy, Software Engineer, CS Software Solutions Pvt. Ltd. 425 Pantheon Road, Egmore, Chennai 600 008, INDIA Phones: +91(44) 819 1336 thru 38, 819 3335 Fax: +91(44) 819 2339 url: www.cssolutionsinc.com ==========================================

    attached mail follows:


    Hello all,

    Just a question about PHP mail comand.

    Usually I have something like this:

    if (mail($to,$Subject,$Body,$MailHeaders)) { return 1; } else { return 0; }

    Is there any way to use a BCC instead of to?

    I would like that the message sent did not have the address of the person it is sending it to.

    Any ideas or suggestions?

    Thank you,

    Carlos Fernando.

    attached mail follows:


    Yes, the header can contain this: $mailheader="Bcc: xyzhost.com\r\nTo: visiblehost.com";

    Elias,

    "Carlos Fernando Scheidecker Antunes" <nandoantunes.eti.br> wrote in message news:012301c23874$982a5c70$93505ad1Nando0... Hello all,

    Just a question about PHP mail comand.

    Usually I have something like this:

    if (mail($to,$Subject,$Body,$MailHeaders)) { return 1; } else { return 0; }

    Is there any way to use a BCC instead of to?

    I would like that the message sent did not have the address of the person it is sending it to.

    Any ideas or suggestions?

    Thank you,

    Carlos Fernando.

    attached mail follows:


    Hello when I extended a class and overwrite a function, can i after overwriting that function call it so it does what it used to do?

    for example in Delphi I say:

    procedure TMyExtendedClass.Proc1; begin // do new stuff here inherited; // calls the TMyClass.Proc1; end;

    Elias

    attached mail follows:


    On Wednesday 31 July 2002 18:36, lallous wrote: > Hello when I extended a class and overwrite a function, can i after > overwriting that function call it so it does what it used to do? > > for example in Delphi I say: > > procedure TMyExtendedClass.Proc1; > begin > // do new stuff here > inherited; // calls the TMyClass.Proc1; > end;

    Yes.

    -- 
    Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
    Open Source Software Systems Integrators
    * Web Design & Hosting * Internet & Intranet Applications Development *
    

    /* Q: What do you call a WASP who doesn't work for his father, isn't a lawyer, and believes in social causes? A: A failure. */

    attached mail follows:


    >From: "sally tirchett" <sally_tirchetthotmail.com> >To: php-generallists.php.net >CC: sally_tirchetthotmail.com >Date: Tue, 30 Jul 2002 21:07:05 +0000 > > >Hello, > >I would like some help with uploading a text file from c:\temp\trial.txt >(pc with windows 2000 installed) and import it to a pc (red hat linux 6 >installed) ip 164.130.160.89 and save it into an sql database 'production'. >Can you please help? > > >If the above is not possible how can i run from php a prog found >ex.c:temp\db1.mdb. > > > >Thanks > > >Sally >

    _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com

    attached mail follows:


    Hi,

    Is it possible to configure PHP for a BEA Weblogic Webserver? If so anyone who did it? and how?

    Tx MH

    attached mail follows:


    I'd suggest pursuing their customer support... It's not a very widely used websrever. It's also primarily a webserver optimized for serving JSP-based content/services - if I remember correctly...

    "Mindhunter" <MindHuntermailbox.co.za> wrote in message news:20020731094739.85327.qmailpb1.pair.com... > Hi, > > Is it possible to configure PHP for a BEA Weblogic Webserver? If so anyone > who did it? and how? > > Tx > MH > >

    attached mail follows:


    Dear all I had setup a web server in windows NT 4.0 (IIS Server), there is some question i want to ask bask on the file management!

    1. Is there any function in php that can create a folder/Directory in a specific path?

    2. Is there any function in php that can move particular files to other location?

    --
    Thx a lot!
    Jack
    nedcor4nedcor.com.hk
    

    attached mail follows:


    http://www.php.net/manual/en/function.mkdir.php

    and the other 'filesystem' commands all work in windows...

    "Jack" <nedcor4nedcor.com.hk> wrote in message news:20020731104043.13288.qmailpb1.pair.com... > Dear all > I had setup a web server in windows NT 4.0 (IIS Server), there is some > question i want to ask bask on the file management! > > 1. Is there any function in php that can create a folder/Directory in a > specific path? > > 2. Is there any function in php that can move particular files to other > location? > > > -- > Thx a lot! > Jack > nedcor4nedcor.com.hk > >

    attached mail follows:


    In article <20020731104043.13288.qmailpb1.pair.com>, nedcor4nedcor.com.hk says... > Dear all > I had setup a web server in windows NT 4.0 (IIS Server), there is some > question i want to ask bask on the file management! > > 1. Is there any function in php that can create a folder/Directory in a > specific path? > > 2. Is there any function in php that can move particular files to other > location? > > > -- > Thx a lot! > Jack > nedcor4nedcor.com.hk > > > http:/www.php.net/filesystem

    -- 
    David Robley
    Temporary Kiwi!
    

    Quod subigo farinam

    attached mail follows:


    on 31/07/02 8:39 PM, Jack (nedcor4nedcor.com.hk) wrote:

    > Dear all > I had setup a web server in windows NT 4.0 (IIS Server), there is some > question i want to ask bask on the file management! > > 1. Is there any function in php that can create a folder/Directory in a > specific path?

    *sigh* Did you look in the manual first?

    I searched for dir and got a list of directory functions, including mkdir(), which, makes a dir.

    http://www.php.net/manual/en/function.mkdir.php

    Funnily enough, it's part of the FILE SYSTEM FUNCTIONS in the manual.

    > 2. Is there any function in php that can move particular files to other > location?

    Not sure about moving, but there is copy() and unlink() [deletes a file], also found in the manual's filesystem chapter.

    Please at least try to find the answer before posting.

    Justin

    attached mail follows:


    I have a problem with DOMXML...

    I installed it and it is showing up in a phpinfo() script...

    However when I try a simple example it gives me an error such as:

    Warning: failed to load external entity "employees.xml" in C:\Inetpub\wwweloanshop\test\xml.php on line 36

    Any hints?

    [ Brian M McGarvie | www.mcgarvie.net - www.the-local-guide.com - www.anypurposeloans.com ]

    attached mail follows:


    hmm!

    1)Can you show the code line 36 if possible 2)try to escape the "\" (replace every \ with \\)

    "Brian McGarvie" <brian.mcgarvieanypurposeloans.co.uk> wrote in message news:20020731104203.15987.qmailpb1.pair.com... > I have a problem with DOMXML... > > I installed it and it is showing up in a phpinfo() script... > > However when I try a simple example it gives me an error such as: > > Warning: failed to load external entity "employees.xml" in > C:\Inetpub\wwweloanshop\test\xml.php on line 36 > > Any hints? > > [ Brian M McGarvie | www.mcgarvie.net - www.the-local-guide.com - > www.anypurposeloans.com ] > >

    attached mail follows:


    the line that gives the error...

    Warning: failed to load external entity "employees.xml" in C:\Inetpub\wwweloanshop\test\xml.php on line 36 What employees?

    is...

    $doc = xmldocfile("employees.xml") or die("What employees?");

    "Lallous" <phplistlgwm.org> wrote in message news:20020731112653.44779.qmailpb1.pair.com... > hmm! > > 1)Can you show the code line 36 if possible > 2)try to escape the "\" (replace every \ with \\) > > > "Brian McGarvie" <brian.mcgarvieanypurposeloans.co.uk> wrote in message > news:20020731104203.15987.qmailpb1.pair.com... > > I have a problem with DOMXML... > > > > I installed it and it is showing up in a phpinfo() script... > > > > However when I try a simple example it gives me an error such as: > > > > Warning: failed to load external entity "employees.xml" in > > C:\Inetpub\wwweloanshop\test\xml.php on line 36 > > > > Any hints? > > > > [ Brian M McGarvie | www.mcgarvie.net - www.the-local-guide.com - > > www.anypurposeloans.com ] > > > > > >

    attached mail follows:


    Check that the file employees.xml exists, and try providing it with an absolute reference rather than relative (eg: "c:\\xmlfiles\\employees.xml"). Also check that the xml file renders ok in Internet Explorer.

    > the line that gives the error... > > Warning: failed to load external entity "employees.xml" in > C:\Inetpub\wwweloanshop\test\xml.php on line 36 > What employees? > > is... > > $doc = xmldocfile("employees.xml") or die("What employees?"); > > "Lallous" <phplistlgwm.org> wrote in message > news:20020731112653.44779.qmailpb1.pair.com... >> hmm! >> >> 1)Can you show the code line 36 if possible >> 2)try to escape the "\" (replace every \ with \\) >> >> >> "Brian McGarvie" <brian.mcgarvieanypurposeloans.co.uk> wrote in >> message news:20020731104203.15987.qmailpb1.pair.com... >> > I have a problem with DOMXML... >> > >> > I installed it and it is showing up in a phpinfo() script... >> > >> > However when I try a simple example it gives me an error such as: >> > >> > Warning: failed to load external entity "employees.xml" in >> > C:\Inetpub\wwweloanshop\test\xml.php on line 36 >> > >> > Any hints? >> > >> > [ Brian M McGarvie | www.mcgarvie.net - www.the-local-guide.com - >> www.anypurposeloans.com ] >> > >> > >> >> > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

    -- 
    Dan Hardiker [dhardikerstaff.firstcreative.net]
    ADAM Software & Systems Engineer
    First Creative Ltd
    

    attached mail follows:


    Dear all Currently i'm using PHP 4.04 in my Web Server, i heard that there is a bit different on the newer version of php! Like : something different in php.ini! I know that the newest version of php is 4.2.2, could someone pls tell me if there is different between PHP 4.0.4 with 4.2.2? I heard that when you post data from a form to other page, 4.2.2 will have problem, unless you got to set something from php.ini? is that right?

    --
    Thx a lot!
    Jack
    nedcor4nedcor.com.hk
    

    attached mail follows:


    Hello,

    Before the time, many users recommend me to use php 4.2.2 and apache 1.3.26 working with MySQL / IMP etc... So, I think I can give you some idea / suggestion, I'm installing apache 1.3.26 and php 4.2.2 now !

    Edward.

    Jack wrote:

    > Dear all > Currently i'm using PHP 4.04 in my Web Server, i heard that there is a bit > different on the newer version of php! Like : something different in > php.ini! > I know that the newest version of php is 4.2.2, could someone pls tell me if > there is different between PHP 4.0.4 with 4.2.2? > I heard that when you post data from a form to other page, 4.2.2 will have > problem, unless you got to set something from php.ini? is that right? > > -- > Thx a lot! > Jack > nedcor4nedcor.com.hk > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

    attached mail follows:


    > > >I know that the newest version of php is 4.2.2, could someone pls tell me if >there is different between PHP 4.0.4 with 4.2.2? >I heard that when you post data from a form to other page, 4.2.2 will have >problem, unless you got to set something from php.ini? is that right? > > It's that register_globals is off by default.

    attached mail follows:


    hi how is it possible to strip quotes from an image tag ? i need <IMG height=44 alt=hspace=0 src="blah.jpg" width=148 border=0>

    to look like <IMG height=44 alt=hspace=0 src=blah.jpg width=148 border=0>

    attached mail follows:


    In article <20020731112838.47299.qmailpb1.pair.com>, danielelectroteque.org says... > hi how is it possible to strip quotes from an image tag ? > i need > <IMG height=44 alt=hspace=0 src="blah.jpg" width=148 border=0> > > to look like > <IMG height=44 alt=hspace=0 src=blah.jpg width=148 border=0> > > > $string_no_quotes = str_replace('"', '',$yourstring);

    if the tag can be placed in a variable/

    -- 
    David Robley
    Temporary Kiwi!
    

    Quod subigo farinam

    attached mail follows:


    <? echo preg_replace('/(<img.+?src=)"([^"]+)"([^>]*>)/i', '\1\2\3', '<IMG height=44 alt=hspace=0 src="blah.jpg" width=148 border=0>'); ?>

    Elias,

    "Electroteque" <danielelectroteque.org> wrote in message news:20020731112838.47299.qmailpb1.pair.com... > hi how is it possible to strip quotes from an image tag ? > i need > <IMG height=44 alt=hspace=0 src="blah.jpg" width=148 border=0> > > to look like > <IMG height=44 alt=hspace=0 src=blah.jpg width=148 border=0> > >

    attached mail follows:


    that won't really work if he used the ALT attribute too: <img alt="Hello world image" src="helloworld.jpg" ....>

    "David Robley" <robleydparadise.net.nz> wrote in message news:MPG.17b2928dee29c51d98976dnews.php.net... > In article <20020731112838.47299.qmailpb1.pair.com>, > danielelectroteque.org says... > > hi how is it possible to strip quotes from an image tag ? > > i need > > <IMG height=44 alt=hspace=0 src="blah.jpg" width=148 border=0> > > > > to look like > > <IMG height=44 alt=hspace=0 src=blah.jpg width=148 border=0> > > > > > > > $string_no_quotes = str_replace('"', '',$yourstring); > > if the tag can be placed in a variable/ > > -- > David Robley > Temporary Kiwi! > > Quod subigo farinam

    attached mail follows:


    On Wednesday 31 July 2002 20:34, lallous wrote: > that won't really work if he used the ALT attribute too: > <img alt="Hello world image" src="helloworld.jpg" ....>

    But stripping the "'s makes it invalid HTML anyway. The OP got what (s/he) asked for.

    -- 
    Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
    Open Source Software Systems Integrators
    * Web Design & Hosting * Internet & Intranet Applications Development *
    

    /* Immutability, Three Rules of: (1) If a tarpaulin can flap, it will. (2) If a small boy can get dirty, he will. (3) If a teenager can go out, he will. */

    attached mail follows:


    sick dude exactly what i needed , i have been doing php for a good while now but i have never hot my head around pregs :| "Lallous" <phplistlgwm.org> wrote in message news:20020731113255.56061.qmailpb1.pair.com... > <? > echo preg_replace('/(<img.+?src=)"([^"]+)"([^>]*>)/i', '\1\2\3', '<IMG > height=44 alt=hspace=0 src="blah.jpg" width=148 border=0>'); > ?> > > Elias, > > "Electroteque" <danielelectroteque.org> wrote in message > news:20020731112838.47299.qmailpb1.pair.com... > > hi how is it possible to strip quotes from an image tag ? > > i need > > <IMG height=44 alt=hspace=0 src="blah.jpg" width=148 border=0> > > > > to look like > > <IMG height=44 alt=hspace=0 src=blah.jpg width=148 border=0> > > > > > >

    attached mail follows:


    hmm sorry it didnt seem to work , it did then i gave it more than an img tag in a string and now it doesnt "Lallous" <phplistlgwm.org> wrote in message news:20020731113255.56061.qmailpb1.pair.com... > <? > echo preg_replace('/(<img.+?src=)"([^"]+)"([^>]*>)/i', '\1\2\3', '<IMG > height=44 alt=hspace=0 src="blah.jpg" width=148 border=0>'); > ?> > > Elias, > > "Electroteque" <danielelectroteque.org> wrote in message > news:20020731112838.47299.qmailpb1.pair.com... > > hi how is it possible to strip quotes from an image tag ? > > i need > > <IMG height=44 alt=hspace=0 src="blah.jpg" width=148 border=0> > > > > to look like > > <IMG height=44 alt=hspace=0 src=blah.jpg width=148 border=0> > > > > > >

    attached mail follows:


    On Wednesday 31 July 2002 20:38, electroteque wrote: > hmm sorry it didnt seem to work , it did then i gave it more than an img > tag in a string and now it doesnt

    If all you're doing is stripping the double-quotes why don't you use str_replace() as someone suggested?

    -- 
    Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
    Open Source Software Systems Integrators
    * Web Design & Hosting * Internet & Intranet Applications Development *
    

    /* Denver, n.: A smallish city located just below the `O' in Colorado. */

    attached mail follows:


    easy done but then it would replace all matches ie "blah" in the content would be removed :|

    it worked when i did

    $string = "<img height=\"44\" alt=\"\" hspace=\"0\" src=\"blah.jpg\" width=\"148\" border=\"0\">";

    but when i do

    $string ="<table class=\"tablecontent\" cellspacing=\"0\" cellpadding=\"10\" width= \"100%\" border=\"0\"> <tbody> <tr> <td><a href=\"blah.php\" target=\"_blank\"><img height=\"44\" alt=\"\" hspace=\"0\" src= \"blah.jpg\" width=\"148\" border=\"0\"></a></td> <td>View your account information. This option is only available to investors who have authorised us to make this facility available. Please contact us if you wish to have enquiry access to your data.</td> </tr> </tbody> </table>";

    this doesnt work

    using this echo preg_replace('/(<img.+?src=)"([^"]+)"([^>]*>)/i', '\1\2\3', $string); "Jason Wong" <php-generalgremlins.com.hk> wrote in message news:200207312116.40139.php-generalgremlins.com.hk... > On Wednesday 31 July 2002 20:38, electroteque wrote: > > hmm sorry it didnt seem to work , it did then i gave it more than an img > > tag in a string and now it doesnt > > If all you're doing is stripping the double-quotes why don't you use > str_replace() as someone suggested? > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > > /* > Denver, n.: > A smallish city located just below the `O' in Colorado. > */ >

    attached mail follows:


    Hello,

    i have /include/dotest.php: <? function dotest() {echo 'test';} ?>

    and test.php: <? include('/include/dotest.php'); dotest(); ?>

    Us there a shorter way to write out that. I mean something like

    include::dotest;

    Thanks,

    attached mail follows:


    if dotest.php has got the code, do this:

    echo eval(join('', file('dotest.php'));

    "Bas Jobsen" <basstartpunt.cc> wrote in message news:02073113582400.32156bjobsen... > Hello, > > i have > /include/dotest.php: > <? > function dotest() {echo 'test';} > ?> > > and test.php: > <? > include('/include/dotest.php'); > dotest(); > ?> > > Us there a shorter way to write out that. I mean something like > > include::dotest; > > Thanks, > > > >

    attached mail follows:


    No.

    ---John Holmes...

    > -----Original Message----- > From: Bas Jobsen [mailto:basstartpunt.cc] > Sent: Wednesday, July 31, 2002 7:58 AM > To: PHP General > Subject: [PHP] shorter way to write include function? > > Hello, > > i have > /include/dotest.php: > <? > function dotest() {echo 'test';} > ?> > > and test.php: > <? > include('/include/dotest.php'); > dotest(); > ?> > > Us there a shorter way to write out that. I mean something like > > include::dotest; > > Thanks, > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

    attached mail follows:


    [snip] Are you actually telling me how to SAVE an excel file as text (CSV) format THROUGH excel ?

    Hmmmm....

    Thanks (I guess...) But I learned how to do that, oh I dunno, about 20 years ago. My question was how to do it using PHP and COM. [/snip]

    Actually this may be a hint ... fire up a macro in Excel, perform the actions to save a CSV, stop the macro, and look at the VBA code ..... I'm not saying that this is the answer you seek, but it may get you one step closer.

    Jay

    Love your enemies-it really gets them confused

    ************************************* * Want to meet other PHP developers * * in your area? Check out: * * http://php.meetup.com/ * * No developer is an island ... * *************************************

    *************************************** * * * Texas PHP Developers Meeting * * Spring 2003 * * T Bar M Resort & Conference Center * * New Braunfels, Texas * * Interested? Contact; * * jay.blanchardniicommunications.com * * * ***************************************

    attached mail follows:


    [snip] First of all, sorry for the additional cross post. MeetUp.com lacks the ability to let you contact other folks who have signed up. In my general area, Massachusetts, there are a bunch of tiny groups scattered about, and I'd like a chance to get all of them to converge in one place to make the meetup worth it for all of us. I know there's only a few days before the meetup is to take place, but if folks from the following areas could email me, then we can try and work out somewhere we can all meet, instead of there being 5 groups of 2 or 3 people. [/snip]

    Agreed Gabriel, meetup.com, while a nice idea, does not work well at all due to the lack of contact information provided. But look what it may have started!

    I encourage PHP developers to seek each other and form their own groups. But even the PHP lists barely scratch the surface of developers who are out there. Contact other computer users groups in your area and you may be surprised at what pops-up.

    Jay

    LOTTERY: A tax on people who are bad at math

    *************************************** * * * Texas PHP Developers Meeting * * Spring 2003 * * T Bar M Resort & Conference Center * * New Braunfels, Texas * * Interested? Contact; * * jay.blanchardniicommunications.com * * * ***************************************

    attached mail follows:


    Heya, I was just wondering If there is a more elegant way of doing this...

    $string = str_replace('%mp3number%',$ARRAY['mp3number'],str_replace('%file_size%', $file_size,str_replace('%url%',$url,str_replace('%title%',$title,str_rep lace('%artist%',$artist,$format)))))

    Thank You, Mike funyonfunyon.com mmacraewwnet.net

    attached mail follows:


    NEWSTRING = preg_replace( array(/WHAT TO SEARCH FOR ARRAY/), array(/WHAT TO REPLACE WITH ARRAY/), STRING)

    "Mike" <funyonfunyon.com> wrote in message news:007201c23891$4fee8400$0dc48ed1intranet.wwnet.net... > Heya, > I was just wondering If there is a more elegant way of doing this... > > $string = > str_replace('%mp3number%',$ARRAY['mp3number'],str_replace('%file_size%', > $file_size,str_replace('%url%',$url,str_replace('%title%',$title,str_rep > lace('%artist%',$artist,$format))))) > > Thank You, > Mike > funyonfunyon.com > mmacraewwnet.net > >

    attached mail follows:


    Sweet! You rock! It worked perfectly and now I don't have this giant line in the middle of my script :)

    Thanks, Mike funyonfunyon.com mmacraewwnet.net

    -----Original Message----- From: lallous [mailto:phplistlgwm.org] Sent: Wednesday, July 31, 2002 10:11 AM To: php-generallists.php.net Subject: [PHP] Re: There has to be a more elegant way of doing this

    NEWSTRING = preg_replace( array(/WHAT TO SEARCH FOR ARRAY/), array(/WHAT TO REPLACE WITH ARRAY/), STRING)

    "Mike" <funyonfunyon.com> wrote in message news:007201c23891$4fee8400$0dc48ed1intranet.wwnet.net... > Heya, > I was just wondering If there is a more elegant way of doing this... > > $string = > str_replace('%mp3number%',$ARRAY['mp3number'],str_replace('%file_size%', > $file_size,str_replace('%url%',$url,str_replace('%title%',$title,str_rep > lace('%artist%',$artist,$format))))) > > Thank You, > Mike > funyonfunyon.com > mmacraewwnet.net > >

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

    attached mail follows:


    Hello, i have done as told to select multiple value from a html form, but i cannot insert all of them into MySql database. it inserts Array into the field, instead of the list of values. What can i do? Is there a special script to insert them? i tried, $str = ""; foreach ($tableau as $k=>$v) $str= $v . " "; $sjt1=$_POST["sjt1"]; and then the insert command (among others )but it's always the same story. Please help, thanks

    ------------------- L'e-mail gratuit pas comme les autres. NOMADE.FR, pourquoi chercher ailleurs ?

    attached mail follows:


    It depends on how you want them to be in the database. If you want comma-delimited, then just use implode().

    $array = array("Red", "Blue", "Green"); $comma_seperated = implode(", ", $array); $space_seperated = implode(" ", $array);

    There really is no limit to how you want to do this. Then just use explode() with the same arguments (although replace array with the comma_seperated string) to go back to an array.

    HTH!

    Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/

    >>> "christen1nomade.fr" <christen1nomade.fr> 07/31/02 08:56AM >>> Hello, i have done as told to select multiple value from a html form, but i cannot insert all of them into MySql database. it inserts Array into the field, instead of the list of values. What can i do? Is there a special script to insert them? i tried, $str = ""; foreach ($tableau as $k=>$v) $str= $v . " "; $sjt1=$_POST["sjt1"]; and then the insert command (among others )but it's always the same story. Please help, thanks

    ------------------- L'e-mail gratuit pas comme les autres. NOMADE.FR, pourquoi chercher ailleurs ?

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

    attached mail follows:


    Use implode to make the array into a string and insert that. Depends on your database structure exactly how you'd do it...

    www.php.net/implode

    ---John Holmes...

    ----- Original Message ----- From: <christen1nomade.fr> To: <php-generallists.php.net> Sent: Wednesday, July 31, 2002 8:56 AM Subject: [PHP] select multiple

    Hello, i have done as told to select multiple value from a html form, but i cannot insert all of them into MySql database. it inserts Array into the field, instead of the list of values. What can i do? Is there a special script to insert them? i tried, $str = ""; foreach ($tableau as $k=>$v) $str= $v . " "; $sjt1=$_POST["sjt1"]; and then the insert command (among others )but it's always the same story. Please help, thanks

    ------------------- L'e-mail gratuit pas comme les autres. NOMADE.FR, pourquoi chercher ailleurs ?

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

    attached mail follows:


    I'm having difficulty getting PHP activated on Mac OS X 10.1.4. I'm using the activation script from Marc Liyanage's page at http://www.entropy.ch. If anyone has any advise or can help me trouble shoot please let me know.

    Thanks,

    Robert Contursi Hendriks Institute 5500 Brush Hollow Road Westbury, NY 11590 516.338.5400

    attached mail follows:


    I get:

    checking whether to enable xslt support... yes checking for XSLT Sablotron backend... yes checking libexpat dir for Sablotron XSL support... no checking enable JavaScript for Sablotron... yes checking for Sablotron libraries in the default path... found Sablotron in /usr checking for iconv... no checking for libiconv... no checking for libiconv in -liconv... no checking for iconv in -liconv... no configure: error: iconv not found, in order to build sablotron you need the iconv library make[1]: Entering directory `/opt/build/system_servers/deb/apache-php/php-4.2.2' make[1]: *** No targets specified and no makefile found. Stop. make[1]: Leaving directory `/opt/build/system_servers/deb/apache-php/php-4.2.2' make[1]: Entering directory `/opt/build/system_servers/deb/apache-php/php-4.2.2' make[1]: *** No rule to make target `install'. Stop. make[1]: Leaving directory `/opt/build/system_servers/deb/apache-php/php-4.2.2' make[1]: Entering directory `/opt/build/system_servers/deb/apache-php/php-4.2.2' make[1]: *** No rule to make target `clean'. Stop. make[1]: Leaving directory `/opt/build/system_servers/deb/apache-php/php-4.2.2' make: *** [deb] Error 2

    when I try to build php-4.2.2

    CONFIG_OPTS = --with-mysql \ --with-config-file-path=/etc \ --disable-rpath \ --enable-inline-optimization \ --with-mm \ --enable-sysvsem \ --enable-sysvshm \ --enable-shmop \ --with-bz2 \ --with-curl \ --with-dom \ --with-zlib \ --with-xml \ --with-gd \ --with-regex=system \ --enable-magic-quotes \ --enable-safe-mode \ --enable-track-vars \ --enable-wddx \ --with-imap \ --with-kerberos \ --with-imap-ssl \ --enable-trans-sid \ --enable-ftp \ --with-dom \ --with-dom-xslt \ --with-sablot-js \ --with-xslt-sablot \ --enable-xslt \ --with-dom-exslt \ --with-openssl \ --enable-bcmath \ --with-pear=/var/devel \ --enable-sockets \ --with-soap

    --
    Best Regards
    

    Niklas Fondberg - niklas.fondbergi3micro.com System Developer - I3 Micro Technology

    attached mail follows:


    Hello all,

    Having a real problem. Have written a very simple php email script that I'm testing on our server. The script works fine if I set the 'to' field as any email address but our own - i.e. xyzhotmail.com This works fine, however as soon as I set the script to email me at the domain to which the server resolves too it fails. I do not get a error message, it says that the mail has been sent. The server runs Apache 1.3 and Php 4.1.2 (I will update to 4.2.2 once I have resolved this). The error logs on the server give no indication of any problem. I cannot work this out at all - it simply will not email to the same address as the DNS resolves its own IP address too. Our mx records are held elsewhere.

    I'm at complete loss on this one - I've been checking php.ini, httpd.conf etc etc and cannot work out why this is happening. Php.ini is set too:

    sendmail_from melocalhost.com sendmail_path /usr/sbin/sendmail -t -i smtp localhost

    do I need to set the smtp to point to the server that holds the mx records?

    any help/advice much appreciated,

    thanks,

    Gareth

    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system (http://www.grisoft.com).
    Version: 6.0.380 / Virus Database: 213 - Release Date: 24/07/2002
    

    attached mail follows:


    Hello everyone,

    I have a class in my script which has information on specific tables such as standard queries, tablenames, Index field...

    Then there is a function called StandardDropDown($ItemNum, $Name) which gets the info from the appropriate table you want and displays a dropdown menu based on the table.

    $ItemNum referrs to the table I want to output, $Name is what I want to call the dropdown in the HTML output.

    When I call the function directly from a page it works great.

    When I call it from another function I get an error: Fatal error: Call to a member function on a non-object in /var/www/html/COMESA/theme/functions.inc on line 61

    This is line 61: $TableName= $ItemNum->get_TableName();

    As I said, I only get this error when I call from a function, not if I call directly from a page. I don't see why that should make any difference though.

    Paul

    attached mail follows:


    On Wednesday 31 July 2002 22:40, Paul Dionne wrote: > > I have a class in my script which has information on specific tables such > as standard queries, tablenames, Index field... > > Then there is a function called StandardDropDown($ItemNum, $Name) which > gets the info from the appropriate table you want and displays a dropdown > menu based on the table. > > $ItemNum referrs to the table I want to output, $Name is what I want to > call the dropdown in the HTML output. > > When I call the function directly from a page it works great. > > When I call it from another function I get an error: > Fatal error: Call to a member function on a non-object in > /var/www/html/COMESA/theme/functions.inc on line 61 > > This is line 61: $TableName= $ItemNum->get_TableName(); > > As I said, I only get this error when I call from a function, not if I call > directly from a page. I don't see why that should make any difference > though.

    In your function declare your object as global.

    -- 
    Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
    Open Source Software Systems Integrators
    * Web Design & Hosting * Internet & Intranet Applications Development *
    

    /* Save the Whales -- Harpoon a Honda. */

    attached mail follows:


    Hi - I'm a TOTAL php NEWBIE - my 1st bit of code!!!.

    Basically the input form page has 17 sets of radio buttons, each representing one game with 2 options - team 1 and team 2. What I want to do is a better way of checking each radio button value instead of using an if statement for each. This code doesn't really work - it finds that vars ALWAYS exist.

    IE:

    <INPUT NAME=Game1 VALUE=1>Chicago <INPUT NAME=Game1 VALUE=2>whatever

    <INPUT NAME=Game2 VALUE=3>Minny <INPUT NAME=Game2 VALUE=1>Nobody

    Code above is processed by the following code:

    for ($GameIdx = 1; $GameIdx <= 17; $GameIdx++) { /* instead "hardcoding each radio button name - just do it programmatically by concatenating / creating the name */ $frmGame = "Game" + $GameIdx; if ($frmGame) { /* U want to check if the length is 5 or 6 bytes because it could be "game1" or "game14" */ $Length = strlen($frmGame); if ($Length == 5) { $GetNumber = 1; } else { $GetNumber = 2; }

    $GameID = intval(substr($frmGame, $Length - $GetNumber, $GetNumber)); print "Game ---> $GameIdx - $frmGame - $GetNumber - $GameID <BR>"; if ($GameID == $GameIdx) { print "Yeah Match - $GameID = $GameIdx <BR>"; /* OK, here is where U want to do the actual insert */ } } /* $frmGame endif */ }

    ?>

    Thanks

    attached mail follows:


    hi guys i now have a problem with urls i need to remove the quotes from both href="" and src=""

    so <a href="blah"> <img src=""> needs to be <a href=> <img src=> and i cant remove quotes from all string matches :|