Vault9 Modding Vault9 Graphics Vault9 Code Vault9 Net Vault9 OS Vault9 Gaming Vault9 ChillZone Vault9 Tech Vault9 Archives       Vault9 Global9       Vault9 Fusion     Vault9 Blog     Vault9 Network          
 

Please Note!

This is a read-only board, no new topics or registrations are allowed. The OS Vault has moved to http://forums.vault9.net - Be sure to find more information there!


 
Reply to this topicStart new topic
> Php.ini Problems, ??
post Nov 15 2003, 09:52 AM
Post #1


Yay! Im a noob!
Group Icon

Group: Administration
Posts: 583
Joined: 4-January 03
From: Sandton, Johannesburg
Member No.: 827

Sex: Male



Hi,

I am having problems parsing php variables.

say now i goto http://www.testdomain.com/index.php?news=TODAY its not carrying the news=TODAY variable to the next page.

I have gone through my php.ini file and i cant find any problems. Now im fairly sure that it is my php.ini file thats causing the problems. Attached is my php.ini, if someone could find a fault i would be most gratefull.

Ill post if i find anything.

Ian


Attached File(s)
Attached File  phpold.ini ( 39.29k ) Number of downloads: 2
User is offlineProfile CardPM
+Quote PostGo to the top of the page
post Nov 15 2003, 09:52 AM
Post #


Member


Group: Administration

Joined: Today, 05:10 AM





Quote PostGo to the top of the page
post Nov 15 2003, 10:07 AM
Post #2


Kief Piet
Group Icon

Group: Regular Member
Posts: 869
Joined: 28-April 02
From: localhost
Member No.: 163

Sex: Male



Ian....

I went through ur .ini

Try putting safe mode on

If that works I'm out of idea, since it look a for away!

tongue.gif

-Hope that helps


--------------------
./ kiefpiet v2 /
./ kiefpiet wap /
<a href="http://www.kiefpiet.za.org"><img src="http://feeds.feedburner.com/Kiefpiet.gif" height="67" width="200" style="border:0" alt="kiefpiet"/></a>
User is offlineProfile CardPM
+Quote PostGo to the top of the page
post Nov 15 2003, 10:08 AM
Post #3


bovine satisfaction
Group Icon

Group: Administration
Posts: 871
Joined: 27-April 02
From: In teh pastures
Member No.: 162

Sex: Male



hay creation,

if this is the php.ini from the old planetmars server, i found a way to get around that

call it like

CODE


<?php

if(isset($_GET["news"])){
 
   include($_GET["news"])

};

?>


i got the same prob when trying to get the fred site running on your server

i attatched mah php.ini too incase

This post has been edited by ::DocterMoo::: Nov 15 2003, 10:10 AM


Attached File(s)
Attached File  php.ini ( 28.58k ) Number of downloads: 1


--------------------
User is offlineProfile CardPM
+Quote PostGo to the top of the page
post Nov 15 2003, 10:13 AM
Post #4


Kief Piet
Group Icon

Group: Regular Member
Posts: 869
Joined: 28-April 02
From: localhost
Member No.: 163

Sex: Male



Do the php.ini work universally for *nix and win32 or are there different config for them?
User is offlineProfile CardPM
+Quote PostGo to the top of the page
post Nov 15 2003, 10:57 AM
Post #5


So da ne
Group Icon

Group: Administration
Posts: 540
Joined: 21-April 02
From: Centurion, Pretoria, SA
Member No.: 30

Sex: Male



Having "register_globals" off does funny things. It's a security risk leaving it on and it promotes bad coding practice, so of couse leaving it off (as it is by default with the newest PHP versions) is the safest bet.

Here's a work-around I've come up with so far that works. Anyone else is more than welcome to please come up with either more efficient code or a better method. I'm still very much a PHP newbie.

Anyway, here's the code I was talking about:
CODE

// useful if register_globals is off
if (!empty($_GET)) {
 extract($_GET);
} else if (!empty($HTTP_GET_VARS)) {
 extract($HTTP_GET_VARS);
}
if (!empty($_POST)) {
 extract($_POST);
} else if (!empty($HTTP_POST_VARS)) {
 extract($HTTP_POST_VARS);
}

Stick it right at the top of your page. CrEaTi0n, if you're still having problems though, don't hesitate to send me the page(s) you're having problems with and I'll take a look and see if I can't fix them.


--------------------
User is offlineProfile CardPM
+Quote PostGo to the top of the page
post Nov 15 2003, 11:02 AM
Post #6


So da ne
Group Icon

Group: Administration
Posts: 540
Joined: 21-April 02
From: Centurion, Pretoria, SA
Member No.: 30

Sex: Male



QUOTE
Do the php.ini work universally for *nix and win32 or are there different config for them?

As far as I know, mostly just directory structure changes are required here and there for compatibility. Sometimes it depends of course on what you use as your webserver as well for certain plugins and extentions to work.
User is offlineProfile CardPM
+Quote PostGo to the top of the page
post Nov 15 2003, 12:19 PM
Post #7


Yay! Im a noob!
Group Icon

Group: Administration
Posts: 583
Joined: 4-January 03
From: Sandton, Johannesburg
Member No.: 827

Sex: Male



Hi,

Thanks i came right with the Register Globals thing. Works 100% now. I was sure the code was right, just had problems with that.

Ciao.

Ian
User is offlineProfile CardPM
+Quote PostGo to the top of the page

Reply to this topicStart new topic

Collapse

> Similar Topics

Topic Title Replies Topic Starter Views Last Action
Gentoo News->2008.0-r1 may help if you've had LiveCD problems 0 Vault9 482 Jul 8 2008, 12:37 AM
Last post by: Vault9
WINXP IRDA Problems 5 lord_moron 3,059 Oct 8 2006, 02:38 AM
Last post by: DieHard
WinXP Problems 1 PdT 1,662 Nov 11 2005, 06:12 AM
Last post by: PdT
log in problems 3 banku 1,037 Jul 3 2005, 09:47 AM
Last post by: noosh
Abit to replace boards with capacitor problems 0 MeTsU 392 Jun 27 2005, 01:39 AM
Last post by: MeTsU


 



- Lo-Fi Version Time is now: 19th March 2010 - 05:10 AM
Privacy Policy
South Africa's Top Sites Kinetiq