Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Languages, Compilers, Interpreters
Register

Reply
 
LinkBack Thread Tools
Old 01.11.2005, 17:40   #1
полюбому йес эм...
 
Mesrop's Avatar
 
Join Date: 02 2005
Location: near the computer
Age: 26
Posts: 3,243
Downloads: 3
Uploads: 0
Reputation: 129 | 3
Exclamation PHP 4.4.0 Problem...

Windows-is vra Apache -i het PHP 3.0 -er qcac, et DIR-@ jnjeci dra tex@ qceci PHP 4.4.0 hima Post & Get method-ner@ chen ashxatum...
et versyana vat@? te nastroykeqica
Reply With Quote
Old 02.11.2005, 05:33   #2
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 36
Posts: 896
Downloads: 1
Uploads: 0
Reputation: 9 | 0
Default

Amen versiai het ira php.ini file-na galis, chishtn asac henc et versianer@ chem porcarkel, bayc de im mot nman problem kar aveli cacr versionneri upgrade-i jamanak. Ira php.ini file-@ update ara, petq e vor normal lini.
Reply With Quote
Old 02.11.2005, 05:39   #3
Борец с бояном
 
Sauron's Avatar
 
Join Date: 06 2003
Location: Yerevan
Age: 38
Posts: 21,482
Downloads: 1
Uploads: 0
Reputation: 65 | 7
Default

մեկել Apache-ում փոխե՞լ ես php-իդ տեղը
Reply With Quote
Old 02.11.2005, 06:25   #4
Главный Лысый
 
Pascal's Avatar
 
Join Date: 10 2001
Location: AM
Age: 39
Posts: 2,829
Downloads: 4
Uploads: 0
Reputation: 28 | 4
Default

Na samom -to dele v PHP >4.1 v ini file-e register_globals po defaultu vystavleny v OFF.

Chtoby obratit'sya k postnutym peremennym obrashaysya k massivu _POST[], i sootvetstvenno k massivu _GET[], esli nuzhny peremennye peredannye cherez GET.

A voobshe - http://am.php.net/register_globals
Reply With Quote
Old 02.11.2005, 06:27   #5
Борец с бояном
 
Sauron's Avatar
 
Join Date: 06 2003
Location: Yerevan
Age: 38
Posts: 21,482
Downloads: 1
Uploads: 0
Reputation: 65 | 7
Default

то есть у него все работает
он тока не хочет пользоваться массивами $_POST и $_GET
Reply With Quote
Old 02.11.2005, 06:46   #6
Главный Лысый
 
Pascal's Avatar
 
Join Date: 10 2001
Location: AM
Age: 39
Posts: 2,829
Downloads: 4
Uploads: 0
Reputation: 28 | 4
Default

Quote:
Originally Posted by Sauron
то есть у него все работает
он тока не хочет пользоваться массивами $_POST и $_GET
Nu ya tochno ne znayu.
Chelovek pozhalovalsya na to, chto GET i POST ne pashut - ya emu posovetoval poprobovat' v napravlenii superglobals array-ev....
No po idee reshenie imenno zdes' IMHO.
Reply With Quote
Old 02.11.2005, 06:52   #7
Борец с бояном
 
Sauron's Avatar
 
Join Date: 06 2003
Location: Yerevan
Age: 38
Posts: 21,482
Downloads: 1
Uploads: 0
Reputation: 65 | 7
Default

Quote:
Originally Posted by Pascal
Nu ya tochno ne znayu.
Chelovek pozhalovalsya na to, chto GET i POST ne pashut - ya emu posovetoval poprobovat' v napravlenii superglobals array-ev....
No po idee reshenie imenno zdes' IMHO.
по всей видимости да
Reply With Quote
Old 02.11.2005, 09:33   #8
полюбому йес эм...
 
Mesrop's Avatar
 
Join Date: 02 2005
Location: near the computer
Age: 26
Posts: 3,243
Downloads: 3
Uploads: 0
Reputation: 129 | 3
Default

Quote:
Originally Posted by Sauron
մեկել Apache-ում փոխե՞լ ես php-իդ տեղը
nor php-i papken rename em arel hin php-i papki anunov... (PHP4)

Quote:
Originally Posted by Aram Ghazanchyan
Amen versiai het ira php.ini file-na galis, chishtn asac henc et versianer@ chem porcarkel, bayc de im mot nman problem kar aveli cacr versionneri upgrade-i jamanak. Ira php.ini file-@ update ara, petq e vor normal lini.
Quote:
Originally Posted by Pascal
Na samom -to dele v PHP >4.1 v ini file-e register_globals po defaultu vystavleny v OFF.

Chtoby obratit'sya k postnutym peremennym obrashaysya k massivu _POST[], i sootvetstvenno k massivu _GET[], esli nuzhny peremennye peredannye cherez GET.
ha.. sra hetel ka PHP.INI ... isk konkret inchna petq update anel??
Quote:
Originally Posted by Sauron
то есть у него все работает
он тока не хочет пользоваться массивами $_POST и $_GET
наоборот... хочу пользоваться, но не работают...

Last edited by Mesrop; 02.11.2005 at 09:49.
Reply With Quote
Old 02.11.2005, 09:40   #9
полюбому йес эм...
 
Mesrop's Avatar
 
Join Date: 02 2005
Location: near the computer
Age: 26
Posts: 3,243
Downloads: 3
Uploads: 0
Reputation: 129 | 3
Default

Ах да....
register_globals = on работает
спасибо всем!
Reply With Quote
Old 02.11.2005, 09:47   #10
полюбому йес эм...
 
Mesrop's Avatar
 
Join Date: 02 2005
Location: near the computer
Age: 26
Posts: 3,243
Downloads: 3
Uploads: 0
Reputation: 129 | 3
Default

himael es kodi mej
PHP Code:
 <?
    
if(file_exists("files/".$page.".php"))
    include (
"files/".$page.".php");
    else include (
"files/home.php"); ?>
if(file_exists("files/".$page.".php")) -- es toxi hamar asuma
Quote:
Notice: Undefined variable: page in D:\server\www\index.php on line 105
karoxa sra hamarela petq php.ini -i mejic ban phoxel??
Reply With Quote
Old 02.11.2005, 10:20   #11
Главный Лысый
 
Pascal's Avatar
 
Join Date: 10 2001
Location: AM
Age: 39
Posts: 2,829
Downloads: 4
Uploads: 0
Reputation: 28 | 4
Default

Inq@ asuma, vor et popokhakan@ chka.
Gti en tegh@ vorteghits du et $page-@ stranum es - u etteghits sksi haskanal.....

Batsi dranits tes inch nastroykeq en qo mot php.ini-um.
Vontsvor te inq@ default@ chi.....
Reply With Quote
Old 02.11.2005, 11:36   #12
полюбому йес эм...
 
Mesrop's Avatar
 
Join Date: 02 2005
Location: near the computer
Age: 26
Posts: 3,243
Downloads: 3
Uploads: 0
Reputation: 129 | 3
Default

index.php?page=works - GET-ov iran em talis, vor baci files/works.php -n.
ev ete chgtni, tox baci files/home.php fail@..
else include ("files/home.php");
inq@ ham et HOME-n include a anum index.php -i depqum ($page-n chka), bayc hamel et errorna talis...
Reply With Quote
Old 02.11.2005, 11:36   #13
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 36
Posts: 896
Downloads: 1
Uploads: 0
Reputation: 9 | 0
Default

Karch asac vor voch mi ban dzer chtas, grum es

foreach($_REQUEST as $k=>$v) {
$$k = $v;
}

u arden hangist dimum es popoxakannerin aranc _GET u _POST
Reply With Quote
Old 03.11.2005, 14:30   #14
Магистр
 
Join Date: 02 2002
Location: Am
Posts: 952
Downloads: 0
Uploads: 0
Reputation: 26 | 4
Default

Quote:
Originally Posted by mesrop
index.php?page=works - GET-ov iran em talis, vor baci files/works.php -n.
ev ete chgtni, tox baci files/home.php fail@..
else include ("files/home.php");
inq@ ham et HOME-n include a anum index.php -i depqum ($page-n chka), bayc hamel et errorna talis...
Du porcumes pryamoj dimes popoxakanit..
bajc ete global.. = off
et jamanak pryamoj 4es kara stanas.. petka dimes _GET (kam _POST) masivov
Reply With Quote
Old 04.11.2005, 13:03   #15
Stalker
 
Timewind's Avatar
 
Join Date: 09 2002
Location: Припять
Age: 83
Posts: 853
Downloads: 0
Uploads: 0
Reputation: 12 | 3
Default

You should do your best to write your scripts so that they do not require register_globals to be on. Using form variables as globals can easily lead to possible security problems, if the code is not very well thought of.
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 16:39.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.