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 Oct 02 2001 - 14:10:19 CDT

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

    php-general Digest 2 Oct 2001 19:10:19 -0000 Issue 911

    Topics (messages 69551 through 69620):

    Re: Array Elements & While Loops
            69551 by: TURPIN Jean Max

    Re: Sybase Result Paging
            69552 by: Veniamin Goldin

    named anchors and query strings
            69553 by: Scott Mebberson
            69571 by: bill

    Dated/Timed actions
            69554 by: Stephane Besnard
            69555 by: Lawrence.Sheed.dfait-maeci.gc.ca
            69558 by: Lukas
            69559 by: Henrik Hansen
            69560 by: paharito
            69561 by: Duncan Hill
            69567 by: Henrik Hansen
            69568 by: paharito
            69574 by: Henrik Hansen

    Re: session_set_save_handler question
            69556 by: Papp Gyozo

    looking for pluggable bb/forum
            69557 by: Ben Peter

    Re: session var being lost between pages
            69562 by: Papp Gyozo

    Re: Sessions, sessions, sessions...
            69563 by: Papp Gyozo

    Re: sessions in php4
            69564 by: Papp Gyozo

    formular multiple select trouble
            69565 by: Sebastian

    WebMail Client
            69566 by: Rosen
            69580 by: Michael A. Peters

    image upload
            69569 by: AJDIN BRANDIC

    do you like asian pussy?
            69570 by: rareasiannudes.xxxasia.com ()

    PHP - Nuke 5.2
            69572 by: Doug Daulton
            69578 by: Kurt Lieber

    Detecting user logout.
            69573 by: Alexander Deruwe
            69575 by: Henrik Hansen
            69615 by: tonyz

    Re: [PHP-DB] RE: [PHP] How to do a dynamic UPDATE SET
            69576 by: René Fournier

    Re: eregi
            69577 by: CC Zona

    how to decrease serverload easily?
            69579 by: Martin Lindhe
            69581 by: Rasmus Lerdorf
            69582 by: paharito
            69590 by: ReDucTor
            69592 by: Rasmus Lerdorf
            69594 by: ReDucTor
            69595 by: Rasmus Lerdorf
            69596 by: Maxim Maletsky \(PHPBeginner.com\)
            69597 by: Rasmus Lerdorf
            69598 by: paharito
            69602 by: Maxim Maletsky \(PHPBeginner.com\)
            69603 by: Maxim Maletsky \(PHPBeginner.com\)

    newbie - some simple questions
            69583 by: John A. Grant
            69585 by: Rasmus Lerdorf
            69593 by: NoWayMan
            69601 by: Brian Clark

    Sockets on FreeBSD Mac OS X
            69584 by: Devon Weller

    what directory should put the php.ini?
            69586 by: Caleb Carvalho
            69587 by: Martin Lindhe
            69588 by: Rasmus Lerdorf

    Sessions Variables and refresh pages
            69589 by: Karina Gómez Salgado
            69591 by: Rasmus Lerdorf
            69599 by: Karina Gómez Salgado
            69600 by: Rasmus Lerdorf
            69604 by: Karina Gómez Salgado
            69605 by: Rasmus Lerdorf

    Re: MySQL Ability
            69606 by: John Lim

    Rebuild PHP
            69607 by: Eric G.
            69608 by: Joseph Bannon
            69609 by: Duncan Hill
            69610 by: Matt Williams

    How can I suppress my variables from showing up in the address bar?
            69611 by: Salty Marine
            69612 by: Jack Dempsey
            69613 by: paharito

    Re: HTTP Authentication / Logging Out
            69614 by: tonyz

    PHP & MySQL
            69616 by: Brian Lee
            69617 by: Alfredeen, Johan

    Creating mailaccounts
            69618 by: Bjornie

    Htaccess / regex / php I dont know why it won't work
            69619 by: affixcom

    PHP slash Apache question?
            69620 by: Michael Champagne

    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:


    Hi.
    Don't forget to increment j :

    > //loop to check for bad email addresses:
    > $j = 0;
    > $flag = 0;
    > while ($j < count($User)){
    > if
    > (($User[$j]!="")&&!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*[a-z0-9-]+(\.[a-z0-9-]+)*$",
    > $User[$j]))
    > {
    > $flag = 1;
    > $errorNo = $j + 1;
    > }

    >$j++;
    >}

    -- 
    TURPIN Jean Max
    STUDENT
    College of Reunion's Island
    

    attached mail follows:


    THANK YOU VERY MUCH!

    ----- Original Message ----- From: "Papp Gyozo" <pgerzsonfreestart.hu> To: "Veniamin Goldin" <veniamin.goldinlabbis.lt>; <php-generallists.php.net> Sent: Monday, October 01, 2001 3:52 PM Subject: Re: [PHP] Sybase Result Paging

    > Hi, > > PEAR DB supports Sybase: > http://vulcanonet.com/soft/?pack=pear_tut > and there is a DB PAGER in PEAR: > http://vulcanonet.com/soft/?pack=pager > > BTW, you can search on http://phpclasses.upperdesign.com > or http://php.resourceindex.com > > ----- Original Message ----- > From: Veniamin Goldin <veniamin.goldinlabbis.lt> > To: <php-generallists.php.net> > Sent: Monday, October 01, 2001 11:12 AM > Subject: [PHP] Sybase Result Paging > > > > Hi all ! > > Does anybody has a solution of paging result for Sybase + PHP ? > > > > Like <<Prev 1 2 3 4 5 Next>> > > > > 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:


    Hi Guys,

    How do you reference both a named anchor and a query string in a link? i.e. <a href="page.php?location=01#bottom">link text</a> I am not sure if this is even possible?

    thanks

    Scott

    attached mail follows:


    <a href="page.php#bottom?location=01">link text</a>

    Scott Mebberson wrote:

    > Hi Guys, > > How do you reference both a named anchor and a query string in a link? i.e. > <a href="page.php?location=01#bottom">link text</a> I am not sure if this is > even possible? > > thanks > > Scott

    attached mail follows:


    Hi,

    Does anybody know how to generate 'dated/timed actions' with PHP?

    By this I mean, for instance, automatically sending an email to a group of people when a specific date and time is reached: sending a happy birthday message to a users.

    Thanks, Stephane.

    _________________________________________________________________ Téléchargez MSN Explorer gratuitement à l'adresse http://explorer.msn.fr/intl.asp

    attached mail follows:


    cron job.

    Probably something along the lines of small php code interfacing with a db with dates etc in, and another php script which checks the dates and emails details on that day.

    A Cron job which runs the script daily would probably do the job.

    do a search in google for cron job -----Original Message----- From: Stephane Besnard [mailto:stephane_besnardhotmail.com] Sent: October 2, 2001 4:29 PM To: php-generallists.php.net Subject: [PHP] Dated/Timed actions

    Hi,

    Does anybody know how to generate 'dated/timed actions' with PHP?

    By this I mean, for instance, automatically sending an email to a group of people when a specific date and time is reached: sending a happy birthday message to a users.

    Thanks, Stephane.

    _________________________________________________________________ Téléchargez MSN Explorer gratuitement à l'adresse http://explorer.msn.fr/intl.asp

    -- 
    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:


    Stephane,

    One possibilety is to have a script which does the sending - checking against a db to see what to send out, having it called periodically from a cron job.

    I have built a (very) simple little daemon for doing jobs like this, it works similarly to cron except it is easier to programmaticly add and remove jobs. It also works on a linear time idea, rather than periodic like cron, so you can ask it to schedule a job a specific time offset from now, or at an absolute time (like cron). This is part of a package i've been working on for a while for defining & managing processes like you describe below.

    Lukas

    "Stephane Besnard" <stephane_besnardhotmail.com> wrote in message news:F12jK40qbX9qfQdOHjL0000dc25hotmail.com... > Hi, > > Does anybody know how to generate 'dated/timed actions' with PHP? > > By this I mean, for instance, automatically sending an email to a group of > people when a specific date and time is reached: sending a happy birthday > message to a users. > > Thanks, > Stephane. > > _________________________________________________________________ > Téléchargez MSN Explorer gratuitement à l'adresse > http://explorer.msn.fr/intl.asp >

    attached mail follows:


    stephane_besnardhotmail.com (Stephane Besnard) wrote:

    > Hi, > > Does anybody know how to generate 'dated/timed actions' with PHP? > > By this I mean, for instance, automatically sending an email to a > group of people when a specific date and time is reached: sending a > happy birthday message to a users.

    use a cronjob

    http://alt-php-faq.org/#id81

    -- 
    Henrik Hansen
    

    attached mail follows:


    But what if your server can't give you cron perms?

    It would be useful if I could send an e·mail every monday... but can I do this without the cron?

    Thanks... and Hi!! to the group. I'm the New from Spain... ;)

    ----- Original Message ----- From: "Henrik Hansen" <hhmailserver.dk> To: <php-generallists.php.net> Sent: Tuesday, October 02, 2001 12:27 PM Subject: [PHP] Re: Dated/Timed actions

    > stephane_besnardhotmail.com (Stephane Besnard) wrote: > > > Hi, > > > > Does anybody know how to generate 'dated/timed actions' with PHP? > > > > By this I mean, for instance, automatically sending an email to a > > group of people when a specific date and time is reached: sending a > > happy birthday message to a users. > > use a cronjob > > http://alt-php-faq.org/#id81 > > -- > Henrik Hansen > > -- > 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:


    On Tue, 2 Oct 2001, paharito wrote:

    > But what if your server can't give you cron perms? > > It would be useful if I could send an e·mail every monday... but can > I do this without the cron?

    Try at instead.

    -- 
    

    Sapere aude My mind not only wanders, it sometimes leaves completely.

    attached mail follows:


    dhillcricalix.net (Duncan Hill) wrote:

    > On Tue, 2 Oct 2001, paharito wrote: > >> But what if your server can't give you cron perms? >> >> It would be useful if I could send an e·mail every monday... but can >> I do this without the cron? > > Try at instead.

    if you dont have cron access I dont think you have at perms either.

    maybe set a job up on your local computer?

    -- 
    Henrik Hansen
    

    attached mail follows:


    Well, it maybe posibble... but how can be it done by a php script?

    I mean:

    - The job is to send a mail to the mail-list of my web every monday, but I cannot use the crontab

    I think I can do this script:

    - At every visit at my index page, I check the system date, and if it is equal to 0:00am of monday, send the mail, and maybe, set a variable = 1 (1 means Send, for example), so the next visit won't active the script that sends the email...

    But if there are 2 simultaneos visits at 0:00am or mayor, the php will execute 2 times the script...

    so... is there a good script as efective as a cron job?

    Thanks :)

    PD: yes, my english sux XD

    ----- Original Message ----- From: "Henrik Hansen" <hhmailserver.dk> To: <php-generallists.php.net> Sent: Tuesday, October 02, 2001 2:27 PM Subject: Re: [PHP] Re: Dated/Timed actions

    > dhillcricalix.net (Duncan Hill) wrote: > > > On Tue, 2 Oct 2001, paharito wrote: > > > >> But what if your server can't give you cron perms? > >> > >> It would be useful if I could send an e·mail every monday... but can > >> I do this without the cron? > > > > Try at instead. > > if you dont have cron access I dont think you have at perms either. > > maybe set a job up on your local computer? > > -- > Henrik Hansen > > -- > 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:


    paharitoinfonegocio.com (Paharito) wrote:

    > Well, it maybe posibble... but how can be it done by a php script? > > I mean: > > - The job is to send a mail to the mail-list of my web every monday, but I > cannot use the crontab > > I think I can do this script: > > - At every visit at my index page, I check the system date, and if it is > equal to 0:00am of monday, send the mail, and maybe, set a variable = 1 (1 > means Send, for example), so the next visit won't active the script that > sends the email... > > But if there are 2 simultaneos visits at 0:00am or mayor, the php will > execute 2 times the script... > > so... is there a good script as efective as a cron job? >

    cron is the superior when you need to do things like that. It's not effective to have a script running all the time checking for jobs.

    -- 
    Henrik Hansen
    

    attached mail follows:


    I'm recently working on a customized Error Handler class. As you may know, set_error_handler() is for setting a user function (error_handler) to handle errors in a script.

    I'm forced to write a wrapper function to search my class instance in the global symbol table. ($GLOBALS you know :)

    So I suspect that the functionalities connected to inside of PHP somehow (session_*, error handling, shutdown callback functions) works only with simple structural function.

    ----- Original Message ----- From: "Bob Bowker" <bowkeriNetWebInc.com> To: "PHP List" <php-generallists.php.net> Sent: Tuesday, September 25, 2001 5:10 AM Subject: [PHP] session_set_save_handler question

    > Hi -- > > No luck finding an answer to this ... can class methods be registered as > the user functions with session_set_save_handler() -- or do I have to > create a wrapper outside the class to call the class functions? Using > 4.0.3pl1 ... > > Thanks -- > > Bob. > > > -- > 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 all,

    does anyone know of good php forum software that does not take the approach that customizable headers/footers are used (like with phorum), but one that is plugged in the middle of a page, say by calling a function that displays the forum in it's current status, or by including a file?

    I cannot use something like phorum, as the setup of my site is too complex (relies heavily on auto preprend and append) and a lot of navigation and boxes and ... are to be placed around the actual forum functionality.

    Any help is appreciated. Thanks,

    Ben

    attached mail follows:


    He meant that session_start() needs to be invoked on each page. If you miss it on any page, then PHP assumes that this page does not use sessions.

    track_vars is a configuration directive in PHP.ini (http://www.php.net/manual/en/configuration.php) this is set to true after PHP4.0.3 I assume that he thought of register_globals: (from PHP manual)

    register_globals Tells whether or not to register the EGPCS (Environment, GET, POST, Cookie,Server) variables as global variables. You may want to turn this off if you don't want to clutter your scripts' global scope with user data. This makes the most sense when coupled with track_vars - in which case you can access all of the EGPCS variables through the $HTTP_ENV_VARS,$HTTP_GET_VARS,$HTTP_POST_VARS, $HTTP_COOKIE_VARS, and $HTTP_SERVER_VARS arrays in the global scope.

    and additionally your original problem:

    session_register() registers the _global_(!) variable named by it with the current session. session_start() needs no argument.

    hth, Papp Gyozo - pgerzsonfreestart.hu

    ----- Original Message ----- From: "Jean-Christian Imbeault" <jean_christianhotmail.com> To: <cdecheryeasynet.com.br>; <php-generallists.php.net> Sent: Tuesday, October 02, 2001 4:44 AM Subject: Re: [PHP] session var being lost between pages

    > Can someone explain this to me? I am not very confused after reading this > post ... > > >are you sure you have session_start() on all three pages and you have > >enabled 'track_vars'??? > > I have done no such thing. The PHP book I have doesn't mention any of this. > It simply says that using session_start() and session_register() will cause > the vars to be kept between pages. Are you sure what you are sayign is true? > > If so please help me understand because I never saw any methion of what you > say must be done in any book or on PHP ML etc ... > > Thanks! > > Jc > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > > -- > 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:


    session_register() registers the _global_ variable named by it with the current session. So if these globals are not set, you 're out of luck, I think.

    ----- Original Message ----- From: "Bradley Goldsmith" <bradmassive.com.au> To: <php-generallists.php.net> Sent: Tuesday, October 02, 2001 3:13 AM Subject: [PHP] Sessions, sessions, sessions...

    > Hi, > > I am using php4 (great) under win32 apache (not so great) ... > > I am trying to regsiter two session variables. When the page is > first displayed, the variables are registered thus: > > session_register("Sheet"); > $HTTP_SESSION_VARS["Sheet"]=serialize($Sheet); > > //store time offset session > session_register("offset"); > $HTTP_SESSION_VARS["offset"]=$offset; > > I had some checking code in there before and the registers returned > true. > > The problem is that on the first time around the variables do not > seem to register. However, if the page loads and then I do a refresh by > clicking on the toolbar - it all seems to work ok. > > Any ideas on how I can get the vars to stick first time around? > > Cheers, > Brad > > > > -- > 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:


    try this one: header('Location: new-location.php?'.session_name().'='.session_id()); PHP will append the session_id to the URLs defined in url_rewrite.tags. AFAIK, this feature is only for HTML tags.

    ----- Original Message ----- From: "Alex Shi" <chpshinetvigator.ca> To: "sagar N Chand" <sagarchandyahoo.com>; "php" <php-generallists.php.net> Sent: Tuesday, October 02, 2001 7:20 AM Subject: Re: [PHP] sessions in php4

    > I always using session together with header() and never got a > problem. Here's something might be a hint to you: > > <? > session_start(); > $value = 908; > // I always register it before using it > > session_register("value"); > header("location : new location"); > // How did you write the "new location"? I never header() to a > // location outsite of the current site, and I never use "http://..." > // in the "new location" > > ?> > > Alex > > > ----- Original Message ----- > From: "sagar N Chand" <sagarchandyahoo.com> > To: "php" <php-generallists.php.net> > Sent: Monday, October 01, 2001 9:54 PM > Subject: [PHP] sessions in php4 > > > hi all, > > i'm using a php4.0.6 with apache on win2k. when i register a session and > immediately if i redirect to another > page the session seems not to be registered. eg. > <? > session_start(); > $value = 908; > session_register("value"); > header("location : new location"); > ?> > > when i go to the new page i c that the session has not been reigstered. > > but in case if i dont redirect from php rather use a html redirection code > like "click here to redirect" then > it worked. why ? > <? > session_start(); > $value = 908; > session_register("value"); > ?> > <a href="newlocation">click here to redirect</a> (this worked out ) > > any suggestions ? > > /sagar > > > > > -- > 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 all If i use multiple select fields in a from i use name[] to access it in php afterwards <select name=aname[] multiple> <option>test1</option> <option>test2</option> </select> i can then access in php $name and it has its the elements that were selected. my problem now is that i can't access name[] with javascript... if i try <javascript> alert(document.fo.neme[].value); </javascript> gives an error... is there another way to neme the seletc field? if i use name=aname then i only get one selected value in php..... thanks sebastian

    attached mail follows:


    Hi, Can someone recommend me some free php script for WebMail client (like Squerriemail) ?

    Thanks, Rosen

    attached mail follows:


    Basilix. I'm using it right now- configured to use Apple's imap server (iTools)

    Anyway, Basilix is incredibly good, allows for https if user wishes, easy to configure.

    Requires imap functionallity in your php, and only works with imap servers.

    The imap server it connects to need not be on the web machine, nor does the sendmail server. It does use MySQL, but he's working on a Postgresql option too. (MySQL server need not be on your machine- but it does need to be one you can creat a database and grant access privs on ;)

    http://www.basilix.org

    On 02 Oct 2001 05:38 PDT you wrote:

    > Hi, > Can someone recommend me some free php script for WebMail client > (like Squerriemail) ? > > Thanks, > Rosen >

    attached mail follows:


    Hi

    I have a problem uploading images on my server. I have foung#d similar question in the archive u no answer to it.

    If a file is uploaded to the server through a form it stores it in the right place with the right name but the file size is incorrect and it is not visible (though a browser). When copying, GetImageSize doesn't display anything. If I submit without attaching a file to the form it doesn't display 'none' (field value) but nothing ''.

    Any idea what is the problem here. Apache/Linux setup or PHP setup? I guess it is not uploading as binary???

    Regards

    Ajdin

    attached mail follows:


    Below is the result of your feedback form. It was submitted by (rareasiannudesxxxasia.com) on Tuesday, October 2, 2001 at 09:00:06 ---------------------------------------------------------------------------

    : <b>please visit these following sites if you want access to THOUSANDS OF RARE PHOTOS and LIVE FEEDS most of these PHOTOS/MOVIES ARE BANNED IN ASIA! GET EM WHILE THEY'RE HOT! <br><br> (best viewed with IE. thanks)<br> <a href="http://www.japanbitch.com/join/?c=chicken">WWW.JAPANBITCH.COM</a> <BR><BR> <a href="http://www.asianhearts.com/join/?c=chicken">WWW.ASIANHEARTS.COM</A> <BR><BR> <a href="http://www.japanwhore.com/join/?c=chicken">WWW.JAPANWHORE.COM</A> <BR><BR> <a href="http://www.wildcities.com/members/asian/xian/main.html">FREE ASIAN GALLERY</a><br><br></b>

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

    attached mail follows:


    Hello,

    Any Nuke folks out there? If so, could you point me to some good dev resources for Nuke?

    Thanks,

    Doug Daulton

    attached mail follows:


    Actaully, I recommend you take a look at PostNuke. It's a fork of PHP-Nuke 5.0 that's designed to be more open, better architected, less buggy and just an all-around more mature, stable product.

    http://www.postnuke.com

    and the vision:

    http://www.postnuke.com/modules.php?op=modload&name=Sections&file=index& req=viewarticle&artid=2

    It has a fairly clear roadmap, a strong core team of developers (rather than just one developer) and it doesn't seem to have all the political baggage that PHP-Nuke did/does.

    Anyway, I've used both and have been much happier with PostNuke, for a variety of reasons.

    --kurt

    > -----Original Message----- > From: Doug Daulton [mailto:phpursastudios.com] > Sent: Tuesday, October 02, 2001 6:25 AM > To: php-generallists.php.net > Subject: [PHP] PHP - Nuke 5.2 > > > Hello, > > Any Nuke folks out there? If so, could you point me to some > good dev resources for Nuke? > > Thanks, > > Doug Daulton > > > > -- > 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:


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

    Hey all,

    I keep track of my users using PHP4 sessions, with verification against a PostgreSQL database.

    How can I detect when a user logs out / is logged out? I provide a hyperlink 'Logout' which users are supposed to click, so I can obviously check there. My main concern however is that people won't really use that link, but just close their browser.. Which means my table with logged in users will never get properly updated. Any ideas are appreciated.

    Alexander -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org

    iD8DBQE7ueiKySJLuRUx8aQRAmLtAJ44EBWco333d62y513SEL9pNZr2qACbBNsY 4oKO7dlN2E957UeT3tuWG+A= =Aaku -----END PGP SIGNATURE-----

    attached mail follows:


    aderuwe.be (Alexander Deruwe) wrote:

    > Hey all, > > I keep track of my users using PHP4 sessions, with verification against a > PostgreSQL database. > > How can I detect when a user logs out / is logged out? I provide a hyperlink > 'Logout' which users are supposed to click, so I can obviously check there. > My main concern however is that people won't really use that link, but just > close their browser.. Which means my table with logged in users will never > get properly updated. Any ideas are appreciated.

    when the user surfs your pages you update their logged in timestamp then it's always updated with the last time they were asctive on your page, then you setup a cronjob or something else to check weather or not the users has been active in a given interval like 1 hour. This method will still have somekind of uncertainty. I still think there are many other ways (better?) to do it.

    -- 
    Henrik Hansen
    

    attached mail follows:


    why bother charting logouts. use cookies that expires so you know that they will eventually lose access and need to login again.

    just a thought tonyz

    Henrik Hansen wrote: > > aderuwe.be (Alexander Deruwe) wrote: > > > Hey all, > > > > I keep track of my users using PHP4 sessions, with verification against a > > PostgreSQL database. > > > > How can I detect when a user logs out / is logged out? I provide a hyperlink > > 'Logout' which users are supposed to click, so I can obviously check there. > > My main concern however is that people won't really use that link, but just > > close their browser.. Which means my table with logged in users will never > > get properly updated. Any ideas are appreciated. > > when the user surfs your pages you update their logged in timestamp > then it's always updated with the last time they were asctive on your > page, then you setup a cronjob or something else to check weather or > not the users has been active in a given interval like 1 hour. This > method will still have somekind of uncertainty. I still think there > are many other ways (better?) to do it. > > -- > Henrik Hansen

    attached mail follows:


    Thanks David! And thanks to everyone that helped out. This last suggestion I tried worked beautifully--(and even better, I think I understand why :-).

    ...Rene

    ---
    Rene Fournier
    renefournieryahoo.com
    

    > -----Original Message----- > From: David Balatero [mailto:dbreactiongaming.com] > Sent: Monday, October 01, 2001 7:22 PM > To: René Fournier; php-generallists.php.net; php-dblists.php.net > Subject: RE: [PHP-DB] RE: [PHP] How to do a dynamic UPDATE SET > > > Try this: > > <?php > if ($submit) { > // if there is an ID, then it's an update > if ($id) { > $comma = ""; > for ($i = 1; $i < $columns; $i++) { > $fld = mysql_field_name($fields, $i); > $val = $$fld; > $set .= $comma."$fld='".$val."'"; > $comma = ", "; > } > $set .= " "; > > echo $set, "<p>"; > > // run SQL against the DB > $sql = "UPDATE events SET $set WHERE id=$id"; > echo $sql, "<p>"; > $result = mysql_query($sql); > } > echo "<span class=adminnormal>Record updated"; > } > > ?> > > -- David Balatero, dbreactiongaming.com > > -----Original Message----- > From: René Fournier [mailto:rene.fourniermarkada.com] > Sent: Monday, October 01, 2001 4:05 PM > To: php-generallists.php.net; php-dblists.php.net > Subject: [PHP-DB] RE: [PHP] How to do a dynamic UPDATE SET > > > Thanks for the suggestions--I tried yours and Vincent's, but I'm still > getting the same problem. Here's the code I'm using: > > > ------------------------------------------------------------------ > ---------- > -------------------- > if ($submit) { > // if there is an ID, then it's an update > if ($id) { > $comma = ""; > for ($i = 1; $i < $columns; $i++) { > $fld = mysql_field_name($fields, $i); > $set .= $comma."$fld='$".$fld."'"; > $comma = ", "; > } > $set .= " "; > > echo $set, "<p>"; > > // run SQL against the DB > $sql = "UPDATE events SET $set WHERE id=$id"; > echo $sql, "<p>"; > $result = mysql_query($sql); > } > echo "<span class=adminnormal>Record updated"; > } > ------------------------------------------------------------------ > ---------- > -------------------- > > > And here's the echo'ed values for $sql and $set: > > > ------------------------------------------------------------------ > ---------- > -------------------- > lang='$lang', record='$record', date='$date', what='$what', link='$link', > location='$location', details='$details' > > UPDATE events SET lang='$lang', record='$record', date='$date', > what='$what', link='$link', location='$location', details='$details' WHERE > id=1 > ------------------------------------------------------------------ > ---------- > -------------------- > > > The result: PHP updates the values of lang, record, date, what (etc.) to > [LITERALLY] $lang, $record, $date, etc--NOT the values of those fields > submitted by the form. I'm kinda lost as to what to do... Any > suggestions?? > > ...Rene > > --- > Rene Fournier > renefournieryahoo.com > > > -----Original Message----- > > From: Joe Kaiping [mailto:kaipingphreedom.com] > > Sent: Monday, October 01, 2001 4:05 PM > > To: 'René Fournier'; php-generallists.php.net > > Subject: RE: [PHP] How to do a dynamic UPDATE SET > > > > > > Something like this might work for you. (Just typed in the code > > and didn't > > test it, so take with a grain of salt. It doesn't really take > > into account > > all types of data, but maybe it will help with an idea.) > > > > Have groups of the following in your form: > > > > <TR> > > <TD> > > <SELECT NAME="column[]"> > > <OPTION VALUE="column_name1">column_name1 > > <OPTION VALUE="column_name2">column_name2 > > </SELECT> > > </TD> > > <TD><INPUT NAME="col_value[]" TYPE="text" VALUE="" SIZE=20></TD> > > </TR> > > > > and process it like: > > > > $set_clause = "SET "; > > $comma = ""; > > for ($i=0; $i<count($column); $i++) { > > $set_clause .= $comma . $column[$i] . "=" . $col_value[$i]; > > $comma = ","; > > } > > > > $sql = "UPDATE $table $set_clause WHERE id=$id"; > > > > -Joe > > > > > -----Original Message----- > > > From: René Fournier [mailto:rene.fourniermarkada.com] > > > Sent: Monday, October 01, 2001 2:33 PM > > > To: php-generallists.php.net > > > Subject: [PHP] How to do a dynamic UPDATE SET > > > > > > > > > I'm having a REALLY hard time with something that's probably > > > easy to do (for > > > someone :-)... > > > > > > Normally, to perform an update on a table with data from a > > > submitted form, I > > > would use something like: > > > > > > $sql = "UPDATE $table SET pet='$pet', name='$name' WHERE id=$id"; > > > $result = mysql_query($sql); > > > > > > And it would work. Of course, if I wanted to update a > > > different table (with > > > different columns/fields), I would need to only change the > > > SET part of the > > > SQL (since the value for $table is dynamically generated). > > > For example, > > > > > > $sql = "UPDATE $table SET car='$car', year='$year' WHERE id=$id"; > > > $result = mysql_query($sql); > > > > > > But here's what I want to do now: I want to use the same two > > > lines of code > > > for any possible form data that might be submitted--in other > > > words, I don't > > > want to have to create unique $sql/$result lines for each and > > > every table in > > > my database. I want this .php code to accept whatever number > > > and type of > > > form elements/data submitted, and make the appropropriate SET values. > > > Anyone know how I can do that? I actually have tried several > > > things to pass > > > the form data strcuture (number and names of columns) over to > > > this php code, > > > but haven't been able to get anything working. Can anyone > > > help?? Much > > > thanks if you can.. > > > > > > ...Rene > > > > > > --- > > > Rene Fournier > > > > > > > > > -- > > > 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 > > > > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribelists.php.net > For additional commands, e-mail: php-db-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net > > > >

    attached mail follows:


    In article <B7DE995A.1676B%php-lbakednotfried.com>, php-lbakednotfried.com (Mike Cullerton) wrote:

    > eregi("^[a-z0-9_\-]+$",$string) > > notice that i had to escape the dash with a backslash

    Are you sure? 'Cuz AFAIK, escaping shouldn't be necessary on a hyphen which is the last char (or, IIRC, the first) of a character class.

    -- 
    CC
    

    attached mail follows:


    We're developing a web platform based on PHP, running under Apache. We have realized that we need a way of "split up" the serverload to multiple machines if it gets too high. We've come up with PHP solutions to the problem but are looking for better ones, especially in Apache configuration. Is there any easy way of doing this? Anyone have previous experience?

    Software versions and OS'es is of no concern, we'll use what's required.

    /Martin

    attached mail follows:


    > We're developing a web platform based on PHP, running under Apache. We have > realized that we need a way of "split up" the serverload to multiple > machines if it gets too high. We've come up with PHP solutions to the > problem but are looking for better ones, especially in Apache configuration. > Is there any easy way of doing this? Anyone have previous experience? > > Software versions and OS'es is of no concern, we'll use what's required.

    Have a look at http://conf.php.net/sdphp and have a look at slides 46 through 48.

    Basically, I would suggest a Squid reverse proxy as a front-end to your system. Have it use a redirector like SquidGuard to distribute requests across multiple backend web servers, and if you need to distribute your database load as well, set up a single master mysql server which replicates to read-only servers on each of the load balanced Apache servers. And if you are getting really crazy traffic, you could round robin across multiple frontend squid servers. But I would be very surprised if you are doing anything that is getting that much traffic.

    How many hits per second are you expecting?

    -Rasmus

    attached mail follows:


    Can you think a site with 250.000 visitis (uniques ip) each day?

    We have very troubles with the mysql server... The, because there is only 1 mysql server... I'm interesting in the solution you pourpose... Where can I get more information about that?

    thanks

    ----- Original Message ----- From: "Rasmus Lerdorf" <rasmusphp.net> To: "Martin Lindhe" <martinhumany.com> Cc: <php-generallists.php.net> Sent: Tuesday, October 02, 2001 5:32 PM Subject: Re: [PHP] how to decrease serverload easily?

    > > We're developing a web platform based on PHP, running under Apache. We have > > realized that we need a way of "split up" the serverload to multiple > > machines if it gets too high. We've come up with PHP solutions to the > > problem but are looking for better ones, especially in Apache configuration. > > Is there any easy way of doing this? Anyone have previous experience? > > > > Software versions and OS'es is of no concern, we'll use what's required. > > Have a look at http://conf.php.net/sdphp and have a look at slides 46 > through 48. > > Basically, I would suggest a Squid reverse proxy as a front-end to your > system. Have it use a redirector like SquidGuard to distribute requests > across multiple backend web servers, and if you need to distribute your > database load as well, set up a single master mysql server which > replicates to read-only servers on each of the load balanced Apache > servers. And if you are getting really crazy traffic, you could round > robin across multiple frontend squid servers. But I would be very > surprised if you are doing anything that is getting that much traffic. > > How many hits per second are you expecting? > > -Rasmus > > > -- > 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:


    http://conf.php.net/pres/slides/intro/tshirt.php?si=30&text=php

    That doesn't work, Its in the imlib2 section :D and i wanted to see a pic with php logo on it :D ----- Original Message ----- From: "Rasmus Lerdorf" <rasmusphp.net> To: "Martin Lindhe" <martinhumany.com> Cc: <php-generallists.php.net> Sent: Wednesday, October 03, 2001 1:32 AM Subject: Re: [PHP] how to decrease serverload easily?

    > > We're developing a web platform based on PHP, running under Apache. We have > > realized that we need a way of "split up" the serverload to multiple > > machines if it gets too high. We've come up with PHP solutions to the > > problem but are looking for better ones, especially in Apache configuration. > > Is there any easy way of doing this? Anyone have previous experience? > > > > Software versions and OS'es is of no concern, we'll use what's required. > > Have a look at http://conf.php.net/sdphp and have a look at slides 46 > through 48. > > Basically, I would suggest a Squid reverse proxy as a front-end to your > system. Have it use a redirector like SquidGuard to distribute requests > across multiple backend web servers, and if you need to distribute your > database load as well, set up a single master mysql server which > replicates to read-only servers on each of the load balanced Apache > servers. And if you are getting really crazy traffic, you could round > robin across multiple frontend squid servers. But I would be very > surprised if you are doing anything that is getting that much traffic. > > How many hits per second are you expecting? > > -Rasmus > > > -- > 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:


    Yes, some of the slides don't work on conf.php.net. One of these days I will get around to fixing that. Everything works fine on my laptop, so come to one of my talks. ;)

    -Rasmus

    On Wed, 3 Oct 2001, ReDucTor wrote:

    > http://conf.php.net/pres/slides/intro/tshirt.php?si=30&text=php > > That doesn't work, Its in the imlib2 section :D and i wanted to see a pic > with php logo on it :D > ----- Original Message ----- > From: "Rasmus Lerdorf" <rasmusphp.net> > To: "Martin Lindhe" <martinhumany.com> > Cc: <php-generallists.php.net> > Sent: Wednesday, October 03, 2001 1:32 AM > Subject: Re: [PHP] how to decrease serverload easily? > > > > > We're developing a web platform based on PHP, running under Apache. We > have > > > realized that we need a way of "split up" the serverload to multiple > > > machines if it gets too high. We've come up with PHP solutions to the > > > problem but are looking for better ones, especially in Apache > configuration. > > > Is there any easy way of doing this? Anyone have previous experience? > > > > > > Software versions and OS'es is of no concern, we'll use what's required. > > > > Have a look at http://conf.php.net/sdphp and have a look at slides 46 > > through 48. > > > > Basically, I would suggest a Squid reverse proxy as a front-end to your > > system. Have it use a redirector like SquidGuard to distribute requests > > across multiple backend web servers, and if you need to distribute your > > database load as well, set up a single master mysql server which > > replicates to read-only servers on each of the load balanced Apache > > servers. And if you are getting really crazy traffic, you could round > > robin across multiple frontend squid servers. But I would be very > > surprised if you are doing anything that is getting that much traffic. > > > > How many hits per second are you expecting? > > > > -Rasmus > > > > > > -- > > 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:


    Would be nice and fun to goto one of them, but I live in Australia and I doubt, thats where you go :D hehe

    ----- Original Message ----- From: "Rasmus Lerdorf" <rasmusphp.net> To: "ReDucTor" <sjdtmvtpg.com.au> Cc: <php-generallists.php.net> Sent: Wednesday, October 03, 2001 2:09 AM Subject: Re: [PHP] how to decrease serverload easily?

    > Yes, some of the slides don't work on conf.php.net. One of these days I > will get around to fixing that. Everything works fine on my laptop, so > come to one of my talks. ;) > > -Rasmus > > On Wed, 3 Oct 2001, ReDucTor wrote: > > > http://conf.php.net/pres/slides/intro/tshirt.php?si=30&text=php > > > > That doesn't work, Its in the imlib2 section :D and i wanted to see a pic > > with php logo on it :D > > ----- Original Message ----- > > From: "Rasmus Lerdorf" <rasmusphp.net> > > To: "Martin Lindhe" <martinhumany.com> > > Cc: <php-generallists.php.net> > > Sent: Wednesday, October 03, 2001 1:32 AM > > Subject: Re: [PHP] how to decrease serverload easily? > > > > > > > > We're developing a web platform based on PHP, running under Apache. We > > have > > > > realized that we need a way of "split up" the serverload to multiple > > > > machines if it gets too high. We've come up with PHP solutions to the > > > > problem but are looking for better ones, especially in Apache > > configuration. > > > > Is there any easy way of doing this? Anyone have previous experience? > > > > > > > > Software versions and OS'es is of no concern, we'll use what's required. > > > > > > Have a look at http://conf.php.net/sdphp and have a look at slides 46 > > > through 48. > > > > > > Basically, I would suggest a Squid reverse proxy as a front-end to your > > > system. Have it use a redirector like SquidGuard to distribute requests > > > across multiple backend web servers, and if you need to distribute your > > > database load as well, set up a single master mysql server which > > > replicates to read-only servers on each of the load balanced Apache > > > servers. And if you are getting really crazy traffic, you could round > > > robin across multiple frontend squid servers. But I would be very > > > surprised if you are doing anything that is getting that much traffic. > > > > > > How many hits per second are you expecting? > > > > > > -Rasmus > > > > > > > > > -- > > > 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:


    > Would be nice and fun to goto one of them, but I live in Australia and I > doubt, thats where you go :D hehe

    I have given talks in Australia. Both in Sydney and Canberra. And I will be at linux.conf.au in Brisbane in February.

    -Rasmus

    attached mail follows:


    What about in Europe and Japan. I live between Italy and Tokyo. I only met Zeev Suraski and Doron (the CEO of Zend) representing my company on a meeting in Tokyo this June. What about you? Are there any speeches you do in my locations?

    Maxim Maletsky www.PHPBeginner.com

    -----Original Message----- From: Rasmus Lerdorf [mailto:rasmusphp.net] Sent: martedi 2 ottobre 2001 18.21 To: ReDucTor Cc: php-generallists.php.net Subject: Re: [PHP] how to decrease serverload easily?

    > Would be nice and fun to goto one of them, but I live in Australia and

    > I doubt, thats where you go :D hehe

    I have given talks in Australia. Both in Sydney and Canberra. And I will be at linux.conf.au in Brisbane in February.

    -Rasmus

    -- 
    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:


    Nothing planned for Italy or Japan right now. Frankfurt, Paris, Birmingham, Bucaramanga (Columbia) and Brisbane are on the schedule for the next 6 months.

    -Rasmus

    On Tue, 2 Oct 2001, Maxim Maletsky (PHPBeginner.com) wrote:

    > > What about in Europe and Japan. I live between Italy and Tokyo. I only > met Zeev Suraski and Doron (the CEO of Zend) representing my company on > a meeting in Tokyo this June. What about you? Are there any speeches you > do in my locations? > > > Maxim Maletsky > www.PHPBeginner.com > > > > > -----Original Message----- > From: Rasmus Lerdorf [mailto:rasmusphp.net] > Sent: martedi 2 ottobre 2001 18.21 > To: ReDucTor > Cc: php-generallists.php.net > Subject: Re: [PHP] how to decrease serverload easily? > > > > Would be nice and fun to goto one of them, but I live in Australia and > > > I doubt, thats where you go :D hehe > > I have given talks in Australia. Both in Sydney and Canberra. And I > will be at linux.conf.au in Brisbane in February. > > -Rasmus > > >

    attached mail follows:


    hehehe... are you going to travel to Spain?

    You can title like: the Rasmus World Tour ;)

    ----- Original Message ----- From: "Maxim Maletsky (PHPBeginner.com)" <php-generalphpbeginner.com> To: "'Rasmus Lerdorf'" <rasmusphp.net>; "'ReDucTor'" <sjdtmvtpg.com.au> Cc: <php-generallists.php.net> Sent: Tuesday, October 02, 2001 6:29 PM Subject: RE: [PHP] how to decrease serverload easily?

    > > What about in Europe and Japan. I live between Italy and Tokyo. I only > met Zeev Suraski and Doron (the CEO of Zend) representing my company on > a meeting in Tokyo this June. What about you? Are there any speeches you > do in my locations? > > > Maxim Maletsky > www.PHPBeginner.com > > > > > -----Original Message----- > From: Rasmus Lerdorf [mailto:rasmusphp.net] > Sent: martedi 2 ottobre 2001 18.21 > To: ReDucTor > Cc: php-generallists.php.net > Subject: Re: [PHP] how to decrease serverload easily? > > > > Would be nice and fun to goto one of them, but I live in Australia and > > > I doubt, thats where you go :D hehe > > I have given talks in Australia. Both in Sydney and Canberra. And I > will be at linux.conf.au in Brisbane in February. > > -Rasmus > > > -- > 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:


    Yey! Let's do a little party on Ibiza!

    :-)

    Though, Spain is OK too :-)

    Maxim Maletsky www.PHPBeginner.com

    -----Original Message----- From: paharito [mailto:paharitoinfonegocio.com] Sent: martedì 2 ottobre 2001 18.39 To: php-generallists.php.net Subject: Re: [PHP] how to decrease serverload easily?

    hehehe... are you going to travel to Spain?

    You can title like: the Rasmus World Tour ;)

    ----- Original Message ----- From: "Maxim Maletsky (PHPBeginner.com)" <php-generalphpbeginner.com> To: "'Rasmus Lerdorf'" <rasmusphp.net>; "'ReDucTor'" <sjdtmvtpg.com.au> Cc: <php-generallists.php.net> Sent: Tuesday, October 02, 2001 6:29 PM Subject: RE: [PHP] how to decrease serverload easily?

    > > What about in Europe and Japan. I live between Italy and Tokyo. I only

    > met Zeev Suraski and Doron (the CEO of Zend) representing my company > on a meeting in Tokyo this June. What about you? Are there any > speeches you do in my locations? > > > Maxim Maletsky > www.PHPBeginner.com > > > > > -----Original Message----- > From: Rasmus Lerdorf [mailto:rasmusphp.net] > Sent: martedi 2 ottobre 2001 18.21 > To: ReDucTor > Cc: php-generallists.php.net > Subject: Re: [PHP] how to decrease serverload easily? > > > > Would be nice and fun to goto one of them, but I live in Australia > > and > > > I doubt, thats where you go :D hehe > > I have given talks in Australia. Both in Sydney and Canberra. And I > will be at linux.conf.au in Brisbane in February. > > -Rasmus > > > -- > 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 >

    -- 
    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:


    What's in Paris? I know that PHP international Conference will take place in Frankfurt, I saw your name there as well. But what is it going to be in Paris? Where could I get some info about it?

    Maxim Maletsky www.PHPBeginner.com

    -----Original Message----- From: Rasmus Lerdorf [mailto:rasmusphp.net] Sent: martedi 2 ottobre 2001 18.32 To: Maxim Maletsky (PHPBeginner.com) Cc: 'ReDucTor'; php-generallists.php.net Subject: RE: [PHP] how to decrease serverload easily?

    Nothing planned for Italy or Japan right now. Frankfurt, Paris, Birmingham, Bucaramanga (Columbia) and Brisbane are on the schedule for the next 6 months.

    -Rasmus

    On Tue, 2 Oct 2001, Maxim Maletsky (PHPBeginner.com) wrote:

    > > What about in Europe and Japan. I live between Italy and Tokyo. I only

    > met Zeev Suraski and Doron (the CEO of Zend) representing my company > on a meeting in Tokyo this June. What about you? Are there any > speeches you do in my locations? > > > Maxim Maletsky > www.PHPBeginner.com > > > > > -----Original Message----- > From: Rasmus Lerdorf [mailto:rasmusphp.net] > Sent: martedi 2 ottobre 2001 18.21 > To: ReDucTor > Cc: php-generallists.php.net > Subject: Re: [PHP] how to decrease serverload easily? > > > > Would be nice and fun to goto one of them, but I live in Australia > > and > > > I doubt, thats where you go :D hehe > > I have given talks in Australia. Both in Sydney and Canberra. And I > will be at linux.conf.au in Brisbane in February. > > -Rasmus > > >

    -- 
    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'm just getting started with php 4.03. Yes I've read the FAQ and lots of documentation.

    I have setup my pages so they all look more or less like this:

    <?php require("mylib.php"); ?> <html> <head> <?php myheader("this is the title"); ?> <meta name="keywords" content="apples, oranges"> ... </head> <?php mybody("this is the title"); ?> <p>here is the body of the page</p> <?php myfooter(); ?> </html>

    Just for the record, there is a lot of php code in mybody() to emit HTML code for top & side nav bars etc.

    My questions are: 1. every page on the site has: require("mylib.php"); at the top of the page to provide access to the functions contained therein. Is require() correct or should I use include()?

    2. should mylib.php be called mylib.inc instead? It works fine as mylib.php. If I use include() instead of require() would the filename extension be different, i.e. mylib.inc?

    3. I pass the same title to myheader() and to mybody() as shown above. In the first case, it is emitted as <title>...</title> and in the 2nd case is it emitted as <h1>...</h1>. Is there a way to set this up so I only need to have one instance of the title passed to a function?

    4. I have some of the HTML <xxx> tags in the code (i.e. <title>, <body> and some in the actual xxx.php page, i.e. <html>, <head> (as above). I suppose myheader() could have emitted <html><head> and myfooter() could have emitted </html>. I'm trying to develop some sense of style for this, but I'm working in a vacuum. Are there any opinions or guidelines on how to write php code in terms of which tags are visible in the page and which tags are emitted by functions in other modules?

    5. I see there is a php.template newsgroup, but I couldn't really follow the conversations. Is that group for discussing ways to implement a design template in php so that all pages have the same appearance? I guess that's what I'm doing with my mylib.php module - the functions dump out the same nav bars to every page.

    Thanks.

    --
    John A. Grant  * I speak only for myself *  (remove 'z' to reply)
    Radiation Geophysics, Geological Survey of Canada, Ottawa
    If you followup, please do NOT e-mail me a copy: I will read it here
    

    attached mail follows:


    > <?php require("mylib.php"); ?> > <html> > <head> > <?php myheader("this is the title"); ?> > <meta name="keywords" content="apples, oranges"> > ... > </head> > <?php mybody("this is the title"); ?> > <p>here is the body of the page</p> > <?php myfooter(); ?> > </html> > > My questions are: > 1. every page on the site has: > require("mylib.php"); > at the top of the page to provide access to the functions contained > therein. Is require() correct or should I use include()?

    require is correct. include should be used if the file is being included conditionally. Since this is not a conditional include, require is the right approach.

    > 2. should mylib.php be called mylib.inc instead? It works fine > as mylib.php. If I use include() instead of require() would the > filename extension be different, i.e. mylib.inc?

    The extension name is arbitrary. I prefer to use .inc and then have an Apache httpd.conf rule to block direct access to .inc files just to prevent people from accessing my include files directly. In your case someone could load up blah.com/mylib.php directly and your code may not be wirtten to be executed out of context like that.

    > 3. I pass the same title to myheader() and to mybody() as shown > above. In the first case, it is emitted as <title>...</title> and in the > 2nd case is it emitted as <h1>...</h1>. Is there a way to set this > up so I only need to have one instance of the title passed to > a function?

    In your myheader() function you could have:

    function myheader($str) { global $title = $str; ... }

    then in mybody():

    function mybody() { global $title;

    echo "<h1>$title</h1>\n"; ... }

    > 4. I have some of the HTML <xxx> tags in the code (i.e. > <title>, <body> and some in the actual xxx.php page, i.e. > <html>, <head> (as above). I suppose myheader() could > have emitted <html><head> and myfooter() could have > emitted </html>. I'm trying to develop some sense of style > for this, but I'm working in a vacuum. Are there any opinions > or guidelines on how to write php code in terms of which tags > are visible in the page and which tags are emitted by functions > in other modules?

    I tend to put anything that controls the overall style of my pages in a separate include file so when I need to change the style I just have to change it in one place. And yes, for me that includes the <html> and </html> tags.

    > 5. I see there is a php.template newsgroup, but I couldn't really > follow the conversations. Is that group for discussing ways to > implement a design template in php so that all pages have the > same appearance? I guess that's what I'm doing with my > mylib.php module - the functions dump out the same nav bars > to every page.

    Sounds like you are on the right track. And no, the php.template group is not about that.

    -Rasmus

    attached mail follows:


    <SNIP>

    > I tend to put anything that controls the overall style of my pages in a > separate include file so when I need to change the style I just have to > change it in one place. And yes, for me that includes the <html> and > </html> tags. > > > 5. I see there is a php.template newsgroup, but I couldn't really > > follow the conversations. Is that group for discussing ways to > > implement a design template in php so that all pages have the > > same appearance? I guess that's what I'm doing with my > > mylib.php module - the functions dump out the same nav bars > > to every page.

    On another note, is there something in PHP similar to the FuseBox paradigm of ColdFusion?

    attached mail follows:


    Hi NoWayMan,

    12:19:01 PM on 10/2/2001, NoWayMan wrote:

    > On another note, is there something in PHP similar to the FuseBox > paradigm of ColdFusion?

    phpadvertisements.com, *cough*, I mean, phpbuilder.com had an article about this quiet a while ago. Check it out here:

    <http://www.phpbuilder.org/columns/bill19990831.php3>

    -Brian

    --
     PGP is spoken here: 0xE4D0C7C8
     Please, DO NOT carbon copy me on list replies.
    

    attached mail follows:


    Has anyone successfully gotten socket functions to work with FreeBSD? More specifically, Mac OS X?

    I always get the following error: Can't bind to port 12345, exiting.

    The script works fine on Linux machines. Is there a patch in the works for FreeBSD? If so, I would be very happy.

    --
    Devon Weller
    dwellerdevonweller.com
    

    attached mail follows:


    Hi all,

    I have just rename the php.ini-dist to php.ini from the installation directoy but am not sure where to place it in order for php to rea,, any help?? thanks

    Caleb Carvalho Application Engineer LoadRunner/APM ----------------------------------------------------------------------------------------- Enterprise Testing and Performance Management Solutions ----------------------------------------------------------------------------------------- Mercury Interactive 410 Frimley Business Park Frimley, Surrey. GU16 7ST United Kingdom Telephone : +44 (0)1276 808300

    _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

    attached mail follows:


    > Hi all, > > I have just rename the php.ini-dist to php.ini from the > installation directoy but am not sure where to place it in > order for php to > rea,, any help?? > thanks

    What OS are you running PHP on?

    /Martin

    attached mail follows:


    phpinfo() tells you

    On Tue, 2 Oct 2001, Caleb Carvalho wrote:

    > Hi all, > > I have just rename the php.ini-dist to php.ini from the > installation directoy but am not sure where to place it in order for php to > rea,, any help?? > thanks > > > > Caleb Carvalho > Application Engineer > LoadRunner/APM > ----------------------------------------------------------------------------------------- > Enterprise Testing and Performance Management Solutions > ----------------------------------------------------------------------------------------- > Mercury Interactive > 410 Frimley Business Park > Frimley, Surrey. GU16 7ST > United Kingdom > Telephone : +44 (0)1276 808300 > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > >

    attached mail follows:


    Hello, this is the fourth time i wrote expecting some answer from somebody with more experience than me.

    I have a protected page , i ask for user and pass and save these variables as session variables, with session_register.

    When the user submit this page.. this variables are registered, in the next page, i do some queries using a substr of REQUEST_URI and displaying 2 selects results and 1 update.

    When i remove the access-control page all works fine, but when i set the session vars, the first time i see the results, i need to refresh/reload the web page to show the correct results of the queries, otherwise the page source shows "data missing... post operation... refresh..."

    Please, how can i avoid the manual refresh ?

    Karina Gomez

    attached mail follows:


    And I have read your question 4 times. I still don't understand it. I don't see how you can get a "post data missing" on a form post.

    -Rasmus

    On Tue, 2 Oct 2001, Karina [iso-8859-1] Gómez Salgado wrote:

    > Hello, this is the fourth time i wrote expecting some answer from > somebody with more experience than me. > > I have a protected page , i ask for user and pass and save these > variables as session variables, with session_register. > > When the user submit this page.. this variables are registered, in the > next page, i do some queries using a substr of REQUEST_URI and > displaying 2 selects results and 1 update. > > When i remove the access-control page all works fine, but when i set the > session vars, the first time i see the results, i need to refresh/reload > the web page to show the correct results of the queries, otherwise the > page source shows "data missing... post operation... refresh..." > > Please, how can i avoid the manual refresh ? > > Karina Gomez > > >

    attached mail follows:


    Well, I don't understand it too, i don't know why with normal variables there are not problem and with session variables i need to refresh the page to see the results after the submit form.

    The mechanism is this:

    query 1 with parameter ---- >ACCESS FORM ------- > results only session_register(uid) shown with refresh session_register(pwd) (get parameter from REQUEST_URI)

    if i do this:

    query 1 ---- > (NOT ACCESS) ------- > results with no problem

    I hope than somebody can give me some ideas... because this is driving me crazy..

    THks, Karina

    attached mail follows:


    You are going to have to explain your problem in more detail. Write a simple little 5-line example program that illustrates the problem and post it here. As it is right now, I don't think anybody understands what the heck you are talking about.

    -Rasmus

    On Tue, 2 Oct 2001, Karina wrote:

    > Well, I don't understand it too, i don't know why with normal variables > there are not problem and with session variables i need to refresh the > page to see the results after the submit form. > > The mechanism is this: > > query 1 with parameter ---- >ACCESS FORM ------- > results > only > session_register(uid) shown with refresh > session_register(pwd) (get parameter from > REQUEST_URI) > > > > if i do this: > > > query 1 ---- > (NOT ACCESS) ------- > results with no problem > > > I hope than somebody can give me some ideas... because this is driving > me crazy.. > > > THks, > Karina >

    attached mail follows:


    Ok.

    First i have a result-select-page displaying the id's of my items and other values.

    id1(link) ------ item 1 bla bla bla

    id2(link) ------ item 2 bla bla bla

    when the user selects an id link appears the accesscontrol page:

    <?php

    session_start();

    if (!isset($uid2)) {

    ?>

    ...

    <form method="get" action="<?=$REQUEST_URI?>">

    <td><input type="text" name="uid2" maxlength="10"></td> <input type="password" name="pwd2" maxlength="10"></td> <input type="submit" name="submit" value="Log In"></td> ......

    session_register("uid2"); session_register("pwd2");

    this script checks the user/password against a database if data is right... it shows the detail for the item the user selected

    in detail.php

    session_start(); $user = $HTTP_SESSION_VARS['uid2']; $cod = strstr($REQUEST_URI,"="); $cod = substr($cod,1);

    and i do a select from another table...

    i need to reload this page in order to show the results, otherwise, the page is in blank. If i check the page source in my browser options, the source says: data missing... you need to reload.. bla bla bla....

    I hope this explanation helps.

    Karina

    attached mail follows:


    I have no idea what is wrong. Like I suggested before, if you reduce this problem down to a simple reproducable simple script someone can probably pick out what you did wrong.

    -Rasmus

    On Tue, 2 Oct 2001, Karina wrote:

    > Ok. > > First i have a result-select-page displaying > the id's of my items and other values. > > id1(link) > ------ > item 1 > bla bla bla > > > id2(link) > ------ > item 2 > bla bla bla > > > when the user selects an id link appears the accesscontrol page: > > > <?php > > session_start(); > > if (!isset($uid2)) { > > ?> > > ... > > <form method="get" action="<?=$REQUEST_URI?>"> > > <td><input type="text" name="uid2" maxlength="10"></td> > <input type="password" name="pwd2" maxlength="10"></td> > <input type="submit" name="submit" value="Log In"></td> > ...... > > > session_register("uid2"); > session_register("pwd2"); > > > this script checks the user/password against a database > if data is right... it shows the detail for the item the user selected > > in detail.php > > session_start(); > $user = $HTTP_SESSION_VARS['uid2']; > $cod = strstr($REQUEST_URI,"="); > $cod = substr($cod,1); > > and i do a select from another table... > > > i need to reload this page in order to show the results, otherwise, the > page is in blank. If i check the page source in my browser options, the > source > says: data missing... you need to reload.. bla bla bla.... > > > I hope this explanation helps. > > Karina >

    attached mail follows:


    Depends on what you want to do.

    For pumping out large amounts of data, it's a great tool. For forums and simple content management, it works fine for most web sites. For handling complex database transactions, not really.

    "Devin Pittman" <jacronxhotmail.com> wrote in message news:20011002035252.89137.qmailpb1.pair.com... > I would like to begin coding a online website creation tool for clients of > my small web design firm, and I'd like to use MySQL for the backend. I only > have one question - is MySQL fast enough and robust enough to handle large > amounts of data? For example entire pages of text, etc. > > Thanks for any help, > Devin > >

    attached mail follows:


    If I rebuild PHP, do I need to rebuild my apache???

    _________________________________________________________________ Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp

    attached mail follows:


    Yes. I've had to do this a few times to upgrade to 4.0.6. It is a pain, but the only way I know of.

    Joseph

    iWebsiteSoftware.com

    -----Original Message-----

    If I rebuild PHP, do I need to rebuild my apache???

    attached mail follows:


    On Tue, 2 Oct 2001, Eric G. wrote:

    > If I rebuild PHP, do I need to rebuild my apache???

    I_think_ that this is dependent on whether you use the DSO feature of Apache. IIRC, I've been able to do an upgrade on PHP and just reloaded apache to take advantage of the new library module.

    -- 
    

    Sapere aude My mind not only wanders, it sometimes leaves completely.

    attached mail follows:


    Once upon a time, Duncan Hill wrote: > >I_think_ that this is dependent on whether you use the DSO feature of >Apache. IIRC, I've been able to do an upgrade on PHP and just >reloaded >apache to take advantage of the new library module.

    Correct the manual explains have to compile with DSO. It makes life so much easier

    -- 
    Matt Williams
    mattyewlands.com
    

    attached mail follows:


    Greetings to All of You on the List:

    How can I suppress my variables from showing up in the address bar? I have a form that's passing information to a script of mine, via the address bar.

    http://foobar.com/EmailList.php3?Newsletter_ID=4732&Subscription_Action=Remo ve&Email_Address=SaltyMarineyahoo.com

    How can I suppress my variables from showing up in the address bar?

    Regards, Salty

    _________________________________________________________ Do You Yahoo!? Get your free yahoo.com address at http://mail.yahoo.com

    attached mail follows:


    use METHOD=POST in your form

    -----Original Message----- From: Salty Marine [mailto:saltymarineyahoo.com] Sent: Tuesday, October 02, 2001 1:57 PM To: php-generallists.php.net Subject: [PHP] How can I suppress my variables from showing up in the address bar?

    Greetings to All of You on the List:

    How can I suppress my variables from showing up in the address bar? I have a form that's passing information to a script of mine, via the address bar.

    http://foobar.com/EmailList.php3?Newsletter_ID=4732&Subscription_Action=Remo ve&Email_Address=SaltyMarineyahoo.com

    How can I suppress my variables from showing up in the address bar?

    Regards, Salty

    _________________________________________________________ Do You Yahoo!? Get your free yahoo.com address at http://mail.yahoo.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
    

    attached mail follows:


    Like this:

    <FORM METHOD=post>

    Whit post, the variables are not shown.

    You maybe use this:

    <INPUT TYPE=hidden NAME=the_name VALUE=<? echo $var; ?>>

    ;)

    ----- Original Message ----- From: "Salty Marine" <saltymarineyahoo.com> To: <php-generallists.php.net> Sent: Tuesday, October 02, 2001 7:57 PM Subject: [PHP] How can I suppress my variables from showing up in the address bar?

    > > Greetings to All of You on the List: > > How can I suppress my variables from showing up in the address bar? I have > a form that's passing information to a script of mine, via the address bar. > > http://foobar.com/EmailList.php3?Newsletter_ID=4732&Subscription_Action=Remo > ve&Email_Address=SaltyMarineyahoo.com > > How can I suppress my variables from showing up in the address bar? > > Regards, > Salty > > > _________________________________________________________ > Do You Yahoo!? > Get your free yahoo.com address at http://mail.yahoo.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 >

    attached mail follows:


    how secure is either method? the form method would be more secure if it was done over https correct?

    tonyz

    Martín marqués wrote: > > On Lun 01 Oct 2001 19:36, you wrote: > > I used a pretty basic system to check HTTP authentication values against > > database values, but I can't seem to find a way to allow the user to log > > out. I tried: > > > > unset($PHP_AUTH_USER) > > > > but Internet Explorer hangs on to that value until all browser windows are > > closed. Is there any way around that? > > I (as lot of GPL projects) have droped HTTP authentification, and use there > own authentification. > Put a form with login and password, and save whatever you like in a session, > and thats it. > > Saludos... ;-) > > P.D.: Netscape also hangs with the variable PHP_AUTH_USER. > > -- > Porqué usar una base de datos relacional cualquiera, > si podés usar PostgreSQL? > ----------------------------------------------------------------- > Martín Marqués | mmarquesunl.edu.ar > Programador, Administrador, DBA | Centro de Telematica > Universidad Nacional > del Litoral > -----------------------------------------------------------------

    attached mail follows:


    OK,

    I am working on my first shopping cart using PHP and MySQL and I am having a few problems.

    The first problems is I need to bring out of a database a group of Jam flavors. I can do that but when certain items come up there needs to be the same flavors but repeated mutiple times and I am not sure how to get that to work. I also am having a problem adding mutiple flavors to my cookies for check out later

    Here is the code to bring the flavor selection up once. What I need is to figure out a way to bring it up 3,4,5 times depending on which item is clicked.

    <?php // Send the Query to the Server, to get the list of flavors if (!($result = mysql_db_query($DB,"SELECT * FROM extras WHERE name='$flav' ORDER BY 'choice'"))) { DisplayErrMsg(sprintf("internal error %d:%s\n", mysql_errno(), mysql_error())); return 0 ; }

    // Display the Items

    ?> <font face="verdana" size="2" color="#000000"> <form name="thisform" action="<?php $PHPSELF;?>" method="post"> <select> <option><?php echo $flav; ?> <?php while($row = mysql_fetch_array($result)) { ?> <option value="<?php echo $row["choice"]; ?>"><?php echo $row["choice"]; ?> <?php } // End of while loop ?> </select> </form>

    that will bring up the set of flavors once i need to be able to bring it up more than once but keep it in the same format and set it to a cookie.

    Any help would be great. The project is already overdue so I am sort of a hurry.

    -Brian

    _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

    attached mail follows:


    I'm a little confused over why you would display the same flavor more than once for a single item. But ok. Have you thought about populating an array with the flavors and then retrieving flavors from the array however many times you need to in an if statement. Maybe it would be easier to comment if we could see a sample page.

    Johan

    -----Original Message----- From: Brian Lee [mailto:php_blahy69hotmail.com] Sent: Tuesday, October 02, 2001 12:13 PM To: php-generallists.php.net Subject: [PHP] PHP & MySQL

    OK,

    I am working on my first shopping cart using PHP and MySQL and I am having a

    few problems.

    The first problems is I need to bring out of a database a group of Jam flavors. I can do that but when certain items come up there needs to be the same flavors but repeated mutiple times and I am not sure how to get that to

    work. I also am having a problem adding mutiple flavors to my cookies for check out later

    Here is the code to bring the flavor selection up once. What I need is to figure out a way to bring it up 3,4,5 times depending on which item is clicked.

    <?php // Send the Query to the Server, to get the list of flavors if (!($result = mysql_db_query($DB,"SELECT * FROM extras WHERE name='$flav' ORDER BY 'choice'"))) { DisplayErrMsg(sprintf("internal error %d:%s\n", mysql_errno(), mysql_error())); return 0 ; }

    // Display the Items

    ?> <font face="verdana" size="2" color="#000000"> <form name="thisform" action="<?php $PHPSELF;?>" method="post"> <select> <option><?php echo $flav; ?> <?php while($row = mysql_fetch_array($result)) { ?> <option value="<?php echo $row["choice"]; ?>"><?php echo $row["choice"]; ?> <?php } // End of while loop ?> </select> </form>

    that will bring up the set of flavors once i need to be able to bring it up more than once but keep it in the same format and set it to a cookie.

    Any help would be great. The project is already overdue so I am sort of a hurry.

    -Brian

    _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

    -- 
    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 everybody!

    I have a problem :/ I just said yes to a project, which includes webmail. I know how to send mail and how to receive mail with imap, but can I in any way create a mailaccount on the server by using PHP? Or should I use any other language like Java/JSP or ASP (with a component)?`

    Hilfe! :)

    attached mail follows:


    Hi, I have a website hosted on a cobalt server with my own domain, but not my own IP. I have a full access to my root web, but not higher (means can't change any *.conf files). My domain is "wildcarded" I want to be able to redirect based on the entry, IE if a user types http://hello.mydomain.com he will go to http://mydomain.com/hello=20 if a user types http://another.mydomain.com he will go to http://mydomain.com/another=20

    The redirect method of apache doesn't work because I leanred that that is based on an absolute path from the server I tried php scripts that read the subdomain and use it in the header function but it won't work. I came to the conclusion after a lot of tests that rewriterule from the htaccess is the the best.

    htaccess script: (doesn't work) RewriteEngine On RewriteRule ^(.*)\.zajfe\.org$ redirect.php?url=$1 [L] connected to the page redirect.php where <?header("location:http://www.zajfe.org/$url");?> PHP script: (doesn't work) <? $domain = "yourdomain.com"; $default_page = "main.shtml"; $underdomaene = $HTTP_HOST; $underdomaene = eregi_replace("\.".$domain, "", $underdomaene); $underdomaene = eregi_replace("www\.", "", $underdomaene); $underdomaene = strtolower($underdomaene); if (is_dir("$DOCUMENT_ROOT/$underdomaene")) { header("Location: http://$domain/$underdomaene"); } else { if (!$REQUEST_URI || $REQUEST_URI == "/") { include("$DOCUMENT_ROOT/$default_page"); } else { header("Location: http://$domain$REQUEST_URI"); } } ?>

    I am open to ANY suggestion, CGI / ASP / PHP / SSI (it is all on the server), I want it to work

    Thanks

    Gab

    attached mail follows:


    Ok, this is semi-related to PHP. I think it may mainly be our Apache configuration. We have our listener listening on 9999.

    This URL works: http://hostname.capis.com:9999/ This URL does not: hostname.capis.com:9999/

    Is there anyway to get the bottom one to work?

    In IE I get 'Invalid syntax error' in the title bar of the browser and the body says 'The page cannot be displayed'.

    Thanks in advance for any replies.

    Also, the index page that this is going to is issued location redirect through PHP that moves it to another page.

    -- 
    Michael Champagne, Software Engineer
    Capital Institutional Services, Inc.
    wk: mchampagnecapis.com
    hm: mchamptexas.net
    

    ****************************************************************** This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction, unless specifically agreed otherwise. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect the views or opinions of Capital Institutional Services, Inc. Capital Institutional Services, Inc. accepts no liability for any errors or omissions arising as a result of transmission. Use of this communication by other than intended recipients is prohibited. ******************************************************************