Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. It's spam unless they have opted in to receive your advertisements.
  2. In FF3 the box is below the ad, but the text is above.
  3. People adamantly stating that notepad is good for anything because they think they are cool since they are making the work more difficult for themselves.
  4. The connection should have a separate try block.
  5. You could also use the modified preorder tree traversal algorithm. Here are some resources which should help you: http://www.sitepoint.com/article/hierarchical-data-database http://dev.mysql.com/tech-resources/articles/hierarchical-data.html
  6. Actually, I made an error in my above post, it is supposed to be Zend_Db, but I cannot edit it. I disagree. Have you ever looked at Zend_Database and it's children? What do you suggest then? Where can I find a good example of a mysql class? Well, Zend_Db_Adapter_Pdo_MySql, but that is a part of Zend Framework and I don't know if you would like something like that.
  7. That's because you don't tell it to. PHP does not care what headers you send, it just sends them. PHP is not the thing redirecting, nor is it the web server. It's the browser. The Location header just tells the browser to go somewhere, but the browser can choose to not do so.
  8. I fail to comprehend why people want to watch other people type code. Why not just read a tutorial or book?
  9. I disagree. Have you ever looked at Zend_Database and it's children?
  10. Why didn't you just say that instead of saying "it didn't help me" four times within two sentences? You can still use the function though, make a script and run it from the command line. PHP is not just for websites. There is more than one way to do things.
  11. See: http://gtk.php.net/manual/en/gtk.gtkarrow.constructor.php You need to pass two arguments. I.e. new GtkArrow($something, $something_else).
  12. Could you post some sample data?
  13. This was the first result on a Google search for "free php encoder": http://www.byterun.com/free-php-encoder.php
  14. Then you did it wrong. But seeing as you're too lazy to read the manual, to state how what I wrote didn't help you, provide any code, here is a function that will copy a folder. I didn't test it. <?php function move_folder($folder, $new_location) { $content = scandir($folder); if(!is_dir($new_location)) { mkdir($new_location); } foreach($content as $item) { $old = $folder . DIRECTORY_SEPARATOR . $item; if($item == '.' || $item == '..' || !is_readable($old)) continue; if(is_dir($old)) { move_folder($old, $new_location . DIRECTORY_SEPARATOR . $item); } else { copy($old, $new_location . DIRECTORY_SEPARATOR . $item); } } } ?>
  15. class database{ function connect($db){ mysql_connect($db['host'], $db['username'], $db['password']); } } Now pass $db to that method.
  16. You need to access it like $this->get_what. A good idea would be to read the OOP chapter in the manual to get a basic understanding of OOP in PHP.
  17. When you return the rest of the code block will be discarded, so you need to move the system() call or cin.get() up before return. No, I mean using Start > Run > cmd
  18. Just run the program from the console. It's supposed to close immediately since it's supposed to return to the console.
  19. Something like these: http://www.phpfreaks.com/forums/index.php/topic,171689.0.html http://www.phpfreaks.com/forums/index.php/topic,176049.0.html
  20. About quirks mode: http://en.wikipedia.org/wiki/Quirks_mode What do you mean with "the script throws errors"? What script?
  21. The problem lies in that you are treating numbers and strings. You shouldn't. Numbers are numbers - strings are strings.
  22. How about gmdate()?
  23. formInfo::display_form_text() does not return a value so assigning it's return value to a variable is of no use.
  24. I'd put a reference in a database to the files and search the database. There you can add a lot more searchable content such as a description for instance.
×
×
  • 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.