Article:
  Creating MyTube with Flex and PHP
Subject:   Having problems...
Date:   2008-01-22 17:44:33
From:   bigtiger
Hi... I am tring to create a page for a site for someone, but there is a problem when I'm testing it...


Warning: unlink(movies\.flv) [function.unlink]: No such file or directory in H:\xampp\htdocs\Video\test_page\CFLAR_Video\upload.php on line 7


Warning: unlink(movies\.gif) [function.unlink]: No such file or directory in H:\xampp\htdocs\Video\test_page\CFLAR_Video\upload.php on line 16


Fatal error: Class 'DB' not found in H:\xampp\htdocs\Video\test_page\CFLAR_Video\upload.php on line 33



(This is a windows server, which I will soon upload to a unix server.)


e-mail me: bjwalden898_16@msn.com if you can help... Thanks.

Full Threads Oldest First

Showing messages 1 through 14 of 14.

  • Jack Herrington photo Having problems...
    2008-01-22 20:19:10  Jack Herrington | O'Reilly Author [View]

    The unlink problem is an issue with the permissions on your upload directory.

    The DB.php file is available from PEAR. Use this to install it

    pear install DB

    From the command line.
    • Having problems...
      2008-01-23 13:06:54  bigtiger [View]

      Well... Thats the unix command... I am testing this on windows first... I also made a file named DB.php
      • Jack Herrington photo Having problems...
        2008-01-23 13:41:45  Jack Herrington | O'Reilly Author [View]

        Same thing works on my Windows install of PHP when I have my path set to the bin directory of the PHP install.
        • Having problems...
          2008-01-23 14:21:01  bigtiger [View]

          hm... Well the web server I have is Apache (bundles with MySQL, PHP, Perl, and more.)

          But nothing still works.
          • Jack Herrington photo Having problems...
            2008-01-23 14:27:32  Jack Herrington | O'Reilly Author [View]

            What exactly are you seeing when you say that 'nothing works'.
            • Having problems...
              2008-01-23 14:45:15  bigtiger [View]



              Warning: unlink(movies\CFLAR.flv) [function.unlink]: No such file or directory in H:\xampp\htdocs\Video\test_page\CFLAR_Video\upload.php on line 7

              Warning: unlink(movies\CFLAR.gif) [function.unlink]: No such file or directory in H:\xampp\htdocs\Video\test_page\CFLAR_Video\upload.php on line 16
              DB Error: connect failed


              If you like you can do a test: http://quadirc.gotdns.com/video/test_page/CFLAR_Video/addmovie.html
              • Jack Herrington photo Having problems...
                2008-01-23 14:53:10  Jack Herrington | O'Reilly Author [View]

                So are there files in the movies directory?

                Also, it sound like the DB PEAR module is working, but now there is no database to connect to. Have you set up MySQL and added in the tables and such?
                • Having problems...
                  2008-01-23 15:07:33  bigtiger [View]

                  Yea, I created it through PHPMyAdmin... and created the movies.sql file in the database folder.
                  • Jack Herrington photo Having problems...
                    2008-01-23 15:09:49  Jack Herrington | O'Reilly Author [View]

                    What database folder? Movies.sql is supposed to be used to initialize the database tables.
                    • Having problems...
                      2008-01-23 15:15:23  bigtiger [View]

                      the database folder is: movies. The movies.sql file is in side of that folder in the MySQL server.
                      • Jack Herrington photo Having problems...
                        2008-01-23 15:17:36  Jack Herrington | O'Reilly Author [View]

                        Yeah, that's not going to work. Could you email me directly at jherr at pobox dot com and I'll see what I can do to help you out.
                        • Having problems...
                          2008-04-19 04:58:00  Guitaristka [View]

                          Created on instructions all file:
                          http://www.onlamp.com/pub/a/php/2007/05/24/creating-mytube-with-flex-and-php.html?page=1
                          The Mistake:
                          Warning: unlink(movies\spider.flv) [function.unlink]: No such file or directory in /home/public_html/movies/upload.php on line 7

                          Warning: unlink(movies\spider.gif) [function.unlink]: No such file or directory in /home/public_html/movies/upload.php on line 16

                          Fatal error: Undefined class name 'db' in /home/public_html/movies/upload.php on line 33

                          1. Where it is necessary to place file ffmpeg.c
                          2. We Ask to bring listings of the file DB.php - that there?
                          • Having problems...
                            2008-06-12 20:24:06  swotec [View]

                            unlink($out); => if(file_exists($out)){unlink($out);}


                            $dsn = 'mysql://user:password@host/datebase';

                            Make sure both pear and pear-DB installed.
                        • Having problems...
                          2008-02-19 19:13:16  bhavini.p [View]

                          Hi, I am having the exact same problem. I was wondering if you guys resolved this problem? I am a student, bit of a mqsql/php newbie. I am using XAMPP to test the app locally.

                          I would greatly appreciate if you could help me! :(
                          Thanks