Search results

  1. B

    PHP Help | fgets Get Only Numbers | fgets Recognize number between x and x?

    Right now, I have my php script get a message using fgets. How can I make it so that it will only let you type numbers AND recognize if the number is between x and x?
  2. B

    PHP/HTML Help. Option Menu?

    I am using the post method right now with a drop down menu in HTML. I want to know haw I can change the drop down menu to a menu that has all options on the screen, but you can select multiple options. Any way to do this?
  3. B

    PHP Similar Text Function, Fix It?

    I made a new function in php, but when I use it I get errors. Here is the function: function simtxt($varone, $vartwo, $prec = 85) { //Checks for wordmistakes (e.g. windoqs) $varone = strtolower($varone); //Not case sensitive $vartwo =...
  4. B

    PHP | Command Prompt | Erase stuff that was echo'd?

    In my php script, I have a thing where the have to enter there password. (It is on command prompt) How can I make it so that it makes the password disapear after they hit enter?
  5. B

    file_get_contents | Echo that in PHP?

    So I have a script. I have tried doing this: $username = "echo file_get_contents('username.txt')"; fwrite(STDOUT, "Blah Blah Blah, $username"); How can I get $username to echo the contents in the .txt file instead of echoing echo file_get_contents('username.txt')"; I'd appreciate the help...
  6. B

    Make PHP open the web browser then Navigate to website?

    How can I make my script open the default we browser and go directly to a certain URL?
  7. B

    I can use some PHP help again.?

    So I have a script, in php, that includes a variable. E.G. $ID = "$iIDs = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 16, 17, 18, 22, 24); $DaID = $ids[rand(0, count($ids)-1)]; "; Will this work? (I was wondering because of the semi colons inside the variable and because I keep getting an...
  8. B

    Need Help with a PHP Script.?

    I need help with a small part of my script. (PHP) I need something that will make a random number. But the thing is, I need it to use these numbers: 1 2 3 4 5 6 7 8 9 10 11 12 13 16 17 18 22 24 And I need it to use $ID to represent the number. Kinda like : $ID = "Random Number...
Back
Top