PHP

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • script won't work on other server

    5 answers - 604 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    I have a small script that I am testing out on two different servers. It uses the $_SERVER['HTTP_USER_AGENT'] to detect the browser and serve up a style sheet dependent on the results. (Please don't comment on its usefulness, it's just an example.)
    one server, I can get this script to run correctly in all browsers that I test. another server, it will not run correctly in Netscape (testing for the word Gecko, but have used Netscape also). Any help would be appreciated.
    Link to script:
    In case it's needed, link to file with phpinfo():
  • No.1 | | 1334 bytes | |

    Short tags are on on both servers.

    Message
    From: <replies-lists-php (AT) listmail (DOT) innovate.net>
    To: "Peppy" <peppy (AT) foxedge (DOT) net>
    Sent: Wednesday, November 30, 2005 2:23 PM
    Subject: Re: [PHP] script won't work on other server

    you're using the short-tag form:

    <?

    rather than:

    <?php

    this may not be supported on both machines.

    haven't looked at other aspects of the script.

    Message
    Date: Wednesday, November 30, 2005 02:15:47 PM -0600
    From: Peppy <peppy (AT) foxedge (DOT) net>
    To: php-general (AT) lists (DOT) php.net
    Subject: [PHP] script won't work on other server

    I have a small script that I am testing out on two different
    servers. It uses the $_SERVER['HTTP_USER_AGENT'] to detect the
    browser and serve up a style sheet dependent on the results.
    (Please don't comment on its usefulness, it's just an example.)

    one server, I can get this script to run correctly in all
    browsers that I test. another server, it will not run correctly
    in Netscape (testing for the word Gecko, but have used Netscape
    also). Any help would be appreciated.

    Link to script:

    In case it's needed, link to file with phpinfo():

    End Message
  • No.2 | | 1701 bytes | |

    What are the server types like Apache IIS or something else?
    i am asking because the webserver might not give the PHP script all the data
    from the browser like browser name and stuff

    11/30/05, Peppy <peppy (AT) foxedge (DOT) netwrote:

    Short tags are on on both servers.

    Message
    From: <replies-lists-php (AT) listmail (DOT) innovate.net>
    To: "Peppy" <peppy (AT) foxedge (DOT) net>
    Sent: Wednesday, November 30, 2005 2:23 PM
    Subject: Re: [PHP] script won't work on other server
    --
    you're using the short-tag form:

    <?

    rather than:

    <?php

    this may not be supported on both machines.

    haven't looked at other aspects of the script.
    --
    Message
    Date: Wednesday, November 30, 2005 02:15:47 PM -0600
    From: Peppy <peppy (AT) foxedge (DOT) net>
    To: php-general (AT) lists (DOT) php.net
    Subject: [PHP] script won't work on other server

    I have a small script that I am testing out on two different
    servers. It uses the $_SERVER['HTTP_USER_AGENT'] to detect the
    browser and serve up a style sheet dependent on the results.
    (Please don't comment on its usefulness, it's just an example.)

    one server, I can get this script to run correctly in all
    browsers that I test. another server, it will not run correctly
    in Netscape (testing for the word Gecko, but have used Netscape
    also). Any help would be appreciated.

    Link to script:

    In case it's needed, link to file with phpinfo():


    >
    >
    >

    End Message
    >
    >
    >
  • No.3 | | 2406 bytes | |

    This info is for the server where the script does not work:

    Apache/1.3.33 (Unix) PHP/4.3.10
    FreeBSD cliffb55.iserver.net 4.7-RELEASE-p28 FreeBSD 4.7-RELEASE-p28 #42: Tu i386

    This info is for the server where the script works:

    Apache/2.0.40 (Red Hat Linux) PHP Version 4.3.2
    Linux pl1.qcinet.net 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686

    Thanks for your help.

    Message
    From: "Unknown Unknown" <phpinfolist (AT) gmail (DOT) com>
    To: "Peppy" <peppy (AT) foxedge (DOT) net>
    Cc: <php-general (AT) lists (DOT) php.net>
    Sent: Thursday, December 01, 2005 4:08 PM
    Subject: Re: [PHP] script won't work on other server

    What are the server types like Apache IIS or something else?
    i am asking because the webserver might not give the PHP script all the data
    from the browser like browser name and stuff

    11/30/05, Peppy <peppy (AT) foxedge (DOT) netwrote:

    Short tags are on on both servers.

    Message
    From: <replies-lists-php (AT) listmail (DOT) innovate.net>
    To: "Peppy" <peppy (AT) foxedge (DOT) net>
    Sent: Wednesday, November 30, 2005 2:23 PM
    Subject: Re: [PHP] script won't work on other server
    --
    you're using the short-tag form:

    <?

    rather than:

    <?php

    this may not be supported on both machines.

    haven't looked at other aspects of the script.
    --
    Message
    Date: Wednesday, November 30, 2005 02:15:47 PM -0600
    From: Peppy <peppy (AT) foxedge (DOT) net>
    To: php-general (AT) lists (DOT) php.net
    Subject: [PHP] script won't work on other server

    I have a small script that I am testing out on two different
    servers. It uses the $_SERVER['HTTP_USER_AGENT'] to detect the
    browser and serve up a style sheet dependent on the results.
    (Please don't comment on its usefulness, it's just an example.)

    one server, I can get this script to run correctly in all
    browsers that I test. another server, it will not run correctly
    in Netscape (testing for the word Gecko, but have used Netscape
    also). Any help would be appreciated.

    Link to script:

    In case it's needed, link to file with phpinfo():


    >
    >
    >

    End Message
    >
    >
    >
  • No.4 | | 2793 bytes | |

    Forwarded message
    From: Unknown Unknown <phpinfolist (AT) gmail (DOT) com>
    Date: Dec 1, 2005 8:26 PM
    Subject: Re: [PHP] script won't work on other server
    To: Peppy <peppy (AT) foxedge (DOT) net>

    execute this code:
    print_r($_SERVER);
    on a page, what is the result?

    12/1/05, Peppy <peppy (AT) foxedge (DOT) netwrote:

    This info is for the server where the script does not work:

    Apache/1.3.33 (Unix) PHP/4.3.10
    FreeBSD cliffb55.iserver.net 4.7-RELEASE-p28 FreeBSD 4.7-RELEASE-p28 #42:
    Tu i386

    This info is for the server where the script works:

    Apache/2.0.40 (Red Hat Linux) PHP Version 4.3.2
    Linux pl1.qcinet.net 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686

    Thanks for your help.
    --
    Message From: "Unknown Unknown" <phpinfolist (AT) gmail (DOT) com

    To: "Peppy" <peppy (AT) foxedge (DOT) net >
    Cc: <php-general (AT) lists (DOT) php.net >
    Sent: Thursday, December 01, 2005 4:08 PM
    Subject: Re: [PHP] script won't work on other server

    What are the server types like Apache IIS or something else?
    i am asking because the webserver might not give the PHP script all the
    data
    from the browser like browser name and stuff
    --
    11/30/05, Peppy < peppy (AT) foxedge (DOT) netwrote:

    Short tags are on on both servers.

    Message
    From: < replies-lists-php (AT) listmail (DOT) innovate.net>
    To: "Peppy" < peppy (AT) foxedge (DOT) net>
    Sent: Wednesday, November 30, 2005 2:23 PM
    Subject: Re: [PHP] script won't work on other server
    --
    you're using the short-tag form:

    <?

    rather than:

    <?php

    this may not be supported on both machines.

    haven't looked at other aspects of the script.
    --
    Message
    Date: Wednesday, November 30, 2005 02:15:47 PM -0600
    From: Peppy < peppy (AT) foxedge (DOT) net>
    To: php-general (AT) lists (DOT) php.net
    Subject: [PHP] script won't work on other server

    I have a small script that I am testing out on two different
    servers. It uses the $_SERVER['HTTP_USER_AGENT'] to detect the
    browser and serve up a style sheet dependent on the results.
    (Please don't comment on its usefulness, it's just an example.)

    one server, I can get this script to run correctly in all
    browsers that I test. another server, it will not run correctly
    in Netscape (testing for the word Gecko, but have used Netscape
    also). Any help would be appreciated.

    Link to script:

    In case it's needed, link to file with phpinfo():


    >
    >
    >

    End Message
    >
    >
    >
  • No.5 | | 1553 bytes | |

    Peppy wrote:

    >This info is for the server where the script does not work:
    >
    >Apache/1.3.33 (Unix) PHP/4.3.10
    >FreeBSD cliffb55.iserver.net 4.7-RELEASE-p28 FreeBSD 4.7-RELEASE-p28 #42: Tu i386
    >
    >This info is for the server where the script works:
    >
    >Apache/2.0.40 (Red Hat Linux) PHP Version 4.3.2
    >Linux pl1.qcinet.net 2.4.20-8smp #1 SMP Thu Mar 13 17:45:54 EST 2003 i686
    >
    >Thanks for your help.
    >

    Message

    Date: Wednesday, November 30, 2005 02:15:47 PM -0600
    From: Peppy <peppy (AT) foxedge (DOT) net>
    To: php-general (AT) lists (DOT) php.net
    Subject: [PHP] script won't work on other server

    I have a small script that I am testing out on two different
    servers. It uses the $_SERVER['HTTP_USER_AGENT'] to detect the
    browser and serve up a style sheet dependent on the results.
    (Please don't comment on its usefulness, it's just an example.)

    one server, I can get this script to run correctly in all
    browsers that I test. another server, it will not run correctly
    in Netscape (testing for the word Gecko, but have used Netscape
    also). Any help would be appreciated.

    Link to script:

    In case it's needed, link to file with phpinfo():

    Using Netscape to view this page:

    My stylesheet link is:

    <link rel='stylesheet' type='text/css' href='net.css' />

    Looks like it works for me.

    kgt

Re: script won't work on other server


max 4000 letters.
Your nickname that display:
In order to stop the spam: 9 + 8 =
QUESTION ON "PHP"

EMSDN.COM