Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6936687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:15:58+00:00 2026-05-27T12:15:58+00:00

I create an AIR application with mysql connection. On my computer Mac OS.6 all

  • 0

I create an AIR application with mysql connection.
On my computer Mac OS.6 all work well.

But on other computer (on Mac Os X.7) php file result doesn’t work (print $dom->saveXML();)

      <?php

    require_once ('../MySQL.php');
    require_once ('../conf.php');

    if(isset($_POST['usrName']))      
    $user=$_POST['usrName'];
    if(isset($_POST['usrPwd']))      
    //$pwd=SHA1($_POST['usrPwd']);
    $pwd=($_POST['usrPwd']);
    $link = mysql_connect(DB_HOST,DB_USER, DB_PWD);
    mysql_select_db(DB_DATABASE, $link);

            $query = 'SELECT 12Praticien_02.prCode FROM 12Praticien_02'
                     .' WHERE 12Praticien_02.prCode = "' . $user . '"'
                     .' AND 12Praticien_02.prMotPasse = "' . $pwd . '"';


            //return    $mySql->query($query) ? true : false;


    $recordset = mysql_query($query, $link);

    $dom = new DOMDocument('1.0', 'UTF-8');
    $rootNode= $dom->appendChild($dom->createElement('OrthoExpertDB'));


    while($row_recordset = mysql_fetch_array($recordset))
    {

        $record = new DomElement("c", "");
        $rootNode->appendChild($record);

        $record->SetAttribute("co", utf8_encode($row_recordset[0]));

    }
    mysql_free_result($recordset);
    mysql_close();


  $dom->save('debugxmlN.xml');
    print $dom->saveXML();

    ?>

Indeed this php file return no result nether with save method and nether with saveXML.
I guess that this problem has a link with privilege and I apply 777 on htdocs but the result is the same : NOTHINGS.

So can you help me to solve that?

Best regards

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T12:15:59+00:00Added an answer on May 27, 2026 at 12:15 pm

    did you check the log files? like in the mamp log directory.

    anyway a part from quick prototyping the best solution for web developing would be to configure the apache2 server that comes with osx. and stick to virtual-host(s) in order to recreate something that’s closest as possible to the production environment.

    that’s my 2cent.

    anyways, back to your problem, the quickest check you could perform is dig into the error_log
    that should be placed into

     /Applications/MAMP/logs/apache_error_log
    

    and last but not least, turn on the logging at runtime, it might help a little bit

     error_reporting(E_ALL);
     ini_set('display_errors','On');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anyone had any experience using Adobe Air to create BitTorrent application? Is there
I may want to create a RIA but am wondering, whether Adobe AIR or
We have an asp.net application that is able to create .air files. To do
I need to create a installer package which application i developed using flex air.
When an AIR app is published, the result is an .air application installer. When
I want to create an Adobe AIR application that is L-shaped so that another
So I am trying to create an image gallery. My AIR application accepts files
I am trying to create an Adobe Air Application, or making basic Mobile Apps
We need to create Adobe Air application in quick time with lot of emphasis
I'm creating an air application that allows the user to create, edit and save

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.