Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Can someone test this on php 4.46 under Linux?

Can someone test this on php 4.46 under Linux?

Scheduled Pinned Locked Moved Web Development
phpcomlinuxdata-structuresquestion
13 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Ted Ferenc

    The zip file of this is at http://gpssharing.com/cookie.zip. The test is at http://gpssharing.com/cookie.php Run the prog, then refresh the page, so the cookies will be read after being set. can you see the two cookies 'fred' and 'test'? Works fine on 4.4.6 under windows and 4.4.4 under Linux Thanks in advance. document.cookie = 'test=hello world; path=/'; _COOKIE Array
    "; print_r($_COOKIE); echo "_COOKIE['test'] " . $_COOKIE["test"] . "
    "; echo "_REQUEST['test'] " . $_REQUEST["test"] . "
    "; echo "_SERVER['HTTP_COOKIE'] " . $_SERVER["HTTP_COOKIE"] . "
    "; echo ""; //phpinfo(); ?>


    "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

    B Offline
    B Offline
    Bradml
    wrote on last edited by
    #2

    Mate that s trivial stuff... it will work.


    Brad Australian - Christian Graus on "Best books for VBscript" A big thick one, so you can whack yourself on the head with it.

    T 1 Reply Last reply
    0
    • B Bradml

      Mate that s trivial stuff... it will work.


      Brad Australian - Christian Graus on "Best books for VBscript" A big thick one, so you can whack yourself on the head with it.

      T Offline
      T Offline
      Ted Ferenc
      wrote on last edited by
      #3

      Bradml wrote:

      it will work

      Want to bet!!!! I just had a reply from my ISP, I am noticing that this is being blocked by suhosin which is a new security modules that we have installed to help prevent exploits and to keep the servers being blacklisted. It looks like one thing has been fixed, breaking something else! Hopefully other will 'learn' from this, at least my ISP did check out my test prog and admit to the problem, and have given me a solution.


      "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

      B 1 Reply Last reply
      0
      • T Ted Ferenc

        Bradml wrote:

        it will work

        Want to bet!!!! I just had a reply from my ISP, I am noticing that this is being blocked by suhosin which is a new security modules that we have installed to help prevent exploits and to keep the servers being blacklisted. It looks like one thing has been fixed, breaking something else! Hopefully other will 'learn' from this, at least my ISP did check out my test prog and admit to the problem, and have given me a solution.


        "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

        B Offline
        B Offline
        Bradml
        wrote on last edited by
        #4

        Have you contacted Stephan Esser? If not please give me the details of what went wrong and I'll let him know.


        Brad Australian - Christian Graus on "Best books for VBscript" A big thick one, so you can whack yourself on the head with it.

        T 1 Reply Last reply
        0
        • B Bradml

          Have you contacted Stephan Esser? If not please give me the details of what went wrong and I'll let him know.


          Brad Australian - Christian Graus on "Best books for VBscript" A big thick one, so you can whack yourself on the head with it.

          T Offline
          T Offline
          Ted Ferenc
          wrote on last edited by
          #5

          No I have not, who is he? I have slightly modified the zip file on my site, to display the version no of PHP So if you know this guy please forward this info, here is the contents of the email from my ISP I am noticing that this is being blocked by suhosin which is a new security modules that we have installed to help prevent exploits and to keep the servers being blacklisted. When I disable suhosin I see _COOKIE Array Array ( [fred] => home less [test] => hello world ) _COOKIE['test'] hello world _REQUEST['test'] hello world _SERVER['HTTP_COOKIE'] fred=home+less; test=hello world It appears that it is blocking the document.cookie setting. I am not showing any errors so I am going to contact the author of suhosin to see if they have any suggestions.


          "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

          B 1 Reply Last reply
          0
          • T Ted Ferenc

            No I have not, who is he? I have slightly modified the zip file on my site, to display the version no of PHP So if you know this guy please forward this info, here is the contents of the email from my ISP I am noticing that this is being blocked by suhosin which is a new security modules that we have installed to help prevent exploits and to keep the servers being blacklisted. When I disable suhosin I see _COOKIE Array Array ( [fred] => home less [test] => hello world ) _COOKIE['test'] hello world _REQUEST['test'] hello world _SERVER['HTTP_COOKIE'] fred=home+less; test=hello world It appears that it is blocking the document.cookie setting. I am not showing any errors so I am going to contact the author of suhosin to see if they have any suggestions.


            "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

            B Offline
            B Offline
            Bradml
            wrote on last edited by
            #6

            please try this script, unfortunately I do not have access to a running PHP 4 server right now.

            setcookie('fred', 'home less', null, '/', null, null, false);

            Stephan Esser is the man who found the PHP security response team and the Suhosin project.


            Brad Australian - unknown PHP Developer on "Job Prospect" Requirement: * Experience working with XML, XSL, XPath Comment: and other things starting with X.

            T 1 Reply Last reply
            0
            • B Bradml

              please try this script, unfortunately I do not have access to a running PHP 4 server right now.

              setcookie('fred', 'home less', null, '/', null, null, false);

              Stephan Esser is the man who found the PHP security response team and the Suhosin project.


              Brad Australian - unknown PHP Developer on "Job Prospect" Requirement: * Experience working with XML, XSL, XPath Comment: and other things starting with X.

              T Offline
              T Offline
              Ted Ferenc
              wrote on last edited by
              #7

              Bradml wrote:

              Stephan Esse

              Thanks, Google just beat you, I am looking at the forums now. Unfortunately I can't really use setcookie on my site, as with all software I could re write my code, but as the ISP is chasing this up. They have just got back to me with a work around, I am impressed. Thanks for your reply, as I am sure you will agree software updates are real fun;)


              "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

              B 1 Reply Last reply
              0
              • T Ted Ferenc

                Bradml wrote:

                Stephan Esse

                Thanks, Google just beat you, I am looking at the forums now. Unfortunately I can't really use setcookie on my site, as with all software I could re write my code, but as the ISP is chasing this up. They have just got back to me with a work around, I am impressed. Thanks for your reply, as I am sure you will agree software updates are real fun;)


                "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

                B Offline
                B Offline
                Bradml
                wrote on last edited by
                #8

                What was the work around?


                Brad Australian - Christian Graus on "Best books for VBscript" A big thick one, so you can whack yourself on the head with it.

                T 1 Reply Last reply
                0
                • B Bradml

                  What was the work around?


                  Brad Australian - Christian Graus on "Best books for VBscript" A big thick one, so you can whack yourself on the head with it.

                  T Offline
                  T Offline
                  Ted Ferenc
                  wrote on last edited by
                  #9

                  Bradml wrote:

                  What was the work around?

                  From their email:- We aren't willing to completely disable suhosin, but I have disabled the cookie encryption setting It is very refreshing to have an ISP that actually looks into and 'fixes' problems


                  "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

                  B 1 Reply Last reply
                  0
                  • T Ted Ferenc

                    Bradml wrote:

                    What was the work around?

                    From their email:- We aren't willing to completely disable suhosin, but I have disabled the cookie encryption setting It is very refreshing to have an ISP that actually looks into and 'fixes' problems


                    "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

                    B Offline
                    B Offline
                    Bradml
                    wrote on last edited by
                    #10

                    That is quite nice of them, however that is a very useful function of Suhosin...


                    Brad Australian - Christian Graus on "Best books for VBscript" A big thick one, so you can whack yourself on the head with it.

                    T 1 Reply Last reply
                    0
                    • B Bradml

                      That is quite nice of them, however that is a very useful function of Suhosin...


                      Brad Australian - Christian Graus on "Best books for VBscript" A big thick one, so you can whack yourself on the head with it.

                      T Offline
                      T Offline
                      Ted Ferenc
                      wrote on last edited by
                      #11

                      The ISP is surfspeedy.com perhaps the level 3 support were bored and fancied a play? But I can't complain. My LINUX skills are rusty so I can't comment about Suhosin but their forums do seem active, and it seems there are 'issues' with it. I get concerned when the last 2 release dates of a product were 2007.03.06 and 2007.03.04 generally I find if a product has so many releases, there is something wrong there. It may just be a group of happy hackers adding new bits or that they have not tested/designed the new features properly and have introduced bugs I hasten to add I am in no way criticising Suhosin, I know absoulutely nothing about it.


                      "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

                      B 1 Reply Last reply
                      0
                      • T Ted Ferenc

                        The ISP is surfspeedy.com perhaps the level 3 support were bored and fancied a play? But I can't complain. My LINUX skills are rusty so I can't comment about Suhosin but their forums do seem active, and it seems there are 'issues' with it. I get concerned when the last 2 release dates of a product were 2007.03.06 and 2007.03.04 generally I find if a product has so many releases, there is something wrong there. It may just be a group of happy hackers adding new bits or that they have not tested/designed the new features properly and have introduced bugs I hasten to add I am in no way criticising Suhosin, I know absoulutely nothing about it.


                        "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

                        B Offline
                        B Offline
                        Bradml
                        wrote on last edited by
                        #12

                        The reason for so many releases is that PHP is constantly updated and therefore compatibility issues are encountered. Also they update it to protect against the latest PHP vulnerabilities.


                        Brad Australian - Captain See Sharp on "Religion" any half intelligent person can come to the conclusion that pink unicorns do not exist.

                        1 Reply Last reply
                        0
                        • T Ted Ferenc

                          The zip file of this is at http://gpssharing.com/cookie.zip. The test is at http://gpssharing.com/cookie.php Run the prog, then refresh the page, so the cookies will be read after being set. can you see the two cookies 'fred' and 'test'? Works fine on 4.4.6 under windows and 4.4.4 under Linux Thanks in advance. document.cookie = 'test=hello world; path=/'; _COOKIE Array
                          "; print_r($_COOKIE); echo "_COOKIE['test'] " . $_COOKIE["test"] . "
                          "; echo "_REQUEST['test'] " . $_REQUEST["test"] . "
                          "; echo "_SERVER['HTTP_COOKIE'] " . $_SERVER["HTTP_COOKIE"] . "
                          "; echo ""; //phpinfo(); ?>


                          "Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for - in order to get to the job you need to pay for the clothes and the car, and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

                          V Offline
                          V Offline
                          Vasudevan Deepak Kumar
                          wrote on last edited by
                          #13

                          You could have posted this message in http://www.codeproject.com/script/comments/forums.asp?forumid=1651[^]

                          Vasudevan Deepak Kumar Personal Homepage Tech Gossips

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups