Jump to content

ionutvmi

New Members
  • Posts

    8
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

ionutvmi's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. hello, why do you want to store all that extra info in the txt file ? the url is enough. you can later use parse_url() and parse_str() to get the data you need. So mainly just check if user has a referer if yes add a new line to txt file with that info using fwrite() ...
  2. you could try this... after what you described it will do the job <?php $sentence = "The quick brown fox jumped over the lazy dog. This is a test. Thank you."; function remove_sentence($remove_value, $sentence) { $stc = explode(". ",$sentence); foreach($stc as $stc) { if(strpos($stc,$remove_value) === false) { $new_sentence.=$stc."."; } } // end for return $new_sentence; } echo remove_sentence("quick brown", $sentence); // returns 'This is a test. Thank you.' ?>
  3. hello again i've tried that code and it works but now i need subname.domain.com/somepage.php to be redirected to domain.php/apage.php?n=subname so i added a line in htaccess like RewriteRule ^somepage\.php$ apage.php?n=%1 [QSA,L] and it works but the problem is that when i try to access subname.domain.com it sends me on an endless loop what can i do ?
  4. use strtotime() to get time value of 12th aug 00:00 and get first value then add to that value 24 hours (in seconds) and get the second value select from table where time is bigger then the first value and is smaller then the second value
  5. You can try cookies if you are looking for something simple.... but they can be easily deleted from browser so i think a good choise will be what PFMaBiSmAd recommended.
  6. hello i'm working on a project and i'm stuck i need to make something like this from htaccess subname.domain.com to be redirected to page.php?a=subname also subname.domain.com/?act=do to be redirected to page.php?a=subname&act=do and i also need the url to stay unchanged after redirection can anybody help ?
×
×
  • 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.