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

PHP Working???

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Apache 2.0 and cgi-bin perl problem  
Author Message
zarwell

External


Since: Dec 05, 2003
Posts: 18



(Msg. 1) Posted: Sat Dec 06, 2003 1:53 am
Post subject: PHP Working???
Archived from groups: alt>apache>configuration (more info?)

I just set up apache 2.0.48 and PHP 4.3.4 and thought it was working well. I
can pull up pages with .php extensions and some parts of the code work such
as date functions and includes (pretty much all I've tested so far) but when
I try to use variables passed in the url it doesn't read them. Example, for
www.mysite.com/index.php?myvar=dog myvar is not set. What's up?
Steve.

 >> Stay informed about: PHP Working??? 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Sat Dec 06, 2003 9:17 am
Post subject: Re: PHP Working??? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Szar <zarwell DeleteThis @hotmail.com> wrote:
 > <a style='text-decoration: underline;' href="http://www.mysite.com/index.php?myvar=dog" target="_blank">www.mysite.com/index.php?myvar=dog</a> myvar is not set. What's up?

Read the documentation of PHP. It has nothing to do with Apache.
hint: register_global

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: PHP Working??? 
Back to top
Login to vote
zarwell

External


Since: Dec 05, 2003
Posts: 18



(Msg. 3) Posted: Sat Dec 06, 2003 6:55 pm
Post subject: Re: PHP Working??? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Davide Bianchi" <davideyeahsure.DeleteThis@onlyforfun.net> wrote in message
news:bqrsa4$270tuu$1@ID-18487.news.uni-berlin.de...
 > Szar <zarwell.DeleteThis@hotmail.com> wrote:
  > > <a style='text-decoration: underline;' href="http://www.mysite.com/index.php?myvar=dog" target="_blank">www.mysite.com/index.php?myvar=dog</a> myvar is not set. What's up?
 >
 > Read the documentation of PHP. It has nothing to do with Apache.
 > hint: register_global
 >
 > Davide

Got it. Thanks! I started using $_REQUEST like I should have in the first
place and left globals off.
Steve.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: PHP Working??? 
Back to top
Login to vote
spam3

External


Since: Jul 01, 2003
Posts: 411



(Msg. 4) Posted: Mon Dec 08, 2003 5:19 pm
Post subject: Re: PHP Working??? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Szar wrote:
 > "Davide Bianchi" <davideyeahsure.RemoveThis@onlyforfun.net> wrote in message
 > news:bqrsa4$270tuu$1@ID-18487.news.uni-berlin.de...
 >
  >>Szar <zarwell.RemoveThis@hotmail.com> wrote:
  >>
   >>>www.mysite.com/index.php?myvar=dog myvar is not set. What's up?
  >>
  >>Read the documentation of PHP. It has nothing to do with Apache.
  >>hint: register_global
  >>
 >
 > Got it. Thanks! I started using $_REQUEST like I should have in the first
 > place and left globals off.
 > Steve.

You should really be using $_GET or $_POST rather than $_REQUEST. The
reasoning is that if someone created a submit form with GET variables in
the "action" and POSTED fields in the form, $_REQUEST will have both,
and you would not know whether they were GET or POST variables. If you
had a var of the same name in each, then the GET one would be
overwritten in the $_REQUEST array.

--
Justin Koivisto - spam.RemoveThis@koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: PHP Working??? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Need help getting SSL working - I configured Apache 2.0 with RH9. Apache serves up unencrypted pages just fine. I then change my httpd.conf file to listen on port 443 as illustrated below: Listen 192.168.1.101:443 When I try to restart Apache, I get the following error: (98)Address..

mod_rewrite is not even working - I'm trying to learn the basis of mod_rewrite using Apache 1.3.23 under Red Hat 7.3 test server but I can't manage to make it work. After copying and pasting several examples taken from manual I've reached the conclusion that the module is not even active...

Authentication not working. - THis works in Apache 1, but I recently upgraded to Apache 2.0.37. THis is what I have. <Directory /usr/local/www/data> Order deny,allow Deny from all AuthType Basic AuthUserFile..

SSI not working in apache root dir - Hi I am on Mac OS X 10.2.8 Server version: Apache/1.3.27 (Darwin) Server built: 01/15/03 19:22:17 Below is a snippet of my httpd.conf I have made my home directory (/Users/myhome/Sites) the apache root directory It was /Library/Webserver/Documents ...

Virtual Hosts not working - Got 2 virtual hosts and the virtualhost basic whevever I goto www.mydomain1.com it's fine, but when I goto www.mydomain2.net it points to the default:80 vhost my configuration is: namevirtualhost * <virtualhost *> servername domain1.com extrabi...
   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 ]