Jump to content
Larry Ullman's Book Forums

TomTom

Members
  • Posts

    14
  • Joined

  • Last visited

TomTom's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. TomTom

    Introductions

    Thanks. So... tell me about "apps" and "mobile computing". Where do these fit in? Are most of these mobile "apps" just web applications written for mobile devices?
  2. Wow!! Thanks everyone. Would have given up without your help! Finally figured out WHY I was having a problem (dumb I guess)... once I coded the javascript as PCDATA (surrounding it with "/* <![CDATA[ */" and "/* ]]> */") (I had coded my document as XHTML) it worked fine. I'm just stumbling along... sorry. Thanks for all your help and support.
  3. Thanks Margaux... sorry about that (I'm embarassed), but, that was only in my post. As above in full list, script does contain 'y'. I'm not an Apache expert, but, would my problem have anything to do with an ".htaccess" file? What log might I look at to see if there is an access problem (when searching web, saw this as possible issue - some people actually removed .htaccess file?) Really appreciate all your suggestions. Thanks
  4. I'm not an expert with FireBug, however, when I run the "simple" tinyMCE example FireBug stops at the line: tinMCE.init({ and FireFox's status seems to continually be reporting "connecting". I'm stumped?
  5. Thanks. I've deleted and reextracted all MCE files under folder "tinymce" which is under "htdocs". Still no success. Is there some Apache configuration file which needs modification? Thanks so much for your help.
  6. You're suggesting I should put the tinyMCE files in my htdocs (web folder)? I'll give that a try. Thanks very much!
  7. TomTom

    Introductions

    Ah, thanks very much! Clears a little up. I started with your book "PHP 6 and MySQL5" and followed that with "PHP 5 Advanced", "Effortless E-Commerce", and "Building a Web Site with Ajax". All excellent! I find I always have lots of questions though (not as a result of some shortcoming in the books though) - reading the Ajax book, I realized I know very little about DOM and that Javascript has grown dramatically since I was first introduced to it years ago. So, I've been delving back into those topics. I was scanning "Effortless" and ran across tinyMCE... more questions (I've posted one under that topic.) So, Yii, Zend Framework, and CakePHP are supposed to make it easier for me/us to create a custom web site... different from a CMS like Zen Cart, using something called a "Model, View, Controller" (MVC) paradigm (sp)? But, to use these MVC products, would you say that one still has to have a solid understanding of HTML/CSS/Javascript/PHP/MySQL? Or can the presentation layer, HTML & CSS, be handled by a designer while the rest by a programmer? Thanks very much for your time, insight, and enlightenment!
  8. Had a problem when trying to understand and install tinyMCE - kept getting error "tinyMCE is not defined". I've searched web and found several blogs (most several years old), but, none offered solution which worked in my situation. Could you offer suggestion for remedy? Thanks. MS Windows 7 Home Premium Service Pack 1 XAMPP vs 1.7.7 Apache/2.2.21 (Win32) PHP vs 5.3.8 MySQL Server vs 5.5.16 TinyMCE vs 3.5.6 All files & folders under jscripts/tiny_mce extracted to C:/xampp/TinyMCE "EnableSendfile off" uncommented in httpd.conf TinyMCE test program located in C:/xampp/htdoc/TestTinyMCE.html as follows: <DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type="text/javascript" src="c:/xampp/TinyMCE/tiny_mce.js"></script> <script type="text/javascript">//<![CDATA[ tinyMCE.init({ mode : "textareas", theme : "simple" }); //]]></script> </head> <body> <form> <textarea name="content" cols="50" rows="15"> This is some content that will be editable with TinyMVE. </textarea> </form> </body> Firefox vs 13.0.1 - Firebug reported error as follows: tinyMCE is not defined [break On This Error] tinyMCE.init({ TestTinyMCE.html (line 9)
  9. TomTom

    Introductions

    Thanks very much! A question on a different topic; I believe Zend Framework is available on the IBM AS400/iSeries and based on some of your recent comments, I believe this is similar to Yii... but, can you tell me where I can find how this, Frameworks, differs from Templates like Smarty?
  10. TomTom

    Introductions

    Hello all! TomTom here. I'm a "newbie" and trying to figure out how it all goes together. Have to admit I jump around a lot doing so. Must have about 40 books covering PHP, DOM, Ajax, CSS, MySQL, etc. and now I'm trying to figure out how to develop skills... using Smarty, CakePHP, PEAR's QuickForm2. All this and Javascript too! My head just spins! I don't know how you all do it. I'm just amazed and you have my admiration! I've spent the last decade working on an IBM iSeries (AS400) with a little VBA & VB thrown in. About the closest we got to the Web then was a stand-alone HTTP gateway program written in RPG. Hope you all will bear with me as I stumble along and, thanks in advance for your help and tolerance.
  11. Thanks so very much for replying... I hope I've included the code appropriately. I believe I've used "mysqli" exclusively in all my calls. Question (since I'm a newbie) - should I assume it to be MYSQLI_NUM for mysqli calls and MYSQL_NUM for the (older?) mysql calls? <?php # Script 3.1 - db_sessions.inc.php $sdbc = NULL;   function open_session() { global $sdbc; $sdbc = mysqli_connect ('localhost', 'ts_ajax', 'jANuary18', 'ts_ajax') or die('Cannot connect to the database.'); return true; }   function close_session() { global $sdbc; return mysqli_close($sdbc); }   function read_session($sid) { global $sdbc; $q = sprintf('SELECT data FROM sessions WHERE id="%s"', mysqli_real_escape_string($sdbc,$sid)); $r = mysqli_query($sdbc,$q); if(mysqli_num_rows($r)==1) { list($data) = mysqli_fetch_array($r, MYSQL_NUM); return($data); } else { return '';} } function write_session($sid, $data) { global $sdbc; $q = sprintf('REPLACE INTO sessions (id, data) VALUES ("%s", "%s")', mysqli_real_escape_string($sdbc, $sid), mysqli_real_escape_string($sdbc, $data)); $r = mysqli_query($sdbc,$q); return mysqli_affected_rows($sdbc); }   function destroy_session($sid) { global $sdbc; $q = sprintf('DELETE FROM sessions WHERE id="%s"', mysqli_real_escape_string($sdbc,$sid)); $r = mysqli_query($sdbc,$q); $_SESSION = array(); return mysqli_affected_rows($sdbc); }   function clean_session($expire) { global $sdbc; $q = sprintf('DELETE FROM sessions WHERE DATE_ADD(last_accessed, INTERVAL %d SECOND) < NOW()', (int) $expire); $r = mysqli_query($sdbc,$q); return mysqli_affected_rows($sdbc); }   session_set_save_handler('open_session', 'close_session', 'read_session', 'write_session', 'destroy_session', 'clean_session'); session_start();   ?>
  12. I am running PHP under XAMPP on a Windows 7 machine. When running Script 3.1 (saving session data to database), I received an error on line 53. When I changed the constant from 'MYSQLI_NUM' TO 'MYSQL_NUM' this corrected the error. Is this a typo or is there some other reason for this? Thanks very much.
  13. Perhaps I got lost and didn't see it... did the HTML Form Action tag have to be change to "add_employee_xml.php"?
×
×
  • Create New...