How to start programming with PHP on my computer?
polo_player13 asked the question:
I downloaded WAMP and I set it up and now it’s running PHPBB fine but now I want to create my own php page and I can’t get it to work I’ve tried a few of the tutorials but It just won’t work for me. I’ve done everything it says on the sheet word for word but the php code just won’t come out right. I’ve copied and pasted, I’ve eliminated spaces added spaces no luck. please help.
I’ve tried most of things being suggested I can run html files fine the Php BB is working perfectly i’ve tried “hello world” scripts no luck. I have no choice but to use windows. I have access to many programs but I only have a windows computer and absolutely No budget.
Related posts:
- PHP programming problem? how to use mysql? wayiran asked the question: I have installed: 1- Windows XP...
- PHP programming I need help and i know little about programming? Jordan asked the question: I am new to programming all...
- Which books should I start with to learn computer Network programming, PHP, Perl and MySQL? Ozz*mosis* asked the question: I want to learn network programming,...
- PHP programming help using forms? Nathan asked the question: When I run this on my...
- PHP programming help using forms? Nathan asked the question: When I run this on my...
Filed Under Programming & Design |
Tagged With Hello World, Html Files, Php Bb
Comments
5 Responses to “How to start programming with PHP on my computer?”
What exactly is happening? Is nothing showing up? If nothing is showing up, then something is probably wrong with the software you installed to get it working.
OK if this is your first website you may be getting a bit ahead of yourself.
First verify you can get the web server to serve regular html files. That will prove that you know where to put the files.
Then be sure that you can serve the phpbb scripts. That will prove that Apache knows what to do with PHP files.
Then find a basic PHP “Hello world” script and paste it into the same directory as the phpbb files.
See if you can run that.
If so, then move it to the directory where you placed the html files, see if it still runs.
Once you get all that done, then you can feel comfortable with your configuration, and start adding to the hello world prog a little bit at a time.
Don’t bite off mre then one addition at a time until you get a good handle on it (which will probably be never - I have been coding professionally for 30 years and I know that if you add two or more unknowns at the same time, you will just complicate trying to figure out what went wrong).
I run this config on Linux all the time - can I ask why you chose Windows? Probably not the best web serving platform by far.
I ask because it seems that PHP might be sensitive to differences in line endings between Windows and Linux (but maybe not) and I think it DOES care if there are spurious line endings at the end of the file, although I don’t know if that is true on Windows too.
Oh yeah, I want to add, and this is important for debugging web apps - learn where your apache logs are, both access and error logs, and be prepared to watch them as you test your program. Don’t know the best way to do that on Windows, but tail -f works great on Linux.
are you saving your work in the root folder you specified for your apache server, If the answer is no, go to the folder where WAMP is downloaded, and in it will be another folder titled ‘www’ . Save your .php-extension files in this folder and your scripts should work.
First check whether u are having IIS(goto run type “inetmgr”)
If so create a folder and make it web sharing . Then open a notepad and save that notepad to that particular folder.
goto your browser and type the url”http://localhost/foldername/pagename.php”
Hope this will be helpful to u.
most important is your directory executable ….
try
chmod 777 directory_name (linux)
for windows goto IIS server configuration check permission of your directory and check mark execute.
rest experts have suggested you.