Two novice questions

L

Lee David

I'm new to this newsgroup and had two questions. I'm a total novice at PHP,
but do know several other computer languages.

1) What variables can I access to see the parameters passed to a web page?

2) Can I include PHP in SSI includes? If not, how do I simulate that? What
I'm after is not duplicating code in pages including a menuing system and
header to each page. But I would like to highlight the menu choice.

TIA,
Lee
 
B

Barbara de Zoete

I'm new to this newsgroup and had two questions. I'm a total novice at PHP,
but do know several other computer languages.

Erm, was it the [alt] or the
HTML:
 part of the name of this newsgroup you
didn't understand? Or maybe just the .

PHP is a few doors down to your left:
<http://groups.google.com/groups?alt.comp.lang.php>


--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
|      weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
|  webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html    |
`-------------------------------------------------- --<--@ ------------'
 
A

Amos E Wolfe

I'm new to this newsgroup and had two questions. I'm a total novice at
PHP,
but do know several other computer languages.

Erm, was it the [alt] or the
HTML:
 part of the name of this newsgroup you
didn't understand? Or maybe just the .
[/QUOTE]

No need to bite! php can be included in what are basically html documents
(albeit with .php extension). What next, banning all mention of inline
javascript?

Adding headers and menus in an html document is easy using php. You can use
the php include (or readfile if the document is on another server). Of
course you will need to rename your file (example index.html becomes
index.php). For more see http://uk.php.net/manual/en/function.include.php

Hope that helps!

-=# Amos E Wolfe #=-
 
B

Barbara de Zoete

I'm new to this newsgroup and had two questions. I'm a total novice at
PHP,
but do know several other computer languages.

Erm, was it the [alt] or the
HTML:
 part of the name of this newsgroup you
didn't understand? Or maybe just the .
[/QUOTE]

No need to bite! php can be included in what are basically html documents
(albeit with .php extension). What next, banning all mention of inline
javascript?
[/QUOTE]

Think this is me biting? :-D As it happens, the OP was multi posted to the
alt.comp.lang.php group. As I found out after my first reply. Had I know, now,
then you might have seen a glimps of my teeth.


--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
|      weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
|  webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html    |
`-------------------------------------------------- --<--@ ------------'
 
L

Leif K-Brooks

Barbara said:
Erm, was it the [alt] or the
HTML:
 part of the name of this newsgroup
you  didn't understand? Or maybe just the .[/QUOTE]

What part of "Just about anything Web related is on topic in alt.html"
did *you* not understand? http://tinyurl.com/4amc4
 
B

Barbara de Zoete

Barbara said:
Erm, was it the [alt] or the
HTML:
 part of the name of this newsgroup you
didn't understand? Or maybe just the .[/QUOTE]

What part of "Just about anything Web related is on topic in alt.html" did
*you* not understand? http://tinyurl.com/4amc4[/QUOTE]

I don't click tiny urls, because there is no clue where they actually go.

No matter what that url is for, for two 100% php questions, asked by someone
thinking in computer languages, either of the three php-groups[1] that are very
active, will do a better job than an html group.

[1] alt.comp.lang.php
comp.lang.php
alt.php

--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
|      weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
|  webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html    |
`-------------------------------------------------- --<--@ ------------'
 
B

Blinky the Shark

Amos said:
I'm new to this newsgroup and had two questions. I'm a total novice at
PHP,
but do know several other computer languages.
Erm, was it the [alt] or the
HTML:
 part of the name of this newsgroup you
didn't understand? Or maybe just the .[/QUOTE][/QUOTE]
[QUOTE]
No need to bite! php can be included in what are basically html documents
(albeit with .php extension).[/QUOTE]

Or .html, or something else.
[QUOTE]
javascript?[/QUOTE]
[QUOTE]
Adding headers and menus in an html document is easy using php. You can use
the php include (or readfile if the document is on another server). Of
course you will need to rename your file (example index.html becomes
index.php).[/QUOTE]

Unless you don't want to rename it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top