473,385 Members | 1,355 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

url rewiting

I fairly new new to running my own apache server and I think I may have a
configuration issue.
I've tried asking in alt.apache.configuration but have not had any response
so I'm hoping someone here can help.

I've got the apache server running with the php 4 and mysql modules running
fine, I know this cause I can call php'd html pages. My problem is when I
try and execute something like :-

echo("<a href=\"$PHP_SELF?page=5">PREV</a>");

when the page is reloaded and I echo out $page, it's never has a value.
Simon
Jul 17 '05 #1
5 1743
Simon Redmond wrote:
I fairly new new to running my own apache server and I think I may have a
configuration issue.
I've tried asking in alt.apache.configuration but have not had any response
so I'm hoping someone here can help.

I've got the apache server running with the php 4 and mysql modules running
fine, I know this cause I can call php'd html pages. My problem is when I
try and execute something like :-

echo("<a href=\"$PHP_SELF?page=5">PREV</a>");

when the page is reloaded and I echo out $page, it's never has a value.
Simon

That would most likely have to do with register_globals being off as of
version 4.2.0 its off by default and you should use the new superglobal
arrays to access information as stated on
http://www.php.net/manual/en/languag...predefined.php. So try
something like echo $_GET['page']; and I bet it works.

Jul 17 '05 #2
John Downey wrote:
Simon Redmond wrote:
I fairly new new to running my own apache server and I think I may have a
configuration issue.
I've tried asking in alt.apache.configuration but have not had any
response
so I'm hoping someone here can help.

I've got the apache server running with the php 4 and mysql modules
running
fine, I know this cause I can call php'd html pages. My problem is when I
try and execute something like :-

echo("<a href=\"$PHP_SELF?page=5">PREV</a>");


It seems to me this technique would also work for my problem ("One
script, multiple transactions"). Correct? Clever stuff; there's a lot
of room for programmer creativity in web programming.

--
--
Lynn Wallace http://www.xmission.com/~lawall
"I'm not proud. We really haven't done everything we could to protect
our customers. Our products just aren't engineered for security."
--Microsoft VP in charge of Windows OS Development, Brian Valentine.

Jul 17 '05 #3
Raptor wrote:
It seems to me this technique would also work for my problem ("One
script, multiple transactions"). Correct? Clever stuff; there's a lot
of room for programmer creativity in web programming.


Well, yes, I have a site with just about every single page being generated
by the same PHP script, which allows you to do common tasks all in the
same place, etc.
Jul 17 '05 #4
Matty wrote:
Raptor wrote:

It seems to me this technique would also work for my problem ("One
script, multiple transactions"). Correct? Clever stuff; there's a lot
of room for programmer creativity in web programming.

Well, yes, I have a site with just about every single page being generated
by the same PHP script, which allows you to do common tasks all in the
same place, etc.

Most sites I build like my Sage engine (shameless self ad because its
currently in idle development) run off the idea of modules. Where the
index.php interfaces with multiple classes that act independently of
each other.

--
John Downey
http://delusive.dyn.ee
http://sage.dev.box.sk
http://blacksun.box.sk

Jul 17 '05 #5
John Downey wrote:

Well, yes, I have a site with just about every single page being
generated by the same PHP script, which allows you to do common tasks all
in the same place, etc.

Most sites I build like my Sage engine (shameless self ad because its
currently in idle development) run off the idea of modules. Where the
index.php interfaces with multiple classes that act independently of
each other.


Yeah, phpnuke, etc, use a similar system, and i think phpfusebox does to
some extent too - it's a lot better than having twenty different callable
php files, which one way or anopther have to include the same files, do
the same work, etc

Also makes updating the site easier
Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

42
by: Fred Ma | last post by:
Hello, This is not a troll posting, and I've refrained from asking because I've seen similar threads get all nitter-nattery. But I really want to make a decision on how best to invest my time....
24
by: MLH | last post by:
I have noticed, in the following code snippet, that if tblCorrespondence has no records in it, I get an error 91 later during processing. It complains that an object variable or a With block...
1
by: amitk | last post by:
Hello, I'm using Access 2002-2003. My application exports an Access table into a text file and then appends the text file with several othet files to generate a final file XXXX.ftm . ...
5
by: amit | last post by:
Hi group, What is the best way to rersize an image to a specific width and height? Any samples? Thanks.
4
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I have a multiline RichTextBox that I use for data logging. I'm concerned about how the AppendText method reacts when over time the maximum number of characters have been added. Do the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.