Jump to content


  • Posts

  • Joined

  • Last visited

About sepoto

  • Birthday 12/09/1980

Previous Fields

  • Languages
    JavaScript, PHP, C#, SQL, C++, C

Profile Information

  • Location
    Los Angeles, CA
  • Interests
    All things IT, web development & databases.

sepoto's Achievements


Member (2/7)



  1. <script type="text/javascript" src="jquery-2.0.3.min.js"></script><style>.canvas { position:relative; height:550px; width:400px; background:Yellow url("http://www.mapstop.co.uk/images/uploaded/lrg_wg2668.6a40d0d.jpg") no-repeat;}.canvas img { position:absolute;}</style><div class="toolbar"><span>Drag...</span><img src="http://cdn4.iconfinder.com/data/icons/iconsland-weather/PNG/48x48/Sunny.png" alt="" title="" /><img src="http://cdn4.iconfinder.com/data/icons/iconsland-weather/PNG/48x48/Thermometer_Snowflake.png" alt="" title="" /><img src="http://cdn4.iconfinder.com/data/icons/iconsland-weather/PNG/48x48/Overcast.png" alt="" title="" /><img src="http://cdn4.iconfinder.com/data/icons/iconsland-weather/PNG/48x48/Night_Rain.png" alt="" title="" /></div><div class="canvas"></div><script type="text/javascript">$(document).ready(function () { var $toolbar = $(".toolbar"); var $tools = $toolbar.find("img"); //define drag and drop handlers $toolbar.on("dragstart", "img", onDrag); $(".canvas").on({ dragenter: false, dragover: false, drop: onDrop }); //handle commencement of drag function onDrag(e) { console.log("onDrag"); } //handle drop function onDrop(e) { console.log("OnDrop"); console.log(e.originalEvent.x); console.log(e.originalEvent.y); console.log(e); }});</script> What is clear to me is that if the drop event is fired then the toolbar image was dropped over the canvas. What is not clear to me at this time is what is the most cross browser way to retrieve the coordinates of the dropped image on the canvas so that I can place properly a clone of the dropped image. Here is a link to my jsFiddle: http://jsfiddle.net/SZfxY/
  2. I am reading this from the PHP documentation: RequirementsFor the Mail functions to be available, PHP must have access to the sendmail binary on your system during compile time. If you use another mail program, such as qmail or postfix, be sure to use the appropriate sendmail wrappers that come with them. PHP will first look for sendmail in your PATH, and then in the following: /usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib. It's highly recommended to have sendmail available from your PATH. Also, the user that compiled PHP must have permission to access the sendmail binary. My question is what is this sendmail wrapper for POSTFIX that they are talking about? Usually when I install POSTFIX with yum install the mail function just starts sending mail? Is there something more to it than that? Thank in advance...
  3. http://jsfiddle.net/sepoto/BrZgj/ <!DOCTYPE html><html><head><title>Page Structure</title><style>#wrapper{width: 1000px;min-height: 75px;background-color: grey;}#inner{margin: 12px auto 0px auto;width: 900px;min-height: 25px;background-color: red;}</style></head><body><div id="wrapper"><div id="inner"></div></div></body></html> I am wondering why adding an upper margin to inner seems to move both the grey and red div's down. I wanted to move down only the red div so that there is some grey still showing at the top of the red div. Thanks in advance...
  4. I came up with this which accomplishes the goal but I'm still not sure if this is the best way... if ($stmt->execute(array($_POST['email'],$_POST['password']))) {$count = $stmt->rowCount();if($count > 0){ header("location: main1.php");}else{ header("location: index.loginfailed.php");}}
  5. <?phprequire_once("php.securelogin/securelogin.php");try{$dbh = new PDO('mysql:host=localhost;dbname=timesheets', $dbuser, $dbpassword);$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);}catch (PDOException $e){exit($e->getMessage());}$stmt = $dbh->prepare("SELECT email,password FROM users where email = ? and password=PASSWORD(?)");if ($stmt->execute(array($_POST['email'],$_POST['password']))) {while ($row = $stmt->fetch()) { print_r($row);}}?> At this point if I enter a valid email and password that is in the users table the row is printed to the browser window. What I can't seem to figure out is how to handle the condition where a row is not found in the users table at which point I would like to do a header("location: index.loginfailed.php");. I have tried all different ways I can think of of detecting the condition of a row not being found but I can not seem to figure how how to do that yet. I also tried putting the $dbh->prepare code into try and catch braces looking for a PDOException but it appears that nothing is thrown if the users row is not found. Does anyone know how to do this?
  6. <map name="map"><!-- #$-:Image map file created by GIMP Image Map plug-in --><!-- #$-:GIMP Image Map plug-in by Maurits Rijk --><!-- #$-:Please do not edit lines starting with "#$" --><!-- #$VERSION:2.3 --><!-- #$AUTHOR:Eric --><area shape="rect" coords="2,2,98,97" onclick="scrollto1()" style="cursor: pointer;" /><area shape="rect" coords="102,3,202,95" onclick="scrollto2()" style="cursor: pointer;" /><area shape="rect" coords="208,3,307,95" onclick="scrollto3()" style="cursor: pointer;"/><area shape="rect" coords="315,5,409,98" onclick="scrollto4()" style="cursor: pointer;"/><area shape="rect" coords="413,6,502,97" onclick="scrollto5()" style="cursor: pointer;"/><area shape="rect" coords="507,4,597,97" onclick="scrollto6()" style="cursor: pointer;"/></map> I am wondering if there is a way to get this code to display a pointer cursor in Chrome. As it stands right now this works in FireFox. In Internet Explorer nothing works at all the items are not even clickable. Is there some way to get this working cross browser? Thanks...!
  7. Thank you for that reply. I have currently found a way to use PHP to solve the problem but I will learn from this as a learning experience.
  8. Although I can console.log lastSel it is coming up as a blank when the PHP is called in the header. So when the header is passed it is id: "" even though clearly there is a value in lastSel and I am type casting to string. I am wondering what could be the source of the issue. lastSel is defined outside of any function braces as just "lastSel = """ without using the var keyword. Why would it be blank as String(lastSel) even though I can console.log a value? <script>$(function(){var date = new Date();var d = date.getDate();var m = date.getMonth();var y = date.getFullYear(); $('#calendar1').fullCalendar({ // put your options and callbacks hereheader:{left: 'prev,next today',center: 'title',right: 'month,basicWeek,basicDay'},editable: true,droppable: true,selectable: true,events: {url: 'php.scripts/events.get.php',type: 'POST',data: {id: String(lastSel),custom_param2: 'somethingelse'},error: function() {alert('there was an error while fetching events!');},color: 'yellow', // a non-ajax optiontextColor: 'black' // a non-ajax option},eventClick: function (calEvent, jsEvent, view) { $( "#eventdialog2" ).dialog({resizable: false,height:500,width:500,modal: true,buttons: {"Update": function() {$( this ).dialog( "close" );},Cancel: function() {$( this ).dialog( "close" );}}}); },eventDrop: function (event, dayDelta, minuteDelta, allDay, revertFunc) { },select: function(startDate, endDate, allDay, jsEvent, view) { $( "#eventdialog1" ).dialog({resizable: false,height:500,width: 500,modal: true,buttons: {"Add": function() {if(jQuery("#event_title1").val() == ""){alert("All active text fields are required input!");return false;}$( this ).dialog( "close" );},Cancel: function() {$( this ).dialog( "close" );}}}); } }); $('#calendar2').fullCalendar({ // put your options and callbacks here });});</script> <script>lastSel = "";$(function(){ $("#list").jqGrid({ url:'php.scripts/get.customers.php', datatype: 'xml', mtype: 'POST',colNames:['idcustomers','firstname', 'lastname','address1','address2','city','state','zip','phone','email','cell'], colModel :[ {name:'idcustomers', index:'idcustomers', width:55}, {name:'firstname', index:'firstname', width:90, editable: true}, {name:'lastname', index:'lastname', width:90, editable: true}, {name:'address1', index:'address1', width:90, editable: true}, {name:'address2', index:'address2', width:90, editable: true}, {name:'city', index:'city', width:90, editable: true}, {name:'state', index:'state', width:90, editable: true}, {name:'zip', index:'zip', width:90, editable: true}, {name:'phone', index:'phone', width:90, editable: true}, {name:'email', index:'email', width:90, editable: true}, {name:'cell', index:'cell', width:90, editable: true} ], pager: '#pager', rowNum:20, rowList:[20,100,300], sortname: 'idcustomers', sortorder: 'asc', viewrecords: true, gridview: true, caption: 'Customers',width: 1400,height: 290,editurl: 'php.scripts/update.row.php',ajaxGridOptions: {type:"POST"},onSelectRow: function(id){ if(id && id!==lastSel){ jQuery('#gridid').restoreRow(lastSel); lastSel=id;jQuery("#list").data('selid',lastSel);console.log(lastSel);console.log(jQuery("#list").data('selid'));} //jQuery('#list').editRow(id, true); jQuery('#list').data('selid', jQuery("#list").getCell(lastSel,0));jQuery('#list').data('firstname', jQuery("#list").getCell(lastSel,1));jQuery('#list').data('lastname', jQuery("#list").getCell(lastSel,2));jQuery('#list').data('address1', jQuery("#list").getCell(lastSel,3));jQuery('#list').data('address2', jQuery("#list").getCell(lastSel,4));jQuery('#list').data('city', jQuery("#list").getCell(lastSel,5));jQuery('#list').data('state', jQuery("#list").getCell(lastSel,6));jQuery('#list').data('zip', jQuery("#list").getCell(lastSel,7));jQuery('#list').data('phone', jQuery("#list").getCell(lastSel,8));jQuery('#list').data('email', jQuery("#list").getCell(lastSel,9));jQuery('#list').data('cell', jQuery("#list").getCell(lastSel,10)); } }).jqGrid('navGrid','#pager',{ edit: false, add: true }, {}, {}, {}, {}, {}).jqGrid('inlineNav',"#pager",{}); }); </script>
  9. I was able to work through this in time. My problem now seems to be there is a blank row being inserted into MySQL with only an ID but no data for `first`, `last` or email. As far as the calls to session_regenerate_id and session_destroy I was trying to go by the book as much as possible. Perhaps my use of those could use a little bit of work...
  10. <!DOCTYPE html><html><head><meta charset="utf8"><title>Financial Lemonade - Financial Help Guide</title><meta name="description" content="Financial Hardship resources and information to help struggling americans improve their financial status."/><meta name="keywords" content="Financial Hardship Resources, Financial Hardship Guide, Financial Hardship Assistance Aid Help, Hardship, Financial, Grants, Aid"/><meta name="robots" content="ALL"/><meta name="robots" content="NOYDIR"/><meta name="robots" content="NOODP"/><meta name="author" content="Financial Lemonade - Financial Help Guide"/><meta name="Copyright" content="Copyright (c) 2010 Financial-Lemonade.com"/> <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script><style type="text/css">@import url("site.css"); .nav_bar {position: absolute;top: 134px;left: 250px;width: 942px;}.main_bg {background-color: #FFEA55;height: 416px;width: 900px;border: 2px solid #F90;position: absolute;left: 270px;top: 173px;-moz-border-radius: 15px;-webkit-border-radius: 15px;-khtml-border-radius: 15px;border-radius: 15px;}.left bar {background-color: #6F9;position: absolute;height: 500px;width: 500px;left: 150px;top: 300px; }.left div span {vertical-align: text-top;}.main_bg1 {background-color: #FFEA55;height: 131px;width: 279px;border: 2px solid #F90;position: absolute;left: 272px;top: 625px;-moz-border-radius: 15px;-webkit-border-radius: 15px;-khtml-border-radius: 15px;border-radius: 15px;}.main_bg11 {background-color: #FFEA55;height: 131px;width: 279px;border: 2px solid #F90;position: absolute;left: 891px;top: 625px;-moz-border-radius: 15px;-webkit-border-radius: 15px;-khtml-border-radius: 15px;border-radius: 15px;}.main_bg12 {background-color: #FFEA55;height: 131px;width: 279px;border: 2px solid #F90;position: absolute;left: 581px;top: 625px;-moz-border-radius: 15px;-webkit-border-radius: 15px;-khtml-border-radius: 15px;border-radius: 15px;}.main_bg13 {background-color: #FFEA55;height: 40px;width: 900px;border: 2px solid #F90;position: absolute;left: 273px;top: 790px;-moz-border-radius: 15px;-webkit-border-radius: 15px;-khtml-border-radius: 15px;border-radius: 15px;}.nav_bar2 {position: absolute;top: 854px;left: 250px;width: 942px;text-align: center;background-color: none;height: auto;margin-top: 8px;margin-bottom: 10px;font-size: 24px;font-weight: bold;color: #063;padding: 2px;list-style-position: outside;border-top-width: 2px;border-bottom-width: 2px;border-top-style: solid;border-bottom-style: solid;border-top-color: #030;border-bottom-color: #030;}</style></head><body> <div class="site-tip"><img src="images/lemon.jpg"width="15" height="14" alt="Lemon" title="Financial Financial Help - Resources" /> | <span style="font-weight:bold">Financial Resources are Getting Better Everyday.</span> </div> <div style="position: absolute; left: 12.5%; top: 40px; height: 90px; width: 289px;"> <a href="/" title="Financial Guide Book"><img src="images/financial_lemonade_logo.png" width="280" height="82" alt="Financial Lemonade Logo" title="Financial Help" /></a></div> <div class="top_right_bar"></div><div class="nav_bar"> </div> <div class="main_bg"> <div style="background-color: #0000; background-color: rgba(255,255,205,0.5); position: absolute; height: 200px; width: 373px; left: 13px; top: 185px; moz-border-radius: 15px; -webkit-border-radius: 15px; -khtml-border-radius: 15px; border-radius: 15px;"><span style="position:absolute; top: 12px;color:#1A1A1A;font-size:22px;text-align:center;"> <u><b>Get The Following Resources Now!</b></u></span><span style="position:absolute; top: 25px;color:#1A1A1A;font-size:22px;text-align:left; "> <ul> <li>Emergency Cash in 24 Hours</li> <li>Credit Cards to Pay Bills</li> <li>Credit Repair Assistance</li> <li>Money Saving Alternatives</li> <li>Housing Resources</li> </ul></span> </div> <div style="background-color: #0000; background-color: rgba(255,255,205,0.5); position: absolute; height: 368px; width: 276px; left: 614px; top: 18px; moz-border-radius: 15px; -webkit-border-radius: 15px; -khtml-border-radius: 15px; border-radius: 15px;"><span style="position:absolute; top: 30px; left:25px;"> <!-- constantcontact.form --><form id="ccsfg" name="ccsfg" method="post" action="/CCSFG/signup/index.php"> <h4>Registration Form</h4><p>To join our mailing list, please complete the information below and click 'Join My Mailing List'.</p> <!-- ########## Email Address ########## --><label for="EmailAddress">Email Address</label><input type="text" name="EmailAddress" value="" id="EmailAddress" /><br /> <!-- ########## First Name ########## --><label for="FirstName">First Name</label><input type="text" name="FirstName" value="" id="FirstName" /><br /> <!-- ########## Last Name ########## --><label for="LastName">Last Name</label><input type="text" name="LastName" value="" id="LastName" /><br /> <!-- ########## Contact Lists ########## --><input type="hidden" checked="checked" value="General Interest" name="Lists[]" id="list_General Interest" /><!-- ########## Success / Failure Redirects ########## --><input type="hidden" name="SuccessURL" value="http://www.financial-lemonade.com/success.php" /><input type="hidden" name="FailureURL" value="http://www.financial-lemonade.com/error.php" /> <input type="submit" name="signup" id="signup" value="Join My Mailing List" /> </form> </span> <span style="position: absolute; bottom: 4px; color: #666; font-size: 12px;text-align: left; padding: 10px; width: 248px; left: 5px;"> By submitting, I certify that I am a US Resident over the age of 18, and I agree to the terms and conditions and privacy policy below.</span > </div> </div><div class="left"><div style="background-image: url(images/big_orange_arrow.png); background-repeat: no-repeat; position: absolute; height: 152px; width: 635px; left: 283px; top: 196px; moz-border-radius: 15px; -webkit-border-radius: 15px; -khtml-border-radius: 15px; border-radius: 15px;"><span style="position:absolute; top: 20px;color:#FFF;text-shadow: 2px 1px 3px #333333;font-size:22pt;font-weight:bold;text-align:left;"> Resources to Help Your Financial Situation</span><span style="position:absolute; top: 70px;color:#FFF;text-shadow: 2px 1px 3px #333333;font-size:20pt;font-weight:bold;text-align:left;"> Are You Experiencing Financial Hardship? <br /> Get Help Today!</span></div></div> <div class="main_bg1"><span style="position:absolute;top:5px;left:30px;color:#640;font-size:22px;text-align:left;"><b>$787 Billion Stimulus!</b><span style="position: absolute; top: 5px; left: -17px; color: #640; font-size: 22px; text-align: left; width: 251px; height: 103px;"><br />It is up to you to claim your piece of stimulus funding.</span></span></div> <div class="main_bg11"><span style="position:absolute;top:5px;left:15px;color:#640;font-size:22px;text-align:center;"><b>Federal Financial Aid!</b><span style="position: absolute; top: 6px; left: -2px; color: #640; font-size: 22px; text-align: left; width: 251px; height: 103px;"><br /> Would you go back to School if you Qualify?</span></span></div><div class="main_bg12"><span style="position:absolute;top:5px;left:25px;color:#640;font-size:22px;text-align:center;"><b>Struggling Financially?</b><span style="position: absolute; top: 5px; left: -17px; color: #640; font-size: 22px; text-align: left; width: 251px; height: 103px;"><br /> Hard to find resources can help you get answers.</span></span></div><div class="main_bg13"><span style="position:absolute;top:10px;left:300px;color:#640;font-size:16px;text-align:center;"><b>© Financial-Lemonade.com • <a href="/privacy_policy"title="Privacy Policy">Privacy Policy</a></b></span></div> <div class="nav_bar2"> </div> <!--<script type="text/javascript">$('#ccsfg').submit(function() { $.ajax({ url: 'CCSFG/signup/index.php', data: { EmailAdress: $("#EmailAddress").val(),FirstName: $("#FirstName").val(),LastName: $("#LastName").val()}, type: 'post', success: function (output) {alert(output);}}); return false;});</script>--></body></html> <?phprequire_once('../setup/functions.php');require_once('../setup/build_functions.php');include_once('../cc_class.php');$ccConfigOBJ = new CC_Config();$ccContactOBJ = new CC_Contact();$ccListOBJ = new CC_List(); if (!empty($_REQUEST)) { $postFields = array(); // ## PROCESS BASIC FIELDS ## //$postFields["email_address"] = $_REQUEST["EmailAddress"];$postFields["first_name"] = $_REQUEST["FirstName"];$postFields["last_name"] = $_REQUEST["LastName"];$postFields["middle_name"] = $_REQUEST["MiddleName"];$postFields["company_name"] = $_REQUEST["CompanyName"];$postFields["job_title"]= $_REQUEST["JobTitle"];$postFields["home_number"] = $_REQUEST["HomePhone"];$postFields["work_number"] = $_REQUEST["WorkPhone"];$postFields["address_line_1"] = $_REQUEST["Addr1"];$postFields["address_line_2"] = $_REQUEST["Addr2"];$postFields["address_line_3"] = $_REQUEST["Addr3"];$postFields["city_name"] = $_REQUEST["City"];$postFields["state_code"] = $_REQUEST["StateCode"];$postFields["state_name"] = $_REQUEST["StateName"];$postFields["country_code"] = $_REQUEST["CountryCode"];$postFields["zip_code"] = $_REQUEST["PostalCode"];$postFields["sub_zip_code"] = $_REQUEST["SubPostalCode"];$postFields["notes"] = $_REQUEST["Note"];$postFields["mail_type"] = $_REQUEST["EmailType"]; $postFields["success_url"] = $_REQUEST["SuccessURL"];$postFields["failure_url"] = $_REQUEST["FailureURL"]; $postFields["request_type"] = $_REQUEST["RequestType"]; session_start();session_regenerate_id(); $email_address = $postFields["email_address"];$_SESSION["pemail"] = $email_address;$_SESSION["plast"] = $postFields["last_name"];$_SESSION["pfirst"] = $postFields["first_name"]; $p_email=$_SESSION["pemail"];$p_last=$_SESSION["plast"];$p_first=$_SESSION["pfirst"]; $dbh = new PDO('mysql:host=financial-lemonade.com;dbname=finlem', 'root', 'Feeds777');$count = $dbh->exec("set sql_safe_updates=0;");$dbh->exec("delete from users where first=\"\" and last=\"\" and email=\"\";"); $res=$dbh->query("select * from users where email=\"$p_email\";");$count = $res->rowCount();if($count == 0){$dbh->exec("insert into users(first,last,email) values(\"$p_first\",\"$p_last\",\"$p_email\");");$dbh->exec("delete from users where first=\"\" and last=\"\" and email=\"\";");} session_write_close();session_destroy(); // ## PROCESS CUSTOM FIELDS ## //$postFields["custom_fields"] = array();foreach($_REQUEST as $key=>$val) { if (strncmp($key, 'CustomField', strlen('CustomField')) === 0) {$postFields["custom_fields"][substr($key, strlen('CustomField'), strlen($key)-1)] = $val;} } // ## PROCESS LISTS ## //$allLists = $ccListOBJ->getLists('', true); foreach ($allLists as $k=>$item) {if($_REQUEST['Lists'] && !empty($_REQUEST['Lists'])){if (in_array($item['title'],$_REQUEST['Lists'])) {$postFields["lists"][] = $item['id'];}}else {if (in_array($item['title'],$ccConfigOBJ->contact_lists)) {$postFields["lists"][] = $item['id'];}}} $contactXML = $ccContactOBJ->createContactXML(null,$postFields); $return_code = $ccContactOBJ->addSubscriber($contactXML); if($postFields['request_type'] == 'ajax'){ $postFields["success_url"]=''; $postFields["failure_url"]=''; } if ($return_code==201) {$error = false;if($postFields["success_url"]){ header('Location:'.$postFields["success_url"]); }else { echo '<div id="code" title="201"></div><h3>Thank you!</h3><p>Your interest preferences have been successfully recorded.</p>'; }} else if ($return_code==409) {$error = true;if($postFields["failure_url"]){ //header('Location:'.$postFields["failure_url"]);header("location: http://www.financial-lemonade.com/error.subscribed.php");}else { echo '<div id="code" title="409"></div><h3>We\'re Sorry!</h3><p>It appears that you are already a subscriber of our mailing list.</p>'; }} else {$error = true;if($postFields["failure_url"]){ header('Location:'.$postFields["failure_url"]); }else { echo '<div id="code" title="'.$return_code.'"></div><h3>We\'re Sorry!</h3><p>It appears that you were not added to our mailing list. This may be due to one or more of the following reasons:<ol><li>You have misspelled your email address</li><li>You did not choose a list to subscribe to</li><li>The system may be busy. Please try again later</li></ol></p>'; }} } ?>
  11. <?phpsession_start(); $p_email=$_SESSION["email_address"];$p_last=$_SESSION["last_name"];$p_first=$_SESSION["first_name"]; $dbh = new PDO('mysql:host=financial-lemonade.com;dbname=finlem', 'root', 'Feeds777');$count = $dbh->exec("set sql_safe_updates=0;"); $res=$dbh->query("select * from users where email=\"$p_email\";");$count = $res->rowCount();if($count == 0){$dbh->exec("insert into users(first,last,email) values(\"$p_first\",\"$p_last\",\"$p_email\");");}session_write_close();session_destroy(); header("location: http://www.financial-lemonade.com/");?> For some reason the first time this script is ran I get an empty row in my database even though I am positive I entered data into my form. If I run the program again I get good data entered into the database. It seems there is something wrong with $_SESSION. My PHP version is 5.3.
  12. It needed to be more like this: session_start();$email_address = $postFields["email_address"];$_SESSION["email_address"] = $email_address;$_SESSION["last_name"] = $postFields["last_name"];$_SESSION["first_name"] = $postFields["first_name"];session_write_close(); The call to session_write_close() brought the code online.
  13. IIS seems to be fine:OUTPUT:User added...mysql@mysql.commysqlmysql Apache & PHP not so muchOUTPUT:User added... success.php:<?phpsession_start();echo "User added...";echo $_SESSION["email_address"]."<br>";echo $_SESSION["last_name"]."<br>";echo $_SESSION["first_name"]."<br>";?> Why would $_SESSION be output on one server but not on the other. I already tried setting the permissions of the sessions save path to 777 to no avail.... I have to admit I am most confused. The code does run on both servers without any serious breaks but on my rackspace.com cloud I dont get the $_session coming out. Does anyone know why this might be?
  14. Most of the time when I install PHP I get the current directory of the .php file returned from my script. With Zend Server 6 CE DOCUMENT_ROOT seems to be truncating the .php files running directory and is always returning htdocs as the last folder regardless of the fact that my application is actually in /htdocs/samedaycrm/documentroot.php. Is there some way to change the configuration for DOCUMENT_ROOT so that it starts returning the current running directory of the .php file?
  15. <textarea id="event_memo" style="padding: 0px; width: 300px; height: 50px;"><?php echo $event_memo; ?></textarea></br></br> The above works out much better. At first I thought it was the way the PHP is however a text area does not have a value property to set. It does look normal this way. Thanks for your reply.
  • Create New...