Question for David Powers - Zend Framework

Using the Zend Framework on your local computer and making reference to the library, I was wondering when you your code on a server online via FTP (how reference you $library = ' C: / php_library/ZendFramework/library ' ;)?) Because it wouldn't be is no longer on you local computer.

Silken_thread wrote:

Using the Zend Framework on your local computer and making reference to the library, I was wondering when you your code on a server online via FTP (how reference you $library = ' C: / php_library/ZendFramework/library ' ;)?) Because it wouldn't be is no longer on you local computer.

Simple. You download the Zend Framework on your remote server and point $library to the new location.

It is covered in Lesson 13 of the book (pages 468-469).

Tags: Dreamweaver

Similar Questions

  • Question for David Powers on a subset of records display

    David,

    I used your fantastic book, PHP Solutions to great success in the development of my own projects.

    My problem is in the rest of your approach to display a subset of the records in my database. In your book (page 333, php solution 12-4), you use the tables, and in my design, I am using CSS. Everything works fine if I display the record set, but when I want to limit the number of records displayed on a page, I can't make it work. I suspect that your method using the table is "autonomous" insofar as the table was created on the various parameters of the subset.

    I don't have an example of a line of code, rather I would like to find a resource that could help me shed some light on this problem. I have tried things for hours today, but can't achieve my goal to limit the quantity x of subsets per page.

    Any help in the right direction would be greatly appreciated.

    Sincerely,

    wordman

    The fact that the thumbnails are displayed in a table is not relevant. What controls the subset of records being retrieved from the base is the code in step 4 top of page 335.

    $startRow is the current page number (counted from 0) times SHOWMAX (the number of items to display on the page.

    Which translates the SQL on page 2 that said: ' SELECT * LIMIT 6, 6 IMAGES. ($startRow is 1 * 6).

  • Question for Mr. Powers or other Experts in the community.

    Hello


    What I try to do is not simple; at least for me, if it was, I would have it already.

    I posted a similar question in the applications forum but I realized to borrow this way can take me a little.

    What I try to do is set a few html code in php include file, I know how to do.

    Then add a link to my page that puts the html content of the include file when a link is clicked.

    So I'll have several files, each offering a different html content that will be written to the page when the individual links are click on include.

    That's what I do not know how. Get the content of the include page file when a link is click.

    This idea is a simple placeholder until I can learn how to use PHP/MySql and Dreamweaver dynamic behaviors and or functions.


    I read on it currently, creation of user account (login/Blog Post).

    I know that maybe it's not the best area, but I was looking for ideas from the PHP experts attending this part of the forum, as Mr. Powers.

    By the way you use PHP include to indicate the page current is a method of killer! Save a load of time.

    Thank you all!

    Patrick

    Webethics wrote:

    Thus, the variable containing the content will be in a separate file?

    Or they are all in the same page?

    In this case, they are defined in the same page.

  • OT: Question for author David powers

    Hi David Powers.

    I was wondering if I could order this book (as in "early" command) "PHP Solutions: Dynamic Web Design Made Easy." When this work is published in the market? I think you had mentioned this a while back in the middle of November of this year (2006), no?

    Finally, I love your book, "PHP for Dreamweaver 8" and you've probably noticed that I'm recommending other participants your book several times already. Because it's a book excellent, excellent. I mean! Like no other! * hands down *.

    I really recommend that you wrote this book rather eloquencely a concise, clear and precise, to discuss or present information at all on PHP working around in/with DW8. Thank you very much, David Powers!

    Thank you, Brian, aka DWD

    Deaf Web Designer says:
    > I was wondering if I could order this book, 'PHP' (as in 'early bird' command)
    > Solutions: Web design Dynamics Made Easy. "When this book is distributed in
    > market? I think you had mentioned this some time ago in the middle of
    > November this year (2006), no?

    "PHP Solutions" are available for pre-order on Amazon (and probably
    other online stores). The official publication date is November 20, and
    I understand that the book is on schedule. He was sent to the last printing
    Friday. You can see the details of what the book contains, together
    with direct links to some stores online, by visiting my site to the
    following address:

    http://foundationphp.com/phpsolutions/

    I would like to point out that there * not * a book of Dreamweaver. It emphasizes
    entirely on PHP coded manually. Some of these techniques in the book copy
    which is already automated for you by Dreamweaver. However, there is a
    a lot of other material that does not support Dreamweaver. So I hope
    Dreamweaver users will also find the book useful.

    It will also be published as an e-book (available through the Apress
    site). There is a special offer on the last page of the printed version
    for all those who want the printed and electronic versions.

    Online stores are displayed just in case any confusion, the
    book as having a purple cover, which is very different from that
    shown on my site. Purple cover was just a mockup out my
    editors several months ago. I expect they will get finally round
    showing actual coverage, which is a kind of matte gold - and in my opinion,
    much more enjoyable.

    > Finally, I love your book, "PHP for Dreamweaver 8" and you probably
    > noticed I have recommend other participants your book several times already.
    > Because it is an excellent book, excellent. I mean! Like no other! * hands down *.

    Thank you, Brian, I'm glad you like it. I also hope that "PHP Solutions"
    the height of your expectations.

    --
    David powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • Downloading files using Zend Framework

    I'm tyring use Zend Framework to download files as described in the book "Adobe Dreamweaver CS5 with PHP" by David Powers.  I use the code example (more or less) and can operate perfectly with a local installation of XAMPP Apache and PHP.  However, I can't it works correctly with a site hosted, after trying GoDaddy and Verio.

    Zend Framework is correctly installed, include the paths correctly set (I know that because other Zend FW operations, such as the validation work very well).  In addition, if the directory I want to download on is not specified correctly I have errors on it.  But when I try to actually upload a file (once again, with a code that works on the XAMPP platform), I get nothing.  No errors and no file uploaded.

    I have the script set up to send an email with a link to the downloaded file and the name field is empty (but the email get sent, indicating again that the ZF works).  I'm finding I have something misconfigured on hosting plaforms and am looking for suggestions as what to look.  Thank you.

    BTW, checked the permissions on the download directory, and it should be writable...

    No problems. It's a mistake that we all have at one time or another. I'm glad you find the book useful.

  • same old same old: the appeal of David Powers

    It was interesting to watch and read comments recently about the tangle of DW with database-driven sites.

    I use DW CS6 (12.03) Mac with Mountain Lion and have installed MAMP and runnning.

    I'm done religiously tute David Powers here.

    Question:

    Why am I getting her "dynamically files cannot be resolved due to an internal error" when I go to the page with the Live button?

    The page displays empty... Laughing out loud

    Can someone tell me the possible cause?

    I wonder why Adobe has left this for 3 years when (after all updates) the message is still displayed and development stops.

    Are the defective tutorial files, or am I missing soemthing?

    David: can shed you some light on this please?

    In order to track the problem, I created a new site on my MacBook Air running Mountain Lion and followed the steps in the tutorial, using a new download of the files. Everything worked exactly as planned.

    After finishing, I checked the version of Dreamweaver CS6. It turned out to be the original 12.0. I tried to apply the update 12.03, but could not. So, I uninstalled and downloaded again CS6. However, because I have a subscription to creative cloud, when I have updated the program, he maintained at 12.2.

    Also, I copied your code of the forum and who was running. It also displays correctly.

    I don't know if there is a problem with CS6 12.03, but it seems highly unlikely because the files work fine in Dreamweaver CC as well, even if I do not have the server behavior extension installed.

    The unusual thing only I see in your screenshots is the wildcard: php_test in the privileges of phpMyAdmin. However, we should not make a difference because Dreamweaver must clearly connect seamlessly to your database.

    The only other thing I see as a possible cause is the server parameter in the site configuration dialog box. Make sure that the check box is selected, not away.

  • Working with Zend Framework 2 in Dreamweaver

    Good evening

    How do I configure CC of Dreamweaver to work with Zend framework 2? All of the documentation I've found is on the first version of ZF.

    Thank you for your help.

    I do not work with ZF2. I've only worked with ZF1. However, the configuration is the same for any PHP framework in Dreamweaver.

    1. Access the Site > indicators of specific Code of Site and set as root in a folder at least one level higher than the folder that contains all the class definitions.
    2. Click on the button "+" above the zone file (s) to open the add a file/folder dialog box.
    3. In the dialog box, click the icon for selecting a folder to select the top-level folder that contains the class definitions.
    4. Select the recursive check box.
    5. Click on the more button Extensions, and then type .php in the box that opens.
    6. To close the add a file/folder dialog box, click Add.
    7. Click OK to close the dialog indicators Site specific Code.

    This gives you the code for the framework hints. ZF2 being very large, Dreamweaver takes a little time to scan all files. If you use only a part of the framework, it is more efficient to use the dialog box add a file/folder to add only the parts of the framework you are interested in.

    A disadvantage of the Dreamweaver site management system, is that you cannot specify a folder in a site as being the root of the site. It is therefore difficult to use the site root relative links in a MVC framework. I recently contacted a Dreamweaver engineer for the possibility of designating a subfolder as the root of the site. He was receptive to the idea, then it could be incorporated into a future version of Dreamweaver. For now, the only solution is to create two site definitions and nest one inside the other. The external site contains all of the files inside and outside of the root of the site. The internal site contains only files in the root of the public site.

  • Difference between [Zend Framework, Codeigniter] and [CMS such as Joomla]

    I recently met with confusion about the difference between the frameworks such as Zend Framework and Codeigniter of CMS such as Joomla, Drupal and Wordpress. According to my research, managers are similar to PHP classes, where a class provides a collection of functions (for example mail()); While the CMS work in very different ways. I hand-code PHP for several projects and is pleased recently to learn Zend Framework (could go for Codeigniter first because it is lighter). Anyone who can identify the differences between framework and CMS?

    Thank you.

    Merry Christmas and Happy New Year.

    I have not used of CodeIgniter, so cannot comment on its capabilities. I decided however to use because it is based on PHP 4.3, so can not take advantage of the new features and improvements to speed in PHP 5.

    I love Zend Framework, but most of the tutorials only focus on using it to build an MVC application, which I think is excessive for a small site. I prefer to use individual components, such as Zend_Mail, Zend_Service_ReCaptcha and Zend_Service_Amazon.

  • Question for the moderators of the Forum

    Salvation and thanls for all your work on behalf of the community.

    Today I noticed that my Forum name changed from Ken Binney for many years. for Ken Binney-FD1LaW.

    Would appreciate ideas as to why.

    Thank you

    I'm not a moderator, but the same thing happened to me. I don't remember if it was a bug that hit the Board, but David Powers said by signing our and signature should heal, at least it did for me.

    Gary

  • Seek help from David powers once again, please

    David,

    I am using your drop-down list of the script files page 197 of PHP Solutions. I have adapted successfully to read a list of PDFs of my subdirectories. The list of files is not on a base of data, but read in directly from a subdirectory.

    However, for the life of me, I can't understand how actually do one load the PDF file. I tried every syntax/combination in the action property that I can think of with no luck.

    What I would do is either: 1) select the PDF in the drop down menu and then have it load in the browser or the 2) select the PDF fromt the drop down then press a button 'Download' and the file to load in the browser.

    Can you please help me understand this?

    Thanks in advance. Here is my code so far.

    Glenn

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" " 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 "/ >"
    drop down Image < title > < / title >
    < / head >

    < body >
    < form id = "form1" name = "form1" method = "post" action = "PDF files / <?" PHP echo $_POST ['pix'];? "> .php" >
    < p >
    < select name = "pix" id = "pix" >
    < option value = "" > select a picture < / option >
    <? PHP
    include('Includes/buildFileList5.php');
    buildFileList5 ('PDFs');

    ? >
    < / select > < label > < / label >
    < /p >
    < p >
    < label > download
    < input type = "submit" name = 'Download' id = 'Download' value = "Submit" / >
    < / label >
    < /p >

    < / make >
    < / body >
    < / html >

    GEAtkins wrote:
    > Now, I get this error in download.php.
    >
    > Parse error: syntax error, unexpected T_STRING in
    > C:\xampp\htdocs\Garrison\download.php on line 21

    It's the kind of mistake that you should be able to diagnose quickly by
    looking at the code coloring. The error is mine, because I was
    just by typing in a News Reader, but the cause becomes immediately visible
    in Dreamweaver code view, because several lines after the leak of slash
    became red. This means that the following lines are treated as
    part of the chain. A backslash before a single quote, it turns
    in a quotation mark in a string.

    The answer is to escape the backslash:

    > $filepath = ' C:\xampp\htdocs\Garrison\PDFs\'.$getfile;

    Should be this:

    $filepath = ' C:\xampp\htdocs\Garrison\PDFs\\'.$getfile;

    You can also use forward slashes for the separator of directory like this:

    $filepath = ' C:/xampp/htdocs/Garrison/PDFs/'.$getfile;

    --
    Adobe Community Expert David Powers
    Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Is this a problem re CONCAT: David Powers, or a problem of magic quotes...

    I tried to understand this with the posts (and some info on the site of David, etc.), and I can't seem to understand the real problem.

    I'm working on a tutorial and I can't know if the error message is correct and this is an incorrect encoding inserted by DW (and if so, I can't understand what it takes to correct) or

    If there is a problem with DW8.0.2 like what will fix the fix that seems so hard to get, or

    If this goes in the direction of an example of why magic quotes must be turned off and if so, where and how can I turn off the correct code, and if not, how could it be properly corrected?

    Here is the error message:
    Parse Error: parse error, unexpected '=' expected ', 'or')' in < dittos > on line 34.

    Here's the code that reference:
    32 $Search_rsSearch = "abc";
    33 cases (isset(#txtSearch#)) {}
    34 $Search_rsSearch = (get_magic_quotes_gpc())? #txtSearch #: addslashes(#txtSearch#);
    35}
    36 @mysql_select_db ($database_dorknozzle, $dorknozzle);
    37 $query_rsSearch = sprintf ("SELECT * FROM EmployeeStore WHERE ItemName AS CONCAT('%%', %s,)")
    (') ", GetSQLValueString ($Search_rsSearch,"text"));
    38 $rsSearch = mysql_query ($query_rsSearch, $dorknozzle) or die (mysql_error ());
    39 $row_rsSearch = mysql_fetch_assoc ($rsSearch);
    40 $totalRows_rsSearch = mysql_num_rows ($rsSearch);

    I use php4.4.4, mysql5.0.24, apache2.2.3

    Thank you
    Jeff G.

    xViPERed wrote:
    > If there is a problem with DW8.0.2 like what the software fix that
    > seems to be hard to get set,.

    That will fix the part of your problem, but the error is caused by something
    Another thing:

    > Here is the error message:
    > Parse Error: parse error, unexpected '=', expected ","or")" in
    > on line 34.
    >
    > Here is the code it refers:
    > 32 $Search_rsSearch = "abc";
    > if 33 (isset(#txtSearch#)) {}
    > 34 $Search_rsSearch = (get_magic_quotes_gpc())? #txtSearch: #
    > addslashes(#txtSearch#);
    > 35}

    # is one of the characters used to comment on the part of a PHP script. I have
    think you have received it in the Dreamweaver Help files, which
    damage especially on this point. The show the runtime value
    expression as #formFieldName #, which isn't a ColdFusion, PHP model. You
    need to replace #txtSearch # with something like $_GET ['search'] or
    $_POST ['search'].

    What makes matters worse, is that the code inserted by 8.0.2 without the
    fix is also incorrect. Line 34 should be something like this:

    $Search_rsSearch = $_GET ['search'];

    Line 37 is also wrong.

    > 37 $query_rsSearch = sprintf ("SELECT * FROM EmployeeStore ItemName WHERE AS")
    > CONCAT('%%', %s,)
    (' > ' %%') ", GetSQLValueString ($Search_rsSearch,"text"));

    It should be this:

    $query_rsSearch = sprintf ("SELECT * FROM EmployeeStore WHERE ItemName")
    LIKE "%s", GetSQLValueString ('%'. $Search_rsSearch.) '%', 'text'));

    --
    David powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • Help please David powers

    David,

    I use redirection to a personal page on page 515 of The Essential Guide to DWCS3 in the following form: $_SESSION [MM_Username] .php in the field "If the connection is successful.

    This does work for me the first time, that loading of the login page. I get a 404 error. However, it I click the back button and try it again it works. I have a hypothesis that the Session variable is used before the username, it draws from the DB, but I don't know enough to be sure. I tried to move the lines of variable assignment and he screwed up royally.

    This is performed on a live server. Below is my code that works if I hit the back button. Any help would be greatly appreciated.

    Thank you.

    Glenn

    <? php require_once('.. / Connections/connatkinsdb.php');? >
    <? PHP
    If (! function_exists ("GetSQLValueString")) {}
    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
    {
    $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 "set":
    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
    break;
    }
    Return $theValue;
    }
    }
    ? >
    <? PHP
    Validate request to connect to this site.
    If (! isset {})
    session_start();
    }

    $loginFormAction = $_SERVER ['PHP_SELF'];
    If (isset($_GET['accesscheck'])) {}
    $_SESSION ['PrevUrl'] = $_GET ['accesscheck"];
    }

    If (isset($_POST['username'])) {}
    $loginUsername = $_POST ['username'];
    $password = $_POST ["pwd"];
    $MM_fldUserAuthorization = "admin_priv";
    $MM_redirectLoginSuccess = "$_SESSION [MM_Username] .php ';
    $MM_redirectLoginFailed = "... / Area/loginfail.php of the user;
    $MM_redirecttoReferrer = false;
    @mysql_select_db ($database_connatkinsdb, $connatkinsdb);

    $LoginRS__query = sprintf ("SELECT name from user, pwd, admin_priv FROM users WHERE username = %s AND pwd = %s",
    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

    $LoginRS = mysql_query ($LoginRS__query, $connatkinsdb) or die (mysql_error ());
    $loginFoundUser = mysql_num_rows ($LoginRS);
    If {($loginFoundUser)

    $loginStrGroup = mysql_result($LoginRS,0,'admin_priv');

    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);
    }
    }
    ? >
    ? >

    GEAtkins wrote:
    > I use redirection to a personal page on page 515 of the essential
    > Guide of DWCS3 in the following form: $_SESSION [MM_Username] .php in the "if".
    ' > connection is successful "field.

    Thank you for reminding me. There is a mistake in the book, I
    discovered during the Christmas period, if you forgot to send to friends of ED
    for the errata page.

    Do not use $_SESSION [MM_Username]. Use $loginUsername instead. He then worked.

    --
    Adobe Community Expert David Powers
    Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • The Essential Guide to Dreamweaver CS3 with CSS, Ajax, and PHP by David Powers

    The Essential Guide to Dreamweaver CS3 with CSS, Ajax, and PHP by David powers:

    This book would help me learn more about Spry and Ajax and how applications may be lodged with them, if I have my e-commerce site works on a compiled C code cart (ShopSite) but supports scripts PHP server-side or is - this only for shopping carts based on PHP itself (like X-Cart)?

    I'm not sure. Someone please let me know if I can buy this book. Thank you.

    ahsenabro wrote:
    > 1. What I need to be a developer/programmer to learn from this book or
    > can a savvy entrepreneur can also get some gems out of it and direct sound
    > programmer?

    You don't need no prior knowledge of PHP or Ajax, but you must
    know the basics of HTML and CSS. As I say in the introduction, "You."
    don't need to be an expert, but do not have a curious mind.
    It teaches the basics of web site design, or he's trying to list
    each unique feature in Dreamweaver CS3. There are many other books
    to fill this gap. However, by working through this book, you will gain a
    in-depth knowledge of the most important features of Dreamweaver.

    > 2. I am interested in buying this book especially to implement cool Ajax/Spry
    > stuff on my e-commerce site. I wonder about PHP, because the content of the book
    > mentions making a PHP site. Now I realize this book isn't on purchases
    > carts, but the Ajax/Spry stuff can be implemented on e-commerce sites, right?

    The book provides detailed coverage of the features of Spry 1.4
    Dreamweaver CS3, which can be applied to any site. With minor
    adjustment, you can also use Spry 1.6. It is important to realize,
    However, the features of Spry/Ajax in Dreamweaver CS3 * cover of no
    asynchronous requests to the server. The ability to communicate
    asynchronously with the server has been added in Spry 1.6. If it has
    the asynchronous server calls and answers you are looking for, your
    programmer will need to dig into the documentation for Spry 1.6 on the
    Adobe Labs site and manually code it.

    The Spry features covered in the book are Spry, Spry UI widgets effects
    (menu accordion, tabbed and folding panels), Spry
    Widgets of validation and Spry XML data sets.

    > I just want to know if I can learn and implement Ajax/Spry apps on my
    > HTML/CSS-based simple pages, on a server that allows PHP scripts on the server side
    > but the pages themselves are not with the .php extension. This book is still going
    > apply?

    Yes. All Spry techniques can be used on any web page. This is not
    you have to be a PHP one.

    --
    Adobe Community Expert David Powers
    Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Question for the geniuses of pictures only.

    Question for the geniuses of pictures only.

    You see, I started with iPhoto and later began to use Aperture.  With iPhoto and Aperture, you can have ALL the metadata below the thumbnails, (nice).  Well, I put all my images descriptions in the keywords section because it didn't really matter, because these programs could show them as thumbnails.

    Now, I use this wonderful program of Photos and I found out that it will ONLY show the title of"the image in the thumbnails.  I've got on 30 000 images with keywords but no title.  I want to move / copy the text in the keywords section in the section of the title. I'm not a computer scientist, I guess that my skills are in average.  But I can follow directions.

    Suggestions appreciated.

    Member of ASC compiled some useful on Photos AppleScripts. Maybe one of them will be sufficiently close to your needs.

    http://www.oldtoadstutorials.NET/no.P01.html

  • How to get assistance from mozilla to answer questions for windows when I use a macintosh computer

    How to get assistance from mozilla to answer questions for windows when I use a macintosh computer?

    Look on the right side of the knowlegde base articles, where it is said ' help to ". Here, you can change the operating system and the version of firefox. The content of the article will adjust.

    If you ask a question on the help forum, you can simply say this in your question.

Maybe you are looking for