Pages: 1
Posted on 05-05-12, 06:23 pm
Roy Koopa


Karma: 4011
Posts: 1483/2722
Since: 06-26-11
Hi! I started with PHP and in my first test-page I have a problem
My code is this:
<html> <body> <?php echo date("H:i"); ?> </body> </html>


It should show the time of the computer, but I get a blank screen
Can someone (Dirbaio, Nina, Mega-Mario?? xD) help?
_________________________
See a lots of creative DS Hacking here
If you want to support me, you might check out my Patreon Page : )
Posted on 05-05-12, 06:31 pm
All aboard the RandomTests train!

Karma: 789
Posts: 12/352
Since: 05-01-12
Script works for me. Most likely, this PHP script is not parsed by PHP. You can use view source feature to see what you get or just run following script.

<?php echo "Parsed by PHP!"; // >Not parsed by PHP!


If it shows "Not parsed by PHP!", I would check your server configuration. It's hard to give certain instructions. If you only need server for development, I would be interested with XAMPP. Otherwise read http://www.php-mysql-tutorial.com/wikis/php-tutorial/installing-php-and-mysql.aspx.
Posted on 05-05-12, 06:32 pm (rev. 2 by  ray on 05-05-12, 08:33 pm)
Roy Koopa


Karma: 4011
Posts: 1484/2722
Since: 06-26-11
Probems solved, thread can be closed.
_________________________
See a lots of creative DS Hacking here
If you want to support me, you might check out my Patreon Page : )
Posted on 05-06-12, 12:40 am
☭ coffee and cream


Karma: 10415
Posts: 287/2768
Since: 06-26-11
Um yeah, before this thread gets closed, can you please post how you solved your problems, incase others have the same issue?
_________________________
Kuribo64 - RH-fucking-cafe - Kafuka

zrghij
Posted on 05-06-12, 07:44 am
Roy Koopa


Karma: 4011
Posts: 1485/2722
Since: 06-26-11
My problem was, that I couldnt start Apache. The Solution: I closed Skype (or MSN, ICQ) because it blocked the port for apache. Then I was able to start it^^
_________________________
See a lots of creative DS Hacking here
If you want to support me, you might check out my Patreon Page : )
Posted on 05-06-12, 10:51 am
☭ coffee and cream


Karma: 10415
Posts: 288/2768
Since: 06-26-11
Another solution in that case is to set Apache to run on another port. I set it to run on port 666, so that I can still use Skype. You just have to remember to browse localhost:666 instead of localhost.
_________________________
Kuribo64 - RH-fucking-cafe - Kafuka

zrghij
Posted on 05-06-12, 02:09 pm
All aboard the RandomTests train!

Karma: 789
Posts: 13/352
Since: 05-01-12
Or just disable port 80 and 443 in the Skype settings.
Pages: 1