Php gd library

can flash supports the multimedia file such as jpg, mp3 which
generates from php?
for example
http://www.myServer/php/image/myPic.php
(the .php is the image itself, not using <img>)
i've tried using MovieClipLoader() to load it but it shows
nothing in the swf
or i used wrong class to do so?

Thanks Murray forgot that option! GD was there - back to the
drawing board
Ian
[email protected]
http://www.edwards-micros.co.uk
"Murray *ACE*" <[email protected]> wrote
in message
news:ed4ko5$ct2$[email protected]..
> Do phpinfo() and see if it's listed there.
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
>
http://www.dreamweavermx-templates.com
- Template Triage!
>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
> ==================
>
>
> "Ian Edwards"
<[email protected]> wrote in message
> news:ed4km8$crj$[email protected]..
>> Hi
>>
>> I'm sure the highly esteemed David will come in with
an answer here! I'm
>> trying to run a script that requires the gd library
which is apparently
>> installed by default with PHP.
>>
>> I'm running PHP 5 (followed the destructions in
davids Book) how can I
>> tell if I have it and if I haven't how do I install
it?
>>
>> cheers
>>
>> Ian
>>
>> --
>> [email protected]
>>
http://www.edwards-micros.co.uk
>>
>
>

Similar Messages

  • PHP - GD Library problem - imagettftext() notworking

    Hi everyone, I'm not sure which is the best forum for this question...
    I'm using the bundled PHP on Snow Leopard but have run into a problem with a function from the GD library.
    The function imagettftext() is not recognised. There are lots of hits on google when looking for this problem and the solutions are very varied so I wondered if anyone knows what the exact problem is re the PHP bundle on Snow Leopard?

    The bundled PHP was not compiled with FreeType, which imagettftext() requires.

  • DW CS5 - PHP in HTML file - no display in DW live view

    Have DW CS5, Local IIS 7 (Win 7 64x) testing server (Server Model: PHP MySQL) set up and working. External browsers render .html files with PHP fine (URL=http://localhost/testphp.html), DW Live View will not parse/display the PHP with ".html" extension. No ".htaccess" file, DW PHP Tag Library has all PHP "Used In:" boxes checked. Example:
    Example 1
    File name: testphp.php
    <html>
    <body>
    <h1>Hello There</h1>
    <script language="php">
    echo "Hello World";
    </script>
    </body>
    </html>
    DW Live View and external browser URL: http://localhost/testphp.php:
    Hello There
    Hello World
    Example 2
    File name: testphp.html (same content as above, just filename extension changed)
    <html>
    <body>
    <h1>Hello There</h1>
    <script language="php">
    echo "Hello World";
    </script>
    </body>
    </html>
    DW Live View:
    Hello There
    external browser URL: http://localhost/testphp.html:
    Hello There
    Hello World
    How to configure DW CS5 to display PHP in DW Live View with file extension= ".html"?
    Thanks in advance, have spent 2 days trying to accomplish!
    Steve

    File name: testphp.php 
    <html>
    <body>
    <h1>Hello There</h1>
    <script language="php">
    echo "Hello World";
    </script>
    </body>
    </html>
    This is not PHP code
    The red code part should read as to be classified as PHP script
    <?php echo "Hello World"; ?>
    File name: testphp.html (same content as above, just filename extension changed) 
    <html>
    <body>
    <h1>Hello There</h1>
    <script language="php">
    echo "Hello World";
    </script>
    </body>
    </html>
    Apart from the same mistake as above, this file will not be recognised as containing PHP without the PHP extension. You can setup the server to accept HTML and to interpret same as PHP, but I would not recommend this.
    DW Live View:
    Hello There
    external browser URL: http://localhost/testphp.html:
    Hello There
    This is amazing! With the code above? If you hadn't told me I would not have believed it. I tried it on my humble setup and you are correct. It works using the PHP file but not the HTML file. It doesn't matter, it is still not correct.
    How to configure DW CS5 to display PHP in DW Live View with file extension= ".html"?
    It is not up to DW to determine, it is the PHP server that determines whether PHP in an HTML file will be shown. Have a look here http://php.about.com/od/advancedphp/p/html_php.htm .Once again, I do not recommend this
    I hope this helps.
    Ben

  • My  PHP  form no longer works?

    Hi
    http://www.collegestudentvoice.com/form/form.php
    1. Programmer says there is no coding errors.  Nothing has changed.
    2. Host says there must be coding errors.
    3. There may version incompetibilities with Perl script between the form and the host version.
    these are 3 files:
    Sendform:
    <?php
    // Pear library includes
    // You should have the pear lib installed
    include_once('Mail.php');
    include_once('Mail/mime.php');
    //Settings
    $max_allowed_file_size = 10000000; // size in KB
    $allowed_extensions = array("jpg", "jpeg", "gif", "bmp");
    $upload_folder = 'files/'; //<-- this folder must be writeable by the script
    $your_email = '[email protected]';//<<--  update this to your email address
    $errors ='';
    if(isset($_POST['submit']))
        //Get the uploaded file information
        $name_of_uploaded_file =  basename($_FILES['uploaded_file']['name']);
        //get the file extension of the file
        $type_of_uploaded_file = substr($name_of_uploaded_file,
                                strrpos($name_of_uploaded_file, '.') + 1);
        $size_of_uploaded_file = $_FILES["uploaded_file"]["size"]/1024;
        ///------------Do Validations-------------
        if(empty($_POST['name'])||empty($_POST['email']))
            $errors .= "\n Name and Email are required fields. ";   
        if(IsInjected($visitor_email))
            $errors .= "\n Bad email value!";
        if($size_of_uploaded_file > $max_allowed_file_size )
            $errors .= "\n Size of file should be less than $max_allowed_file_size";
        //------ Validate the file extension -----
        $allowed_ext = false;
        for($i=0; $i<sizeof($allowed_extensions); $i++)
            if(strcasecmp($allowed_extensions[$i],$type_of_uploaded_file) == 0)
                $allowed_ext = true;       
        if(!$allowed_ext)
            $errors .= "\n The uploaded file is not supported file type. ".
            " Only the following file types are supported: ".implode(',',$allowed_extensions);
        //send the email
        if(empty($errors))
            //copy the temp. uploaded file to uploads folder
            $path_of_uploaded_file = $upload_folder . $name_of_uploaded_file;
            $tmp_path = $_FILES["uploaded_file"]["tmp_name"];
            if(is_uploaded_file($tmp_path))
                if(!copy($tmp_path,$path_of_uploaded_file))
                    $errors .= '\n error while copying the uploaded file';
            //send the email
            $name = $_POST['name'];
            $visitor_email = $_POST['email'];
            $user_message = $_POST['message'];
            $to = $your_email;
            $subject="New form submission";
            $from = $your_email;
            $text = "A user  $name has sent you this message:\n $user_message";
            $message = new Mail_mime();
            $message->setTXTBody($text);
            $message->addAttachment($path_of_uploaded_file);
            $body = $message->get();
            $extraheaders = array("From"=>$from, "Subject"=>$subject,"Reply-To"=>$visitor_email);
            $headers = $message->headers($extraheaders);
            $mail = Mail::factory("mail");
            $mail->send($to, $headers, $body);
            //redirect to 'thank-you page
            header('Location: thank-you.html');
    ///////////////////////////Functions/////////////////
    // Function to validate against any email injection attempts
    function IsInjected($str)
      $injections = array('(\n+)',
                  '(\r+)',
                  '(\t+)',
                  '(%0A+)',
                  '(%0D+)',
                  '(%08+)',
                  '(%09+)'
      $inject = join('|', $injections);
      $inject = "/$inject/i";
      if(preg_match($inject,$str))
        return true;
      else
        return false;
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
        <title>File upload form</title>
    <!-- define some style elements-->
    <style>
    label,a, body
        font-family : Arial, Helvetica, sans-serif;
        font-size : 12px;
    </style>   
    <!-- a helper script for vaidating the form-->
    <script language="JavaScript" src="scripts/gen_validatorv31.js" type="text/javascript"></script>   
    </head>
    <body>
    <?php
    if(!empty($errors))
        echo nl2br($errors);
    ?>
    <form method="POST" name="email_form_with_php"
    action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" enctype="multipart/form-data">
    <p>
    <label for='name'>Name: </label><br>
    <input type="text" name="name" >
    </p>
    <p>
    <label for='email'>Email: </label><br>
    <input type="text" name="email" >
    </p>
    <p>
    <label for='message'>Message:</label> <br>
    <textarea name="message"></textarea>
    </p>
    <p>
    <label for='uploaded_file'>Select A File To Upload:</label> <br>
    <input type="file" name="uploaded_file">
    </p>
    <input type="submit" value="Submit" name='submit'>
    </form>
    <script language="JavaScript">
    // Code for validating the form
    // Visit http://www.javascript-coder.com/html-form/javascript-form-validation.phtml
    // for details
    var frmvalidator  = new Validator("email_form_with_php");
    frmvalidator.addValidation("name","req","Please provide your name");
    frmvalidator.addValidation("email","req","Please provide your email");
    frmvalidator.addValidation("email","email","Please enter a valid email address");
    </script>
    <noscript>
    <small><a href='http://www.html-form-guide.com/email-form/php-email-form-attachment.html'
    >How to attach file to email in PHP</a> article page.</small>
    </noscript>
    </body>
    </html>
    FORM:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>College Student</title>
    <link rel="stylesheet" type="text/css" href="css/view.css" media="all">
    <script type="text/javascript" src="js/view.js"></script>
    <script src="js/forms.js" type="text/javascript"></script>
    </head>
    <body id="main_body" >
        <div id="form_container">
    <form action="formaction.php" method="post" enctype="multipart/form-data" name="contactus" id="contactus"  style="border:none;" onsubmit="return validateForm()">
                        <div class="form_description">
                <h2><img src="CSVlogo.GIF" width="269" height="97" alt="Logo" /></h2>
                <p>Please type in your first and last names along with our school email address (i.e., [email protected]) when submitting your articles or photographs.</p>
    <p>Select the category that best describes the subject of  your article or photograph. (i.e., Business, Politics, Sports, Humor, etc.)</p>
    <p>When writing about a sporting event please include the name of the sport in the ‘Subject’ line of your email along with the date of the event and the names of the teams. (i.e., Basketball 01-15-11 L.A. Lakers vs.Detroit Pistons)</p>
            </div>       
            <div>
                    <?php
    if (isset($_GET['suc'])) {
    echo "<div style='color:#F00; padding:15px; display:block; margin:10px 0 10px 0;'> ";
    echo "Thank you for your submission!";
    echo "</div>";
    } else {
    ?>
    </div>
                <ul >
                        <li id="li_5" >
            <label class="description" for="Business">Business </label>
            <div>
            <select class="element select medium" name="Business">
                <option value="" selected="selected"></option>
    <option value="Classified" >Classified</option>
    <option value="careertips" >Career Tip</option>
            </select>
            </div>
            </li>        <li id="li_6" >
            <label class="description" for="ProfessionalSports">Professional Sports </label>
            <div>
            <select class="element select medium" name="ProfessionalSports">
                <option value="" selected="selected"></option>
    <option value="NBA" >NBA</option>
    <option value="NFL" >NFL</option>
    <option value="MLB" >MLB</option>
    <option value="otherprosports" >Other</option>
            </select>
            </div>
            </li>        <li id="li_7" >
            <label class="description" for="Humor101">Humor 101</label>
            <div>
            <select class="element select medium" name="Humor101">
                <option value="" selected="selected"></option>
    <option value="Cartoons" >Cartoons</option>
    <option value="Jokes" >Jokes</option>
    <option value="Stories" >Stories</option>
    <option value="Photographs" >Photographs</option>
            </select>
            </div>
            </li>        <li id="li_8" >
            <label class="description" for="CollegeSports">College Sports</label>
            <div>
            <select class="element select medium" name="CollegeSports">
                <option value="" selected="selected"></option>
    <option value="basketballcollege" >Basketball</option>
    <option value="baseballcollege" >Baseball</option>
    <option value="Footballcollege" >Football</option>
    <option value="Softball" >Softball</option>
    <option value="othercollege" >Other</option>
            </select>
            </div>
            </li>        <li id="li_9" >
            <label class="description" for="Politics">Politics</label>
            <div>
            <select class="element select medium" name="Politics">
                <option value="" selected="selected"></option>
    <option value="statelocal" >State/Local</option>
    <option value="National" >National</option>
    <option value="World" >World</option>
            </select>
            </div>
            </li>        <li id="li_1" >
            <label class="description" for="element_1">Name </label>
            <span>
                <input id="First" name="First" class="element text" maxlength="255" size="40" value=""/>
                <label>First</label>
            </span>
            <span>
                <input id="Last" name= "Last" class="element text" maxlength="255" size="40" value=""/>
                <label>Last</label>
            </span>
            </li>       
            <li id="li_sub" >
            <label class="description" for="Subject">Subject </label>
            <div>
                <input id="Subject" name="Subject" class="element text medium required" type="text" maxlength="255" value=""/>
            </div>
            </li>   
            <li id="li_2" >
            <label class="description" for="Email">Email </label>
            <div>
                <input id="Email" name="Email" class="element text medium required email" type="text" maxlength="255" value=""/>
            </div>
            </li>        <li id="li_3" >
            <label class="description" for="EmailC">Confirm Email </label>
            <div>
                <input id="EmailC" name="EmailC" class="element text medium" type="text" maxlength="255" value=""/>
            </div>
            </li>        <li id="li_4" >
            <label class="description" for="Suggestions">Suggestions </label>
            <div>
                <textarea id="Suggestions" name="Suggestions" class="element textarea medium"></textarea>
            </div>
            </li>
          <li id="li_5" >
            <label class="description" for="Upload">Upload File </label>
    <input type="file" name="uploaded_file">
            <div>
              </div>
            </li>
            <li id="li_6" >
            <label class="description" for="Upload">Are you human?</label>
            <?php
            require_once('recaptchalib.php');
              $publickey = "6LfwwsISAAAAAA7UTKJcDATLiK-e55gPFW1Opfrq"; // you got this from the signup page
              echo recaptcha_get_html($publickey);
            ?>
            <div>
              </div>
            </li>
                        <li class="buttons">
                    <input type="submit" name="Submit" value="Submit" class="button" />
    </li>
                </ul>
    </form>
    <!--        <div id="footer">
            </div>
    -->    </div>
    </body>
    </html>
    FORMACTION
    <?php
      require_once('recaptchalib.php');
    $privatekey = "6LfwwsISAAAAAAPShkJ6nV3qkgLDHCe2uXj9RTWw";
      $resp = recaptcha_check_answer ($privatekey,
                                    $_SERVER["REMOTE_ADDR"],
                                    $_POST["recaptcha_challenge_field"],
                                    $_POST["recaptcha_response_field"]);
      if (!$resp->is_valid) {
        die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
      else {
    include_once('Mail.php');
    include_once('Mail/mime.php');
    $errors ='';
    $max_allowed_file_size = 10000000; // size in KB
    $allowed_extensions = array("jpg", "jpeg", "gif", "bmp");
    $upload_folder = 'files/';
        $name_of_uploaded_file =  basename($_FILES['uploaded_file']['name']);
        $type_of_uploaded_file = substr($name_of_uploaded_file,
                                strrpos($name_of_uploaded_file, '.') + 1);
        $size_of_uploaded_file = $_FILES["uploaded_file"]["size"]/1024;
        if($size_of_uploaded_file > $max_allowed_file_size )
            $errors .= "\n Size of file should be less than $max_allowed_file_size";
        $allowed_ext = false;
        for($i=0; $i<sizeof($allowed_extensions); $i++)
            if(strcasecmp($allowed_extensions[$i],$type_of_uploaded_file) == 0)
                $allowed_ext = true;       
        if(!$allowed_ext)
            $errors .= "\n The uploaded file is not supported file type. ".
            " Only the following file types are supported: ".implode(',',$allowed_extensions);
        if(empty($errors))
            $path_of_uploaded_file = $upload_folder . $name_of_uploaded_file;
            $tmp_path = $_FILES["uploaded_file"]["tmp_name"];
            if(is_uploaded_file($tmp_path))
                if(!copy($tmp_path,$path_of_uploaded_file))
                    $errors .= '\n error while copying the uploaded file';
            $Business = Trim(stripslashes($_POST['Business']));
            $ProfessionalSports = Trim(stripslashes($_POST['ProfessionalSports']));
            $Humor101 = Trim(stripslashes($_POST['Humor101']));
            $CollegeSports = Trim(stripslashes($_POST['CollegeSports']));
            $Politics = Trim(stripslashes($_POST['Politics']));
            $EmailToBusiness = $Business . "@collegestudentvoice.net";
            $EmailToProfessionalSports = $ProfessionalSports . "@collegestudentvoice.net";
            $EmailToHumor101 =  $Humor101 ."@collegestudentvoice.net";
            $EmailToCollegeSports = $CollegeSports . "@collegestudentvoice.net";
            $EmailToPolitics = $Politics . "@collegestudentvoice.net";
            $EmailTo = "[email protected]";
            $EMailSubject = Trim(stripslashes($_POST['Subject']));
            $First = Trim(stripslashes($_POST['First']));
            $Last = Trim(stripslashes($_POST['Last']));
            $Email = Trim(stripslashes($_POST['Email']));
            $Suggestions = Trim(stripslashes($_POST['Suggestions']));
            $Body = "The following form has been filled";
            $Body .= "\n";
            $Body .= "---------------------------------------------------------------------------------";
            $Body .= "\n";
            $Body .= "\n";
            $Body .= "First Name: ";
            $Body .= $First;
            $Body .= "\n";
            $Body .= "Last Name: ";
            $Body .= $Last;
            $Body .= "\n";
            $Body .= "Email: ";
            $Body .= $Email;
            $Body .= "\n";
            $Body .= "Business: ";
            $Body .= $Business;
            $Body .= "\n";
            $Body .= "Professional Sports: ";
            $Body .= $ProfessionalSports;
            $Body .= "\n";
            $Body .= "Humor 101: ";
            $Body .= $Humor101;
            $Body .= "\n";
            $Body .= "College Sports: ";
            $Body .= $CollegeSports;
            $Body .= "\n";
            $Body .= "Politics: ";
            $Body .= $Politics;
            $Body .= "\n";
            $Body .= "Suggestions: ";
            $Body .= $Suggestions;
            $Body .= "\n";
            $Body .= "\n";
            $Body .= "---------------------------------------------------------------------------------\n";
            $Body .= "Emails sent to: " . strtolower($EmailToBusiness) . " / " .strtolower($EmailToProfessionalSports). " / " .strtolower($EmailToHumor101). " / " .strtolower($EmailToCollegeSports). " / ".strtolower($EmailToPolitics). "";
            $to = "[email protected]";
            $subject= $EMailSubject;
            $from = "[email protected]";
            $text = "\n $Body";
            $message = new Mail_mime();
            $message->setTXTBody($text);
            $message->addAttachment($path_of_uploaded_file);
            $body = $message->get();
            $extraheaders = array("From"=>$from, "Subject"=>$subject,"Reply-To"=>$Email);
            $headers = $message->headers($extraheaders);
            $mail = Mail::factory("mail");
            $mail->send($to, $headers, $body);
            if ($Business != "")
                        $mail->send(strtolower($EmailToBusiness), $headers, $body);
            if ($ProfessionalSports != "")
                        $mail->send(strtolower($EmailToProfessionalSports), $headers, $body);
            if ($Humor101 != "")
                        $mail->send(strtolower($EmailToHumor101), $headers, $body);
            if ($CollegeSports != "")
                        $mail->send(strtolower($EmailToCollegeSports), $headers, $body);
            if ($Politics != "")
                        $mail->send(strtolower($EmailToPolitics), $headers, $body);
            print "<meta http-equiv=\"refresh\" content=\"0;URL=form.php?suc=y\">";
    ?>

    bregent,
    you have explained everything was is happening.
    Mine firewall setttings block the scrip so when I fill the form and submit it, I do not get any errors, but that form information does not go anywhere.
    All firewall setting should be OFF  when a form is submitted?
    dreamweavewr101.1

  • Library items in DWT templates

    I have setup a dynamic menu and created a library item from
    it. When I insert it into a new document (or update the library
    item) the urls within it keep getting the prefix /library/ added
    and so don't work:
    original menu
    ===========
    <div id="lhsidemenu">
    <ul>
    <?php
    require_once('Connections/ecommercetemplate_523.php'); ?>
    <?php
    mysql_select_db($database_ecommercetemplate_523,
    $ecommercetemplate_523);
    $query_categorymenu = "SELECT sectionID, sectionName FROM
    sections ORDER BY sectionName ASC";
    $categorymenu = mysql_query($query_categorymenu,
    $ecommercetemplate_523) or die(mysql_error());
    $row_categorymenu = mysql_fetch_assoc($categorymenu);
    $totalRows_categorymenu = mysql_num_rows($categorymenu);
    ?>
    <?php do { ?>
    <li><a href="products.php?cat=<?php echo
    $row_categorymenu['sectionID']; ?>" ><?php echo
    ucwords($row_categorymenu['sectionName']);
    ?></a></li>
    <?php } while ($row_categorymenu =
    mysql_fetch_assoc($categorymenu)); ?>
    <?php
    mysql_free_result($categorymenu);
    ?>
    </ul></div>
    Menu after becomin a library item
    ==========================
    <!-- #BeginLibraryItem "/library/categorymenu.lbi" -->
    <div id="lhsidemenu">
    <ul>
    <?php require_once('
    library/Connections/ecommercetemplate_523.php'); ?>
    <?php
    mysql_select_db($database_ecommercetemplate_523,
    $ecommercetemplate_523);
    $query_categorymenu = "SELECT sectionID, sectionName FROM
    sections ORDER BY sectionName ASC";
    $categorymenu = mysql_query($query_categorymenu,
    $ecommercetemplate_523) or die(mysql_error());
    $row_categorymenu = mysql_fetch_assoc($categorymenu);
    $totalRows_categorymenu = mysql_num_rows($categorymenu);
    ?>
    <?php do { ?>
    <li><a href="
    library/products.php?cat=<?php echo
    $row_categorymenu['sectionID']; ?>" ><?php echo
    ucwords($row_categorymenu['sectionName']);
    ?></a></li>
    <?php } while ($row_categorymenu =
    mysql_fetch_assoc($categorymenu)); ?>
    <?php
    mysql_free_result($categorymenu);
    ?>
    </ul></div><!-- #EndLibraryItem -->
    doe anyone know how to resolve this? thanks

    You are placing this library item into an editable region of
    the child page?
    Why do this instead of just using an include?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "bikeman01" <[email protected]> wrote in
    message
    news:[email protected]...
    >I have setup a dynamic menu and created a library item
    from it. When I
    >insert
    > it into a new document (or update the library item) the
    urls within it
    > keep
    > getting the prefix /library/ added and so don't work:
    >
    > original menu
    > ===========
    >
    > <div id="lhsidemenu">
    >
    > <?php
    require_once('Connections/ecommercetemplate_523.php'); ?>
    > <?php
    > mysql_select_db($database_ecommercetemplate_523,
    $ecommercetemplate_523);
    > $query_categorymenu = "SELECT sectionID, sectionName
    FROM sections ORDER
    > BY
    > sectionName ASC";
    > $categorymenu = mysql_query($query_categorymenu,
    $ecommercetemplate_523)
    > or
    > die(mysql_error());
    > $row_categorymenu = mysql_fetch_assoc($categorymenu);
    > $totalRows_categorymenu = mysql_num_rows($categorymenu);
    > ?>
    > <?php do { ?>
    >
    <a href="products.php?cat=<?php echo
    > $row_categorymenu['sectionID']; ?>" ><?php echo
    > ucwords($row_categorymenu['sectionName']);
    ?></a></li>
    > <?php } while ($row_categorymenu =
    > mysql_fetch_assoc($categorymenu)); ?>
    > <?php
    > mysql_free_result($categorymenu);
    > ?>
    >
    </div>
    >
    > Menu after becomin a library item
    > ==========================
    > <!-- #BeginLibraryItem "/library/categorymenu.lbi"
    -->
    > <div id="lhsidemenu">
    >
    > <?php
    > require_once('
    library/Connections/ecommercetemplate_523.php'); ?>
    > <?php
    > mysql_select_db($database_ecommercetemplate_523,
    $ecommercetemplate_523);
    > $query_categorymenu = "SELECT sectionID, sectionName
    FROM sections ORDER
    > BY
    > sectionName ASC";
    > $categorymenu = mysql_query($query_categorymenu,
    $ecommercetemplate_523)
    > or
    > die(mysql_error());
    > $row_categorymenu = mysql_fetch_assoc($categorymenu);
    > $totalRows_categorymenu = mysql_num_rows($categorymenu);
    > ?>
    > <?php do { ?>
    >
    <a href="
    library/products.php?cat=<?php echo
    > $row_categorymenu['sectionID']; ?>" ><?php echo
    > ucwords($row_categorymenu['sectionName']);
    ?></a></li>
    > <?php } while ($row_categorymenu =
    > mysql_fetch_assoc($categorymenu)); ?>
    > <?php
    > mysql_free_result($categorymenu);
    > ?>
    >
    </div><!-- #EndLibraryItem -->
    >
    >
    > doe anyone know how to resolve this? thanks
    >

  • Php include file getting called multiple times

    I have created a form in file career.php. To carry out the validation user_registration.php is called at the beginning of the file.
    user_registration.php in turn calls library.php. Issue is that library.php is getting called multiple times.
    I have attached phperror.log which confirms the same.
    career.php
    <?php
    session_start();
    require_once('phpScript/user_registration.php');
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    user_registration.php
    <?php // This file is used for validating user form data. It calls process_upload.php to validate file uploaded by user
    $errors = array();  
    $messages = array();
    $testing = TRUE;
    error_log("Enter- user_registration.php. Testing mode $testing", 0);
    try {
              error_log("user_registration.php: Entered try catch block",0);
    require_once('library.php');
              error_log("Successfully called library.php",0);
              $public_key = '6LeDsNUSAAAAAIoaYuNhGm2zx_qgBECiybUWUkt6';
              $private_key = '6LeDsNUSAAAAACuvmJrec-_5seLdmhqUMngt8AiU';
              $recaptcha = new Zend_Service_ReCaptcha($public_key, $private_key);
              if(isset($_POST['submit'])) {          // Only execute if form is submitted by user
                error_log("user_registration.php. Submit button pressed by user", 0);
                require_once('Zend/Mail.php');
                $mail = new Zend_Mail('UTF-8');
                if (isset($_POST['name'])) {
                        $val = new Zend_Validate_Regex('/^\p{L}+[-\'\p{L} ]+$/u');
                        if (!$val->isValid($_POST['name'])) {
                          $errors['name'] = "Please enter your name, no numbers permitted";
    error_log("Exit- user_registration.php.", 0);
    library.php
    <?php
    error_log("Enter- library.php. Testing mode $testing", 0);
    if ($testing)  // If true then go to testing mode
              $library = '/Applications/MAMP/htdocs/mgtools-india/ZendFramework/library';
              set_include_path(get_include_path() . PATH_SEPARATOR . $library);
    require_once('Zend/Loader/Autoloader.php');
    try {
    Zend_Loader_Autoloader::getInstance();
    error_log("Exit- library.php. Testing mode $testing", 0);
    phperror.log
    Marker - 12-Oct-2012 10:27:26 AM
    [12-Oct-2012 04:57:33 UTC] Enter- user_registration.php. Testing mode 1
    [12-Oct-2012 04:57:33 UTC] user_registration.php: Entered try catch block
    [12-Oct-2012 04:57:33 UTC] Enter- library.php. Testing mode 1
    [12-Oct-2012 04:57:33 UTC] Exit- library.php. Testing mode 1
    [12-Oct-2012 04:57:33 UTC] Successfully called library.php
    [12-Oct-2012 04:57:36 UTC] Enter- user_registration.php. Testing mode 1
    [12-Oct-2012 04:57:36 UTC] Entered try catch block
    [12-Oct-2012 04:57:36 UTC] Enter- library.php. Testing mode 1
    [12-Oct-2012 04:57:36 UTC] Exit- library.php. Testing mode 1
    [12-Oct-2012 04:57:36 UTC] Successfully called library.php
    [12-Oct-2012 04:58:38 UTC] Enter- user_registration.php. Testing mode 1
    [12-Oct-2012 04:58:38 UTC] Entered try catch block
    [12-Oct-2012 04:58:38 UTC] Enter- library.php. Testing mode 1
    [12-Oct-2012 04:58:38 UTC] Exit- library.php. Testing mode 1
    [12-Oct-2012 04:58:38 UTC] Successfully called library.php
    [12-Oct-2012 04:58:38 UTC] user_registration.php. Submit button pressed by user
    [12-Oct-2012 04:58:39 UTC] user_registration.php, Processing enquiry form
    [12-Oct-2012 04:58:39 UTC] Enter- process_upload.php. Testing mode 1
    [12-Oct-2012 04:59:01 UTC] Exit- user_registration.php.
    I am not able to understand why user_registration.php and library.php are executing again and again.
    I ran this test on local testing server MAMP.
    The results are the same on remote server also.
    Please guide.

    I'm not sure what's happening there. The important question is whether the code is executed successfully.
    Since you're using the Zend Framework, it might be better to ask in a dedicated ZF forum.

  • Built-In PHP Functions Are Not Recognized

    I have a PHP project in Flash Builder for PHP 4.5 which does not recognise any of the PHP in-built functions. I have tested this on a brand new project and still the functions I type are not recognised. So I can't basically auto-complete them or look at what the function definition is.
    Usually the built-in function are listed under "PHP Language Library" > "Core API". But in my PHP projects they don't show at all. Any thoughts?
    I raised this problem with Zend (Which is where I bought the product from) Support and this is what they had to say:
    Unfortunately, Zend not supporting the Flash Builder for PHP.
    You can use the Adobe online forums to find solutions for your technical issues:
    http://forums.adobe.com/community/flash_builder/
    and this:
    Please use the Adobe Forums to report your problem. If the problem is related to Zend part of the product (it definitely looks like this), we will help you to solve this problem - through Adobe Forums. If you browse Adobe Forums, you may have noticed that our staff is quite responsive. Just post your issue there and you will see that routing your request through the correct channel will ensure the fastest resolution.
    So I am hoping Zend/Adobe Engineers are here to help me with the problem I have. Thanks

    Hi Roy,
    Here is the contents of the project .buildpath
    <?xml version="1.0" encoding="UTF-8"?>
    <buildpath>
         <buildpathentry kind="con" path="com.zend.php.phpunit.CONTAINER"/>
         <buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
         <buildpathentry kind="src" path=""/>
    </buildpath>
    and .project
    <?xml version="1.0" encoding="UTF-8"?>
    <projectDescription>
         <name>NAV-Contacts-PHP</name>
         <comment></comment>
         <projects>
         </projects>
         <buildSpec>
              <buildCommand>
                   <name>org.eclipse.wst.validation.validationbuilder</name>
                   <arguments>
                   </arguments>
              </buildCommand>
              <buildCommand>
                   <name>org.eclipse.dltk.core.scriptbuilder</name>
                   <arguments>
                   </arguments>
              </buildCommand>
         </buildSpec>
         <natures>
              <nature>org.eclipse.php.core.PHPNature</nature>
              <nature>org.zend.php.framework.ZendFrameworkNature</nature>
         </natures>
    </projectDescription>
    The OS is MacOS X 10.6.7

  • Where can I download the latest PHP MySQL libraries?

    my phpMyAdmin panel says "Your PHP MySQL library version 5.0.82 differs from your MySQL server version 5.1.45. This may cause unpredictable behavior."
    I should update Leopard's PHP MySQL library to 5.1.45 or downgrade MySQL to 5.82… but I can't find any.
    In the while I find MySQL 5.0.82 or an alternative fix…
    Do you know where I can find those libraries?
    Thanks.

    I found that newest php works with its own mysql (5.0.9, or so) and it's not using mine. I'd rather install back the one shipped with Leopard if I had to go versions back.
    Also, I couldn't get it to work (#2002 error, sockets were there but still not working) and once I uninstalled it, it was supposed to leave the OS untouched, but Leopard's didn't come back to life. I had to add the following lines to httpd.conf, otherwise the php code was shown, instead of executed.
    AddType application/x-httpd-php .php .phtml
    DirectoryIndex index.html index.php
    I'd think I saw the previous mysql folders somewhere and Leopard making an alias to the right one somewhere. Do you remember where?

  • How to copy uploaded blob to asset for AMS processing using PHP SDK

    I'm using Azure PHP SDK for Azure Media services and having problem with uploading large files (< 64 mb). So i tried using Blob service to upload as a chunk and commit it as a single file. It also works fine, and now media services won't directly take blob
    as a input. So i need to convert it into an Asset.
    I'm following the link https://msdn.microsoft.com/en-us/library/azure/jj933290.aspx which
    has example using .NET, is there a PHP sdk library support available for copying blob to asset. If yes please let me know the class and its methods or link.
    Please advice
    Mohanraj

    Hi Mohanraj,
    We recently had a fix for the problem you mentioned above:
    https://github.com/Azure/azure-sdk-for-php/commit/972e09c74308411602027280ededb3048b1e2fc4. We will try to release it asap but you can now try to upload by using this code pulled from dev branch.

  • Php web site problem - after loding the web site  blank white page

    Hi Guys
    i've set up Mac server with 10.6.2 its running 3 web sites . the problem is when i upload the web files in to my Mac server and start to browsing from my laptop via internet, web site is not loading. So i upload the sample web page just as a simple html file. its working fine , But when i upload this php web site problem agin . problem : site is loading from loading bar, But i can not see anything from browser just white page , no page source nothing ......
    any suggestions ?

    This is the Error from Server Admin
    ing: date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the datedefault_timezoneset() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Library/WebServer/Documents/kortxpress/libraries/joomla/utilities/date.php on line 184
    [Mon Apr 12 14:51:38 2010] [error] [client 91.127.146.71] PHP Notice: A session had already been started - ignoring session_start() in /Library/WebServer/Documents/discard/config.php on line 2
    [Mon Apr 12 14:51:38 2010] [error] [client 91.127.146.71] PHP Warning: require_once(/Library/WebServer/Documents/discardclasses/mysql/DBConnection.php ): failed to open stream: No such file or directory in /Library/WebServer/Documents/discard/index.php on line 5
    [Mon Apr 12 14:51:38 2010] [error] [client 91.127.146.71] PHP Fatal error: require_once(): Failed opening required '/Library/WebServer/Documents/discardclasses/mysql/DBConnection.php' (include_path='.:/usr/lib/php') in /Library/WebServer/Documents/discard/index.php on line 5
    [Mon Apr 12 14:51:41 2010] [error] [client 91.127.146.71] PHP Notice: A session had already been started - ignoring session_start() in /Library/WebServer/Documents/discard/config.php on line 2
    [Mon Apr 12 14:51:41 2010] [error] [client 91.127.146.71] PHP Warning: require_once(/Library/WebServer/Documents/discardclasses/mysql/DBConnection.php ): failed to open stream: No such file or directory in /Library/WebServer/Documents/discard/index.php on line 5
    [Mon Apr 12 14:51:41 2010] [error] [client 91.127.146.71] PHP Fatal error: require_once(): Failed opening required '/Library/WebServer/Documents/discardclasses/mysql/DBConnection.php' (include_path='.:/usr/lib/php') in /Library/WebServer/Documents/discard/index.php on line 5
    [Mon Apr 12 14:51:42 2010] [error] [client 91.127.146.71] PHP Notice: A session had already been started - ignoring session_start() in /Library/WebServer/Documents/discard/config.php on line 2
    [Mon Apr 12 14:51:42 2010] [error] [client 91.127.146.71] PHP Warning: require_once(/Library/WebServer/Documents/discardclasses/mysql/DBConnection.php ): failed to open stream: No such file or directory in /Library/WebServer/Documents/discard/index.php on line 5
    [Mon Apr 12 14:51:42 2010] [error] [client 91.127.146.71] PHP Fatal error: require_once(): Failed opening required '/Library/WebServer/Documents/discardclasses/mysql/DBConnection.php' (include_path='.:/usr/lib/php') in /Library/WebServer/Documents/discard/index.php on line 5
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Assigning the return value of new by reference is deprecated in /Library/WebServer/Documents/kortxpress/administrator/components/com_joomfish/c lasses/JoomfishManager.class.php on line 184
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Assigning the return value of new by reference is deprecated in /Library/WebServer/Documents/kortxpress/administrator/components/com_joomfish/c lasses/JoomfishManager.class.php on line 193
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Assigning the return value of new by reference is deprecated in /Library/WebServer/Documents/kortxpress/administrator/components/com_joomfish/c lasses/JoomfishManager.class.php on line 217
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Assigning the return value of new by reference is deprecated in /Library/WebServer/Documents/kortxpress/administrator/components/com_joomfish/c lasses/JoomfishManager.class.php on line 226
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Function eregi() is deprecated in /Library/WebServer/Documents/kortxpress/plugins/system/jfrouter.php on line 188
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Function split() is deprecated in /Library/WebServer/Documents/kortxpress/plugins/system/jfrouter.php on line 189
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the datedefault_timezoneset() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Library/WebServer/Documents/kortxpress/libraries/joomla/utilities/date.php on line 56
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the datedefault_timezoneset() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Library/WebServer/Documents/kortxpress/libraries/joomla/utilities/date.php on line 198
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the datedefault_timezoneset() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /Library/WebServer/Documents/kortxpress/libraries/joomla/utilities/date.php on line 198
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Function split() is deprecated in /Library/WebServer/Documents/kortxpress/plugins/system/jfrouter.php on line 594
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Function split() is deprecated in /Library/WebServer/Documents/kortxpress/plugins/system/jfrouter.php on line 594
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Warning: copy(/Library/WebServer/Documents/kortxpress/modules/mod_jlivechat/livechat-onl ine.jpg): failed to open stream: No such file or directory in /Library/WebServer/Documents/kortxpress/modules/mod_jlivechat/helper.php on line 47
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Warning: copy(/Library/WebServer/Documents/kortxpress/modules/mod_jlivechat/livechat-off line.jpg): failed to open stream: No such file or directory in /Library/WebServer/Documents/kortxpress/modules/mod_jlivechat/helper.php on line 52
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Warning: copy(/Library/WebServer/Documents/kortxpress/modules/mod_jlivechat/livechat-lar ge-online.jpg): failed to open stream: No such file or directory in /Library/WebServer/Documents/kortxpress/modules/mod_jlivechat/helper.php on line 57
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Warning: copy(/Library/WebServer/Documents/kortxpress/modules/mod_jlivechat/livechat-lar ge-offline.jpg): failed to open stream: No such file or directory in /Library/WebServer/Documents/kortxpress/modules/mod_jlivechat/helper.php on line 62
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Function split() is deprecated in /Library/WebServer/Documents/kortxpress/plugins/system/jfrouter.php on line 594
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Function split() is deprecated in /Library/WebServer/Documents/kortxpress/plugins/system/jfrouter.php on line 594
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Function split() is deprecated in /Library/WebServer/Documents/kortxpress/plugins/system/jfrouter.php on line 594
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Function split() is deprecated in /Library/WebServer/Documents/kortxpress/plugins/system/jfrouter.php on line 594
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Function split() is deprecated in /Library/WebServer/Documents/kortxpress/plugins/system/jfrouter.php on line 594
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Function split() is deprecated in /Library/WebServer/Documents/kortxpress/plugins/system/jfrouter.php on line 594
    [Mon Apr 12 14:53:22 2010] [error] [client 91.127.146.71] PHP Deprecated: Function split() is deprecated in /Library/WebServer/Documents/kortxpress/plugins/system/jfrouter.php on line 594
    [Mon Apr 12 14:57:23 2010] [notice] caught SIGTERM, shutting down
    [Mon Apr 12 14:57:56 2010] [warn] module php5_module is already loaded, skipping
    [Mon Apr 12 14:57:57 2010] [notice] Apache/2.2.13 (Unix) PHP/5.3.0 configured -- resuming normal operations
    [Mon Apr 12 14:58:46 2010] [error] [client 91.127.146.71] PHP Notice: A session had already been started - ignoring session_start() in /Library/WebServer/Documents/discard/config.php on line 2
    [Mon Apr 12 14:58:46 2010] [error] [client 91.127.146.71] PHP Warning: require_once(/Library/WebServer/Documents/discardclasses/mysql/DBConnection.php ): failed to open stream: No such file or directory in /Library/WebServer/Documents/discard/index.php on line 5
    [Mon Apr 12 14:58:46 2010] [error] [client 91.127.146.71] PHP Fatal error: require_once(): Failed opening required '/Library/WebServer/Documents/discardclasses/mysql/DBConnection.php' (include_path='.:/usr/lib/php') in /Library/WebServer/Documents/discard/index.php on line 5
    [Mon Apr 12 14:58:48 2010] [error] [client 91.127.146.71] PHP Notice: A session had already been started - ignoring session_start() in /Library/WebServer/Documents/discard/config.php on line 2
    [Mon Apr 12 14:58:48 2010] [error] [client 91.127.146.71] PHP Warning: require_once(/Library/WebServer/Documents/discardclasses/mysql/DBConnection.php ): failed to open stream: No such file or directory in /Library/WebServer/Documents/discard/index.php on line 5
    [Mon Apr 12 14:58:48 2010] [error] [client 91.127.146.71] PHP Fatal error: require_once(): Failed opening required '/Library/WebServer/Documents/discardclasses/mysql/DBConnection.php' (include_path='.:/usr/lib/php') in /Library/WebServer/Documents/discard/index.php on line 5

  • Feature suggestion - php/amf

    I am sure there is a reason for not having something built in
    to use php with the amf format as opposed to just rest (IE - adobe
    would like you to use cf, etc), but it would be nice for the php
    developers to have a more "integrated" feel for more than just one
    option (rest). And also when having wizzards, like this, it would
    be nice to be able to pick the kind of component that will be used
    to populate a field for the "add" form.

    Guys,
    One big problem with PHP and AMF is that AMFPHP (which it
    appears to most popular library) is both GPL (which restricts his
    use) and it seems will lose his main contributor (
    http://www.5etdemi.com/blog/archives/2007/04/im-retiring/).
    Other alternatives will be:
    - php5 module for AMF
    - SambreAMF - only for PHP5
    - WebORB's PHP AMF library
    In this respect which AMF solution do you think is more
    appropriate for these kinds of samples?
    Regards,
    Miti
    Adobe

  • Still image issues (I've already read the other similar post- didn't apply)

    Still having issues with still images in my timeline. Viewer they're fine, Canvas they're repulsive.
    Seq. settings are NTSC, 29.97, 48k. I have tried several different extensions for the stills and have even tried importing them at different sizes. I know I'm not the first person to incorporate stills in my timeline - how do I solve this? (I followed the advice on a similar thread from a few days ago).
    Also, I exported a small clip and viewed it on a different computer as a QT file and it was just as bad.
    Please help. I'll make you a mix cd or a burrito if you can help me out. Thanks.

    #1 Transitions "Insufficient Content"
    Shane's Stock Answer #1: Trying to add a Transition and get the error "Insufficient Content"
    A full 1 second cross fade reaches 15 frames into each clip. So, if you want to change a cut to a cross fade, there has to be at least 15 additional frames of each clip. Say you're trying to cross fade from one clip into the very first frame of a second clip. FCP cannot 'create' 15 more frames of the second clip to do a cross fade. If they're not there, you're out of luck.
    What you are running into is that you are marking an out point at the far edges of a clip then adding a cross dissolve, say 30 frames (one second) in duration. Since the dissolve is centered on the cut, it will start 15 frames before the cut, and try to go 15 frames AFTER the cut...which it can't do. What you need to do is plan how long your dissolve will be and back-time your cut so that it works.
    You need to make sure that your clips have enough media (called 'handles') at the beginning of the incoming clip and at the end of the outgoing clip for the transition. For example, if you have a 1 second (30 frame) dissolve, your in and out point need to be at least 15 frames from the edge of the clip.
    I have them all here:
    http://library.creativecow.net/articles/rossshane/fcpfaq.php
    http://library.creativecow.net/articles/rossshane/fcpfaq2.php
    http://library.creativecow.net/articles/rossshane/fcpfaq3.php
    Most of them...I keep adding.
    one of the most popular is number 8:
    Shane's Stock Answer #8: External Monitor Viewing
    If you are working with DV, this is simple. First connect your computer to a camera or deck via firewire, Then connect the camera/deck to your TV/Monitor via RCA or S-Video.
    Then start up your camera and tv, then open fcp.
    Go to the View Menu, choose > External video > all frames
    VIEW>Video playback should be Apple firewire NTSC (If you are using an NTSC set)
    VIEW>Audio playback should be Audio follows Video
    Techinially, this should send synched video to your TV
    If for some reason you can't view your timeline on your external monitor, there are a few things to try:
    1) Make sure that the camera/deck is connected and powered on BEFORE you open FCP.
    2) In the Final Cut Pro menu select AUDIO/VIDEO Preferences and make sure your signal is being sent out thru Firewire DV.
    3) Go to the menu and select VIEW>EXTERNAL>ALL FRAMES.
    4) Click in the % box above the image and select FIT TO WINDOW.
    5) Go to VIEW->refresh A/V devices
    6) Make sure the Log & Capture window is closed
    If you want it to play in both the canvas and the external monitor you need to go to the FINAL CUT PRO menu and select AUDIO/VIDIO settings and make sure MIRROR ON DESKTOP is selected under the PLAYBACK OUTPUT section.
    If you are working with HDV footage, FCP 6 allows you to view this via firewire, but ONLY as downconverted DV. It won't look the best, but you can see it. To do this,
    If you need to view any format other than DV at full resolution, then you need to look into capture cards. Several standard definition and high definition models are available from www.aja.com and www.decklink.com. With these options you'll need a proper monitor to view full broadcast colors, but all models allow for realtime standard definition downconvert, allowing you to view HD on an SD monitor.
    The Matrox MXO is another option that is output only, but allows you to view your footage on an Apple Cinema Display at full broadcast quality.
    Shane

  • Adding a digital time counter for split screen...

    I am recording two events that I will be displaying as on a split screen. I need to have a digital "stop watch" timer at the bottom of each screen. Is there a way to create this on the computer without actually taking video footage of a timer?
    Any ideas would be welcome.
    Thanks,
    Dean

    this may help:
    http://library.creativecow.net/articles/rabinowitz_aharon/Odometer_1.php
    http://library.creativecow.net/articles/rabinowitz_aharon/Odometer_2.php
    http://library.creativecow.net/articles/rabinowitz_aharon/Odometer_3.php

  • How to manage non-SAP objects types with SAP Netweaver ?

    I would like to know how it is possible to integrate into the SAP software configuration managment tools (NWDI CTS, CTS+...) non-SAP objects like shell scripts or SQL requests ?
    These shell scripts are, for example:
    - external host scheduler jobs
    - general scripts for start/stop application
    - parameters needed by application at the os level
    My goal should to store into a DEV SAP system these objects, in order to take benefit of SE80 version management. So, it should be possible to create transport order in SE10 and to transport these non-SAP objects in test and production system.
    Thank in advance for your answers.
    Daniel Ouin

    the standard functionality for this up until 4.72 is to call RFCs/BAPIs through a RFC binding library for the third party software, e.g. the language of your choice is PHP then you use the PHP RFC library found [here|http://saprfc.sourceforge.net/], if you have to connect from a .NET environment you might try to get the SAP .NET connector.
    anton
    PS: RTFM and/or using the search facilities here on SCN would help you a lot with your task.

  • File upload glitch

    I am working with another tutorial (Lesson 9) in David Powers new book on adding attachments to an email sent from an online form. When I bring the form up in my browser, enter the information and attach the file, and submit, the form information and attachments do show up in my inbox fine. However, I get the following error messages in the browser:
    Warning:  file_get_contents(C:/upload_test/att1285896997-Mountains OMourne.docx) [function.file-get-contents]: failed to open stream: No such file or directory in C:\xampp\htdocs\WFRMA\scripts\process_attachments.php on line 53
    Warning:  unlink(C:/upload_test/att1285896997-Mountains OMourne.docx) [function.unlink]: No such file or directory in C:\xampp\htdocs\WFRMA\scripts\process_attachments.php on line 56
    Is there anyone who might know why I'm getting these messages even though the form submittal seems to otherwise be operating fine?

    Sorry to offend, I'm really quite new and obviously dumb as a post with the technology (even forums like this). I'll try to do better more quickly. The process_attachments script referred to in the error message looks like this:
    <?php
    require_once('library.php');
    $errors = array();
    try {
      $public_key = 'Your_public_key';
      $private_key = 'Your_private_key';
      $recaptcha = new Zend_Service_ReCaptcha($public_key, $private_key);
      if (isset($_POST['send'])) {
        // validate the user input
        if (empty($_POST['recaptcha_response_field'])) {
          $errors['recaptcha'] = 'reCAPTCHA field is required';
        } else {
          $result = $recaptcha->verify($_POST['recaptcha_challenge_field'], $_POST['recaptcha_response_field']);
          if (!$result->isValid()) {
            $errors['recaptcha'] = 'Try again';
        $val = new Zend_Validate_Alnum(TRUE);
        if (!$val->isValid($_POST['name'])) {
          $errors['name'] = 'Name is required';
        $val = new Zend_Validate_EmailAddress();
        if (!$val->isValid($_POST['email'])) {
          $errors['email'] = 'Email address is required';
        $val = new Zend_Validate_StringLength(10);
        if (!$val->isValid($_POST['comments'])) {
          $errors['comments'] = 'Required';
        require_once('get_attachments.php');
        if (!$errors) {
           // create and send the email
           require_once('mail_connector.php');
           $mail = new Zend_Mail('UTF-8');
           $mail->addTo('[email protected]', 'A N Other');
           $mail->setFrom('[email protected]', 'Zend Mail Test');
           $mail->setSubject('Comments from feedback form');
           $mail->setReplyTo($_POST['email'], $_POST['name']);
           $text = "Name: {$_POST['name']}\r\n\r\n";
           $text .= "Email: {$_POST['email']}\r\n\r\n";
           $text .= "Comments: {$_POST['comments']}";
           $html = '<html><head><title>';
           $html .= $mail->getSubject();
           $html .= '</title></head><body>';
           $html .= "<p><strong>Name: </strong><a href='mailto:{$_POST['email']}'>{$_POST['name']}</a></p>";
           $html .= '<p><strong>Comments: </strong>' . nl2br($_POST['comments']) . '</p>';
           $html .= '</body></html>';
           $mail->setBodyText($text, 'UTF-8');
           $mail->setBodyHtml($html, 'UTF-8');
           if (isset($_SESSION['attachments']) && !empty($_SESSION['attachments'])) {
              foreach($_SESSION['attachments'] as $attached) {
                $current_file = $destination . '/' . $_SESSION['att_id'] . $attached;
                $contents = file_get_contents($current_file);
                $att = $mail->createAttachment($contents);
                $att->filename = $attached;
                unlink($current_file);
              unset($_SESSION['attachments']);
              unset($_SESSION['att_id']);
           $success = $mail->send();
           if (!$success) {
             $errors = TRUE;
    } catch (Exception $e) {
      echo $e->getMessage();
    ?>
    I've intentionally left out the recaptcha keys in the code here.
    The get_attachments.php referred to in the above script looks like this:
    <?php
    session_start();
    $destination = 'C:/upload_test';
    $max_size = '50kB';
    $not_allowed = 'exe,vbs,shs,pif,lnk,dll';
    if (!isset($_SESSION['att_id'])) {
      $_SESSION['att_id'] = 'att' . time() .'-';
      $_SESSION['attachments'] = array();
      // set the destination for the upload
      $uploader = new Zend_File_Transfer_Adapter_Http();
      $uploader->setDestination($destination);
      // permit blank file fields
      $uploader->setOptions(array('ignoreNoFile' => TRUE));
      // set the validation criteria
      $uploader->addValidator('Size', FALSE, $max_size);
      $uploader->addValidator('ExcludeExtension', FALSE, $not_allowed);
      // get the details of the uploaded files
      $files = $uploader->getFileInfo();
      // loop through the files and deal with each file individually
      foreach($files as $file => $info) {
        // make sure a file has been uploaded
        if ($uploader->isUploaded($file)) {
          // get the file's name and replace spaces with underscores
          $filename = $uploader->getFileName($file, FALSE);
          if (!$uploader->isValid($file)) {
            $messages[] = "$filename exceeds $max_size or is not an acceptable type";
          } else {
            $attachment = $_SESSION['att_id'] . str_replace(' ', '_', $filename);
            $uploader->addFilter('Rename', array('target' => $attachment), $file);
            $success = $uploader->receive($file);
            // if the transfer failed, get the error messages
            if (!$success) {
              $messages[] = "$filename could not be attached";
            } else {
              // the transfer was OK, so tell the user what happened
              $messages[] = "$filename attached";
              $_SESSION['attachments'][] = $filename;

Maybe you are looking for

  • N8 poor signal reception and other hardware issues...

    I have always been a Nokia fan . I started with Nokia 6600, then N70, then N82 and now a Nokia N8. However, I am facing the worst experience with N8 reception issues. The problems faced are as under : 1) Poor Signal Reception Issues - Signal strength

  • HT201317 how to upload a video

    How can I upload a video from my PC?

  • Date range SQL

    I have a 2 tables table like this: Employee Table emp_id  region  active_date A100    01      8/19/2009 A100    01      8/21/2009 A100    01      8/27/2009 A100    01      9/2/2009 A100    01      10/1/2009 A100    01      3/27/2010 Date_Lkp Table Da

  • DVD Player in Mac 10.6.8

    I am testing out a brand-new External Optical drive ASUS SDRW-08D2S-U for use with my Mac OS X 10.6.8. The Mac recognizes the new drive, and when I insert a DVD into it, the Disk with its title appears on my desktop.  Also, QuickTime Player is activa

  • Q symbol in smartform

    I came across to seen the following code in a smartform <BU>&'Q'SG_FERTAUFT-UMREZ&<><><><></> Here what is Q represent or signify ? a®