-----Original Message----- From: Ray Hunter [mailto:bigdog@venticon.com] Sent: July 23, 2003 5:44 PM To: Beauford.2005 Subject: Re: [PHP] I'm really getting annoyed with PHP Questions: 1. What verion of php are you running? 2. What version of apache are you running? Or other web server? 3. What is your configuration for php? check phpinfo() 4. Is php built from source or a binary (rpm, exe)? 5. What OS are you running on and what version? -- BigDog On Thu, 2003-07-24 at 13:41, Beauford.2005 wrote:[quote] > Yes, I'm still screwing around with this stupid redirection thing, and[/quote] [quote] > either I'm just a total idiot or there are some serious problems with > PHP. I have now tried to do it another way and - yes - you guessed it.[/quote] [quote] > It does not work. > > I mean really, it can not be this hard to redirect a user to another > page. If it is, then I must look into using something else as I just > can't be wasting days and days on one minor detail that should take 30[/quote] [quote] > seconds to complete. > > If anyone has some concrete suggestion on how to get this to work It > would be greatly appreciated. In the mean time I have given up on it > as I am just totally pissed off at it. > > TIA > > [/quote] [allowsmilie] => 1 [showsignature] => 0 [ipaddress] => [iconid] => 0 [visible] => 1 [attach] => 0 [infraction] => 0 [reportthreadid] => 0 [isusenetpost] => 1 [msgid] => [ref] => [htmlstate] => on_nl2br [postusername] => Ow Mun Heng [ip] => ow.mun.heng@wdc [isdeleted] => 0 [usergroupid] => [membergroupids] => [displaygroupid] => [password] => [passworddate] => [email] => [styleid] => [parentemail] => [homepage] => [icq] => [aim] => [yahoo] => [msn] => [skype] => [showvbcode] => [showbirthday] => [usertitle] => [customtitle] => [joindate] => [daysprune] => [lastvisit] => [lastactivity] => [lastpost] => [lastpostid] => [posts] => [reputation] => [reputationlevelid] => [timezoneoffset] => [pmpopup] => [avatarid] => [avatarrevision] => [profilepicrevision] => [sigpicrevision] => [options] => [akvbghsfs_optionsfield] => [birthday] => [birthday_search] => [maxposts] => [startofweek] => [referrerid] => [languageid] => [emailstamp] => [threadedmode] => [autosubscribe] => [pmtotal] => [pmunread] => [salt] => [ipoints] => [infractions] => [warnings] => [infractiongroupids] => [infractiongroupid] => [adminoptions] => [profilevisits] => [friendcount] => [friendreqcount] => [vmunreadcount] => [vmmoderatedcount] => [socgroupinvitecount] => [socgroupreqcount] => [pcunreadcount] => [pcmoderatedcount] => [gmmoderatedcount] => [assetposthash] => [fbuserid] => [fbjoindate] => [fbname] => [logintype] => [fbaccesstoken] => [newrepcount] => [vbseo_likes_in] => [vbseo_likes_out] => [vbseo_likes_unread] => [temp] => [field1] => [field2] => [field3] => [field4] => [field5] => [subfolders] => [pmfolders] => [buddylist] => [ignorelist] => [signature] => [searchprefs] => [rank] => [icontitle] => [iconpath] => [avatarpath] => [hascustomavatar] => 0 [avatardateline] => [avwidth] => [avheight] => [edit_userid] => [edit_username] => [edit_dateline] => [edit_reason] => [hashistory] => [pagetext_html] => [hasimages] => [signatureparsed] => [sighasimages] => [sigpic] => [sigpicdateline] => [sigpicwidth] => [sigpicheight] => [postcount] => 2 [islastshown] => [isfirstshown] => [attachments] => [allattachments] => ) --> [PHP] I'm really getting annoyed with PHP - PHP Development

[PHP] I'm really getting annoyed with PHP - PHP Development

On Thu, 24 Jul 2003 02:05:58 -0500, Wendell Brown wrote: >Ok, I have a question. Where is $_SESSION['valid_user'] getting set >(or unset)??? Oooops. I thought that was the code that he was talking about. I missed your lead in. Sorry!!!...

  1. #1

    Default Re: [PHP] Re: I'm really getting annoyed with PHP

    On Thu, 24 Jul 2003 02:05:58 -0500, Wendell Brown wrote:
    >Ok, I have a question. Where is $_SESSION['valid_user'] getting set
    >(or unset)???
    Oooops. I thought that was the code that he was talking about. I
    missed your lead in. Sorry!!!

    Wendell Brown Guest

  2. #2

    Default RE: [PHP] I'm really getting annoyed with PHP

    This is taken from mantis.. NOt sure if it'll help but take a look at the
    t_use_iis field


    function print_header_redirect( $p_url, $p_die=true ) {
    $t_use_iis = config_get( 'use_iis');

    if ( ON == config_get( 'stop_on_errors' ) && error_handled()
    ) {
    return false;
    }

    if ( OFF == $t_use_iis ) {
    header( 'Status: 302' );
    }
    header( 'Content-Type: text/html' );
    header( 'Pragma: no-cache' );
    header( 'Expires: Fri, 01 Jan 1999 00:00:00 GMT' );
    header( 'Cache-control: no-cache, no-cache="Set-Cookie",
    private' );
    if ( ON == $t_use_iis ) {
    header( "Refresh: 0;url=$p_url" );
    } else {
    header( "Location: $p_url" );
    }

    if ( $p_die ) {
    die; # additional output can cause problems so let's
    just stop output here
    }

    return true;
    }

    Cheers,
    Mun Heng, Ow
    H/M Engineering
    Western Digital M'sia
    DID : 03-7870 5168


    -----Original Message-----
    From: Beauford.2005 [mailto:beauford.2005rogers.com]
    Sent: Friday, July 25, 2003 6:13 AM
    To: [email]bigdogventicon.com[/email]; PHP
    Subject: RE: [PHP] I'm really getting annoyed with PHP


    FYI. I did this login page for another website last month and I used the
    code from it to do this one. The other one works perfectly. I checked
    that code again today and there is ABSOLUTELY no differnce. I even used
    the same variables and session names. The only difference between the
    two sites is that the one that works is running IIS on Windows 2000
    Server. The broken one is on a Linux box running Apache. Both PHP and
    MySQL are the same versions. Remember also that the Header redirect is
    working in the redirect.inc page, which is even more confusing.

    I have really given up on it. It just ain't gonna work - no matter what
    I do. I thought I finally had it working again, but of course - another
    f*** up.

    Can you explain this? Along with my other code I used a little piece of
    javascript to do the redirect, and lo and behold it worked. But now my
    paths are all ed up. I just don't get it.

    In the example I tried, the page I am redirected to has a form on it.
    When I click submit it should go to the page specified in the action,
    which is season_write.php.

    <FORM onSubmit="return checkrequired(this)" ACTION="season_write.php"
    action="post" name="seasons">

    But for some reason it tries to go to /setup/season_write.php. This is
    not specified anywhere in any of my code. So where the hell it getting
    this from.

    The more I use PHP the more I am becoming convinced I should be using
    something else. This is just ridiculous.

    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    window.location="<? echo $_SESSION['goto']; ?>";
    // End -->
    </script>

    -----Original Message-----
    From: Ray Hunter [mailto:bigdogventicon.com]
    Sent: July 23, 2003 5:44 PM
    To: Beauford.2005
    Subject: Re: [PHP] I'm really getting annoyed with PHP


    Questions:

    1. What verion of php are you running?
    2. What version of apache are you running? Or other web server? 3. What
    is your configuration for php? check phpinfo() 4. Is php built from
    source or a binary (rpm, exe)? 5. What OS are you running on and what
    version?


    --
    BigDog



    On Thu, 2003-07-24 at 13:41, Beauford.2005 wrote:
    > Yes, I'm still ing around with this stupid redirection thing, and
    > either I'm just a total idiot or there are some serious problems with
    > PHP. I have now tried to do it another way and - yes - you guessed it.
    > It does not work.
    >
    > I mean really, it can not be this hard to redirect a user to another
    > page. If it is, then I must look into using something else as I just
    > can't be wasting days and days on one minor detail that should take 30
    > seconds to complete.
    >
    > If anyone has some concrete suggestion on how to get this to work It
    > would be greatly appreciated. In the mean time I have given up on it
    > as I am just totally ed off at it.
    >
    > TIA
    >
    >
    Ow Mun Heng Guest

  3. #3

    Default Re: [PHP] Re: I'm really getting annoyed with PHP

    * Thus wrote Wendell Brown (wbrownarkie.net):
    > On Thu, 24 Jul 2003 02:05:58 -0500, Wendell Brown wrote:
    >
    > >Ok, I have a question. Where is $_SESSION['valid_user'] getting set
    > >(or unset)???
    >
    > Oooops. I thought that was the code that he was talking about. I
    > missed your lead in. Sorry!!!
    This thread need to die... we all know it works..<period>

    Curt
    --
    :0
    * ^Subject: .*I'm really getting annoyed with PHP
    /dev/null
    Curt Zirzow Guest

  4. #4

    Default RE: [PHP] I'm really getting annoyed with PHP

    This thread's too long. I'm getting confused on who exactly asked the
    question..

    My Take on thi

    /snip
    what if the code logic requires that there is some output sent to the
    browser.
    /snip

    In my case I use a Refresh-redirect. I've posted my code on this on this
    thread. The way I'm doing it is like this.. (logic)

    The header_refresh_html will redirect to "home.php" if user is already
    logged in but not before issuing a warning to the user to logout before
    logging in again.

    The Error msg will be display WAY.. before the refresh/redirect takes place.
    (2 seconds) Maybe if through the internet it's not so great,but on my
    intranet, 2 secs is long enough for the user to view the message.

    ====login.php========
    if ( check_if_authenticated() )
    {
    header_refresh_html("home.php");
    trigger_error(ERROR_USER_ALREADY_AUTHENTICATED, WARNING);
    exit;
    }
    else
    {
    //display login form/msg
    }

    =========================
    Cheers,
    Mun Heng, Ow
    H/M Engineering
    Western Digital M'sia
    DID : 03-7870 5168


    -----Original Message-----
    From: Pushpinder Singh Garcha [mailto:pgarchaadelphia.net]
    Sent: Friday, July 25, 2003 2:10 AM
    To: Curt Zirzow
    Cc: PHP
    Subject: Re: [PHP] I'm really getting annoyed with PHP


    hello everyone,

    Can somebody tell me why meta-refresh is not preferred to do re-directs
    ?
    I know Javascript is browser dependent, so its undependable.

    using headers in php requires that no output is sent to the browser,
    what if the code logic requires that there is some output sent to the
    browser. I am sorry if this is a repeat question because someone
    earlier did mention abt output buffering as a way around.

    TIA
    --Pushpinder


    On Thursday, July 24, 2003, at 12:11 PM, Curt Zirzow wrote:
    > * Thus wrote Pushpinder Singh Garcha (pgarchaadelphia.net):
    >> try this,
    >>
    >>
    >> use a meta-refresh ...
    >>
    >> echo "<META HTTP-EQUIV=\"refresh\"
    >> content=\"3;URL=http://wherever_u_wana_go.com/hello.html\">";
    >
    > This has already been discussed, and is not the preferred method of
    > doing redirects. PHP can handle what he is doing just fine.
    >
    >
    >
    > Curt
    > --
    > "I used to think I was indecisive, but now I'm not so sure."
    >
    > --
    > PHP General Mailing List (http://www.php.net/)
    > To unsubscribe, visit: http://www.php.net/unsub.php
    >
    Ow Mun Heng Guest

Similar Threads

  1. I'm really getting annoyed with PHP
    By Petre Agenbag in forum PHP Development
    Replies: 32
    Last Post: July 25th, 03:24 AM
  2. [PHP] I'm really getting annoyed with PHP
    By Chris W. Parker in forum PHP Development
    Replies: 3
    Last Post: July 24th, 10:12 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139