Reputation: 1
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.
Upvotes: 0
Views: 1093
Reputation: 1375
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.
Upvotes: 2