A Conversation for Use PHP to Get a Random Background Colour for a Website

PH Avalability?

Post 1

Lightman

is there a quick way to find out if one's isp server has PHP avalabe?


PH Avalability?

Post 2

OwlofDoom

Put the following in a blank text file:

<?php phpinfo(); ?>

and put it on your server somewhere as phpinfo.php ... then try and get the url with your browser. If you see a load of settings that describe your PHP environment, you have it installed. If you just see what you typed, you don't (unless it's installed as a CGI module, but that's way beyond the scope of this entry anyway).

Make sure you delete this file from your server after looking at it, as it's a goldmine for system crackers!

~ smiley - towel


PH Avalability?

Post 3

Lightman

smiley - ok I will give it a try


PH Avalability?

Post 4

OwlofDoom

smiley - biggrin Glad to be of service!


PH Avalability?

Post 5

Lightman

Have not had the chance to try my isp yet. I do hope my server has it avalable, PHP looks interresting, usefull and someting to learn.


PH Avalability?

Post 6

OwlofDoom

PHP is very interesting, but it is also a processor hog, as well as being "another thing to set up", and having potential security risks if file permissions are not set up properly. Most paid-for web hosts provide PHP hosting, but it is quite likely that if you are just renting space from your ISP, or have a free account somewhere, they will not have set it up.

~ smiley - towel


PH Avalability?

Post 7

R'win

I love PHP. One of the best things, I think, is that all the processing is hidden; unlike javascript where you can see the code it in the page's source.

One thing I don't like is it's not, as I say (I don't know how anyone else would refer to it), activly dynamic; you can't have it sitting there changing the page, you have to refresh the page. However this is a minor complaint.


PH Avalability?

Post 8

OwlofDoom

Yeah. That's the same for all server-side scripting. Once you've tried PHP to its extremes, try using a real (efficient & powerful) language in CGI mode. I switched from PHP to Python a while back, and I suspect one day I'll move onto perl, which is the ultimate in hacky programming. My website is still all in PHP, though, so I must've really liked it at one point...

~ smiley - towel


PH Avalability?

Post 9

R'win

I'll probably do that, but PHP does what I want at the moment


Key: Complain about this post

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more