![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: May 2007
Posts: 52
Rep Power: 2
![]() |
help!
ok why can't i see the text???
![]() |
|
|
|
|
|
#2 |
|
King of Portal
|
First off when you save a php file you have to make the extension ".php" not ".html". Secondly, in order to produce output to the browser you have to use the "echo" instruction. So something like "echo $txt;" or "echo $number;" I suggest you read some beginners tutorials or purchase a book on the subject which will be far more productive than just trying to wing it. http://www.w3schools.com has some simple php tutorials.
__________________
Lo, there do I see my father. 'Lo, there do I see My mother, and my sisters, and my brothers. 'Lo, there do I see The line of my people... Back to the beginning. 'Lo, they do call to me. They bid me take my place among them. In the halls of Valhalla... Where the brave... May live... ...forever.. GrimBB | Mimesis |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
|
here are 13 videos covering many topics in php. watch and learn
http://www.phpvideotutorials.com/
__________________
i dont know much about programming but i try to help |
|
|
|
|
|
#4 |
|
Newbie
Join Date: Jun 2007
Posts: 9
Rep Power: 0
![]() |
Just code:
echo $txt; or <?=$txt?> |
|
|
|
|
|
#5 | |
|
Programmer
Join Date: May 2007
Posts: 52
Rep Power: 2
![]() |
Quote:
|
|
|
|
|
|
|
#6 |
|
Programming Guru
![]() ![]() ![]() |
check the apache error logs...
tail -f /var/log/httpd/error_log Then run that file in your browser. (assuming your logs are stored in /var/log/httpd)
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#7 |
|
Programmer
Join Date: Mar 2007
Posts: 33
Rep Power: 0
![]() |
And yet no one stated the other obvious.
you cannot just open the .php file in your browser.. you have to install a local webserver, or sign up for a free online host that supports PHP ! The php video tutorials posted earlier have a rough run down in getting XAMPP running for testing on (i think) |
|
|
|
|
|
#8 |
|
Sexy Programmer
|
Download Apache. Read the instruction on how to install it. Then install PHP. Read the instruction on how to install it.
If my instructions confuse you which I will assume. Read this: http://www.thesitewizard.com/archive/php4install.shtml
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
|
|
#9 |
|
Newbie
Join Date: Jun 2007
Posts: 9
Rep Power: 0
![]() |
Oh
This is how it worx:User -> Apache -> file -> if php -> php preprocessor -> Apache -> User So you must setup Apache or other server that worx with php fnd then setup Php. configure it. And only then it will work. For first time you may use phptriad2.X.X I forget version. Use google to find it. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|