FCKeditor PHP & updating MYSql

I am having problem figuring out how to update MYSQL with the
changes I
make in FCKeditor. I have done it in asp but I am stumped
with php.
The FCKeditor directions say to enter code like
<?php
$sValue = stripslashes( $_POST['FCKeditor1'] ) ;
?>
But where I put it I get an error. How do I get the value of
$oFCKeditor->Value where application.update record will
see the value?
Current form code is
<form action="" method="post" name="cmsUpdate"
id="cmsUpdate">
<?php
$oFCKeditor = new FCKeditor('cmsContent') ;
$oFCKeditor->BasePath = '../fckeditor/';
$oFCKeditor->Value = $row_rs_editcms['pgCntnt'];
$oFCKeditor->Create() ;
?>
<input name="pgId" type="hidden" value=<?php echo
$row_rs_editcms['pgId']; ?>>
<input name="" type="submit">
</form>

jjjhbj111 wrote:
> OK how did you do it. I am going to place FCKeditor in
my users pages
> soon. I would love to know how you did it so I can have
a go....
> Thanks
After folling directions then I added one line as shown below
<?php
$oFCKeditor = new FCKeditor('cmsContent') ;
$oFCKeditor->BasePath = '../fckeditor/';
$oFCKeditor->InstanceName = "cmsContent" ; /* code added
for
dreamweraver */
$oFCKeditor->ToolbarSet = "Default" ;
$oFCKeditor->Height = '450';
$oFCKeditor->Value = $row_rs_editcms['pgCntnt'];
$oFCKeditor->Create() ;
?>
Then I added a text field, ran the wizard and changed the
text field
name in the update query to the instancename (cmsContent),
deleted the
unneeded text field and it worked. Saw this on SourceForege's
forum.
if ((isset($_POST["MM_update"])) &&
($_POST["MM_update"] ==
"cmsUpdate")) {
$updateSQL = sprintf("UPDATE cms_pgs SET pgCntnt=%s WHERE
pgId=%s",
GetSQLValueString($_POST['cmsContent'], "text"),
GetSQLValueString($_POST['pgId'], "int"));
Right or wrong this worked for me.

Similar Messages

  • How do I add an already built Shopping Cart  (PHP and MYSQL) application to a page in a Muse site?

    How do I add an already built Shopping Cart  (PHP and MYSQL) (Cartweaver 4) application to a page in a Muse site? Do I have to export the Muse site as Html to dreamweaver and them use the extension to bring the shooping cart in or can I do it directly in Muse?
    Message was edited by: mgv2048

    We have experimented with doing this with some good success. We have been working on adding Cartweaver to a Facebook page by essentially adding a Cartweaver store to Facebook in an iframe.  The "store" would be pages with just your basic product display, cart, and checkout functionality, with none of the "window dressing" - just use CSS to match the color and general look of the design it's being added to.
    The one problem with this for Facebook is when it comes time to check out toy have to leave Facebook and go to your server where an SSL is in place.  Fortunately in this situation this would not be the case, you can have an SSL installed to the root of your site and you'll be okay.
    This is an interesting project.  Give this a try and let me know how it goes and if you run into any snags, please make a post on the Cartweaver forums: http://forums.cartweaver.com - I'm really confident that this can work, and not only work, but work well.
    Looking forward to hearing how this goes, and being of what help we can.
    Lawrence Cramer - *Adobe Community Professional*
    http://www.Cartweaver.com
    PHP & ColdFusion Shopping Cart for Adobe Dreamweaver
    Stay updated:
    http://www.facebook.com/cartweaver
    http://www.twitter.com/cartweaver
    http://blog.cartweaver.com

  • Dreamweaver CS5.5 Mobile Apps with PHP and MYSQL?

    Hello,
    I don't have Dreamweaver CS5.5 yet and I've been trying to search for information on this but I couldn't find any. I've been learning PHP and been developing with MYSQL with Dreamweaver CS5 but I wanted to know if I can use the same tags and everything if I would to build a Mobile App using the new Dreamweaver CS5.5 (http://tv.adobe.com/watch/cs-55-web-premium-feature-tour-/dreamweaver-cs-55-jquery-mobile- pages/). I overlooked at the video and it seems pretty easy building an app. So is PHP and MYSQL easily integratable? Are there any examples that I might be able to check out?
    Thanks!

    No. PHP is a server-side scripting language that requires a server (or server-like environment) to run.
    An iPhone (or Android) application does not allow for a "built-in" server (which is resource intensive and has scary security implications). You just can't build an application with PHP/MySQL for a mobile device. Instead you can build a web service that your HTML/JavaScript mobile application can then communicate with. This is the only supported way you can use PHP/MySQL in a mobile app. Again: the PHP/MySQL should reside on a server and your HTML/JS mobile app can then communicate with that web service. That's what instapaper and other applications do.
    Frankly, just make a web application that's mobile device friendly and you'll:
    1) Avoid all the messiness of the app stores
    2) Have greater control over what your web app can do (don't have to tow the Apple/Google line)
    3) Have a web app that can work across mulitple mobile devices as well as standard web browsers (i.e. more audience = more $).
    4) Future proof your application (pushing updates to your server and everyone using your web app is updated)
    Otherwise, read-up on Adobe AIR and what it supports and remember, the best apps are written natively for the platform (i.e. want to write an app for an iPhone? Learn Objective-C and use xCode on a Mac. Want to write an app for Motorola Xoom? Learn the Android SDK and use inteliJ).

  • CMS for Dreamweaver and PHP with MySQL

    Hello
    I am at a medium level with Dreamweaver MX and 8. I have
    created a dynamic website running PHP and MySQL. The site sells
    luxury yachts (resales). What I need is a simple, not too custom
    code heavy content management system to allow the client to update
    dynamic text areas and upload images via a web browser (IE7 PC).
    The site needs the ability to input new boats, and delete sold
    boats (flush out the database items).
    Has anyone got a recommendation for some CMS software,
    preferably Mac OSX PPC and running on a server under linux.
    I don't mind buying it, in fact rather do that than risk
    shareware going forward.

    I have the exact same need. Looks like nobody had any
    suggestions for the original poster. Perhaps someone can make a
    recommendation this time? I too am looking for a commercial
    product, rather than open-source.

  • DataGrid to PHP to MySQL?

    I'm working with FlashBuilder 4 b2. It is doing some wonderful things, but I am having trouble getting my app to send data back to the database table. It reads it just fine. I want to update the data in a dataGrid then update the database with the dataGrid contents.  I am using PHP and MySQL on a local server.  Where can I find an example of the Actionscript 3 and PHP code to get it to work? Thanks!

    Hi,
    You have to use <service instance id>.commit() instead of <service class name.>
    For example,
    My generated code looks like this,
    <fx:Declarations>
            <s:CallResponder id="getAllEmployeesResult"/>
            <employeesservice:EmployeesService id="employeesService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
    So in my button click handler function, I have to make a call, "employeesService.commit() "
    Note that i have used the id property of EmployeeService. Let me know if it helps.
    Thanks,
    Radhakrishna

  • Trying to get Apache, PHP and MySQL up and running

    I have just bought a new MacBook and I want to set up Apache, PHP and MySQL in order to create a local mirror of a website I have in my 'Sites' folder.
    I fall at the first fence!! To get Apache, I switch web sharing on in System Preferences' and I get the green light. When I click the links for personal website or computer's website I get a "Safari can't connect to the server" message.
    Any ideas what I should do now?

    Stephen Dancer wrote:
    Any ideas what I should do now?
    You will need to make some change to the index file in your Sites directory in order to enable Apache for that directory.
    You will have to enable PHP in the Apache config file at /etc/apache2/httpd.conf
    For MySQL, you will have to install it, and then fix it. You'll want to remove the StartupItem it wants to use and replace it with a launchd file. This discussion has a good roundup of the very latest tricks to get MySQL up and running with the latest security updates.

  • Problems with PHP and MySQLi server behaviors

    Hi,
    I'm a graphic and Web-designer with some knowledge of PHP and MySQL and I've been using Dreaweaver since very early ages in creating dynamic web projects and use the Bindings and Server behaviors quite a lot. But recently PHP has deprecated MySQL_connect since 2012 and it seems Dreamweaver isnt suporting the alternative MYSQLi server behaviors which will be the future of accessing Databases in MySQL along side with other options. Without this feature Dreamweaver is not of any use to us web-designers, since there are many Free great Editing software out there... Is the Dreamweaver team solving this problem? Or are you really planning on dropping this software? I've been using CS5.5 for a while and was planning on updating but this is a key feature and without it its not worth the investment.
    Kind regards.
    Eddy

    heduino wrote:
    Hi,
    I'm a graphic and Web-designer with some knowledge of PHP and MySQL and I've been using Dreaweaver since very early ages in creating dynamic web projects and use the Bindings and Server behaviors quite a lot. But recently PHP has deprecated MySQL_connect since 2012 and it seems Dreamweaver isnt suporting the alternative MYSQLi server behaviors which will be the future of accessing Databases in MySQL along side with other options. Without this feature Dreamweaver is not of any use to us web-designers, since there are many Free great Editing software out there... Is the Dreamweaver team solving this problem? Or are you really planning on dropping this software? I've been using CS5.5 for a while and was planning on updating but this is a key feature and without it its not worth the investment.
    Kind regards.
    Eddy
    There are no plans that I know of to introduce a new set of mysqli server behaviours into DW from Adobe. They have left that to  thrid party developers to bring out extensions which replace them.
    What the server behaviours could do was very limiting anyway so I suspect any replacement mysqli behaviours would also be very limiting. I personally jumped into thre code and started to write my own mysqli connection files and query strings by watching a few simple tutorials on youtube - it isnt that difficult.
    Look for 'php academy' on youtube - they have about 9 simple to follow tutorials on getting started with mysqli.

  • PHP and MySQL Connection problem

    I am trying to make a PHP MySQL on a remote server connection in Dreamwesaver CS3.
    When I enter the information (host, user, password, etc.) and hit TEST, I get the following error message.
    "Access Denied. The file may not exist, or there could be a permission problem. Make sure you have proper authorization on the server and the server is properly configured."
    I know the user, password, etc. work, as I can access the MySQL database with other software.
    I checked with my host and they say there are no permission problems on their end.
    I have checked the settings on the Test Server page in Site Setup and everything looks correct and works there.
    I have not seen this particular problem described in other forum postings (although there are a LOT of postings on this topic!).
    Any help would be appreciated.

    I thought my testing server was the remote server and is always on as far as I know. I don't know how to turn it on or off.
    Is there some other testing server that I should be aware of?
    Frank
    Date: Wed, 3 Jun 2009 15:43:02 -0600
    From: [email protected]
    To: [email protected]
    Subject: PHP and MySQL Connection problem
    I know you are using remote, but is your testing server on? if not turn that on and see if that does it. it just happened to me working on remote server and could not get mysql conn to work, until I turn on my testing (developer server), then I was able to connect to mysql and the tables that I created in phpmyadmin remotly was downloaded.
    >

  • How to create php/apache/mysql installer with AIR

    Dear Flexer,
    I'd like to use AIR to create my own web tools installer (like mamp, wammp...).
    But I have no idea how to do that.
    Can you help me?
    Thanks

    There's a tutorial here:
    http://www.php-mysql-tutorial.com/wikis/php-tutorial/installing-php-and-mysql.aspx
    That said, why go through all the trouble? There are a number of applications out there than install and configure Apache, PHP, and MySQL for you.

  • ANN: Setting up PHP and MySQL for newbies!

    We've recently released two new solution recipes to help
    designers make the
    jump to building dynamic sites. Each solution recipe
    describes step by step
    how to set up PHP and MySQL on your XP or Vista systems. You
    can find them
    on the Solution Recipe page:
    Installing PHP and MySQL on Windows Vista
    Installing PHP and MySQL on Windows XP
    http://www.webassist.com/professional/products/solutionrecipes.asp
    Each of these Solution Recipes include PDFs that you can
    print out or read
    on screen.
    We also have steps outlined for the Mac in PDF format, one
    for 10.4.x and
    the other for 10.5.x:
    10.4.x:
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-4_PDF.pdf
    10.5.x:
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-5_PDF.pdf
    All content is freely available. Go get'em!
    Best - Joe
    Joseph Lowery
    VP of Marketing, WebAssist -
    http://www.webassist.com
    Author, Dreamweaver CS3 Bible -
    http://www.idest.com/dreamweaver/

    Cool. I've bookmarked it for later.
    Thanks!
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "Joseph Lowery" <[email protected]> wrote in
    message
    news:ftj87l$nem$[email protected]..
    > We've recently released two new solution recipes to help
    designers make
    the
    > jump to building dynamic sites. Each solution recipe
    describes step by
    step
    > how to set up PHP and MySQL on your XP or Vista systems.
    You can find them
    > on the Solution Recipe page:
    >
    > Installing PHP and MySQL on Windows Vista
    > Installing PHP and MySQL on Windows XP
    >
    http://www.webassist.com/professional/products/solutionrecipes.asp
    >
    > Each of these Solution Recipes include PDFs that you can
    print out or read
    > on screen.
    >
    > We also have steps outlined for the Mac in PDF format,
    one for 10.4.x and
    > the other for 10.5.x:
    >
    > 10.4.x:
    >
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-4_PDF.pdf
    >
    > 10.5.x:
    >
    http://www.webassist.com/media/professional/support/PDFs/InstallingPHP-OSX-10-5_PDF.pdf
    >
    > All content is freely available. Go get'em!
    >
    > Best - Joe
    >
    > Joseph Lowery
    > VP of Marketing, WebAssist -
    http://www.webassist.com
    > Author, Dreamweaver CS3 Bible -
    http://www.idest.com/dreamweaver/
    >

  • Set a max Upload quantity dreamwaver php and mysql

    The issue,
    using dreamweaver php and mysql I Would like to set a max
    quantity limit on file upload per user. i.e max 5 uploaded images
    allowed per user.
    Here is a basic example of the creation. Just need the
    implementation of how to set a max upoad limit.
    create table authors(
    id int not null auto increment primary key,
    name varchar(10) not null
    image_quantity tinyint(1),
    create table images(
    aid int not null,
    image_filename varchar(50),
    foreign key (aid) references authors(id)
    User id 1 would upload a file into the table images from a
    php or html webpage. i.e set values "thomas.jpeg", "1"
    i want to set a max upload of 5 images per user. (a folder
    for each user id will be created and photos stored in that).
    I could add a field of max_upload tinyint(1) to the table
    users and construct a php script that could add the amount of
    images entered by a user into the images table and add a +1 to each
    added. Problem is i dont know how to create that script or mysql
    querty in order to enter into a recorset for example.
    As anyone have any ideas of the best way to set a max
    quantity limit of uploads.
    Thank you.

    The issue,
    using dreamweaver php and mysql I Would like to set a max
    quantity limit on file upload per user. i.e max 5 uploaded images
    allowed per user.
    Here is a basic example of the creation. Just need the
    implementation of how to set a max upoad limit.
    create table authors(
    id int not null auto increment primary key,
    name varchar(10) not null
    image_quantity tinyint(1),
    create table images(
    aid int not null,
    image_filename varchar(50),
    foreign key (aid) references authors(id)
    User id 1 would upload a file into the table images from a
    php or html webpage. i.e set values "thomas.jpeg", "1"
    i want to set a max upload of 5 images per user. (a folder
    for each user id will be created and photos stored in that).
    I could add a field of max_upload tinyint(1) to the table
    users and construct a php script that could add the amount of
    images entered by a user into the images table and add a +1 to each
    added. Problem is i dont know how to create that script or mysql
    querty in order to enter into a recorset for example.
    As anyone have any ideas of the best way to set a max
    quantity limit of uploads.
    Thank you.

  • Insert not working in php to mysql

    Ive been trying to enter information into mysql for the longerst. My guess is the sql statement. But if anybody can find anything wrong please tell me
    Heres my database
    and heres my code
    please help

    Can you try this in your insert.php (its mysqli rather than mysql)
    <?php
    $NameofOrganization = $_GET['NameofOrganization'];
    $Tickets = $_GET['Tickets'];
    $OriginalPrice = $_GET['originalprice'];
    $DiscountedPrice = $_GET['DiscountedPrice'];
    $Date = $_GET['Date'];
    $Time = $_GET['Time'];
    $Email = $_GET['Email'];
    $Description = $_GET['Description'];
    $Event_name = $_GET['event_name'];
    $con=mysqli_connect("localhost", "root" , "", "user_registration");
    // Check connection
    if (mysqli_connect_errno()) {
      echo "Failed to connect to MySQL: " . mysqli_connect_error();
    mysqli_query($con,"INSERT INTO events (name_organization, event_name, number_of_tickets, orginal_price, discounted_price, date, time, email,description) VALUES('$NameofOrganization' , '$Event_name', '$Tickets', ' $OriginalPrice', '$DiscountedPrice', '$Date', '$Time', '$Email', '$Description' )");
    ?>
    Below is the mysql version for insert.php:
    <?php
    $NameofOrganization = $_GET['NameofOrganization'];
    $Tickets = $_GET['Tickets'];
    $OriginalPrice = $_GET['originalprice'];
    $DiscountedPrice = $_GET['DiscountedPrice'];
    $Date = $_GET['Date'];
    $Time = $_GET['Time'];
    $Email = $_GET['Email'];
    $Description = $_GET['Description'];
    $Event_name = $_GET['event_name'];
    ?>
    <?php
    // Make a MySQL Connection
    mysql_connect("localhost", "root", "") or die(mysql_error());
    mysql_select_db("user_registration") or die(mysql_error());
    // Insert a row of information into the table "events"
    mysql_query("INSERT INTO events
    (name_organization, event_name, number_of_tickets, orginal_price, discounted_price, date, time, email,description) VALUES('$NameofOrganization' , '$Event_name', '$Tickets', ' $OriginalPrice', '$DiscountedPrice', '$Date', '$Time', '$Email', '$Description') ")
    or die(mysql_error()); 
    ?>

  • Captcha's in PHP to MySQL

    I am having troubles creating a php captcha verifaction for a
    form I am using.... I am able to create the catpcha fine but need
    some help on the INSERT part of the form. This INSERT section
    should input a record into a MySQL table providing the catpcha has
    passed verification check.
    The code I am using has two 'if' statements based on a pass
    and fail... question I have is A) Should I use the if statements to
    check the captcha and input the record B) How would I include a
    INSERT within this function?
    Many thanks
    Luke

    Can you try this in your insert.php (its mysqli rather than mysql)
    <?php
    $NameofOrganization = $_GET['NameofOrganization'];
    $Tickets = $_GET['Tickets'];
    $OriginalPrice = $_GET['originalprice'];
    $DiscountedPrice = $_GET['DiscountedPrice'];
    $Date = $_GET['Date'];
    $Time = $_GET['Time'];
    $Email = $_GET['Email'];
    $Description = $_GET['Description'];
    $Event_name = $_GET['event_name'];
    $con=mysqli_connect("localhost", "root" , "", "user_registration");
    // Check connection
    if (mysqli_connect_errno()) {
      echo "Failed to connect to MySQL: " . mysqli_connect_error();
    mysqli_query($con,"INSERT INTO events (name_organization, event_name, number_of_tickets, orginal_price, discounted_price, date, time, email,description) VALUES('$NameofOrganization' , '$Event_name', '$Tickets', ' $OriginalPrice', '$DiscountedPrice', '$Date', '$Time', '$Email', '$Description' )");
    ?>
    Below is the mysql version for insert.php:
    <?php
    $NameofOrganization = $_GET['NameofOrganization'];
    $Tickets = $_GET['Tickets'];
    $OriginalPrice = $_GET['originalprice'];
    $DiscountedPrice = $_GET['DiscountedPrice'];
    $Date = $_GET['Date'];
    $Time = $_GET['Time'];
    $Email = $_GET['Email'];
    $Description = $_GET['Description'];
    $Event_name = $_GET['event_name'];
    ?>
    <?php
    // Make a MySQL Connection
    mysql_connect("localhost", "root", "") or die(mysql_error());
    mysql_select_db("user_registration") or die(mysql_error());
    // Insert a row of information into the table "events"
    mysql_query("INSERT INTO events
    (name_organization, event_name, number_of_tickets, orginal_price, discounted_price, date, time, email,description) VALUES('$NameofOrganization' , '$Event_name', '$Tickets', ' $OriginalPrice', '$DiscountedPrice', '$Date', '$Time', '$Email', '$Description') ")
    or die(mysql_error()); 
    ?>

  • Trouble updating MySQL to newer version

    I'm trying to update MySQL from the factory installed 5.0.82 to a more recent 5.1.40.
    Factory installed into /usr/bin
    The new version is in /usr/local/mysql
    I'd like to have the new version of MySQL access (or use) the old data file... but it's not easy for me to tell where this datadir variable is being set for both the old & new MySQLs.
    Server Admin has tools to monitor and lightly configure the factory installation. Is there a way to tell it to now monitor the newer version? Or, somehow tie it to the newer version? Or must we just remove the MySQL Service from Server Admin completely?

    First off, are you referring to MySQL server or client?
    but it's not easy for me to tell where this datadir variable is being set for both the old & new MySQLs.
    By default (unless you've compiled your own MySQL with different settings), MySQL will read its settings from /etc/my.cnf, so wherever that file tells it to store its databases is where it's going to go.
    This does mean that if you update the mysqld (server) binary then it's going to look for the same databases, with whatever potential issues that may bring.
    Server Admin has tools to monitor and lightly configure the factory installation. Is there a way to tell it to now monitor the newer version?
    Stopping/starting MySQL is done through launchd - Server Admin will update /System/Library/LaunchDaemons/org.mysql.mysqld.plist to reflect whether it should start the daemon or not. That file includes the path to the binary that launchd will launch. If you change that to your own binary then LaunchD/Server Admin should start/stop your version rather than Apple's.
    Beware, though, that this may not carry through for other Server Admin tasks beyond stopping/starting the server, and that this file may get overwritten/updated by a future software update, so be prepared to make those changes again, or decouple yourself completely from Server Admin and just use your own skills to administer the server.

  • Roundcube not working after last php update [SOLVED]

    After the last php update my roundcubemail stopped working.  The log-in page loads and after attempting to log in I get the following error:
    IMAP Error in /usr/share/webapps/roundcubemail/program/lib/Roundcube/rcube_imap.php (184): Login failed for [email protected] from 192.168.1.1. Could not connect to ssl://localhost:993: Unknown reason (fsockopen() function disabled?)
    Last edited by whahn1983 (2014-09-19 18:46:11)

    I fixed it yesterday. I modified the PKGBUILD to get the upstream fix.
    # $Id$
    # Maintainer: Sergej Pupykin <[email protected]>
    pkgname=roundcubemail
    pkgver=1.0.2.3b55da
    pkgrel=1
    pkgdesc="A PHP web-based mail client"
    arch=('any')
    url="http://www.roundcube.net"
    license=('GPL')
    depends=('php')
    optdepends=('python2')
    backup=('etc/webapps/roundcubemail/.htaccess'
    'etc/webapps/roundcubemail/apache.conf')
    install=roundcubemail.install
    options=('!strip' 'emptydirs')
    source=("${pkgname}::git+https://github.com/roundcube/roundcubemail.git#commit=9a498212446f6c9a186df5652a7625526b590b78"
    apache.conf)
    md5sums=('SKIP'
    'f11b17e2a80b383cde4af963fb307541')
    prepare() {
    cd ${srcdir}/${pkgname}
    sed -i \
    -e "s|RCUBE_INSTALL_PATH . 'temp.*|'/var/cache/roundcubemail';|" \
    -e "s|RCUBE_INSTALL_PATH . 'logs.*|'/var/log/roundcubemail';|" \
    config/defaults.inc.php \
    program/lib/Roundcube/rcube_config.php
    package() {
    mkdir -p ${pkgdir}/etc/webapps/roundcubemail
    mkdir -p ${pkgdir}/usr/share/webapps
    mkdir -p ${pkgdir}/var/log
    cd ${pkgdir}/usr/share/webapps
    cp -ra ${srcdir}/${pkgname} roundcubemail
    cd roundcubemail
    mv .htaccess $pkgdir/etc/webapps/roundcubemail/
    ln -s /etc/webapps/roundcubemail/.htaccess .htaccess
    mv config $pkgdir/etc/webapps/roundcubemail/
    ln -s /etc/webapps/roundcubemail/config config
    install -dm0750 $pkgdir/var/{log,cache}/roundcubemail
    install -Dm0644 $srcdir/apache.conf $pkgdir/etc/webapps/roundcubemail/apache.conf
    # install -dm0755 $pkgdir/etc/php/conf.d/
    # cat <<EOF >$pkgdir/etc/php/conf.d/$pkgname.ini
    #open_basedir = ${open_basedir}:/etc/webapps/roundcubemail:/usr/share/webapps/roundcubemail:/var/log/roundcubemail:/var/cache/roundcubemail
    #EOF
    rm -rf temp logs
    Then I added these values to my roundcube config:
    // IMAP socket context options
    // See http://php.net/manual/en/context.ssl.php
    // The example below enables server certificate validation
    //$config['imap_conn_options'] = array(
    // 'ssl' => array(
    // 'verify_peer' => true,
    // 'verify_depth' => 3,
    // 'cafile' => '/etc/openssl/certs/ca.crt',
    $config['imap_conn_options'] = array(
    'ssl' => array(
    'verify_peer' => false,
    'verfify_peer_name' => false,
    // SMTP connection timeout, in seconds. Default: 0 (use default_socket_timeout)
    // Note: There's a known issue where using ssl connection with
    // timeout > 0 causes connection errors (https://bugs.php.net/bug.php?id=54511)
    $config['smtp_timeout'] = 5;
    // SMTP socket context options
    // See http://php.net/manual/en/context.ssl.php
    // The example below enables server certificate validation, and
    // requires 'smtp_timeout' to be non zero.
    // $config['smtp_conn_options'] = array(
    // 'ssl' => array(
    // 'verify_peer' => true,
    // 'verify_depth' => 3,
    // 'cafile' => '/etc/openssl/certs/ca.crt',
    $config['smtp_conn_options'] = array(
    'ssl' => array(
    'verify_peer' => false,
    'verify_peer_name' => false,
    It works like a charm.

Maybe you are looking for