Error image_window.php

i have this script : image_window.php which keeps giving me
this error :
-This script must receive a valid image name!
Close This Window
when i open images.php , everything's fine , as you can see
by clicking this link :
http://therainbowpride.com/myphp2/images.php
This is my script, i looked over and over and just can't seem to
find where is the error, could it be a space ?
Can someone have a look at it , maybe an extra pair of eyes
would help me. Thank you so much
<!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=iso-8859-1" />
<title>View Image</title>
</head>
<body>
<?php # Script 11.3 - image_window.php
// Set a variable for problem reporting.
$okay = FALSE;
// Make sure an image name was passed to the script.
if (isset($_GET['image'])) {
// Get the extension of the image name.
$ext = substr ($_GET['image'], -4);
// Test if it's a valid image extension.
if ((strtolower($ext) == '.jpg') OR (strtolower($ext) ==
'jpeg') OR (strtolower($ext) == '.gif')) {
// Get the image information and display the image.
if ($image = @getimagesize ('uploads/' . $_GET['image'])) {
echo "<img src=\"uploads/{$_GET['image']}\" $image[3]
border=\"2\" />";
$okay = TRUE; // No problems.
} // End of extension IF.
} // End of isset() IF.
// If something went wrong...
if (!$okay) {
echo '<div align="center"><font color="#FF0000"
size="+1">This script must receive a valid image
name!</font></div>';
?>
<br />
<div align="center"><a href="javascript:
self.close();">Close This Window</a></div>
</body>
</html>

Problem solved. I've decided to take a 30 minute break and
when i came back i found out that in my images.php script i had the
'$' sign missing before 'image'.
Thank you guys

Similar Messages

  • Error generating PHP sample service

    Hi all,
    Running WinXP, FB4b2 (downloaded 210210), WAMP 2; Apache v2.2.11, PHP v5.2.9-2, MySQL 5.1.33.
    FB4 installed fine, only exception being the Zend framework prompted me to download the latest version of Zend once FB4 had installed an older version - I left it be, preferring to go with FB4's choice of framework.
    After creating a basic table in phpmyadmin and stepping through 'Connect to Data/Service', FB4 hangs for about 3-4 minutes (my system is fairy mean), and finally spits out "Fatal error: Maximum execution time of 30 seconds exceeded in C:\wamp\www\ZendFramework\library\Zend\Db\Adapter\Pdo\Abstract.php on line 147".
    MySQL table dump:
    FB4v2 error log, PHP log, my WAMP phpinfo file all attached but sorry couldn't find the log referred to by Shikha in post 21, "Step 2" @ http://forums.adobe.com/message/2009071#2009071.
    All help appreciated, keen to get this sucker up and running so I can explore - I'm all enthused after the Adobe REFRESH Roadshow in Auckland
    - danjah

    Hi Sudhirm,
    Thanks for your reply, I gave that a shot, initially boosting it to 120 as suggested. I got the same error after 120 passed, the FB4 error duly noted that the length of time had expired (it said 120 instead of the old 30). So I then tried at 360. I also went to bed
    When I woke up in the morning, the error was thusly:
    Server error SQLSTATE[HY000] [2013] Lost connection to  MySQL server at 'reading initial communication packet', system error: 0
    Any further thoughts? I thought maybe on the off-chance that my quals were awry, I tried every flavour of username/login to access my mysql db (reason being I didn't have u/p set up, but do now), but it's definately 'admin' and 'password'.
    - danjah
    [[Edit]]
    After further testing, and running through these steps on another machine (XPSP2, WAMP2, FB4b2), I got the same results; first the timeouts, and then the error after increasing the max execution var to 360. I really, really don't want to use my time debugging database tables or php configurations - I just want to get busy with some cool stuff. So if anyone has a wicked link that can help give me a crash course in debugging this stuff quickly, or any suggestions, I'm offering a free beer if you travel to Wellington
    [[Edit]]
    Not providing a port number in the mysqli call allows connection, I'm guessing my mysql program is not listening to port 80?

  • File not found error for php

    Today i installed php and nginx at my laptop. I found there is always a error "File not found." when I visit 127.0.0.1/index.php if I put index.php in /tmp or subfolder of /tmp.
    But if i put index.php in other folder, there is no such problem
    Is there anyone who know why?
    [hongy19@Archlinux http]$ cat /etc/nginx/nginx.conf |grep -C 3 -i tmp
            location ~ \.php$ {
                #root  /usr/share/pear;
                #root  /srv/http;
                root  /tmp/http;
                fastcgi_pass   unix:/var/run/php-fpm/php-fpm.sock;
                try_files $uri =404;
                fastcgi_index  index.php;
    [hongy19@Archlinux http]$ cat /etc/php/php.ini |grep -i open_base
    ; open_basedir, if set, limits all file operations to the defined directory
    open_basedir = /srv/http/:/home/:/usr/share/pear/:/tmp/:/tmp/http/
    [hongy19@Archlinux http]$ ls
    index.php
    [hongy19@Archlinux http]$ pwd
    /tmp/http

    Hi Dan,
    If you had searched you would have found out how to make this work.
    Search on "crdb_adoplus.dll" or "useLegacy" and you'll find the answer. As well as setting your framework to full and not the client.
    Don

  • Error calling php WS via Java client generated by JDev 10.1.3.2

    Hi guys.
    Gonna be a bit of a long one:
    I'm trying to generate a WS client for a php WS that was written for our use:
    The WSDL file looks as follows
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    - <definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:CMS" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:CMS">
    - <types>
    - <xsd:schema targetNamespace="urn:CMS">
    <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
    <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/" />
    - <xsd:complexType name="ArrayOfString">
    - <xsd:sequence>
    <xsd:element name="string" type="xsd:string" maxOccurs="unbounded" />
    </xsd:sequence>
    </xsd:complexType>
    - <xsd:complexType name="ArrayOfArrayOfString">
    - <xsd:sequence>
    <xsd:element name="ArrayOfString" type="tns:ArrayOfString" maxOccurs="unbounded" />
    </xsd:sequence>
    </xsd:complexType>
    - <xsd:complexType name="FragmentCheckInRequest">
    - <xsd:all>
    <xsd:element name="userName" type="xsd:string" />
    <xsd:element name="userPass" type="xsd:string" />
    <xsd:element name="fragData" type="xsd:base64Binary" />
    </xsd:all>
    </xsd:complexType>
    - <xsd:complexType name="FragmentCheckInReply">
    - <xsd:all>
    <xsd:element name="return" type="xsd:int" />
    </xsd:all>
    </xsd:complexType>
    - <xsd:complexType name="DataImportXMLRequest">
    - <xsd:all>
    <xsd:element name="userName" type="xsd:string" />
    <xsd:element name="userPass" type="xsd:string" />
    <xsd:element name="xmlData" type="xsd:base64Binary" />
    <xsd:element name="opts" type="tns:ArrayOfArrayOfString" />
    </xsd:all>
    </xsd:complexType>
    - <xsd:complexType name="DataImportXMLReply">
    - <xsd:all>
    <xsd:element name="return" type="xsd:int" />
    </xsd:all>
    </xsd:complexType>
    </xsd:schema>
    </types>
    - <message name="FragmentCheckInRequest">
    <part name="fragment" type="tns:FragmentCheckInRequest" />
    </message>
    - <message name="FragmentCheckInResponse">
    <part name="return" type="tns:FragmentCheckInReply" />
    </message>
    - <message name="DataImportXMLRequest">
    <part name="fragment" type="tns:DataImportXMLRequest" />
    </message>
    - <message name="DataImportXMLResponse">
    <part name="return" type="tns:DataImportXMLReply" />
    </message>
    - <portType name="CMSPortType">
    - <operation name="FragmentCheckIn">
    <documentation>Check in a Word file</documentation>
    <input message="tns:FragmentCheckInRequest" />
    <output message="tns:FragmentCheckInResponse" />
    </operation>
    - <operation name="DataImportXML">
    <documentation>Import XML data</documentation>
    <input message="tns:DataImportXMLRequest" />
    <output message="tns:DataImportXMLResponse" />
    </operation>
    </portType>
    - <binding name="CMSBinding" type="tns:CMSPortType">
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
    - <operation name="FragmentCheckIn">
    <soap:operation soapAction="urn:CMS#FragmentCheckIn" style="rpc" />
    - <input>
    <soap:body use="encoded" namespace="urn:CMS" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </input>
    - <output>
    <soap:body use="encoded" namespace="urn:CMS" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </output>
    </operation>
    - <operation name="DataImportXML">
    <soap:operation soapAction="urn:CMS#DataImportXML" style="rpc" />
    - <input>
    <soap:body use="encoded" namespace="urn:CMS" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </input>
    - <output>
    <soap:body use="encoded" namespace="urn:CMS" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
    </output>
    </operation>
    </binding>
    - <service name="CMS">
    - <port name="CMSPort" binding="tns:CMSBinding">
    <soap:address location="http://dtest.sun.ac.za/cms/cms/service/cms.php" />
    </port>
    </service>
    </definitions>
    I use Jdev 10.1.3.2 and generated the WS proxy, everything looks good. Then I go into the generated client and add in the following code:
    public static void main(String[] args) {
    try {
    cmswstest.proxy.CMSPortClient myPort = new cmswstest.proxy.CMSPortClient();
    System.out.println("calling " + myPort.getEndpoint());
    DataImportXMLRequest dr = new DataImportXMLRequest();
    String tmpXML =
    "<?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?>" +
    "<CMS_CURR_INFO_UPD>" +
    "<MSG_SEQ_NO>NATX_ 0000000000000200706201337193</MSG_SEQ_NO>" + "</CMS_CURR_INFO_UPD>";
    byte[] xmlb = tmpXML.getBytes();
    dr.setUserName("elmarm");
    dr.setUserPass("fud567");
    dr.setXmlData(xmlb);
    DataImportXMLReply repl = myPort.dataImportXML(dr);
    System.out.println("Length of XML message = " + repl.get_return());
    // Add your own code here
    } catch (Exception ex) {
    ex.printStackTrace();
    When I run the client, I get the following error message:
    calling http://dtest.sun.ac.za/cms/cms/service/cms.php
    java.rmi.RemoteException: Mime Header Content-Type: text/xml requires SOAP envelope namespace: http://schemas.xmlsoap.org/soap/envelope/; nested exception is:
         oracle.j2ee.ws.saaj.soap.SOAPVersionMismatchException: Mime Header Content-Type: text/xml requires SOAP envelope namespace: http://schemas.xmlsoap.org/soap/envelope/
         at cmswstest.proxy.runtime.CMSBinding_Stub.dataImportXML(CMSBinding_Stub.java:161)
         at cmswstest.proxy.CMSPortClient.dataImportXML(CMSPortClient.java:64)
         at cmswstest.proxy.CMSPortClient.main(CMSPortClient.java:38)
    Any ideas as to how to debug the situation. As is quite obvious, my experience with WS and SOAP is minimal at best :)
    Thanks for all the help.
    PS: I tried the same thing in Jdev 10.1.2 and got the following error:
    [SOAPException: faultCode=SOAP-ENV:Client; msg=Parsing error, response was:
    Expected &apos;EOF&apos;.; targetException=oracle.xml.parser.v2.XMLParseException: Expected 'EOF'.]
         at org.apache.soap.SOAPException.<init>(SOAPException.java:78)
         at org.apache.soap.rpc.Call.invoke(Call.java:312)
         at mypackage.CMSStub.DataImportXML(CMSStub.java:128)
         at mypackage.CMSStub.main(CMSStub.java:51)
    Elmar Matthee
    University of Stellenbosch
    South Africa

    Hi Vid,
    To be able to deploy Doc-literal Web services on 10.1.2, you have to select the J2EE 1.3 type of web services when you create the first Web Service of a project. Once you have create a 1.4 service, the dialogue is not displayed again for the given project.
    The other source you have is correct. the JAXRPC based type of Web service that is generated with JDeveloper 10.1.3 cannot be deployed on 10.1.2, as the new runtime is not available there.
    One way to get a Doc-lit service on 10.1.2 is described in Mike's blog [1]. THe WSDL file generated in 10.1.3 is a good start, as it will enable an easier migration to 10.1.3, once it's available.
    Hope this Helps,
    Eric
    [1] http://radio.weblogs.com/0132036/2003/12/07.html

  • Errors in PHP/Oracle article

    Hi,
    There are a few errors in the article dealing with PHP/Oracle located at http://otn.oracle.com/oramag/webcolumns/2003/techarticles/hull_php.html
    In the listing for the section called "How to use a database":
    - $mycursor ora_open ($conn);
    should be
    $mycursor = ora_open ($conn);
    - echo "RESULT: ora_getcolumn ($mycursor, 0), ora_getcolumn ($mycursor, 1) <br>";
    The above is not the way it works in PHP and you won't get the expected results. You can throw variables in between your double-quote delimited strings, but not function calls. You'll have to concatenate the function calls like this:
    echo "RESULT: ".ora_getcolumn ($mycursor, 0).", ".ora_getcolumn ($mycursor, 1)."<br>";

    Leendert:
    Thanks for the comments. The first one is an obvious typo. The second
    is a pretty obvious mistake which I missed while reviewing this. Although
    PHP will expand variables in a string like that, it will not handle
    function calls. How could it. I just tried it, and concatenation works
    just as you suggest. Thanks for the corrections, and we updated the
    article.
    Sean

  • Parse errors on php page...

    I am new to php and am trying to create a php form on a website I am building for a friend. The form looks like I want it to on the page.
    http://www.mosaleen.com/order.html
    It also works... sending the info to my email upon submit and redirecting me to the "Thank you for your order page".
    The code to make the form function actually rests on the thank you page... I am attaching the code below.
    http://www.mosaleen.com/Order.php
    Problem is that when I validate the php page it tells me that there are parsing errors. Specifically:
    Unable to determine parse mode
    Line 1, Column 1:character "Y" not allowed in prolog
    AND
    Line 1, Column 85:end of document in prolog
    Does anyone know where the problem is? I have checked my css sheets and they are validating just fine, so there shouldn't be any issue there. The php script was adapted from the one at  http://dreamweaverspot.com/adobe-dreamweaver-tutorial-contact-forms/ if that helps.
    <?php
    $my_email = "[email protected]";
    $continue = "thankyou.html";
    $errors = array();
    // Remove $_COOKIE elements from $_REQUEST.
    if(count($_COOKIE)){foreach(array_keys($_COOKIE) as $value){unset($_REQUEST[$value]);}}
    // Check all fields for an email header.
    function recursive_array_check_header($element_value)
    global $set;
    if(!is_array($element_value)){if(preg_match("/(%0A|%0D|\n+|\r+)(content-type:|to:|cc:|bcc: )/i",$element_value)){$set = 1;}}
    else
    foreach($element_value as $value){if($set){break;} recursive_array_check_header($value);}
    recursive_array_check_header($_REQUEST);
    if($set){$errors[] = "You cannot send an email header";}
    unset($set);
    // Validate email field.
    if(isset($_REQUEST['email']) && !empty($_REQUEST['email']))
    if(preg_match("/(%0A|%0D|\n+|\r+|:)/i",$_REQUEST['email'])){$errors[] = "Email address may not contain a new line or a colon";}
    $_REQUEST['email'] = trim($_REQUEST['email']);
    if(substr_count($_REQUEST['email'],"@") != 1 || stristr($_REQUEST['email']," ")){$errors[] = "Email address is invalid";}else{$exploded_email = explode("@",$_REQUEST['email']);if(empty($exploded_email[0]) || strlen($exploded_email[0]) > 64 || empty($exploded_email[1])){$errors[] = "Email address is invalid";}else{if(substr_count($exploded_email[1],".") == 0){$errors[] = "Email address is invalid";}else{$exploded_domain = explode(".",$exploded_email[1]);if(in_array("",$exploded_domain)){$errors[] = "Email address is invalid";}else{foreach($exploded_domain as $value){if(strlen($value) > 63 || !preg_match('/^[a-z0-9-]+$/i',$value)){$errors[] = "Email address is invalid"; break;}}}}}}
    // Check referrer is from same site.
    if(!(isset($_SERVER['HTTP_REFERER']) && !empty($_SERVER['HTTP_REFERER']) && stristr($_SERVER['HTTP_REFERER'],$_SERVER['HTTP_HOST']))){$errors[] = "You must enable referrer logging to use the form";}
    // Check for a blank form.
    function recursive_array_check_blank($element_value)
    global $set;
    if(!is_array($element_value)){if(!empty($element_value)){$set = 1;}}
    else
    foreach($element_value as $value){if($set){break;} recursive_array_check_blank($value);}
    recursive_array_check_blank($_REQUEST);
    if(!$set){$errors[] = "You cannot send a blank form";}
    unset($set);
    // Display any errors and exit if errors exist.
    if(count($errors)){foreach($errors as $value){print "$value<br>";} exit;}
    if(!defined("PHP_EOL")){define("PHP_EOL", strtoupper(substr(PHP_OS,0,3) == "WIN") ? "\r\n" : "\n");}
    // Build message.
    function build_message($request_input){if(!isset($message_output)){$message_output ="";}if(!is_array($request_input)){$message_output = $request_input;}else{foreach($request_input as $key => $value){if(!empty($value)){if(!is_numeric($key)){$message_output .= str_replace("_"," ",ucfirst($key)).": ".build_message($value).PHP_EOL.PHP_EOL;}else{$message_output .= build_message($value).", ";}}}}return rtrim($message_output,", ");}
    $message = build_message($_REQUEST);
    $message = $message . PHP_EOL.PHP_EOL."-- ".PHP_EOL."";
    $message = stripslashes($message);
    $subject = "Order from MoSaleen.com";
    $headers = "From: " . $_REQUEST['email'];
    mail($my_email,$subject,$message,$headers);
    ?>
    <!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"><!-- InstanceBegin template="/Templates/subpage.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <style type="text/css" media="all">
    <!--
    @import url("styles.css");
    -->
    </style>
    <!--[if IE 5]>
    <style type="text/css">
    #outerWrapper #subcontentWrapper #rightColumn {
      width: 220px;
    </style>
    <![endif]-->
    <!--[if IE]>
    <style type="text/css">
    #outerWrapper #subcontentWrapper #content {
      zoom: 1;
    </style>
    <![endif]-->
    </head>
    <body>
    <div id="wrapperbackground">
      <div id="outerWrapper">
        <div id="header">
          <div id="logo"><img src="images/logo2.png" alt="g" width="300" height="86" /></div>
          <div id="links"><a href="about.html">About Us</a> | <a href="contact.html">Contact Us</a> | 417.825.1498</div>
          <div class="clearFloat"></div>
        </div>
        <div id="nav">
          <ul>
            <li><a href="index.html"><span>Home</span></a></li>
            <li><a href="about.html"><span>Idler Pulley Systems</span></a></li>
            <li><a href="testimonials.html"><span>Proven Results</span></a></li>
            <li><a href="install.html"><span>Installation</span></a></li>
            <li><a href="order.html"><span>Order a System</span></a></li>
            <li><a href="contact.html"><span>Contact Us</span></a></li>
          </ul>
        </div>
        <div id="feature" style="display:none;"></div>
        <div id="subcontentWrapper">
          <div id="content"> <!-- InstanceBeginEditable name="content" -->
            <h1>Thank You!</h1>
            <p><span style="font-weight: bold">Your order has been submitted.</span> <br />
              <br />
            Please make your PayPal payment to <a href="mailto:[email protected]">[email protected]</a> for the required amount (see list below for a reminder on pricing). Once we receive your form AND payment we will confirm your order by email and include all shipping information. <span style="font-weight: bold">If additional information is required we will contact you by phone or email.</span></p>
            <p>If you have questions regarding your order or payment,  feel free to contact us at 417.825.1498.</p>
            <p><img src="images/line.jpg" alt="" width="590" height="10" class="clearFloat" /></p>
            <h1>Pricing List</h1>
            <p style="font-weight: bold"> Shipping is free on all orders!</p>
            <p>99-04 Saleen MoSaleen™ Idler Pulley System<br />
              Powder Coated with standard black pulley ($175.00)<br />
              Powder Coated with upgraded CNC aluminum anodized pulley ($225.00)<br />
              Ceramic Coated with standard black pulley ($190.00)<br />
              Ceramic Coated with upgraded CNC aluminum anodized pulley ($240.00)<br />
              <br />
              05-09 Saleen MoSaleen™ Idler Pulley System ($275.00)</p>
          <!-- InstanceEndEditable --></div>
          <div id="rightColumn">
            <div id="rightColumnContent">
               <h3>Saleen Performance Sites</h3>
             <ul>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
       <li></li>           
       <li><a href="http://www.teamjdm.com"><img src="images/jdm.png" alt="JDM Engineering" width="200" height="94" /></a></li>
                <li><a href="http://www.performanceautosport.com"><img src="images/pauto.png" alt="Performance Autosports" width="200" height="90" /></a> </li>
                <li><a href="http://www.brenspeed.com"><img src="images/bren.png" alt="Brenspeed Custom Tuning" width="200" height="82" /></a></li>
                <li><a href="http://www.stage3motorsports.com"><img src="images/stage.png" alt="Stage 3 Motorsports" width="200" height="73" /></a></li>
                <li><a href="http://www.chicanesport.com"><img src="images/chic.png" alt="Chicane Sport Tuning" width="200" height="81" /></a></li>
                <li><a href="http://www.spencerperformance.com"><img src="images/spen.png" alt="Spencer Performance" width="200" height="94" /></a></li>
              </ul>
              </div>
          </div>
          <br class="clearFloat" />
        </div>
      </div>
    </div>
    <div id="footer"><img src="http://www.justdreamweaver.com/templates/link/spacer.gif" alt="" width="1" height="1" />Copyright &copy; 2008 MoSaleen Performance, LLC <br />
    <a href="#">Site Map</a> | <a href="#">Privacy Policy</a> |
    Valid <a href="http://validator.w3.org/check?uri=referer">XHTML</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></div>
    </body>
    <!-- InstanceEnd --></html>

    I have changed the code to where the php form section is within the html of the page I created. (posted below)
    http://www.mosaleen.com/order_thanks.php
    This option gets rid of the parsing error but creates 16 errors in code when validated. It still looks right and still emails correctly.
    Is there a tutorial somewhere... or a simpler php code that would submit this form to email? It doesn't need to be fancy.  Or... if one of these options work, which one should I work with.
    Or... does it really matter that I am having the parsing error since the code looks right and is working? Not that it is clean design to leave it that way...
    I think the problem lies in trying to insert the php coding ( that submits the form to email ) inside the thank you page... but Im not sure how else to handle this. Any suggestions?
    Andrea
    <!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"><!-- InstanceBegin template="/Templates/subpage.dwt" codeOutsideHTMLIsLocked="false" -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <style type="text/css" media="all">
    <!--
    @import url("styles.css");
    -->
    </style>
    <!--[if IE 5]>
    <style type="text/css">
    #outerWrapper #subcontentWrapper #rightColumn {
      width: 220px;
    </style>
    <![endif]-->
    <!--[if IE]>
    <style type="text/css">
    #outerWrapper #subcontentWrapper #content {
      zoom: 1;
    </style>
    <![endif]-->
    </head>
    <body>
    <div id="wrapperbackground">
      <div id="outerWrapper">
        <div id="header">
          <div id="logo"><img src="images/logo2.png" alt="g" width="300" height="86" /></div>
          <div id="links"><a href="about.html">About Us</a> | <a href="contact.html">Contact Us</a> | 417.825.1498</div>
          <div class="clearFloat"></div>
        </div>
        <div id="nav">
          <ul>
            <li><a href="index.html"><span>Home</span></a></li>
            <li><a href="about.html"><span>Idler Pulley Systems</span></a></li>
            <li><a href="testimonials.html"><span>Proven Results</span></a></li>
            <li><a href="install.html"><span>Installation</span></a></li>
            <li><a href="order.html"><span>Order a System</span></a></li>
            <li><a href="contact.html"><span>Contact Us</span></a></li>
          </ul>
        </div>
        <div id="feature" style="display:none;"></div>
        <div id="subcontentWrapper">
          <div id="content"> <!-- InstanceBeginEditable name="content" -->
            <?php
    $my_email = "[email protected]";
    $continue = "thankyou.html";
    $errors = array();
    // Remove $_COOKIE elements from $_REQUEST.
    if(count($_COOKIE)){foreach(array_keys($_COOKIE) as $value){unset($_REQUEST[$value]);}}
    // Check all fields for an email header.
    function recursive_array_check_header($element_value)
    global $set;
    if(!is_array($element_value)){if(preg_match("/(%0A|%0D|\n+|\r+)(content-type:|to:|cc:|bcc: )/i",$element_value)){$set = 1;}}
    else
    foreach($element_value as $value){if($set){break;} recursive_array_check_header($value);}
    recursive_array_check_header($_REQUEST);
    if($set){$errors[] = "You cannot send an email header";}
    unset($set);
    // Validate email field.
    if(isset($_REQUEST['email']) && !empty($_REQUEST['email']))
    if(preg_match("/(%0A|%0D|\n+|\r+|:)/i",$_REQUEST['email'])){$errors[] = "Email address may not contain a new line or a colon";}
    $_REQUEST['email'] = trim($_REQUEST['email']);
    if(substr_count($_REQUEST['email'],"@") != 1 || stristr($_REQUEST['email']," ")){$errors[] = "Email address is invalid";}else{$exploded_email = explode("@",$_REQUEST['email']);if(empty($exploded_email[0]) || strlen($exploded_email[0]) > 64 || empty($exploded_email[1])){$errors[] = "Email address is invalid";}else{if(substr_count($exploded_email[1],".") == 0){$errors[] = "Email address is invalid";}else{$exploded_domain = explode(".",$exploded_email[1]);if(in_array("",$exploded_domain)){$errors[] = "Email address is invalid";}else{foreach($exploded_domain as $value){if(strlen($value) > 63 || !preg_match('/^[a-z0-9-]+$/i',$value)){$errors[] = "Email address is invalid"; break;}}}}}}
    // Check referrer is from same site.
    if(!(isset($_SERVER['HTTP_REFERER']) && !empty($_SERVER['HTTP_REFERER']) && stristr($_SERVER['HTTP_REFERER'],$_SERVER['HTTP_HOST']))){$errors[] = "You must enable referrer logging to use the form";}
    // Check for a blank form.
    function recursive_array_check_blank($element_value)
    global $set;
    if(!is_array($element_value)){if(!empty($element_value)){$set = 1;}}
    else
    foreach($element_value as $value){if($set){break;} recursive_array_check_blank($value);}
    recursive_array_check_blank($_REQUEST);
    if(!$set){$errors[] = "You cannot send a blank form";}
    unset($set);
    // Display any errors and exit if errors exist.
    if(count($errors)){foreach($errors as $value){print "$value<br>";} exit;}
    if(!defined("PHP_EOL")){define("PHP_EOL", strtoupper(substr(PHP_OS,0,3) == "WIN") ? "\r\n" : "\n");}
    // Build message.
    function build_message($request_input){if(!isset($message_output)){$message_output ="";}if(!is_array($request_input)){$message_output = $request_input;}else{foreach($request_input as $key => $value){if(!empty($value)){if(!is_numeric($key)){$message_output .= str_replace("_"," ",ucfirst($key)).": ".build_message($value).PHP_EOL.PHP_EOL;}else{$message_output .= build_message($value).", ";}}}}return rtrim($message_output,", ");}
    $message = build_message($_REQUEST);
    $message = $message . PHP_EOL.PHP_EOL."-- ".PHP_EOL."";
    $message = stripslashes($message);
    $subject = "Order from MoSaleen.com";
    $headers = "From: " . $_REQUEST['email'];
    mail($my_email,$subject,$message,$headers);
    ?>
            <h1>Thank You!</h1>
            <p><span style="font-weight: bold">Your order has been submitted.</span> <br />
                <br />
              Please make your PayPal payment to <a href="mailto:[email protected]">[email protected]</a> for the required amount (see list below for a reminder on pricing). Once we receive your form AND payment we will confirm your order by email and include all shipping information. <span style="font-weight: bold">If additional information is required we will contact you by phone or email.</span></p>
            <p>If you have questions regarding your order or payment,  feel free to contact us at 417.825.1498.</p>
            <p><img src="images/line.jpg" alt="" width="590" height="10" class="clearFloat" /></p>
            <h1>Pricing List</h1>
            <p style="font-weight: bold"> Shipping is free on all orders!</p>
            <p>99-04 Saleen MoSaleen™ Idler Pulley System<br />
              Powder Coated with standard black pulley ($175.00)<br />
              Powder Coated with upgraded CNC aluminum anodized pulley ($225.00)<br />
              Ceramic Coated with standard black pulley ($190.00)<br />
              Ceramic Coated with upgraded CNC aluminum anodized pulley ($240.00)<br />
                <br />
              05-09 Saleen MoSaleen™ Idler Pulley System ($275.00)</p>
            <p> </p>
          <!-- InstanceEndEditable --></div>
          <div id="rightColumn">
            <div id="rightColumnContent">
               <h3>Saleen Performance Sites</h3>
             <ul>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
                <li></li>
       <li></li>           
       <li><a href="http://www.teamjdm.com"><img src="images/jdm.png" alt="JDM Engineering" width="200" height="94" /></a></li>
                <li><a href="http://www.performanceautosport.com"><img src="images/pauto.png" alt="Performance Autosports" width="200" height="90" /></a> </li>
                <li><a href="http://www.brenspeed.com"><img src="images/bren.png" alt="Brenspeed Custom Tuning" width="200" height="82" /></a></li>
                <li><a href="http://www.stage3motorsports.com"><img src="images/stage.png" alt="Stage 3 Motorsports" width="200" height="73" /></a></li>
                <li><a href="http://www.chicanesport.com"><img src="images/chic.png" alt="Chicane Sport Tuning" width="200" height="81" /></a></li>
                <li><a href="http://www.spencerperformance.com"><img src="images/spen.png" alt="Spencer Performance" width="200" height="94" /></a></li>
              </ul>
            </div>
          </div>
          <br class="clearFloat" />
        </div>
      </div>
    </div>
    <div id="footer"><img src="http://www.justdreamweaver.com/templates/link/spacer.gif" alt="" width="1" height="1" />Copyright &copy; 2008 MoSaleen Performance, LLC <br />
    <a href="#">Site Map</a> | <a href="#">Privacy Policy</a> |
    Valid <a href="http://validator.w3.org/check?uri=referer">XHTML</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a></div>
    </body>
    <!-- InstanceEnd --></html>

  • Sjsws 7 sp5 on fedora core 10 compile error on php 5.2.9

    I am trying to compile php 5.2.9 and get the following error during make: sapi/nsapi/nsapi.c:62:19: error: nsapi.h: No such file or directory
    There was a post (http://developers.sun.com/webtier/reference/techart/php2.html) which seemed to address this problem, but it didn't fix the issue. Also, I have searched for nsapi.h and it is not on the system anywhere... Has anyone come across this problem or have suggestions on how to resolve it?
    OS: fedora core 10
    SJSWS: 7.0 sp5
    ./configure with-mysql with-nsapi=/opt/iplanet/current enable-libgcc with-gd=/usr --enable-sockets
    /bin/sh /root/installs/php/php-5.2.9/libtool silent preserve-dup-deps --mode=compile /root/installs/php/php-5.2.9/meta_ccld  -IZend/ -I/root/installs/php/php-5.2.9/Zend/ -DPHP_ATOM_INC -I/rootinstalls/php/php-5.2.9/include -I/root/installs/php/php-5.2.9/main -I/root/installs/php/php-5.2.9 -I/opt/iplanet/current/include -I/opt/iplanet/current/plugins/include -I/usr/include/libxml2 -I/rot/installs/php/php-5.2.9/ext/date/lib -I/usr/include/mysql -I/root/installs/php/php-5.2.9/TSRM -I/root/installs/php/php-5.2.9/Zend  -D_REENTRANT -DTHREAD=1  -I/usr/include -g -O2 -pthread -DZTS  -refer-non-pic -c /root/installs/php/php-5.2.9/Zend/zend_objects_API.c -o Zend/zend_objects_API.lo
    /bin/sh /root/installs/php/php-5.2.9/libtool silent preserve-dup-deps --mode=compile /root/installs/php/php-5.2.9/meta_ccld  -IZend/ -I/root/installs/php/php-5.2.9/Zend/ -DPHP_ATOM_INC -I/rootinstalls/php/php-5.2.9/include -I/root/installs/php/php-5.2.9/main -I/root/installs/php/php-5.2.9 -I/opt/iplanet/current/include -I/opt/iplanet/current/plugins/include -I/usr/include/libxml2 -I/rot/installs/php/php-5.2.9/ext/date/lib -I/usr/include/mysql -I/root/installs/php/php-5.2.9/TSRM -I/root/installs/php/php-5.2.9/Zend  -D_REENTRANT -DTHREAD=1  -I/usr/include -g -O2 -pthread -DZTS  -refer-non-pic -c /root/installs/php/php-5.2.9/Zend/zend_default_classes.c -o Zend/zend_default_classes.lo
    /bin/sh /root/installs/php/php-5.2.9/libtool silent preserve-dup-deps --mode=compile /root/installs/php/php-5.2.9/meta_ccld  -IZend/ -I/root/installs/php/php-5.2.9/Zend/ -DPHP_ATOM_INC -I/rootinstalls/php/php-5.2.9/include -I/root/installs/php/php-5.2.9/main -I/root/installs/php/php-5.2.9 -I/opt/iplanet/current/include -I/opt/iplanet/current/plugins/include -I/usr/include/libxml2 -I/rot/installs/php/php-5.2.9/ext/date/lib -I/usr/include/mysql -I/root/installs/php/php-5.2.9/TSRM -I/root/installs/php/php-5.2.9/Zend  -D_REENTRANT -DTHREAD=1  -I/usr/include -g -O2 -pthread -DZTS  -refer-non-pic -c /root/installs/php/php-5.2.9/Zend/zend_execute.c -o Zend/zend_execute.lo
    /bin/sh /root/installs/php/php-5.2.9/libtool silent preserve-dup-deps --mode=compile /root/installs/php/php-5.2.9/meta_ccld  -Isapi/nsapi/ -I/root/installs/php/php-5.2.9/sapi/nsapi/ -DPHP_ATOMINC -I/root/installs/php/php-5.2.9/include -I/root/installs/php/php-5.2.9/main -I/root/installs/php/php-5.2.9 -I/opt/iplanet/current/include -I/opt/iplanet/current/plugins/include -I/usr/include/lbxml2 -I/root/installs/php/php-5.2.9/ext/date/lib -I/usr/include/mysql -I/root/installs/php/php-5.2.9/TSRM -I/root/installs/php/php-5.2.9/Zend  -D_REENTRANT -DTHREAD=1  -I/usr/include -g -O2 -pthrad -DZTS  -prefer-non-pic -c /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c -o sapi/nsapi/nsapi.lo
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c:62:19: error: nsapi.h: No such file or directory
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c:81: error: expected specifier-qualifier-list before 'pblock'
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c: In function 'nsapi_strdup':
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c:130: warning: return makes pointer from integer without a cast
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c: At top level:
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c:206: error: expected ')' before '*' token
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c:207: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'nsapi_servact_uri2path'
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c:208: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'nsapi_servact_pathchecks'
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c:209: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'nsapi_servact_fileinfo'
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c:210: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'nsapi_servact_service'
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c: In function 'php_nsapi_init_dynamic_symbols':
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c:250: error: 'nsapi_servact_uri2path' undeclared (first use in this function)
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c:250: error: (Each undeclared identifier is reported only once
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c:250: error: for each function it appears in.)
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c:250: error: 'nsapi_servact_prototype' undeclared (first use in this function)
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c:250: error: expected ';' before 'dlsym'
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c:251: error: 'nsapi_servact_pathchecks' undeclared (first use in this function)
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c:251: error: expected ';' before 'dlsym'
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c:252: error: 'nsapi_servact_fileinfo' undeclared (first use in this function)
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c:252: error: expected ';' before 'dlsym'
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c:253: error: 'nsapi_servact_service' undeclared (first use in this function)
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c:253: error: expected ';' before 'dlsym'
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c: In function 'zm_info_nsapi':
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c:300: error: 'nsapi_servact_service' undeclared (first use in this function)
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c: In function 'zif_nsapi_virtual':
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c:318: error: 'Request' undeclared (first use in this function)
    /root/installs/php/php-5.2.9/sapi/nsapi/nsapi.c:318: error: 'rq' undeclared (first use in this function)
    make: *** [sapi/nsapi/nsapi.lo] Error 1

    assuming you have installed web server 7 under /opt/iplanet/current (by choosing /opt/iplanet/current) within web server 7 installer, then php 5.2.9 installation along with its nsapi plugin should go through fine by doing
    ./configure --with-nsapi=/opt/iplanet/current
    you can verify this by looking for /opt/iplanet/current/include/nsapi.h . if you didn't find there, then you web server 7 installation did not go through successfully.
    on a side note, you might always want to use the gd that bundles within php. for example, enabling this directive causes php to use the bundled gd
    '--enable-gd-jis-conv' '--enable-gd-native-ttf'
    otherwise you will run into weird issues.

  • Error Compiling php 5.1.6 with Oracle Instant Client 10.1.0.5 on Fedora 5

    Hello
    I have Oracle 10.1.0 enterprise database installed on a Windows 2003 server.
    I have another machine that has Fedora Core 5 installed on it. I downloaded:
    Apache 2.2.3
    Php 5.1.6
    OracleInstantClient 10.1.0.5 (base and skdk packages) from technet.oracle.com
    I created a directory called /usr/lib/instantclient10_1 in which I unzipped
    the files for the Oracle Instant Client and the SDK into /usr/lib/instantclient10_1.
    So inside /usr/lib/instantclient10_1 I have:
    all the unzipped filed from the base for the instant client as well as
    a directory called sdk with files inside this subdirectory.
    I compiled and installed Apache.
    I then tried to configure php using the instantclient with the configure option
    --with-oci8=instantclient/usr/lib/instantclient10_1
    The first time I did this I got the error: "link from
    /usr/lib/instantclient10_1/libclntsh.so to libclntsh.so.10
    not found"
    Well I had the libclntsh.so.10 but no such link. So I did the following:
    ln -s libclntsh.so.10.1 libclntsh.so
    I assume this was OK to do but I found it strange that I had to do this.
    Question #1 - why should I have to do this?
    I then tried to configure php again but got an error that I paste in from
    the debug.log. From this debug log you can see the configure options I gave for
    php as well as the error. It says "cannot find -lirc". Now I did put into
    /etc/ld.so.conf the line /usr/lib/gaim since that is where libirc.so is and ran
    ldconfig but it still complained. When I copied libirc.so into /usr/lib it then said there were
    lots of errors in that libirc.so. The only item in the configure options depending on lirc is
    the with-oci8.  Why does with-oci8 depend on lirc?
    I also tried the above on Red Hat AS 4.0 and got the same errors.
    Question #2 -- what do I do?
    Thank You
    Gail Lange
    Here is the debug.log in the case when libirc.so is just in /usr/lib/gaim:
    CONFIGURE: './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-track-vars'
    '--enable-inline-optimization' '--with-gd' '--with-zlib' '--enable-debug'
    '--with-oci8=instantclient,/usr/lib/instantclient10_1' '--enable-sigchild'
    CC: gcc
    CFLAGS: -I/usr/include -g -O2
    CPPFLAGS:
    CXX:
    CXXFLAGS:
    INCLUDES: -I/usr/include/libxml2 -I/home/gail/php/php-5.1.6/ext/date/lib
    -I/usr/lib/instantclient10_1/sdk/include
    LDFLAGS: -L/usr/lib -Wl,-rpath,/usr/lib/instantclient10_1 -L/usr/lib/instantclient10_1
    LIBS: -lpng -lz -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm -ldl -lm -lnsl
    -lirc -lclntsh -lxml2 -lz -lm
    DLIBS:
    SAPI: apache2handler
    PHP_RPATHS: /usr/lib/instantclient10_1
    uname -a: Linux localhost.localdomain 2.6.15-1.2054_FC5smp #1 SMP Tue Mar 14 16:05:46 EST 2006
    i686 i686 i386 GNU/Linux
    gcc -o conftest -I/usr/include -g -O2 -L/usr/lib -Wl,-rpath,/usr/lib/instantclient10_1
    -L/usr/lib/instantclient10_1 conftest.c -lpng -lz -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm
    -lxml2 -lz -lm -ldl -lm -lnsl -lirc -lclntsh -lxml2 -lz -lm 1>&5
    conftest.c: In function 'main':
    conftest.c:3: warning: incompatible implicit declaration of built-in function 'exit'
    /usr/bin/ld: cannot find -lirc
    collect2: ld returned 1 exit status
    Thanks

    To be perfectly honest, I'm not sure. Everything I could find on it had to do with IRC or some kind of remote control thing (for controlling audio/media players). Maybe if Ivan stops by he'll know what it means... he knows quite a lot about the inner workings of many of these libraries.
    http://us3.php.net/install.unix was the most useful info I could find.
    There's also this thread:
    Cannot find ld -lirc PHP Linux
    ~Jer

  • Update query error in php

    please help.
    I ran the query below in php4 + oacle9i
    <?php
    $quantity = 12345;
    $grace=20;
    $conn = ociLogon('username', 'pwd','host');
    if (!$conn) {
    $e = ocierror();
    print htmlentities($e['message']);
    exit;
    $query = "udpate product set status_dtm = (status_dtm)+20 where product_no = $quantity";
    $stid = ociparse($conn, $query);
    if (!$stid) {
    $e = ocierror($conn);
    print htmlentities($e['message']);
    exit;
    $r = ociexecute($stid, OCI_DEFAULT);
    if (!$r) {
    $e = ocierror($stid);
    echo htmlentities($e['message']);
    exit;
    print '<table border="1">';
    while (ocifetchinto($stid, $row, OCI_ASSOC)) {
    print '<tr>';
         foreach ($row as $item) {
    print '<td>'.($item?htmlentities($item):' ').'</td>';
    print '</tr>';
    print '</table>';
    ociLogoff($conn);
    ?>
    it throws error , but it throws this error
    Warning: ociexecute() [function.ociexecute]: OCIStmtExecute: ORA-00900: invalid SQL statement in C:\Program Files\IBM HTTP Server 2.0\htdocs\en_US\welcome.php on line 40
    ORA-00900: invalid SQL statement

    $query = "udpate product set status_dtm =
    (status_dtm)+20 where product_no = $quantity";It says "udpate" instead of "update" :-)

  • ORA- 12154 Error: while php connect to oracle?

    While I use OCILogon connect to Oracle9i,show error message as follow:
    Warning: ociopen_server: Error while trying to retrieve text for error ORA-12154 in /var/www/html/inc/sev.inc.php on line 57
    most of people think of its tnsname' problem,but I modify my tnsnames.ora,and sqlplus can connect with correct username and password.
    page source as follow:
    <?
    function db_connect()
    //putenv("ORACLE_SID=test");
    //putenv("NLS_LANG=SIMPLIFIED CHINESE.ZHS16CGB231280");
    putenv("ORACLE_HOME=/home/oracle/OraHome1");
    $connect = OCILogon("system","manager","test");
    if ($connect)
    return $connect;
    else
    return -1;
    ?>
    server Env: linux red hat 8.0,apache 2.0.44,php4.3.1,oracle9.2.0
    please! Thank in advance!

    Do you have more than ONE oracle homes created?
    Does your PATH env. variable correctly references the ORACLE_HOME directory?

  • Fatal error on php image upload

    I'm trying to test a popular CMS system on my mac and I'm getting the following error when trying to upload a single image.
    Fatal error: Allowed memory size of 10485760 bytes exhausted (tried to allocate 7776 bytes) in /Library/WebServer/Documents/FlashModX/assets/snippets/maxigallery/watermark/Th umbnail.class.php on line 183
    My php.ini settings are:
    memory 128
    post max size 8
    upload max filesize 2m
    max execution time 30
    max input time -1
    what do I need to change?

    thanks for googling. You know I did google and found something similar and did try to add the init to my php file but it really did not work. I was up to 80m which seems a bit much when trying to load a single 480kb file. This is why I posted here in the mac discussions.
    I normally trust the information that I get here and not necessarily from google results.

  • Where is this error in  php program ?

    for example:
    <?php
    $connection = oci_connect("apps", "apps","prod");
    $query = "
    select cu.customer_id,cu.customer_name
    from
    php_customers cu";
    $statement = oci_parse ($connection, $query);
    oci_bind_by_name($statement, "customer_id", $customer_id);
    oci_execute ($statement);
    echo $customer_id;
    echo "<table border = '1'><tr>";
    echo "<td>customer_id</td><td>customer_name</td>";
    while ($row = oci_fetch_array ($statement, OCI_BOTH)) {
    echo "<tr>";
    echo "<td>".$row[0]." </td>";
    echo "<td>".$row[1]." </td>";
    echo "</tr>";
    $query = "
    select cu.customer_id,cu.customer_name
    from
    php_customers cu
    where cu.customer_id = :customer_id";
    $statement = oci_parse ($connection, $query);
    oci_execute ($statement);
    while ($row = oci_fetch_array ($statement, OCI_BOTH)) {
    echo $row[0]." and ".$row['ID']." is the same<br>";
    echo $row[1]." and ".$row['NAME']." is the same<br>";
    ?>
    who can help me find this error ?

    Im having the same kind of problem.
    $conn = oci_pconnect('scott','tiger','');
    $query = 'create user :user_id identified by :user_password';
    $stid = oci_parse($conn, $query);
    oci_bind_by_name($stid,":user_id",$this->user_id);
    oci_bind_by_name($stid,":user_password",$this->user_password);
    oci_execute($stid);
    oci_close($conn);
    its showing error:
    Warning: oci_bind_by_name() [function.oci-bind-by-name]: ORA-01036: illegal variable name/number in D:\Program Files\Apache Group\Apache2\htdocs\user_info.php on line 4
    Warning: oci_bind_by_name() [function.oci-bind-by-name]: ORA-01036: illegal variable name/number in D:\Program Files\Apache Group\Apache2\htdocs\user_info.php on line 5
    Warning: oci_execute() [function.oci-execute]: ORA-01935: missing user or role name in D:\Program Files\Apache Group\Apache2\htdocs\user_info.php on line 6
    where is the problem.plz help.thanks.

  • Mysql.sock error with php

    Hi,
    I'm trying to get MySQL working on my Mac running OS X 10.5.1
    The server runs and I have imported one of my databases into
    it. However when I run Dreamweaver and try and add the new database
    I get this error in Dreamweaver;
    Can't connect to local MySQL server through socket
    '/var/mysql/mysql.sock' (38)
    Speaking with MySQL they have said that file is found in
    /tmp/
    I have copied it and added it where DW wants it but still no
    joy.

    there seems to be a simpler perm fix farther down the page-
    It can be much simpler.
    sudo cp /etc/php.ini.default /etc/php.ini
    sudo chmod 777 /etc/php.ini
    Open the file with a nice Editor, like PathFinder or BBEdit.
    Find the line for the mysql.default.host
    ; Default socket name for local MySQL connects. If
    empty, uses the built-in
    ; MySQL defaults.
    mysql.default_socket = /tmp/mysql.sock
    and enter: /tmp/mysql.sock
    You will then have:
    ; Default socket name for local MySQL connects. If
    empty, uses the built-in
    ; MySQL defaults.
    mysql.default_socket = /tmp/mysql.sock
    save it, go back to terminal and enter:
    sudo chmod 644 /etc/php.ini
    You then can restart Apache and SQL, or do a normal restart.
    It should work
    afterwards.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Printing user validation errors from .php file back onto a form

    Hey all. I have written a simple contact form with the extention .php. It includes the php validation and the form inputs on one page. If the input does not validate, a warning in red is printed at the top of the form after the user pushes submit. When I cut and paste the php validation code into a seperate file, the validation errors print on a blank screen. What I want is to have the same results with a seperate php file as I do when I include the php code on the form. (print errors from the seperate php validation file back onto the form).  Thanks for taking a look
    <h1><span class="bodyheader1">Contact </span><span class="bodyheader2">Us</span></h1>
        <p class="subheading">Tell us what's on your mind:</p>
        <?php
        if(isset($_POST['send_comment']))
            //Validating the comment field
            //checking if a first_name field has been entered
            if($_POST['first_name'] != "")
                //Saitizing first_name with a filter
                $_POST['first_name'] = filter_var($_POST['first_name'], FILTER_SANITIZE_STRING);
                //Checking for no input
                if($_POST['first_name'] == "")
                    //If no input, return error message
                    $errors .='Please enter a valid first name.<br/>';
            else
                //Error message
                $errors .='Please enter your first name.<br/>';
            //Validating the last_name field
            //checking if last_name has been entered
            if($_POST['last_name'] != "")
                //Saitizing last_name with a filter
                $_POST['last_name'] = filter_var($_POST['last_name'], FILTER_SANITIZE_STRING);
                //Checking for no input
                if($_POST['last_name'] == "")
                    //If no input, return error message
                    $errors .='Please enter a valid last name.<br/>';
            else
                //Error message
                $errors .='Please enter your last name.<br/>';
            if($_POST['email'] != "")
                $email = filter_var($_POST['email'], FILTER_SANITIZE_EMAIL);
                if (!filter_var($email, FILTER_VALIDATE_EMAIL))
                    $errors .= "$email is not a valid email address.<br/>";
            else
                $errors .= 'Please enter your email address.<br/>';
            //Validating the comment field
            //checking if a comment has been entered
            if($_POST['comment'] != "")
                //Saitizing comment with a filter
                $_POST['comment'] = filter_var($_POST['comment'], FILTER_SANITIZE_STRING);
                //Checking for no input
                if($_POST['comment'] == "")
                    //If no input, return error message
                    $errors .='Please enter a comment.<br/>';
            else
                //Error message
                $errors .='Please enter a comment.<br/>';
            if(!$errors)
                $mail_to = '[email protected]';
                $subject = 'Contact form ' . $_POST['first_name'];
                $message = 'First Name: ' . $_POST['first_name'] . "\n";
                $message .= 'Last Name: ' . $_POST['last_name'] . "\n";
                $message .= 'Email: ' . $_POST['email'] . "\n";
                $message .= 'Comment: ' . $_POST['comment'] . "\n\n";
                mail($mail_to, $subject, $message);
                echo "<script>document.location.href='thankyou.html'</script>";
            else
                echo '<div style="color: red">' . $errors . '<br/></div>';
    ?>
    *All fields are required<br />
    <br />
        <form name="contact" method="post" action="contact.php">
            <p>First Name: <br />
              <input name="first_name" type="text" value="<?php echo $_POST['first_name']; ?>" size="30" maxlength="50" /><br />
              <br />
              Last Name: <br />
              <input name="last_name" type="text" value="<?php echo $_POST['last_name']; ?>" size="30" maxlength="50" /><br />
              <br />
              E-mail: <br />
              <input name="email" type="text" value="<?php echo $_POST['email']; ?>" size="40" maxlength="200" /><br />
              <br />
              Comment: <br />
              <textarea name="comment" rows="5" cols="50"><?php echo $_POST['comment'];?></textarea>
              <br />
             </p>
          <p><input type="submit" name="send_comment" />
          </p>
        </form>

    You want the form to submit its results to a separate file which processes the data.  If this separate file finds errors, you want it to return control to the form page which would a) display the error messages, and b) populate the fields with the data entered?
    If that's the case, then the processing file would have to send the errors and the data back to the form page either as a) URL variables, b) a cookie, or c) entries in a database.
    Does that help?

  • Error during php recompiling

    Hi there!
    I encoutered a problem during recompiling of php_5.3.
    The log of error is
    *Undefined symbols:*
    *"res_9search", referenced from:*
    *zif_dns_checkrecord in dns.o*
    *zif_dns_getmx in dns.o*
    *"res_9mkquery", referenced from:*
    *zif_dns_getrecord in dns.o*
    *"res_9_dnexpand", referenced from:*
    *phpparserr in dns.o*
    *phpparserr in dns.o*
    *phpparserr in dns.o*
    *phpparserr in dns.o*
    *phpparserr in dns.o*
    *phpparserr in dns.o*
    *phpparserr in dns.o*
    *zif_dns_getmx in dns.o*
    *"res_9init", referenced from:*
    *zif_dns_getrecord in dns.o*
    *"res_9send", referenced from:*
    *zif_dns_getrecord in dns.o*
    *"res_9_dnskipname", referenced from:*
    *zif_dns_getmx in dns.o*
    *zif_dns_getmx in dns.o*
    *zif_dns_getrecord in dns.o*
    *ld: symbol(s) not found*
    *collect2: ld returned 1 exit status*
    *make: * [libs/libphp5.bundle] Error 1*
    before do make, I use this configuration options:
    *./configure --prefix=/usr/local/php5 --mandir=/usr/share/man --infodir=/usr/share/info --sysconfdir=/etc --with-config-file-path=/etc --with-zlib --with-zlib-dir=/usr --with-openssl --without-iconv --enable-exif --enable-ftp --enable-mbstring --enable-mbregex --enable-sockets --with-mysql=/usr/local/mysql --with-pdo-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-apxs2=/usr/sbin/apxs --with-mcrypt*
    Can somebody help me?
    How can I fix it?

    Hi,
    While importing, please make sure that the name of the php class and the file name are the same.
    In this case, if the php file name is ora.php, then the php class should also be named "ora".
    Hope this helps.
    Thanks,
    Sudhir

Maybe you are looking for

  • How to Check whether incoming field is Alpha or Nuemeric in Mapping

    Hi all, I have the logic like this If the incoming Location code value is totally Alpha means i have to concatenate  Location code and the last three digits of Delivery No. else pass the location code as it is Regards

  • ITunes cannot find my music files and I do not have the the files on my computer

    My sister got a new computer and put music files from old iTunes onto external hard drive and then put it directly into iTunes library on new computer. The music from old computer and hard drive got deleted. She synced her iPod with iTunes. Come to f

  • (itunes an unknown error occured (-42110)

    when trying to restore back up on my wifes new phone an error occured (itunes an unknown error occured (-42110)). I did not have any problem when restoring backup on my new phone. How can I fix this. any recomended software fix. I am hoping that the

  • Using Fault Message Type in BPM

    Hi, In my BPM Scenario, I am using a synchronous send step in which I am using a fault message type.For giving the container for the fault message in the Properties area of the send step, I want to define a container corresponding to the Fault messag

  • Assigning an instance to someone else

    Hi All Assume there are two roles "Employee" and "Manager" and four participants say E1, E2, E3 and M1 E1,E2,E3 have Employee role M1 has Manager role Suppose there are two instances I1 and I2 assigned to E1. Now E1 goes on leave or leaves the compan