In a particular case the PHP session_start doesn't work

If I type an URL e.g. www.vdh-lelystad.nl the PHP session_start() does work very well. All the SESSION variables are available trhoughout the website visit.<br />
If I type URL vdh-lelystad.nl (without www.) no PHP session_start() will be there. No SESSION variables are available.
(In Chrome or IE if you type a URL without www. they put it automatically in front of the URL).<br />
Please can you tell me what to do about it so that if people type the URL without www. ther won't be any problem. First it cost me a lot to find out what happened, and second it already took me a lot of time to try something, so I could put it in front of the URL myself (e.g. $URL = $_SERVER['SERVER_NAME'];<br />
$URL = explode('.', $_SERVER['SERVER_NAME']);<br />
<br />
<pre><nowiki>
if(strtolower($URL[0]) <> 'www')
$_SERVER['HTTP_HOST'] = "www.vdh-lelystad.nl";
header("Location: " . $_SERVER['HTTP_HOST']);
exit;
}</nowiki></pre>
But that doesnot work cause the second time the URL will be:<br />
vdh-lelystad.nlwww.vdh-lelystad.nl.<br />
You make me happy if you know a way to solve this problem.<br />
Many thanks in advance.
Best regards<br />
Marc Molthoff'

Hello jscher2000,
Thanks a lot. I work great.
best regards
Marc

Similar Messages

  • Capitalization doesn't work as described. One can start with lower case and change to upper, but changing from upper case to any of the other options doesn't work. Is there a way around this or is this just a glitch that needs fixing?

    In Pages capitalization doesn't work as described. One can start with lower case and change to upper, but changing from upper case to any of the other options doesn't work. Is there a way around this or is this just a glitch that needs fixing?

    I think it does work as described, but the description is not very complete. Capitalization does not change any of the characters that you type; what it does is allow some of the lower case characters to display as capitals. If you copy the result and paste it as plain text, you'll see that the lower case characters are still there. It doesn't actually say anywhere that it can make capitals display as lower case, and it can't.
    The obvious way around this is to actually type what you want.
    The more powerful way is to install WordService from Devon Technologies which adds the functionality of Pages' capitalization menu as well a lot of other ones. WordService actually changes the character to the one displayed, and it works in most of the applications on your Mac.

  • I tried copying a photo and pasting it in another event/group within iPhoto but the paste feature doesn't work.  This wasn't an issue with both Leopard and Snow Leopard.  Do you have any solutions or tips?

    I bought a new MacBook Pro with OsX Lion as operating system.  I use iPhoto a lot and when I tried copying a photo then pasting it to another event/group, the 'paste' feature doesn't work.  This wasn't the case with Leopard and Snow Leopard where the 'paste' feature worked.  What I did was to paste the photo first to the desktop before transferring it to the new event/group.  I brought my Mac to the Apple store where I bought it and the technicians were themselves surprised that the 'paste' feature didn't work.  Chalked it up to glitches in the Lion os.  So how do we fix this?  I just find it absurd that a feature that used to work in Snow Leopard has been disabled in Lion, and the user still has to undergo an additional step to make it work, when new technology is supposed to make things easier for users. 
    Also, hasn't anyone noticed that it takes longer for the computer to boot upon opening? 

    Instead of copy and paste drag the photo to the new event. Or flag it and use the add flagged photos to selected event command
    LN

  • I own PSE 7 on disc. The laptop it was loaded on died. My new laptop doesn't have an optical drive so I downloaded PSE 7 from the Adobe site. It downloaded fine but I cannot start using it until I enter a S/N. The S/N on the disc box doesn't work.

    I own PSE 7 on disc. The laptop it was loaded on died. My new laptop doesn't have an optical drive so I downloaded PSE 7 from the Adobe site. It downloaded fine but I cannot start using it until I enter a S/N. The S/N on the disc box doesn't work.

    Those links weren't particularly helpful to me. They convinced me to install the drivers for my USB 2.0 card, but that didn't make a difference. Still no OS X without a PRAM reset if I've dared to venture into OS 9.
    It's always been my understanding that an unblessed System Folder will not be selectable in OS 9's Startup Disk control panel. My folders are blessed and healthy. Of course I'm running 9.2.2, as stated in my first message. I also frequently verify and repair my disks and permissions.
    I did a verbose startup of OS X, and noticed something funny about "ATY...too old." Perhaps this problem is related? I ventured into my system.log file and there it was, repeated over and over, everytime I've booted this computer:
    Aug 8 18:30:24 localhost kernel: From path: "/pci/@d/pci-ata@1/ata-4@0/disk@0:10,\mach_kernel", Waiting on <dict ID="0"><key>IOPathMatch</key><string ID="1">IODeviceTree:/pci/@d/pci-ata@1/ata-4@0/@0:10</string></dict>
    Aug 8 18:30:35 localhost kernel: ROM ndrv for ATY,Rage128y is too old (0xb3383430)
    Aug 8 18:30:41 localhost init: kernel security level changed from 0 to 1
    Anyone know how to interpret that? Is it related to my problem? I googled it, and all I found was a web board of people arguing over whether the Apple installed stock ATI Rage video card that came in the G3's is appropriate for Panther. The Ye's have it as far as I'm concerned...as long as I leave OS 9 alone, my video is fine on this computer!
    14" iBook G3 800, B&W PowerMac G3 350, Mac Classic II 16 :-P   Mac OS X (10.3.9)   System 7 Rocked!

  • My ipod is broken. The home button doesn't work, so I took it to a tech shop and they also said that the LCD cable was broken and my screen is cracked. Will apple fix my ipod or just replace it?

    I would like to know if apple will replace it. If not, then I will take somewhere cheaper but it has some scratches so I would like to get a new one.

    The home button doesn't work, the LCD cable is broken and the screen is cracked!  Wow.  That's the worst case of abuse that I've seen.  I think that Apple will laugh at you.

  • Since upgrading to mavericks the CD/DVD doesn't work

    Since upgrading to mavericks the CD/DVD doesn't work - when you put the disc in sounds as though computer reading disc and then after about 30 secs it just ejects it

    FIRMWARE UPDATE FOR INTERNAL SUPERDRIVE
    This might help. If you haven't done so yet, try installing Apple's SuperDrive Firmware Update 3.0, which is on Apple's support site at http://support.apple.com/en-gb/HT201953 to see if that resolves it. Although it's not specifically for that problem, the firmware update seems to be important for making external SuperDrives work in Yosemite, and it is one step I used to get my SuperDrive to work in a USB external case when plugged into my MacBook Pro.
    Please let us know either way, whether the firmware update helps or not in your situation.

  • A pop-up message is frozen on my settings page. I was trying to set up an apple id for iTunes when I got a message "required fields have been left blank. The missing information is highlighted in red." the ok button doesn't work. 1st gen iPad.

    A pop-up message is frozen on my settings page. I was trying to set up an apple id for iTunes when I got a message "required fields have been left blank. The missing information is highlighted in red." the ok button doesn't work. The message is now fixed &amp; I cannot get rid of it. Ironically, when I found this forum I was able to set up an apple Id. Please advise how to get rid of the pop-up box. Thanks!

    I'm having this same problem as well and cannot advance--very irritating. All of the information is filled out correctly and I've editted my AppleID information online separately as well to get around this issue, but no luck...

  • I cannot figure out how to make the text larger on an incoming email.  The finger method doesn't work and I cannot find any toolbar with which to do it.  I could find nothing in settings also.  Plese help and thank you.

    I cannot figure out how to make the text larger in a received email.  The finger method doesn't work and I can find no tool bar as I can for composing emails.  I can find nothing in settings.  Please help and thank you in advance.

    Hi there,
    Download a piece of software called TinkerTool - that might just solve your problem. I have used it myself to change the system fonts on my iMac. It is software and not an app.
    Good wishes,
    John.

  • How can I activate an old version of Photoshop that I've loaded on my new tablet? The web activation doesn't work, and when I call the number, it says it's not being used anymore. Meanwhile, I'm down to 13 days till it stops working due to not being activ

    How can I activate an old version of Photoshop that I've loaded on my new tablet? The web activation doesn't work, and when I call the number, it says it's not being used anymore. Meanwhile, I'm down to 13 days till it stops working due to not being activated. HELP?  I really need to continue using this product for my home business.It works fine not activated but the threat is that it will stop working in 13 more days if I don't get it activated, and none of the activation methods they list seem to work.

    The new serial number is to the right of your chosen download.

  • The application DOCS doesn't work. Doesn't have HELP. it is very bad. Help me. My ID is regobarros.thanks in advance

    The application DOCS doesn't work. Doesn't have HELP. it is very bad. Help me. My ID is regobarros.thanks in advance

    Also it was not and never has been jailbroken if that helps.

  • Since updating my iPad 2 to ios8, it safari has been slow and crashing and some of the apps acting wierd. The password app doesn't work at all so had to find another way of retrieving all my passwords. Very very dissapointing

    Since updating my iPad 2 to ios8, it safari has been slow and crashing and some of the apps acting wierd. The password app doesn't work at all so had to find another way of retrieving all my passwords. Very very dissapointing. It appears from these forums that a lot of people are having the same problems wit this latest update.

    Hi erastyle,
    Actually the Licensing information for the package is missing hence it is not launching any applications. You need to Reserialize the products using APTEE which you can find it on the Machine where you have created the package. If you dont have the access to that Machine then please download and install Creative Cloud Packager and it will download APTEE in the below mentioned location.
    Windows:
    C:\Program Files (x86)\Common Files\Adobe\OOBE\PDApp\CCP\utilities
    Once downloaded please follow this KB article to use the Tool.
    http://helpx.adobe.com/creative-cloud/packager/provisioning-toolkit-enterprise.html
    Please let us know if it helps.
    Regards,
    Abhijit

  • I cant open apps on my iPhone 4 the touch screen doesn't work.  I have restored my phone and still nothing works.

    I can't open apps on my iPhone.  The touch screen doesn't work.  I have restored it already but it still won't work.  What can I do.

    If the touch screen is not having any response then you probably have a hardware failure. Take your phone to an Apple Store or authorised service provider to have it checked.

  • With my i phone 4 , the Push notifications doesn't work for apps like (fb viber , whatsapp etc ) it only works for the official apps like message  even when im using the phone, has  this probleme with the iOs 6.0.1 and also with the iOs 6.1

    With my i phone 4 , the Push notifications doesn't work for apps like (fb viber , whatsapp etc ) it only works for the official apps like message  even when im using the phone, has  this probleme with the iOs 6.0.1 and also with the iOs 6.1

    This isn't an issue. Notice the screen prior to the one that shows usage has an iCloud section and a Manage Storage button. For this button to activate ios needs to download a few kb from icloud. Switching back to this screen forces ios to download those few kb.

  • I have different account ID's with my iphone and computer. I would like to standardise both to just the one. One of the ID's doesn't work, when I tried to list the second email with the preferred one a message telling me that this email is already in

    I have different account ID's with my iphone and computer.
    I would like to standardize both to just the one.
    One of the ID's doesn't work, when I tried to list this second email with the preferred one a message telling me that this email is already in use pops up.. yes it is, with me??
    Is there an easy to fix this please, Fabfitz

    If the email address you want to use is being used as the primary email address on a different ID you have to manage that ID and change it to a different primary email address.  This explains how: Change your Apple ID - Apple Support.
    If it is being used as an alternate or rescue address on a different ID, you manage the ID and either remove it or change it to a different email address.  This explains how: Manage your Apple ID primary, rescue, alternate, and notification email addresses - Apple Support.

  • Return the User to the Calling Page - doesn't work

    Hello All,
    I set up the "Issue tracker" tutorial to get in tuch with the apex (htmldb vers. 2.0)
    All is working well but: Return the User to the Calling Page -> doesn't work. I performed all steps as descriped in the tutorial (iclusive the '.' on the &P7_PREV_PAGE ;-) ).
    I use my own aplication at home and followed all the instruction steps few times but it does not work. Can you help me please?
    Do I have to install something more?
    In the Branch section: * 1: Go To Page &P7_PREV_PAGE. (Unconditional)
    In the Item section: 90: P7_PREV_PAGE Hidden
    In the Button section for cancel Button: &P7_PREV_PAGE.
    Here is the description of the function in the tutorial:
    Because this Create/Edit page will be called from several places, when users finish with the display they should return to the calling page. To accomplish this, you create an item and change the branch on this page. Every time this page is called, the item must be set with the number of the calling page.
    To create a hidden item:
    1. Under Items, click the Create icon.
    2. For Select Item Type, select Hidden and click Next.
    3. For Display Position and Name:
    1. For Item Name, enter:
    P7_PREV_PAGE
    2. For Region, select Issue Identification.
    3. Click Next.
    4.
    Click Create Item.
    Next, edit the Cancel button.
    5. Under Buttons, select Cancel.
    6. Scroll down to Optional URL Redirect.
    7. In Page, enter:
    &P7_PREV_PAGE.
    Note the period at the end.
    8. Click Apply Changes.
    Next, edit the branch.
    9. Under Action, enter the following in Page:
    &P7_PREV_PAGE.
    10. Click Apply Changes.
    All steps are done but I still got the message: Error ERR-1016 Application "106" Page "0" not found (requested language="de")
    OK
    I move the mousepointer over the cancel button: javascript:redirect('f?p=106:0:5265993428922076876::NO:::')
    Thank you for helping me!
    best regards Thorsten

    All,
    I haven't looked at that tutorial for quite a while but just gave it a quick look.
    Further down in the tutorial, it directs you to set the value of P7_PREV_PAGE, under Add Functionality to Support Adding Multiple Issues Sequentially - have you done that? There is also a mention that there is more branching to be done - "The branch you just created is looking for a value in P7_PREV_PAGE. Since the page was not called from another page, the value has not been set. You need to fix that next." It goes on to have you define that value from other places.
    Can you describe what you are doing when you get the error? There could be something missing from the tutorial. A way around it would be to create a default value for P7_PREV_PAGE so that if it is not set, a default page will be used.
    -- Sharon

Maybe you are looking for