Search results

  1. Scoochi2

    PHP File Operations Help

    lol, you said you wanted it as an image! :) Anyhoo, like I said on lines 5+6 when you set the two variables, they need to be strings. $file = "myfile.txt";
  2. Scoochi2

    PHP File Operations Help

    Change lines 5+6 of the first page to this: $file = 'song.txt'; $next = 'song_temp.txt'; EDIT: I can't see anything else wrong. But don't quote me on that. I'm on Vista and don't have my syntax highlighting that I'm used to on Linux! rofl. Well, other than the fact that you're not outputting it...
  3. Scoochi2

    MySQL not inserting into database?

    Try this. I make the assumption that ID is not set to auto increment, and also that footer.php connects to your database. <?php if (isset($_POST['submit'])) { $pass=$_POST['pass']; $user=$_POST['user']; $email=$_POST['email']; } else { register(); require_once...
  4. Scoochi2

    PHP Mysql issue

    Or if it's dynamic and you need the contents of the database at the current time, write a script to access the database on the local server, then simply pull the data from there. For example, have the online page output XML, then render the XML on your computer's PHP to get the values you desire.
  5. Scoochi2

    Manually Stopping PHP Script

    PHP has a timeout. On most servers, execution will stop after 30 seconds whether you want it to or not.
  6. Scoochi2

    transferring dynamic data

    did you make sure that the address you visit has ?code=12345whatever on the end? (where 12345whatever is the secret password from the code on the last page) If so, then yes you should see the results. If there is no data, that might be because nobody has clicked on the link yet ;)
  7. Scoochi2

    Search

    Save a list of the businesses, their latitudes and longitudes as an array on your server. Have some way of converting a zipcode into latitude and longitude. Search the lat/long list of businesses for anything in a radius of 50 miles of the location of the user. This should be fairly arbitrary...
  8. Scoochi2

    transferring dynamic data

    Just found another error in that last page. On line 15, add a semicolon onto the end so it becomes this: echo "<table><tr><th>Image<th>Times Selected"; EDIT: Ha! I didn't even see your post before I posted this. Anyway, for that last file I have edited my first post. Copy paste the edited...
  9. Scoochi2

    transferring dynamic data

    Wh00ps! Change it to this: require_once("choices.inc") or die("file not found! Any data saved?"); EDIT: I suppose just in case you haven't figured it out... if you want to reset everything to zero, just delete the file choices.inc You can also edit that page in the file manager to change the...
  10. Scoochi2

    transferring dynamic data

    It could be done using JS, but there would be no way of getting the actual data to you. You would need either server side scripting or an outside service to email the results to you. If there is only one choice the user has when selecting an image (ie, they click an image, and you get told which...
  11. Scoochi2

    php Progress bar

    BUT if the PHP script is running, nobody will be able to see the progress bar anyway. You can show flash using the following: echo "<object width='400' height='100'> <param name='movie' value='flashbar.swf'> <embed src='flashbar.swf' width='40' height='100'> </embed></object>"; But understand...
  12. Scoochi2

    tutorial 4 PHP AND SQL

    Have a look through PHP.net. It will help you get started, and will be an invaluable use should you decide to stick with PHP. I find the best way to learn how to do it is to do it. Start by making a few very simple pages. I trust you know HTML already, yes? :) Create a page called 'test.php'...
  13. Scoochi2

    Posting to PHP Modules

    I'm not sure what you're asking. If the module is installed, it should work by default... However, if you're trying to pass parameters to your PHP script, you can use the GET commands. In which case, you could do the following: if (isset($_GET['action'])) $action = $_GET['action']; if...
  14. Scoochi2

    [?] how to send mail in php?

    <?php $to = 'nobody@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> For more info, see here.
  15. Scoochi2

    Customized Scroll Bars

    Not any way of it working for all browsers I don't think. Like you said, it can be done for Internet Exploder via CSS. http://rainbow.arch.scriptmania.com/tools/scrollbar/colour_scrollbar_generator.html
  16. Scoochi2

    Email Check JavaScript

    It's only a very simple problem. In JavaScript, there is no such phrase as 'array()' unless it is a variable. If you are creating an array, the a must be capitalised. var c = new Array(); Edit: Oh, just noticed that you have an error in your logic as well. You're also testing whether the...
  17. Scoochi2

    What is this?

    it certainly looks like something you weren't supposed to see ;) Where did you find all that?
  18. Scoochi2

    PHP setcookie problem...

    Yay! I've finally reached a solution. or at least a workaround... I've moved all my set cookies right to the top of my header file, thus they are now set before it connects to MySQL. I guess MySQL was causing the cookies not to set, without giving an error?
  19. Scoochi2

    Download google chrome

    Damn! :( Guess I'll stick with trusty FireFox.
  20. Scoochi2

    PHP- file() not working in cron?

    I think that's solved it... it ran the first time and got me disabled for high usage. (???) The second time it ran, it did it perfectly! Brilliant. Thanks to all :)
Top