Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 136,081 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,565 people online right now. Registration is fast and FREE... Join Now!




Foxserv Has Issues.

 
Reply to this topicStart new topic

Foxserv Has Issues.

Quik
3 Sep, 2002 - 07:41 AM
Post #1

D.I.C Lover
Group Icon

Joined: 6 Mar, 2001
Posts: 3,750



Thanked: 1 times
My Contributions
For some odd reason, my foxserv(apache/php/mysql) has some weird problem.
If I send a variable over on the url or through a form it will not show up..

example:

URL : page.php?var=test

<? echo "$var"; ?>
This wont work.


But this will:
<?
$var = "test";
echo "$var";
?>

It has to do with the settings or somthing because my script works fine on Guardianhosting.

Is there anysetting to do with passing variables or somthing?
User is offlineProfile CardPM
+Quote Post

Quik
RE: Foxserv Has Issues.
3 Sep, 2002 - 11:10 AM
Post #2

D.I.C Lover
Group Icon

Joined: 6 Mar, 2001
Posts: 3,750



Thanked: 1 times
My Contributions
yo yo thread, bump to the shizzle up, where all the ladies and fellas can take a peek, at the knowledge im trying to seak
User is offlineProfile CardPM
+Quote Post

Spider
RE: Foxserv Has Issues.
3 Sep, 2002 - 12:18 PM
Post #3

Arachnid
****

Joined: 10 Jul, 2002
Posts: 769


My Contributions
1. what version of php have you got installed?

2. if you got version 4 (I think) or above then you should be using <?php ?> as the tags., although that shouldn't cause a problem

3. you could check whether the variable is being set with this code:

CODE
URL: page.php?var=test

<?php

echo isset($var);

?>


this should return TRUE, if it returns FALSE then you've got a problem... but I don't have a clue what.
User is offlineProfile CardPM
+Quote Post

supersloth
RE: Foxserv Has Issues.
3 Sep, 2002 - 01:03 PM
Post #4

serial frotteur
Group Icon

Joined: 21 Mar, 2001
Posts: 19,601



Thanked: 12 times
Dream Kudos: 2147483647
Expert In: being gentlemanly

My Contributions
is it foxserv 2 or 3 ??
User is offlineProfile CardPM
+Quote Post

MathewS
RE: Foxserv Has Issues.
3 Sep, 2002 - 01:59 PM
Post #5

D.I.C Regular
***

Joined: 14 May, 2002
Posts: 252



Thanked: 1 times
Dream Kudos: 1
My Contributions
i know this is silly coming from me but have you tried using

CODE

URL: page.php?var=test

<?php
global $var;

echo $var;

?>

User is offlineProfile CardPM
+Quote Post

Quik
RE: Foxserv Has Issues.
4 Sep, 2002 - 03:34 PM
Post #6

D.I.C Lover
Group Icon

Joined: 6 Mar, 2001
Posts: 3,750



Thanked: 1 times
My Contributions
PHP Version 4.2.2

System Windows NT 5.1 build 2600
Build Date Jul 21 2002 23:51:43
Server API Apache 2.0 Filter
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINDOWS\php.ini
Debug Build no
Thread Safety enabled


none of the above code works. It shouldnt have to do with the code.
User is offlineProfile CardPM
+Quote Post

Quik
RE: Foxserv Has Issues.
4 Sep, 2002 - 03:51 PM
Post #7

D.I.C Lover
Group Icon

Joined: 6 Mar, 2001
Posts: 3,750



Thanked: 1 times
My Contributions
*sigh*
register_globals was off. dumb php.
User is offlineProfile CardPM
+Quote Post

kyouto
RE: Foxserv Has Issues.
4 Sep, 2002 - 07:08 PM
Post #8

D.I.C Addict
Group Icon

Joined: 13 Jun, 2002
Posts: 718

php is only as smart as the server admin biggrin.gif
User is offlineProfile CardPM
+Quote Post

LammaDog
RE: Foxserv Has Issues.
7 Sep, 2002 - 03:27 PM
Post #9

D.I.C Head
**

Joined: 30 Sep, 2001
Posts: 114

yeah, the latest versions of PHP have register_globals turned off by default.
it was a security decision as far as I can guess.
Your supposed to use $_HTTP_LINK(var) or something like that
(don't have the exact syntax on the top of my head right now)
User is offlineProfile CardPM
+Quote Post

Quik
RE: Foxserv Has Issues.
7 Sep, 2002 - 04:15 PM
Post #10

D.I.C Lover
Group Icon

Joined: 6 Mar, 2001
Posts: 3,750



Thanked: 1 times
My Contributions
ok.. maybe a better response..


damn them developers
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/1/08 07:45PM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month