PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > alt.comp.lang.php > oddity
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
oddity

Réponse
 
LinkBack Outils de la discussion
Vieux 11/06/2007, 16h03   #1
Marnok.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut oddity

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


  Réponse avec citation
Vieux 11/06/2007, 16h16   #2
Marnok.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: oddity


"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.


  Réponse avec citation
Vieux 12/06/2007, 02h50   #3
Charles Crume
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: oddity

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



  Réponse avec citation
Vieux 12/06/2007, 08h54   #4
Marnok.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: oddity


"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.


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 22h42.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10458 seconds with 12 queries