Jump to content

reportingsjr

Members
  • Posts

    1,183
  • Joined

  • Last visited

Posts posted by reportingsjr

  1. I don't mean to be a "gravedigger", "necor poster", etc.. but this truly is an awesome program. If you ever have to work with 1 or more people, but cannot meet and program, then use this! Basically, one person starts a session, and turns their computer into a private server that holds the files for that session. Other people connect to his/her computer through the computers ip address. Then, the other people can open a file and it will constantly update, so if you type something almost instantly everyone else will be see the changes. That way, you don't overwrite each others work and create annoying errors.

  2. What if our community went and made our own browser? Then we could try and make it as nice for programmers and users as possible. I say it wouldnt be that hard, the hardest by far would be the parsing engine!

  3. Hi!PHP doesn't parse PHP-tags in strings, what you'll get (as output) with that code is
    <div id="div"><a href="#"><img src="<?php echo"$site"; ?>img/pic1.png" alt="pic1" /></a><a href="#"><img src="<?php echo"$site"; ?>img/pic2.png" alt="pic2" /></a></div>

    Im going to have to pull you out on this one and say no, this is perfectly good code except the quotations around $site. That will still echo it out, but it will create more overhead for php.If you want to but the contents of a file into a variable through the include statement you can do it this way:
    <?phpob_start();include("somefile.php");$var = ob_get_contents();ob_end_flush();?>

    Thats all you have to do.

  4. What the ###### dude? Talk about grave digging.. Did you not notice that this was from over 2 years ago? Please do not do that ever again :).EDIT: Sorry mods, I forgot about the report button. Now I will get yelled at!

  5. Not bad, I have a job right now that is to fix an image gallery. Its a pain, I will tell you that much! Yours is looking pretty nice, I would think about using it but I like to make my own stuff. Plus I have some libraries in mind for an image gallery :). For the image listing you should probably have a thumbnail or something so that way it isnt all stretched, just make the x or y smaller. (you can use an image shrinking function through the width and height attributes, which you already do and use the getimagesize() function if you actually upload the files to your server, not if its in mysql)

  6. Its because including it will echo out the contents of the file, not return it. Try this:

    <?php$a = "555";$b = "5555";ob_start();if($a == $b){include 'equal.php'}else{include 'not_equal.php';}$string = ob_get_contents();ob_end_clean();echo $string;?>

    That should do what you want!

  7. You know what would be really cool? You put a div and say "click on the red dot", then you randomly generate a red dot in the div (the div being 100X100 or something) then the red dot is the submit button, but make it a link or something. You could use javascript and have a function, but so they dont identify and run the function generate the name randomly each time. How about that?So: you have a div with a randomly placed dot that is also a javascript link. Use a function with a randomly generated name to submit the form for you. There you go! Hopefully no more spam bots.

  8. Wow, all you need for this is to use nl2br (new line to break). Haha, no string replaces :). But you should only use it when echoing out, as every time the person edits it will add a new break, so you end up with large spaces.

  9. I made a search crawler, it wasnt too slow. Could load one page, and get all the links from it in about 1-3 seconds each. Of course, it could only run until it hit about 800 pages crawled.And whoa, look who crawled back from the dead! Whats up Dan?

  10. The only ones I have ever seen are done with windows media player (embeded). The one I can think of right now is africam (a live feed from Africa). You would have to look into more from there. I know that for radio you can buy some windows thing to do it and such. (google it!)

×
×
  • Create New...