Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

problems with PHP URL string

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Charset on apache  
Author Message
yahoda21

External


Since: Nov 06, 2003
Posts: 5



(Msg. 1) Posted: Thu Nov 06, 2003 5:40 pm
Post subject: problems with PHP URL string
Archived from groups: alt>apache>configuration (more info?)

Hi guys,

not quite sure whether this is an Apache setting problem or PHP, but I hoped
I would find soebody who can help me with this one.

Since updating PHP on my machine to php 4.33 (on Apache HTTP Server Version
1.33) my server does not seem to recognize URL string variables anymore.

If I call a file with the URL http://127.0.0.1/test.php?numberOne=12 which
holds a very simple script:

<?php
print("$numberOne");
?>

The result is an empty screen. I tested older files that used to work fine
and noticed that this is a global problem for all my sites since updating my
server software.

Did anybody have this problem before? Is it an Apache setting or a PHP
problem?

Thanks for the help!

 >> Stay informed about: problems with PHP URL string 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Thu Nov 06, 2003 5:40 pm
Post subject: Re: problems with PHP URL string [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Fredo Vincentis <yahoda21.DeleteThis@hotmailnospam.com> wrote:
 > Did anybody have this problem before?

It's a setting in PHP you have to turn on, something like
"global variables" (don't remember). Check the documentation of PHP.

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: problems with PHP URL string 
Back to top
Login to vote
alvaro_quitar_1

External


Since: Oct 31, 2003
Posts: 86



(Msg. 3) Posted: Thu Nov 06, 2003 5:40 pm
Post subject: Re: problems with PHP URL string [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

*** Davide Bianchi wrote/escribió (6 Nov 2003 06:16:58 GMT):
 > Fredo Vincentis <yahoda21 DeleteThis @hotmailnospam.com> wrote:
  >> Did anybody have this problem before?
 >
 > It's a setting in PHP you have to turn on, something like
 > "global variables" (don't remember). Check the documentation of PHP.

However, it's normally better (if possible) to rewrite scripts so they
don't need global variables:

<?php
print($_GET['numberOne']);
?>

--
--
-- Álvaro G. Vicario - Burgos, Spain
--<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: problems with PHP URL string 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
controlling access to Apache based on string in URL - Hey there! Server version: Apache/1.3.23 (Unix) (Red-Hat/Linux) I am running Apache and I would like to limit altogether the hits for the "default.ida" string. Right now default.ida resolves to a nearly empty file. But I would like the reque...

Problems with SSI - Hi, I've just setup my apache server 2.0.43 for SSI. The SSI Commands for my shtml pages are working fine. In my HTML-page there are the following lines: <!--#exec cgi="redirect.pl" --> this works. <!--#exec cgi="redirect.pl?n...

Problems with SSI - Hello, I'm using apache2.0.43 and want to enable the SSI feature for my server. I've done the following as described but nothing has changed in the output and I see the SSI-Tag. What can I do?? ---- httpd.conf ---- ServerName 127.0.0.1:80..

Problems with alias - Hello alltogether, we've got 4 apache-server running on linux-servers, listening on port 7000. External traffic comming on port 80 is directet to this internal port by an loadbalancer. On this server we got some aliases defined, such as alias /shop....

SSL Instlation problems - I haven't had to set up ssl in a while and for some reason it's breaking on me. It starts up, but it port 443 is http, not https. I was hoping someone has run into this before, and might know how to fix this. I pretty much followed the docs here:..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]