Website on my Mac with Sqlite database

I'm attempting to build a prototype website on my Mac with a Sqlite database but how do I set up php to communicate with Sqlite.
I"m running OS 10.4.11 and Sqlite 3. I've set the sharing option to activate Apache which works with a small webpage, but I cannot determine if php is even installed on this machine. I've  put a phpinfo statement in the webpage which produces no output.

I've installed PHP 5 in the last month on my Tiger 10.4.11.
Here is the link to the instructions I used.  See link to install package on this page.
http://maestric.com/doc/mac/upgrade_php5_tiger
I don't think you have to do any of the stuff recommended on that page.
If you want to get error messages in php, you do need to modify the php.ini.
Here is the diff output of the changes that I made.  Confusing to read, I know. First set is new; second set is old etc.
mac $ cd /usr/local/php5/lib
mac $ pwd
/usr/local/php5/lib
mac $ diff php.ini php.ini.original
2,4d1
< ;
< ; path:
< ; /usr/local/php5/lib/php.ini
375,376c372
< ; -----Changed-->
< display_errors = On
> display_errors = Off
381,382c377
< ; -----Changed-->
< display_startup_errors = On
> display_startup_errors = Off
427c422
< error_prepend_string = "<font color=ff0000>"
> ;error_prepend_string = "<font color=ff0000>"
430c425
< error_append_string = "</font>"
> ;error_append_string = "</font>"
432d426
< ; -----Changed-->
434,435c428
< ; /usr/local/php5/lib/php.ini
< error_log = PHPLog
> ;error_log = filename
438c431
< error_log = syslog
> ;error_log = syslog
601,603c594
< ; -----Changed-->
< upload_tmp_dir = /usr/local/php5/uploads
<
> ;upload_tmp_dir =
mac $
Robert

Similar Messages

  • Creating sqlite database from code

    Hi,
    I am writing integration test with sqlite database.Before running a test,I want to create a database using a script ie .sql file.Is it possible to do so using Flex API for databases? If so,how?

    @kinganand - Currently I don't know of an equivalent to DbUnit for AIR, so you'd have to roll something of your own accord.  Maybe search Google Code or GitHub for projects that may have attempted to tackle this problem?
    -Brian

  • Can a website built with adobe muse interface with a database such as an Excel spreadsheet?

    Is it possible for a website built in Adobe Muse to  interface with a database?  I need to turn a rather robust excel spreadsheet into an easy-to-use website that links to a database that can be updated easily and regularly.  Thanks.

    Hi,
    Muse is a designing software. You can design websites in Muse and host it on any server of your choice. There is no native feature in Muse to convert a spreadsheet into a website. If you are good with coding, you can develop it outside Muse and call it in Muse site using iframes, if at all it is helpful to you.
    Regards,
    Aish

  • How to connect to and communicate with an SQLite database in AIR/Flex

    Hey guys,
    I recently decided I would try programming a vocabulary-training program in AIR, so I could use it on Linux as well. I got stuck pretty soon. I am trying to connect to a local SQLite database and I obviously fail epically. Posting the source code of the application here:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
       <mx:Script>
          <![CDATA[  
               import flash.filesystem.File;
              import flash.data.*;
             import mx.controls.Alert; 
                      private var dbFile:File;
                   private var conn:SQLConnection;
                   // -- AUTO INIT FUNCTIONS --------------------------------------------------- /
                   private function init():void {
                        // Create a File Reference to the Included DB
                        dbFile = File.applicationDirectory.resolvePath( "../slovniky.db" );
                        // Create SQL Connection
                        conn = new SQLConnection();
                        // Event Listener that will tell us when the DB is opened
                        conn.addEventListener(SQLEvent.OPEN, openSuccess);
                        // Event Listener that will tell us if an error occurs
                        conn.addEventListener(SQLErrorEvent.ERROR, openFailure);
                   // -- EVENT HANDLERS -------------------------------------------------------- /
             private function starter() :void {
                  slovickoEn.enabled = true;
                  nazor.enabled = true;
                  odeslat.enabled = true;
                  zrusit.enabled = true;
                  start.enabled = false;
                  // Otevírám spojení s databází v asynchroním módu
                   conn.openAsync( dbFile );
             private function openSuccess( event:SQLEvent ):void {
                        // Pokud se spojení povede!
                        Alert.show("Spojení se zdařilo!");
               private function openFailure( event:SQLEvent ):void {
                        // Pokud spojení selže!
                        Alert.show("Spojení se nezdařilo!")
             private function kontrola() : void {
                  if (nazor.text != "") {
                       if (nazor.text == "Pes") {
                       Alert.show("Správně!");    
                       else {
                       Alert.show("Špatně!! " + "Napsané slovíčko bylo " + nazor.text);     
          ]]>   
       </mx:Script>
       <mx:VBox width="400" height="200"
                   horizontalCenter="0" verticalCenter="0" backgroundColor="#FFFFFF"
                   paddingBottom="20" paddingLeft="20" paddingRight="20" paddingTop="20"
       >
          <mx:HBox width="100%" verticalAlign="middle" horizontalAlign="center">
             <mx:Label text="Anglicky:"/>
             <mx:TextInput id="slovickoEn" editable="false" text="Dog" enabled="false"/>
          </mx:HBox>
          <mx:HBox width="100%" verticalAlign="middle" horizontalAlign="center">
             <mx:Label text="Česky:"/>
             <mx:TextInput id="nazor"  enter="kontrola()" enabled="false"/>
          </mx:HBox>
          <mx:HBox width="100%" horizontalAlign="center">
             <mx:Spacer width="50" height="10"/>
             <mx:Button id="odeslat" label="Odeslat" color="#0D8401" click="kontrola()" enabled="false"/>
             <mx:Button id="zrusit" label="Zrušit" color="#0D8401" enabled="false"/>
          </mx:HBox>
          <mx:HBox width="100%" horizontalAlign="center">
             <mx:Spacer width="50" height="10"/>
             <mx:Button id="start" label="Start" color="#0D8401" click="starter()" enabled="true"/>
          </mx:HBox>
       </mx:VBox>
    </mx:WindowedApplication>
    The Run of the program tells me this:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
         at pes/starter()[C:\air\projects\pes\src\pes.mxml:45]
         at pes/__start_click()[C:\air\projects\pes\src\pes.mxml:93]
    I would appreciate any help or a how-to. I am an absolute beginner with some experience from HTML, CSS, PHP and rarely JS. What am I doing wrong? File attached for easier manipulation as well.
    Erthy

    Hi,
    Here is the complete example for the same with the code.Let me know if you have any issue with this.
    http://shardulbartwal.wordpress.com/2008/04/14/adobe-air-and-sqlite-connectivity/
    with Regards,
    Shardul Singh Bartwal

  • Link my website (Zend Framework 1.12) with SQL database on Azure

    Hello community!
    Recently I uploaded my website on Azure portal. I built my website with Zend Framework 1.12.
    My problem comes when i am trying to link my website with my SQL database.
    I have already post a question to Stackoverflow stackoverflow.com/questions/20638706/link-zend-framework-1-12-on-azure-with-a-database-on-azure
    Can anyone help me to running over with this problem?
    Thanks in advance!

    I have already tried this, but i received error and my website doesn't load!
    This is my whole cone in application.ini file
    [production]
    phpSettings.display_startup_errors = 1
    phpSettings.display_errors = 1
    includePaths.library = APPLICATION_PATH "/../library"
    bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
    bootstrap.class = "Bootstrap"
    appnamespace = "Application"
    resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
    resources.frontController.params.displayExceptions = 1
    resources.view.encoding = "UTF-8"
    resources.view.doctype = "XHTML1_STRICT"
    resources.view.contentType = "text/html;charset=utf-8"
    resources.view[] = ""
    autoloaderNamespaces[] = "Skoch_"
    resources.db.adapter="pdo_mysql"
    resources.db.params.host="Server_Name.database.windows.net"
    resources.db.params.port=1433
    resources.db.params.username="login_name"
    resources.db.params.password="password"
    resources.db.params.dbname="Database_name"
    resources.db.isDefaultTableAdapter=
    true
    resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
    [staging : production]
    resources.frontController.params.displayExceptions = 1
    [testing : production]
    phpSettings.display_startup_errors = 1
    phpSettings.display_errors = 1
    resources.frontController.params.displayExceptions = 1
    [development : production]
    phpSettings.display_startup_errors = 1
    phpSettings.display_errors = 1
    resources.frontController.params.displayExceptions = 1

  • Problem with SQLite in Universal App (Windows Phone part)

    Hello,
    I am using Universal Apps project because I want to move myself from Silverlight.
    In Silverlight type of Windows Phone project, it is very easy to work with SQLite either on 8.0 or 8.1.
    But I can't find a way to work with SQLite in Universal project. There is no IsolatedStorage to check if database exist, and if it does not exist, Application will put it in the IsolatedStorage.
    I always get message "No such table: kategorije" where "kategorije" is the name of one table in my database.
    I guess that Application can't find the database.
    Is there any tutorial (I have tried to find it) on how to use SQLite in Universal Apps with custom written querys?
    Development Technician, Microsoft Certified Professional

    Here's a link you can refer to : Using SQLite as local database with Universal Apps
    http://developer.nokia.com/community/wiki/Using_Crypto%2B%2B_library_with_Windows_Phone_8

  • When I compose an email in either gmail or yahoo, the cursor lags behind for about 2 seconds. This does not happen when I compose an email with Safari or Chrome. I am using a Mac with Firefox version 3.6.3. Any idea why this happens?

    When I compose an email in either gmail or yahoo, the cursor lags behind for about 2 seconds. This does not happen when I compose an email with Safari or Chrome. I am using a Mac with Firefox version 3.6.3. Any idea why this happens?
    == This happened ==
    Every time Firefox opened

    try
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • How to determine the connection string to a SQLite database, in C# code

    Hello. I'm trying to figure out how to specify the connection string to a SQLite database, I would like to access using the following code:
    string connectionString = null;
    SqlConnection connection;
    SqlCommand command;
    SqlDataAdapter adapter = new SqlDataAdapter();
    DataSet ds1 = new DataSet();
    string sql = "SELECT DataName, Data, Id, UserId, DateLastUpdated FROM MainTable";
    connectionString = "Data Source=C:\\SQLITEDATABASES\\SQLITEDB1.sqlite;Version=3;";
    connection = new SqlConnection(connectionString);
    try
    connection.Open();
    command = new SqlCommand(sql, connection);
    catch
    The value I assigned to the variable connectionString, in the code above, I obtained somewhere from the Internet. It does not work. I'm using Visual Studio 2013, against the file sqlite-netFx451-setup-bundle-x86-2013-1.0.96.0.exe, which
    I installed, and got from
    here.
    My application's App.config file looks as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
    <configSections>
    </configSections>
    <connectionStrings>
    <add name="DC_Password_Saver.Properties.Settings.DC_Password_SaverConnectionString" connectionString="data source=&quot;C:\Users\patmo_000\Documents\Visual Studio 2013\Projects\DC Password Saver\DC Password Saver\DC Password Saver.db&quot;" providerName="System.Data.SQLite.EF6"/>
    </connectionStrings>
    <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1"/>
    </startup>
    </configuration>
    I tried to use the value assigned to connectionString in the XML settings above, replacing single backslash characters with double backslash characters, because the Visual Studio editor flagged them as unrecognizable, and wound up with the
    following.
    SqlDataAdapter adapter = new SqlDataAdapter();
    DataSet ds1 = new DataSet();
    string sql = "SELECT DataName, Data, Id, UserId, DateLastUpdated FROM MainTable";
    connectionString = "data source=&quot;C:\\Users\\patmo_000\\Documents\\Visual Studio 2013\\Projects\\DC Password Saver\\DC Password Saver\\DC Password Saver.db&quot;";
    connection = new SqlConnection(connectionString);
    The above code however does not work either. So again, does anyone know how I can specify in C# code, a connection string to access my SQLite database? Thanks in advance for your reply.

    What does SQLite connection strings has to do with WPF?
    You will find some valid connection strings here:
    https://www.connectionstrings.com/sqlite/
    But you cannot use the SqlConnection class to connect to a SQLite database. You will need to download and add a reference to the System.Data.SQLite library and then use the SQLiteConnection class:
    connection = new System.Data.SQLite.SQLiteConnection(connectionString);
    try
    connection.Open();
    command = new System.Data.SQLite.SQLiteCommand(sql, connection);
    catch
    Please refer to the following article for more information and an example of how to connect and read and write data from an SQLite database using C#:
    http://blog.tigrangasparian.com/2012/02/09/getting-started-with-sqlite-in-c-part-one/.
    There is contains a link where you can download the required assemblies.
    Hope that helps.
    Please remember to mark helpful posts as answer to close your threads and then start a new thread in an approproate forum if you have a new question.

  • [SOLVED] PowerDNS (pdns) - SQLite database '...' does not exist yet

    PowerDNS 3.2-5 is having some issues connecting to my backend database (sqlite3).
    beta powerdns # tail /var/log/errors.log
    May 7 20:12:41 localhost pdns[19098]: Caught an exception instantiating a backend: Unable to launch gsqlite3 connection: SQLite database '/etc/powerdns/database.sqlite' does not exist yet
    But when i do:
    beta powerdns # sqlite3 /etc/powerdns/database.sqlite
    SQLite version 3.7.16.2 2013-04-12 11:52:43
    Enter ".help" for instructions
    Enter SQL statements terminated with a ";"
    sqlite> select * from domains;
    1|<myhostname>|||NATIVE||
    sqlite>
    sqlite3 It fetches the records and domains to my liking but not PowerDNS.
    Same thing goes for a blank db without any domains or records, i can query it but not PowerDNS.
    Followed this guide in order to setup the proper tables and columns: http://doc.powerdns.com/html/gsqlite.html#idp9379264
    (without the DNSSEC part, i'll give that a go later on)
    It obviously loads the sqlite3 module, and tries to connect to the backend, which doesn't work, so the ArchLinux package is fine i'm guessing.
    More info:
    * Link to package: https://www.archlinux.org/packages/comm … 6_64/pdns/
    * chmod == 777
    * chown == nobody:nobody (and tried root:root as default)
    * running as root (not pdns)
    Last edited by Torxed (2013-05-08 10:52:05)

    Solved it.
    The guides are vague in this regard but once you've just read the config twice you'll understand the logic.
    First of all, no absolute paths for sqlite3, it should be:
    launch=gsqlite3
    gsqlite3-database=database.sqlite
    Secondly, find your chroot, and point it to your database location or put your database here (whichever):
    chroot=/var/empty
    The folder structure should be:
    /var/empty/database.sqlite
    And this py pointing to ./database.sqlite when starting sqlite3 in pdns, it should be able to lock on to the database.
    Peachy!

  • Problem in MAc with Safari 5.0.3 (6533.19.4)

    I have a problem:
    A client of mine has two macs with Safari 5.0.3 (6533.19.4) he is unable to see the website that I have created for him properly on this browser.
    This is how it looks on his browser:
    http://www.checkpether.com/kah-walla/screenshoterror.jpg
    As you can see, the Subscribe now red button is not below the form on the right.
    I have the version 5.0.3 (7533.19.4)
    This is how it looks for me:
    http://www.checkpether.com/kah-walla/screenshotgood.jpg
    I would like to know if there is any solution for this.
    Also, can you go on this website and see it on Safari:
    http://www.checkpether.com/kah-walla/
    and let me know if it shows proper for you.
    I would really appreciate all the help that you can provide
    Thanks
    Mauricio

    Thanks a lot for your reply Andy but I have checked on all browsers and the only one that is not working properly is Safari 5.0.3 (6533.19.4)
    I will fix the spelling mistake.

  • Sony e reader prs 600 not showing in bookmark pane on my new Mac with Snow Leopard

    I have a brand new sony e reader prs 600 it is supported but I am unable to see it on the bookmark pane in my new Mac with Snow Leopard is it something to do with Snow leopard?  Or why can I not see my sony e reader?  thank you

    According to the Adobe website ADE 1.7.1 is compatible with Mac if you 
    look at system requirements and with the Sony reader if you look at 
    supported devices.  Though it doesn't mention Macs latest O/S.
    and if I download an Adobe digital editions book, can I then move it 
    to Sony's ebook software, or is the format unsupported on the Sony 
    Ereader?

  • On a MAC with OS 10 how do I pinch, tap to make larger, and some other gestures that work on Safari but not FireFox

    I can not do all the gestures when I am in FireFox. Example Pinch to increase or decrease size of window. Tap with two fingers to increase the size of window. The other gestures like scrolling, swiping etc work.

    Hello Shona37a, if you have the [http://kb.mozillazine.org/Places.sqlite places.sqlite] file probably you are ok. the places.sqlite file can be edit with SQLite Manager or a specialized editor BUT you can move it to a [https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles#os=mac&browser=fx17 new profile], see informatinos in the above link.
    also think if you must go to [http://www.floodgap.com/software/tenfourfox/ TenFourFox] for PowerPC's running Mac 10.4.11 & 10.5.8 , it is more secure from your 3.6.18 that is unsupported.
    EDIT : [https://support.mozilla.org/en-US/kb/Recovering%20important%20data%20from%20an%20old%20profile#w_copying-files-between-profile-folders Copying files between profile folders]
    http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    thank you

  • Tried to open. It crashes. I have a MAC with Yosemite.

    Installed product - with license. Tried to open. It crashes. I have a MAC with Yosemite. Thoughts? Adobe "help" website is useless.

    Sorry I'm not being clear enough.  I appreciate your patience...  I did that already ... downloaded the software successfully from my account in CC.  Put in the serial number when asked. All went well with the installation process. Went to launch the software and get the message I sent to you as an attachment.

  • MAGENTO WEBSITE AND SAFARI (Mac only) BUG.

    I seem to be finding that my new website does not work with Safari 4.0.5 on a mac running OSX 10.4.11
    Cookies will not enable (checked preferences)
    You cannot log in.
    You cannot add items to basket or shop.
    I don't see who is at fault and why it works fine on Safari and Windows 7.
    Can anyone help?
    I also see this issue on other peoples sights.
    http://www.lodgerfootwear.com
    Is an example.
    You can create accounts but not log in or buy or add items to your cart.
    Also if you try to use Magento admin panel it just resets.
    Since this is a Safari and Mac issue not PC and Safari where is the issue coming from??
    Can anyone please advise? I would really like to launch my website but since many of my customers use this set up I and force to wait.
    Thanks

    Safari is one of the most standards-compliant browsers ever built. Thus, your best bet for ensuring your pages render properly in Safari — today’s version and beyond — is to follow web standards. For a great overview of web standards, check out Mozilla.org’s article Using Web Standards in Your Web Pages.
    https://developer.mozilla.org/en/UsingWeb_Standards_in_your_WebPages

  • Using core data with a database

    Here is where I am at. I have a trivia app in development that will have over 1000 questions, so a database is inevitable. We recently created a test sqlite database and read in some entries and it worked.
    We were looking into exploiting the features of Core Data in our app, but this would involve creating a set of managed objects, a context, and the essentials for a Core Data scheme to function, and then use these models to fetch data from a database.
    The database is not created yet. We are starting fresh and simply wish to see if we can use core data to work with a database that could be created once the model is in place. Is it possible to create a 1000 or more entry database whose entries could relate to a Core Data entity or set of entities, and then use Core Data to fetch the data from these entries as we please?

    We will not be reusing any code. I apologize for the confusion. This is the start of the app regarding database management, and we have not yet created the database that will hold the questions for this app.
    Alright, so you two are both suggesting to set up a model and allow the creation of the sqlite store, which if my research is correct, involves a .sqlite file with a "Z_" following each attribute, and then adding entries here. This sounds fair enough. I had not known if this was going against the mainstream use of core data or not.
    Thanks you two. I'm going to leave the question open for a little while longer to see if any other opinions come up.

Maybe you are looking for

  • Monitoring Log in SharePoint Foundation 2010

    Hello, I´m using SharePoint Foundation 2010 and I want to configure Monitoring log, because we have had any problems because the user changed the permissions in other sites or deleted Users. So I want to know who  makes this action in Monitoring Log

  • File download problem

    I am using the following code to present a file to the client to download when a report is generated. The code does what is suppose to, it presents a dialog box where the user can choose to open, save, or cancel the file download. However, when the f

  • Problem with WLI-SAP adapter

    Hi all, When i am trying to connect to SAP system using WLI-SAP adapter i am getting the following exception when i am trying to click on TEST button in wlai console. Can any body help me what does it mean. java.lang.AbstractMethodError: com.ibi.beaS

  • If I originally purchased Dreamweaver for Windows, can I download the Mac version? I don't have a PC

    I have my original serial number, but I do not have the cds. I need to download new software for my Mac. Since I don't use my Windows version anymore, can I do this?

  • Dynamic Image Marker

    Dears, Is it possible to create dynamic image marker theme? for example, I have a geometry table which contains the location of schools and universites, i would like to show different marker for each type. the geometry table has a code field (S: for