|
|
|
#1 (permalink) |
|
Messages: n/a
Hébergeur: |
Hi,
I just had a situation when testing a php page, when I access the page through http://www.servername.com/file.php it recognizes the just fine, but when I miss out the www : http://servername.com/file.php the is not recognised as being set. Can anyone tell me what I am doing wrong to make this a problem? Thanks |
|
|
|
#2 (permalink) |
|
Messages: n/a
Hébergeur: |
"Marnok.com" <wizardharry@pottermarnok.com> wrote in message news:xsOdnby-TaIoy_DbnZ2dnUVZ_jadnZ2d@giganews.com... > Hi, > > I just had a situation when testing a php page, when I access the page > through http://www.servername.com/file.php it recognizes the just > fine, but when I miss out the www : http://servername.com/file.php the > is not recognised as being set. > > Can anyone tell me what I am doing wrong to make this a problem? > > Thanks > Sorry, fixed it. Number of times I post here then figure out what I did... apologies for wasting your time. |
|
|
|
#3 (permalink) |
|
Messages: n/a
Hébergeur: |
Well... how about telling us what it was?
Charles... "Marnok.com" <wizardharry@pottermarnok.com> wrote in message news:LLednc_pqa8jxPDbnZ2dnUVZ_j-dnZ2d@giganews.com... > > "Marnok.com" <wizardharry@pottermarnok.com> wrote in message > news:xsOdnby-TaIoy_DbnZ2dnUVZ_jadnZ2d@giganews.com... >> Hi, >> >> I just had a situation when testing a php page, when I access the page >> through http://www.servername.com/file.php it recognizes the just >> fine, but when I miss out the www : http://servername.com/file.php the >> is not recognised as being set. >> >> Can anyone tell me what I am doing wrong to make this a problem? >> >> Thanks >> > > Sorry, fixed it. Number of times I post here then figure out what I did... > apologies for wasting your time. > |
|
|
|
#4 (permalink) |
|
Messages: n/a
Hébergeur: |
"Charles Crume" <NOccsSPAM@charlescrumesoftware.com> wrote in message news:466dfc36$0$17142$4c368faf@roadrunner.com... > Well... how about telling us what it was? > > Charles... Oh, just an RTFM moment. I set the using only the name and the value and the time. When I added the extra parameters - path and domain most important - it worked as it was supposed to. If anyone else has the problem, remember to set("name", $value, $time, '/','.mysite.com',0); as soon as I got some fresh air to clear my head then re-read http://www.php.net/manual/en/function.set.php , the example for the "domain" parameter made it perfectly clear to me. |
|
![]() |
| Outils de la discussion | |
|
|