PDA

View Full Version : Using PHP for index


drowsy
3-27-02, 11:22 PM
I was just wondering, I want to run some PHP scripts on my site and my pages have to be in PHP. What I wanted to know is that is all I need is:
#!/usr/local/bin/php
as my first line in my page and make the filename *.php?
I was wondering this because my site is written in HTML and I was wondering if I have to change that to.


Thanks!

HalfaBee
3-27-02, 11:42 PM
You can use your HTML pages just change to *.php and just add #!/usr/local/bin/php
at the first line and CHMOD to 755.
They will work just fine and then you can add PHP scripts into the code where needed.

Make sure the pages are uploaded in ASCII mode.

Have Fun
Halfabee

drowsy
3-27-02, 11:46 PM
Thanks so much
Yeah I know about the whole ASCII thing - I was just reading around!