Search results

  1. Scoochi2

    php mail validator

    Could you send a welcome email to the address? If the address doesn't exist, the mail daemon should bounce it. So you'll have to monitor your own email to see if any addresses are bouncing. Of course, it's not 100% foolproof, and that's why most sites use email validation. It's the easiest...
  2. Scoochi2

    About Javascript locking

    There's no need to test if JS is enabled or not. Just use it. If it isn't enabled, nothing will happen. You can utilise this to pass information to PHP quite simply. <script>document.form.hidden.value = 'JS works!';</script>
  3. Scoochi2

    MYSQL/PHP Code

    wtf? Post your problem here, and you'll get an answer. This has the additional benefit that anyone with a similar problem gets the answer, and also provides a little exercise for everyone else :) If you're unwilling, then I hope someone else takes a different viewpoint and contacts you privately.
  4. Scoochi2

    Apache File Format Handler

    So you want to parse PHP, but from a page with the .html extension? So your example code might be found in a file called mypage.html then? If so, read on :) In the directory you wish to have these PHP enabled files (or at the top www root directory), create a new file called .htaccess Yes, it...
  5. Scoochi2

    MySQL Help, can somebody move this thread if it does not belong here

    Further to what mephis said, the simplest way to get PHP and MySQL working is to use a package. If you're on Windows, use a WAMP. There are two I can personally recommend and still use, and can help you set up if needed. If you are using Windows XP, give Apache2Triad a go. In addition to PHP...
  6. Scoochi2

    FCKEditor help

    Indeed it does. The first thing I did was copy my entire code as is into a blank page.php Next, I got rid of that space in the closing tag that I mentioned. Then I turned on PHP and ran it in my browser. The following is what I saw: That's exactly what I expected to see. Doesn't mean it's right...
  7. Scoochi2

    Password one way encryption.

    The best way is also the way that has already been said, and is also the simplest. :) Just run the following on it's own and look at the results. Study it well, you'll see how it works :) <?php $password1 = 'password'; echo "original password: <b>$password1</b><br>"; $pass1_crypt =...
  8. Scoochi2

    Simple Slideshow script/module needed for CMS

    I could easily create one... A simple idea follows. Look in the directory where the images are and load the selected one up (if none are selected, load a random/first/specific image). Create buttons that either advance to the next image or back to the previous. The first and last images should...
  9. Scoochi2

    FCKEditor help

    In that case, here's a few results from a quick Google search: Understanding FCKe plugings A possible similar plugin
  10. Scoochi2

    FCKEditor help

    I personally have never used and don't know FCKeditor, but if you have the string as a variable in PHP (for example, by submitting a form with the POST method), then the following will do just that: <?php $string = 'my new array: <?php $my_array = array(); ?>[/ php]'; $string =...
  11. Scoochi2

    Code snippet examples

    I too am in agreement. However, due to past experience we may only see a slight decline in the number of questions. On a previous board, there was a sticky named FAQ: Here's how to make a login page. You don't want to know how many topics I saw asking how to make a login page even with that...
  12. Scoochi2

    Help Please

    You will need to use a database to store the form inputs for your later viewing. Or alternatively, save the data in flat text files on your server. In either case, you'll need a programming language such as PHP to do the work. Read this post and keep checking the topic for information on how to...
  13. Scoochi2

    Timeout

    The browser doesn't time out. The server times out... Either the PHP takes too long to finish executing (ie, it can't send out all the emails and so you'll need to do something like I mentioned) or your browser doesn't get a reply from the server, and gives up waiting. In this second case, not a...
  14. Scoochi2

    Timeout

    You can't. There is a limit on the processing time. However, you can refresh. wink wink. If you use JavaScript or metatags to refresh the page after just a few seconds, you could pass on the remaining workload using normal http means (ie, GET POST or COOKIE), or you can store the workload in a...
  15. Scoochi2

    View php files as another filetype?

    Ah, now I know what you mean. You want PHP to parse pages with different extensions! .htaccess is your friend here. AddType application/x-httpd-php .html .aspx .htm That should work for html/htm/aspx pages. If not, it's a X10 issue. Make the .htaccess in the same folder as the files you want to...
  16. Scoochi2

    View php files as another filetype?

    PHP is a programming language. ASP is a framework to run certain programming languages. If you tried to run code designed for aspx, the compiler will find nothing but errors. Most of them due to the fact that the code isn't PHP... Surprisingly enough, the PHP interpreter can only interpret PHP...
  17. Scoochi2

    PHP: Registration Help with AJAX

    No. The check page is essentially doing '...."not available"...'; Either of the two ways will work, although personally I would use a third way (shown at bottom of post), but that isn't the problem here. Shadow, you already have a variable in the PHP that is a certain value when 'Not Available'...
  18. Scoochi2

    Tick marks

    I'm going to be honest here: I have absolutely no idea what you're trying to do. What do you mean by 'tick marks'? Are you trying to plot a graph? If so, what are you using to plot it? A program? A programming language? Which? What data are you trying to plot with? And what have you tried? What...
  19. Scoochi2

    Password one way encryption.

    Try replacing it with the following: <?php $pass1 = "password"; echo $pass1."<br>"; $passcrypt = crypt($pass1); echo $passcrypt."<br>"; ?> <form action="" method="post"> <input name="textfield" type="text" value="<?php echo $_POST['textfield'];?>"> <input type="submit" name="Submit"...
  20. Scoochi2

    file upload error

    What is the simple php uploader that you used? Error code 8 means nothing until we look at what generates the error '8'. Maybe certain file types are not allowed? Or maybe there's a size limit?
Top