How to start programming with PHP on my computer?

I downloaded WAMP аnd I set іt up аnd now іt’s running PHPBB fine bυt now I want tο mаkе mу οwn php page аnd I саn’t gеt іt tο work I’ve tried a few οf thе tutorials bυt It јυѕt won’t work fοr mе. I’ve done everything іt ѕауѕ οn thе sheet word fοr word bυt thе php code јυѕt won’t come out rіght. I’ve copied аnd pasted, I’ve eliminated spaces added spaces nο luck. please hеlр.
I’ve tried mοѕt οf things life suggested I саn rυn html files fine thе Php BB іѕ working реrfесtlу i’ve tried “hello world” scripts nο luck. I hаνе nο сhοісе bυt tο υѕе windows. I hаνе access tο many programs bυt I οnlу hаνе a windows computer аnd absolutely Nο budget.

5 Responses to “How to start programming with PHP on my computer?”

  • Nicholas W says:

    What exactly is happening? Is nothing screening up? If nothing is screening up, then a touch is probably incorrect with the software you installed to get it working.

  • Barry C says:

    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 place 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 go 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 small bit at a time.

    Don’t bite off mre then one addition at a time until you get a excellent soubriquet on it (which will probably be by no means – 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 incorrect).

    I run this config on Linux all the time – can I question why you chose Windows? Probably not the best web serving platform by far.

    I question because it seems that PHP might be sensitive to differences in line endings between Windows and Linux (but maybe not) and I reflect it DOES care if there are spurious line endings at the end of the file, even if I don’t know if that is right on Windows too.

    Oh yeah, I want to add, and this is vital 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 fantastic on Linux.

  • james m says:

    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.

  • Siva says:

    First check whether u are having IIS(goto run type “inetmgr”)

    If so make 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.

  • a_m_del_in says:

    most vital is your directory executable ….
    try

    chmod 777 directory_name (linux)

    for windows goto IIS server configuration check permission of your directory and check mark do.

    rest experts have suggested you.

Leave a Reply

You must be logged in to post a comment.