DW CS5 with PHP: no "register_long_arrays" in php.ini

Mr. Powers:  I bought your book, “Adobe DW CS5 with PHP: Training from the Source.” I am running MAMP Pro 1.9.6 on a Mac Pro Intel, OS 10.6.8. Following your instructions in Chapter 2, I have changed ALL the settings per Table 2.1, EXCEPT “register_long_arrays” which I cannot find (searched every permutation in BBEdit) in either of the php.ini files listed. The php info v. 5.2.17 shows:
Configuration File (php.ini) Path: /Applications/MAMP/conf/php5.2
Loaded Configuration File: /Library/Application Support/appsolute/MAMP Pro/conf/php.ini
and the “PHP Core” section shows “register_long_arrays” = On.
Why can’t I find the setting in either php.ini file? Also, I have read that this setting has been deprecated in PHP 5.3; what does that mean to my configuration?
You recommend matching certain settings to the host’s server configuration; it would be very useful in avoiding potential problems to have a complete list of these configuration/parameter recommendations for a prospective host, don’t you think?

Thank you, SnakEyez02. At this point, I haven't gotten far enough to understand super-globals but I'm grateful for your help. After much head-banging, I believe the solution to my problem lies on this forum [ Re: Snow Leopard, MAMP php.ini Question ]. Though Mr. Powers recommends using MAMP Pro in the book, he doesn’t mention that changes made to settings in /Library/Application Support/appsolute/MAMP Pro/conf/php.ini are NOT LOADED and not reflected in the phpinfo.php file at subsequent server startups as they would be if I were using MAMP (not PRO).  In order for the settings changes to be loaded by MAMP Pro, editing must be done through the MAMP Pro interface menu /File/Edit Template/PHP 5.2.13 php.ini.
Having opened that template, I'm now faced with a another unforeseen question:  what to do with
[setting]  =  MAMP_error_reporting_MAMP
when the book says that setting should be either “= On” or “= Off.”  If you can help me with this one, you’ll make my week!

Similar Messages

  • DW CS5 with PHP - book question

    Hello,
    I'm working my way through the book "Dreamweaver CS5 with PHP" by David Powers and I've enountered something odd when it comes to code hints. On page 225, on step 3 I typed:
    $dbWrite = new Zend
    ...And code hints pop up, but neither Zend_Db_Adapter_Mysqli nor Zend_Db_Adapter_Pdo_Mysql are among the choices offered. The closest I get is "Zend_Db".
    I also tried typing "pdomy" like it says in the book, but still no cigar.
    I finished writing the code and tested the script in step 5 and it works fine. I just don't understand why those classes are not included in the code hints.

    Also, the same thing happened in step 5 when I tried to type $dbWrite->getConnection().
    no code hints popped up at all.

  • ANN: Dreamweaver CS5 with PHP: Training from the Source - Rough Cuts

    If you would like to get early access to my next book "Adobe Dreamweaver CS5 with PHP:  Training from the Source", the first six chapters (of 12) are now  available as Rough Cuts in Safari  Books Online.
    If you have a Safari Library subscription, you can  view the chapters free of charge, and see new ones as they're added.  Without a subscription, you can get access to the book in PDF format for  $34.99, including the finished ebook version when the book is complete.  You can also opt for the Rough Cuts PDF and Print bundle for $67.48.  The print version is expected to be released in early August.

    FIXED!!
    1)
    i finally did get the message problem was with:
    $mailhost='ssl://mail.domain.com';
    ssl:// was just nonsense and been removed
    2)
    'auth' => 'true' was changed to 'auth' => 'login'
    3)
    for bluehost i got information that it was tls secure connection protocol not ssl
    'ssl' => 'tls'
    4)
    port used '25' not 465.
    Didnt still tried 26 and 465 maybe they would work too.

  • CS5 with PHP - Lesson 7, Zend_Auth

    Hi there.
    Wondering if anyone can help shed some light on an issue I'm having that is based around the Login Script/Authentication in Lesson 7 of David Powers Dreamweaver CS5 with PHP book.
    I've created a few simple CMS's with the help of the book and everything works fine.
    For my next CMS however I would like to add different levels of access.
    Currently I have 2 database tables - Admin and Client. I then created login scripts that go to different areas - Front end Client login, for example www.website.com/login.php when authenticated Client is taken to www.website.com/index.php. I then did the same thing but for an Admin - www.website.com/admin/login.php when authenticated Admin is taken to www.website.com/admin/index.php
    This all works really well - I've used $identity to show welcome messages and the currently logged in user e.t.c.
    The issue is that because both logins use very similar code there is no difference between an Admin and a Client. If a Client logs in to their account, they could then type in the admin URL and access all of the admin features.
    To rectify this, is it a simple case of changing the storage variable? Currently I have the code identical to the book - if authentication is passed then $storage is used with getResultRowObject.
    Is it a simple case of changing this (say for the admin script) to - $adminstorage = $auth->getStorage(); $adminstorage->write...........
    Or will this just result in the same?
    If anyone could point me in the right direction for setting up different levels of access using the Zend_Auth_Adapter_DbTable or whether I need to use something else it would be greatly appreciated.
    Thanks.

    Hi Osgood
    Thanks for taking the time to reply.
    I already have separate tables for Admin and Clients.
    I think the problem is they are both calling the same Authentication adapter. Zend_Auth_Adapter_DbTable.
    Ideally I need a kind of 'realm' which some of the other Auth Adapters have but I'm not sure how to use them.

  • David Powers cs5 with php...Zend

    This one is aimed for David Powers. We are using your book for my advanved programming class. I continually have problems because they had us buy a domain instead of the one the book does it. At this point I'm on page 222ish, installing Zend. Obviously I'm using dreamweaver and my domain is with godaddy.com. I'm doing the section where you are are installing the library. I've got the library.php with no errors, I'm connected to my domain, and I have the zend file inside my local site folder. I've tried in the C drive but I cotinually get the same error:
    Warning: require_once(Zend/Loader/Autoloader.php) [function.require-once]: failed to open stream: No such file or directory in/home/content/79/7340479/html/library.php on line 4
    Fatal error: require_once() [function.require]: Failed opening required 'Zend/Loader/Autoloader.php' (include_path='.:/usr/local/php5/lib/php:C:\Users\Becky\Desktop\colts\ZF\ZendFramework-1. 11.4-minimal\library') in /home/content/79/7340479/html/library.php on line 4
    I've tried putting the zend folder in c, desktop, in side local site folder and same thing everytime. Any help would be appreciated.

    Re: David Powers cs5 with php...Zend
    Ok I'm gonna try and help ya until David gets here. Since I use Zend and have read parts of his book.
    First, are you trying to install zend at godaddy?
    Your include file is odd. "include_path='.:/usr/local/php5/lib/php:C:\Users\Becky\Desktop\colts \ZF\ZendFramework-1.11.4-minimal\library') in/home/content/79/7340479/html/library.php" - means PHP and Zend are located on 2 different machines
    I appreciate it. the "C:\Users\Becky\Desktop\colts \ZF\ZendFramework-1.11.4-minimal\library' is where the file path.I use Godaddy but I have it zend on my computer and am just trying to get it to run. I tried running it from desktop, C:(where it's at), andneven put it in the file manager on godaddy and tried that path...
    the code I'm using is:
    <?php
    $library = 'C:\Users\Becky\Desktop\colts\ZF\ZendFramework-1.11.4-minimal\library';
    set_include_path(get_include_path() . PATH_SEPARATOR . $library);
    require_once('Zend/Loader/Autoloader.php');
    $loader = Zend_Loader_Autoloader::getInstance();
    if ($loader) {
    echo 'OK';
    } else {
    echo 'We have a problem';
    I'm followed the book step by step but...
    when i click autoloader.php in the tab bar it has a get option. but when i click it it says "operation failed because it is not on the remote site.

  • Dreamweaver CS5 with PHP, not getting it to work with virtual Host

    I have not got far with the book so far.  I am still on the second chapter where you set the Virtual Host but after setting up the Dreamweaver site definition and doing the test.  I get the error that page cannot be found.
    I ask if I can mail the text file of the http.conf and the httpd-vhosts.conf to anyone to see if I screwed up somewhere .  I am running on Windows 7 with the WAMP setup.

    Mr. Powers,
    I used your included file httpd-vhosts.conf.  And it did something since now I get a new set of errors.
    ( ! ) Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
    ( ! ) Fatal error: Unknown: Failed opening required  'C:/vhosts/phpcs5/lesson02/site_check.php'  (include_path='.;C:\php\pear') in Unknown on line 0
    But I checked the properties of the folders and unchecked the 'read only' permission but still gets checked again.  I am using Windows 7 64-bit.
    I checked on the web nobody says any solutions about it, they only imply that is a permissions issue.
    I apologize, I found out the chapter files were encrypted... thanks

  • How i can deal with oracle file by using php api

    how I can deal with oracle file by using php api ?

    What has this to do with Reflections and Reference Objects?

  • Trouble with the header content of php script - return wrong character: ?�?

    Hello everybody!
    I have one problem with reading of content of php's return text value.
    Ok in php script was programmed something like this:
    ===========================================
         $new1 = ereg_replace(".*OUTPUT url=\"(.{40,70})\" ?/>.*", "\\1",$XMLResponse);
         $size = strlen($new1);
         header("Content-Type: text/plain");
         header("Content-Length: " .$size);
         echo $new1;
    ==========================================
    $new1 includes url address to picture.
    Ok, in my java applet I'm using the method readLine() of DataInputStream Class, where I'm reading the return text value of the mentioned php script. The code is here:
    ==========================================
              try {
                   dis = new DataInputStream(url.openStream());
                   str = dis.readLine();
              } catch (IOException e2) {
    ==========================================
    but response is a text plus this kind of characters in beginning : ?�?
    What the trouble there? Thank you
    Jan Zitniak :)

    Hello,
    thank you for your idea, but I resolved problem with this code:
              URL urlReal = null;
              try {
                   urlReal = new URL (str); // convert String to URL
              } catch (MalformedURLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    In that code I "converted" a string to url where the string happened a real URL address.
    Jan :)

  • Problems with mysql after update to php 5.3

    Hi everyone,
    I know I am not the only one having trouble with that upgrade but so far I still have some issues.
    I have read the news about the update and the wiki. I use apache, php, mysql and phpmyadmin.
    After the update, I installed php-apache, php-mcrypt and used php.ini.pacnew to do my new configuration.
    Everything works fine except mysql.
    I have a weird problem that is that I can access and do whatever I want to databases with phpmyadmin but as soon as I try to connect to the mysql database with php code then my browser tells me that the page can't be loaded and that "the connection terminated unexpectedly". What is the problem ? Am I the only one in this situation ?
    Thanks for your time !

    Here it is, that's the error log of httpd:
    [Sun Sep 27 17:25:07 2009] [notice] child pid 2006 exit signal Segmentation fault (11)
    [Sun Sep 27 19:40:32 2009] [error] [client 127.0.0.1] File does not exist: /srv/http/favicon.ico
    [Sun Sep 27 19:40:36 2009] [error] [client 127.0.0.1] File does not exist: /srv/http/favicon.ico
    [Sun Sep 27 19:40:37 2009] [error] [client 127.0.0.1] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /home/yms/projects/homepage/yms/index.php on line 60, referer: http://localhost/~yms/
    [Sun Sep 27 19:40:37 2009] [error] [client 127.0.0.1] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /home/yms/projects/homepage/yms/index.php on line 73, referer: http://localhost/~yms/
    [Sun Sep 27 19:40:37 2009] [error] [client 127.0.0.1] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /home/yms/projects/homepage/yms/index.php on line 60, referer: http://localhost/~yms/
    [Sun Sep 27 19:40:37 2009] [error] [client 127.0.0.1] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /home/yms/projects/homepage/yms/index.php on line 73, referer: http://localhost/~yms/
    [Sun Sep 27 19:40:37 2009] [error] [client 127.0.0.1] File does not exist: /srv/http/favicon.ico
    [Sun Sep 27 19:40:38 2009] [notice] child pid 2003 exit signal Segmentation fault (11)
    [Sun Sep 27 19:40:38 2009] [notice] child pid 2577 exit signal Segmentation fault (11)
    And that's the access log in case it is useful:
    127.0.0.1 - - [27/Sep/2009:19:40:32 +0200] "GET / HTTP/1.1" 200 788
    127.0.0.1 - - [27/Sep/2009:19:40:32 +0200] "GET /favicon.ico HTTP/1.1" 404 1085
    127.0.0.1 - - [27/Sep/2009:19:40:32 +0200] "GET /icons/blank.gif HTTP/1.1" 200 148
    127.0.0.1 - - [27/Sep/2009:19:40:32 +0200] "GET /icons/folder.gif HTTP/1.1" 200 225
    127.0.0.1 - - [27/Sep/2009:19:40:36 +0200] "GET /~yms HTTP/1.1" 301 368
    127.0.0.1 - - [27/Sep/2009:19:40:36 +0200] "GET /~yms/ HTTP/1.1" 200 1150
    127.0.0.1 - - [27/Sep/2009:19:40:36 +0200] "GET /favicon.ico HTTP/1.1" 404 1085
    127.0.0.1 - - [27/Sep/2009:19:40:36 +0200] "GET /icons/back.gif HTTP/1.1" 200 216
    127.0.0.1 - - [27/Sep/2009:19:40:37 +0200] "GET /favicon.ico HTTP/1.1" 404 1085
    And thanks for trying to help me ;-)

  • [CS5] set the path to include php files dynamically

    this is my code php
    #into file confstart.php i create the session
    #$_SESSION["PATH"]["CORELIB"]=$_SERVER['DOCUMENT_ROOT']."/system/core/lib";
    include($_SERVER['DOCUMENT_ROOT']."/newportal/system/config/confstart.php");
    include($_SESSION["PATH"]["CORELIB"]."/function_rvsfarm.php");
    Unfortunately, this  method of assigning variables paths dw does not understand ... can be  set statically in some menu paths?? or to understand the path dw?

    Dreamweaver wouldn't understand this locally as the document root isn't always where your files reside.  Also dreamweaver doesn't parse the php script the find your files unless you set up the dynamic content.
    I tend to create a constant and hard code the path
    define("ABSPATH", "/home/client/domain.com/public_html/");

  • Dw cs5 with existing wordpress site hosted on yahoo need help connecting to existing remote database

    I am having trouble establishing a database connection.  I can  connect with test databases but am having trouble using dreamweaver wtih  my existing wordpress website.  Am I able to use dreamweaver to edit  and live view my changes before uploading the changed files to my live  site?  Am I able to access my existing wordpress database with  dreaweaver?  I have imported it to my testing server/database but still  seem to be having trouble establishing a connection with it (think maybe  my folder hierarchy might be off).
    macintosh HD/Applications/MAMP/htdocs/nwm/wp/index.php
    "nwm" is the name of the folder that I have copied all of my site  files to and the folder I have dreamweaver pointing to.  "wp" is what I  have all of the wordpress files in (the ones I copied from my yahoo  server - including all my current theme files etc.)
    I am trying to put the info into the mysql connection dialog box:
    Connection Name: Testing (i am assuming this name is for my benefit only and doesn't actually matter)
    MySQL Server: mysql
    User Name: *****
    Password: *****
    Database: wp
    and am getting this message
    MySQL Error#: 2013
    Lost connection to MySQL server at 'reading initial communication packet', system error 61
    did some google seaches of the error.  Tried turning off the  firewall, and the advance tab allow mysql incoming  (there were 2 one  was allow one was not allow.  I changed both to allow)
    Cant really find anything on yahoo to help me out.  Looked in  phpmyadmin database named wp: wp_users to get the username and password  (which due to previous look for help - I think the password was  encrypted cuz it looked like a bunch of mumbo jumbo and am fairly  certain I know the correct password).
    Any help would be greatly appreciated!! I spent $50 on live chat  last night trying to resolve the issue only to find out at the end that  the guy really didn't understand my problem and doesn't have  dreamweaver.  I have also watched countless videos on Lynda.com and have  been thru forum after forum.  While this problem is only a couple weeks  old since I just got CS5.  I have been having trouble making any  headway learning php since I cant seem to make it past the set up  parts.  I have done the php / mysql essential training on lynda.com with  relative success except that I really dont want to work with any more  exercise files so I didn't go on to the beyond the basics. I recently  went thru most of the Dreamweaver CS5 and Wordpress 3. Also did the  first 4 chapters of Dreamweaver CS5 with PHP and MySQL. I need to start  integrating things into my live sites.  I am also trying to work my way  thru the learning php, mysql, javascript book by o'reily media by robin  nixon (as fun as reading a math text book) can't get thru it since I  can't relate any of it to my current sites/needs
    I am on MacBookPro OSX 10.6.6
    Installed MAMP to specification on all 20 tutorials I have tried including lynda.com
    Tested the testing server and is working
    Just installed dreamweaver cs5
    have been using wordpress online to create and edit posts (recently  upgraded to 3.? whatever the latest update was online which I believe  update the files on my yahoo server?)
    Have also installed wordpress on my computer (several times thru each tutorial trying to get this right.)
    Am I expecting the impossible?

    If wordpress controls it's own connection why am I unable to use the live view. I have synced the remote site to my local computer so all the files should be just as they are online with the exception of the DB which contains most of the content.
    I have done all of those steps.  I have even exported the database from inside internet phpmyadmin and imported into computer phpmyadmin.  When I hit live view I get one of couple of errors.
    1.  "One is that the dynamic related files could not be displayed due to an internal server error"
    At some point I was able to view some sample files inside dreamweaver.  But I would like to be able to view my real site files.  I was able to "connect" to the local databases (not the copy of my real one - I think that maybe that was because it is somehow nested inside another db an am going try to reimport to new location).  And then I changed the host/username/password trying to deal with the internal server error. Now instead I get the cannot connect to the database Error 2016 or whatever from the origianl post. Also, I am using yahoo if that matters and all I can find about what their server name is: mysql - is that correct?
    I have been thru this so many times with so many different tutorials I am losing track of what is what.
    2.  Can I access my remote database within dreamweaver? I do not want to create dummy files (seems to be a waste of time).  And while if it had worked exporting/importing a duplicate on to my computer would have satisfied me for a little while it also seems some what counter productive.  Since every post and page is different if I were doing a daily updates etc how would I be able to change the formating or design of them if I can't access the remote files.  Would I re- import everytime I want to work on it to get current database?
    I am trying to be clear.  I listed all the specs I could think as listed  in your "how to get help fast post" (yes I read that at least twice  too) of all of the steps and possible reasons for my problems.  I also  thought that the forum was on a seperate site so I didn't think it would  count as a duplicate.  I am frustrated to tears and am feeling  incredibly stupid that after all this time and all these tutorials yes  you are right I obviously am not understanding what is going on which is  why I am on this forum.

  • Problem with preloader in Cs5 with AS2

    Hey,
    I made a preloader in Cs5 with AS2 code:
    mask_mc._height = 1;
    this.onEnterFrame = function():Void
    var loading :Number = this.getBytesLoaded();
    var total :Number = this.getBytesTotal();
    var precent:Number = Math.round(loading/total*100);
    mask_mc._yscale = precent;
    txt.text = precent + "%";
    if (loading >= total)
    gotoAndStop(2);
    because I realized that what I'm used to in Cs4 is not working in Cs5. It works fine but, when I press a button that supose to go to another frame, it stock on frame 2.
    How can I solve it?

    terminate that loop:
    mask_mc._height = 1;
    this.onEnterFrame = function():Void
    var loading :Number = this.getBytesLoaded();
    var total :Number = this.getBytesTotal();
    var precent:Number = Math.round(loading/total*100);
    mask_mc._yscale = precent;
    txt.text = precent + "%";
    if (loading >= total)
    delete this.onEnterFrame
    gotoAndStop(2);

  • How to get all images in indesign CS5 with javascript?

    Hi,everybody,
    How to get all images in indesign CS5 with javascript?I want to delete them.
    Anyone can give me some example codes?
    Thanks,
    Bridge

    Hey!
    This will remove all images from your InDesign document:
    var myLinks = app.activeDocument.links.everyItem().parent;
    for(var i = 0; i < myLinks.length; i++)
        myLinks[i].remove();
    Hope that helps.
    tomaxxi
    http://indisnip.wordpress.com/
    http://inditip.wordpress.com/

  • Running CS5 with Mavericks 10.9.2, if I open a raw file into bridge from desktop any changes I make and click done ( i.e convert to b

    CS5 issues with Mavericks 10.9.2

    Thanks for getting in touch, part of my message was cut off! My problem is when I open up a raw file from desktop into bridge edit the raw image click done sending it back to the desktop as a raw file those changes do not appear on the desktop image. I've tried making an obvious change to an image making it b&w but again that does'nt appear on the desktop image, as mentioned I'm running CS5 with Mavericks 10.9.2.
    Any advice would be greatly appreciated.
    Phil.

  • Just upgraded to 10.8.4 and now can't open canon raw files in photoshop cs5 with camera raw plug in 6.7

    i've just upgraded to os 10.8.4 and now i can't open canon raw files in photoshop cs5 with camera raw plug in 6.7 which worked perfectly prior to the upgrade....anyone else encountered this issue?

    Adobe's software is a mess in terms of the fact that it's sprayed all over the place and may not survive an OS upgrade.  Try reinstalling Photoshop CS5.

Maybe you are looking for