|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (3 bit)
Join Date: Jun 2003
Posts: 4
|
i'm learning to write PHP just by a simple web tutorial. so i write a simple code that should just print "I am the CHICKEN MAN" on the screen, right? well i'm seeing nothing. :-( i dunno if i have to have some special things installed on my comp or what. i have PHP 4.3 installed, so i dunno what i'm missing. i know HTML and c++ and java and vb, so this should be basic stuff.
here's a quick copy of the code (with the HTML tags slightly changed so they'd appear), just in case something is wrong in there. html> body> (<)?php print ("I am the CHICKEN MAN"); ?> /body> /html> course add < in front of HTML tage and i put the < in parenthesis for the php tag. help? please? anyone? Last edited by DarkSeraph; 06-27-2003 at 09:51 AM. |
|
|
|
|
|
#2 |
|
Member (8 bit)
Join Date: Jun 2003
Posts: 153
|
Instead of print, try echo.
Also, I'm not sure but I think you might need to install the Apache web server as well. PHP Code:
|
|
|
|
|
|
#3 |
|
Staff
Premium Member
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
|
Print and echo do the same thing. A couple of things come to mind as to why you would have this problem. One is to determine if php is actually getting parsed. Try this:
PHP Code:
PHP Code:
Save it as php.php and then see if it gives you any info. This will basically give you everything that you wanted to know about php. If nothing displays then you do need to make sure that you are running a webserver like Apache. |
|
|
|
|
|
#4 |
|
Member (3 bit)
Join Date: Jun 2003
Posts: 4
|
hmm. well thanx for the help guys, but i am still getting it blank. i THOUGHT i installed apache web server, but maybe i got something wrong, the exact directions i followed are here
http://hotwired.lycos.com/webmonkey/...tw=programming steps 8-10. so if you can help guide me the right way, that would be awesome. :-) thanx |
|
|
|
|
|
#5 |
|
Member (8 bit)
Join Date: Jun 2003
Posts: 153
|
Type: http://localhost (no dot extension) into your browser, if it doesn't work, then Apache hasn't been installed correctly.
|
|
|
|
|
|
#6 |
|
Member (3 bit)
Join Date: Jun 2003
Posts: 4
|
that would be my problem, apache HAS been installed properly, the link does work. but still i get nothing on pages i wrote.
btw, i am doing the cheaters way of using Dreamweaver MX to make things easy, but i still need to know how to code php. Last edited by DarkSeraph; 06-27-2003 at 05:18 PM. |
|
|
|
|
|
#7 |
|
Member (11 bit)
|
Try it with this tutorial
http://internetmaster.com/installtutorial/ This is the one I used when I installed Apache and PHP... Its very easy to follow... Check over it you might find a step that the other tutorial didnt have...
__________________
Computer: 486 Ram: 8 MB CD Rom: None OS: Windows 3.1 |
|
|
|
|
|
#8 |
|
Member (3 bit)
Join Date: Jun 2003
Posts: 4
|
WOOHOOO!!!! you kick ass. thank you a ton!!!
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|