Jump to content

DeathStar

Members
  • Posts

    529
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Male
  • Location
    Here, there, everywhere...

DeathStar's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. eeh.. I setup the debugger but I see errors while typing. it has an VERY annoying red X when it has an error.
  2. We do not make script for you. Post in the freelancers section.
  3. Okay.. Make one. <?php $contents = file_get_contents('script.txt'); if ($_POST){ $contents = $_POST['contents']; $open = fopen('script.txt', 'w'); $do = fwrite($open, $contents); fclose($open); if (isset($do)){ echo 'Saved.'; } else { echo 'Failed'; } } echo '<form action="index.php" method="post"><textarea name="contents">' . $contents . '</textarea><input type="submit" value="Save"></form>'; ?>
  4. Results 1 - 10 of about 2,250,000 for Language Packs. 99% for other software, I need one that is free but not under the GNU license. Can anyone else help?
  5. I cannot use it. Read the GNU license agreement. Free software has to be released with the GNU license again. I'm not publishing this website under a GNU license.
  6. Then I have the right Idea. The script will determine the Country automatically by using the IP Address of the client. It has Text(eg:United States) aswell, so you can just call it. You can simply put one part int othe register page and then just call the saved data when You need it. Example: Ever noticed Google has a little flag in the top right corner of the screen, your countries?
  7. Read my post again please. Where can I actually get the language packs?
  8. I'm going to make your day. I was looking for this last month. PM me your email address then ill send you the script, and images. It basically detects your country code by ip and displays the correct image by getting the variable out of the database.
  9. Hello there. I'm busy making an fully automated website for one of my clients. Is there maybe a language packs anywhere on the internet, that is already in an array or something? I'm making this website in mysql and php, but I really do not want to waste server load on mysql. I have seen an array like this before: if (isset ($_GET['lang'])) { $langue = $_GET['lang']; } elseif (preg_match("/^fr/", $_SERVER['HTTP_ACCEPT_LANGUAGE'])) { $langue = 'fr'; } else { $langue = 'en'; } $langues = array( 'en' => array( 'langue' => 'English', 'autre_langue' => 'version française', 'vers' => 'Version :', ), 'fr' => array( 'langue' => 'Français', 'autre_langue' => 'english version', 'vers' => 'Version de:', ), 'all' => array( 'Hello' => 'Hello', ) ); I don't exactly know how that works but have an idea.(I never bothered with arrays before.) Is the a language pack or would an array like that be the best, that I include in pages? Help Appreciated. Edit: I also use GD Image's for buttons.
  10. You do know how sessions actually work do you? It's a little file in your TEMP folder. Usaully something like this: session. ----
  11. Use the search future. It is MSN, Yahoo! itself.
  12. put the code between <?php ?> and save it as file.php It should give an error if there is any.
  13. I prefer cookies. The only downfall in them is you have to either encrypt the data or use a special way to identify them. And then also you can set them for how long you want and they will stay until that time.
  14. Okay, well. &hosturl=http://www.nestent.net/images/myspace/ &mtitle1=James Bond: Casino Royale&mimgurl1=http://imagecache2.allposters.com/images/PYR/CON6519DM-CR.jpg&mrate1=5&mreview1=Excellent Movie! Plenty of action but still a good story. A little faster than older James Bond movies but I recommend it! Should look like: hosturl=http://www.nestent.net/images/myspace/ mtitle1=James Bond: Casino Royale mimgurl1=http://imagecache2.allposters.com/images/PYR/CON6519DM-CR.jpg mrate1=5 mreview1=Excellent Movie! Plenty of action but still a good story. A little faster than older James Bond movies but I recommend it! Then just change the identifier. $file = file('db.txt'); foreach ($file as $lines) { // this one '|' to '=' list($ident,$text) = explode('|',$lines); if ($ident == $search){ $var = $text; } } echo '<input type="text" value="'.$var.'">';
  15. $file = file('db.txt'); 1|Text One 2|text two foreach ($file as $lines) { //Basically $lines == $file; list($ident,$text) = explode('|',$lines); Takes the text file search for the |'s Make first string before the | a variable called $ident. Make string after the | a valiable called $text if ($ident == $search){ //if the $ident is $search.. $var = $text; }// Make a Variable called $var. } echo '<input type="text" value="'.$var.'">'; // Put the variable called $var in the textbox. Hope that helps.
×
×
  • 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.