PHP echo and setcookie conflict

I am running this code on a 1and1 Apache server which I
believe runs Apache 1.3, the first code example [code1] works fine
but as soon as I include an echo before the setcookie function the
php script stops creating cookies. Code3, where the echo is after
the setcookie, also works.
Could somebody please shed some lite on this issue and
suggest possible workarounds?
Thanks
Chopo

Chopo^2 wrote:
> as soon as I include an echo
> before the setcookie function the php script stops
creating cookies.
That's the way cookies work. You must set the cookies before
sending any
output to the browser. This is clearly explained in the PHP
manual:
http://docs.php.net/manual/en/function.setcookie.php
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Similar Messages

  • How to create a vertical bar chart from a table? (PHP, HTML and CSS)

    Hi everyone,
    I have created a table and wish to proceed to do it even better in terms of analysis pattern. I want
    to create a vertical bar chart from the created table but I dunno how to start it.
    Here is the code for the table:
    <?php
    $gpa11=$_REQUEST['gpa11'];
    $gpa12=$_REQUEST['gpa12'];
    $gpa21=$_REQUEST['gpa21'];
    $gpa22=$_REQUEST['gpa22'];
    $gpa31=$_REQUEST['gpa31'];
    $gpa32=$_REQUEST['gpa32'];
    $gpa41=$_REQUEST['gpa41'];
    $gpa42=$_REQUEST['gpa42'];
    $gpa51=$_REQUEST['gpa51'];
    $gpa52=$_REQUEST['gpa52'];
    ?>
    <!doctype html>
    <html lang="en">
       <head>
          <meta charset="utf-8">
          <meta name="viewport" content="width=1024">
          <title>Feng Mentor Mentee</title>
       </head>
       <body>
          <div id="wrapper">
             <div class="chart">
                <h3>GPA Performance Graph</h3>
                <table id="data-table" border="1" cellpadding="10" cellspacing="0"
                summary="The performance of students throughout the years in university">
                   <thead>
                      <tr>
                         <td> </td>
                         <th scope="col">Year 1</th>
                         <th scope="col">Year 2</th>
                         <th scope="col">Year 3</th>
                         <th scope="col">Year 4</th>
                         <th scope="col">Year 5</th>
                      </tr>
                   </thead>
                   <tbody>
                      <tr>
                         <th scope="row">Sem 1</th>
                         <td><?php echo $gpa11;?></td>
                         <td><?php echo $gpa21;?></td>
                         <td><?php echo $gpa31;?></td>
                         <td><?php echo $gpa41;?></td>
                         <td><?php echo $gpa51;?></td>
                      </tr>
                      <tr>
                         <th scope="row">Sem 2</th>
                         <td><?php echo $gpa12;?></td>
                         <td><?php echo $gpa22;?></td>
                         <td><?php echo $gpa32;?></td>
                         <td><?php echo $gpa42;?></td>
                         <td><?php echo $gpa52;?></td>
                      </tr>
                   </tbody>
                </table>
             </div>
          </div>
       </body>
    </html>
    Here's the look:
                                                              GPA Performance Graph                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
    Year 1
    Year 2
    Year 3
    Year 4
    Year 5
    Sem 1
    Sem 2
    Please help me on this because this is my 1st project on php.

    Hi
    Are you using BI query? If yes then follow the steps -
    1. Take Sales org in rows of BI query. & take invoice type & Key figure in Columns.
    2. In VC use this query & drag chart from the output of this query.
    3. Right click on chart & go to 'Configure Element'. There select Chart Type as 'Bar chart'
    4. Below that you will get default option as clustered, there you select 'Stacked'
    5. Create Data series as per your requirement.
    6. Arrange proper layout of the model & then deploy.
    You will get required output in stacked format.
    Regards
    Sandeep

  • Php form and mail handling

    I am trying to create a php form and I can get it to spit out the information from the form but I cannot seem to get it to send the result as an email.
    This is probably something really simple and I am totally missing it.
    Here is the form:
    <form method="post" action="sendail.php">               
      <?php
    $ipi = getenv("REMOTE_ADDR");
    $httprefi = getenv ("HTTP_REFERER");
    $httpagenti = getenv ("HTTP_USER_AGENT");
    ?>
      <input type="hidden" name="ip" value="<?php echo $ipi ?>" />
      <input type="hidden" name="httpref" value="<?php echo $httprefi ?>" />
      <input type="hidden" name="httpagent" value="<?php echo $httpagenti ?>" />
            <p>I need:<span class="redStar">*</span>
              <input type= "radio" name = "need" value = "service" />service.
            <input type= "radio" name = "need" value = "sales" />to contact a salesperson.
            <input type= "radio" name = "need" value = "literature" />to have literature sent to me.<br />
            Name:        <input type = "text" name = "name" size = "30" />
            <span class="redStar">*</span><br />
            Title:           <input type = "text" name = "title" size = "30" /><br />
            Company: <input type = "text" name = "company" size = "30" /></p>
            <p>Address 1: <input type = "text" name = "address1" size = "30" />
              <span class="redStar">*</span><br />
            Address 2: <input type = "text" name = "address2" size = "30" /><br />
            City: <input type = "text" name = "city" size = "30" />
            <span class="redStar">*</span> State: <input type = "text" name = "state" size = "3" />
            <span class="redStar">*</span> Zip: <input type = "text" name = "zip" size = "11" />
            <span class="redStar">*</span></p>
           <p>Email:   <input type = "text" name = "email" size = "30" />
             <span class="redStar">*</span><br />
            Phone: <input type = "text" name = "phone" size = "30" />
            <span class="redStar">*</span> </p>
            <p><input type = "submit" name = "submit" value = "Submit" /></p>
            <p><span class="redStar">*</span> These blanks must be filled in</p>
    </form>       
    and here is the page that handles the form (with the exception of the referring page, and other environmentals:
            <?php
            $ip = $_POST['ip'];
    $httpref = $_POST['httpref'];
    $httpagent = $_POST['httpagent'];
            $need = $_POST['need'];
            $name = $_POST['name'];
            $title = $_POST['title'];
            $company = $_POST['company'];
            $address1 = $_POST['address1'];
            $address2 = $_POST['address2'];
            $city = $_POST['city'];
            $state = $_POST['state'];
            $zip = $_POST['zip'];
            $email = $_POST['email'];
            $phone = $_POST['phone'];
    if(!$email == "" && (!strstr($email,"@") || !strstr($email,".")))
    echo "<h2>Use Back - Enter valid email</h2>\n";
    $badinput = "<h2>Your form was NOT submitted</h2>\n";
    echo $badinput;
    die ("Go back! ! ");
    if(empty($name) || empty($email) || empty($address1) || empty($city) || empty($state) || empty($zip) || empty($phone)) {
    echo "<h2>Use your Back button - fill in all starred fields, your form was not submitted.</h2>\n";
    die ("Use back! ! ");
    $todayis = date("l, F j, Y, g:i a") ;
    $subject = Contact_From_Website;
    $message = " $todayis [EST] \n
    From: $name ($email)\n
    Title: $title\n
    Company: $company\n
    Telephone: $phone ($phone)\n
    Address: $address1\n
    $address2\n
    City: $city\n
    State: $state\n
    Zip: $zip\n
    Phone: $phone\n
    Additional Info : IP = $ip \n
    Browser Info: $httpagent \n
    Referral : $httpref \n
    $from = "From: $email\r\n";
    mail("[email protected]", $name, $title, $company, $phone, $address1, $address2, $city, $state, $zip, $email, $phone, $ip, $httpref);
    /* This is the part that emails everyone and is commented out for testing
    if ($need = "service") {
        mail("[email protected]", $name, $title, $company, $phone, $address1, $address2, $city, $state, $zip, $email, $phone, $ip, $httpref);
    mail("[email protected]", $need, $name, $title, $company, $phone, $address1, $address2, $city, $state, $zip, $email, $phone, $ip, $httpref);
        if ($need = "sales") {
        mail("[email protected]", $need, $name, $title, $company, $phone, $address1, $address2, $city, $state, $zip, $email, $phone, $ip, $httpref);
            mail("[email protected]", $need, $name, $title, $company, $phone, $address1, $address2, $city, $state, $zip, $email, $phone, $ip, $httpref);
        if ($need = "literature") {
            mail("[email protected]", $need, $name, $title, $company, $phone, $address1, $address2, $city, $state, $zip, $email, $phone, $ip, $httpref);
    mail("[email protected]", $need, $name, $title, $company, $phone, $address1, $address2, $city, $state, $zip, $email, $phone, $ip, $httpref);
            ?>
            Date: <?php echo $todayis ?>
    <br />
    Thank You : <?php echo $name ?> ( <?php echo $email ?> )  <?php echo $title ?> <?php echo $company ?> <?php echo $phone ?> <?php echo $address1 ?> <?php echo $address2 ?> <?php echo $city ?> <?php echo $state ?> <?php echo $zip ?>
    <br /> You have requested <?php echo $need ?>
    <br /> Your IP Address has been recorded for your safety.
    <?php echo $ip ?>
    You can see where I am trying to go with this. I want to use the $need variable to determine where the email is going to go (two people in each case). But I am testing this script and cannot get to send me an email without any if statements.
    Where have I gone wrong?

    60251977 wrote:
    > I'm considering switching to Wordpress but have started
    building a site in
    > Dreamweaver, and am not especially keen on having to
    learn an entirely new
    > program.
    If you're not keen on learning, you might want to reconsider
    your plans.
    Creating a simple web page is easy, giving many beginners the
    false
    impression that website development is something anyone can
    do without
    acquiring specialist knowledge.
    > I want to create a simple "Add Comment" form so that
    when a visitor to my site
    > wants to comment, he can do so, press submit, and the
    page refreshes with his
    > comments inserted. Just like a blog.
    Yep, sounds simple enough, but so is turning the ignition key
    of a car.
    What you're ignoring is the underlying technology that not
    only makes it
    work, but makes it work safely. WordPress does all of this
    for you
    straight out of the box. To build it successfully in
    Dreamweaver
    requires a knowledge of PHP, MySQL, and SQL.
    > According to the Pickaweb FAQ, the path to PHP is
    "/usr/bin/php"
    If PHP is enabled on your site, the path to PHP is
    irrelevant.
    > If my site was called elephantlike.co.uk, what would I
    enter into the Action
    > field of the form wizard?
    > Would this make my form work? Or is there other stuff I
    need to know?
    What you enter in the Action field is the path to the script
    that
    processes the form input. If you're willing to learn the
    basics of PHP,
    MySQL, and SQL, you can create a comment form on your site
    with
    Dreamweaver. However, you need to be aware of security
    issues, such as
    cross-site scripting and dealing with spam. What looks simple
    at first
    glance is actually more complex. It's not rocket science, but
    it does
    involve a learning curve.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS4",
    "PHP Solutions" & "PHP Object-Oriented Solutions"
    http://foundationphp.com/

  • Changing order of a php echo

    okay I've figured out to create a blog on my site but, the
    date is showing oldest first. How can I change the order to Newest
    firts?
    I'm using a repeat region echoing info from a database.
    Here is the code:
    <?php $HTTP_POST_VARS[<?php echo
    $row_blog['BLOG_DATE']; ?>
    any ideas?

    5jays wrote:
    > okay I've figured out to create a blog on my site but,
    the date is showing
    > oldest first. How can I change the order to Newest
    firts?
    In the recordset dialog box, sort by BLOG_DATE, and set the
    sort order
    to Descending.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Can't find the file ?php echo $editFormAction; ? in XAMPP

    I used the insert record function in CS4 on a page I'm working on.  I'm running XAMPP in win XP.
    Whenever I load the page into firefox, fill out the forms with random data, and click the submit button, I get the following error:
    can't find the file at /C:/xampp/htdocs/MySite.com/<?php echo $editFormAction; ?>
    I have been trying to research this a bit myself, and I think the problem may simply be that the editFormAction script is not in the root folder of my site.  But I am not sure where it is, and so, what to change the reference to.
    Or perhaps I'm completely wrong about this???
    Please Help Me!!

    Well, I have to chuckle a bit because the article on how to set up a php testing server that you wrote is the exact one I read to set up my testing server!  It is very well written and probably the most helpful and straight foreward article on setting up dreamweaver with XAMPP on the web.  I followed all of the instructions exactly, so I imagine the problem must be elsewhere?  It's pointing to the C drive because that's where XAMPP is installed.  This is how is it supposed to be setup, correct?  Apache and MySQL are running, or at least it says so on the XAMPP control panel.
    Also, I apologize for not posting this in the right forum.  That was my first post on the adobe boards and I didn't really consider inserting records to a database to be an "application."  So thanks for pointing me in the right direction.
    for those who want to see my code, here it is.  Except for the exact names of the fields, it's exactly what dreamweaver creates when youc click on the "insert record" button in the insert menu.  I don't see any option for pasting the code as "code" like in most code devolpoer forums.  I know some poeple get upset if you paste code without doing it right, so I hope I'm not making anybody mad.
    the following is inserted in the head:
    <?php require_once('Connections/GiftListConnection.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE ff SET EmailAddress=%s, Relationship=%s WHERE FirstName=%s",
                           GetSQLValueString($_POST['EmailAddress'], "text"),
                           GetSQLValueString($_POST['Relationship'], "text"),
                           GetSQLValueString($_POST['FirstName'], "text"));
      mysql_select_db($database_GiftListConnection, $GiftListConnection);
      $Result1 = mysql_query($updateSQL, $GiftListConnection) or die(mysql_error());
      $updateGoTo = "ManageFF.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
        $updateGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $updateGoTo));
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form2")) {
      $insertSQL = sprintf("INSERT INTO ff (FirstName, EmailAddress, Relationship) VALUES (%s, %s, %s)",
                           GetSQLValueString($_POST['FirstName'], "text"),
                           GetSQLValueString($_POST['EmailAddress'], "text"),
                           GetSQLValueString($_POST['Relationship'], "text"));
      mysql_select_db($database_GiftListConnection, $GiftListConnection);
      $Result1 = mysql_query($insertSQL, $GiftListConnection) or die(mysql_error());
      $insertGoTo = "ManageFF.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    mysql_select_db($database_GiftListConnection, $GiftListConnection);
    $query_Recordset1 = "SELECT * FROM ff";
    $Recordset1 = mysql_query($query_Recordset1, $GiftListConnection) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?>
    and then this is the actual form code in the body:
    <p class="Bold">&nbsp Add new family member or friend...</p>
    <form action="<?php echo $editFormAction; ?>" method="post" name="form2" id="form2">
      <table align="left">
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">FirstName:</td>
          <td><input type="text" name="FirstName" value="" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">EmailAddress:</td>
          <td><input type="text" name="EmailAddress" value="" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right">Relationship:</td>
          <td><input type="text" name="Relationship" value="" size="32" /></td>
        </tr>
        <tr valign="baseline">
          <td nowrap="nowrap" align="right"> </td>
          <td><input type="submit" value="add" /></td>
        </tr>
      </table>
      <input type="hidden" name="MM_insert" value="form2" />
    </form>
    Thanks for trying to help out this noob, everybody!
    BTW, this is Inkexit posting.  For some reason when I logged in this morning, I was made to pick a new screenname, as inkexit was already in use.  But I knew that though, as I was the one using it, lol.  Kinda bizzarre.  Perhaps the Mods should know about this?

  • How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    If the data is on a remote server (for example, PHP running on a web server, talking to a MySQL server) then you do this in an AIR application the same way you would do it with any Flex application (or ajax application, if you're building your AIR app in HTML/JS).
    That's a broad answer, but in fact there are lots of ways to communicate between Flex and PHP. The most common and best in most cases is to use AMFPHP (http://amfphp.org/) or the new ZEND AMF support in the Zend Framework.
    This page is a good starting point for learning about Flex and PHP communication:
    http://www.adobe.com/devnet/flex/flex_php.html
    Also, in Flash Builder 4 they've added a lot of remote-data-connection functionality, including a lot that's designed for PHP. Take a look at the Flash Builder 4 public beta for more on that: http://labs.adobe.com/technologies/flashbuilder4/

  • How to deal with conflict and potential conflict classes?

    Some classes are marked as conflict and potential conflict classes in the Classloader Analysis Tool.
    How to deal with them?
    How to use suggested solutions?

    Not double load them.
    Conflicting classes can lead to weird exceptions. One obvious example would be if you package
    an older servlet.jar version into your application and use the weblogic classloading features, such
    as prefer-web-inf-classes, to tell weblogic to use this class instead of the one provided in the
    system classpath. This one example which leads to weird exceptions, such as connot process jsp tag...
    If you really need a the version of the jar for your application, you have to test it through and through
    so that you know you do not run into weird production errors.

  • Why does Scroll in IOS 8  and Swipe conflict?

    Hi guys,
    Why does Scroll in IOS 8  and Swipe conflict?
    When I use swipe right or swipe left in EA and test it on IOS8 it works fine but if I scroll down
    it triggers the swipe right or left assignment ...
    Does anyone know a code to not have these two functions in conflict? I usually dodge this feature due to this ongoing
    unfixed problem.
    Thanks,
    Henry Code

    http://www.imore.com/having-issues-wallpapers-ios-7-heres-why-and-how-fix-it
     Cheers, Tom

  • How to enable php, mysql, and apache?

    Hi guys, I am sorry if I am not in the right forum, but I am really worried about my problem...
    According to this article("http://developer.apple.com/mac/articles/internet/phpeasyway.html") I already have php , apache, and SQlite installed on my mac. My problem is when I try to enable the apache, instead of coming a localhost ( like 128.1.2.1) comes my website " your computer's website: http://nunomedi-e14....lan/ ) I donn't know what is this, I replace the index.html with index.php in sites folder.
    Can somebody help me please.

    Please look at my second post. I corrected what I said:
    macwiz1220 wrote:
    O wow. I'm sorry. I have no idea where i got that from. The file you want is in /etc/apache2/httpd.conf and the line you are looking for is *#LoadModule php5_module*
    Take a look at this article on LAMP on Leopard.

  • PHP Update and Modularization

    The PHP package was rebuilt in order to provide more functionality while
    reducing explicit dependencies and memory usage. This was achieved by
    building most PHP modules as shared objects instead of building them
    statically in.
    In addition to this it is easier to use and package external PHP modules and
    its configuration due to the possibility to have a separate config file for
    every extension. Those ini files are stored in /etc/php/conf.d/ and will
    automatically used by PHP.
    If you are using PHP on a webserver connected to the internet you might be
    interested in installing the php-suhosin package as well which was moved from
    the [community] into the [extra] repository. Along with the suhosin-patch
    which ships with the current PHP packge this extension provides some advanced
    security features. For some more information on this see
    http://www.suhosin.org.
    The packages will remain in [testing] for at least a few days. Please test
    this package with your favorite scripts and report any error or suggestions:
    http://bugs.archlinux.org
    If you update from a previous PHP setup, take care of the following changes:
    * Due to the modularization you have to enable some modules which were
      built-in before. For a quick overview compare the modules section at the
      bottom of your php.ini with the new one which will be stored as
      php.ini.pacnew
    * PHP itself does not have any explicit dependencies, but some extensions will
      only work with certain package installed. Those will be displayed during the
      installation.
    * If you are using any PHP extension from [community] or AUR you will have
      to rebuild them against this PHP version. As soon as this package arrives in
      [extra], all extensions in [community] will be updated.
    Pierre

    Pierre wrote:
    Well, you changed this in my.cnf then, right? By defaulkt Arch uses /tmp/mysql.sock (see http://cvs.archlinux.org/cgi-bin/viewcv … vs-markup). Any reason for changing this? In contrast to /tmp /var/tmp is persistent among rebooting.
    Anyway: Did this work with the previous version of php? Does phpinfo show your changes to the socket location?
    Everything was fine with the previous version. I upgraded to testing version 5.2.4-4 and mysql connection got broken. There's a silly enterprise application we use and if the mysql.sock file is in /tmp it gives security errors. That's why i need to change default config. Below is a screenshot from phpinfo.

  • Export Errors - sound echo and sound stoppage

    Hi everyone - I have a bit of an urgent need for help. When I
    preview my slides as a "movie" or export them to HTML, I am faced
    with two errors: at one minute into the script, the sound acquires
    an echo and remains for the rest of the slides. The other issue is
    that the audio simply cuts off after about 2 minutes. I experienced
    these issues separately when performing the same export and preview
    as movie functions.
    The confusing part is that when I preview individual slides,
    neither of the problems are present. So, it is likely that there is
    a problem in the export/preview functions. Can anyone help out?
    Thanks!

    Hello dcdave and welcome to our community.
    I am very sorry to hear that you have experienced audio
    problems with Adobe Captivate. In this first instance I would
    suggest that you try exporting the audio using the Advanced Audio
    Editor (Audio > Advanced Audio...) and playing the audio in the
    built-in audio recorder Sound Recorder. If you don't experience any
    problems playing the audio file here then back in Captivate, delete
    the audio file from the Slide (again you can do this using the
    Advanced Audio Editor) and then import the WAV file back onto your
    slide.
    With regard to the audio stopping, I have seen this numerous
    times. Sometimes you can stop this from occurring by simply
    selecting the audio object on the Timeline moving to the 0.0 marker
    and then back to it's original position. If that doesn't solve the
    probem then try deleting it from Timeline and importing the WAV
    file again.
    Note: You might also want to make sure that the audio file
    has been removed from the Library panel, if not then delete it here
    as well.
    Lastly, whilst you are not experiencing any duplications at
    runtime (when you preview) the most common cause for duplications
    is when you have inserted the audio to the slide and also another
    object such as a text caption. You can check this by showing the
    Advanced Audio Editor and choosing the option
    Show object level audio.
    Regards - Mark

  • Why will Bridge CC not recognize a PHP file and ONLY open with notepad instead of Dreamweaver?

    why will Bridge CC not recognize a PHP file and ONLY open with notepad instead of Dreamweaver?

    Did you set the file association in Bridge to open with Dreamweaver?

  • Using the Auth pear package with php 4 and oracle

    Hi all.
    I was wondering if anybody out there has had any success (or else) using the Auth Pear package with php 4 and Oracle.
    I'm trying to do just that but can't get it to work.
    I've found lots of examples on the web for mysql but none for oracle...
    Feedback on your experiences with this would be most appreciated.
    Thanks in advance.
    Rob

    Hi cj.
    Thanks for your advice. I came across those documents but discarded them as they didn't deal with the Auth pear package I was intending on using. I didn't want to look at other alternatives as the focus of my project was primarily on migrating existing data from a mysql setup to an oracle setup. And quickly.
    I hadn't found any documentation out there on using Auth with Oracle. All examples available on the web were mysql specific.
    I eventually got round to gutting the code from the package and finding the fix to my problem.
    Just for info, Auth expects by default an auth table containing two fields username and password. That's lowercase table and field names.
    If the table name or field names to be used differ from these then they must be explicitly defined when calling Auth. Doing so resolved my problem.
    My mysql db had all lowercase naming, while my oracle db has all uppercase naming throughout.
    It is important to note that the Auth package uses the table and field names quoted, thus referring to the table and fields in a case sensitive way.
    So for an uppercase table and fields setup the call has to be :
    $options = array(
        'dsn' => "$dsn_for_my_oracledb",
        'table' => 'AUTH',
        'usernamecol' => 'USERNAME',
        'passwordcol' => 'PASSWORD',
        'db_fields' => '*',
    $a = new Auth("DB", $options , "loginFunction");I hope this helps anybody trying to use this package with oracle. It worked great for me.
    Pear Auth package documentation:
    http://www.pear.php.net/manual/en/package.authentication.auth.intro.php
    Regards,
    Robert

  • Echo and reverb effects disabled?

    I created a project and recorded tracks with echo and reverb effects, but now when I open the project the echo and reverb effects are both disabled; I can't enable them or change their values, and the effects aren't present during playback or after export. Any idea what might be the reason/resolution for this? Thanks for your help.

    It's not so weird if you understand how it works: These echo and reverb effects are "global" effects for your song - all tracks are sent through the same effect, and with the echo and reverb sliders you only determine the mix of "wet" and "dry". That saves a lot of processing power.
    Of course you can apply additional different reverbs to each single track, but aside from computing resources it will cost you one of your effects slots.

  • My phone sounds like its breaking up when I call. Then when the other person answers all I hear is my voice echoing and all they hear is static

    My phone sounds like its breaking up when I call.
    Then when the other person answers all I hear is my voice echoing and all they hear is static
    Same happens when they call me.
    Data over the phone - to Vodaphone - is fine. I can browse. With or without wifi.
    My speaker and mic work fine.

    I think the fault just developed out of the blue. I called somebody left the phone on the table downstairs the person tried to call me back 11 times and I never heard them. When I tried to call later in the day the phone had an error.
    When try to phone my iPhone from the land line the ring tone is perfect but I get the same problem with my iphone just echoing my voice and nothing else - and the landline having loud static and nothing else.

Maybe you are looking for

  • Adobe Acrobat 8 - file updates not installing on Win 7 Professional

    How do I install MSP file updates to Adobe Acrobat after downloading them? I have just installed Acrobat 8.0 from the original installation CD on a new PC running Windows 7 Professional (64 bit) and have downloaded the update to 8.1.0 to begin with,

  • Report Query returning "No Data Found" with bind variables

    I put a simple query into Report Query: Select "bluefish". "name" as "name", "bluefish"."primary_flag" as "primary_flag", "bluefish"."status" as "status", "bluefish"."ID" as "ID" from "bluefish" "bluefish" where "bluefish"."ID" = :P3_XPRINTID When I

  • Can anyone make sense of this Kernel panic log I got?

    My computer has been acting up a lot as of late so I took it to the Apple Store (A local one, not a retail store) and the guy said the turnaround time was about 5 days, not including weekends. I decided to keep it over the weekend and reinstall OSX,

  • Headache with button

    Hi, here is a link to FLA files www.fulek.com/bug/BUG_report.rar (This is another X-file's example, FLA's are actually empty but they have 2MB each when extracted). Short description of problem: StartFile.swf has one big button which is instance of B

  • How the hell does a person share session data between JSP page and a Servle

    1. How the hell does one share session data between a servlet and a JSP page without using a bean but rather using a normal string variable. 2. When using session scope to access a bean the application complains about not finding the bean on the spec