0

I've just started using Titanium Studio. When I use PHP code in my desktop applications, it is not parsed at run time on MacOS. The output is the same as the PHP source code. I have tried:

<?php 
  phpinfo(); 
?>

and

<script type="text/php" >
   phpinfo();
</script>

I have built this application on Window and ran it and it works fine. But on the MacOS, PHP code is not parsed. When I tried to create & build PHP desktop applications on MacOS it gives me an exception.

Please help me regarding this problem.

Thanks.

4
  • do you install any server ? for ex.mamp server for mac Commented Dec 14, 2011 at 5:34
  • no server needed.. But I believe Mac OS is still buggy.. Commented Dec 14, 2011 at 8:17
  • Did you enable apache (turn on web sharing) and enable the PHP module by uncommenting it in httpd.conf? Commented Dec 14, 2011 at 10:22
  • Titanium PHP is no longer active and frankly too complicated! Take a look at PHP Nightrain, it is opensource, portable and works out of box on Mac, Windows and Linux. youtube.com/watch?v=GXt8erPLf4o Commented Aug 1, 2014 at 22:46

1 Answer 1

2

Similar problem i also faced few days back. What i did is I downloaded Titanium Desktop SDK 1.2.0 RC6 (Which is compatible with lion, i think RC5 is also compatible with lion).

Than I run same code in lion instead of snow leopard. It's working all fine for me now. And one more thing you have to include external php file. In my case inline php was not working on MAC so I included external PHP file and all is fine now.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks Harsh, Topener, GordonM, The Zero. I use Titanium Desktop SDK 1.2.0 RC6. But still php not run on Mac. My output are follows on Window & mac: i1095.photobucket.com/albums/i472/libbyamala/… i1095.photobucket.com/albums/i472/libbyamala/… i1095.photobucket.com/albums/i472/libbyamala/… i1095.photobucket.com/albums/i472/libbyamala/…
Than i have no idea bro. I have told you the way i have solved my error. There is no other way i know. Sorry.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.