Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Digital Lifestyle
Web Design and Hosting
Enabling PHP
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="InkL0sed" data-source="post: 817025" data-attributes="member: 91244"><p>I can't seem to get php to work. </p><p></p><p>I was following a tutorial for php when I opened this file in my browser (called index.php):</p><p></p><p>[CODE]</p><p><html></p><p> <head></p><p> <title>PHP Test</title></p><p> </head></p><p> <body></p><p> <?php echo "<p>Hello World!</p>"; ?> </p><p> </body></p><p></html></p><p>[/CODE]</p><p></p><p>It either displays all of the text in the file, or:</p><p>[CODE]Hello World!</p><p>; ?>[/CODE]</p><p></p><p>I googled mac tutorials for php, and found that it needed to be enabled, so I followed the instructions, took out the comment in the /private/etc/apache2/httpd.conf file, but it still doesn't seem to work. </p><p></p><p>So basically I'm lost.</p><p></p><p>What am I doing wrong? I'm sure it's something really simple...</p></blockquote><p></p>
[QUOTE="InkL0sed, post: 817025, member: 91244"] I can't seem to get php to work. I was following a tutorial for php when I opened this file in my browser (called index.php): [CODE] <html> <head> <title>PHP Test</title> </head> <body> <?php echo "<p>Hello World!</p>"; ?> </body> </html> [/CODE] It either displays all of the text in the file, or: [CODE]Hello World! ; ?>[/CODE] I googled mac tutorials for php, and found that it needed to be enabled, so I followed the instructions, took out the comment in the /private/etc/apache2/httpd.conf file, but it still doesn't seem to work. So basically I'm lost. What am I doing wrong? I'm sure it's something really simple... [/QUOTE]
Verification
Post reply
Forums
Digital Lifestyle
Web Design and Hosting
Enabling PHP
Top