Registration index.php and script

HI all,
I have a page which is index.php, on this page I have created some basic text fields so that users can register with my site, I have also created a datbase on phpmyadmin via 123.reg, I'm struggling to understand how I know link the text fileds to the data base, im now using filezilla along side of DW CS6
Can anyone off some easy to follow guidance on this please?
Thanks in advance
ps, new to this so appreciate the help.

Hi,
I have now logged into PHPMyAdmin and tried to import the SQL file, but it doesn't load the database, so I have tried to copy the query and enter it direct into PHPMyAdmin on the SQL tab hoping it would create a new data base but its saying there is still something wrong, I have copied the query below, can anyone see any issues with it?
Thanks
-- Database: `login_1b78fksgjs`
-- Table structure for table `users`
CREATETABLEIFNOTEXISTS`users` ( 
`ID` int( 11)NOTNULLAUTO_INCREMENT ,
`First Name` varchar( 20)COLLATE latin1_general_ci NOTNULL ,
`Last Name` varchar( 20)COLLATE latin1_general_ci NOTNULL ,
`Age` int( 11)NOTNULL ,
`Country` varchar( 30)COLLATE latin1_general_ci NOTNULL ,
`E-mail Address` varchar( 40)COLLATE latin1_general_ci NOTNULL ,
`Confirm E-Mail Address` varchar( 1024)COLLATE latin1_general_ci NOTNULL ,
`Password` varchar( 25)COLLATE latin1_general_ci NOTNULL ,
`Active` int( 11)NOTNULL DEFAULT'0',
PRIMARYKEY (`ID`)
) ENGINE=MYISAMDEFAULT CHARSET= latin1 COLLATE= latin1_general_ci AUTO_INCREMENT=2;

Similar Messages

  • 'unable to connect' and 'localhost' and index.php and dreamweaverCC

    Hi. 
    I am developing a Web Site and index.php is my point of entry.
    Document Root Library/WebServer/Documents
    so my path is: Library/WebServer/Documents/dwwdSite
    httpd.conf file is modified to add index.php  and have it listed first.
    <IfModule dir_module>
    DirectoryIndex   index.php   index.html
    <IfModule>
    Troubleshooting:
    I was using Netbeans IDE and when I ran index.php it opened in the browser.
    When I launched 'any' of my index.php files from Netbeans IDE, they opened correctly in the brower
    I am now using DreamweaverCC and when I run the index.php Error Message ' Unable to Connect'.
    For the last 2 days I have been working on this and I am completely stuck.
    This morning I thought of another way to test the 'unable to connect' error.
    I decided to copy this same file into Netbeans IDE and I NOW get the same Error Message ' Unable to Connect'
    when running index.php from Netbeans.
    Somehow, my settings are not correctly configured anymore.
    Here are my screenshots from Dreamweaver > manage sites.
    I believe that this is a rather simple fix that I am somehow not seeing.
    Maybe some can spot some mistake.
    I appreciate your help and explanation.

    Site window settings.
    Site Name: dwwdSite
    Local site folder: /Library/WebServer/Documents/dwwdSite
    Server window settings.
    Server Name: testing Server
    Address: Macintosh HD/Library/WebServer/Documents/dwwdSite
    Connect using: Local/network
    Testing: yes (checked)
    Server folder: /Library/WebServer/Documents/dwwdSite
    (I also tried this: Server folder: /Library/WebServer/Documents)
    Web URL: http://www.localhost/dwwdSite
    Server Advanced tab: (within server window settings)
    Testing server: PHP MySQL
    Advanced Settings window.
    Local info: Web URL: http://www.localhost/dwwdSite
    Enable cache: yes (checked)

  • 'unable to connect' and  index.php

    Hi. 
    I am developing a Web Site and index.php is my point of entry.
    Document Root     Library/WebServer/Documents
    so my path is:       Library/WebServer/Documents/dwwdSite
    httpd.conf file is modified to add index.php  and have it listed first.
    <IfModule dir_module>
    DirectoryIndex   index.php   index.html
    <IfModule>
    Troubleshooting:
    I was using Netbeans IDE and when I ran index.php it opened in the browser.
    When I launched 'any' of my index.php files from Netbeans IDE, they opened correctly in the brower
    I am NOW using DreamweaverCC and when I run the index.php Error Message ' Unable to Connect'.
    For the last 2 days I have been working on this and I am completely stuck.
    This morning I thought of another way to test the 'unable to connect' error.
    I decided to copy this same file into Netbeans IDE and I NOW get the same Error Message ' Unable to Connect'
    when running index.php from Netbeans.
    Somehow, my settings are not correctly configured anymore.
    Here are my screenshots from Dreamweaver > manage sites.
    I believe that this is a rather simple fix that I am somehow not seeing.
    Maybe some can spot some mistake.
    I appreciate your help and explanation.

    Hi Sudarshan.
    You have been very kind and very clear in your explanation.
    One of the very best that I have ever communicated with on this forum !
    I have checked many, many things.
    I wanted to make certain that I killed apache and restarted it.
    I do not think it is RUNNING at all.
    1.
    myNameMacBookPro:~ myName$ pwd
    /Users/myName
    2.
    myNameMacBookPro:~ myName$ ps -ax | grep http
    1892 ttys000    0:00.00 grep http
    3.
    myNameMacBookPro:  myName$ hostname
    local
    4.
    myNameMacBookPro:etc myName$ cd apache2
    reginaMacBookPro:apache2 myName$ ls
    extra            httpd.conf.pre-update    mime.types        other
    httpd.conf        magic            original        users
    5.
    myNameMacBookPro:apache2 myName$ sudo nano httpd.conf
    myNameMacBookPro:apache2 myName$ sudo apachectl -k restart
    Syntax error on line 1 of /private/etc/apache2/users/myNameBU.conf:
    Invalid command '{\\rtf1\\ansi\\ansicpg1252\\cocoartf1187\\cocoasubrtf370', perhaps misspelled or defined by a module not included in the server configuration
    httpd not running, trying to start
    myNameMacBookPro:apache2 myName$
    6.
    The above code may be a hint at part of the problem.
    I created myNameBU.conf   as a backup when I was editing the file.
    QUESTION.  Why is /private/etc/apache2/users/myNameBU.conf:
    being referenced above ?
    7.
    I scanned my ports from preferences and found these two which I believe are what you stated they should be.
    port 80 is html
    port 8080 is html-alt
    8.
    I have modified this line and tried it both ways restarting apachectl each time.
    AllowOverride None
    AllowOverride All
    9.
    And here is a part of my httpd.conf.
    excerpts.
    httpd.conf
    # User/Group: The name (or #number) of the user/group to run httpd as.
    # It is usually good practice to create a dedicated user and group for
    # running httpd, as with most system services.
    User _www
    Group _www
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    DocumentRoot "/Library/WebServer/Documents"
    # Each directory to which Apache has access can be configured with respect
    # to which services and features are allowed and/or disabled in that
    # directory (and its subdirectories).
    # First, we configure the "default" to be a very restrictive set of
    # features.
    <Directory />
        Options FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
    </Directory>
    10.
    I took a look at this too.
    usr/bin
    #path to httpd binary including options if necessary
    HTTPD = "usr/sgin/httpd"
    # pick up any environmental variables if test - f /usr/sbin/envvars; then ./usr/sbin/envvars
    fi
    STATUSURL = "http://localhost:80/server-status
    11.
    Just a reminder.
    I started writing .php scripts with Netbeans IDE.
    The programs ran:  I got output in the brower.  Things worked just fine !
    I started writing .php scripts with DreamweaverCC.
    The programs NEVER ran.
    I have always gotten 'Unable to Connect"
    Firefox/Safari can't establish a connection to the server at localhost.'
    12.
    QUESTION.
    At one point I was on the phone with a member of the Adobe Technical Support Team.
    They connect to my desktop (only) remotely.  I am very cautious about this.
    Could something have been inadvertently changed when they did this ?
    They do need to connect through a PORT - yes ?
    This is very frustrating and I am loosing days of work.
    I want to get back to Web Development
    I love Adobe products but this should not be such a huge obstacle.
    When I called Technical support (after much troubleshooting individually and on this forum)
    the fellow told me that the ONLY support FTP - not LOCALHOST.
    This makes no sense.  People develop 'locally' then put it ftp it in the production stage.
    Again, I appreciate your assistance.

  • Apache does not find index.php if not explicitly stated in URL

    I have googled for long over this (mod_dir ?) problem without success:
    My Apache is configured such that it fails to open this link (without trailing slash):
    http://bioinfo.tg.fh-giessen.de/cancer
    However, it manages to open if the trailing slash or the full path is given:
    http://bioinfo.tg.fh-giessen.de/cancer/
    http://bioinfo.tg.fh-giessen.de/cancer/index.php
    (But one directory above this is not a problem, both
    http://bioinfo.tg.fh-giessen.de/
    http://bioinfo.tg.fh-giessen.de
    are resolved. ???!)
    The relevant settings in httpd.conf is given below. Anybody ?
    <Directory >
    Options Indexes FollowSymLinks
    Allow from All
    Order Allow,Deny
    AllowOverride All Options
    </Directory>
    <IfModule mod_dir.c>
    DirectoryIndex index.html Einfuehrung.html index.php
    </IfModule>

    No need to put it within the <ifmodule mod_dir>
    Just slap this at the verry bottom of httpd.conf after every other part of the code!
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    DirectoryIndex index.html index.php
    and bob's your uncle and maybe your farther too

  • Two WP themes in Dwvr -root level index.php issues

    If someone could point me in the right direction. I had been editing a wordpress theme based on Brian Wood's tutorial. Now I set up a new Dwvr site and want to edit a different theme, but the root- level index.php and the theme level index.php or that custom home.php still reflect the old theme when I try to view it at //localhost. I have WordPress installed in my root-level folder. Do I need to change the file structure, or is this a database configuration issue? Thank you.

    I understand child themes as an extention of a stylesheet. It's the div structure, and the ability to manipulate divs that just isn't clear in WordPress. If I'm not mistaken, it seems that templates are more or less includes, and that there is overlap between them, and the div architecture throughout the entire theme. The tutorial link from Nancy is newer to me, in terms of applying thematics, I'll have to look at it in greater detail some other time. Is the tutorial: http://www.adobe.com/devnet/dreamweaver/articles/dw_wordpress_pt1.html just very outdated? I like doing things in Dreamweaver, if I can, just for fun.
    Update: So a child theme can manipulate the structure of a theme, but generally within the limitations of that theme. For example, the twenty-twelve theme allows for a number of columns, which I can manipulate based on my choice, and the child theme. I am guessing it would be ludicrous to do something completely different from the general structure of that theme though. In that case I would look for a theme similar to what my end goal is, or then I would have to be an expert. Still wondering about that Adobe tut. though.

  • When I try to click on a download link for a .pdf file Firefox does not recognize the MIME type and tries to download the file as "index.php"

    When visiting a site I frequent I tried to download a linked .pdf file. Previously I've used Firefox 7.0.1 to download the link with no problem. Using Firefox 8 however I the browser does not recognize the .pdf link's mime type. Instead of recognizing the download link as a .pdf file Firefox 8 tries to download it as "index.php". Firefox 8 does this with .doc files and .txt files as well. When I downgrade to 7.0.1 again the problem disappears.

    Hi hakmacpace,
    I'd try starting Firefox in [[Safe Mode]]. If you don't have the issue while all of your add-ons, extensions, and themes are disabled, you can try adding them back in one by one until you find the culprit. You should look at the [https://support.mozilla.org/en-US/kb/Troubleshooting-extensions-themes Extensions and Themes troubleshooting guide ] and the [[Troubleshooting plugins]] article as well.
    You could also try [https://support.mozilla.org/en-US/kb/Managing-profiles?s=create+a+new+profile&r=2&e=es&as=s#w_creating-a-profile Creating a new profile].
    Hopefully this helps!

  • MariaDB, PHP, and mysql_connect() issue on Installation scripts

    I searched for this issue and turned out nothing..
    I am using an installation script on my web server and i get this error:
    function mysql_connect() not found:
    Your system does not appear to have mysql available within php
    I followed the wiki and have uncommented the following lines
    extension=pdo_mysql.so
    extension=mysqli.so
    extension=mysql.so
    I have also restarted the httpd daemon several times. I am using MariaDB because I know arch is dropping mysql. I followed the MariaDB wiki too and have it set-up properly.
    Here is my "mysqli" section of phpinfo()
    MysqlI Support    enabled
    Client API library version     mysqlnd 5.0.10 - 20111026 - $Id: e707c415db32080b3752b232487a435ee0372157 $
    Active Persistent Links     0
    Inactive Persistent Links     0
    Active Links     0
    Directive    Local Value    Master Value
    mysqli.allow_local_infile    On    On
    mysqli.allow_persistent    On    On
    mysqli.default_host    no value    no value
    mysqli.default_port    3306    3306
    mysqli.default_pw    no value    no value
    mysqli.default_socket    /var/run/mysqld/mysqld.sock    /var/run/mysqld/mysqld.sock
    mysqli.default_user    no value    no value
    mysqli.max_links    Unlimited    Unlimited
    mysqli.max_persistent    Unlimited    Unlimited
    mysqli.reconnect    Off    Off
    and here is "mysqlnd" in phpinfo()
    mysqlnd
    mysqlnd    enabled
    Version     mysqlnd 5.0.10 - 20111026 - $Id: e707c415db32080b3752b232487a435ee0372157 $
    Compression     supported
    SSL     supported
    Command buffer size     4096
    Read buffer size     32768
    Read timeout     31536000
    Collecting statistics     Yes
    Collecting memory statistics     No
    Tracing     n/a
    Loaded plugins     mysqlnd,example,debug_trace,auth_plugin_mysql_native_password,auth_plugin_mysql_clear_password
    API Extensions     mysqli
    MySQL is running as I have set-up a database and user for this installation script.

    I dropped to the command line and tried to run php and realized that mysql.so was named mssql.so..
    so for anyone that has this issue, when you install php, unless they change it next release, that's a typo you have to fix when uncommented the mysql extension
    Last edited by evil (2013-03-31 19:34:12)

  • PHP AND ACTION SCRIPT

    Hello Experts,
      I am trying to make communication between FMS server and PHP (Linux server). As I am working on a video recording application I want to move the recorded video file from the FMS server to my PHP (Linux server). I am trying to connect to FMS server using rtmp path through PHP script but unable to establish connection.

    Ben,
    At the end of the 29:43 minute Part One video, starting at 28:28 minutes,
    he says, "If you are watching this on YouTube there will be a link to click
    in the subscription box and it will take you to a web page where you will
    be able to download the PHP Java script and form validation processing
    scripts you will need to complete Part Two of this tutorial."
    So I did all that but could not find the Contact Form Validation download
    link! The tutorial is using Dreamweaver CS5 so do you think Adobe deleted
    the Contact Form Validation file because it is no longer needed with CS6?
    I will see how far I get in Part Two, but let me know if you know what I
    should do.
    Thank you,
    Rick

  • Getting stylesheets to work in header.php and files associated with it

    Let's say I created a header.php file in my includes folder.  And I include it in my index.php file in the site root directory.
    Then in the header.php file, I have a link to the style sheet. 
    The issue I've always found is that you can't get the header.php file to apply the stylesheet.
    I can get it to work using global links, however I don't want to do that as I'll have to undo them before I upload the site.  (And I forget....)
    So anyways, I came up with this code today in an attempt to overcome this.  Here is my header file so far:
    "; } else           echo ""; ?>  
    So here is what it is doing:
    1. It is creating a variable called $directory which is equal to the current directory.
    2. Then it is creating another variable called $currentFolder which is equal to whether or not the variable $directory contains the word "includes".
    3. Then it says if $currentFolder is NOT false then it has the location of the stylesheet in relation to the header.php file.
    4. Else - if it IS false then the stylesheet is located in a location in relation to files in my root directory.
    This works perfectly fine....in Live view.  Both the header.php and index.php will format the header in live view.  Neither though will format it in Design view.  Which sucks cause I was pretty happy that I came up with this code on my own.
    The reason it isn't working in Design View - I realize now - is because Dreamweaver won't process that script in Design View. 
    Does anyone know of a way to get this script to run in Design View?  Or maybe some suggestions on editing this code to get it to work in Design View?
    Thanks!

    >The issue I've always found is that you can't get the header.php file to apply the stylesheet.
    Right. That's because, and it seems you understand this already, the css file relative location is different from the point of view of the header file, and the parent file. Since the header file is included in the parent at the server, the client then sees the css file in the wrong location.
    The solution is to use Design time style sheets. This will apply the css to the page only in design time - it won't actually insert the css file into the code. So, insert the css reference into the header file from the point of view of the parent - index.html. Then add a design time style sheet. That should work.

  • Need help with PHP mail script [was: Can someone please help me?]

    I'm trying to collect data from a form and email it.  I'm using form2mail.php and the problem is that the email is not collecting the form info and it has the same email address in the From: and To: lines. I'm really stuck and would appreciate any help.
    Here is the HTML code:
    <!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>Contact Us</title>
    <style type="text/css">
    <!--
    .style1 {font-family: Verdana, Arial, Helvetica, sans-serif}
    .style2 {
    font-size: 14px;
    color: #000000;
    body {
    background-color: #FFFFFF;
    body,td,th {
    color: #CC3300;
    .style3 {font-size: 14px; font-weight: bold; }
    .style6 {font-size: 18px}
    .style7 {font-size: 16px}
    .style8 {font-size: 16px; font-family: Verdana, Arial, Helvetica, sans-serif; }
    .style9 {font-size: 16px; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; }
    .style10 {color: #000000}
    -->
    </style>
    </head>
    <body>
    <div align="center"><img src="nav2.jpg" alt="nav bar" width="698" height="91" border="0" usemap="#Map2" />
      <map name="Map2" id="Map2">
      <area shape="rect" coords="560,9,684,38" href="accessories.html" />
    <area shape="rect" coords="456,8,548,38" href="contact.html" />
    <area shape="rect" coords="305,8,435,40" href="photog.html" />
    <area shape="rect" coords="187,9,283,39" href="services.html" />
    <area shape="rect" coords="81,10,167,39" href="aboutus.html" />
    <area shape="rect" coords="5,10,68,39" href="index.html" />
    </map>
      <map name="Map" id="Map">
        <area shape="rect" coords="9,9,69,39" href="index.html" />
        <area shape="rect" coords="83,11,165,39" href="aboutus.html" />
        <area shape="rect" coords="182,9,285,38" href="services.html" />
        <area shape="rect" coords="436,14,560,37" href="contact.html" />
        <area shape="rect" coords="563,14,682,38" href="accessories.html" />
      </map>
    </div>
    <p> </p>
    <form id="TheForm" name="TheForm" action="form2mail.php" method="post">
      <p align="center" class="style2">P<span class="style1">lease fill out form below for a &quot;free no obligation quote&quot; then click submit.</span></p>
      <p align="center" class="style3">(*Required Information)</p>
      <div align="center">
        <pre><strong><span class="style8">*Contact Name</span> </strong><input name="name" type="text" id="name" />
    <span class="style8"><strong>
    Business Name </strong></span><input name="bn" type="text" id="bn" />
    <span class="style8"><strong>*Phone Number <input type="text" name="first" size="3" onFocus="this.value='';"
        onKeyup="checkNumber(this.value); autoTab(this, document.TheForm.second);" maxlength="3" value="###" /> - <input type="text" name="second" size="3" onFocus="this.value='';" onKeyup="checkNumber(this.value); autoTab(this, document.TheForm.third);" maxlength="3" value="###" /> - <input type="text" name="third" size="4" onFocus="this.value='';" onKeyup="checkNumber(this.value); autoTab(this, document.TheForm.fourth);" maxlength="4" value="####"/> </strong></span>
    <strong><span class="style1">*</span><span class="style8">Email Address</span> <input name="email" type="text" id="email" />     </strong> </pre>
        <label><span class="style9">*Re-enter to confirm</span>
        <input name="emx" type="text" id="emx" /></label><br /><br /><span class="style9">
    <label></label>
        </span>
        <p><span class="style9">*Best time to call </span>
          <select name="name1[]" multiple size="1" >
            <option>8am-9am</option>
            <option>9am-10am</option>
            <option>10am-11am</option>
            <option>11am-12pm</option>
            <option>12pm-1pm</option>
            <option>1pm-2pm</option>
            <option>2pm-3pm</option>
            <option>3pm-4pm</option>
            <option>4pm-5pm</option>
            <option>5pm-6pm</option>
            <option>6pm-7pm</option>
            <option>7pm-8pm</option>
          </select>
          <br />
          <br />
          <span class="style9">Type of Location</span>
          <select name="name2[]" multiple size="1" >
            <option>Residential</option>
            <option>Commercial</option>
          </select>
          <br />
          <br />
            <span class="style1"><br />
            <strong><br />
              <span class="style6">*Type of Services Requested:</span></strong><br />
            </span><strong><span class="style10">(check all that apply)</span><br />
                </strong><br />
                <span class="style7"><span class="style1"><strong>Janitorial cleaning</strong></span>
                <input type="checkbox" name="checkbox[]" value="checkbox" multiple/>
                <br />
                </span><strong><br />
                  <span class="style8">Mobile Auto Detailing</span>
                <input type="checkbox" name="checkbox2[]" value="checkbox" multiple/>
                <br />
                <br />
                  </strong><span class="style9">Moving/Hauling</span>
          <input type="checkbox" name="checkbox3[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Pressure washing</span>
          <input type="checkbox" name="checkbox4[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Window washing</span>
          <input type="checkbox" name="checkbox5[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Window Tinting</span>
          <input type="checkbox" name="checkbox6[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Boat cleaning</span>
          <input type="checkbox" name="checkbox7[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">RV cleaning</span>
          <input type="checkbox" name="checkbox8[]" value="checkbox" multiple/>
          <br />
          <br />
                  <span class="style9">Motorcycle cleaning</span>
          <input type="checkbox" name="checkbox9[]" value="checkbox" multiple/>
          <br />
          <br />
          <br />
          <br />
          <input name="SB"  type="button" class="style9" value="Submit" onClick="sendOff();">
        </p>
      </div></label>
      <script language="JavaScript1.2">
    // (C) 2000 www.CodeLifter.com
    // http://www.codelifter.com
    // Free for all users, but leave in this  header
    var good;
    function checkEmailAddress(field) {
    // Note: The next expression must be all on one line...
    //       allow no spaces, linefeeds, or carriage returns!
    var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org) |(\..{2,2}))$)\b/gi);
    if (goodEmail){
       good = true
    } else {
       alert('Please enter a valid e-mail address.')
       field.focus()
       field.select()
       good = false
    function autoTab(startPoint,endPoint){
    if (startPoint.getAttribute&&startPoint.value.length==startPoint.getAttribute("max length"))
    endPoint.focus();
    function checkNumber(phoneNumber){
    var x=phoneNumber;
    var phoneNumber=/(^\d+$)|(^\d+\.\d+$)/
    if (phoneNumber.test(x))
    testResult=true
    else{
    alert("Please enter a valid number.")
    phoneNumber.focus();
    phoneNumber.value="";
    testResult=false
    return (testResult)
    function sendOff(){
       namecheck = document.TheForm.name.value   
       if (namecheck.length <1) {
          alert('Please enter your name.')
          return
       good = false
       checkEmailAddress(document.TheForm.email)
       if ((document.TheForm.email.value ==
            document.TheForm.emx.value)&&(good)){
          // This is where you put your action
          // if name and email addresses are good.
          // We show an alert box, here; but you can
          // use a window.location= 'http://address'
          // to call a subsequent html page,
          // or a Perl script, etc.
          window.location= 'form2mail.php';
       if ((document.TheForm.email.value !=
              document.TheForm.emx.value)&&(good)){
              alert('Both e-mail address entries must match.')
    </script>
    </form>
    <p> </p>
    </body>
    </html>
    and here is the form2mail.php:
    <?php
    # You can use this script to submit your forms or to receive orders by email.
    $MailToAddress = "[email protected]"; // your email address
    $redirectURL = "http://www.chucksmobile.com/thankyou.html"; // the URL of the thank you page.
    $MailSubject = "[Customer Contact Info]"; // the subject of the email
    $sendHTML = FALSE; //set to "false" to receive Plain TEXT e-mail
    $serverCheck = FALSE; // if, for some reason you can't send e-mails, set this to "false"
    # copyright 2006 Web4Future.com =================== READ THIS ===================================================
    # If you are asking for a name and an email address in your form, you can name the input fields "name" and "email".
    # If you do this, the message will apear to come from that email address and you can simply click the reply button to answer it.
    # To block an IP, simply add it to the blockip.txt text file.
    # CHMOD 777 the blockip.txt file (run "CHMOD 777 blockip.txt", without the double quotes)
    # This is needed because the script tries to block the IP that tried to hack it
    # If you have a multiple selection box or multiple checkboxes, you MUST name the multiple list box or checkbox as "name[]" instead of just "name"
    # you must also add "multiple" at the end of the tag like this: <select name="myselectname[]" multiple>
    # you have to do the same with checkboxes
    Web4Future Easiest Form2Mail (GPL).
    Copyright (C) 1998-2006 Web4Future.com All Rights Reserved.
    http://www.Web4Future.com/
    This script was written by George L. & Calin S. from Web4Future.com
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.
    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
    # DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING ===================================================
    $w4fver =  "2.2";
    $ip = ($_SERVER['HTTP_X_FORWARDED_FOR'] == "" ? $_SERVER['REMOTE_ADDR'] : $_SERVER['HTTP_X_FORWARDED_FOR']);
    //function blockIP
    function blockip($ip) {
    $handle = @fopen("blockip.txt", 'a');
    @fwrite($handle, $ip."\n");
    @fclose($handle);
    $w4fx = stristr(file_get_contents('blockip.txt'),getenv('REMOTE_ADDR'));
    if ($serverCheck) {
    if (preg_match ("/".str_replace("www.", "", $_SERVER["SERVER_NAME"])."/i", $_SERVER["HTTP_REFERER"])) { $w4fy = TRUE; } else { $w4fy = FALSE; }
    } else { $w4fy = TRUE; }
    if (($w4fy === TRUE) && ($w4fx === FALSE)) {
    $w4fMessage = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"><html>\n<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"></head><body><font face=3Dverdana size=3D2>";
    if (count($_GET) >0) {
    reset($_GET);
    while(list($key, $val) = each($_GET)) {
      $GLOBALS[$key] = $val;
      if (is_array($val)) {
       $w4fMessage .= "<b>$key:</b> ";
       foreach ($val as $vala) {
        $vala =stripslashes($vala);
        $vala = htmlspecialchars($vala);
        if (trim($vala)) { if (stristr($vala,"Content-Type:") || stristr($vala,"MIME-Version") || stristr($vala,"Content-Transfer-Encoding") || stristr($vala,"bcc:")) { blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } }
        $w4fMessage .= "$vala, ";
       $w4fMessage .= "<br>\n";
      else {
       $val = stripslashes($val);
       if (trim($val)) { if (stristr($val,"Content-Type:") || stristr($val,"MIME-Version") || stristr($val,"Content-Transfer-Encoding") || stristr($val,"bcc:")) { blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } }
       if (($key == "Submit") || ($key == "submit")) { } 
       else {  if ($val == "") { $w4fMessage .= "$key: - <br>\n"; }
         else { $w4fMessage .= "<b>$key:</b> $val<br>\n"; }
    } // end while
    }//end if
    else {
    reset($_POST);
    while(list($key, $val) = each($_POST)) {
      $GLOBALS[$key] = $val;
      if (is_array($val)) {
       $w4fMessage .= "<b>$key:</b> ";
       foreach ($val as $vala) {
        $vala =stripslashes($vala);
        $vala = htmlspecialchars($vala);
        if (trim($vala)) { if (stristr($vala,"Content-Type:") || stristr($vala,"MIME-Version") || stristr($vala,"Content-Transfer-Encoding") || stristr($vala,"bcc:")) {blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } }   
        $w4fMessage .= "$vala, ";
       $w4fMessage .= "<br>\n";
      else {
       $val = stripslashes($val);
       if (trim($val)) { if (stristr($val,"Content-Type:") || stristr($val,"MIME-Version") || stristr($val,"Content-Transfer-Encoding") || stristr($val,"bcc:")) {blockip($ip); die("ILLEGAL EXECUTION DETECTED!"); } }
       if (($key == "Submit") || ($key == "submit")) { } 
       else {  if ($val == "") { $w4fMessage .= "$key: - <br>\n"; }
         else { $w4fMessage .= "<b>$key:</b> $val<br>\n"; }
    } // end while
    }//end else
    $w4fMessage .= "<font size=3D1><br><br>\n Sender IP: ".$ip."</font></font></body></html>";
        $w4f_what = array("/To:/i", "/Cc:/i", "/Bcc:/i","/Content-Type:/i","/\n/");
    $name = preg_replace($w4f_what, "", $name);
    $email = preg_replace($w4f_what, "", $email);
    if (!$email) {$email = $MailToAddress;}
    $mailHeader = "From: $name <$email>\r\n";
    $mailHeader .= "Reply-To: $name <$email>\r\n";
    $mailHeader .= "Message-ID: <". md5(rand()."".time()) ."@". ereg_replace("www.","",$_SERVER["SERVER_NAME"]) .">\r\n";
    $mailHeader .= "MIME-Version: 1.0\r\n";
    if ($sendHTML) {
      $mailHeader .= "Content-Type: multipart/alternative;";  
      $mailHeader .= "  boundary=\"----=_NextPart_000_000E_01C5256B.0AEFE730\"\r\n";    
    $mailHeader .= "X-Priority: 3\r\n";
    $mailHeader .= "X-Mailer: PHP/" . phpversion()."\r\n";
    $mailHeader .= "X-MimeOLE: Produced By Web4Future Easiest Form2Mail $w4fver\r\n";
    if ($sendHTML) {
      $mailMessage = "This is a multi-part message in MIME format.\r\n\r\n";
      $mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730\r\n";
      $mailMessage .= "Content-Type: text/plain;   charset=\"ISO-8859-1\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n";  
      $mailMessage .= trim(strip_tags($w4fMessage))."\r\n\r\n";  
      $mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730\r\n";  
      $mailMessage .= "Content-Type: text/html;   charset=\"ISO-8859-1\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n";  
      $mailMessage .= "$w4fMessage\r\n\r\n";  
      $mailMessage .= "------=_NextPart_000_000E_01C5256B.0AEFE730--\r\n";  
    if ($sendHTML === FALSE) {
      $mailHeader .= "Content-Type: text/plain;   charset=\"ISO-8859-1\"\r\nContent-Transfer-Encoding: quoted-printable\r\n\r\n";  
      $mailMessage .= trim(strip_tags($w4fMessage))."\r\n\r\n";  
    if (!mail($MailToAddress, $MailSubject, $mailMessage,$mailHeader)) { echo "Error sending e-mail!";}
    else { header("Location: ".$redirectURL); }
    } else { echo "<center><font face=verdana size=3 color=red><b>ILLEGAL EXECUTION DETECTED!</b></font></center>";}
    ?>
    Thanks in advance,
    Glenn
    [Subject line edited by moderator to indicate nature of request]

    Using PHP to process an online form and send the input by email is very simple. The mail() function takes a minimum of three arguments, namely: the address the mail is being sent to, the subject line, and the body of the email as a single string. The reason some people use scripts like form2mail.php is because they don't have the knowledge or patience to validate the user input to make sure it's safe to send.
    Rather than attempt to trawl through your complex form looking for the problems, I would suggest starting with a couple of simple tests.
    First of all, create a PHP page called mailtest.php containing the following script:
    <?php
    $to = '[email protected]'; // use your own email address
    $subject = 'PHP mail test';
    $message = 'This is a test of the mail() function.';
    $sent = mail($to, $subject, $message);
    if ($sent) {
      echo 'Mail was sent';
    } else {
      echo 'Problem sending mail';
    ?>
    Save the script, upload it to your server, and load it into a browser. If you see "Mail is sent", you're in business. If not, it probably means that the hosting company insists on the fifth argument being supplied to mail(). This is your email address preceded by -f. Change the line of code that sends the mail to this:
    $sent = mail($to, $subject, $message, null, '[email protected]');
    Obviously, replace "[email protected]" with your own email address.
    If this results in the mail being sent successfully, you will need to adapt the code in form2mail.php to accept the fifth parameter. You need to change the following line, which is a few lines from the end of the script:
    if (!mail($MailToAddress, $MailSubject, $mailMessage,$mailHeader))
    Change it to this:
    if (!mail($MailToAddress, $MailSubject, $mailMessage,$mailHeader, '[email protected]'))
    Again, use your own email address instead of "[email protected]".
    Once you have determined whether you need the fifth argument, test form2mail.php with a very simple form like this:
    <form id="form1" name="form1" method="post" action="form2mail.php">
      <p>
        <label for="name">Name:</label>
        <input type="text" name="name" id="name" />
      </p>
      <p>
        <label for="email">Email:</label>
        <input type="text" name="email" id="email" />
      </p>
      <p>
        <label>
          <input type="checkbox" name="options[]" value="boat cleaning" id="options_0" />
          Boat cleaning</label>
        <br />
        <label>
          <input type="checkbox" name="options[]" value="RV cleaning" id="options_1" />
          RV cleaning</label>
        <br />
        <label>
          <input type="checkbox" name="options[]" value="motorcycle cleaning" id="options_2" />
          Motorcycle cleaning</label>
      </p>
      <p>
        <input type="submit" name="send" id="send" value="Submit" />
      </p>
    </form>
    If that works, you can start to make the form more complex and add back your JavaScript validation.

  • Index.php loading issue

    I finished and uploaded a new site in .php.
    I  have a graphics loading issue only with IE.
    The js  accordion with images will not reload after returning to the home page.
    Anyone out thier that can shed some light on this?
    http://carpetcleaningsantabarbarapro.com/index.php
    Thank you in advance
    Crissymarie

    Ken might be on to something.  The current release of jQuery is 1.7.2 which is compatible with jQuery Cycle.
    For the latest core library, you can link to jQuery's CDN like so:
              <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
    You have some improperly nested <h3> tags around your lists on lines 170 and 191.  To keep your code error free, simply delete the heading tags.
    Finally, as a courtesy to your site visitors, consider adding a cookie so people don't have to watch the Flash Spokesperson every time they go to your home page.   The link below shows how:
    http://alt-web.com/DEMOS/cookie-test-show-hide-flash-intro.shtml
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

  • My login system doesn't redirect successfully. (PHP and mysql)

    I have the registration system ready and it seems to be working fine.  All the registrants appear in mysql verified.  I have a log in system set up in conjuction with the registration system. I inserted a user in mysql in order to log in and it does redirect successfully.  The problem I have is that when I try to log in as a registrant, it won't redirect successfully when I submit the form, it only remains in the log in page. How would I fix this issue? How would I make it redirect?  Many thanks!
    Here is the code:
    This is the login.php file
    <?php require_once('../Connections/connFormGod.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;
    ?>
    <?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
      session_start();
    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
      $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    if (isset($_POST['username'])) {
      $loginUsername=$_POST['username'];
      $password=$_POST['password'];
      $MM_fldUserAuthorization = "verified";
      $MM_redirectLoginSuccess = "admin_index.php";
      $MM_redirectLoginFailed = "admin_login.php";
      $MM_redirecttoReferrer = false;
      mysql_select_db($database_connFormGod, $connFormGod);
      $LoginRS__query=sprintf("SELECT username, password, verified FROM `admin` WHERE username=%s AND password=%s",
      GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
      $LoginRS = mysql_query($LoginRS__query, $connFormGod) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      if ($loginFoundUser) {
        $loginStrGroup  = mysql_result($LoginRS,0,'verified');
    if (PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();}
        //declare two session variables and assign them
        $_SESSION['MM_Username'] = $loginUsername;
        $_SESSION['MM_UserGroup'] = $loginStrGroup;     
        if (isset($_SESSION['PrevUrl']) && false) {
          $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
        header("Location: " . $MM_redirectLoginSuccess );
      else {
        header("Location: ". $MM_redirectLoginFailed );
    ?>
    This is the page that it should redirect to - Index.php file.
    <?php require_once('../Connections/connFormGod.php'); ?>
    <?php
    //initialize the session
    if (!isset($_SESSION)) {
      session_start();
    $MM_authorizedUsers = "y";
    $MM_donotCheckaccess = "false";
    // *** Restrict Access To Page: Grant or deny access to this page
    function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
      // For security, start by assuming the visitor is NOT authorized.
      $isValid = False;
      // When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
      // Therefore, we know that a user is NOT logged in if that Session variable is blank.
      if (!empty($UserName)) {
        // Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
        // Parse the strings into arrays.
        $arrUsers = Explode(",", $strUsers);
        $arrGroups = Explode(",", $strGroups);
        if (in_array($UserName, $arrUsers)) {
          $isValid = true;
        // Or, you may restrict access to only certain users based on their username.
        if (in_array($UserGroup, $arrGroups)) {
          $isValid = true;
        if (($strUsers == "") && false) {
          $isValid = true;
      return $isValid;
    $MM_restrictGoTo = "admin_login.php";
    if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {  
      $MM_qsChar = "?";
      $MM_referrer = $_SERVER['PHP_SELF'];
      if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
      if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING']) > 0)
      $MM_referrer .= "?" . $_SERVER['QUERY_STRING'];
      $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
      header("Location: ". $MM_restrictGoTo);
      exit;
    ?>
    <?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;
    $colname_userDets = "-1";
    if (isset($_SESSION['MM_Username'])) {
      $colname_userDets = $_SESSION['MM_Username'];
    mysql_select_db($database_connFormGod, $connFormGod);
    $query_userDets = sprintf("SELECT AdminID, username, password, verified FROM `admin` WHERE username = %s", GetSQLValueString($colname_userDets, "text"));
    $userDets = mysql_query($query_userDets, $connFormGod) or die(mysql_error());
    $row_userDets = mysql_fetch_assoc($userDets);
    $totalRows_userDets = mysql_num_rows($userDets);
    if (isset($_POST['username'])) {
      $loginUsername=$_POST['username'];
      $password=$_POST['password'];
      $MM_fldUserAuthorization = "";
      $MM_redirectLoginSuccess = "admin_index.php";
      $MM_redirectLoginFailed = "admin_login.php";
      $MM_redirecttoReferrer = true;
      mysql_select_db($database_connFormGod, $connFormGod);
    ?>

    Thank you very much, but thats actually what I have. I've testing the login form through my web hosting and it does not redirect successfully. Can any body help plz.
    Thanks in advance!
    I had forgotten to include the html code.
       <form  id="login_form" name="login_form" method="POST" action="<?php echo $loginFormAction; ?>">
            <table width="100%" border="0" cellpadding="5" cellspacing="0" id="login_table">
              <tr>
                <td align="right"> </td>
                <td align="left"> </td>
              </tr>
              <tr>
                <td width="41%" align="right">Username:</td>
                <td width="59%" align="left"><input type="text" name="username" id="username" /></td>
              </tr>
              <tr>
                <td align="right">Password:</td>
                <td align="left"><input type="password" name="password" id="password" /></td>
              </tr>
              <tr>
                <td> </td>
                <td> </td>
              </tr>
              <tr>
                <td> </td>
                <td><input type="submit" name="submit" id="submit" value="Login" /></td>
              </tr>
              <tr>
                <td> </td>
                <td> </td>
              </tr>
            </table>
            <p> </p>
          </form>

  • Help with PHP and

    Notice: Undefined index: product_style in/var/www/html/qualitycarton.com/cw3/admin/ProductForm.php on line 509
    This is what I get when I tried to add a field to my cartweaver database.
    If you don't know cartweaver it's basically a dreamweaver extension for ecommerce. I wanted to add some fields to the product table in the database. I successfully added the fields, added the input fields on the productform.php and the necessary scripts to productaction.php, I also used
    $yourvariable = "";
    if (isset($_POST['yourvariable'])) {
       $yourvariable = $_POST['yourvariable'];
    in the form but for some reason I still have an undefined index. Please help!
    thanks,
    Ian

    You may get a quicker answer from Cartweaver's newsgroups.
    http://www.cartweaver.com/support/
    They're usually quite prompt and helpful.

  • Problems setting up an Apache PHP and MySQL server(slvd)

    I folowed this guide: http://wiki.archlinux.org/index.php/LAMP and I did everything it says and everything is working well... but when I try to install any CMS that uses MySQL, it says that mysql is not running... Even with Nmap, it only shows that apache is running... anyone knows why ?
    when I'm installing Xoops, it prints this error:
    Fatal error:
    mysql extension not loaded in /home/httpd/html/xoops-2.2.3a-final-xpr/html/class/database/mysqldatabase.php on line 74
    But, phpMyAdmin runs without any errors... this is so strange...
    Can anyone help me ?
    Thanks in advance

    I don't have any extension=mysql.dll in my php.ini.... I just have extension=mysql.so...
    Here's my <?
       phpinfo();
    ?>
    This is Arch Linux, running PHP.
    PHP Logo
    PHP Version 5.1.1
    System Linux localhost 2.6.15 #4 PREEMPT Mon Jan 9 13:16:27 CAT 2006 i686
    Build Date Dec 5 2005 11:31:11
    Configure Command './configure' '--with-apxs2' '--prefix=/usr' '--sysconfdir=/etc' '--with-layout=PHP' '--with-ttf' '--enable-mailparse' '--with-config-file-scan-dir=/etc' '--enable-bcmath=shared' '--enable-calendar=shared' '--enable-ftp=shared' '--enable-gd-native-ttf' '--enable-magic-quotes' '--enable-posix=shared' '--enable-session' '--enable-shared' '--enable-shmop=shared' '--enable-pdo=shared' '--enable-sqlite-utf8' '--enable-sockets=shared' '--enable-xml' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--enable-sysvmsg=shared' '--enable-track-vars' '--enable-trans-sid' '--enable-safe-mode' '--with-imap' '--with-imap-ssl' '--with-ncurses' '--with-readline' '--with-bz2=shared' '--with-curl' '--with-mime-magic' '--with-freetype-dir=/usr' '--with-gd=shared' '--enable-exif' '--with-jpeg-dir=/usr' '--enable-dba' '--without-db2' '--without-db3' '--with-inifile' '--with-flatfile' '--with-gdbm' '--with-ldap=shared' '--with-openssl' '--with-gettext' '--with-unixODBC=shared,/usr' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-mysqli=shared' '--with-mysql-sock=/tmp/mysql.sock' '--with-pdo-mysql=shared,/usr' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-pgsql-sock=/tmp/pgsql.sock' '--with-pdo-pgsql=shared,/usr' '--with-sqlite=shared' '--with-pdo-sqlite=shared,/usr' '--with-pear=/usr/share/pear' '--with-dom' '--with-dom-xslt' '--with-xsl' '--with-png-dir=/usr' '--with-regex=php' '--with-zlib' '--enable-mbstring=all' '--enable-mbregex'
    Server API Apache 2.0 Handler
    Virtual Directory Support disabled
    Configuration File (php.ini) Path /usr/lib
    Scan this dir for additional .ini files /etc
    additional .ini files parsed /etc/php.ini
    PHP API 20041225
    PHP Extension 20050922
    Zend Extension 220051025
    Debug Build no
    Thread Safety disabled
    Zend Memory Manager enabled
    IPv6 Support enabled
    Registered PHP Streams php, file, http, ftp, compress.zlib, https, ftps, compress.bzip2
    Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
    Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, convert.iconv.*, zlib.*, bzip2.*
    Zend logo This program makes use of the Zend Scripting Language Engine:
    Zend Engine v2.1.0, Copyright (c) 1998-2005 Zend Technologies
    PHP Credits
    Configuration
    PHP Core
    Directive Local Value Master Value
    allow_call_time_pass_reference On On
    allow_url_fopen On On
    always_populate_raw_post_data Off Off
    arg_separator.input & &
    arg_separator.output & &
    asp_tags Off Off
    auto_append_file no value no value
    auto_globals_jit On On
    auto_prepend_file no value no value
    browscap no value no value
    default_charset no value no value
    default_mimetype text/html text/html
    define_syslog_variables Off Off
    disable_classes no value no value
    disable_functions no value no value
    display_errors On On
    display_startup_errors Off Off
    doc_root no value no value
    docref_ext no value no value
    docref_root no value no value
    enable_dl On On
    error_append_string no value no value
    error_log no value no value
    error_prepend_string no value no value
    error_reporting 2039 2039
    expose_php On On
    extension_dir /usr/lib/php/extensions/php /usr/lib/php/extensions/php
    file_uploads On On
    highlight.bg #FFFFFF #FFFFFF
    highlight.comment #FF8000 #FF8000
    highlight.default #0000BB #0000BB
    highlight.html #000000 #000000
    highlight.keyword #007700 #007700
    highlight.string #DD0000 #DD0000
    html_errors On On
    ignore_repeated_errors Off Off
    ignore_repeated_source Off Off
    ignore_user_abort Off Off
    implicit_flush Off Off
    include_path .:/usr/share/pear .:/usr/share/pear
    log_errors Off Off
    log_errors_max_len 1024 1024
    magic_quotes_gpc On On
    magic_quotes_runtime Off Off
    magic_quotes_sybase Off Off
    mail.force_extra_parameters no value no value
    max_execution_time 30 30
    max_input_time 60 60
    open_basedir no value no value
    output_buffering no value no value
    output_handler no value no value
    post_max_size 8M 8M
    precision 12 12
    realpath_cache_size 16K 16K
    realpath_cache_ttl 120 120
    register_argc_argv On On
    register_globals Off Off
    register_long_arrays Off Off
    report_memleaks On On
    report_zend_debug On On
    safe_mode Off Off
    safe_mode_exec_dir no value no value
    safe_mode_gid Off Off
    safe_mode_include_dir no value no value
    sendmail_from [email protected] [email protected]
    sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
    serialize_precision 100 100
    short_open_tag On On
    SMTP localhost localhost
    smtp_port 25 25
    sql.safe_mode Off Off
    track_errors Off Off
    unserialize_callback_func no value no value
    upload_max_filesize 2M 2M
    upload_tmp_dir no value no value
    user_dir no value no value
    variables_order EGPCS EGPCS
    xmlrpc_error_number 0 0
    xmlrpc_errors Off Off
    y2k_compliance On On
    zend.ze1_compatibility_mode Off Off
    apache2handler
    Apache Version Apache
    Apache API Version 20020903
    Server Administrator [email protected]
    Hostname:Port laptop-do-joao.net:0
    User/Group nobody(99)/99
    Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
    Timeouts Connection: 300 - Keep-Alive: 15
    Virtual Server No
    Server Root /usr
    Loaded Modules core prefork http_core mod_so mod_access mod_actions mod_alias mod_asis mod_auth mod_auth_anon mod_auth_dbm mod_auth_digest mod_autoindex mod_cgi mod_dav mod_dav_fs mod_dir mod_env mod_expires mod_ext_filter mod_headers mod_imap mod_include mod_info mod_log_config mod_mime mod_negotiation mod_rewrite mod_setenvif mod_speling mod_ssl mod_status mod_userdir mod_vhost_alias mod_php5
    Directive Local Value Master Value
    engine 1 1
    last_modified 0 0
    xbithack 0 0
    Apache Environment
    Variable Value
    HTTP_HOST laptop-do-joao.net
    HTTP_USER_AGENT Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060104 Firefox/1.5
    HTTP_ACCEPT text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5
    HTTP_ACCEPT_ENCODING gzip,deflate
    HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
    HTTP_KEEP_ALIVE 300
    HTTP_CONNECTION keep-alive
    PATH /bin:/usr/bin:/sbin:/usr/sbin
    SERVER_SIGNATURE <address>Apache Server at laptop-do-joao.net Port 80</address>
    SERVER_SOFTWARE Apache
    SERVER_NAME laptop-do-joao.net
    SERVER_ADDR 127.0.0.1
    SERVER_PORT 80
    REMOTE_ADDR 127.0.0.1
    DOCUMENT_ROOT /home/httpd/html
    SERVER_ADMIN [email protected]
    SCRIPT_FILENAME /home/httpd/html/test.php
    REMOTE_PORT 33973
    GATEWAY_INTERFACE CGI/1.1
    SERVER_PROTOCOL HTTP/1.1
    REQUEST_METHOD GET
    QUERY_STRING no value
    REQUEST_URI /test.php
    SCRIPT_NAME /test.php
    HTTP Headers Information
    HTTP Request Headers
    HTTP Request GET /test.php HTTP/1.1
    Host laptop-do-joao.net
    User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060104 Firefox/1.5
    Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    Accept-Language en-us,en;q=0.5
    Accept-Encoding gzip,deflate
    Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive 300
    Connection keep-alive
    HTTP Response Headers
    X-Powered-By PHP/5.1.1
    Keep-Alive timeout=15, max=100
    Connection Keep-Alive
    Transfer-Encoding chunked
    Content-Type text/html; charset=ISO-8859-1
    bcmath
    BCMath support enabled
    bz2
    BZip2 Support Enabled
    Stream Wrapper support compress.bz2://
    Stream Filter support bzip2.decompress, bzip2.compress
    BZip2 Version 1.0.3, 15-Feb-2005
    calendar
    Calendar support enabled
    ctype
    ctype functions enabled
    curl
    CURL support enabled
    CURL Information libcurl/7.15.0 OpenSSL/0.9.7h zlib/1.2.3
    date
    date/time support enabled
    Timezone Database Version 2005.14
    Timezone Database internal
    Default timezone Africa/Khartoum
    Directive Local Value Master Value
    date.timezone no value no value
    dba
    DBA support enabled
    Supported handlers gdbm cdb cdb_make inifile flatfile
    dom
    DOM/XML enabled
    DOM/XML API Version 20031129
    libxml Version 2.6.22
    HTML Support enabled
    XPath Support enabled
    XPointer Support enabled
    Schema Support enabled
    RelaxNG Support enabled
    exif
    EXIF Support enabled
    EXIF Version 1.4 $Id: exif.c,v 1.173.2.2 2005/10/10 06:09:25 helly Exp $
    Supported EXIF Version 0220
    Supported filetypes JPEG,TIFF
    ftp
    FTP support enabled
    gettext
    GetText Support enabled
    iconv
    iconv support enabled
    iconv implementation glibc
    iconv library version 2.3.5
    Directive Local Value Master Value
    iconv.input_encoding ISO-8859-1 ISO-8859-1
    iconv.internal_encoding ISO-8859-1 ISO-8859-1
    iconv.output_encoding ISO-8859-1 ISO-8859-1
    imap
    IMAP c-Client Version 2004
    SSL Support enabled
    libxml
    libXML support active
    libXML Version 2.6.22
    libXML streams enabled
    mbstring
    Multibyte Support enabled
    Multibyte string engine libmbfl
    Multibyte (japanese) regex support enabled
    Multibyte regex (oniguruma) version 3.7.1
    mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.
    Directive Local Value Master Value
    mbstring.detect_order no value no value
    mbstring.encoding_translation Off Off
    mbstring.func_overload 0 0
    mbstring.http_input pass pass
    mbstring.http_output pass pass
    mbstring.internal_encoding ISO-8859-1 no value
    mbstring.language neutral neutral
    mbstring.substitute_character no value no value
    mime_magic
    mime_magic support enabled
    Directive Local Value Master Value
    mime_magic.debug Off Off
    mime_magic.magicfile /etc/httpd/conf/magic /etc/httpd/conf/magic
    mysql
    MySQL Support enabled
    Active Persistent Links 0
    Active Links 0
    Client API version 5.0.18
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /tmp/mysql.sock
    MYSQL_INCLUDE -I/usr/include/mysql
    MYSQL_LIBS -L/usr/lib -lmysqlclient
    Directive Local Value Master Value
    mysql.allow_persistent On On
    mysql.connect_timeout 60 60
    mysql.default_host no value no value
    mysql.default_password no value no value
    mysql.default_port no value no value
    mysql.default_socket no value no value
    mysql.default_user no value no value
    mysql.max_links Unlimited Unlimited
    mysql.max_persistent Unlimited Unlimited
    mysql.trace_mode Off Off
    openssl
    OpenSSL support enabled
    OpenSSL Version OpenSSL 0.9.7h 11 Oct 2005
    pcre
    PCRE (Perl Compatible Regular Expressions) Support enabled
    PCRE Library Version 6.2 01-Aug-2005
    posix
    Revision $Revision: 1.70.2.1 $
    session
    Session Support enabled
    Registered save handlers files user
    Registered serializer handlers php php_binary
    Directive Local Value Master Value
    session.auto_start Off Off
    session.bug_compat_42 On On
    session.bug_compat_warn On On
    session.cache_expire 180 180
    session.cache_limiter nocache nocache
    session.cookie_domain no value no value
    session.cookie_lifetime 0 0
    session.cookie_path / /
    session.cookie_secure Off Off
    session.entropy_file no value no value
    session.entropy_length 0 0
    session.gc_divisor 100 100
    session.gc_maxlifetime 1440 1440
    session.gc_probability 1 1
    session.hash_bits_per_character 5 5
    session.hash_function 0 0
    session.name PHPSESSID PHPSESSID
    session.referer_check no value no value
    session.save_handler files files
    session.save_path /tmp /tmp
    session.serialize_handler php php
    session.use_cookies On On
    session.use_only_cookies Off Off
    session.use_trans_sid 0 0
    shmop
    shmop support enabled
    SimpleXML
    Simplexml support enabled
    Revision $Revision: 1.151.2.7 $
    Schema support enabled
    sockets
    Sockets Support enabled
    SPL
    SPL support enabled
    Interfaces Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
    Classes AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilterIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RuntimeException, SimpleXMLIterator, SplFileObject, SplObjectStorage, UnderflowException, UnexpectedValueException
    standard
    Regex Library Bundled library enabled
    Dynamic Library Support enabled
    Path to sendmail /usr/sbin/sendmail -t -i
    Directive Local Value Master Value
    assert.active 1 1
    assert.bail 0 0
    assert.callback no value no value
    assert.quiet_eval 0 0
    assert.warning 1 1
    auto_detect_line_endings 0 0
    date.default_latitude 31.7667 31.7667
    date.default_longitude 35.2333 35.2333
    date.sunrise_zenith 90.83 90.83
    date.sunset_zenith 90.83 90.83
    default_socket_timeout 60 60
    safe_mode_allowed_env_vars PHP_ PHP_
    safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
    url_rewriter.tags a=href,area=href,frame=src,input=src,form=,fieldset= a=href,area=href,frame=src,input=src,form=,fieldset=
    user_agent no value no value
    tokenizer
    Tokenizer Support enabled
    xml
    XML Support active
    XML Namespace Support active
    libxml2 Version 2.6.22
    xsl
    XSL enabled
    libxslt Version 1.1.15
    libxslt compiled against libxml Version 2.6.21
    EXSLT enabled
    libexslt Version 1.1.15
    zlib
    ZLib Support enabled
    Stream Wrapper support compress.zlib://
    Stream Filter support zlib.inflate, zlib.deflate
    Compiled Version 1.2.3
    Linked Version 1.2.3
    Directive Local Value Master Value
    zlib.output_compression Off Off
    zlib.output_compression_level -1 -1
    zlib.output_handler no value no value
    Additional Modules
    Module Name
    sysvsem
    sysvshm
    Environment
    Variable Value
    CONSOLE /dev/console
    TERM linux
    LD_LIBRARY_PATH /usr/lib:
    INIT_VERSION sysvinit-2.86
    PATH /bin:/usr/bin:/sbin:/usr/sbin
    RUNLEVEL 5
    PWD /
    PREVLEVEL N
    SHLVL 3
    HOME /
    BOOT_IMAGE Arch-2.6.15
    _ /usr/sbin/httpd
    PHP Variables
    Variable Value
    _SERVER["HTTP_HOST"] laptop-do-joao.net
    _SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20060104 Firefox/1.5
    _SERVER["HTTP_ACCEPT"] text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
    _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us,en;q=0.5
    _SERVER["HTTP_ACCEPT_ENCODING"] gzip,deflate
    _SERVER["HTTP_ACCEPT_CHARSET"] ISO-8859-1,utf-8;q=0.7,*;q=0.7
    _SERVER["HTTP_KEEP_ALIVE"] 300
    _SERVER["HTTP_CONNECTION"] keep-alive
    _SERVER["PATH"] /bin:/usr/bin:/sbin:/usr/sbin
    _SERVER["SERVER_SIGNATURE"] <address>Apache Server at laptop-do-joao.net Port 80</address>
    _SERVER["SERVER_SOFTWARE"] Apache
    _SERVER["SERVER_NAME"] laptop-do-joao.net
    _SERVER["SERVER_ADDR"] 127.0.0.1
    _SERVER["SERVER_PORT"] 80
    _SERVER["REMOTE_ADDR"] 127.0.0.1
    _SERVER["DOCUMENT_ROOT"] /home/httpd/html
    _SERVER["SERVER_ADMIN"] [email protected]
    _SERVER["SCRIPT_FILENAME"] /home/httpd/html/test.php
    _SERVER["REMOTE_PORT"] 33973
    _SERVER["GATEWAY_INTERFACE"] CGI/1.1
    _SERVER["SERVER_PROTOCOL"] HTTP/1.1
    _SERVER["REQUEST_METHOD"] GET
    _SERVER["QUERY_STRING"] no value
    _SERVER["REQUEST_URI"] /test.php
    _SERVER["SCRIPT_NAME"] /test.php
    _SERVER["PHP_SELF"] /test.php
    _SERVER["REQUEST_TIME"] 1137274380
    _SERVER["argv"]
    Array
    _SERVER["argc"] 0
    _ENV["CONSOLE"] /dev/console
    _ENV["TERM"] linux
    _ENV["LD_LIBRARY_PATH"] /usr/lib:
    _ENV["INIT_VERSION"] sysvinit-2.86
    _ENV["PATH"] /bin:/usr/bin:/sbin:/usr/sbin
    _ENV["RUNLEVEL"] 5
    _ENV["PWD"] /
    _ENV["PREVLEVEL"] N
    _ENV["SHLVL"] 3
    _ENV["HOME"] /
    _ENV["BOOT_IMAGE"] Arch-2.6.15
    _ENV["_"] /usr/sbin/httpd
    PHP License
    This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE
    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact [email protected].

  • Getting No input file specified. in php with index.php

    I just installed on a server (soalris10/u6 sparc) Web Server 7.0u4 (upgraded from u3), and I am now getting "No input file specified." for any php doc root, I now have to type the full path to get the main page.
    I am using the php part of the Sun coolstack 1.3.1 and it used to work fine with web server 7.0 u3, but now after the upgrade its not loading index.php
    for example I am going to http://server.domain.com/wiki used to work by loading index.php, but now I have to type the full index... http://server.domain.com/wiki/index.php?title=Main_Page
    Any help is appreciated.

    If you're not currently using a php.ini, you can pass the parameter to PHP via your FastCGI configuration. Something like:
    Service fn=responder-fastcgi
            app-path="/export/WS7/third-party/php/php_fcgi"
            bind-path="$(lc($urlhost))"
            req-retry=5
            type="*magnus-internal/fastcgi*"
            app-env="PHPRC=/export/WS7/fooBaz/config"Now place a file called php.ini in /export/WS7/fooBaz/config and make sure that the UID Web Server is running as has permission to read it.
    Common syntax is KEY = Value. An example would be:
    cgi.fix_pathinfo = Off
    session.bug_compat_42 = Off
    session.bug_compat_warn = Off
    magic_quotes_gpc = Off
    memory_limit = 128M
    post_max_size = 128M
    upload_max_filesize = 128M
    fastcgi.logging = true

Maybe you are looking for

  • How do I share games and music with two kids ipod touch 4g and my iphone 4s

    I have Iphone 4s and want to share paid games and music with both of my kids Ipod 4gen touchs. Don't have them set up with individual itunes accounts yet due to fact I don't want to pay for a game three times or a common liked song three times.  New

  • File Port with Outbound Trigger

    I am exporting idoc through a file port in we21.  I have the outbound trigger set up as follows. I have Autom. start possible selected RFC destination SERVER_EXEC ->  which points to /sapmnt/DEV/exe/rfcexec to execute a local UNIX script. I am using

  • Oracle HRMS or Peoplesoft: what functionality will be retained in fusion-08

    Hello all, Imagine you have a customer on EBS financials. He is interested in an HR extention, and looks at Peoplesoft, Oracle and SAP as potential implementation solutions. What is the market leader in Europe, and what would you recommend, taking in

  • Adobe Pro 9 CMap Error Message

    I am running Adobe Pro 9 and encountered the following error when trying to save a file to a newtwork drive: "The encoding (CMap) specified by a font is missing".  All the embedding options are set correctly.  I tried to install the Japanese font pac

  • How to add a new calculated coloumn in my criterie in BI Answers..

    Dear All, i am working on BI Answers, i want to add a new calculated coloumn in my criterie. Regards, Subbu.