Jump to content

DeathStar

Members
  • Posts

    529
  • Joined

  • Last visited

    Never

Everything posted by DeathStar

  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.
  16. DeathStar

    IPs

    eeek.. Sorry for that.
  17. How do you mean? it searches the file for an word that matches the search variable. then gets the text after the |.
  18. Well, It's called Flat File Databases. here is an simple example: $file = file('db.txt'); foreach ($file as $lines) { list($ident,$text) = explode('|',$lines); if ($ident == $search){ $var = $text; } } echo '<input type="text" value="'.$var.'">';
  19. eh... function send_mails() { // start mail process $mailContent = "--------CONTACT--------\n"; $mailContent .= "Name: ".$name."\n"; $mailContent .= "Date: ".$date."\n"; $mailContent .= "E-mail: ".$email."\n\n--------PHONE--------\n"; $mailContent .= "Phone: ".$phone."\n"; $mailContent .= "Address: ".$address."\n"; $mailContent .= "City: ".$city."\n"; $mailContent .= "State: ".$state."\n"; $mailContent .= "Zip: ".$zip."\n\n---------Other Details---------\n"; $mailContent .= "When are you moving: ".$moving."\n"; $mailContent .= "Where are you moving: ".$where."\n"; $mailContent .= "Your price range: ".$price."\n"; $mailContent .= "Number of bedrooms: ".$bedrooms."\n"; $mailContent .= "Square footage: ".$sqft."\n"; $mailContent .= "Comments: ".$comments."\n"; /*--------------------------------------------------------------*/ $toAddress = "harrylips@gmail.com"; // change this! $subject = "Seattle Viet Homes Buyer Inquiry"; // change this! $recipientSubject = "Seattle Viet Homes Buyer Inquiry"; // change this! $receiptMessage = "Thank you ".$name." for inquiring at SeattleVietHomes.com's website!\n\n\n"; $receiptMessage .= "Here is the contact information you submitted to us:\n\n"; $receiptMessage .= "--------CONTACT--------\n"; $receiptMessage .= "Name: ".$name."\n"; $receiptMessage .= "E-mail: ".$email."\n"; $receiptMessage .= "Phone: ".$phone."\n"; /*--------------------------------------------------------------*/ mail($email, $subject, $receiptMessage,"From:$toAddress"); /*--------------------------------------------------------------*/ mail($toAddress,$recipientSubject,$mailContent,"From:$email"); }
  20. DeathStar

    IPs

    IP addresses can change. Cookies can't. (Without humans.) if (isset($_COOKIE[visit]) { header('Location: page.php'); } elseif (empty($_COOKIE[visit])) { echo 'This is your first time visiting this page.'; } Try that.
  21. You do not have a loop in there mate. It would give an execution time error. try fixing this: if ($_SESSION['LOGGEDIN'] == !TRUE){ to: if ($_SESSION['LOGGEDIN'] !== TRUE){
  22. URL Encoding for / is: %2F. try this anyway: url_decode($value);
  23. SELECT table1.row1,table1.row2,table1.row3,table2.row1,table2.row2,table2.row3,table3.row1,table3.row2,table1.row3 FROM tab1 AS table1, tab2 AS table2, tab3 AS table3 WHERE table1.id='$id' AND table2.id='$id' AND table3.id='$id' I think that is right.
  24. LIMIT it in the query. And get the ID's. Count then using foreach and make numbers of the pages.
  25. :-\ Fetch the number of times from database and then if it is moee than one, die();
×
×
  • 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.