OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: php-general-digest-helplists.php.net
Date: Tue Feb 27 2001 - 11:27:09 CST

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

    php-general Digest 27 Feb 2001 17:27:09 -0000 Issue 537

    Topics (messages 41795 through 41847):

    Can't find php.ini on my Linux/Apache module install
            41795 by: Ken
            41803 by: Ben Peter
            41804 by: Ben Peter

    Re: redirect pages
            41796 by: Yasuo Ohgaki

    how to keep variable "alive" thur pages?
            41797 by: John LYC
            41800 by: Ankur Verma

    Resolved: Can't find php.ini on my Linux/Apache module install
            41798 by: Ken

    Re: Newbie: why do I get this error?
            41799 by: Harshdeep S Jawanda

    User Authentication
            41801 by: Amer Alhabsi
            41827 by: Krznaric Michael

    Safe_mode and prepend/append includes
            41802 by: Kim Lindberg

    simple session question
            41805 by: John LYC
            41838 by: Chris Lee

    help on select
            41806 by: Yamin Prabudy
            41825 by: Jason Stechschulte

    logout
            41807 by: Jacky.lilst
            41811 by: Jacky.lilst
            41813 by: Jacky.lilst
            41818 by: John LYC
            41819 by: Jacky.lilst
            41820 by: John LYC

    good ide?
            41808 by: Luke Loeffler
            41809 by: John LYC
            41810 by: Dan Cleveland
            41821 by: Gustavo Vieira Goncalves Coelho Rios

    Re: How to wrap output of formatted text
            41812 by: CC Zona

    can anyone please remove this subscriber:kia01jnd.terra.com.br?
            41814 by: Jacky.lilst

    PostgreSQL vs InterBase
            41815 by: Arnold Gamboa
            41816 by: Wade Halsey

    logout and clean up session and cookies
            41817 by: Jacky.lilst

    Re: forms & functions
            41822 by: Tim Ward

    remote printing from php script
            41823 by: Kim Prisk & Joyce Fennell

    fwrite in PHP4
            41824 by: Otakar Nejezchleb

    Exception Handling in php
            41826 by: kevin1

    Re: Copying Files to the Web Directory
            41828 by: Miles Thompson

    Re: Screen Size?
            41829 by: Jon Haworth

    Java Question
            41830 by: Conover, Ryan
            41831 by: Soeren Staun-Pedersen

    how do i check if a server is online ?
            41832 by: Markus H. Maussner
            41834 by: Robert Vetter
            41835 by: Marc Swanson
            41836 by: Chris Lee

    Stream Content
            41833 by: Karl J. Stubsjoen
            41844 by: Miles Thompson

    Best browser
            41837 by: Ide, Jim
            41839 by: Jason Jacobs
            41840 by: Christopher Allen
            41841 by: Kurth Bemis
            41842 by: Christopher Allen
            41847 by: Matt \"TrollBoy\" Wiseman

    $PATH_INFO
            41843 by: Data Driven Design

    Re: FORM module/extention for PHP4??
            41845 by: Manuel Lemos

    Return Image for PHP Link
            41846 by: Karl J. Stubsjoen

    Administrivia:

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

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

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

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

    attached mail follows:


    I can't seem to locate the php.ini file on my system.

    Here's some pertinent info from phpinfo():

    PHP Version 4.0.4pl1
    System Linux i686 unknown
    Configure Command './configure' '--with-mysql' '--with-apxs' '--enable-versioning'
    Server API Apache
    Configuration File (php.ini) Path /usr/local/lib

    find -name php.ini reveals no php.ini file.

    /usr/local/lib contains a php directory. The php directory seems to only contain PHP 4.0 source code.

    There IS a php3.ini file on the system, from a previous install. Is there any chance that this file is still being used?

    Where SHOULD this file be? And how do I find out for sure which one it is? Is it possible that it doesn't exist? If not, does that mean I could create one in /usr/local/lib? Where am I supposed to get a default version?

    Thanks,

    Ken

    attached mail follows:


    Ken,

    if PHP is 'built in' to apache (--with-apxs, besides other ways to
    achieve this), it is configured through Apache. This is either
    httpd.conf, or .htaccess files within your web tree.
    The 'configuration' section in the manual is more specific on that.

    Cheers,
    Ben

    Ken wrote:
    >
    > I can't seem to locate the php.ini file on my system.
    >
    > Here's some pertinent info from phpinfo():
    >
    > PHP Version 4.0.4pl1
    > System Linux i686 unknown
    > Configure Command './configure' '--with-mysql' '--with-apxs' '--enable-versioning'
    > Server API Apache
    > Configuration File (php.ini) Path /usr/local/lib
    >
    > find -name php.ini reveals no php.ini file.
    >
    > /usr/local/lib contains a php directory. The php directory seems to only contain PHP 4.0 source code.
    >
    > There IS a php3.ini file on the system, from a previous install. Is there any chance that this file is still being used?
    >
    > Where SHOULD this file be? And how do I find out for sure which one it is? Is it possible that it doesn't exist? If not, does that mean I could create one in /usr/local/lib? Where am I supposed to get a default version?
    >
    > Thanks,
    >
    > Ken
    >
    > --
    > PHP General Mailing List (http://www.php.net/)
    > To unsubscribe, e-mail: php-general-unsubscribelists.php.net
    > For additional commands, e-mail: php-general-helplists.php.net
    > To contact the list administrators, e-mail: php-list-adminlists.php.net

    attached mail follows:


    Hi Ken,

    that looks like both are being read, which I wasn't aware of. Thanks for
    pointing out.

    Setting things within the apache configuration is quite useful if you
    want to set them on a per-directory basis, or have different settings
    for .php and .phtml files, etc, etc.

    Cheers,
    Ben

    Ken wrote:
    >
    > At 07:08 AM 2/27/01 +0100, Ben Peter wrote:
    > >Ken,
    > >
    > >if PHP is 'built in' to apache (--with-apxs, besides other ways to
    > >achieve this), it is configured through Apache. This is either
    > >httpd.conf, or .htaccess files within your web tree.
    > >The 'configuration' section in the manual is more specific on that.
    >
    > Interesting. Are you suggesting that the PHP configuration directives could've been put into the httpd.conf file?
    >
    > Anyway, that wouldn't have been very practical, because they WEREN'T in there, and creating default values would have been a pain. What I needed (and found) was the php.ini-dist file, which was preloaded with defaults and comments. And once I put it in php.ini, PHP did respond to the changed settings I put into it.
    >
    > So, if what you're saying is true, then I guess it reads both httpd.conf and php.ini?
    >
    > Thanks,
    >
    > Ken
    > kenzofree-music.com
    >
    > >Cheers,
    > >Ben
    > >
    > >Ken wrote:
    > > >
    > > > I can't seem to locate the php.ini file on my system.
    > > >
    > > > Here's some pertinent info from phpinfo():
    > > >
    > > > PHP Version 4.0.4pl1
    > > > System Linux i686 unknown
    > > > Configure Command './configure' '--with-mysql' '--with-apxs' '--enable-versioning'
    > > > Server API Apache
    > > > Configuration File (php.ini) Path /usr/local/lib
    > > >
    > > > find -name php.ini reveals no php.ini file.
    > > >
    > > > /usr/local/lib contains a php directory. The php directory seems to only contain PHP 4.0 source code.
    > > >
    > > > There IS a php3.ini file on the system, from a previous install. Is there any chance that this file is still being used?
    > > >
    > > > Where SHOULD this file be? And how do I find out for sure which one it is? Is it possible that it doesn't exist? If not, does that mean I could create one in /usr/local/lib? Where am I supposed to get a default version?
    > > >
    > > > Thanks,
    > > >
    > > > Ken

    attached mail follows:


    SNIP
    >
    > I mean, of course
    > header("Location: page.php");
    >
    > Must teach fingers to wait for brain to engage :-)

    According to RFC2616, 'Location: ' header must be absolute URI (i.e.
    http://example.com/test.html), most browser works with relative URI, though.
    'Content-Location: ' can be both absolute and relative. Someone mentioned
    Apache's response header differ when 'Location: ' header is absolute and
    relative. he/she said when 'Location: ' is realative Apache send Status:
    200, when it is abosolute apache send Status: 302. (I didn't confirm this,
    though)

    Just FYI.

    Regards,

    --
    Yasuo Ohgaki
    

    attached mail follows:


    hi all,

    how do i keep an array of variable "alive" thru different pages... array is assigned with value at say index.php... user will move from tat page to say index2... index3... index4.php.. in index4.php i can still access the array...

    thanks..

    attached mail follows:


    I would suggest you to use sessions.

    http://www.php.net/manual/en/ref.session.php

    or use PHPLIB if you are on PHP3

    best regards

    Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India

    ----- Original Message ----- From: "John LYC" <johnedlabs.com> To: "PHP List" <php-generallists.php.net> Sent: Tuesday, February 27, 2001 11:02 AM Subject: [PHP] how to keep variable "alive" thur pages?

    > hi all, > > how do i keep an array of variable "alive" thru different pages... > array is assigned with value at say index.php... > user will move from tat page to say index2... index3... index4.php.. > in index4.php i can still access the array... > > > thanks.. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net

    attached mail follows:


    OK, I answered my own question. After researching on php.net, I determined that the php.ini should have been in /usr/local/lib, but was missing, presumably because whoever did the install skipped the step of copying php.ini-dist to /usr/local/lib/php.ini.

    I downloaded a source .tar, extracted it, found php.ini-dist, copied it to /usr/local/lib/php.ini, restarted Apache, and I'm in business. So, PHP was using default values in lieu of a php.ini file.

    - Ken

    At 12:11 AM 2/27/01 -0500, Ken wrote: >I can't seem to locate the php.ini file on my system. > >Here's some pertinent info from phpinfo(): > >PHP Version 4.0.4pl1 >System Linux i686 unknown >Configure Command './configure' '--with-mysql' '--with-apxs' '--enable-versioning' >Server API Apache >Configuration File (php.ini) Path /usr/local/lib > >find -name php.ini reveals no php.ini file. > >/usr/local/lib contains a php directory. The php directory seems to only contain PHP 4.0 source code. > >There IS a php3.ini file on the system, from a previous install. Is there any chance that this file is still being used? > >Where SHOULD this file be? And how do I find out for sure which one it is? Is it possible that it doesn't exist? If not, does that mean I could create one in /usr/local/lib? Where am I supposed to get a default version? > >Thanks, > >Ken

    attached mail follows:


    Hi,

    Steve Edberg wrote:

    > In your HTMLTable() function, use > > $this->attributes[] = array("border", "0"); > $this->attributes[] = array("cellpadding", "0"); > > otherwise, PHP thinks $attributes is a variable local to that > function, rather that a class variable.

    Yes, that did the trick :-) - thank you!

    --
    Regards,
    Harshdeep Singh Jawanda.
    

    attached mail follows:


    Hi,

    I'm trying to use an authentication method I found in a tutorial in the net. The server prompts for username/password. But if I enter the hard coded values (or any other values) the server rejects them with a message authorization failed.

    I use PHP 4 as a module on IIS

    Thanks very much for any help,

    here is the program I got from the tutorial.

    <?php

    if ( ( !isset( $PHP_AUTH_USER )) || (!isset($PHP_AUTH_PW)) || ( $PHP_AUTH_USER != 'user' ) || ( $PHP_AUTH_PW != 'open' ) )

    header( 'WWW-Authenticate: Basic realm="Private"' ); header( 'HTTP/1.0 401 Unauthorized' ); echo 'Authorization Required.'; exit;

    } else

    echo 'Success!';

    } ?>

    attached mail follows:


    Try this, it works for me.

    Mike

    if(!isset($PHP_AUTH_USER)) { Header("WWW-Authenticate: Basic realm=\"User Database\""); Header("HTTP/1.0 401 Unauthorized"); echo "<H1>ERROR</H1>You must enter a correct username and password in order to proceed\n"; exit; } else {

    if ($PHP_AUTH_USER=="admin" && $PHP_AUTH_PW=="love2change"){ print "You are successfully authenticated"; } else { Header("WWW-Authenticate: Basic realm=\"User Database\""); Header("HTTP/1.0 401 Unauthorized"); echo "You did not supply proper credentials and are therefore denied login\n"; exit; } } ?>

    -----Original Message----- From: Amer Alhabsi [mailto:alhabsi_NOSPAMsqu.edu.om] Sent: Tuesday, February 27, 2001 1:42 AM To: php-generallists.php.net Subject: [PHP] User Authentication

    Hi,

    I'm trying to use an authentication method I found in a tutorial in the net. The server prompts for username/password. But if I enter the hard coded values (or any other values) the server rejects them with a message authorization failed.

    I use PHP 4 as a module on IIS

    Thanks very much for any help,

    here is the program I got from the tutorial.

    <?php

    if ( ( !isset( $PHP_AUTH_USER )) || (!isset($PHP_AUTH_PW)) || ( $PHP_AUTH_USER != 'user' ) || ( $PHP_AUTH_PW != 'open' ) )

    header( 'WWW-Authenticate: Basic realm="Private"' ); header( 'HTTP/1.0 401 Unauthorized' ); echo 'Authorization Required.'; exit;

    } else

    echo 'Success!';

    } ?>

    -- 
    PHP General Mailing List (http://www.php.net/)
    To unsubscribe, e-mail: php-general-unsubscribelists.php.net
    For additional commands, e-mail: php-general-helplists.php.net
    To contact the list administrators, e-mail: php-list-adminlists.php.net
    

    attached mail follows:


    Hi, I have looked at the docs and was not able to find anything covering this subject. Hope you guys can help out. First a little info about my system: Linux 2.2.16 Apache 1.3.12 php 4.0.2 I have a prepend and append includes in php.ini, this works fine without php being in safe_mode Now in the near feature, I will need to put php in safe_mode, so I can host some other domains. If I set php in Safe_mode (safe_mode on) then my prepend/append files will not work, anyone have suggestions how to solve this ?

    -- 
    Kim Lindberg (webmasterscouting.dk)
    The Summercamp Association
    Look at our site: www.scouting.dk
    

    attached mail follows:


    does session_register() "over-write existing variable of the same name...?

    for example..

    //count already registered and holds value 3.

    session_register("count");

    print $count; //output null;

    attached mail follows:


    looks like it might. I do a simple isset() to see if it is set.

    <?php session_start(); if (!isset($HTTP_SESSION_VARS['count'])) { $count = 5; session_register('count'); } ?>

    works for me.

    --
    

    Chris Lee Mediawaveonline.com

    ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120

    leemediawaveonline.com

    "John LYC" <johnedlabs.com> wrote in message news:3A9B5BE3.7EDAF955edlabs.com... > does session_register() "over-write existing variable of the same > name...? > > for example.. > > //count already registered and holds value 3. > > session_register("count"); > > print $count; //output null; > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    Hi there I had a problem here I got a database in mysql that contains the date format like this "Mar 12 2001" now i try to sort the database and find out how many data in my MySQL that had a date > "Mar 12 2001"

    how can i change that kind of format so i can compare the data in unix time stamp format

    Yamin Prabudy

    attached mail follows:


    On Tue, Feb 27, 2001 at 03:12:17PM +0700, Yamin Prabudy wrote: > Hi there I had a problem here > I got a database in mysql that contains the date format like this "Mar 12 > 2001" > now i try to sort the database and find out how many data in my MySQL that > had a date > "Mar 12 2001" > > how can i change that kind of format so i can compare the data in unix time > stamp format

    Try this:

    <?php $date = mktime(0, 0, 0, 3, 12, 2001); $sql = "select * from table_name where unix_timestamp(date_column) " . "> $date"; ?>

    -- 
    Jason Stechschulte
    jpstechunoh.edu
    --
    Interestingly enough, since subroutine declarations can come anywhere,
    you wouldn't have to put BEGIN {} at the beginning, nor END {} at the
    end.  Interesting, no?  I wonder if Henry would like it. :-) --lwall
    

    attached mail follows:


    I have php site that user is required to login, but I don't have logout function yet. Is there anyone know the most practical way of logout method that people use nowadays?, in php I mean. There is no session or cookies used in this site. Jack jackyactivelifestyle.com "There is nothing more rewarding than reaching the goal you set for yourself"

    attached mail follows:


    Jack jackyactivelifestyle.com "There is nothing more rewarding than reaching the goal you set for yourself" ----- Original Message ----- From: Jackylilst <jackyactivelifestyle.com> To: Yamin Prabudy <phplistpro.net.id> Cc: <php-generallists.php.net> Sent: Tuesday, February 27, 2001 3:49 PM Subject: Re: [PHP] logout

    > Sorry, it was my mistake. There is session used to store userID and password > after the successful login. I don't under stand what you mean about to clean > up variables, how? > Jack > jackyactivelifestyle.com > "There is nothing more rewarding than reaching the goal you set for > yourself" > ----- Original Message ----- > From: Yamin Prabudy <phplistpro.net.id> > To: Jackylilst <jackyactivelifestyle.com> > Sent: Tuesday, February 27, 2001 2:40 AM > Subject: Re: [PHP] logout > > > > but still you had the variable hanging on the cookies while you are > running > > the login function... > > just clean out all the variables and then you had a log out function > (clean > > all the cookies) if you don't used cookies how do you transfer all the > login > > variable ? > > ----- Original Message ----- > > From: Jackylilst <jackyactivelifestyle.com> > > To: <php-generallists.php.net> > > Sent: Wednesday, February 28, 2001 4:14 AM > > Subject: [PHP] logout > > > > > > I have php site that user is required to login, but I don't have logout > > function yet. Is there anyone know the most practical way of logout method > > that people use nowadays?, in php I mean. There is no session or cookies > > used in this site. > > Jack > > jackyactivelifestyle.com > > "There is nothing more rewarding than reaching the goal you set for > > yourself" > > > > > > >

    attached mail follows:


    Sorry, it was my mistake. There is session used to store userID and password after the successful login. I don't under stand what you mean about to clean up variables, how? Jack jackyactivelifestyle.com "There is nothing more rewarding than reaching the goal you set for yourself" ----- Original Message ----- From: Yamin Prabudy <phplistpro.net.id> To: Jackylilst <jackyactivelifestyle.com> Sent: Tuesday, February 27, 2001 2:40 AM Subject: Re: [PHP] logout

    > but still you had the variable hanging on the cookies while you are running > the login function... > just clean out all the variables and then you had a log out function (clean > all the cookies) if you don't used cookies how do you transfer all the login > variable ? > ----- Original Message ----- > From: Jackylilst <jackyactivelifestyle.com> > To: <php-generallists.php.net> > Sent: Wednesday, February 28, 2001 4:14 AM > Subject: [PHP] logout > > > I have php site that user is required to login, but I don't have logout > function yet. Is there anyone know the most practical way of logout method > that people use nowadays?, in php I mean. There is no session or cookies > used in this site. > Jack > jackyactivelifestyle.com > "There is nothing more rewarding than reaching the goal you set for > yourself" > > >

    attached mail follows:


    if you are using session.... session_destroy might do the trick...

    "Jackylilst" wrote:

    > Sorry, it was my mistake. There is session used to store userID and password > after the successful login. I don't under stand what you mean about to clean > up variables, how? > Jack > jackyactivelifestyle.com > "There is nothing more rewarding than reaching the goal you set for > yourself" > ----- Original Message ----- > From: Yamin Prabudy <phplistpro.net.id> > To: Jackylilst <jackyactivelifestyle.com> > Sent: Tuesday, February 27, 2001 2:40 AM > Subject: Re: [PHP] logout > > > but still you had the variable hanging on the cookies while you are > running > > the login function... > > just clean out all the variables and then you had a log out function > (clean > > all the cookies) if you don't used cookies how do you transfer all the > login > > variable ? > > ----- Original Message ----- > > From: Jackylilst <jackyactivelifestyle.com> > > To: <php-generallists.php.net> > > Sent: Wednesday, February 28, 2001 4:14 AM > > Subject: [PHP] logout > > > > > > I have php site that user is required to login, but I don't have logout > > function yet. Is there anyone know the most practical way of logout method > > that people use nowadays?, in php I mean. There is no session or cookies > > used in this site. > > Jack > > jackyactivelifestyle.com > > "There is nothing more rewarding than reaching the goal you set for > > yourself" > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net

    attached mail follows:


    So what do I do? make it like link to the logout file like this? : <a href="logout.php3">logout</a> and at the logout file, can I do this? <?php db connection stuffs goes here session_destroy("sessionUserName") session_destroy("sessionPasword") header ("Location: http://www.homepage.com"); ?> I forgot to mention that It also had cookies to, is there any way to do the same with cookies? Jack jackyactivelifestyle.com "There is nothing more rewarding than reaching the goal you set for yourself" ----- Original Message ----- From: John LYC <johnedlabs.com> To: Jackylilst <jackyactivelifestyle.com> Cc: Yamin Prabudy <phplistpro.net.id>; <php-generallists.php.net> Sent: Tuesday, February 27, 2001 3:07 AM Subject: Re: [PHP] logout

    > if you are using session.... > session_destroy might do the trick... > > > > "Jackylilst" wrote: > > > Sorry, it was my mistake. There is session used to store userID and password > > after the successful login. I don't under stand what you mean about to clean > > up variables, how? > > Jack > > jackyactivelifestyle.com > > "There is nothing more rewarding than reaching the goal you set for > > yourself" > > ----- Original Message ----- > > From: Yamin Prabudy <phplistpro.net.id> > > To: Jackylilst <jackyactivelifestyle.com> > > Sent: Tuesday, February 27, 2001 2:40 AM > > Subject: Re: [PHP] logout > > > > > but still you had the variable hanging on the cookies while you are > > running > > > the login function... > > > just clean out all the variables and then you had a log out function > > (clean > > > all the cookies) if you don't used cookies how do you transfer all the > > login > > > variable ? > > > ----- Original Message ----- > > > From: Jackylilst <jackyactivelifestyle.com> > > > To: <php-generallists.php.net> > > > Sent: Wednesday, February 28, 2001 4:14 AM > > > Subject: [PHP] logout > > > > > > > > > I have php site that user is required to login, but I don't have logout > > > function yet. Is there anyone know the most practical way of logout method > > > that people use nowadays?, in php I mean. There is no session or cookies > > > used in this site. > > > Jack > > > jackyactivelifestyle.com > > > "There is nothing more rewarding than reaching the goal you set for > > > yourself" > > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > For additional commands, e-mail: php-general-helplists.php.net > > To contact the list administrators, e-mail: php-list-adminlists.php.net > >

    attached mail follows:


    for cookie... just setcookie() of the same cookiename to null;

    "Jackylilst" wrote:

    > I have php site that user is required to login, but I don't have logout function yet. Is there anyone know the most practical way of logout method that people use nowadays?, in php I mean. There is no session or cookies used in this site. > Jack > jackyactivelifestyle.com > "There is nothing more rewarding than reaching the goal you set for yourself"

    attached mail follows:


    Does anyone know of a good PHP ide? I've tried PHP-Coder, but it has bugs stem to stern, not the least of which mysteriously deleted an entire page of code... PHP Script editor I've also tried, but it is barren and in German...

    If only there were a Sun Forte for php.... :(

    Luke

    attached mail follows:


    try ultraedit32... http://www.ultraedit.com

    john

    Luke Loeffler wrote:

    > Does anyone know of a good PHP ide? I've tried PHP-Coder, but it has bugs > stem to stern, not the least of which mysteriously deleted an entire page of > code... PHP Script editor I've also tried, but it is barren and in German... > > If only there were a Sun Forte for php.... :( > > Luke > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net

    attached mail follows:


    A good ide specifically for PHP is being developed rather rapidly. It's called PHP Studio and once version 2.0 is complete (should be within 2 weeks) an announcement will be posted to this list. Good luck until then

    Dan Cleveland PHP Studio Programmer

    attached mail follows:


    Dan Cleveland wrote: > > A good ide specifically for PHP is being developed rather rapidly. It's > called PHP Studio and once version 2.0 is complete (should be within 2 > weeks) an announcement will be posted to this list. Good luck until then > > Dan Cleveland > PHP Studio Programmer > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net

    Why not VIM?

    VIM is a hell of editor!

    attached mail follows:


    In article <05d201c0a069$4877e0c0$0400000agdd.net>, cdukescdukes.com ("Clayton Dukes") wrote:

    > $row = mysql fetch array($sth); > > if ($row[0] != "") { > echo $row[0]; > > prints the data, but some of the results are long strings of text that don't > wrap in the browser, how can I force them to wrap at the edge of the browser?

    You already discovered the wordwrap() solution. The html solution looks like this:

    if ($row[0] != "") { echo "<p>$row[0]</p>";

    Cheers!

    -- 
    CC
    

    attached mail follows:


    No offend but can anyone please remove this subscriber : kia01jnd.terra.com.br ? His mail box is full and I got the message to tell me that everytime I post the message to the list, this time included :-) Jack jackyactivelifestyle.com "There is nothing more rewarding than reaching the goal you set for yourself"

    attached mail follows:


    I hve heard a great deal about InterBase. Please comment on which is better:

    1. Speed 2. Data Reliability 3. Compatibility with PHP

    Thanks for your comments.

    attached mail follows:


    Hi

    We have been using Interbase for all our php development and have not experienced problems. The oprational database is 4gigs and if we execute large queries on it we recieve sub-second responses so speed is definetly not a problem

    Interbase is a good way to go if you have need for a relational database and of course a bonus is that it is free :)

    ----- Original Message ----- From: Arnold Gamboa <arnoldphp4us.com> To: <php-generallists.php.net> Sent: Tuesday, February 27, 2001 11:00 AM Subject: [PHP] PostgreSQL vs InterBase

    > I hve heard a great deal about InterBase. Please comment on which is > better: > > 1. Speed > 2. Data Reliability > 3. Compatibility with PHP > > Thanks for your comments. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net > >

    attached mail follows:


    Hi Can anyone guide me how to do the logout function that can get rid off session and cookies? Both are used to store userID and password through the site. Jack jackyactivelifestyle.com "There is nothing more rewarding than reaching the goal you set for yourself"

    attached mail follows:


    essentially, no.

    PHP runs server side and the action of a form is generated client-side. To run a PHP function the page needs to be resubmitted. The code you have written will run the function before the page is submitted. try something like ... <? function myfunction() { if($submit) { $result = mysql_query("INSERT INTO app (name,company,address,suburb,state,post,areacode,phone,faxarea code,fax,email,secret) VALUES ('$name','$company','$address','$suburb','$state','$post', '$areacode','$phone','$faxareacode','$fax','$email','$secret')"); } }

    if ($thissubmit) myfunction(); ?> <form action="#?submit=<?php echo($submit) ?>&thissubmit>

    Tim Ward Senior Systems Engineer

    Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html

    > -----Original Message----- > From: Peter Houchin [mailto:peterhvfsa.com.au] > Sent: 27 February 2001 00:16 > To: PHP MAIL GROUP > Subject: forms & functions > > > Hiya, > > Can i call a function from the action line of a form? > > ie: > <? > function myfunction(){ > if($submit){ > $result = mysql_query("INSERT INTO app > (name,company,address,suburb,state,post,areacode,phone,faxarea > code,fax,email,secret) VALUES > ('$name','$company','$address','$suburb','$state','$post','$ar > eacode','$phone','$faxareacode','$fax','$email','$secret')"); > } > } > ?> > <form action="<? myfunction(); ?> > > i would like to do it this way because i have a form on > another page with passed the vaules thru to this one .. and i > don't want it looking at the if($submit) > Any help would be great > > Thanks > > Peter Houchin > Sun Rentals > peterhsunrentals.com.au > >

    attached mail follows:


    Hello Listers,

    I wish to print a file on a remote printer that is a queue on a Novell server.

    The print command is coming from an exec() function in a php3 script running under IIS on an NT 4 server.

    If I run the script from a dos prompt at the server, the file is printed to the Novell queue, but if the php3 script is 'run' from a web page it does not print.

    I have also tried the using the 'system()' function with the same result.

    By altering the php script, I can make the output go to a printer attached to the server's lpt1 port, so I know the syntax is OK.

    I have tried the 'net use lpt2 \\server\print_queue ' command both in the windows registry and in a batch file (see below) to send the output to the queue.

    I have also tried putting the print and net use commands in a batch file and run that from php3.

    Maybe someone can see a better approach or has done something like this before.

    Cheers

    KIM

    attached mail follows:


    This script works properly under PHP 3.0.18, but in PHP 4.0.4pl1 is the result file empty. When I add commented line #2 instead of calling MyEcho, it works correctly. When I add lines #1, it works somehow strange. After fwrite and fclose is file empty and after second fopen (and no fwrite) "OK" appears in it. What am I doing wrong?

    <? function MyEcho($Text) { global $GlPOutputFile, $GlOutputFile; fwrite($GlPOutputFile, $Text);

    #1 fclose($GlPOutputFile); #1 copy($GlOutputFile, "after_write"); #1 $GlPOutputFile=fopen($GlOutputFile, 'a'); } { $GlOutputFile=uniqid("/tmp/").".tmp"; $GlPOutputFile=fopen($GlOutputFile, "w");

    MyEcho("OK"); #2 fwrite($GlPOutputFile, "OK");

    fclose($GlPOutputFile); copy($GlOutputFile, "result"); unlink($GlOutputFile); } ?>

    attached mail follows:


    Is there any equivalent to Java's try-catch or Perl's eval{BLOCK}if($) structure in PHP?

    attached mail follows:


    Jason,

    Thanks for the reply, and you confirmed that I'm caught between the devil and the deep! At the same time, it's good to know that permissions work!

    As my client is real twitchy about changing directories, etc. I guess I'll write a little script to do all this and he can run it from his home directory after a SSH login. That will do everything for him automatically.

    It's a bit of a pain really, because he has to use three programs: WS-FTP to upload the files Administration web page to do the conversion to PHP Tera Term SSH to run a "publish_this" script.

    (I know we could have done the upload with PHP, but when WS-FTP costs only $30 it ain't worth it.)

    Thank you for your advice - Miles

    At 08:25 PM 2/26/01 -0700, Jason Cox wrote: >PHP runs as the webserver user which in most cases is user nobody. For PHP >to write to a directory, it has to be writable to this directory. A >possible solution would be to compile a PHP executable and run a script from >cron to copy the files periodically. By using cron and a cgi-version of PHP >you can run it as your desired user. > >Jason > >----- Original Message ----- >From: "Miles Thompson" <milesthompsonns.sympatico.ca> >To: <php-generallists.php.net> >Sent: Monday, February 26, 2001 7:18 PM >Subject: [PHP] Copying Files to the Web Directory > > > > I have a customer who insists on using Front Page, but wants protection > > against intruders on all his web pages. I envisioned a solution where he > > works in Front Page, then all his files are ftp'd to a directory on the > > server, opened and re-written as .php files with all links changed from > > "something.htm" to "something.php" and then copied to a directory on the > > same level called "test". So far so good, and this allows a php-one-liner > > to provide the necessary security. > > > > Now I'm stuck, because I have to copy these files from test to the >location > > of the web page itself. And I've not been able to do it, and I can't do > > it, as far as I can see without giving world-writeable permission to the > > web directory. Here's the skeletal directory structure ... > > > > .../www.website.com > > /admin > > /upload > > /test > > > > The script (php page) I'm using to do this is stored in /admin and I want > > to copy everything in /test (and any subdir's it may have) to >www.website.com. > > > > On the server, logged in as root, I can execute a shell script named > > newpub-web, located in www.website.com, which consists of: > > rm -f *.php > > rm -f ./graphics/* > > cp -fR ./admin/test/* . > > > > I've tried executing newpub-web from a php script, which changes to the >the > > working directory to www.website.com, as: > > exec( "newpub-web"), or system( "newpub-web" ) or passthru( > > "newpub-web"). None have worked. > > > > I've also tried executing the commands directly using system(), all >without > > effect, no errors, nothing. > > > > Do I have to change the group of www.website.com to nobody? That seems to > > be an awful security hole. > > > > Stymied in Nova Scotia - Miles Thompson > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > For additional commands, e-mail: php-general-helplists.php.net > > To contact the list administrators, e-mail: php-list-adminlists.php.net > > > >

    attached mail follows:


    Just remember that not everyone surfs with their browser window maximised.....

    IIRC there's a window.innerheight and .innerwidth in NN's model, but not in IE's <sigh>

    Cheers Jon

    -----Original Message----- From: Todd Kerpelman [mailto:toddavantgo.com] Sent: 26 February 2001 19:03 To: PHP Subject: RE: [PHP] Screen Size?

    > How do you determine a user's screen size (resolution)? Isn't there a > variable/function for this?

    I doubt you could do this in PHP, since your browser doesn't normally include screen size information in the headers it sends across to web servers.

    However, JavaScript can do this -- there's a screen object, with properties called screen.width and screen.height that specify (surprisingly enough) the width and height of the user's screen.

    You could create a form with some hidden inputs, and have a JavaScript body onLoad() event that would set the values of these hidden inputs to your user's screen size. When PHP receives this form. it could process the information from there.

    Hope this helps...

    --Todd

    > -----Original Message----- > From: Jason Bryner :: Focus Design Group, Inc. > [mailto:jasonfocusdesigngroup.com] > Sent: Sunday, February 25, 2001 10:52 PM > To: PHP > Subject: [PHP] Screen Size? > > > How do you determine a user's screen size (resolution)? Isn't there a > variable/function for this? > > > -- > Focus Design Group, Inc. > http://www.focusdesigngroup.com > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: > php-list-adminlists.php.net >

    ********************************************************************** 'The information included in this Email is of a confidential nature and is intended only for the addressee. If you are not the intended addressee, any disclosure, copying or distribution by you is prohibited and may be unlawful. Disclosure to any party other than the addressee, whether inadvertent or otherwise is not intended to waive privilege or confidentiality'

    **********************************************************************

    attached mail follows:


    I have not programmed in Java in awhile. I keep getting an error: when I invoke the JVM java Welcome.

    Exception in thread "main" java.lang.NoClassDefFoundError: Welcome

    It compiles fine. javac Welcome.java

    import java.lang.*;

    public class Welcome {

    //main method public static void main( String args[] ){ System.out.println( "Welcome to Java Programming!" );

    }

    }

    The above is the code I am compiling.

    Ryan Conover

    attached mail follows:


    > I have not programmed in Java in awhile. I keep getting an error: when I > invoke the JVM java Welcome.

    Which mailinglist did you think you posted this to? This is a PHP list. Take a look at http://www.php.net/ for more information on our favourite scripting language.

    Regards,

    Soeren Staun-Pedersen - staunnetwarriors.org ------ "The internet is full, beat it" - Me.

    attached mail follows:


    hi..

    i have the problem that i need to connect to a database on a server wich is quiet often offline.

    how can i connect to this database (mysql) and can check if the server is online. like.. if server is online -> fine we work as normaly if server is NOT online -> print out message and say "server offline try later"....

    i tried something like mysql_connect and then die ... but it takes approx 5 mins.. till i get the message.. do i have to set the timeout lower? and if yes.. how do i do that ?

    markus

    attached mail follows:


    "Markus H. Maussner" wrote: > > hi.. > > i have the problem that i need to connect to a database on a server wich > is quiet often offline. > > how can i connect to this database (mysql) and can check if the server is > online. > like.. if server is online -> fine we work as normaly > if server is NOT online -> print out message and say "server offline try > later".... > > i tried something like mysql_connect and then die ... > but it takes approx 5 mins.. till i get the message.. > do i have to set the timeout lower? and if yes.. how do i do that ?

    You could use ping command like this:

    exec("ping -c 4 TheServer",$out_arr);

    ...and evaluate the $out_arr to see if the ping command was successful.

    Robert

    attached mail follows:


    > i have the problem that i need to connect to a database on a server wich > is quiet often offline. > > how can i connect to this database (mysql) and can check if the server is > online. > like.. if server is online -> fine we work as normaly > if server is NOT online -> print out message and say "server offline try > later".... > > i tried something like mysql_connect and then die ... > but it takes approx 5 mins.. till i get the message.. > do i have to set the timeout lower? and if yes.. how do i do that ?

    This should do what you want:

    system("ping -c 1 www.someurl.com", $retval);

    if($retval == 0) { #server is alive } else { #server is down }

    HTH

    -Marc-

    #/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/# #Marc Swanson | \|||/ # #MSwanson Consulting | /o o\ # #Phone: (603)868-1721 |-ooo----O----ooo-# #Fax: (603)868-1730 | Solutions in: # #marcswansonmediaone.net | 'PHP 'Perl # # | 'SQL 'C++ # # | 'HTML 'Sh/Csh# # http://www.mswanson.com | 'Javascript # #/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/#

    attached mail follows:


    mysql_connect does not have a timeout option :(

    I wonder if your timeout is not because of mysql_connect but more a dns problem, try putting the IP in, see if it times out at a more reasonable speed. if not try fsockopen

    http://php.net/manual/en/function.fsockopen.php

    open the port, if no errors, close the port and continue, if there are errors then you know the server is down. fsockopen allows for a timeout option, set it to 2 sec or something, should be ok.

    <?php

    if ( !($fp = fsockopen ('mysql.server.com', 3306, $errno, $errstr, 2)) ) { echo " There has been an error : $errstr ($error) <br> "; } else mysql_connect('mysql.server.com', 'mysql_user', 'mysql_passwd');

    ?>

    is this server prone to alot of ups and downs ? might want to stay away from mysql_pconnect().

    --
    

    Chris Lee Mediawaveonline.com

    ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120

    leemediawaveonline.com

    ""Markus H. Maussner"" <markuse-commerceit.de> wrote in message news:Pine.LNX.4.21.0102271601480.1892-100000pcmaussner.e-commerceit.de... > hi.. > > i have the problem that i need to connect to a database on a server wich > is quiet often offline. > > how can i connect to this database (mysql) and can check if the server is > online. > like.. if server is online -> fine we work as normaly > if server is NOT online -> print out message and say "server offline try > later".... > > i tried something like mysql_connect and then die ... > but it takes approx 5 mins.. till i get the message.. > do i have to set the timeout lower? and if yes.. how do i do that ? > > markus > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    Does anyone know how to stream information to a browser (without the client having to hit refresh)? What do I need to get started? We want to have 2 numbers we want to display on the browser, we want these numbers to change as the data changes in the table, but done "streaming".

    * I am coding this in PHP of course : ) *

    Karl

    attached mail follows:


    Karl, Your demanding a lot of a stateless device. I seem to remember reading something, somewhere in Goodman's JavaScript Bible about sending output after the page had "finished".

    Your other option may be to use frames and have the frame contain the values you want refreshed. You're going to spend a lot of time keeping track of where you are.

    Miles Thompson

    At 08:16 AM 2/27/01 -0700, Karl J. Stubsjoen wrote: >Does anyone know how to stream information to a browser (without the client >having to hit refresh)? What do I need to get started? We want to have 2 >numbers we want to display on the browser, we want these numbers to change >as the data changes in the table, but done "streaming". > >* I am coding this in PHP of course : ) * > >Karl > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribelists.php.net >For additional commands, e-mail: php-general-helplists.php.net >To contact the list administrators, e-mail: php-list-adminlists.php.net

    attached mail follows:


    I am developing a PHP application for a client that allows users at remote locations to access and update a database. I would like to standardize on one www browser so that the help desk people only have to be knowledgeable about one browser. The users all have MS Win 95, 98, or NT. The quality (ie. the 'bug-free-ness") of the browser's SSL code is very important. What browser should I choose?

    Thanks - Jim

    attached mail follows:


    It's been my experience that Netscape doesn't support mistakes as well as IE (example...forgetting a close td tag or close table, stuff like that), so usually if I build a page, I use Netscape to check it and it almost always works the same in IE. As far as php and ssl goes, isn't that all server stuff? I'm kinda new at the server end, so this is a good question for me 2.

    Is it going to be an intranet page with the company only using one browser? If not, it should really probably be made to work in both browsers equally well.

    my 2 cents. Jason

    ----- Original Message ----- From: Ide, Jim <jidelgb-inc.com> To: <php-generallists.php.net> Sent: Tuesday, February 27, 2001 10:32 AM Subject: [PHP] Best browser

    > > I am developing a PHP application for a client that allows > users at remote locations to access and update a database. > I would like to standardize on one www browser so that the > help desk people only have to be knowledgeable about one > browser. The users all have MS Win 95, 98, or NT. The > quality (ie. the 'bug-free-ness") of the browser's SSL code > is very important. What browser should I choose? > > Thanks - > Jim > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    J-,

    I have tested netscape communicator 4.76 with ssl extensively. no problems what so ever.

    Take a look at www.modssl.org for some of the common problems that are associated with Internet Explorer and ssl.

    >The users all have MS Win 95, 98, or NT. The > quality (ie. the 'bug-free-ness") of the browser's SSL code > is very important. What browser should I choose?

    attached mail follows:


    At 10:39 AM 2/27/2001, Jason Jacobs wrote:

    he's probably referring to the SSL code that the browser uses. In that aspect - it doesn't matter. i'd personally choose netscape because of their good track record and conformity to standards. M$ does things their way or the hiway. Both browsers use the RSA libs from rsa security, so as far as algo compatibility thier both the same. i think that i'm going in circles.....but to get to my point - as far as ssl is concerned thier both the same. personally if your worried about sniffing then use netscape with the 128 enc pack. what about PPTP? have you looked at that for a solution.?

    ~kurth

    >It's been my experience that Netscape doesn't support mistakes as well as IE >(example...forgetting a close td tag or close table, stuff like that), so >usually if I build a page, I use Netscape to check it and it almost always >works the same in IE. As far as php and ssl goes, isn't that all server >stuff? I'm kinda new at the server end, so this is a good question for me >2. > >Is it going to be an intranet page with the company only using one browser? >If not, it should really probably be made to work in both browsers equally >well. > >my 2 cents. >Jason > >----- Original Message ----- >From: Ide, Jim <jidelgb-inc.com> >To: <php-generallists.php.net> >Sent: Tuesday, February 27, 2001 10:32 AM >Subject: [PHP] Best browser > > > > > > I am developing a PHP application for a client that allows > > users at remote locations to access and update a database. > > I would like to standardize on one www browser so that the > > help desk people only have to be knowledgeable about one > > browser. The users all have MS Win 95, 98, or NT. The > > quality (ie. the 'bug-free-ness") of the browser's SSL code > > is very important. What browser should I choose? > > > > Thanks - > > Jim > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > > For additional commands, e-mail: php-general-helplists.php.net > > To contact the list administrators, e-mail: php-list-adminlists.php.net > > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribelists.php.net >For additional commands, e-mail: php-general-helplists.php.net >To contact the list administrators, e-mail: php-list-adminlists.php.net

    attached mail follows:


    ----- Original Message ----- From: Kurth Bemis <kurthusaexpress.net> To: Jason Jacobs <jasonfactory7.com>; <php-generallists.php.net> Sent: Tuesday, February 27, 2001 9:43 AM Subject: Re: [PHP] Best browser

    > At 10:39 AM 2/27/2001, Jason Jacobs wrote: > > he's probably referring to the SSL code that the browser uses. In that > aspect - it doesn't matter

    Actually it does. On the mod_ssl user list countless messages go by with IE not working with ssl. Various work arounds have been implemented but IE is a pain. Here are common probs

    http://marc.theaimsgroup.com/?l=apache-modssl&w=2&r=1&s=Internet+Explorer&q= b

    http://www.modssl.org/docs/2.8/ssl_faq.html#ToC48

    attached mail follows:


    as per sourceforge: http://sourceforge.net/account/login.php Internet Explorer users will have intermittent SSL problems, so they should leave SSL after login. Netscape users should stay in SSL mode permanently for maximum security. Visit Microsoft for more information about this known problem.

    nuff said, Matt "Trollboy" Wiseman www.shoggoth.net/trollboy/trollboy.jpg Trollboyshoggoth.net "I wish the world had one throat!!" -Al Bundy

    ----- Original Message ----- From: "Christopher Allen" <callendriver8.org> To: "Jason Jacobs" <jasonfactory7.com>; <php-generallists.php.net>; "Kurth Bemis" <kurthusaexpress.net> Sent: Tuesday, February 27, 2001 10:49 AM Subject: Re: [PHP] Best browser

    > > ----- Original Message ----- > From: Kurth Bemis <kurthusaexpress.net> > To: Jason Jacobs <jasonfactory7.com>; <php-generallists.php.net> > Sent: Tuesday, February 27, 2001 9:43 AM > Subject: Re: [PHP] Best browser > > > > At 10:39 AM 2/27/2001, Jason Jacobs wrote: > > > > he's probably referring to the SSL code that the browser uses. In that > > aspect - it doesn't matter > > Actually it does. On the mod_ssl user list countless messages go by with IE > not working with ssl. Various work arounds have been implemented but IE is a > pain. Here are common probs > > http://marc.theaimsgroup.com/?l=apache-modssl&w=2&r=1&s=Internet+Explorer&q= > b > > http://www.modssl.org/docs/2.8/ssl_faq.html#ToC48 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    I've got a page that I'm currently working on that grabs a couple of variable from $PATH_INFO and uses them for db queries. The page is currently called content.php. My question is this, when I replace my index file with this will

    http://www.mydomain.com/somevar/someothervar

    be the same as

    http://www.mydomain.com/index.php/somevar/someothervar

    It could make things easier for me if it is.

    Data Driven Design PO Box 1084 Holly Hill, Florida 32117

    http://www.datadrivendesign.com http://www.rossidesigns.net

    attached mail follows:


    Hello Yasuo,

    On 27-Feb-01 01:37:30, you wrote:

    >Hello all,

    >I would like to know if anyone already wrote FORM module (not PHP >class/function) that handles HTML forms (elements, validation, etc).

    >I searched freashmeat, I couldn't find one.

    You did not search enough! :-)

    It seems that what you are looking for is a class like this that does Forms generation and validation:

    http://phpclasses.UpperDesign.com/browse.html/package/1

    Regards, Manuel Lemos

    Web Programming Components using PHP Classes. Look at: acm.org">http://phpclasses.UpperDesign.com/?user=mlemosacm.org

    --
    E-mail: mlemosacm.org
    URL: http://www.mlemos.e-na.net/
    PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp
    --
    

    attached mail follows:


    Hello,

    I'd like the source of an image tag to point to PHP code. I'd like that PHP code to generate an image (accordingly) and print/output the results back to the calling image. So:

    <img src="myphpcode.php">

    Where, myphpcode.php returns a valid image. I've done this before, but it is not fresh in my brain.

    Any help would be appreciated!

    Karl