• Hi wordpressers,

    I have my website up and running on godaddy delux wordpress account. Is it possible to write sample PhP applications (even the one’s that display “hello world”) and deploy on the server ?

    I am a PhP noob. Any ideas/thoughts/comments/suggestions/solutions are appreciated…

    P.S: Please provide details/tutorials on how to go about.

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi,

    You can simple create on sub folder into your domain and install the required application and have a check.

    Thanks,

    Shane G.

    Thread Starter seenuFour

    (@seenufour)

    install the required application

    What do you mean by install ?

    Lets say I wanna create a simple new page the prints “Hello World”..

    I know how to create a new page in wordpress.

    But how/where to write PhP code ?

    Thanks

    1) Put the code in a file.
    2) Save the file with a .php ending.
    3) Put the file on the server.
    4) Load the file in a web browser.

    Thread Starter seenuFour

    (@seenufour)

    3) Put the file on the server.
    4) Load the file in a web browser.

    I am not sure where this file goes on the server.

    Once I save it at some location on the server, how to access it ?

    What URL should I use to access this file ?

    I am a newbie…

    Thanks for your reply!

    Exactly where you put it depends on how your host has the server organized. Look for a file named index.html in one of the directories. That is probably the right directory. Put your file there. If you can’t find it list the directories that you can see when you login via ftp.

    You load the file by browsing to https://<yourdomainname>/yourfile.php or https://<yourserverIP>/yourfile.php.

    Thread Starter seenuFour

    (@seenufour)

    That worked!

    Thanks!

    But only half of my question is answered!

    How should I show these additional PhP files in the home page ?

    Lets say I have these 2 pages “contact.php” and “About.php”

    I have created them in the same folder as Index.php

    I would like to show these as links in the home page.

    How/Where should I edit the home page to show these links ?

    Thanks

    Are you talking about creating a WP theme or are you just playing with PHP?

    If you are playing, name you file ‘index.php’ and it should load when someone visits the root directory. You can then link from that page to your other pages.

    If you are talking about themes maybe read this first.

    Thread Starter seenuFour

    (@seenufour)

    Are you talking about creating a WP theme or are you just playing with PHP?

    I selected a random theme available. Now I wanna play with PhP.

    In my home page, I want to create links beside “Home”. Lets say these links are “Contact” and “About”.

    These 2 are custom PhP Scripts.

    Now where/how should I write PhP code in the “Home” page for the two links “Contact” and “About” ?

    Do I have to create a “separate theme” to achieve this feat ?

    I am not even good in PhP, I can learn though.

    Thanks for your reply!

    Ok. Then what you need to do is edit your theme. This is different process than just plopping .php files onto the server because WP generates some of the code for you. The link I gave you contains some of the basics. Then follow the link to the Pages section of the codex. Read it through. As your get about halfway down you see some examples of simple WP pages. You should be able to copy those into a file and get things working. Just follow the directions.

    Honestly, for simple ‘About’ and ‘Contact’ pages you don’t need to create a new template. Just go to your wp-admin screen->Pages->Add New and add a page using the default template. It sounds like you are more interested in playing with the PHP than with just getting something to show up online, though.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Experiment on my website.’ is closed to new replies.