Issue with send_form_email.php! Help!

Hello,  I can not seem to get my contact form working properly.  It was working fine so I don't know what the issue is! Any help is much appreciated!
HTML:
http://www.bigbearhideaway.com/Main%20Pages/contact.html
<form name="contactform" method="post" action="../send_form_email.php">
  <div align="center">
    <table width="450px">
      <tr>
        <td valign="top">
          <label for="first_name">First Name *</label>
          </td>
        <td valign="top">
          <input  type="text" name="first_name" maxlength="50" size="30">
          </td>
        </tr>
      <tr>
        <td valign="top"">
          <label for="last_name">Last Name *</label>
          </td>
        <td valign="top">
          <input  type="text" name="last_name" maxlength="50" size="30">
          </td>
        </tr>
      <tr>
        <td valign="top">
          <label for="email">Email Address *</label>
          </td>
        <td valign="top">
          <input  type="text" name="email" maxlength="80" size="30">
          </td>
        </tr>
      <tr>
        <td valign="top">
          <label for="telephone">Telephone Number</label>
          </td>
        <td valign="top">
          <input  type="text" name="telephone" maxlength="30" size="30">
          </td>
        </tr>
      <tr>
        <td valign="top">
          <label for="comments">Comments *</label>
          </td>
        <td valign="top">
          <textarea  name="comments" maxlength="1000" cols="25" rows="6"></textarea>
          </td>
        </tr>
      <tr>
        <td colspan="2" style="text-align:center">
          <input type="submit" value="Submit"></td>
        </tr>
    </table>
  </div>
</form>
</div>
PHP:
<?php
if(isset($_POST['email'])) {
    // EDIT THE 2 LINES BELOW AS REQUIRED
    $email_to = "[email protected]";
    $email_subject = "Big Bear Hideaway";
    function died($error) {
        // your error code can go here
        echo "We are very sorry, but there were error(s) found with the form you submitted. ";
        echo "These errors appear below.<br /><br />";
        echo $error."<br /><br />";
        echo "Please go back and fix these errors.<br /><br />";
        die();
    // validation expected data exists
    if(!isset($_POST['first_name']) ||
        !isset($_POST['last_name']) ||
        !isset($_POST['email']) ||
        !isset($_POST['telephone']) ||
        !isset($_POST['comments'])) {
        died('We are sorry, but there appears to be a problem with the form you submitted.');      
    $first_name = $_POST['first_name']; // required
    $last_name = $_POST['last_name']; // required
    $email_from = $_POST['email']; // required
    $telephone = $_POST['telephone']; // not required
    $comments = $_POST['comments']; // required
    $error_message = "";
    $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';
  if(!preg_match($email_exp,$email_from)) {
    $error_message .= 'The Email Address you entered does not appear to be valid.<br />';
    $string_exp = "/^[A-Za-z .'-]+$/";
  if(!preg_match($string_exp,$first_name)) {
    $error_message .= 'The First Name you entered does not appear to be valid.<br />';
  if(!preg_match($string_exp,$last_name)) {
    $error_message .= 'The Last Name you entered does not appear to be valid.<br />';
  if(strlen($comments) < 2) {
    $error_message .= 'The Comments you entered do not appear to be valid.<br />';
  if(strlen($error_message) > 0) {
    died($error_message);
    $email_message = "Form details below.\n\n";
    function clean_string($string) {
      $bad = array("content-type","bcc:","to:","cc:","href");
      return str_replace($bad,"",$string);
    $email_message .= "First Name: ".clean_string($first_name)."\n";
    $email_message .= "Last Name: ".clean_string($last_name)."\n";
    $email_message .= "Email: ".clean_string($email_from)."\n";
    $email_message .= "Telephone: ".clean_string($telephone)."\n";
    $email_message .= "Comments: ".clean_string($comments)."\n";
// create email headers
$headers = 'From: '.$email_from."\r\n".
'Reply-To: '.$email_from."\r\n" .
'X-Mailer: PHP/' . phpversion();
@mail($email_to, $email_subject, $email_message, $headers); 
?>
<!-- include your own success html here -->
Thank you for contacting us. We will be in touch with you very soon.
<?php
?>

($email_from) should be ($email)
Nancy O.

Similar Messages

  • Image Gallery issues with Lightbox2 - please help!

    Hello there,
    I am using Lightbox2 image gallery.  The loading.gif and close.gif aren't showing up and I think there's an issue with the path in the lightbox.js file.  The loading and close gifs are located in the Images gallery so I changed the path in the lightbox.js file accordingly - I've gone through this many many times but they are still not showing up.
    Can anyone please help me?
    My website is: www.labellepetraie.com
    Here's where I downloaded the script from: http://www.huddletogether.com/projects/lightbox2/#how
    I have tried all the path combinations mentioned in their forum but to no avail.  What am I doing wrong?
    Thank you for any help you can offer to me.
    Regards!

    Interesting.  I've just looked at your scripts, and it would appear that you have blended two versions of lightbox2 on your page,.  Is that possible?  The lightbox.js file has no function called initLightbox() in it, whereas older versions do.  So, try changing this:
    window.onload = function(){ // use this instead of <body onload …>
         MM_preloadImages('../3websites/home4.jpg','../3web sites/amenities1.jpg','../3websites/inquiry1.jpg','../3websites/rates1.jpg','../ 3websites/photos1.jpg');
            initLightbox();
    to this:
    window.onload = function(){ // use this instead of <body onload …>
         MM_preloadImages('../3websites/home4.jpg','../3web sites/amenities1.jpg','../3websites/inquiry1.jpg','../3websites/rates1.jpg','../ 3websites/photos1.jpg');
            //initLightbox();
    to see if that works.  I think so.  Turns out the initLightbox() function call that we activated by fixing the code before is no longer needed by the lightbox2 script as of v2.04!  I see that it still tells you to put that function call in the body tag, but i think that is wrong (which is very weird to say, can I really be right???).  If you look at the example page online you'll see that he uses this body tag:
    <body>
    and there are no onload's anywhere. 
    Let me know.
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • USB 2.0 issue with sleep mode--help!

    hey there,
    so i've searched this forum's board and found that it seems quite a few people have had issues with USB 2.0 and sleep mode on the mac. most of what i read, however, comes from people not being able to put the computer to sleep once new USB 2.0 cards or devices are installed. that is not the problemm I seem to be having, but is this:
    I recently purchased a Belkin USB 2.0 PCI card, and installed it on my MAC G4 tower. It seemed to work ok for a little while, but then i noticed that AFTER i put the computer to sleep, when it 'awakens' from slumber, it no longer reads the USB devices. if the device was plugged in prior to sleep mode, it sometimes reads ok. but if I try and plug in a new USB device, such as an iPod or flash drive, no dice. it doesn't mount on the Mac.
    I called Belkin tech support, and they were very helpful, but told me that the macs have had issues powering the USB PCI card once the computer is in sleep mode. they even directed me to an apple support page that has downloads that seem to address this, but they're for 10.0-10.0.4. I don't want to download that onto my mac (10.3.9) cuz im worried it might screw something up on my OS.
    I would LOVE a download link for a software updater for this if someone knows where it is, otherwise, I may have to return this thing to Belkin and go with a more mac-friendly brand. so im open to that possibility, too.
    any help would be GREATLY appreciated!!
    cheers,
    the quid pro
    Power Mac G4   Mac OS X (10.3.9)   Dual 1Ghz, 1.5 GB SDRAM

    I would either complain to Belkin for a fix if there is one or return the card and try a different one. You should not have the problem, but Belkin USB hubs and cards appear to have more problems like yours than other manufacturers' products.
    You might try Sonnet's Tango FW400/USB 2.0 multi-card, for example, or Firewire Direct's 6-port FW800/USB 2.0 card.
    You may also want to check this page for some user reports on related products.

  • Weird issue with cli php..

    I try to start my script off with
    #!/usr/bin/php -r
    So that I can not use the <?php and ?> tags, and I keep getting an error.
    Can anyone get this to work?
    I am using a custom compiled php, so maybe something is wonky on my end..
    I keep getting
    Parse error: parse error, unexpected '.' in Command line code on line 1

    Hi,
    Just add more in this issue, following testing is done.
    referring results and conclusion, you will get better view on issue 
    ====================
    Test Case - 1
    User OnCloud/O365 - Pratik Nimbalkar
    Email ID - [email protected]
    ( same as UPN)
    Room Booking Scenario - Book Room for 6.30pm to 7.30pm slot
    Results - Accepted
    Room Booking Scenario for same slot- ReBook Room for 6.30pm to 7.30pm slot
    Results - Declined
    Conclusion = working fine
    ==================
    Test Case - 2
    User OnCloud/O365 - Testsm
    Email ID - [email protected]
    ( different from UPN)
    Room Booking Scenario - Rebook Room for 6.30pm to 7.30pm slot
    Results - No Response from Room Mailbox neither Accepted nor Declined
    But we can see as booked as "Tentative"
    Room Booking Scenario for same slot- Rebook Room for 6.30pm to 7.30pm slot
    Results -No Response from Room Mailbox neither Accepted nor Declined
    But we can see as booked as "Tentative"
    =========================
    Conclusion = There is issue with booking room and not getting response while user is
    @abc.my id.
    ======================
    Note = for all other on premise users those are having @abc.co.in
    and @abc.my it is working fine. Users are getting respective correct reply from room mailboxes.
    This issue seems with only on cloud
    @abc.my users

  • Issue with tables :( Plz Help!

    Hey all!
    Never posted before on this forum and pretty new with
    dreamweaver. So I'm having the strangest issue with dreamweaver
    tables. I bought a template that I'm modifying by my self which
    isnt all that hard haha. But Here's what I ran into. Whenever I put
    one table and then another one under it and another one under it
    and I insert txt or pics in there and save it, after I upload it
    and preview it, I can only see the info from the first table.
    Everything else under it, wont show up.
    So no matter where and on what page I do it from that
    template, if I put more than 1 table down, it'll only show the info
    from the first and top table and everything else in other tables
    under it, wont show up at all (after I upload it) even thou it
    looks good on dreamweaver itself :(
    Is there an option to enable or disable something? Plz help,
    thank you all!

    "Unknown7" <[email protected]> wrote:
    > So no matter where and on what page I do it from that
    template, if I put more
    >than 1 table down, it'll only show the info from the
    first and top table and
    >everything else in other tables under it, wont show up at
    all :(
    >
    > Is there an option to enable or disable something? Plz
    help, thank you all!
    The bad news is that if you want to do anything remotely
    complicated with
    Dreamweaver you will have to learn a fair amount about HTML.
    I would virtually
    guarantee that when you put your new table in something is
    going wrong so that
    one or other table is not being defined correctly.
    As you are modifying someone else's template there is
    virtually no way to find
    out what is happening other than to examine the HTML. It is
    unlikely that
    fiddling with any Dreamweaver settings will make any
    difference.
    Every table should start with something like:
    <table width="100%" border="0" cellspacing="0"
    cellpadding="5"
    bgcolor="#e0e0ff">
    <tr align="center" valign="middle">
    <td width="9%"><a href="#Bottom">
    and end with:
    </td>
    </tr>
    </table>
    You can have more or less as many columns as you like in a
    table, (<td> ...
    </td>
    And more or less as many rows ( <tr><td> ...
    </td></tr>) as you like, but
    unless you get up to special tricks you should have the same
    number of columns
    in every row. You can put anything you like -- images, more
    tables, whatever --
    inside a cell e.g.:
    <td> image, blah, table </td>,
    but you mustn't put any content anywhere else, and every
    opening definition
    (<table>, <tr>, <td> must have a matching
    closing definition in the correct
    order.
    You can nest tables more or less indefinitely, but
    Dreamweaver Design View
    sometimes blows its top if you go more than three deep.
    HTML usually doesn't produce any error messages, but the
    effect of omitting any
    of the steps in building a page is quite unpredictable.
    Sometimes a major error
    will not produce any visible effect, but on other occasions a
    minor error will
    send the page completely haywire.
    You may care to have a look at:
    http://www.corybas.com/Technical/Wrapping.htm
    This has a series of demonstration pages illustrating what
    happens when you try
    to display increasingly complicated page layouts on narrow
    screens.
    Once you have learnt to interpret HTML, you can often learn a
    lot by inspecting
    the source code for the page (in IE click view, then Source).
    This works with
    anybody's page, so you can look at the source code for my
    pages if you wish.
    Clancy

  • Issue with Smart View Help Contents using v11.1.2.0.01

    Hi there,
    I just installed v11.1.2.0.01 (Build 003) of the Smart View add-in on a MS Windows XP SP2 PC with MS Office 2003 SP3.
    Unfortunately, the Help Contents in MS Excel does not seem to work as whenever I select Smart View > Help > Contents, nothing gets displayed. Selecting Smart View > Help > Technical Support and Smart View > Help > EPM Documentation takes me to various links on the www.oracle.com site.
    I uninstalled then re-installed this specific version a few times but to no avail. I even checked the contents of each subdirectory where Smart View has been installed but could not find any Help files whatsoever.
    1. Has anyone ever encountered this issue?
    2. If yes, what do I need to do to resolve this issue and get the Smart View Help to be displayed?
    Thanks in advance,
    JBM

    Well, reading the documentation about knowing where to find the documentation would have actually helped. At the bottom of page 10 of the Smart View ReadMe document, the following is mentioned under the "Documentation Updates" section:
    "For Smart View online help to be available, the Shared Connections URL on the Advanced page of the Options dialog box must contain an EPM Workspace URL."
    This question is now answered.
    JBM

  • Issues with styles: any help gratefully received!

    Hi all!
    I made the [perhaps reckless!] decision to use Pages as my primary word processing software for my PhD. I found a great bibliographic editor [Sente], and liked the look and feel of Pages.
    Now, 6 months, and about 10,000 words in, I am still broadly happy with my decision: apart from one thing that drives me mad! Any help would be appreciated.
    Say I copy text, for example, from the main body to a footnote. The source style is retained. No problem. So, I highlight the text and then click on one of the stlyes in my style draw. In this example, the "footnote" style I have defined. Now.... it just doesnt seem to do this operation smoothly. In this case..... it never applies the font size of the style I choose to change it to. Its driving me nuts! And when I copy text from another source into the main body, and then highlight and select a style from the draw to change... it seems to want to keep the source file, or change it to helvetica, and ignore my styles.
    This is really driving me mad, and I am thinking I should transfer all my documents to Word 2008 [which I own], but I really like Pages, and dont want to have to do this if at all possible.
    Any suggestions?
    Cheers!
    Stevie

    http://discussions.apple.com/thread.jspa?threadID=1643118&tstart=15
    +-+-+-+-+-+-+-+-+
    Worried Life Blues 2008
    +4. Discussions+
    +Apple Discussions, launched in August, 2000, have grown rapidly in usage and features. The main features include personalization, subscription capabilities and email capabilities. _For information on how to use Discussions, please visit the Discussions Help Page_. Cookies should be enabled and an Apple ID account is required if you would like to contribute to the discussions.+
    +Entering the Help and Terms of Use area you will read:+
    +*What is Apple Discussions and how can it help me?*+
    +
    Apple Discussions is a user-to-user support forum where experts and other Apple product users get together to discuss Apple products. … You can participate in discussions about various products and topics, find solutions to help you resolve issues, ask questions, get tips and advice, and more.+
    +_If you have a technical question about an Apple product, be sure to check out Apple's support resources first by consulting the application Help menu on your computer and visiting our Support site to view articles and more on our product support pages._+
    +*I have a question or issue*—+
    +how do I search for answers? _
    It's possible that your question or issue has already been answered by other members so do a search before posting a question._ On most Apple Discussions pages, you'll find a Search Discussions box in the upper right corner. Enter a search term (or terms) in the field and press Return. Your results will appear as a list of links to posts below the Search Discussions Content pane.+
    +Search tips are available here:+
    +http://discussions.apple.com/help/search-tips.html+
    +-+-+-+-+-+-+-+-+
    Yvan KOENIG (from FRANCE lundi 4 août 2008 12:27:57)

  • Again Issue with installing php 5.3.0 and accessing ABAP code from php

    I have the following initial set up:
    1.Downloaded u201CApache Friends XAMPP (Basis Package) version 1.7.2u201D.
    With this I got :
    Apache 2.2.12 (IPV6 enabled)
    MySQL 5.1.37 (Community Server) with PBXT engine 1.0.08-rc
    PHP 5.3.0 + PEAR (PEAR, Mail_Mime, MDB2, Zend)
    2.Installed the above XAMPP package.
    3.created a local test.php file and placed in htdocs folder
    3.Started the Apache server and executed the test.php file from u201Chttp://localhost/test.phpu201D. it runs absolutely fine. I can see the output in my browser. (just did an "Hello world" coding)
    4.Now I downloaded the SAPRFC (saprfc-1.4.1.All.zip)  package.
    5.In this, I got u201Cphp_saprfc_530.dllu201D which I added to my extension file where all the other dll files are present.
    6.Then I opened the u201Cphp.iniu201D file and added the above saprfc dll file to the extension directory   as u201Cextension=php_saprfc_530.dllu201D.
    7.Now I installed u201Cvcredist_x86.exeu201D.
    8.Finally I started the apache server afresh. I get the following message and the apache server is started.
    "PHP StartUp: saprfc: Unable to initialize module
      Module compiled with build ID=API20090626,TS
      PHP compiled with build ID=API20090626,TS,VC6
      These options need to match"
    i have SAPGUI installed on my PC.
    details of SAPGUI is
    release: final release 710
    file version: 7100.4.15.1047
    build: 1108370
    patch level: 15
    hotfix : 1
    Somebody please help me solve this.
    Thanks in advance,
    Pramod
    Edited by: PramodShankar B on Dec 11, 2009 11:53 AM
    Edited by: PramodShankar B on Dec 11, 2009 11:56 AM

    Pramod:
    I'm not sure which version do you need...but I would recommend you some trial an error...download the package 1.4 (All zip versions and try to find the one that suits you)...that's what I did for my PHP 5.2.4 because both PHP and the SAPRfc must have been compiled with exact the same ID.
    Greetings,
    Blag.

  • Big Issue With Safari! Help!

    Hello, I have a Toshiba laptop with Windows Vista and I decided to download apple safari web browser but I am having a big issue, every time I open Safari it pop up a window saying ''Safari has stopped working, windows will find a solution for the problem'' but it never finds any solution. please help!
    My laptop:
    Toshiba A215-S4767
    2gb ram
    AMD Turion 64 x2 mobile technology @ 2.2GHZ
    250gb HD + 80 GB external drive
    Ati Radeon X1200 with 128 mb
    High Definition 15'4 Screen
    Realtek High Definition Audio
    Please Help!

    Probably the reason you have not had a response is because within this forum there is a long list of threads that talk about the issue and a resolution...
    This is what I suggest...
    Go here... http://filehippo.com/download_safari/
    Download and install all versions up until 3.0.3..
    This should leave you with a working version of Safari... 3.0.4 for some reason will not open and run on various Windows Systems...
    I am using version 3.1 525.6 from the ADC site.. they are currently at 525.9..
    I had the same exact problem... I stayed at version 3.0.3 because of the same problem. I installed version 3.1 525.6 from ADC and had really good luck and good speed increases with application opening...
    You must follow these instructions carefully...
    Uninstall Safari from your system.. Then look for all traces with your Documents and settings Folders for Safari ... These folders and files must be deleted and completely removed from your system first.. Then start installing from Beta 1 - Version 3.0.3..
    The version I am using is downloaded from the ADC site, these versions cannot be released by anyone but ADC, and therefore I cannot link you to any of these versions...It is a violation of the ADC Membership Agreement..
    If you search the forums for threads of a similar nature you should start finding information on how to fix it for your system but read through everything first...
    Message was edited by: heath28m
    Message was edited by: heath28m

  • Issues with RoboHelp HTML Help and IE7

    I attempted to create a basic (one-topic) HTML Help file
    using RoboHelp X5 (5.0.2 update), with the topic tied to the TOC,
    index, and search navigation tools. I attempted to open the CHM on
    a PC running Windows XP / IE7, but it displayed the "page cannot be
    displayed" error.
    I tried to open the CHM file on another PC running Windows
    2000 / IE6, and it worked like a charm.
    Apparently, there is something about IE7 (or Windows XP, but
    I doubt it) that breaks RoboHelp HTML Help files. Does anyone have
    any information about this issue? Thanks!
    - Greg

    Welcome to the forum.
    The problem contrary to your belief originated under Windows
    XP.
    Click
    here for an explanation and the options.

  • Issues with digital certificates - HELP!

    I have no rational explanation, but this past week I was playing with the settings on my computer and deleted all the digital certificates in my computer.
    Since then, everytime I want to check my Yahoo! or Gmail, or any type of secure account, there is a pop-up indicating something about not having a secure certificate. I've tried to add the X509 but it just doesn't store it and the next time I reboot the same thing happens all over again.
    Can someone please help? Thank you!!

    I assume you are talking about the icon on an iPad.
    Not all apps have Airplay functionality, more will with time.
    If it's the same app sometimes showing icon, sometimes not I would suspect transient network issues losing the connection between the devices. Some of Apple's device seem a bit slow to re-establish connections if they're lost or stubbonly refuse to reconnect - occasionally this can be down to a user's network or the device at either end losing connection even if the iPad remains connected.
    There may of course be some software bugs at play.

  • Windows 8, Y55 ideapad continual clicking issue with touchpad. Help please

    For some reason, when I tap to click the item I clicked remains actively clicked when I move my hand away from the touchpad. In order to process any action, I need to move my cursor away from the button I'm trying to click. 
    Interestingly enough I tried to disable tapping to see if it would solve the issue, and tapping continued to work...which is odd. It doesn't have this issue when I click objects with a mouse, only when I use the trackpad. Please help me, I'm confused.

    hi BFG9000,
    Welcome to Lenovo Community Forums!
    You can try Uninstalling the driver of your touchpad from Device Manager, under Mice and other pointing device and make sure to put a check on Delete Driver/software prompt.
       Then try Checking the touchpad if it works ok without a driver, If it does then try downloading a driver from synaptics website.
      If not then Most likely this is a Hardware concern and you need to contact Lenovo Technical Support for assistance.
    Best Regards
    Solid Cruver
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Issue with Overall Result - Help

    Hello,
    I have a query with two restricted keyfigures (0amount used) as actual and forecast. While drilldown by fiscal period, the overall result shows totals for actual and plan separately. Business point of view, they want to have total of both (actual + remaining months of forecast). Is that possible?. If yes, anybody help me on this.  We don't want to create CKF to sum both the key figures.
    Thanks
    Viswa

    Appreciate your response Arun. Did the initial work of getting both actual and plan. Everything works and report is live now knowing that the problem of  overall result when we drill across by fiscal period. The report is very flexible/dynamic columns and users can enter multiple periods and any versions to use for various purposes. Looking for a solution without making changes to the query, somehow we can achieve/fix the overall result summation. Want to keep creating a CKF as last option.
    Thanks
    Viswa

  • USB 3.0 Hub Issue with W510 Please Help

    I tried to search for this but no luck.  I just bought a Syba 4-port USB 3.0 hub to use with my W510.  After plugging in the power and then the USB cord, the drivers installed and everything seemed fine.  After restarting the computer I noticed that I had lost Bluetooth (even the LED was off).  I tried restarting again and using the Function-F5 keys but Bluetooth wasn't even an option.  I disconnected the hub, restarted the computer, and was able to see and reenable Bluetooth.  I repeated the problem, and now have resorted to hooking up the hub to my desktop.  To make sure it wasn't a "hub" issue I tried a USB 2.0 hub with the laptop and it booted up just fine, with Bluetooth still enabled.  Also, while I didn't confirm it, somehow I think plugging the Syba hub in (AC adapter) and then inserting the USB cable actually turned my computer on...weird.  Does anyone know why this USB 3.0 hub won't let my computer boot normally?  Can anyone recommend a USB 3.0 hub that can be left plugged in and doesn't have any boot or Bluetooth issues?  I couldn't find a BIOS setting that might be the culprit.

    There appears to be a BIOS bug with the latest BIOS (1.34 for my 4318 CTO W510).  After the above failed attempt to hook up a USB 3.0 Hub I tried a different brand (Monoprice) and had exactly the same result.  You can't have a hub (with AC Adapter attached or not) to my laptop without it disabling Bluetooth at bootup (the radio is unavailable in Windows until you unplug the hub, restart the computer, and reenable with Function F5).  I've elevated the issue to Lenovo and hopefully they'll have a BIOS update...it isn't a driver issue (I don't think) as the Bluetooth gets disabled prior to Windows booting.  Has anyone else successfully been able to get a USB 3.0 hub to work, while mainting Bluetooth?  By work...I mean not having to plug and unplug everytime...you should be able to leave it plugged in, turn off the computer, turn on the computer, and everything still work.  Frustrating.

  • Issue with Java - PHP interoperability

    Hi,
    There are some converts written in PHP that can take raw wikipedia data and output a good HTML. I wanted to make use of these in my Java code.
    So in my Java Web App, I wanted to run the PHP parser, get hold of the InputStream and push it to my ServletOutputStream.
    Code Snippet:
       String command="php testparser.php Anarchism.wikimarkup";
       proc = Runtime.getRuntime().exec(command);
       InputStream in = proc.getInputStream();
       InputStreamReader isr = new InputStreamReader(in);
       BufferedReader br = new BufferedReader(isr);
       String line = null;
       while ((line = br.readLine()) != null) {
         System.out.println(line);
       }But the problem here is that the PHP Process never stops and hence the Buffer never ends. THe program is waiting in infinite loop in readLine().
    Please let me know if anyone has tried this and whats a better way to handle interoperability between PHP and Java.
    Thanks,
    Phani

    Phanikumar_Bhamidipati wrote:
    Yeah, I had a look at the document. But as per my understanding, the way the PHP engine runs is different from normal execs. I don't see how it can 'run different' and in my experience it doesn't. PHP sends output to stdout and stderr and reads from stdin. When PHP terminates it will close stdout and stderr and, if you have followed the recommendations in the reference, your readLine() will return 'null'.
    Because the same code ran fine when I automated unzipping a set of files using "bunzip2" command.If you read the article it explains a possible reason for this BUT until you implement the recommendations you will not know what is wrong.
    >
    I tried using Process.waitFor() method as well, but the result is same (Infinite Loop).This almost certainly is nothing to do with Process.waitFor() and probably everything to do with buffers filling (probably stderr).
    Until you post the code with the recommendations implemented that exhibits the same blocking problem it is a waste of time anyone responding further.

Maybe you are looking for

  • Question marks on each application?

    after i have accidentally deleted the iCal, the ical icon is still on the dock but if i tap it, it shows question mark infront of it? what does it mean? PLS help!! thanks, enyakiz

  • Can't sync music to my iphone 3g using itunes 10

    I need help!! I recently updated to itunes 10 and then when i tried to sync a message came up "An unknown error occurred (13001)". wat do i do?? I have tried reinstalling itunes. i have tried to sync it with another itunes 10 but i comes up with the

  • Creating a dynamic prepared statement

    the problem: i have a range of paratmeters coming in from a form and need to be able to create a dynamic query string to go into a prepared statement object. the problem i have is there are 2 fields year range and year. if year range is none i need t

  • Restrict upload size of documents through KM

    Hello One of the customers is implementing SAP EP KM Solutions. would like to know 2 things 1.how can we restrict the size  of the document to be uploaded to portal KM folders. 2.what 's the normal configuration for storing documents through KM.(size

  • Referenced symbol not found error

    Hello, I am using Solaris 5.6 and CC(Sun native) compiler 5.0. I build Xalan1.0 (C++ version) in Solaris and created necessary '.so' files. If I use this '.so' in my development environment, while runing my program it is showing the following error.