Search results

  1. diabolo

    what permissions do I need to use php to write to file?

    right now it is running off xampp on my windows xp so if I upload it to x10 server's which has linux, it should work?
  2. diabolo

    what permissions do I need to use php to write to file?

    Warning: fopen(*****) [function.fopen]: failed to open stream: Permission denied in C:\xampp\htdocs\mcs\sources\functions\gallery.php on line 48 can't open file function createGalleryDirectory($name) { if(!is_dir($name)) { $path = ROOT.'gallery/'.$name; mkdir($path, 0777); } }
  3. diabolo

    How do you tell how much a resources a script uses?

    would I be able to tell if I ran the script from my computer using XAMMP?
  4. diabolo

    readdir()

    thanks, i wouldn't have picked that up by myself
  5. diabolo

    readdir()

    How come this code does not work? $path = ROOT.'gallery/events'; $dir_handle = @opendir($path) or die("Unable to open $path"); $count = "0"; while ($file = readdir($dir_handle)) { if ($file!="." && $file!=".." && is_dir($file)) { $galleryDirectory[$count] = $file...
  6. diabolo

    Free Hosting Uptime

    well Corey, I believe in rounding! so that means to me, x10Hosting has 100% uptime. =]
  7. diabolo

    How do you tell how much a resources a script uses?

    I have a script that creates files for a gallery and it write to these files every time the script runs. How do I tell how much resources the script is using?
  8. diabolo

    MYSQL New Tricker

    o flash. well, sorry can't help you there. never really caught onto Flash and PHP interactions.
  9. diabolo

    How to update text while in the midst of running a PHP function?

    If anyone has installed IPB or vB you would have seen something like this. How it tells you its either creating a DB or creating a page, or updating DB. So my question is how would I be able to do that. Would I need to use JS or AJAX?
  10. diabolo

    MYSQL New Tricker

    well depending how your MySQL structure is set up, it can vary, and I cannot give you a definite answer until I see it. But here is a sample. $sql = "SELECT * FROM news ORDER id ASC|DESC LIMIT 0, 5" the main important things here is, ORDER `id` is how you are gonna track your news ASC|DESC =...
  11. diabolo

    How to substract date? (PHP)

    have fun =] http://www.sajithmr.com/php-time-ago-calculation/ remember I like +REP
  12. diabolo

    Feedback on asoiT.com design!

    has potential, but I see a lot of clashing colors, and many rounded boxes that serve no purpose so it gives a lot of clutter. I will go more indepth later.
  13. diabolo

    discussion: php script design

    well as for all the scripts I have written so far, I have not gone back to optimize any of them. because when I write the script I just focus on getting it done, usable, and semi-easy to use so for me, I'll just write a script, it it is short, its short. But if I need more lines, i'll just have...
  14. diabolo

    Stack OverFlow

    http://stackoverflow.com/ I just joined recently, and I thought i spread the word around. If you ever have a problem with a script for something to do with programming ask it here. They have some really talented users that reply fast!
  15. diabolo

    PHP Max Function Help

    actually I already fixed it. $maxYear = max(array_keys($caption)); credit
  16. diabolo

    PHP Max Function Help

    <?php if (!defined('ROOT')) die; function createGalleryDirectories() { $path = ROOT.'gallery/events'; $dir_handle = @opendir($path) or die("Unable to open $path"); $count = "0"; while ($file = readdir($dir_handle)) { if ($file!="." && $file!="..") {...
  17. diabolo

    PHP Obfuscation

    I might be going off topic and sorry if I hi-jack your thread. When I was reading this, it made me remember of something. Well actually I remember reading somewhere that if you are on a shared server and it has SSH. That other users can read your files? can anyone clarify if its true or not?
  18. diabolo

    Javascript Conflict

    o yes that is what I had, just mistyped it now, I have a new question. how the ** do you know my name?
  19. diabolo

    Javascript Conflict

    I am running both Lightbox 2.04 and crossSlide on my website. now before i added the lightbox javascript, crossSlide work smoothly. so I know it is because the two scripts had a conflict. so I went to the body tag and gave it an onload="initcrossSlide();initLighbox()" that didn't work so now I...
  20. diabolo

    CSS Overlap Help

    thank you! I didn't know why it didn't work for me before, I could have left something out. +REP and i dropped in an extra 347 credits for the fast reply and apprently I cannot give any REP to you. I'll add in 135 credits to make it up. =] Edit: I need help. the navigation bar sub menu links...
Top