Page 1 of 1

Path info - how do you save a page as <?name?>

Posted: Mon Nov 08, 2004 11:46 pm
by zander213
I am using dreamweaver to edit a php page. How do I save a page that contains a php string in the name of the page?

Ex: website.com/<?php echo $row['name']; ?>.php

Any help would be greatly appreciated!

Posted: Tue Nov 09, 2004 3:18 am
by phpScott
I don't think you can :cry:
What is the purpose of doing so?

Posted: Tue Nov 09, 2004 6:50 am
by genetix
if your saying your editting a script someone else made and your thinking thats a real page its most likely not. Here are two examples:

Vitual Page: page.php?id=4
Real Page: page4.php

The virtual page isn't actually there most of the times. What appears in a web browser all depends on whats in the id=

In your case I'm not sure though because there is another .php at the end.

Could you provide more information?

Posted: Tue Nov 09, 2004 12:23 pm
by zander213
I have 2 pages that I am creating...

Page A is a list of all items on one page. Each link on this page points to each individual item:
website.com/<?php echo $row['item']; ?>.php

My question is - how do I set up Page B so the links from Page A will open the correct item in Page B?

Do I have to save each Page B as :
<?php echo $row['item']; ?>.php

Or am I confused here?

Posted: Tue Nov 09, 2004 12:30 pm
by Weirdan
zander213 wrote: Or am I confused here?
Certainly you are. Page A is supposed to be preprocessed by PHP interpreter on the fly, yielding something like this:

Code: Select all

website.com/1.php
website.com/2.php 
website.com/3.php 
//.... and so on
There would be not necessarily numbers, it all depends on the contents of $row['item'] variable when the page is preprocessed.

Posted: Tue Nov 09, 2004 1:06 pm
by rehfeld
is this the same problem?

viewtopic.php?t=27534&highlight=

Posted: Tue Nov 09, 2004 1:23 pm
by Weirdan
seems like it is. zander213, do not create several threads regarding the same problem.