Forum Home
Press F1
 
Thread ID: 15574 2002-02-10 11:22:00 Return of the Novice... What about php? Guest (0) Press F1
Post ID Timestamp Content User
35227 2002-02-10 11:22:00 Hi,





Thanks for your advice on the whole 'ASP + linux = bad idea' thing.... It seems that asp is a purely a Micro$oft thing, thus using something else for dynamic content is going to be the answer...





Can you chaps give me a brief outline of PHP? I know nothing of it, except that is is as linux-ish as ASP is M$-ish, and that it serves dynamic content... Is it something I could learn in my spare time? Is it good enough to warrant doing so? Can I host it myself, or find someone to do it free?





Next up, I have installed what I think is enough stuff to run php... It all came off my mandrake CDs, but how do I run it? There are a few bits and pieces called phpblahblah lying around on my linux partitions now, but I have no idea how to use them... I'm gonna track down some more books, but does anyone have a good website I can learn from, or a few pointers as to how to get started (that's always the hardest part)...





I'm sticking with this mission, I want a dynamic page, even a relatively simple one...

Thanks again for your help...

:)

the FAT man
Guest (0)
35228 2002-02-10 12:28:00 The PHP homepage has quite a bit of documentation and a tutorial at www.php.net.

As for running it, if its setup right it will be loaded with apache (since its an apache module).

You can start apache manually with the command:

/etc/init.d/httpd start

Or set it to load at boot time in 'drakxservices'.


If you know some java, servlets aren't too hard to get running, esp. if you use an IDE like JBuilder.
Guest (0)
35229 2002-02-10 12:51:00 Hi,

Hold on, lets go back a few steps...

Am I right in thinking that I can't view php unless I have some kind of server to do it? By installing Apache and the PHP moduels have I done this?

If so, why does nothing appear when
I display a simple php script?

As per the tutorials instructions I made this:

<html><head><title>PHP Test</title></head>
<body>
<?php echo 'Hello World<p>'; ?>
</body></html>

Opening it using Konqueror diplayed nothing but white...

What went wrong?

I tried again after using the line you have me to start apache...

I'm afraid I'm totally lost. There isn't anything I could find on the website to help explain what happens to the php code when it try to view it... Consequently I'm at a complete loss as to where to look for the solution...any ideas?

Thanks

:)

the FAT man
Guest (0)
35230 2002-02-10 12:53:00 Hi,

Hold on, lets go back a few steps...

Am I right in thinking that I can't view php unless I have some kind of server to do it? By installing Apache and the PHP moduels have I done this?

If so, why does nothing appear when
I display a simple php script?

As per the tutorials instructions I made this:

<html><head><title>PHP Test</title></head>
<body>
<?php echo 'Hello World<p>'; ?>
</body></html>

Opening it using Konqueror diplayed nothing but white...

What went wrong?

I tried again after using the line you have me to start apache...

I'm afraid I'm totally lost. There isn't anything I could find on the website to help explain what happens to the php code when it try to view it... Consequently I'm at a complete loss as to where to look for the solution...any ideas?

Thanks

:)

the FAT man
Guest (0)
35231 2002-02-11 05:55:00 I'd strongly advise starting at a lower level. Get Apache running. Make a home page in standard HTML to replace the default one you are welcomed with. Play with that for a while until you know how a web server works. Especially the security side of it. Then get into more advanced things like PHP.

It's much easier if you have a feel for what is happening. I know you don't want to be a script kiddie. But it is too easy to be distracted with the details of the clever stuff ('Why is my bell going 'TWEET'?') when a problem is caused by the fundamental nuts and bolts.
Guest (0)
35232 2002-02-11 07:03:00 Hi,

I am already reasonably familiar with HTML code... MY website which I think you've seen was built entirely by me, and using a text editor in linux for 90% of it.

I understand the processes, and this is the next step up... The chap who runs the intranet at my college says you can run ASP.NET from win98, so I'm gonna go chat to him about that, and maybe I'll end up using it...

Firstly though, one thing I don't understand about webservers, is:

When you type the URL into a browser it goes and looks it up, then locates the appropriate ip address... Is that right? If I have a dynamic ip address I can't host a webpage is that also right? Or can my isp get around that?

thanks

:)

the FAT man
Guest (0)
35233 2003-02-12 05:13:00 No you cant host a website with a dynamic ip address.
But I think you can pay your ISP extra and get a static ip.

Are you sure you are trying to view the php page properly
example.(localhost)

p.s It sounds like your over your head.
iroam (380)
35234 2003-02-12 08:23:00 Hi. There are ways to host a site with a dynamic IP - a bit messy, and it produces a bit of downtime , but can be done.

By the way... the post you were replying to is a year old!
Greg S (201)
1