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: Mon Nov 18 2002 - 00:52:42 CST

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

    php-general Digest 18 Nov 2002 06:52:42 -0000 Issue 1711

    Topics (messages 124810 through 124880):

    Re: preg_match_all - how does it work?
            124810 by: Jason Wong

    Write file can't work ?!? :-(
            124811 by: Ivan Mareniæ
            124812 by: Stephen
            124813 by: Ivan Mareniæ
            124814 by: Marco Tabini
            124815 by: Chris Knipe
            124816 by: Jason Sheets
            124817 by: Ivan Mareniæ
            124830 by: Ivan Mareniæ
            124848 by: rija
            124879 by: Ivan Mareniæ

    php imap functions
            124818 by: Bill Rowell
            124821 by: Rasmus Lerdorf

    Protecting Queries
            124819 by: Stephen
            124820 by: Jonathan Sharp
            124822 by: Rasmus Lerdorf
            124825 by: Stephen
            124826 by: Stephen
            124831 by: Alnisa Allgood

    Re: running php as cgi script
            124823 by: Scott
            124829 by: Jason Wong

    howto pass javascript variable to php
            124824 by: Jeff Bluemel

    Re: Whois Search in PHP
            124827 by: Hatem Ben
            124855 by: Chandu Nannapaneni

    unlink and directory ownership
            124828 by: electroteque

    image size problems
            124832 by: JohnMeyer

    OOP-classes in PHP
            124833 by: Tularis
            124839 by: Hatem Ben

    coding special characters in html
            124834 by: Børge Strand
            124835 by: Marco Tabini
            124844 by: John W. Holmes

    Re: I'm in need of a PHP web host recommendation
            124836 by: Brendon G

    Minutes to hours/days/monthes/years?
            124837 by: Leif K-Brooks
            124871 by: OrangeHairedBoy
            124877 by: Jome

    damn it... i want to tranfer data from one table to another!
            124838 by: Mr. BuNgL3
            124840 by: John W. Holmes

    preg_replace_callback
            124841 by: Bikeman
            124842 by: John W. Holmes
            124847 by: Philip Olson

    PHP Script to remove attachments from emails and store them on the server
            124843 by: Simon Chilmaid
            124872 by: Jason Wong

    PHP 4.2.3 on Apache 2.0.39
            124845 by: rija

    Re: Searching a Table
            124846 by: Justin French

    PHP Application Framework
            124849 by: Michael She

    imap_open
            124850 by: Bill Rowell
            124874 by: Michael Sims
            124878 by: Rasmus Lerdorf

    how do I get for to display $_POST value?
            124851 by: Jeff Bluemel
            124852 by: John Nichel
            124853 by: Jeff Bluemel

    Query to select every other record
            124854 by: Darren McPhee
            124859 by: John W. Holmes
            124860 by: David Freeman

    STRICTLY CONFIDENCIAL
            124856 by: desmond west
            124857 by: Marco Tabini
            124866 by: Khalid El-Kary
            124867 by: Aaron
            124868 by: OrangeHairedBoy
            124870 by: Aaron

    Problem with Class - incomplete object error
            124858 by: Paul

    testing
            124861 by: rw.xend.net

    sending html email from a web-based form
            124862 by: rw.xend.net
            124864 by: John W. Holmes
            124865 by: rw.xend.net

    Problem whith query in query
            124863 by: Lars Espelid
            124869 by: OrangeHairedBoy
            124873 by: Chris Garaffa

    Re: Display cell if dates are between 2 dates - help
            124875 by: Jason Wong

    echoing date of first and last day of current week.
            124876 by: Noodle Snacks

    Cannot Print Web-based Report in Netscape
            124880 by: Hakkan Lui

    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:


    On Monday 18 November 2002 01:09, Randall Perry wrote:
    > That was my understanding. Question is, why don't my print commands
    > work...or...how do you access 2 dimensional arrays in php?

    print_r() or var_dump()

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

    /* If parents would only realize how they bore their children. -- G.B. Shaw */

    attached mail follows:


    Hi.

    I am trying to create little counter: I can't open file for writing. I've tried different params: "w", "r+", "wb" ... nothnig works

    I am using IIS 5.0 , and I have set permitions to read & write files on server.

    ============= source code ===============

    if(is_writable("counter.txt")==TRUE) echo "File is writable"; else echo "File is NOT writable";

    echo "<br>";

    $fd = fopen ("counter.txt", "r"); $my_count=0; while (!feof ($fd)) { $my_count = fgets($fd, 4096); } fclose ($fd);

    $fd = fopen ("counter.txt", "wb"); if($fd==TRUE) { $my_count++; fputs($fd, $my_count); fclose ($fd); }

    echo "Your are user no:"; echo $my_count;

    ============= end source ================

    but after execution PHP says that:

    File is writable

    Warning: fopen("counter.txt", "wb") - Permission denied in c:\inetpub\wwwroot\PSK\user_no.php on line 27 Your are user no:8

    Whay can't I open file for writing???

    Thanks for help!!!

    attached mail follows:


    wb is not a permission. Try putting just w.

    ----- Original Message ----- From: "Ivan Mareniæ" <imarenicmilleniumtip.com> To: <php-generallists.php.net> Sent: Sunday, November 17, 2002 2:47 PM Subject: [PHP] Write file can't work ?!? :-(

    > Hi. > > I am trying to create little counter: > I can't open file for writing. > I've tried different params: "w", "r+", "wb" ... nothnig works > > I am using IIS 5.0 , and I have set permitions to read & write files on > server. > > > ============= source code =============== > > if(is_writable("counter.txt")==TRUE) > echo "File is writable"; > else > echo "File is NOT writable"; > > echo "<br>"; > > $fd = fopen ("counter.txt", "r"); > $my_count=0; > while (!feof ($fd)) { > $my_count = fgets($fd, 4096); > } > fclose ($fd); > > $fd = fopen ("counter.txt", "wb"); > if($fd==TRUE) > { > $my_count++; > fputs($fd, $my_count); > fclose ($fd); > } > > echo "Your are user no:"; > echo $my_count; > > ============= end source ================ > > but after execution PHP says that: > > File is writable > > Warning: fopen("counter.txt", "wb") - Permission denied in > c:\inetpub\wwwroot\PSK\user_no.php on line 27 > Your are user no:8 > > Whay can't I open file for writing??? > > Thanks for help!!! > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

    attached mail follows:


    I've tried. It doesent work.

    PHP documentation for fopen function says following:

    Note: The mode may contain the letter 'b'. This is useful only on systems which differentiate between binary and text files (i.e. Windows. It's useless on Unix). If not needed, this will be ignored.

    I've tried all variations: "w", "r+", "wb" ... nothnig works.

    "Stephen" <webmastermelchior.us> wrote in message news:000901c28e73$2f24a870$0200a8c0melchior... > wb is not a permission. Try putting just w. > > > ----- Original Message ----- > From: "Ivan Mareniæ" <imarenicmilleniumtip.com> > To: <php-generallists.php.net> > Sent: Sunday, November 17, 2002 2:47 PM > Subject: [PHP] Write file can't work ?!? :-( > > > > Hi. > > > > I am trying to create little counter: > > I can't open file for writing. > > I've tried different params: "w", "r+", "wb" ... nothnig works > > > > I am using IIS 5.0 , and I have set permitions to read & write files on > > server. > > > > > > ============= source code =============== > > > > if(is_writable("counter.txt")==TRUE) > > echo "File is writable"; > > else > > echo "File is NOT writable"; > > > > echo "<br>"; > > > > $fd = fopen ("counter.txt", "r"); > > $my_count=0; > > while (!feof ($fd)) { > > $my_count = fgets($fd, 4096); > > } > > fclose ($fd); > > > > $fd = fopen ("counter.txt", "wb"); > > if($fd==TRUE) > > { > > $my_count++; > > fputs($fd, $my_count); > > fclose ($fd); > > } > > > > echo "Your are user no:"; > > echo $my_count; > > > > ============= end source ================ > > > > but after execution PHP says that: > > > > File is writable > > > > Warning: fopen("counter.txt", "wb") - Permission denied in > > c:\inetpub\wwwroot\PSK\user_no.php on line 27 > > Your are user no:8 > > > > Whay can't I open file for writing??? > > > > Thanks for help!!! > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > >

    attached mail follows:


    Do you get any error messages?

    On Sun, 2002-11-17 at 14:57, Ivan Marenic wrote: > I've tried. It doesent work. > > PHP documentation for fopen function says following: > > Note: The mode may contain the letter 'b'. This is useful only on systems > which differentiate between binary and text files (i.e. Windows. It's > useless on Unix). If not needed, this will be ignored. > > I've tried all variations: "w", "r+", "wb" ... nothnig works. > > > > "Stephen" <webmastermelchior.us> wrote in message > news:000901c28e73$2f24a870$0200a8c0melchior... > > wb is not a permission. Try putting just w. > > > > > > ----- Original Message ----- > > From: "Ivan Mareniæ" <imarenicmilleniumtip.com> > > To: <php-generallists.php.net> > > Sent: Sunday, November 17, 2002 2:47 PM > > Subject: [PHP] Write file can't work ?!? :-( > > > > > > > Hi. > > > > > > I am trying to create little counter: > > > I can't open file for writing. > > > I've tried different params: "w", "r+", "wb" ... nothnig works > > > > > > I am using IIS 5.0 , and I have set permitions to read & write files on > > > server. > > > > > > > > > ============= source code =============== > > > > > > if(is_writable("counter.txt")==TRUE) > > > echo "File is writable"; > > > else > > > echo "File is NOT writable"; > > > > > > echo "<br>"; > > > > > > $fd = fopen ("counter.txt", "r"); > > > $my_count=0; > > > while (!feof ($fd)) { > > > $my_count = fgets($fd, 4096); > > > } > > > fclose ($fd); > > > > > > $fd = fopen ("counter.txt", "wb"); > > > if($fd==TRUE) > > > { > > > $my_count++; > > > fputs($fd, $my_count); > > > fclose ($fd); > > > } > > > > > > echo "Your are user no:"; > > > echo $my_count; > > > > > > ============= end source ================ > > > > > > but after execution PHP says that: > > > > > > File is writable > > > > > > Warning: fopen("counter.txt", "wb") - Permission denied in > > > c:\inetpub\wwwroot\PSK\user_no.php on line 27 > > > Your are user no:8 > > > > > > Whay can't I open file for writing??? > > > > > > Thanks for help!!! > > > > > > > > > > > > > > > -- > > > 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:


    The IIS user running the web server on NT needs read/write permissions on the file in the web server. By default, it only have read access to the file...

    ----- Original Message ----- From: "Stephen" <webmastermelchior.us> To: "Ivan Mareniæ" <imarenicmilleniumtip.com> Cc: "PHP List" <php-generallists.php.net> Sent: Sunday, November 17, 2002 9:54 PM Subject: Re: [PHP] Write file can't work ?!? :-(

    > wb is not a permission. Try putting just w. > > > ----- Original Message ----- > From: "Ivan Mareniæ" <imarenicmilleniumtip.com> > To: <php-generallists.php.net> > Sent: Sunday, November 17, 2002 2:47 PM > Subject: [PHP] Write file can't work ?!? :-( > > > > Hi. > > > > I am trying to create little counter: > > I can't open file for writing. > > I've tried different params: "w", "r+", "wb" ... nothnig works > > > > I am using IIS 5.0 , and I have set permitions to read & write files on > > server. > > > > > > ============= source code =============== > > > > if(is_writable("counter.txt")==TRUE) > > echo "File is writable"; > > else > > echo "File is NOT writable"; > > > > echo "<br>"; > > > > $fd = fopen ("counter.txt", "r"); > > $my_count=0; > > while (!feof ($fd)) { > > $my_count = fgets($fd, 4096); > > } > > fclose ($fd); > > > > $fd = fopen ("counter.txt", "wb"); > > if($fd==TRUE) > > { > > $my_count++; > > fputs($fd, $my_count); > > fclose ($fd); > > } > > > > echo "Your are user no:"; > > echo $my_count; > > > > ============= end source ================ > > > > but after execution PHP says that: > > > > File is writable > > > > Warning: fopen("counter.txt", "wb") - Permission denied in > > c:\inetpub\wwwroot\PSK\user_no.php on line 27 > > Your are user no:8 > > > > Whay can't I open file for writing??? > > > > Thanks for help!!! > > > > > > > > > > -- > > 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:


    Have you tried giving it an absolute path rather than a relative one?

    Jason

    On Sun, 2002-11-17 at 12:57, Ivan Marenic wrote: > I've tried. It doesent work. > > PHP documentation for fopen function says following: > > Note: The mode may contain the letter 'b'. This is useful only on systems > which differentiate between binary and text files (i.e. Windows. It's > useless on Unix). If not needed, this will be ignored. > > I've tried all variations: "w", "r+", "wb" ... nothnig works. > > > > "Stephen" <webmastermelchior.us> wrote in message > news:000901c28e73$2f24a870$0200a8c0melchior... > > wb is not a permission. Try putting just w. > > > > > > ----- Original Message ----- > > From: "Ivan Mareniæ" <imarenicmilleniumtip.com> > > To: <php-generallists.php.net> > > Sent: Sunday, November 17, 2002 2:47 PM > > Subject: [PHP] Write file can't work ?!? :-( > > > > > > > Hi. > > > > > > I am trying to create little counter: > > > I can't open file for writing. > > > I've tried different params: "w", "r+", "wb" ... nothnig works > > > > > > I am using IIS 5.0 , and I have set permitions to read & write files on > > > server. > > > > > > > > > ============= source code =============== > > > > > > if(is_writable("counter.txt")==TRUE) > > > echo "File is writable"; > > > else > > > echo "File is NOT writable"; > > > > > > echo "<br>"; > > > > > > $fd = fopen ("counter.txt", "r"); > > > $my_count=0; > > > while (!feof ($fd)) { > > > $my_count = fgets($fd, 4096); > > > } > > > fclose ($fd); > > > > > > $fd = fopen ("counter.txt", "wb"); > > > if($fd==TRUE) > > > { > > > $my_count++; > > > fputs($fd, $my_count); > > > fclose ($fd); > > > } > > > > > > echo "Your are user no:"; > > > echo $my_count; > > > > > > ============= end source ================ > > > > > > but after execution PHP says that: > > > > > > File is writable > > > > > > Warning: fopen("counter.txt", "wb") - Permission denied in > > > c:\inetpub\wwwroot\PSK\user_no.php on line 27 > > > Your are user no:8 > > > > > > Whay can't I open file for writing??? > > > > > > Thanks for help!!! > > > > > > > > > > > > > > > -- > > > 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:


    Here is IIS permisin setting. Watch attachment.

    Thanks for help!

    "Chris Knipe" <savagesavage.za.org> wrote in message news:001e01c28e74$5cfb7890$1e01a8c0savage.za.org... > The IIS user running the web server on NT needs read/write permissions on > the file in the web server. By default, it only have read access to the > file... > > > ----- Original Message ----- > From: "Stephen" <webmastermelchior.us> > To: "Ivan Mareniæ" <imarenicmilleniumtip.com> > Cc: "PHP List" <php-generallists.php.net> > Sent: Sunday, November 17, 2002 9:54 PM > Subject: Re: [PHP] Write file can't work ?!? :-( > > > > wb is not a permission. Try putting just w. > > > > > > ----- Original Message ----- > > From: "Ivan Mareniæ" <imarenicmilleniumtip.com> > > To: <php-generallists.php.net> > > Sent: Sunday, November 17, 2002 2:47 PM > > Subject: [PHP] Write file can't work ?!? :-( > > > > > > > Hi. > > > > > > I am trying to create little counter: > > > I can't open file for writing. > > > I've tried different params: "w", "r+", "wb" ... nothnig works > > > > > > I am using IIS 5.0 , and I have set permitions to read & write files on > > > server. > > > > > > > > > ============= source code =============== > > > > > > if(is_writable("counter.txt")==TRUE) > > > echo "File is writable"; > > > else > > > echo "File is NOT writable"; > > > > > > echo "<br>"; > > > > > > $fd = fopen ("counter.txt", "r"); > > > $my_count=0; > > > while (!feof ($fd)) { > > > $my_count = fgets($fd, 4096); > > > } > > > fclose ($fd); > > > > > > $fd = fopen ("counter.txt", "wb"); > > > if($fd==TRUE) > > > { > > > $my_count++; > > > fputs($fd, $my_count); > > > fclose ($fd); > > > } > > > > > > echo "Your are user no:"; > > > echo $my_count; > > > > > > ============= end source ================ > > > > > > but after execution PHP says that: > > > > > > File is writable > > > > > > Warning: fopen("counter.txt", "wb") - Permission denied in > > > c:\inetpub\wwwroot\PSK\user_no.php on line 27 > > > Your are user no:8 > > > > > > Whay can't I open file for writing??? > > > > > > Thanks for help!!! > > > > > > > > > > > > > > > -- > > > 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 > > >

    begin 666 php_IIS.GIF M1TE&.#=AS0'%`?<```````$!`0("`,#`P0$! 4%!08&!<'!P(" D)"0H* M"L+"PP,# T-#0X.#\/#Q 0$!$1$1(2$A,3$Q04%!45%186%A<7%Q8&!D9 M&1H:&AL;&QP<'!T='1X>'A\?'R ("$A(2(B(B,C(R0D)"4E)28F)B<G)RH M*"DI*2HJ*BLK*RPL+"TM+2XN+B\O+S P,#$Q,3(R,C,S,S0T-#4U-38V-C<W M-SX.#DY.3HZ.CL[.SP\/#T]/3X^/C\_/T! 0$%!04)"0D-#0T1$1$5%149& M1D='1TA(2$E)24I*2DM+2TQ,3$U-34Y.3D]/3U!04%%145)24E-34U145%55 M55965E=75UA86%E965I:6EM;6UQ<7%U=75Y>7E]?7V!8&%A86)B8F-C8V1D M9&5E969F9F=G9VAH:&EI:6IJ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3\XGW1*KW1+OW1,SW3?"`.P`` ` end

    attached mail follows:


    I've tried same source on different OS and it works OK.

    I assume there is a BUG, for win 2000.

    Thank you all for help. Kind regards, Ivan

    "Jason Sheets" <jsheetsphp.net> wrote in message news:1037563956.66814.9.cameldaemon.shadotech.biz... Have you tried giving it an absolute path rather than a relative one?

    Jason

    On Sun, 2002-11-17 at 12:57, Ivan Marenic wrote: > I've tried. It doesent work. > > PHP documentation for fopen function says following: > > Note: The mode may contain the letter 'b'. This is useful only on systems > which differentiate between binary and text files (i.e. Windows. It's > useless on Unix). If not needed, this will be ignored. > > I've tried all variations: "w", "r+", "wb" ... nothnig works. > > > > "Stephen" <webmastermelchior.us> wrote in message > news:000901c28e73$2f24a870$0200a8c0melchior... > > wb is not a permission. Try putting just w. > > > > > > ----- Original Message ----- > > From: "Ivan Mareniæ" <imarenicmilleniumtip.com> > > To: <php-generallists.php.net> > > Sent: Sunday, November 17, 2002 2:47 PM > > Subject: [PHP] Write file can't work ?!? :-( > > > > > > > Hi. > > > > > > I am trying to create little counter: > > > I can't open file for writing. > > > I've tried different params: "w", "r+", "wb" ... nothnig works > > > > > > I am using IIS 5.0 , and I have set permitions to read & write files on > > > server. > > > > > > > > > ============= source code =============== > > > > > > if(is_writable("counter.txt")==TRUE) > > > echo "File is writable"; > > > else > > > echo "File is NOT writable"; > > > > > > echo "<br>"; > > > > > > $fd = fopen ("counter.txt", "r"); > > > $my_count=0; > > > while (!feof ($fd)) { > > > $my_count = fgets($fd, 4096); > > > } > > > fclose ($fd); > > > > > > $fd = fopen ("counter.txt", "wb"); > > > if($fd==TRUE) > > > { > > > $my_count++; > > > fputs($fd, $my_count); > > > fclose ($fd); > > > } > > > > > > echo "Your are user no:"; > > > echo $my_count; > > > > > > ============= end source ================ > > > > > > but after execution PHP says that: > > > > > > File is writable > > > > > > Warning: fopen("counter.txt", "wb") - Permission denied in > > > c:\inetpub\wwwroot\PSK\user_no.php on line 27 > > > Your are user no:8 > > > > > > Whay can't I open file for writing??? > > > > > > Thanks for help!!! > > > > > > > > > > > > > > > -- > > > 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:


    Try to change write permission doing like the following: - Right click on the folder - Select proprieties - Click on security icon - And allow everyone to write, read, execute

    If you cannot access this tools, ask your administrator to allow you to do this work.

    ----- Original Message ----- From: "Ivan Marenic" <imarenicmilleniumtip.com> To: <php-generallists.php.net> Sent: Monday, November 18, 2002 7:21 AM Subject: Re: [PHP] Write file can't work ?!? :-(

    > Here is IIS permisin setting. Watch attachment. > > Thanks for help!

    attached mail follows:


    It works. Thank you.

    I can't belive I was so stupid, and obviously I was.

    Thanks again! :-)

    "Rija" <rijavatu.com> wrote in message news:007c01c28e9b$f47c7f30$3d00a8c0workelp3... > Try to change write permission doing like the following: > - Right click on the folder > - Select proprieties > - Click on security icon > - And allow everyone to write, read, execute > > If you cannot access this tools, ask your administrator to allow you to do > this work. > > > ----- Original Message ----- > From: "Ivan Marenic" <imarenicmilleniumtip.com> > To: <php-generallists.php.net> > Sent: Monday, November 18, 2002 7:21 AM > Subject: Re: [PHP] Write file can't work ?!? :-( > > > > Here is IIS permisin setting. Watch attachment. > > > > Thanks for help! >

    attached mail follows:


    i've been doing some development using php's imap functions. i'm wondering if its possible to use imap_open to open mailboxes that are stored in a user's personal space and not in /var/spool/mail. thanks!

    -bill

    attached mail follows:


    PHP's imap functions are a thin wrapper on top of the c-client library. Your best resource would be to go check the docs for that.

    -Rasmus

    On Sun, 17 Nov 2002, Bill Rowell wrote:

    > > i've been doing some development using php's imap functions. i'm > wondering if its possible to use imap_open to open mailboxes that are > stored in a user's personal space and not in /var/spool/mail. thanks! > > -bill > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    Since day one of me doing MySQL stuff in PHP, I've always set up my query as a variable then put it into the query function such as this:

    $query = "SELECT * FROM bobstuff WHERE id='1'"; $result = mysql_query($query, $connection);

    I've just come aware of the security risks of this. How could I make it so the $query variable isn't editable from the URL? Should I turn register_globals off?

    Thanks, Stephen Craton http://www.melchior.us

    "Life is a gift from God. Wasting it is like destroying a gift you got from the person you love most." -- http://www.melchior.us

    attached mail follows:


    the issue isn't with query, it's with variables used within queries...

    example: $id = $_GET['id']; $query = "SELECT * FROM mytable WHERE id=$id";

    and if you call this page as (or something like this): ?id='' OR 1=1

    You can alter the query

    -js

    Stephen wrote: > Since day one of me doing MySQL stuff in PHP, I've always set up my > query as a variable then put it into the query function such as this: > > $query = "SELECT * FROM bobstuff WHERE id='1'"; > $result = mysql_query($query, $connection); > > I've just come aware of the security risks of this. How could I make it > so the $query variable isn't editable from the URL? Should I turn > register_globals off? > > Thanks, > Stephen Craton > http://www.melchior.us > > "Life is a gift from God. Wasting it is like destroying a gift you got > from the person you love most." -- http://www.melchior.us >

    attached mail follows:


    No, that it fine. User-supplied data can not override a variable defined directly in your script like that regardless of the register_globals setting.

    -Rasmus

    On Sun, 17 Nov 2002, Stephen wrote:

    > Since day one of me doing MySQL stuff in PHP, I've always set up my query as a variable then put it into the query function such as this: > > $query = "SELECT * FROM bobstuff WHERE id='1'"; > $result = mysql_query($query, $connection); > > I've just come aware of the security risks of this. How could I make it so the $query variable isn't editable from the URL? Should I turn register_globals off? > > Thanks, > Stephen Craton > http://www.melchior.us > > "Life is a gift from God. Wasting it is like destroying a gift you got from the person you love most." -- http://www.melchior.us

    attached mail follows:


    What I meant was something like this:

    The user types in the URL http://myplace/script.php?query=DELTE * FROM table WHERE id=1. The query is overwritten and the section is deleted...

    Is that possible?

    > ----- Original Message ----- > From: "Rasmus Lerdorf" <rasmusphp.net> > To: "Stephen" <webmastermelchior.us> > Cc: "PHP List" <php-generallists.php.net> > Sent: Sunday, November 17, 2002 3:46 PM > Subject: Re: [PHP] Protecting Queries > > > > No, that it fine. User-supplied data can not override a variable defined > > directly in your script like that regardless of the register_globals > > setting. > > > > -Rasmus > > > > On Sun, 17 Nov 2002, Stephen wrote: > > > > > Since day one of me doing MySQL stuff in PHP, I've always set up my > query as a variable then put it into the query function such as this: > > > > > > $query = "SELECT * FROM bobstuff WHERE id='1'"; > > > $result = mysql_query($query, $connection); > > > > > > I've just come aware of the security risks of this. How could I make it > so the $query variable isn't editable from the URL? Should I turn > register_globals off? > > > > > > Thanks, > > > Stephen Craton > > > http://www.melchior.us > > > > > > "Life is a gift from God. Wasting it is like destroying a gift you got > from the person you love most." -- http://www.melchior.us > > > > >

    attached mail follows:


    Oh, right, thanks!

    ----- Original Message ----- From: "Rasmus Lerdorf" <rasmusphp.net> To: "Stephen" <webmastermelchior.us> Sent: Sunday, November 17, 2002 4:05 PM Subject: Re: [PHP] Protecting Queries

    > No, like I said, since you set $query in your script, whatever the user > passes in is overwritten. > > On Sun, 17 Nov 2002, Stephen wrote: > > > What I meant was something like this: > > > > The user types in the URL http://myplace/script.php?query=DELTE * FROM > > table WHERE id=1. > > The query is overwritten and the section is deleted... > > > > Is that possible? > > > > > > ----- Original Message ----- > > From: "Rasmus Lerdorf" <rasmusphp.net> > > To: "Stephen" <webmastermelchior.us> > > Cc: "PHP List" <php-generallists.php.net> > > Sent: Sunday, November 17, 2002 3:46 PM > > Subject: Re: [PHP] Protecting Queries > > > > > > > No, that it fine. User-supplied data can not override a variable defined > > > directly in your script like that regardless of the register_globals > > > setting. > > > > > > -Rasmus > > > > > > On Sun, 17 Nov 2002, Stephen wrote: > > > > > > > Since day one of me doing MySQL stuff in PHP, I've always set up my > > query as a variable then put it into the query function such as this: > > > > > > > > $query = "SELECT * FROM bobstuff WHERE id='1'"; > > > > $result = mysql_query($query, $connection); > > > > > > > > I've just come aware of the security risks of this. How could I make it > > so the $query variable isn't editable from the URL? Should I turn > > register_globals off? > > > > > > > > Thanks, > > > > Stephen Craton > > > > http://www.melchior.us > > > > > > > > "Life is a gift from God. Wasting it is like destroying a gift you got > > from the person you love most." -- http://www.melchior.us > > > > > > > > > >

    attached mail follows:


    At 3:31 PM -0500 11/17/02, Stephen wrote: >Since day one of me doing MySQL stuff in PHP, I've always set up my >query as a variable then put it into the query function such as this: > > $query = "SELECT * FROM bobstuff WHERE id='1'"; > $result = mysql_query($query, $connection); > >I've just come aware of the security risks of this. How could I make >it so the $query variable isn't editable from the URL? Should I turn >register_globals off? > >

    Typically speaking you should always use the PHP mysql_escape_string() function, when accepting data from users. While, I'm not certain its relevant in your situation, since your variable is predefined. But this would be of importance for any forms you would have. To use you just add some code such as:

    $usrName=mysql_escape_string($usrName);

    one for each field on a form, than you can do

    $result=mysql_result("SELECT * FROM abc WHERE usrName='$usrName', $gDB);

    This will protect you from users who enter Select, DROP, and other statements in your data field.

    ALnisa

    -- 
       .........................................
        Alnisa  Allgood
        Executive Director
        Nonprofit Tech
        (ph) 415.337.7412  (fx) 415.337.7927
        (url)  http://www.nonprofit-techworld.org
        (url)  http://www.nonprofit-tech.org
        (url)  http://www.tech-library.org
       .........................................
        Nonprofit Tech E-Update
        mailto:nonprofit-tech-subscribeegroups.com
       .........................................
        transforming nonprofits through technology
       .........................................
    

    attached mail follows:


    Well, I've got a few test scripts to run by following the suggestions from the posts. There's just one thing that's not quite right yet. The "#!/usr/bin/php" line appears at the top of the page. For instance when I run the following script from the cgi-bin:

    #!/usr/bin/php <? phpinfo(); ?>

    The phpinfo page comes up fine, but "#!/usr/bin/php" appears at the top. This happens whether I call the script "test.php" or "test.cgi". Appreciate any tips on how to get rid of it or why it's there.

    Thanks, SW

    On Saturday 16 November 2002 12:17 am, you wrote: > I'm not intending to run the script from the shell. What I am trying to do > is encrypt emails with Gnupg. The problem is Gnupg runs as my user name > and php runs as nobody. So I'm trying to run a php script as cgi to > deliver the data to Gnupg since a cgi script will run as my username. I am > using a perl script right now and it works, but the rest of the application > is in php, so its causing some me some design difficulties. > I'm going to try some the suggestions posted and see if I can get it > working. Thanks, > SW > > On Friday 15 November 2002 11:04 pm, you wrote: > > Joseph, I think he's trying to run the script from the shell--in which > > case it looks okay to me (besides perhaps a terminating semicolon on the > > last line) > > > > Marco

    attached mail follows:


    On Monday 18 November 2002 04:55, Scott wrote: > Well, I've got a few test scripts to run by following the suggestions from > the posts. There's just one thing that's not quite right yet. The > "#!/usr/bin/php" line appears at the top of the page. For instance when I > run the following script from the cgi-bin: > > #!/usr/bin/php

    RTFM! Use:

    #!/usr/bin/php -q

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

    /* If you don't drink it, someone else will. */

    attached mail follows:


    it's easy enough to pass php variable to javascript, but doing this the other way around without a form submit, or location (passing as a php $_GET variable) seems to be a little nightmare. it's easy enough to do it with the form submit, or a location command.

    thanks,

    Jeff

    attached mail follows:


    well, i guess there is NO OTHER WAY to check the availability of a domain other than using whois server <?php

    $domain = "google.com\n";

    $server = "rs.internic.net";

    $port = 43;

    $whois = fsockopen ($server,$port);

    $res = fputs ($whois, $domain);

    while (!feof ($whois)) {

    $data .= fgets($whois,2024);

    }

    echo $data;

    ?>

    I use the same concept as this minimalistic sample with a full list of whois servers here http://www.dynamix-tn.com/?go=whois just parse the domain and use the suitable server and most of the time it return a fresh information, just use the suitable server.

    PS : send your emails to php-generallists.php.net :)))

    Hatem

    ----- Original Message ----- From: "Chandu Nannapaneni" <chanduchandu.org> To: "Hatem Ben" <reflex_newsyahoo.fr> Sent: Sunday, November 17, 2002 8:21 PM Subject: Re: [PHP] Whois Search in PHP

    > No... U got me wrong.. > > Actually I'm looking for PHP scripts which can > tell about the availability of domains. > > Using a WhoIs script serves the purpose, but not always. > > So I want suggestions from anybody how I can Find out > the availability of a domain ( sld + tld ) for fresh registration. > > /Chandu > ----- Original Message ----- > From: "Hatem Ben" <reflex_newsyahoo.fr> > To: <php-generallists.php.net> > Sent: Monday, November 18, 2002 12:12 AM > Subject: Re: [PHP] Whois Search in PHP > > > > this is what the whois server return exactly for Google (using > > whois.internic.net): > > > > Whois Server Version 1.3 > > > > Domain names in the .com, .net, and .org domains can now be registered > > with many different competing registrars. Go to http://www.internic.net > > for detailed information. > > > > GOOGLE.COM.IS.THE.GREATEST.SEARCH.ENGINE.EVER.JIMPHILLIPS.ORG > > GOOGLE.COM > > > > To single out one record, look it up with "xxx", where xxx is one of the > > of the records displayed above. If the records are the same, look them up > > with "=xxx" to receive a full display for each record. > > > > >>> Last update of whois database: Sun, 17 Nov 2002 05:25:23 EST <<< > > > > The Registry database contains ONLY .COM, .NET, .ORG, .EDU domains and > > Registrars. > > > > it isn't the problem of the whois script only :)) > > > > Hatem > > > > ----- Original Message ----- > > From: "Chandu Nannapaneni" <chanduchandu.org> > > To: <php-generallists.php.net> > > Sent: Sunday, November 17, 2002 6:49 PM > > Subject: [PHP] Whois Search in PHP > > > > > > Hi guys, > > > > I have just downloaded whois2.php > > from http://www.easydns.com/~markjr/whois2/ > > > > > > It's working great except for certain domains, > > for ex : google.com is being shown as available. > > > > I am in need of a good PHP script which gives me > > accurate results about availability of domains. > > > > /Chandu > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > >

    attached mail follows:


    Hah,

    U gave just what I wanted. Good tip.

    /Chandu ----- Original Message ----- From: "John Nichel" <jnichelby-tor.com> To: "Chandu Nannapaneni" <chanduchandu.org> Sent: Monday, November 18, 2002 3:42 AM Subject: Re: [PHP] Whois Search in PHP

    > You could just do this, if you don't mind making a system call... > > echo `whois $domain`; > > Chandu Nannapaneni wrote: > > Hi guys, > > > > I have just downloaded whois2.php > > from http://www.easydns.com/~markjr/whois2/ > > > > > > It's working great except for certain domains, > > for ex : google.com is being shown as available. > > > > I am in need of a good PHP script which gives me > > accurate results about availability of domains. > > > > /Chandu > > > > > > > -- > By-Tor.com > It's all about the Rush > http://www.by-tor.com > > >

    attached mail follows:


    hi guys , having permission denied errors trying to access a directory created via ftp , when i create a directory ftp it has my login username and my group where the apache server group and user is different and cant seem to have writable access to it :|, its chmodded to 777 so no idea

    attached mail follows:


    Does anybody have any algorhythms to deal with image sizing (i.e. a picture needs to be this big).

    attached mail follows:


    currently I have the followig script:

    everything works fine, except for the fact that it doesn't seem to understand $overall->foo->foo();. It returns this error: "Fatal error: Call to a member function on a non-object in d:\apache\htdocs\classes.php on line 32"

    Now, I know the object is loaded, because the constructor is run, and puts out a 1 onscreen... I wish to know how to make this work... any help plz?

    thanx - Tularis <?php

    class overall { var $loaded; function load($class){ eval("\$$class = new $class;"); return true; } }

    class foo { var $bar;

    // Constructor function foo(){ if(!isset($this->bar)){ $this->bar = 1; }else{ $this->bar++; } echo $this->bar."<br>"; } }

    // Start actual loading $overall = new overall; $overall->load('foo');

    // As of here it won't work anymore... somehow $overall->foo-> doesn't work...

    $overall->foo->foo(); ?>

    (and if possible, I would also like to change $overall->foo->foo() to $foo->foo(), but still keeping that class as a 'subclass' to the overall one.)

    attached mail follows:


    just change make your new class global : class overall {

    var $loaded;

    function load($class){

    eval ("global \$$class;");

    eval("\$$class = new $class;");

    return true;

    }

    }

    then you can call it using $overall = new overall;

    $overall->load('foo');

    // This should work now ;).

    $foo->foo();

    Hatem

    ----- Original Message ----- From: "Tularis" <tularisxmbforum.com> To: <php-generallists.php.net> Sent: Sunday, November 17, 2002 11:21 PM Subject: [PHP] OOP-classes in PHP

    > currently I have the followig script: > > everything works fine, except for the fact that it doesn't seem to > understand $overall->foo->foo();. It returns this error: > "Fatal error: Call to a member function on a non-object in > d:\apache\htdocs\classes.php on line 32" > > Now, I know the object is loaded, because the constructor is run, and > puts out a 1 onscreen... I wish to know how to make this work... > any help plz? > > thanx > - Tularis > <?php > > class overall { > var $loaded; > > function load($class){ > eval("\$$class = new $class;"); > return true; > } > } > > class foo { > var $bar; > > // Constructor > function foo(){ > if(!isset($this->bar)){ > $this->bar = 1; > }else{ > $this->bar++; > } > echo $this->bar."<br>"; > } > } > > // Start actual loading > $overall = new overall; > $overall->load('foo'); > > // As of here it won't work anymore... somehow $overall->foo-> doesn't > work... > > $overall->foo->foo(); > ?> > > (and if possible, I would also like to change $overall->foo->foo() to > $foo->foo(), but still keeping that class as a 'subclass' to the overall > one.) > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

    attached mail follows:


    Hi all,

    I'm cooking tothether a tiny php html editor right now, (textarea kind of thing). To treat the text properly I need to encode characters like '"', '<', '>', and friends into something that doesn't confuse the browser.

    I got it to work with regexps, you can see a part of the decoder below. But I believe there must be some automatic stuff in php which does this. Anybody out there knowing about such a function?

    $pattern = "/&#34;/"; $replacement = "\""; $string = preg_replace($pattern ,$replacement, $string);

    By the way, do you think encoding and decoding special characters like this may replace addslashes() and stripslashes()? The html pages will be stored in a MySQL database.

    Also, addslashes() will reduce the chance of bad stuff being passed to MySQL. But is there a function which stops client-side scripts in whatever is entered by the user?

    Regards,

    Børge

    attached mail follows:


    Sure, its htmlentities(), combined (possibly) with nb2br()

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

    Marco

    On Sun, 2002-11-17 at 17:34, Børge Strand wrote: > > Hi all, > > I'm cooking tothether a tiny php html editor right now, (textarea kind > of thing). To treat the text properly I need to encode characters like > '"', '<', '>', and friends into something that doesn't confuse the > browser. > > I got it to work with regexps, you can see a part of the decoder > below. But I believe there must be some automatic stuff in php which > does this. Anybody out there knowing about such a function? > > $pattern = "/&#34;/"; > $replacement = "\""; > $string = preg_replace($pattern ,$replacement, $string); > > By the way, do you think encoding and decoding special characters like > this may replace addslashes() and stripslashes()? The html pages will > be stored in a MySQL database. > > Also, addslashes() will reduce the chance of bad stuff being passed to > MySQL. But is there a function which stops client-side scripts in > whatever is entered by the user? > > > Regards, > > Børge > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    > I'm cooking tothether a tiny php html editor right now, (textarea kind > of thing). To treat the text properly I need to encode characters like > '"', '<', '>', and friends into something that doesn't confuse the > browser.

    Htmlentities() or htmlspecialchars() > By the way, do you think encoding and decoding special characters like > this may replace addslashes() and stripslashes()? The html pages will > be stored in a MySQL database.

    No. There is no HTML entity for the single quote, so those will remain unchanged. If you use all double quotes for string delimiters in your queries, then you could skip addslashes(). > Also, addslashes() will reduce the chance of bad stuff being passed to > MySQL. But is there a function which stops client-side scripts in > whatever is entered by the user?

    No, not really. Using strip_tags() or htmlentities() is the best way to go on user data. It will prevent the HTML or JS that's in the input from being evaluated.

    ---John Holmes...

    attached mail follows:


    ProHosters

    http://www.prohosters.com

    Good plans, Good Price, Great Support.

    I recommend the semi dedicated plans.

    Cheers

    Brendon

    attached mail follows:


    I'm looking for a good way to convert minutes to hours, days, or years - the largest it will fit into. For example, 120 would become "2 hours". 90 would become "1 hour and 30 minutes". Any ideas?

    -- 
    The above message is encrypted with double rot13 encoding.  Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
    

    attached mail follows:


    OK...I wrote this...is this what you want?

    return english_time("64925149");

    function english_time($minutes) { while ($minutes>=525600) {$years++;$minutes-=525600;} while ($minutes>=1440) {$days++;$minutes-=1440;} while ($minutes>=60) {$hours++;$minutes-=60;} if ($years) { $string[] = ( $years == 1) ? "1 year" : "$years years"; } if ($days) { $string[] = ( $days == 1) ? "1 day" : "$days days"; } if ($hours) { $string[] = ( $hours == 1) ? "1 hour" : "$hours hours"; } if ($minutes) { $string[] = ( $minutes == 1) ? "1 minute" : "$minutes minutes"; } return implode(", ",$string); }

    "Leif K-Brooks" <eurleifbuyer-brokerage.com> wrote in message news:3DD81BD8.4090205buyer-brokerage.com... > I'm looking for a good way to convert minutes to hours, days, or years - > the largest it will fit into. For example, 120 would become "2 hours". > 90 would become "1 hour and 30 minutes". Any ideas? > > -- > The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. > >

    attached mail follows:


    > OK...I wrote this...is this what you want? > > > return english_time("64925149"); > > function english_time($minutes) > { > while ($minutes>=525600) {$years++;$minutes-=525600;} > while ($minutes>=1440) {$days++;$minutes-=1440;} > while ($minutes>=60) {$hours++;$minutes-=60;} > if ($years) { $string[] = ( $years == 1) ? "1 year" : "$years years"; } > if ($days) { $string[] = ( $days == 1) ? "1 day" : "$days days"; } > if ($hours) { $string[] = ( $hours == 1) ? "1 hour" : "$hours hours"; } > if ($minutes) { $string[] = ( $minutes == 1) ? "1 minute" : "$minutes > minutes"; } > return implode(", ",$string); > }

    I wrote a solution to the same problem, available at http://www.phpcoded.com/?DO=viewCode&ID=88

    I do believe that my solution is more efficent, considering that I use modulus.

    Jome

    attached mail follows:


    Why i can't tranfer data from one table to another with this code? I can't pass "$reg" to $c and $t... : \ thanks

    <? $ligacao=mysql_connect("localhost","","") or die (mysql_error()); $real="INSERT INTO divx (titulo,cds) VALUES ('$t','$c')"; $temp="SELECT * FROM divxtemp"; //$num=mysql_affected_rows(); $restemp=mysql_db_query("DB_nac31915",$temp) or die (mysql_error()); if ($ligacao) { while($reg=mysql_fetch_array($restemp)) { $t=$reg["titulo"]; $c=$reg["cds"]; mysql_db_query("DB_nac31915",$real) or die (mysql_error()); } } mysql_close(); ?>

    attached mail follows:


    > Why i can't tranfer data from one table to another with this code? I can't > pass "$reg" to $c and $t... : \ > thanks > > <? > $ligacao=mysql_connect("localhost","","") or die (mysql_error()); > $real="INSERT INTO divx (titulo,cds) VALUES ('$t','$c')";

    move the above line...

    > $temp="SELECT * FROM divxtemp"; > //$num=mysql_affected_rows(); > $restemp=mysql_db_query("DB_nac31915",$temp) or die (mysql_error()); > if ($ligacao) > { > while($reg=mysql_fetch_array($restemp)) > { > $t=$reg["titulo"]; > $c=$reg["cds"];

    to here...

    > mysql_db_query("DB_nac31915",$real) or die (mysql_error()); > } > } > mysql_close(); > ?>

    The problem you're having is that $t and $c are evaluated when you assign that string to $real, NOT when it's used in mysql_db_query(). Since they are empty at that time, you're creating a SQL statement that's ... VALUES ('','') and executing it every time.

    Also, the mysql_db_query() function is depreciated. You'll have to use mysql_select_db() to select the database you want to use, then use mysql_query() to issue your queries.

    ---John Holmes...

    attached mail follows:


    Hello.

    I have totally no clue at all wether I am posting in the right newsgroup here, and I was not planning on caching all messages in my (first time used, I prefer Outlook) Outlook Express before searching. So if I am disobeying all rules here ... I'm sorry ... I just am not an experienced news-service user ...

    Now, my question/remark/bug report. It concerns, ad you could guess, the preg_replace_callback function. The manual is very short on this function, and the comments posted on the online-version of the manual, are not helping me, either ... I am trying to use this function as the regular preg_replace can be used, namely woth a patterns-array, a replacement-array (which gets the callback-array) and a subject. This doesn't work, though ... It appears as if the callback-variant of the preg_replace version isn't capable of handling multiple patterns at a time. This is the error-message I get: "Warning: preg_replace_callback() requires argument 2, 'Array', to be a valid callback in ...". I pass it, as a second argument, an Array that consists of strings containing the names of functions I defined later in my php-file. (Hmmm ... Could that be the problem? Tha fact that I define the functions AFTER I give the Array tot the functions? Don't think so, though ...)

    Did anybody have the same experience, or am I really doing something wrong?

    Tnx in advance for any reply!!

    Bikeman

    attached mail follows:


    "callback" should be the name of a function that determines what the matched pattern will be replaced with.

    Maybe you just need the regular preg_replace(), instead of the one with callback?

    ---John Holmes...

    > -----Original Message----- > From: Bikeman [mailto:bikeman82hotmail.com] > Sent: Sunday, November 17, 2002 2:23 PM > To: phpdoclists.php.net; php-generallists.php.net; php- > langlists.php.net > Subject: [PHP] preg_replace_callback > > Hello. > > I have totally no clue at all wether I am posting in the right newsgroup > here, and I was not planning on caching all messages in my (first time > used, > I prefer Outlook) Outlook Express before searching. So if I am disobeying > all rules here ... I'm sorry ... I just am not an experienced news- > service > user ... > > Now, my question/remark/bug report. It concerns, ad you could guess, the > preg_replace_callback function. The manual is very short on this > function, > and the comments posted on the online-version of the manual, are not > helping > me, either ... I am trying to use this function as the regular > preg_replace > can be used, namely woth a patterns-array, a replacement-array (which gets > the callback-array) and a subject. This doesn't work, though ... It > appears as if the callback-variant of the preg_replace version isn't > capable > of handling multiple patterns at a time. This is the error-message I get: > "Warning: preg_replace_callback() requires argument 2, 'Array', to be a > valid callback in ...". I pass it, as a second argument, an Array that > consists of strings containing the names of functions I defined later in > my > php-file. (Hmmm ... Could that be the problem? Tha fact that I define > the > functions AFTER I give the Array tot the functions? Don't think so, > though > ...) > > Did anybody have the same experience, or am I really doing something > wrong? > > Tnx in advance for any reply!! > > Bikeman > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

    attached mail follows:


    Please make all replies to this ONLY go to php-general, thank you.

    On Sun, 17 Nov 2002, John W. Holmes wrote:

    > "callback" should be the name of a function that determines what the > matched pattern will be replaced with. > > Maybe you just need the regular preg_replace(), instead of the one with > callback? > > ---John Holmes... > > > -----Original Message----- > > From: Bikeman [mailto:bikeman82hotmail.com] > > Sent: Sunday, November 17, 2002 2:23 PM > > To: phpdoclists.php.net; php-generallists.php.net; php- > > langlists.php.net > > Subject: [PHP] preg_replace_callback > > > > Hello. > > > > I have totally no clue at all wether I am posting in the right > newsgroup > > here, and I was not planning on caching all messages in my (first time > > used, > > I prefer Outlook) Outlook Express before searching. So if I am > disobeying > > all rules here ... I'm sorry ... I just am not an experienced news- > > service > > user ... > > > > Now, my question/remark/bug report. It concerns, ad you could guess, > the > > preg_replace_callback function. The manual is very short on this > > function, > > and the comments posted on the online-version of the manual, are not > > helping > > me, either ... I am trying to use this function as the regular > > preg_replace > > can be used, namely woth a patterns-array, a replacement-array (which > gets > > the callback-array) and a subject. This doesn't work, though ... It > > appears as if the callback-variant of the preg_replace version isn't > > capable > > of handling multiple patterns at a time. This is the error-message I > get: > > "Warning: preg_replace_callback() requires argument 2, 'Array', to be > a > > valid callback in ...". I pass it, as a second argument, an Array > that > > consists of strings containing the names of functions I defined later > in > > my > > php-file. (Hmmm ... Could that be the problem? Tha fact that I > define > > the > > functions AFTER I give the Array tot the functions? Don't think so, > > though > > ...) > > > > Did anybody have the same experience, or am I really doing something > > wrong? > > > > Tnx in advance for any reply!! > > > > Bikeman > > > > > > > > -- > > 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:


    Hi all

    I have a script that is currently running on my server which intercepts messages being sent into a specific address, it is piped to this through an alias in the aliases file. What would I need to add to this script in order for it to firstly check for the presence of attachments to any email message and secondly if any are detected how can these be saved to disk locally on the server that this is running on

    Thanks

    Simon

    attached mail follows:


    On Monday 18 November 2002 07:34, Simon Chilmaid wrote: > Hi all > > I have a script that is currently running on my server which intercepts > messages being sent into a specific address, it is piped to this through an > alias in the aliases file. What would I need to add to this script in order > for it to firstly check for the presence of attachments to any email > message and secondly if any are detected how can these be saved to disk > locally on the server that this is running on

    You can have a look at the chapters "IMAP, POP3 and NNTP functions" & "mailparse functions" to see if there are any suitable functions there.

    What I do is run reformime (google for that if you need to) to extract all message parts.

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

    /* QOTD: Silence is the only virtue he has left. */

    attached mail follows:


    Hi Guys I'm installing PHP 4.2.3 on Apache Server 2.0.41. If I try localhost or localhost/manual it work perfectly, Now I want to run my php program, I developed on IIS 5.0 environment, on my new Apache server I get the message below , and my browser display HTTP 400 - BAD request page, which means The page cannot be found although all the files are there. [Mon Nov 18 11:04:28 2002] [error] [client 127.0.0.1] Invalid URI in request GET /domains/home.php HTTP/1.1, referer: http://localhost/domains/ I put these few line in my httpd.conf a.. ScriptAlias /php/ "c:/php/" b.. AddType application/x-httpd-php .php .phtml c.. Action application/x-httpd-php "/php/php.exe"

    attached mail follows:


    READ THE MYSQL MANUAL -- IT DOCUMENTS EVERYTHING.

    Justin

    on 18/11/02 2:19 AM, Stephen (webmastermelchior.us) wrote:

    > Thanks, this is what I was looking for. But does it ommit common words like > 'it' or 'the?' > > > ----- Original Message ----- > From: "Marco Tabini" <marcottabini.ca> > To: "Stephen" <webmastermelchior.us> > Cc: "PHP List" <php-generallists.php.net> > Sent: Saturday, November 16, 2002 10:47 PM > Subject: Re: [PHP] Searching a Table > > >> Ok, then you can use FULLTEXT queries. >> >> Take a look here: >> >> http://www.mysql.com/doc/en/Fulltext_Search.html >> >> >> Marco >> >> On Sat, 2002-11-16 at 22:49, Stephen wrote: >>> I don't have control of my server, it's hosted. All my content is in a > MySQL >>> database and is outputed through a php page that selects the information >>> from an id variable passed through the URL... >>> >>> >>> ----- Original Message ----- >>> From: "Marco Tabini" <marcottabini.ca> >>> To: "Stephen" <webmastermelchior.us> >>> Cc: "PHP List" <php-generallists.php.net> >>> Sent: Saturday, November 16, 2002 10:38 PM >>> Subject: Re: [PHP] Searching a Table >>> >>> >>>> Well, if you're using a database, say MySQL, you can look at FREETEXT >>>> indexes and queries. If you want to index your web pages, you should > be >>>> looking at a search engine that works with your web server. For > example, >>>> ht:dig (http://www.htdig.org/) works with Apache. >>>> >>>> >>>> Marco >>>> >>>> -- >>>> ------------ >>>> php|architect - The magazine for PHP Professionals >>>> The first monthly worldwide magazine dedicated to PHP programmers >>>> Check us out on the web at http://www.phparch.com >>>> >>>> >>>> >>>> On Sat, 2002-11-16 at 22:40, Stephen wrote: >>>>> I need to make a search engine for my site. Instead of making a > table >>> with all the words of my content of my reviews, I need to make it > simple. >>> How could you search a table of articles (let's say game_reviews) by >>> comparing keywords the user types in, to the text of the article? All > the >>> tutorials I can find make a table with a list of words of every single >>> keyword... >>>>> >>>>> >>>>> Thanks, >>>>> Stephen Craton >>>>> http://www.melchior.us >>>>> >>>>> "Life is a gift from God. Wasting it is like destroying a gift you > got >>> from the person you love most." -- http://www.melchior.us >>>>> ---- >>>>> >>>> >>>>> -- >>>>> 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 >>>> >>>> >>> >> >> >> >

    Justin French -------------------- http://Indent.com.au Web Developent & Graphic Design --------------------

    attached mail follows:


    Hi all,

    Does anyone have a recommendation for a stable yet flexible application framework for PHP?

    Something similar to Midgard that will run on Windows would be nice.

    Thanks!

    -- 
      _____  _____
    |     ||   __| : Michael She  : michael.shebinaryio.com
    | | | ||__   | : Mobile       : (519) 589-7309
    |_|_|_||_____| : WWW Homepage : http://www.binaryio.com/
    

    attached mail follows:


    i'm looking for information on how to open mailboxes stored in user directories using imap_open. i've lookd into the c-client documentation as well as php.net and haven't had any luck. my experience so far is that imap_open will just open a mailbox stored in /var/spool/mail.

    has anyone out there tried such a thing and had success? any help anyone can provide would be great.

    -bill

    attached mail follows:


    On Sun, 17 Nov 2002 21:00:13 -0500 (EST), you wrote:

    >i'm looking for information on how to open mailboxes stored in user >directories using imap_open. i've lookd into the c-client documentation >as well as php.net and haven't had any luck. my experience so far is that imap_open will >just open a mailbox stored in /var/spool/mail.

    The function imap_open() is for opening an connection to an IMAP server. It doesn't operate directly on a file system and it is ignorant of the actual mailbox implementation as this is all abstracted by the IMAP protocol. Where the mail is stored is a function of your IMAP server, not PHP.

    attached mail follows:


    > The function imap_open() is for opening an connection to an IMAP > server. It doesn't operate directly on a file system and it is > ignorant of the actual mailbox implementation as this is all > abstracted by the IMAP protocol. Where the mail is stored is a > function of your IMAP server, not PHP.

    That's not actually true. The imap functions are an abstraction on top of many different backends, not just imap. You can talk to pop and nntp servers as well, for example, and yes, even a local mailstore with no server involved at all.

    -Rasmus

    attached mail follows:


    OK... I have the following code which works perfect. however, when submit is pressed I would like it to display the pin number in the form again.

    <form action="<?=$HTTP_SERVER_VARS['PHP_SELF']?>" method="post" name="search"> <table border="0" cellspacing="3" cellpadding="3">8 <tr align="left"> <td >Pin :</td> <td colspan="2"><input type="text" name="pin" maxlength="20"></td> <td align="right"><input type="image" src="/images/find-pin.gif" style="background-color:#C2C2C2" name="submit" value="Find Pin" ></td> </tr><tr> <td>Batch :</td> <td><input type="text" name="batch" maxlength="8"></td> <td>Serial :</td> <td><input type="text" name="serial" maxlength="8"></td> </tr> </table>

    attached mail follows:


    <input type="text" name="pin" value="<?php echo $_POST['pin']; ?>" maxlength="20">

    Jeff Bluemel wrote: > OK... I have the following code which works perfect. however, when submit > is pressed I would like it to display the pin number in the form again. > > <form action="<?=$HTTP_SERVER_VARS['PHP_SELF']?>" method="post" > name="search"> > <table border="0" cellspacing="3" cellpadding="3">8 > <tr align="left"> > <td >Pin :</td> > <td colspan="2"><input type="text" name="pin" maxlength="20"></td> > <td align="right"><input type="image" src="/images/find-pin.gif" > style="background-color:#C2C2C2" name="submit" value="Find Pin" ></td> > </tr><tr> > <td>Batch :</td> > <td><input type="text" name="batch" maxlength="8"></td> > <td>Serial :</td> > <td><input type="text" name="serial" maxlength="8"></td> > </tr> > </table> > > >

    -- 
    By-Tor.com
    It's all about the Rush
    http://www.by-tor.com
    

    attached mail follows:


    I didn't know I could set a value on that... thanks for the info.

    "John Nichel" <jnichelby-tor.com> wrote in message news:3DD844B4.703by-tor.com... > <input type="text" name="pin" value="<?php echo $_POST['pin']; ?>" > maxlength="20"> > > Jeff Bluemel wrote: > > OK... I have the following code which works perfect. however, when submit > > is pressed I would like it to display the pin number in the form again. > > > > <form action="<?=$HTTP_SERVER_VARS['PHP_SELF']?>" method="post" > > name="search"> > > <table border="0" cellspacing="3" cellpadding="3">8 > > <tr align="left"> > > <td >Pin :</td> > > <td colspan="2"><input type="text" name="pin" maxlength="20"></td> > > <td align="right"><input type="image" src="/images/find-pin.gif" > > style="background-color:#C2C2C2" name="submit" value="Find Pin" ></td> > > </tr><tr> > > <td>Batch :</td> > > <td><input type="text" name="batch" maxlength="8"></td> > > <td>Serial :</td> > > <td><input type="text" name="serial" maxlength="8"></td> > > </tr> > > </table> > > > > > > > > > -- > By-Tor.com > It's all about the Rush > http://www.by-tor.com >

    attached mail follows:


    Does anybody know of a SELECT QUERY that will select every other record of a table ? I want to do this so that I can display my products in 2 columns (I will also be using arrays of course).

    The first column would show the result of the first query starting at record 1. The second column would show the result of the second query starting at record 2. Each query just needs to skip a record so that products are ordered correctly (1,2 in first row. 3,4 in second row...)

    And I want the query to work without relying on ID fields. The reason being is that when you delete a record, you can end up with a column ID of say 1,2,3,5 (like if you delete record 4).

    Originally, I set up my tables up using Dreamweaver with repeat regions. But that's only ok if you want one record per row going down vertically. The Macromedia web site does show you how to display all your records repeating horizontally but doesn't tell you how to limit to 2 columns. So both ways are useless to me.

    Darren.

    attached mail follows:


    Okay, stop and take a break. Now come back to the problem and ask yourself how you can display the results, two at a time on each row. After you display every second item, you want to end the row and start another one. Something like this...

    <? $result = mysql_query(" ... get all rows ... "); echo "<table><tr>"; while($r = mysql_fetch_row($result)) { echo "<td>show your data here, $r[0], $r[1], etc...</td>"; if($i++ & 1) { echo "</tr>\n<tr>"; } } echo "</table>"; ?>

    but you'll have to come up with a way to handle an odd number of rows being returned and making it format the table properly, etc...

    Hope that helps.

    ---John Holmes...

    > -----Original Message----- > From: Darren McPhee [mailto:dsmcpheehotmail.com] > Sent: Sunday, November 17, 2002 9:17 PM > To: php-generallists.php.net > Subject: [PHP] Query to select every other record > > Does anybody know of a SELECT QUERY that will select every other record of > a > table ? I want to do this so that I can display my products in 2 columns > (I > will also be using arrays of course). > > The first column would show the result of the first query starting at > record > 1. The second column would show the result of the second query starting > at > record 2. Each query just needs to skip a record so that products are > ordered correctly (1,2 in first row. 3,4 in second row...) > > And I want the query to work without relying on ID fields. The reason > being > is that when you delete a record, you can end up with a column ID of say > 1,2,3,5 (like if you delete record 4). > > Originally, I set up my tables up using Dreamweaver with repeat regions. > But that's only ok if you want one record per row going down vertically. > The Macromedia web site does show you how to display all your records > repeating horizontally but doesn't tell you how to limit to 2 columns. So > both ways are useless to me. > > Darren. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

    attached mail follows:


    > Does anybody know of a SELECT QUERY that will select every > other record of a > table ? I want to do this so that I can display my products > in 2 columns (I > will also be using arrays of course).

    Don't know of a select that'll do it, but then I don't really understand why you'd want to either.

    (UNCHECKED psuedo code) $query_result = mysql_query("whatever");

    Check_that_you_got_a_result(); { start_your_html_table_to_display_stuff(); start_first_row_of_table();

    while(grab_a_row_from_query_result()) { if (havent_started_first_column()) { print_a_line_of_data(); close_first_column(); start_second_column(); } else { print_a_line_of_data(); close_second_column(); close_table_row(); start_table_row(); } } if (still_in_first_column()) { close_column(); } close_table(); }

    Well, something like that anyway - I haven't fully considered closing off your rows and table properly but that's pretty much what I'd do to make this work, and it still only needs one db query.

    CYA, Dave

    attached mail follows:


    #20 BOTHA CRESCENT, SADTON,JOHANNESBURG, SOUTH AFRICA. Tel/Fax:+:+27-834377724 E-mail:osd_59yahoo.co.uk

    Dear sir,

    In order to transfer out (USD 126 M) One hundred and twenty six million United States Dollars) from NED Bank in south africa. I have the courage to ask you to look for a reliable and honest person who will be capable for this important business believing that you will never let me down either now or in future.

    I am Mr. DESMOND WEST,the Chief auditor of NED Bank in south africa. There is an account opened in this bank in 1980 and since 1990 nobody has operated on this account again. After going through some old files in the records, I discovered that if I do not remit this money out urgently it would be forfeited for nothing. The owner of this account is Mr. ADAMS .H. NICOLES, a foreigner, profession and he died since 1990. No other person knows about this account or any thing concerning it, the account has no other beneficiary and my investigation proved to me as well that this company does not know anything about this account and the amount involved is (USD 126M) One hundred and twenty six million United States Dollars million dollars.

    I want to first transfer USDM twenty six million United States Dollars from this money into a safe foreigners account abroad before the rest, but I don't know any foreigner. I am only contacting you as a foreigner because this money cannot be approved to a local bank here, but can only be approved to any foreign account because the money is in us dollars and the former owner of the account is Mr. ADAMS .H. NICOLES he is a foreigner too.

    I know that this message will come to you as a surprise as we don't know ourselves before. We will sign an agreement, but be sure that it is real and a genuine business.

    I only got your contact address from my secretary who operates computer, with believe in God that you will never let me down in this business. You are the only person that I have contacted in this business; so please reply urgently so that I will inform you the next step to take immediately. Send also your private telephone and fax number including the full details of the account to be used for the deposit. I want us to meet face to face or sign a binding agreement to bind us together so that you can receive this money into a foreign account or any account of your choice where the fund will be safe. And I will fly to your country for withdrawal and sharing and other investments.

    I am contacting you because of the need to involve a foreigner with foreign account and foreign beneficiary. I need your full co-operation to make this work fine because the management is ready to approve this payment to any foreigner, who has correct

    information of this account, which I will give to you

    later immediately, if you are able and with capability to handle such amount in strict confidence and trust according to my instructions and advice for our mutual benefit because this opportunity will never come again in my life. I need truthful person in this business because I don't want to make mistake I need your strong assurance and trust.

    With my position now in the office I can transfer this money to any foreigner's reliable account, which you

    can provide with assurance that this money will be intact pending my physical arrival in your country for sharing. I will destroy all documents of transaction immediately we receive this money leaving no trace to any place. You can also come to discuss with me face to face after which I will make this remittance in your presence and two of us will fly to your country at least two days ahead of the money going into the account.

    I will apply for annual leave to get visa immediately I hear from you that you are ready to act and receive this fund in your account. I will use my position and influence to effect legal approvals and onward transfer of this money to your account with appropriate clearance forms of the ministries and foreign exchange departments.

    At the conclusion of this business, you will be given 35% of the total amount, 60% will be for me, while 5% will be for expenses both parties might have incurred during the process of transferring.

    I look forward to your earliest reply. Or by my Tel/Fax:+27-834377724

    Yours truly, MR.DESMOND WEST

    __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com

    attached mail follows:


    This is great!

    Don't anybody tell anyone... wait!

    :-)

    attached mail follows:


    oh i caught you, i'll go before you :-)

    _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail

    attached mail follows:


    idiot.

    desmond west wrote:

    >#20 BOTHA CRESCENT, >SADTON,JOHANNESBURG, >SOUTH AFRICA. >Tel/Fax:+:+27-834377724 >E-mail:osd_59yahoo.co.uk > >Dear sir, > >In order to transfer out (USD 126 M) One hundred >and >twenty six million United States Dollars) from >NED Bank in south africa. I have the courage to ask >you >to >look for a reliable and honest person who will be >capable for this important business believing >that >you >will never let me down either now or in future. > >I am Mr. DESMOND WEST,the Chief auditor of >NED Bank in south africa. >There is an account opened in this bank in 1980 >and >since 1990 nobody has operated on this account >again. >After going through some old files in the >records, >I >discovered that if I do not remit this money out >urgently it would be forfeited for nothing. The >owner >of this account is Mr. ADAMS .H. NICOLES, a >foreigner, >profession and he died since 1990. No other >person >knows about this account or any thing concerning >it, >the account has no other beneficiary and my >investigation proved to me as well that this >company >does not know anything about this account and the >amount involved is (USD 126M) One hundred and >twenty >six million United States Dollars million >dollars. > >I want to first transfer USDM twenty six million >United States Dollars from this money into a safe >foreigners account abroad before the rest, but I >don't >know any foreigner. >I am only contacting you as a foreigner because >this >money cannot be approved to a local bank here, >but >can >only be approved to any foreign account because >the >money is in us dollars and the former owner of >the >account is Mr. ADAMS .H. NICOLES he is a foreigner >too. > >I know that this message will come to you as a >surprise as we don't know ourselves before. We >will >sign an agreement, but be sure that it is real >and >a >genuine business. > >I only got your contact address from my secretary >who operates computer, with believe in God that >you >will never let me down in this business. You are >the >only person that I have contacted in this >business; >so >please reply urgently so that I will inform you >the >next step to take immediately. >Send also your private telephone and fax number >including the full details of the account to be >used >for the deposit. I want us to meet face to face >or >sign a binding agreement to bind us together so >that >you can receive this money into a foreign account >or >any account of your choice where the fund will be >safe. And I will fly to your country for >withdrawal >and sharing and other investments. > >I am contacting you because of the need to >involve >a >foreigner with foreign account and foreign >beneficiary. I need your full co-operation to >make >this work fine because the management is ready to >approve this payment to any foreigner, who has >correct > >information of this account, which I will give to >you > > >later immediately, if you are able and with >capability >to handle such amount in strict confidence and >trust >according to my instructions and advice for our >mutual >benefit because this opportunity will never come >again >in my life. I need truthful person in this >business >because I don't want to make mistake I need your >strong assurance and trust. > >With my position now in the office I can transfer >this money to any foreigner's reliable account, which >you > > >can provide with assurance that this money will >be >intact pending my physical arrival in your >country >for >sharing. I will destroy all documents of >transaction >immediately we receive this money leaving no >trace >to >any place. You can also come to discuss with me >face >to face after which I will make this remittance >in >your presence and two of us will fly to your >country >at least two days ahead of the money going into >the >account. > >I will apply for annual leave to get visa >immediately >I hear from you that you are ready to act and >receive >this fund in your account. I will use my position >and >influence to effect legal approvals and onward >tran