seephp Posted November 16, 2006 Share Posted November 16, 2006 I am new to PHP and I would like to learn it not by reading but by doing. And looking up as I go along. Could someone please suggest a project to work on? Link to comment https://forums.phpfreaks.com/topic/27510-suggustion/ Share on other sites More sharing options...
Caesar Posted November 16, 2006 Share Posted November 16, 2006 Try the very basics, like conditional statements, or inserting into a MySQL database. Link to comment https://forums.phpfreaks.com/topic/27510-suggustion/#findComment-125795 Share on other sites More sharing options...
The Little Guy Posted November 16, 2006 Share Posted November 16, 2006 Build a function that creates random Hex colors, then have it output the color on the screen. Link to comment https://forums.phpfreaks.com/topic/27510-suggustion/#findComment-125797 Share on other sites More sharing options...
seephp Posted November 16, 2006 Author Share Posted November 16, 2006 <html><head></head><body><form action="action.php" method="post">Name <input type="text" name="name">Age <input type="text" name="age"><input type="submit"></form></body></html><html><head></head><body>Hi <?php echo htmlspecialchars($_POST['name']); ?>.You are <?php echo (int)$_POST['age']; ?> years old.</body></html>It is not showing the name and age. Can someone tell me the problem Link to comment https://forums.phpfreaks.com/topic/27510-suggustion/#findComment-125808 Share on other sites More sharing options...
roopurt18 Posted November 16, 2006 Share Posted November 16, 2006 If that's all in the same file you are creating an html page that looks like:[code]<html> <head></head> <body></body></html><html> <head></head> <body></body></html>[/code]which is not valid HTML. Link to comment https://forums.phpfreaks.com/topic/27510-suggustion/#findComment-125813 Share on other sites More sharing options...
seephp Posted November 16, 2006 Author Share Posted November 16, 2006 Sorry about that. They are in different files. the latter is action.php . It still isnt working Link to comment https://forums.phpfreaks.com/topic/27510-suggustion/#findComment-125814 Share on other sites More sharing options...
roopurt18 Posted November 16, 2006 Share Posted November 16, 2006 You're sure your webserver is set up and running correctly and that it is processing php pages?If you're not, create the following file:[b]phpinfo.php[/b][code]<?phpphpinfo();?>[/code]and point to that in your browser. Link to comment https://forums.phpfreaks.com/topic/27510-suggustion/#findComment-125818 Share on other sites More sharing options...
seephp Posted November 16, 2006 Author Share Posted November 16, 2006 Okay you were correct it was my server.Apparently i dont know the first thing on how to use it.Can someone please give me a run down on how to get my php scripts to run on apache HTTP server 2.2.3? Link to comment https://forums.phpfreaks.com/topic/27510-suggustion/#findComment-125834 Share on other sites More sharing options...
The Little Guy Posted November 16, 2006 Share Posted November 16, 2006 you also need a PHP interpreter.may I suggest installing XAMPP? It contains:PHPMySQLApachePHP MyADMINFileZillaMercury32After you install this you will be able to run your scripts, and use a database.Assuming your using window... here is the download: http://www.apachefriends.org/en/xampp-windows.html#641 it's a [b]33MB Downlaod[/b]No other set up is required, except for setting the PHP MyADMIN password, which isn't required Link to comment https://forums.phpfreaks.com/topic/27510-suggustion/#findComment-125836 Share on other sites More sharing options...
trq Posted November 16, 2006 Share Posted November 16, 2006 Honestly your never going to get anywhere without a little reading. Were not here to tutor. [url=http://www.hudzilla.org/phpwiki]This[/url] free book should get you well and truly on your way. Link to comment https://forums.phpfreaks.com/topic/27510-suggustion/#findComment-125839 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.