Jump to content

saving php files.

Recommended Posts

this is going to sound like a really simple question but when you have a page which includes php do you just save it as php, like you you htm?


also this may be in the wrong section but i wouldn\'t know where to post it... right i have reasently got myself hosted independantly....(previously hosted by a friend) and i am baffled by the control pannel! Also i am doing an on line course in php and it says that when writing the time and date function...




$today = date(\"j/n/y\")

print(\"The current date is: $today\");



that you have to write out a load of othr stuff first like a-\"am\" or \"pm\", A - \"AM\" or \"PM\" etc but it doesn\'t say how to save it or where to upload it to on my site either using ftp or my control pannel.


i hope that someone understand what i have just said and can help.

Link to comment
Share on other sites

sorry i am useless at explaining thing.


i am doing this course on php and am currently learning how to use the date and time function. The course states that in order to use this i have to write out the meaning of each little bit for example D-day of the week, textual, 3 letter; i.e. \"Fri\".

However it doesn\'t say where i save this info, do i have to write this out on the same page i am using the date function or do i save it seperately like when you use style sheets.


also where do i upload php files when i am uloading them to my ftp....my other basic html files i have uploaded into http docs.


i am a complete novice to all this, i have n\'t had one real lesson in anything to do with making a website, i am teaching myself which is why i am not very good at explaining things


hope i made a little bit more sence?

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.

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.