Welcome our webmaster and SEO forum
Please enjoy the forum, contribute what you can, and wind up the Moderators!
Closed Thread
Results 1 to 8 of 8

Thread: PHP is trying to kill me

  1. #1
    bungo is offline Junior Member bungo is on a distinguished road
    Join Date
    Jul 2005
    Posts
    23

    Default PHP is trying to kill me

    I'm trying to use PHP to allow the users of my website bungo.co.uk to choose a stylesheet, and as I don't know what I'm doing, I used an example script mezzoblue.com/zengarden/faq/switcher-php.txt]script from mezzoblue.com. The script to handle the stylesheets is working fine, and I've been using "pagetwo.php?cssfile=<?php echo $loadCSS; ?>" to link between pages once the style has been selected.

    My problem is that once the user has selected a style and gone to another page, the stylesheet variable seems to expire. I've been testing this at piggah.net[/URL] if you want to take a look, I'm not too good at explaining things!

    I was wondering if anyone knew a way to keep the stylesheet variable active for longer.

    Oh, and just to be fussy, I'm really trying to avoid using Javascript and cookies, but if there's no other way around it then I guess they'll suffice.

    Sorry if that didn't make sense, I'm completely new to PHP.
    Thanks in advance,
    Sam

  2. #2
    maro25 Guest

    Default

    Well if you don't use cookies and users are not registered and logged in to your site, I believe you won't be able to do it.

  3. #3
    OldWelshGuy's Avatar
    OldWelshGuy is offline Super Moderator OldWelshGuy has much to be proud of OldWelshGuy has much to be proud of OldWelshGuy has much to be proud of OldWelshGuy has much to be proud of OldWelshGuy has much to be proud of OldWelshGuy has much to be proud of OldWelshGuy has much to be proud of OldWelshGuy has much to be proud of
    Join Date
    Oct 2004
    Posts
    1,998

    Default

    As the instruction you are issuing is a client side instruction, you really have no option. Although you could achieve it with a session ID (which is server side). The only problem with that is that the moment they leave your site the session ID will expire, and on their return they will get the default settings.

  4. #4
    bungo is offline Junior Member bungo is on a distinguished road
    Join Date
    Jul 2005
    Posts
    23

    Default

    Alrighty, thanks for reply!

    Bungo

  5. #5
    dmscs is offline Junior Member dmscs is on a distinguished road
    Join Date
    Nov 2005
    Posts
    29

    Default

    Hello Bungo

    Have you considered a content management system that will have such functionality built in?

    David

  6. #6
    bungo is offline Junior Member bungo is on a distinguished road
    Join Date
    Jul 2005
    Posts
    23

    Default

    Yes, I've had a look at some of the major CMS' out there, but to be honest, my site is so small I just feel that using a CMS to sort out some minor issues would be like using a nuclear bomb to catch a minnow - a very time-consuming nucleat bomb at that!

    Thanks for suggestion anyhoo.

  7. #7
    PrivateInvestigator Guest

    Default

    the only gripe with using php is that for novices like me some programs can be incredibly easy to install and others are sooo much harder?

    Shouldn't there be a standard installation procedure or something?!

  8. #8
    pandela Guest

    Default

    Hi Bungo, if you're new to PHP you might want to take a look at a great FREE web host which provides great PHP cover - MySQL, PHP Mail_Function (), etc. pandela.com - try it out and you won't regret it. This is not a spam or something like this, I am a real person, using this hosting and I am really pleased with it. Check it if you are interested.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. How to kill your husband - Just google it
    By temi in forum General Webmaster Talk
    Replies: 7
    Last Post: 03-17-2007, 10:08 AM
  2. Microsoft planned to kill hotmail
    By temi in forum General Webmaster Talk
    Replies: 2
    Last Post: 02-20-2007, 08:31 PM
  3. Microsoft to Kill Google
    By temi in forum General Search Engine Discussions
    Replies: 0
    Last Post: 09-07-2005, 06:26 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124