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: Tue Oct 01 2002 - 11:32:17 CDT

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

    php-general Digest 1 Oct 2002 16:32:17 -0000 Issue 1618

    Topics (messages 118311 through 118388):

    Re: image wrapper - graphs
            118311 by: Smith, Benjamin
            118320 by: Jome

    Email user
            118312 by: prasanna shetye

    Configure php for windows
            118313 by: Uma Shankari T.
            118317 by: Peter Houchin
            118318 by: Uma Shankari T.
            118319 by: Khalid El-Kary

    Re: .php to .html?
            118314 by: Steve Yates
            118315 by: Steve Yates

    Re: error in php script
            118316 by: prasanna shetye

    remote desktop control
            118321 by: Rahul
            118322 by: Smith, Benjamin
            118334 by: Rahul
            118378 by: Alex Moundalexis
            118380 by: Bill Farrell

    Re: PHP Include Help
            118323 by: Erwin
            118359 by: Jay Blanchard

    conditional statement problems
            118324 by: Pablo Oliva
            118325 by: Tom Rogers
            118326 by: René Moonen
            118328 by: René Moonen
            118352 by: Ford, Mike [LSS]

    Re: Apache 1.3.26 + PHP 4.2.3
            118327 by: Chris Hewitt
            118349 by: James Mackie
            118354 by: Erwin
            118362 by: Chris Hewitt
            118375 by: Rick Widmer

    imap problems
            118329 by: Chris Woollard

    Thanks!
            118330 by: Rick Beckman

    IMAP Failing to connect
            118331 by: Chris Woollard

    Re: mail headers & mail filtering
            118332 by: debbie_dyer

    Re: Multiple Tables Select
            118333 by: Chris Hewitt

    Install php under some other drive
            118335 by: Uma Shankari T.

    Re: mail headers & filtering
            118336 by: Debbie Dyer
            118348 by: Debbie Dyer

    Re: GZip
            118337 by: Marek Kilimajer

    trans_sid? (was: SV: [PHP] Quickie)
            118338 by: Daniel Alsén
            118340 by: Daniel Alsén
            118341 by: Justin French
            118342 by: Chris Marschall
            118344 by: Daniel Alsén
            118345 by: Justin French
            118346 by: Daniel Alsén

    Re: Reading a PHP-as-CGI script into another PHP script
            118339 by: Marek Kilimajer

    tricky gd question
            118343 by: electroteque

    GET POST Problem
            118347 by: Francisco Vaucher
            118351 by: Francisco Vaucher

    PHP and JavaScript on a validation NIGHTMARE
            118350 by: Riccardo Sepe
            118355 by: skitum
            118356 by: Riccardo Sepe

    Re: Regular Expression
            118353 by: Ford, Mike [LSS]

    spell checker
            118357 by: Lowell Allen
            118358 by: Justin French
            118364 by: Lowell Allen

    OOP class names
            118360 by: Davíđ Örn Jóhannsson

    A MySQL question
            118361 by: ed.home.homes2see.com
            118363 by: Jon Haworth

    Serialize image
            118365 by: Todd Pasley

    Re: vulnerabilities??
            118366 by: Paul Nicholson

    How to get a total...
            118367 by: Chuck Payne
            118368 by: Paul Nicholson
            118369 by: Justin French

    $_SESSION only takes 1 character?
            118370 by: Tim Stoop
            118374 by: . Edwin

    apache2.x and php
            118371 by: Anil Garg
            118379 by: Rasmus Lerdorf

    PHPDoc?
            118372 by: Francis
            118376 by: Scott Houseman

    Re: $_SESSION strange behaviour? (was: $_SESSION only takes 1 character?)
            118373 by: Tim Stoop

    Stopping apache from sending HTTP headers
            118377 by: Thiago Rafael Becker

    Quick question.
            118381 by: Simon Angell
            118382 by: Adam Voigt
            118384 by: Robert Cummings

    PHP with Oracle
            118383 by: Jadiel Flores
            118386 by: Francisco Vaucher

    PEAR DB problem
            118385 by: Peter Hall

    Works from the command line but NOT from PHP
            118387 by: DonPro
            118388 by: Chris Hewitt

    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:


    Try gnuplot:

    -----Original Message-----
    From: Mike Mannakee [mailto:mikebasementideas.com]
    Sent: Tuesday, 1 October 2002 2:31 PM
    To: php-generallists.php.net
    Subject: [PHP] image wrapper - graphs

    Hi,

    Does anyone know of image creation libraries that will generate graphs?

    Mike

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

    attached mail follows:


    > Does anyone know of image creation libraries that will generate graphs?

    http://www.aditus.nu/jpgraph/

    Jome

    attached mail follows:


    Hi I have downloaded an email client twiggi from http://twiggi.sourceforge.net . It has complete funtionality of email client like read , compose . forward , folder management , etc . But the only problem is creating new account . Can you help me to create an email account on linux and / or windows os ?

    Have a nice time!

    Have a nice time!

    attached mail follows:


    Hello,

    I am trying to run php from the cd itself..apache and mysql are running..

    To what i have to change the following settings so that it will run from the cd.. *

    ScriptAlias /php/ "c:/path-to-php-dir/" *

    AddType application/x-httpd-php .php *

    AddType application/x-httpd-php .phtml *

    Action application/x-httpd-php "/php/php.exe"

    Can anyone please tell me how to do this ??

    Regards, Uma

    attached mail follows:


    ScriptAlias /php/ "c:/path-to-php-dir/"

    one would assume that you change the "C:/path-to-php-dir/" to the path of the cd drive to get it to work

    attached mail follows:


    Hello,

    On Tue, 1 Oct 2002, Peter Houchin wrote:

    PH> ScriptAlias /php/ "c:/path-to-php-dir/" PH> PH>one would assume that you change the "C:/path-to-php-dir/" to the path of PH>the cd drive to get it to work

    I have changed like the following you have mentioned above..abut anyway it couldn;t recognise the php extension file..Can anyone tell me is there any settings to be made ??

    Regards, Uma

    attached mail follows:


    Hi,

    why do you want to run it from a cd, PHP doesn't pass the 6 MB limit! i suggest for reliability reasons that you run PHP from your disk, i don't think Apache would do okay if it didn't fine the PHP path (in case that you eject the cd)

    do you have special reasons?

    khalid

    _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx

    attached mail follows:


    "Jean-Christian Imbeault" <jcmega-bucks.co.jp> wrote in message news:3D97E507.9090706mega-bucks.co.jp... > How can I make my pages come out as .html instead of .php?

    Rename your pages to .html, and configure Apache to send all .html pages through PHP:

    attached mail follows:


    "Steve Yates" <stevesrtware.com> wrote in message news:... > "Jean-Christian Imbeault" <jcmega-bucks.co.jp> wrote in message > news:3D97E507.9090706mega-bucks.co.jp... > > How can I make my pages come out as .html instead of .php? > > Rename your pages to .html, and configure Apache to send all .html pages > through PHP:

    Sorry, hit the wrong button. My example was to add this to httpd.conf:

    AddType application/x-httpd-php .html

    Note that this will parse every page, so is inefficient if you have many plain .html files (no PHP code).

    - Steve Yates - (A)bort, (R)etry, (T)oss computer across room?

    ~ Do you like my taglines? Add them to your messages and ~ laugh through hundreds more by downloading Taglinator ~ at www.srtware.com today!

    attached mail follows:


    Hi Thanks but the path is set . Othere php scripts are running well . My problem is as it is .

    Have a nice time!

    On Tue, 01 Oct 2002 Lejanson C. Go wrote : >Hello, > >I guess you forgot to edit your php.ini file. > >Append to the include_path the path to where your >index.php is located. > >For example, if your include files are located in. > > /var/www/html/include/ > >then your include_path would be > > include_path = "../php/include/:/var/www/html/include" > >I hope it works. > > >Regards, >Lejanson > > > > >prasanna shetye wrote: > >>Hello >> I have downloaded am email client named twiggi for linux . It >>has a configuration file which creates database and generates a config.php file . After running this file site starts to work . But when I surfed the index.php file or test.php file of site it gives error .. >> >>warning : failed opening ../index.php file in for inclution >>include_path =[../php/include] in Unknown on line 0. >> >>Can you help to solve this problem? >> >>Have a nice time! >> >> >> >>Have a nice time! >> > > > >-- Lejanson C. Go, SDE I >

    Have a nice time!

    attached mail follows:


    Hello all, Is it possible to implement Web Based Remote Desktop Control using PHP or anyother webbased language? Aim is to share the remote(visitor's) system(desktop). If possible, plz let me know how to proceed.

    Advance thanks, -sadha

    attached mail follows:


    Not really, no. It goes well beyond the capabilities of a server-side scripting language.

    There is a java implementation in VNC that allows this capability, though.

    -----Original Message----- From: Rahul [mailto:shadhankergmx.net] Sent: Tuesday, 1 October 2002 4:53 PM To: php-generallists.php.net Subject: [PHP] remote desktop control

    Hello all, Is it possible to implement Web Based Remote Desktop Control using PHP or anyother webbased language? Aim is to share the remote(visitor's) system(desktop). If possible, plz let me know how to proceed.

    Advance thanks, -sadha

    attached mail follows:


    Hello Smith,

    Thanks for your reply. Do you have any idea in implementing same with any other language? But VNC and all needs download process to use (control remote desktop). I'm asking abt web based(anywhere control- no need to download and install).

    if you have any idea in doing this, plz tell me.

    thanks a lot, -sadha

    From: Smith, Benjamin <benjamin.smithhp.com> To: <php-generallists.php.net> Sent: Tuesday, October 01, 2002 12:14 PM Subject: RE: [PHP] remote desktop control

    Not really, no. It goes well beyond the capabilities of a server-side scripting language.

    There is a java implementation in VNC that allows this capability, though.

    Hello all,

    Is it possible to implement Web Based Remote Desktop Control using PHP or anyother webbased language? Aim is to share the remote(visitor's) system(desktop). If possible, plz let me know how to proceed.

    Advance thanks, -sadha

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

    attached mail follows:


    Read the documentation for VNC, and read what Ben wrote.

    VNC - http://www.uk.research.att.com/vnc/ "We have a Java viewer, which will run in any Java-capable browser." Read: no download required.

    Implementing in another language would be beyond the scope of this forum.

    - A

    On Tue, 1 Oct 2002, Rahul wrote:

    > Hello Smith, > > Thanks for your reply. Do you have any idea in implementing same with any > other language? > But VNC and all needs download process to use (control remote desktop). > I'm asking abt web based(anywhere control- no need to download and install). > > if you have any idea in doing this, plz tell me. > > thanks a lot, > -sadha > > From: Smith, Benjamin <benjamin.smithhp.com> > To: <php-generallists.php.net> > Sent: Tuesday, October 01, 2002 12:14 PM > Subject: RE: [PHP] remote desktop control > > > Not really, no. It goes well beyond the capabilities of a server-side > scripting language. > > There is a java implementation in VNC that allows this capability, though. > > > Hello all, > > Is it possible to implement Web Based Remote Desktop Control using PHP or > anyother webbased language? > Aim is to share the remote(visitor's) system(desktop). > If possible, plz let me know how to proceed. > > > Advance thanks, > -sadha > > -- > 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:


    By the way, it works beautifully, either using the VNCViewer or through the java applet in a web browser. I do a lot of remote support and it's indispensible. Win2K seems to have some issues (frequent disconnects) but a refresh usually puts you right back. But on *nix systems, it's as stable as anything else I've ever used on any system.

    Also, if you're running on RedHat 7.1 or later, VNC comes with. If you didn't install it when you installed the rest of RedHat, the RPM is on the install CD. B

    --- Alex Moundalexis <alexmmoundalexis.com> wrote: > Read the documentation for VNC, and read what Ben > wrote. > > VNC - http://www.uk.research.att.com/vnc/ > "We have a Java viewer, which will run in any > Java-capable browser." > Read: no download required. > > Implementing in another language would be beyond the > scope of this forum. > > - A > > On Tue, 1 Oct 2002, Rahul wrote: > > > Hello Smith, > > > > Thanks for your reply. Do you have any idea in > implementing same with any > > other language? > > But VNC and all needs download process to use > (control remote desktop). > > I'm asking abt web based(anywhere control- no need > to download and install). > > > > if you have any idea in doing this, plz tell me. > > > > thanks a lot, > > -sadha > > > > From: Smith, Benjamin <benjamin.smithhp.com> > > To: <php-generallists.php.net> > > Sent: Tuesday, October 01, 2002 12:14 PM > > Subject: RE: [PHP] remote desktop control > > > > > > Not really, no. It goes well beyond the > capabilities of a server-side > > scripting language. > > > > There is a java implementation in VNC that allows > this capability, though. > > > > > > Hello all, > > > > Is it possible to implement Web Based Remote > Desktop Control using PHP or > > anyother webbased language? > > Aim is to share the remote(visitor's) > system(desktop). > > If possible, plz let me know how to proceed. > > > > > > Advance thanks, > > -sadha > > > > -- > > 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 > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    ===== Bill Farrell Multivalue and *nix Support Specialist

    Phone: (828) 667-2245 Fax: (928) 563-5189 Web: http://www.jwfarrell.com

    __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com

    attached mail follows:


    > On line "6", I have the list of musicians in the song. > Example (ignore the quotes): "Doyle Lawson -- lead vocal; Dale Perry - > - bass vocal" > Is there a way to make it so that, when I include line 6 in my PHP > template, the ";" will be replaced with a line break so I get one > musician per line in the HTML output?

    You could use str_replace on the line you've just read... http://www.php.net/str_replace

    > Lines 7 and so on are the lyrics. The text file has one line per line > (makes sense, right?) and a blank line between sections of the song. > I have the script set up to read all the lines from 7 on, but it > jumbles them all together, ignoring the line breaks. Is there a way > to script PHP to add the line breaks, or should the line break HTML > just be inserted everywhere needed in all my separate files?

    Use nl2br: http://www.php.net/nl2br This function replaces all "\n" (newlines) with "<BR>\n" (HTML break with newline)

    HTH Erwin

    attached mail follows:


    [snip] On line "6", I have the list of musicians in the song. Example (ignore the quotes): "Doyle Lawson -- lead vocal; Dale Perry -- bass vocal" Is there a way to make it so that, when I include line 6 in my PHP template, the ";" will be replaced with a line break so I get one musician per line in the HTML output?

    Lines 7 and so on are the lyrics. The text file has one line per line (makes sense, right?) and a blank line between sections of the song. I have the script set up to read all the lines from 7 on, but it jumbles them all together, ignoring the line breaks. Is there a way to script PHP to add the line breaks, or should the line break HTML just be inserted everywhere needed in all my separate files? [/snip]

    Have a look at eregi_replace() on http://www.php.net, that should get you headed in the direction of a solution.

    HTH!

    Jay

    ***************************************************** * Texas PHP Developers Conf Spring 2003 * * T Bar M Resort & Conference Center * * New Braunfels, Texas * * Contact jay.blanchardniicommunications.com * * * * Want to present a paper or workshop? Contact now! * *****************************************************

    attached mail follows:


    $title_err = ($adTitle == "") ? 1 : strlen($adTitle) > 50 ? 2 : 0;

    Can anyone tell me why this is not evaluating correctly (returning a value of 1) when $adTitle is an empty string?

    attached mail follows:


    Hi,

    Tuesday, October 1, 2002, 5:11:08 PM, you wrote: PO> $title_err = ($adTitle == "") ? 1 : strlen($adTitle) > 50 ? 2 : 0;

    PO> Can anyone tell me why this is not evaluating correctly (returning a PO> value of 1) when $adTitle is an empty string?

    It is right according to your expression, try ($adTitle != "")

    -- 
    regards,
    Tom
    

    attached mail follows:


    Pablo Oliva wrote:

    >$title_err = ($adTitle == "") ? 1 : strlen($adTitle) > 50 ? 2 : 0; > >Can anyone tell me why this is not evaluating correctly (returning a >value of 1) when $adTitle is an empty string? > > > > I have no idea... but if you change your code to this, it works:

    $title_err = ($adTitle == "") ? 1 : (strlen($adTitle) > 50 ? 2 : 0);

    Does anyone know why ?

    René

    attached mail follows:


    René Moonen wrote:

    > Pablo Oliva wrote: > >> $title_err = ($adTitle == "") ? 1 : strlen($adTitle) > 50 ? 2 : 0; >> >> Can anyone tell me why this is not evaluating correctly (returning a >> value of 1) when $adTitle is an empty string? >> >> >> >> > I have no idea... but if you change your code to this, it works: > > $title_err = ($adTitle == "") ? 1 : (strlen($adTitle) > 50 ? 2 : 0); > > Does anyone know why ? > > > > René > > > > Yes... that's it. Your statement is probably evaluated like this:

    $title_err = ( ($adTitle == "") ? 1 : strlen($adTitle) > 50 ) ? 2 : 0;

    The first ?: returns 1 so the second ?: will return 2

    Regards

    René

    attached mail follows:


    > -----Original Message----- > From: Pablo Oliva [mailto:polivacox.net] > Sent: 01 October 2002 08:11 > To: php-generallists.php.net > Subject: [PHP] conditional statement problems > > > $title_err = ($adTitle == "") ? 1 : strlen($adTitle) > 50 ? 2 : 0; > > Can anyone tell me why this is not evaluating correctly (returning a > value of 1) when $adTitle is an empty string?

    Yes. According to the list at http://uk.php.net/manual/en/language.operators.php, the ?: operator is left-associative, and of lesser precedence than >, so your expression is equivalent to the following:

    (($adTitle == "") ? 1 : strlen($adTitle) > 50) ? 2 : 0

    ... and you can probably see why that is giving the wrong answer! You need to use parentheses to force the order of evaluation you want, thus:

    ($adTitle == "") ? 1 : (strlen($adTitle) > 50 ? 2 : 0)

    (Incidentally, if you've programmed in c or derivatives, this will come as a surprise since in c ?: is right-associative and would give your desired result without the additional parentheses.)

    Cheers!

    Mike

    --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.fordlmu.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

    attached mail follows:


    James Mackie wrote:

    >On most of my servers that are running 4.2.2 (and before) I used >'killall -USR1 httpd' to reload my apache config. Now all servers that I >install with 4.2.3 instead of 4.2.2 this shuts down apache instead of >reloading the config files. (-HUP still works as it should). > >Base server is RH7.3, Apache and PHP are compiled from source, staticly, >not as modules. > I don't know why the USR1 signal appears to have changed, but on RH the "nice" way of restarting apache is "service httpd restart". Does this work?

    HTH Chris

    attached mail follows:


    Since I installed apache from source and not an RPM I do not have an rc file that the service command would use. I start apache in the rc.local file. -USR1 should be the 'NICE' way to reload the configuration files as per the apache documentation and has worked for many versions. Its just with PHP 4.2.3 that it stops working.

    -----Original Message----- From: Chris Hewitt [mailto:g0paemanordat.demon.co.uk] Sent: Tuesday, October 01, 2002 12:56 AM To: James Mackie Cc: php-generallists.php.net Subject: Re: [PHP] Apache 1.3.26 + PHP 4.2.3

    James Mackie wrote:

    >On most of my servers that are running 4.2.2 (and before) I used >'killall -USR1 httpd' to reload my apache config. Now all servers that I >install with 4.2.3 instead of 4.2.2 this shuts down apache instead of >reloading the config files. (-HUP still works as it should). > >Base server is RH7.3, Apache and PHP are compiled from source, staticly, >not as modules. > I don't know why the USR1 signal appears to have changed, but on RH the "nice" way of restarting apache is "service httpd restart". Does this work?

    HTH Chris

    attached mail follows:


    James Mackie wrote: > Since I installed apache from source and not an RPM I do not have an > rc file that the service command would use. I start apache in the > rc.local file. -USR1 should be the 'NICE' way to reload the > configuration files as per the apache documentation and has worked > for many versions. Its just with PHP 4.2.3 that it stops working.

    Is "apachectl graceful" an option? apachectl resided in the apache installation dir.

    Grtz Erwin

    attached mail follows:


    > > >James Mackie wrote: > >>Since I installed apache from source and not an RPM I do not have an >> It would have existed before you compiled/installed from source (assuming apache was installed beforehand). If the httpd executable is in the same place then the "service" command should still work. At least, I'd be very surprised if installing from source deletes it. Does /etc/init.d/httpd not exist?

    >>for many versions. Its just with PHP 4.2.3 that it stops working. >> Have you managed to find the file "apachectl"?

    Regards

    Chris

    attached mail follows:


    At 01:54 PM 10/1/02 +0200, Erwin wrote: >James Mackie wrote: > > Since I installed apache from source and not an RPM I do not have an > > rc file that the service command would use. I start apache in the > > rc.local file. -USR1 should be the 'NICE' way to reload the > > configuration files as per the apache documentation and has worked > > for many versions. Its just with PHP 4.2.3 that it stops working. > >Is "apachectl graceful" an option? >apachectl resided in the apache installation dir.

    From apachectl...

    graceful) if [ $RUNNING -eq 0 ]; then ... ... else if $HTTPD -t >/dev/null 2>&1; then if kill -USR1 $PID; then ^^^^^^^^^^^^^

    I don't think apachectl will help, since it uses kill -USR1 to do a graceful restart.

    attached mail follows:


    I am getting the following when i try to connect to an imap server with PHP 4.1.2 whatever i run gives this message when i try to connect to the imap server( i.e. i try connecting with IMP and a completely different webmail program)

    ----------------- server="localhost" user="cmw" mailbox="{localhost:143}INBOX"

    Warning: Couldn't open stream {localhost:143}INBOX in /var/www/html/horde/imp/test.php on line 157

    PHP is configured as follows

    './configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-mm' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-debugger' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mbstring' '--enable-mbstr-enc-trans' '--with-apxs=/usr/sbin/apxs'

    attached mail follows:


    Thanks, Erwin!

    -- 
    Kyrie Eleison,
    Rick
    www.spiritsword.com/phpBB2/
    

    Erwin wrote: >> On line "6", I have the list of musicians in the song. >> Example (ignore the quotes): "Doyle Lawson -- lead vocal; Dale Perry >> - >> - bass vocal" >> Is there a way to make it so that, when I include line 6 in my PHP >> template, the ";" will be replaced with a line break so I get one >> musician per line in the HTML output? > > You could use str_replace on the line you've just read... > http://www.php.net/str_replace > >> Lines 7 and so on are the lyrics. The text file has one line per line >> (makes sense, right?) and a blank line between sections of the song. >> I have the script set up to read all the lines from 7 on, but it >> jumbles them all together, ignoring the line breaks. Is there a way >> to script PHP to add the line breaks, or should the line break HTML >> just be inserted everywhere needed in all my separate files? > > Use nl2br: http://www.php.net/nl2br > This function replaces all "\n" (newlines) with "<BR>\n" (HTML break > with newline) > > HTH > Erwin

    attached mail follows:


    I am getting the following when i try to connect to an imap server with PHP 4.1.2 whatever i run gives this message when i try to connect to the imap server( i.e. i try connecting with IMP and a completely different webmail program)

    ----------------- server="localhost" user="cmw" mailbox="{localhost:143}INBOX"

    Warning: Couldn't open stream {localhost:143}INBOX in /var/www/html/horde/imp/test.php on line 157

    PHP is configured as follows

    './configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-mm' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-debugger' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mbstring' '--enable-mbstr-enc-trans' '--with-apxs=/usr/sbin/apxs'

    attached mail follows:


    Hi Tom

    I did finally get my mails on this account (my personal mailbox) hours later but my main problem is with mails sent by scripts on my site (using the mailserver of my web provider) and other people complaining to me that they dont get mails sent from their websites to their ISP mailboxes (using my scripts).

    More and more legitimate mails are being trashed as a result of anti-spamming systems - read around the IT news. Whether it is illegal or not I don't know but yesterday I cancelled my account with my ISP because they refuse to answer my questions re if they have a mail filtering policy and if they do what is it.

    Debbie

    ----- Original Message ----- From: "Tom Rogers" <trogerskwikin.com> To: "debbie_dyer" <debbie_dyersurfanytime.co.uk> Sent: Tuesday, October 01, 2002 2:13 AM Subject: Re: [PHP] mail headers & mail filtering

    > Hi, > > Tuesday, October 1, 2002, 12:09:06 AM, you wrote: > d> More and more emails seem to be getting blocked by mail filtering systems looking for spam (but trashing legitimate mail at the same time). Does anyone have any tips for ensuring mails get through > d> these systems (with regard to headers) or do we just have to accept now that email can no longer be relied upon as a means of communication? > > d> Debbie > > This one arrived ok to the list. If the isp is interfering with > legitimate mail then they are probably infringing some law or other :) > > -- > regards, > Tom >

    attached mail follows:


    Bob Irwin wrote:

    > > >What I am getting is not accurated, it just seems to grab the one entry, >which is correct, but there are 3 entries that fall within the range I am >trying to select on. > What are the other two records you think ought to be returned? I feel the sql statement probably gets the correct number of records, but possibly you are not seeing why the others do not match.

    Alternatively, the code is only getting the first row and not the rest (show code that loops round all records)?

    HTH Chris

    >

    attached mail follows:


    Hello,

    I am trying to install php under some other drive like d: or e: ..it was installed properly without telling any error...but i couldn't run even the testing program ( <? phpinfo(); ?> )

    I have mentioned in the php.ini and apache conf file with d: where ever i have mentioned c: ..but it not coming..Can anyone please tell me other than this any settings to be made ??

    Regards, Uma

    attached mail follows:


    Hi Chris

    They are having the problem receiving the mail sent by the script not sending. They go to my site and generate a form mailer using their email ad They upload it to their webserver Then they email me saying that they are testing the mailer out on their site and it seems to work but they never receive the email that it sends Always when I test the scripts (with my email ad) there is nothing wrong with it and I receive the mail

    So I don't know what to tell them apart from it must be filtering, nor do I know how to attempt to fix the problem. Maybe this problem of 'lost mail' is more noticeable to me because a few hundred a week use this generator so we are talking about running these scripts on a lot of different websites using a lot of different mailservers/mailboxes.

    From now on when I get these complaints I will ask them for the name of the mailserver that sends the mail - maybe then I can get back to you for some tests.

    Thanks Debbie

    ----- Original Message ----- From: "Chris Hewitt" <g0paemanordat.demon.co.uk> To: "Debbie Dyer" <debbie.dyerc-u-online.co.uk> Sent: Tuesday, October 01, 2002 8:48 AM Subject: Re: [PHP] Re: mail headers & filtering

    > Debbie Dyer wrote: > > >I was talking about my second prob.. > > > Debbie, > > I had not read your post well enough. Yes, if customers are sometimes > having a similar problem when they are sending email then it could be > their domain is not in dns. > > If I can help in a test, perhaps forwarding an email from you to an > address you can't get through to directly, I'm happy to help. It will > aid checking whether dns is the issue. > > I've only ever had one refusal to recieve email (except when the user no > longer has the account) and that was when I sent an attachment that was > a windows executable (.exe) file. Changing the extension to ".zip" and > it went through. Not having had the problem, I disagree with you > statement that email seems unreliable these days. So there must be > something different with the setups we have that accounts for it. DNS is > the only difference I can think of. > > Regards > > Chris > PS I'm not on-line all the time, I pick up email every hour or two. > > >

    attached mail follows:


    "Ah, so this is happening on another server. "

    Both - mine and others.

    "Does that server send emails OK other than by your script?"

    Others - not known - the reason they use the generator (mostly) is because they dont know how to write the code themselves. But their webserver is running PHP and they have no reason to believe that it will not work. They say there is no error but I know that display errors is probably off.

    "Are you using the mail() function or Manuel Lemos's classes and do you check the return value in your script to show whether it was delivered OK."

    mail() function - I am going to look at Manuels classes today. on the signup page to use the generator (where I sometimes have non-receipt of confirmation mail by user probs) - yes I check the return value on the generated scripts used on other peoples servers - no - I will change that for the next version of the generator

    re testing "From your server or theirs?"

    Using my server

    "Check the logs of the server configured in php.ini to send the email (assuming you are using the emails services of the computer on which the php script is run)."

    Dont think they will have access to these logs (most of them - me too - are running on providers servers not their own)

    "Have you got "Return-Path" configured in all cases. The bounce messsage you posted would have been sent to you via this header."

    my signup page - no - I have configured reply-to instead which I thought was sufficient - I will change that generated scripts - no - I will change that for the next version

    I need to change a few things I can see that.

    At least now I will have more chance of finding out why and when I get complaints about non-receipt of emails I am better informed and in a better position to answer.

    Thank you very much for your help Chris.

    Debbie

    ----- Original Message ----- From: "Chris Hewitt" <g0paemanordat.demon.co.uk> To: "Debbie Dyer" <debbie.dyerc-u-online.co.uk> Sent: Tuesday, October 01, 2002 10:56 AM Subject: Re: [PHP] Re: mail headers & filtering

    > Debbie Dyer wrote: > > >Hi Chris > > > >They are having the problem receiving the mail sent by the script not > >sending. > >They go to my site and generate a form mailer using their email ad > >They upload it to their webserver > >Then they email me saying that they are testing the mailer out on their site > >and it seems to work but they never receive the email that it sends > > > Ah, so this is happening on another server. Does that server send emails > OK other than by your script? Are you using the mail() function or > Manuel Lemos's classes and do you check the return value in your script > to show whether it was delivered OK. I suspect you don't. > > > > >Always when I test the scripts (with my email ad) there is nothing wrong > >with it and I receive the mail > > > From your server or theirs? > > >So I don't know what to tell them apart from it must be filtering, nor do I > > > Check the logs of the server configured in php.ini to send the email > (assuming you are using the emails services of the computer on which the > php script is run). If a linux box then its usually in the file > /var/log/maillog. There will be information in there as to whether the > email was sent without error. The sending will be to the recipient's > mail host or dns MX record. The logs will indicate whether it got there > without error or not. Whether the user can pick up mail from their mail > host is another matter and not reported. At a minimun, the domain the > email is originating from should be in both forward and reverse dns. > > > > >know how to attempt to fix the problem. Maybe this problem of 'lost mail' is > >more noticeable to me because a few hundred a week use this generator so we > >are talking about running these scripts on a lot of different websites using > >a lot of different mailservers/mailboxes. > > > Yes, quite possibly. smtp does not (I don't think) guarantee delivery > but you should get either a MAILER_DAEMON bounce message to the address > you configure in the "Return-Path" header or a line in the smtp server > log to say why it has not been sent without error. Have you got > "Return-Path" configured in all cases. The bounce messsage you posted > would have been sent to you via this header. > > > > >>From now on when I get these complaints I will ask them for the name of the > >mailserver that sends the mail - maybe then I can get back to you for some > >tests. > > > Yes, good idea. Check it is in both forward and reverse dns. > > Regards > > Chris > >

    attached mail follows:


    Depends on your connection and CPU speed, slow connection - higher compression, slow CPU - lower compression, and vice versa

    Jay wrote:

    >I have the "output_handler = ob_gzhandler" turned on in the php.ini file so >it will automatically compress all my pages. I was just wondering what is a >good zlib.output_compression level to put it on or is the default (4kb) a >good size? > >thanks! > > > >

    attached mail follows:


    John W. Holmes propably said:

    > Do you have a session_start() on the page? It looks like you have a > trans_sid enabled. PHP will add that to all of your URLs > automatically. Can you disable it in php.ini?

    Yes trans_sid is enabled and i have a session_start on the page. What is trans_sid doing exactly? I tried looking it up in the documentation but don't really get it.

    What would i loose if i disabled trans_sid (or actually - tried to persuade my webhotel to disable it).

    The strange thing is also that it only adds the session id to url:s when the page is first loaded. After the first click it goes away.

    - D

    attached mail follows:


    To reply to myself .)

    I disabled trans_sid on the actual site by using:

    ini_set('session.use_trans_sid',false); session_start();

    But i still want to know what trans_sid does for me. What am i missing out on when not using it?

    - D, loves google

    attached mail follows:


    on 01/10/02 7:45 PM, Daniel Alsén (phpmindbash.se) wrote:

    > John W. Holmes propably said: > >> Do you have a session_start() on the page? It looks like you have a >> trans_sid enabled. PHP will add that to all of your URLs >> automatically. Can you disable it in php.ini? > > Yes trans_sid is enabled and i have a session_start on the page. What is > trans_sid doing exactly? I tried looking it up in the documentation but > don't really get it

    IF you're using sessions, and IF the client (browser) doesn't have cookies available, PHP's trans sid re-writes the URLs on your pages to include a session ID.

    > What would i loose if i disabled trans_sid (or actually - tried to persuade > my webhotel to disable it).

    You'd loose session for those without cookies. The work around for this would be to hard-code the session ID to all URLs across your site for all pages you wish to carry a session through -- a real pain.

    > The strange thing is also that it only adds the session id to url:s when the > page is first loaded. After the first click it goes away.

    It HAS TO use a session ID from the first page to the second, to be sure that the session is being carried... on the second page, it assesses if the cookie was set, and if so, doesn't bother rewriting any of the URLs, else, it continues.

    Most people beg to HAVE trans_sid enabled on their server, not to have it removed. It ensures the widest array of people can access your site without breaking sessions, and without the need for you to include (pass around) a session ID throughout your site via URLs.

    Justin

    attached mail follows:


    On Tue, 1 Oct 2002 12:06:04 +0200, Daniel Als‚n wrote:

    >To reply to myself .) > >I disabled trans_sid on the actual site by using: > >ini_set('session.use_trans_sid',false); >session_start(); > >But i still want to know what trans_sid does for me. What am i missing out >on when not using it? > >- D, loves google > > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php >

    Testing - please ignore.

    Sorry for any inconcenience.

    attached mail follows:


    Justin French propably said:

    > You'd loose session for those without cookies. The work around for > this would be to hard-code the session ID to all URLs across your > site for all pages you wish to carry a session through -- a real pain.

    Indeed.

    > It HAS TO use a session ID from the first page to the second, to be > sure that the session is being carried... on the second page, it > assesses if the cookie was set, and if so, doesn't bother rewriting > any of the URLs, else, it continues.

    Aha...i got a bit confused first when i read your answer since i _know_ i have cookies enabled. But isn´t there any other way to work around this? Can i check if the cookie is set myself and if it is disable trans_sid with 'ini_set('session.use_trans_sid',false);'?

    > Most people beg to HAVE trans_sid enabled on their server, not to > have it removed. It ensures the widest array of people can access > your site without breaking sessions, and without the need for you to > include (pass around) a session ID throughout your site via URLs.

    Thanks.

    - D

    attached mail follows:


    In order to set and then check a cookie, you need to go through a page... so you'd have to set something in the URL like ?cookieset=1 anyway, in order to knwo you had set it, in order to check it.

    In other words, you'll need some guff in the URL, in order for it to all work, so why not let it be the session key, and let trans_sid do the work?

    Without trying to sound rude, "get over it" or "deal with it" :)

    Justin

    on 01/10/02 8:53 PM, Daniel Alsén (phpmindbash.se) wrote:

    > Aha...i got a bit confused first when i read your answer since i _know_ i > have cookies enabled. But isn´t there any other way to work around this? Can > i check if the cookie is set myself and if it is disable trans_sid with > 'ini_set('session.use_trans_sid',false);'?

    attached mail follows:


    Justin French propably said:

    > In order to set and then check a cookie, you need to go through a > page... so you'd have to set something in the URL like ?cookieset=1 > anyway, in order to knwo you had set it, in order to check it. > > In other words, you'll need some guff in the URL, in order for it to > all work, so why not let it be the session key, and let trans_sid do > the work? > > Without trying to sound rude, "get over it" or "deal with it" :)

    Guess i'll have to ;)

    - D

    attached mail follows:


    Have you tried include("

    http://valsignalandet.com/cgi-bin/cgiwrap/ppowell/php4.cgi/~ppowell/my/style.php

    ");

    Phil Powell wrote:

    >I have the following URL: > >http://valsignalandet.com/cgi-bin/cgiwrap/ppowell/php4.cgi/~ppowell/my/style.php > >This is a PHP script that is evaluated and compiled by a CGI script, php4.cgi, to allow for file and directory manipulation w/o having to change file and directory permissions to world-write. > >This URL works just fine as follows: > ><!--#INCLUDE VIRTUAL=http://valsignalandet.com/cgi-bin/cgiwrap/ppowell/php4.cgi/~ppowell/my/style.php --> > >If I place this tag inside .shtml files, the results are exactly what I want.. however, I am now required to get the contents of http://valsignalandet.com/cgi-bin/cgiwrap/ppowell/php4.cgi/~ppowell/my/style.php and place inside another PHP script; to date, nothing occurs. > >I am able to read other CGI script inside via fopen("../mycgi.cgi", "r"); and able to read PHP via fopen("../myphp.php", "r"); with no problem. > >Does anyone know of a way then that I might be able to produce the contents of a uniquely-formed URL such as http://valsignalandet.com/cgi-bin/cgiwrap/ppowell/php4.cgi/~ppowell/my/style.php into another PHP script since fopen and require() both do not seem to work in this case? > >Thanks >Phil > > >

    attached mail follows:


    here is a tricky question, i have created a photo gallery script where i can edit the photo and gammacorrect the photos, at the moment i post the gamma value and refreshes the resized preview image , what i'd like to do is be able to have a before and after preview so half the image is the normal image and half the image is the gamma corrected image , is this possible ? any leads would be excellent

    attached mail follows:


    Hi (I'm sending this again becasue i didn't find a solution yet) "I have a problem when i'm sending form data. The issue happens when I build a mysql query with some form input data. I send the info and I get 'n' results from mysql server. With this I build a list that has links to the records that match the query. Next step I display one of the items on my query. OK, now here is where I have the problem. When I go back, the IE gives me an error that "can't show the page because it was made up with form data and if I want to see the page again, i have to make a refresh. IE wount send the information itself." I'm running an Apache Server under RH 7.2. and PHP 4.2.0/1 With IIS I don't have this problem. Anyone have an idea for this issue ? I think that is a directive in the php.ini file. But I don't know wich one is. Help would be appreciated Thanks"

    Francisco M. Vaucher

    attached mail follows:


    You mean using GET Method to retrieve the info ? I don't know. I'll have to check it. But is strange. I'm going to test it from a linux box with Konqueror, or Netscape to see if it's a browser problem or a server problem. Maybe the IIS send the info by it self.

    I'm going to try that,

    tks

    Francisco M. Vaucher Departamento IT Tyco / ADT Security Services Buenos Aires - Argentina mailto:fvauchertycoint.com

    -----Mensaje original----- De: Matt Schroebel [mailto:MSchroebelhsus.org] Enviado el: martes, 01 de octubre de 2002 8:42 Para: Francisco Vaucher Asunto: RE: [PHP] GET POST Problem

    I think that's standard browser behavior with IE and POST date. Each browser handles it different. Since it's a client issue, I don't understand how IIS would have anything to do with it. Are you sure you're IIS example wasn't using GET?

    > -----Original Message----- > From: Francisco Vaucher [mailto:fvauchertycoint.com] > Sent: Tuesday, October 01, 2002 7:29 AM > To: PHP List (E-mail) > Subject: [PHP] GET POST Problem > > > Hi (I'm sending this again becasue i didn't find a solution yet) > > "I have a problem when i'm sending form data. The issue > happens when I build > a mysql query with some form input data. I send the info and I get 'n' > results from mysql server. With this I build a list that has > links to the > records that match > the query. Next step I display one of the items on my query. > OK, now here is > where I have the problem. When I go back, the IE gives me an > error that > "can't show the page because it was made up with form data > and if I want to > see the page again, i have to make a refresh. IE wount send > the information > itself." > > I'm running an Apache Server under RH 7.2. and PHP 4.2.0/1 > > With IIS I don't have this problem. > > Anyone have an idea for this issue ? I think that is a > directive in the > php.ini file. But I don't know wich one is. > > Help would be appreciated > > Thanks" > > Francisco M. Vaucher >

    attached mail follows:


    Hi every1 I'm stucked with this page in which I would like to perform some check before submit and in the meantime I need to be able to change some content upon a choice at the top of the page. My first attempt was: The form has been submitted every time I change the option at the top of the page ... PHP decides the content of the page...... Javascript performs the checks and then submit the form. PHP has to recognise the status (I mean checked performed do the real task) so I used an isset statement. The problem using "isset" is that PHP doesn't find the variable after Javascript has performed its check.... If I use a hidden field then PHP doesn't understand when I'm asking to change the content or actually sending the form for the real task. After this I said Javascript could manage the dinamically changing of the content but I found out that Layer feature is not supported with mozilla ..... Any clue ??

    thanks a lot guys !

    attached mail follows:


    Use globals variables instead hidden fields. Maybe it works.

    Peace & Love skitum

    ----- Original Message ----- From: "Riccardo Sepe" <zikikitin.it> To: "php-general" <php-generallists.php.net> Sent: Tuesday, October 01, 2002 1:34 PM Subject: [PHP] PHP and JavaScript on a validation NIGHTMARE

    > Hi every1 I'm stucked with this page in which I would like to perform > some check before submit and in the meantime I need to be able to change > some content upon a choice at the top of the page. > My first attempt was: > The form has been submitted every time I change the option at the top of > the page ... PHP decides the content of the page...... > Javascript performs the checks and then submit the form. > PHP has to recognise the status (I mean checked performed do the real > task) so I used an isset statement. > The problem using "isset" is that PHP doesn't find the variable after > Javascript has performed its check.... > If I use a hidden field then PHP doesn't understand when I'm asking to > change the content or actually sending the form for the real task. > After this I said Javascript could manage the dinamically changing of > the content but I found out that Layer feature is not supported with > mozilla ..... > Any clue ?? > > thanks a lot guys ! > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    skitum wrote:

    >Use globals variables instead hidden fields. Maybe it works. > >Peace & Love >skitum > > > Cool mate I' ll let u know!

    bye

    > > > >

    attached mail follows:


    > -----Original Message----- > From: John W. Holmes [mailto:holmes072000charter.net] > Sent: 01 October 2002 02:21 > To: 'Daren Cotter'; 'PHP General Mailing List' > > > City: Just ' ?? > > I'd allow space and period, too, for "Ft. Gordon" for example. > > "^[-a-zA-Z0-9' .]+$"

    Well, there's an English west country resort that rejoices in the name of Westward Ho! -- complete with exclamation mark!

    Cheers!

    Mike

    --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.fordlmu.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

    attached mail follows:


    I need to install a spell checker on a content management system that I wrote in PHP a few months ago. I've found a free, simple spell checker written in ASP that I can easily port to PHP, but the more daunting task for me is creating the JavaScript to implement the spell checker. I haven't been able to find an existing, inexpensive PHP spell checker solution. Can anyone direct me to one or provide advice?

    Thanks.

    --
    Lowell Allen
    

    attached mail follows:


    Google it!!

    http://www.google.com/search?hl=en&ie=ISO-8859-1&q=php+spell+checker&btnG=Go ogle+Search

    Seems to be a few good starts on the first 10 results!!

    Justin French

    on 01/10/02 10:10 PM, Lowell Allen (lalowellallen.com) wrote:

    > I need to install a spell checker on a content management system that I > wrote in PHP a few months ago. I've found a free, simple spell checker > written in ASP that I can easily port to PHP, but the more daunting task for > me is creating the JavaScript to implement the spell checker. I haven't been > able to find an existing, inexpensive PHP spell checker solution. Can anyone > direct me to one or provide advice? > > Thanks. > > -- > Lowell Allen >

    attached mail follows:


    > From: Justin French <justinindent.com.au> > > Google it!! > > http://www.google.com/search?hl=en&ie=ISO-8859-1&q=php+spell+checker&btnG=Go > ogle+Search > > Seems to be a few good starts on the first 10 results!!

    Thanks for reminding me. I had searched hotscripts.com, but not the more obvious Google. And thanks to others who responded off-list to point out that PHP has built in spell checking functions if compiled with pspell support. I'm amazed that I hadn't come across that info before. I've asked the commercial host used on the project if they'll recompile with pspell support, and I promise to read the entire PHP manual before asking another question.

    --
    Lowell Allen
    

    attached mail follows:


    Is there any way to get a print out of class names of an object, lets say I have a object called obj and I have x number of classes and I want to find out, theyr names, for example obj->class1 obj->class2 etc. Thanks David

    attached mail follows:


    I know this isn't the correct list to pose this question too but I thought maybe someone here would know the answer. I am creating a MySQL database with a row named id which will be my primary key and will be auto incremented. I want the value to start at 4000 (no special reason) instead of 0. I did read about how to go about this a few years back in the docs but I can't find it anymore.

    Thanks,

    Ed

    attached mail follows:


    Hi Ed,

    > I am creating a MySQL database with a row named > id which will be my primary key and will be auto > incremented. I want the value to start at 4000

    ITYM "table" not "database", and "column" not "row"...

    The query you're after is ALTER TABLE mytable AUTO_INCREMENT = 4000

    Cheers Jon

    attached mail follows:


    Hi guys,

    I have a problem where I need to covert a image to *something* where I can send it over a socket. Please don't ask me why, I am not in a position to change the architecture.

    Basically, I need to prepare the image to the stage just prior to utilising imagepng and then write it to a socket to eventually be flushed to the browser.

    I looked into serialize(); however, it will not allow resource types (such as an image) so I'm pretty much stuck at this point.

    The possibility does exist for me to do this via perl instead, but id prefer a php solution if possible.

    Thanks for any help you can give, I hope I have explained this well enough,

    Todd.

    attached mail follows:


    -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

    Hey, *cough* *cough* windoze?! *has heart attack* LoL! Linux+Apache+Php rulz!!!!! ~Paul

    On Monday 30 September 2002 07:56 pm, Brad Bonkoski wrote: > Is there such a thing of a software package with no vulnerabilities > and/or bugs?? (Windows perhaps :-) > The advantage to apache/php is the ability to quickly address those > problems once found. > -Brad > > Steve Keller wrote: > > At 9/30/2002 06:17 PM, you wrote: > > >Is there any version of php and apache for which there are no known > > >vulnerabilities?? > > > > It's the vulnerabilities you don't know about that get you. > > > > -- > > S. Keller > > UI Engineer > > The Health TV Channel, Inc. > > (a non - profit organization) > > 3820 Lake Otis Pkwy. > > Anchorage, AK 99508 > > 907.770.6200 ext.220 > > 907.336.6205 (fax) > > Email: skellerhealthtvchannel.org > > Web: www.healthtvchannel.org > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php

    - -- ~Paul Nicholson Design Specialist WebPower Design "The web....the way you want it!" paulwebpowerdesign.net

    "It said uses Windows 98 or better, so I loaded Linux!" Registered Linux User #183202 using Register Linux System # 81891 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org

    iD8DBQE9mQMaDyXNIUN3+UQRAs2JAJ9QLYfch3Xo7ZSwr6sygRlEvYAvwwCdHviW KSPRwd91U78q4dkkJkv5NI8= =tuNn -----END PGP SIGNATURE-----

    attached mail follows:


    Hi,

    I am really lost. I have spent an hour looking on the net and php.net for how to get total and how to do math with php. If anyone has a link to a site that show it or can example to me how to do it, that would be great. I have a small project where I am going to track invoices. But they want to be able to see how total amount of the invoice that I am tracking. I know this is got to be simple but it hard if I do have example of the commands to do it.

    Chuck Payne Magi Design and Support

    attached mail follows:


    -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

    Hey, Try: http://www.php.net/manual/en/language.operators.arithmetic.php I think that'll get you started:) ~Paul

    On Tuesday 01 October 2002 09:44 am, Chuck Payne wrote: > Hi, > > I am really lost. I have spent an hour looking on the net and php.net for > how to get total and how to do math with php. If anyone has a link to a > site that show it or can example to me how to do it, that would be great. I > have a small project where I am going to track invoices. But they want to > be able to see how total amount of the invoice that I am tracking. I know > this is got to be simple but it hard if I do have example of the commands > to do it. > > Chuck Payne > Magi Design and Support

    - -- ~Paul Nicholson Design Specialist WebPower Design "The web....the way you want it!" paulwebpowerdesign.net

    "It said uses Windows 98 or better, so I loaded Linux!" Registered Linux User #183202 using Register Linux System # 81891 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org

    iD8DBQE9mag+DyXNIUN3+UQRAqGLAJ0f4NDQU3/kQ6z7lYGfp8Esa+ZzEwCeLmBU eT8+TDyHoS6B9Rjv3TDMwjQ= =y7LJ -----END PGP SIGNATURE-----

    attached mail follows:


    lol

    or you could just try

    <? $value1 = 100; $value2 = 24;

    $total = $value1 + $value2; ?>

    on 01/10/02 11:50 PM, Paul Nicholson (pauldtnicholson.com) wrote:

    > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hey, > Try: http://www.php.net/manual/en/language.operators.arithmetic.php > I think that'll get you started:) > ~Paul > > On Tuesday 01 October 2002 09:44 am, Chuck Payne wrote: >> Hi, >> >> I am really lost. I have spent an hour looking on the net and php.net for >> how to get total and how to do math with php. If anyone has a link to a >> site that show it or can example to me how to do it, that would be great. I >> have a small project where I am going to track invoices. But they want to >> be able to see how total amount of the invoice that I am tracking. I know >> this is got to be simple but it hard if I do have example of the commands >> to do it. >> >> Chuck Payne >> Magi Design and Support > > - -- > ~Paul Nicholson > Design Specialist WebPower Design > "The web....the way you want it!" > paulwebpowerdesign.net > > "It said uses Windows 98 or better, so I loaded Linux!" > Registered Linux User #183202 using Register Linux System # 81891 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > Comment: For info see http://www.gnupg.org > > iD8DBQE9mag+DyXNIUN3+UQRAqGLAJ0f4NDQU3/kQ6z7lYGfp8Esa+ZzEwCeLmBU > eT8+TDyHoS6B9Rjv3TDMwjQ= > =y7LJ > -----END PGP SIGNATURE-----

    attached mail follows:


    Hi there,

    I've got some strange behaviour here (at least, I can't explain it). I'm running PHP 4.2.3 on a Mandrake 9.0 machine. I'm using sessions in my little app and want to use the $_SESSION-variable to keep track of all my variabeles.

    Well, when I tell it $_SESSION["something-intelligent"] = $myName; echo($_SESSION["something-intelligent"]);

    I get "Tim" on my screen. But when I do:

    $nr = 12; $_SESSION["things"]["$nr"]["intelligent"] = $myName; echo $_SESSION["things"]["$nr"]["intelligent"];

    I don't get any output at all! Can anyone shed any light on this? Thanks in advance!!

    -- 
    Kind regards,
    Tim
    

    attached mail follows:


    Hello,

    On Tuesday, October 01, 2002 11:13 PM Subject: [PHP] $_SESSION only takes 1 character? Tim Stoop wrote: > Hi there, > > I've got some strange behaviour here (at least, I can't explain it). I'm > running PHP 4.2.3 on a Mandrake 9.0 machine. I'm using sessions in my > little app and want to use the $_SESSION-variable to keep track of all my > variabeles. > > Well, when I tell it > $_SESSION["something-intelligent"] = $myName; > echo($_SESSION["something-intelligent"]); > > I get "Tim" on my screen. But when I do: > > $nr = 12; > $_SESSION["things"]["$nr"]["intelligent"] = $myName; > echo $_SESSION["things"]["$nr"]["intelligent"]; > > I don't get any output at all!

    What happens? No error message? Nothing?

    Anyway, you can try this:

    echo "{$_SESSION["things"]["$nr"]["intelligent"]}";

    >Can anyone shed any light on this? Thanks in > advance!! >

    - E

    attached mail follows:


    Hi, i came to know from someone that i can *not* make php a shared module in apache 2.x .It works only in 1.3x.

    If thats true can someone point me to some link saying the same.

    thanx and regards anil

    attached mail follows:


    You have it backwards. Apache 2.x can only have PHP as a shared module at this point, no static.

    -Rasmus

    On Tue, 1 Oct 2002, Anil Garg wrote:

    > Hi, > i came to know from someone that i can *not* make php a shared module in > apache 2.x .It works only in > 1.3x. > > If thats true can someone point me to some link saying the same. > > thanx and regards > anil > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    Is their any comparable tool/util whatever to automaticly create documentation from your PHP Code (like java's JavaDoc)?

    attached mail follows:


    www.phpdoc.de is one I know of. I'm not surewhat the current development activity is, but I think it's still in beta. The front page states 'Last update: 2000/12/03' - so I don't know what's happening there.

    Regards

    Scott

    On 10/1/2002 4:18 PM, Francis wrote: > Is their any comparable tool/util whatever to automaticly create > documentation from your PHP Code (like java's JavaDoc)? > > >

    -- 
    //--------------------------------------------//
    // Scott Houseman                             //
    // Jam Warehouse http://www.jamwarehouse.com/ //
    // Smart Business Innovation                  //
    // +27 21 4477440 / +27 82 4918021            //
    //--------------------------------------------//
    

    attached mail follows:


    Hmm... subject wasn't what I wanted it to be :) Sorry about that.

    -- 
    Kind regards,
    Tim
    

    attached mail follows:


    Hi, I'm new to the news.

    How can I stop Apache from sending HTTP headers when I execute a script. Who handle the HTTP headers, is Apache or PHP engine?

    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system (http://www.grisoft.com).
    Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/01
    

    attached mail follows:


    Hi everyone. I asked this a week or so ago but i am unsure if it got to the list, so here we go again.

    I am trying to get a remote file to be copied onto my own web server, I have looked at fopen() and fread() and fwrite() and get the general idea of each, but im wondering how to join the commandes to get the file i want from the remote ftp server, copied and written onto my own server.

    --
    Cheers
    ---------------------------------------------------------
    Simon Angell
    Canberra ACT
    www.canberra-wx.com
    ---------------------------------------------------------
    Member of:
    Australian Severe Weather Association.
    www.severeweather.asn.au
    ---------------------------------------------------------
    This email is virus free.
    Scanned before leaving my mailbox
    using Norton Antivirus 2002 for Win2k
    Scanned with the latest definition File.
    

    attached mail follows:


    Everything you need:

    http://www.php.net/ftp

    Adam Voigt adam.voigtcryptocomm.com

    On Tue, 2002-10-01 at 11:50, Simon Angell wrote: > Hi everyone. > I asked this a week or so ago but i am unsure if it got to the list, so here > we go again. > > I am trying to get a remote file to be copied onto my own web server, I have > looked at fopen() and fread() and fwrite() and get the general idea of each, > but im wondering how to join the commandes to get the file i want from the > remote ftp server, copied and written onto my own server. > > > -- > Cheers > --------------------------------------------------------- > Simon Angell > Canberra ACT > www.canberra-wx.com > --------------------------------------------------------- > Member of: > Australian Severe Weather Association. > www.severeweather.asn.au > --------------------------------------------------------- > This email is virus free. > Scanned before leaving my mailbox > using Norton Antivirus 2002 for Win2k > Scanned with the latest definition File. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    Simon Angell wrote: > > Hi everyone. > I asked this a week or so ago but i am unsure if it got to the list, so here > we go again. > > I am trying to get a remote file to be copied onto my own web server, I have > looked at fopen() and fread() and fwrite() and get the general idea of each, > but im wondering how to join the commandes to get the file i want from the > remote ftp server, copied and written onto my own server.

    Something like the following might work (not tested AT ALL):

    $rContents = implode( "\n", file( 'ftp://www.foo.bar/me/my/data.txt' ) );

    if( ($fp = fopen( '/tmp/myFile.txt', 'w+' )) !== false ) { fputs( $fp, $rContents ); fclose( $fp ); }

    -- 
    .-----------------.
    | Robert Cummings |
    :-----------------`----------------------------.
    | Webdeployer - Chief PHP and Java Programmer  |
    :----------------------------------------------:
    | Mail  : mailto:robert.cummingswebmotion.com |
    | Phone : (613) 731-4046 x.109                 |
    :----------------------------------------------:
    | Website : http://www.webmotion.com           |
    | Fax     : (613) 260-9545                     |
    `----------------------------------------------'
    

    attached mail follows:


    Hi guys, I'm having some problems here, I have to do an application using Oracle in Windows, I enabled the extension php_oci8.dll but I'm receiving this error:

    Warning: Unable to load dynamic library 'C:\PHP\extensions/php_oci8.dll' - Access is denied. in Unknown on line 0

    The dll is in the directory but I have no idea why php can't load it.

    Any suggestion??

    Jadiel Flores ------------------------- http://www.abargon.com jfloresabargon.com (52-55) 52-29-80-34

    attached mail follows:


    Have you tried to check the access permissons ? Maybe the Oracle/PHP user/app doesn't have the right permissons in that directory.

    Regards,

    Francisco M. Vaucher Departamento IT Tyco / ADT Security Services Buenos Aires - Argentina mailto:fvauchertycoint.com

    -----Mensaje original----- De: Jadiel Flores [mailto:jfloresabargon.com] Enviado el: martes, 01 de octubre de 2002 12:51 Para: php-generallists.php.net Asunto: [PHP] PHP with Oracle

    Hi guys, I'm having some problems here, I have to do an application using Oracle in Windows, I enabled the extension php_oci8.dll but I'm receiving this error:

    Warning: Unable to load dynamic library 'C:\PHP\extensions/php_oci8.dll' - Access is denied. in Unknown on line 0

    The dll is in the directory but I have no idea why php can't load it.

    Any suggestion??

    Jadiel Flores ------------------------- http://www.abargon.com jfloresabargon.com (52-55) 52-29-80-34

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

    attached mail follows:


    Hi, I'm a bit new to mySQL. I got my program working fine locally, but it doesn't work when I upload it to my ISP.

    db.php and pear.php couldn't be found on my server when I first ran it. I uploaded them, but could that be part of my problem?

    The following code is returning "DB Error: not found":

    $database_address = "mysql://user:pwdsandbank.zetnet.co.uk/dbname"; require_once('DB.php'); $c_db = DB::connect($database_address); if(DB::iserror($c_db)){ die($c_db->getMessage()); }

    Peter

    attached mail follows:


    Does anyone have any experience with FULLTEXT indexed MySQL tables? I've created such a key. When I type the following from the MySQL command line, I get the desired records returned, i.e., a subset of my entire table:

    SELECT HSCode, UOM, EDescript FROM HSCodes WHERE MATCH(EDescript) AGAINST ('exercise');

    However, the following PHP code returns the entire table, i.e., every single column and I don't know why:

    $queryID = mysql_query("SELECT HSCode, UOM, EDescript FROM HSCodes WHERE MATCH(EDescript) AGAINST ('" . $description . "') ORDER BY HSCode, UOM, EDescript"); if ($queryID) { while ($queryRow = mysql_fetch_assoc($queryID)) { echo '$queryRow[HSCode] . ' | ' . $queryRow[UOM] . ' | ' . $queryRow[EDescript]; } }

    attached mail follows:


    DonPro wrote:

    >$queryID = mysql_query("SELECT HSCode, UOM, EDescript FROM HSCodes WHERE >MATCH(EDescript) AGAINST ('" . $description . "') ORDER BY HSCode, UOM, >EDescript"); > I don't see what is wrong but try echoing the text of the query itself and see if it contains what you think it does around the $desription area.

    HTH Chris