Jump to content

MrCat

Members
  • Posts

    21
  • Joined

  • Last visited

    Never

Everything posted by MrCat

  1. I have multiple domain names pointing to the same site. This works fine in the root folder: mysite.com and myothersite.com begin at mysite.com/index.php and I can change display settings depending on HTTP_HOST (which is either set to mysite.com or myothersite.com). It doesn't work when I go one folder deeper: mysite.com/start and myothersite.com/start are always seen as mysite.com/start/index.php - destroying the HTTP_HOST variable. What can I do? I'm on a shared host so can't do much in the way of config. Any help appreciated
  2. Yeah I know what you mean. What I'm wanting to do is pass a 'get' variable like ?page=thisone26 I can always do ?page=thisone&value=26 or something like ?page=thisone.26 and look for the separator. Just thought my original layout was the nicest but it's looking like it's not worth the trouble!
  3. Thanks for that. It would be nice if something like intval just worked. I always worry about time/processing penalties when using something unnecessarily complicated like preg_match!
  4. Is there an easy way to find a numeric value in a string if I don't know what the string will contain? For example I want '52' out of: mystring52 Hopefully there is already a simple function to do this? I'm thinking there may not be as the string having more than one group of numbers may confuse matters. I'm just dealing with abcdef123 or similar in this case though.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.