Jump to content


Photo

saving php files.


  • Please log in to reply
4 replies to this topic

#1 kickasschick

kickasschick
  • Members
  • Pip
  • Newbie
  • 6 posts
  • Locationeast yorkshire

Posted 10 June 2003 - 12:04 AM

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.
dont cry because its over, smile because it happened!

#2 Blu_Smurf

Blu_Smurf
  • Members
  • PipPipPip
  • Advanced Member
  • 32 posts
  • LocationTexas

Posted 10 June 2003 - 12:20 AM

Yeah just save it as file.php as normal....

as for the otehr questions, can you elaborate?

#3 kickasschick

kickasschick
  • Members
  • Pip
  • Newbie
  • 6 posts
  • Locationeast yorkshire

Posted 10 June 2003 - 12:28 AM

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?
dont cry because its over, smile because it happened!

#4 Blu_Smurf

Blu_Smurf
  • Members
  • PipPipPip
  • Advanced Member
  • 32 posts
  • LocationTexas

Posted 10 June 2003 - 12:34 AM

Ok, you upload them to where ever you want... same folder as html files.

and to learn about the date(); function, go here.

http://www.php.net/m...nction.date.php

http://www.php.net is the home of php, and you can search for anything you want to learn about there. Great tool, helps me out a ton.

Good luck

#5 kickasschick

kickasschick
  • Members
  • Pip
  • Newbie
  • 6 posts
  • Locationeast yorkshire

Posted 10 June 2003 - 12:38 AM

thank you. :D

i will check out the links you sent.

thaks again. :D
dont cry because its over, smile because it happened!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users