Jump to content

~,~ Getting the code... anywhere?


Blackroot

Recommended Posts

I have some expirence with C++, lots of experience with HTML (not even worth bragging about html though :P) which seems to have some relation to PhP (C++ atleast). I installed WAMP after many failed tries of installing php/apache/MySql. I havent written any code yet, but where do I get it compiled, before putting it online? Can I see my php on an unlaunched site? (I still need to compile it somewhere though, right? Or is it like html...? With variables?)

This has probably been asked many times, but I couldent find it anywhere, all the tutorials I found went from installing your resources to writing php, with no stop to say how to compile, veiw it :/. (Sorry for being a noob :P)
Link to comment
Share on other sites

You dont need to complile your PHP code. PHP is a server side programming lanagugage meaning is parsed on the server. All you need to do is save you PHP scripts with a .php file extension to the folder which the files get seen by the server. If yo uhave WAMP installed then it'll most likely be [i]C:\program files\Apache Group\Apache 2\htdocs[/i]

Now if you open up a web browser, IE, FF opera etc. Now if you type in [a href=\"http://localhost/\" target=\"_blank\"]http://localhost/[/a] in the address bar and hit enter you should now see your servers root directory with a list of files and folders. Simply click on one of files/folders to view it.

No compiling is needed at all for you PHP scripts.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.