AKB Forums

Go Back   AKB Forums > Technical sections > Languages, Compilers and Interpreters
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Languages, Compilers and Interpreters C,C++,C#,.NET,Java,PHP,Perl,SQL and more

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old Nov 1, 2005, 16:40   #1
йес эм эли...
 
Mesrop's Avatar
 
Join Date: Feb 2005
Location: near the computer
Posts: 3,202
Rep Power: 4
Reputation: 89
Send a message via ICQ to Mesrop Send a message via AIM to Mesrop Send a message via MSN to Mesrop Send a message via Yahoo to Mesrop Send a message via Skype™ to Mesrop
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
Mesrop is offline   Reply With Quote Quote selected
Old Nov 2, 2005, 04:33   #2
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: Sep 2002
Location: Yerevan
Posts: 885
Rep Power: 7
Reputation: 14
Send a message via ICQ to Aram Ghazanchyan Send a message via MSN to 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.
Aram Ghazanchyan is offline   Reply With Quote Quote selected
Old Nov 2, 2005, 04:39   #3
Борец с бояном
 
Sauron's Avatar
 
Join Date: Jun 2003
Location: Yerevan
Posts: 21,440
Rep Power: 10
Reputation: 46
մեկել Apache-ում փոխե՞լ ես php-իդ տեղը
Sauron is offline   Reply With Quote Quote selected
Old Nov 2, 2005, 05:25   #4
Главный Лысый
 
Pascal's Avatar
 
Join Date: Oct 2001
Location: AM
Posts: 2,829
Rep Power: 7
Reputation: 38
Send a message via ICQ to 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.

A voobshe - http://am.php.net/register_globals
__________________
Ruben Muradyan
Technical Director
PanARMENIAN Network: Armenian News

----------------------------------------------------
Лысина - это полянка, вытоптанная мыслями.
----------------------------------------------------
Pascal is offline   Reply With Quote Quote selected
Old Nov 2, 2005, 05:27   #5
Борец с бояном
 
Sauron's Avatar
 
Join Date: Jun 2003
Location: Yerevan
Posts: 21,440
Rep Power: 10
Reputation: 46
то есть у него все работает
он тока не хочет пользоваться массивами $_POST и $_GET
Sauron is offline   Reply With Quote Quote selected
Old Nov 2, 2005, 05:46   #6
Главный Лысый
 
Pascal's Avatar
 
Join Date: Oct 2001
Location: AM
Posts: 2,829
Rep Power: 7
Reputation: 38
Send a message via ICQ to Pascal
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.
__________________
Ruben Muradyan
Technical Director
PanARMENIAN Network: Armenian News

----------------------------------------------------
Лысина - это полянка, вытоптанная мыслями.
----------------------------------------------------
Pascal is offline   Reply With Quote Quote selected
Old Nov 2, 2005, 05:52   #7
Борец с бояном
 
Sauron's Avatar
 
Join Date: Jun 2003
Location: Yerevan
Posts: 21,440
Rep Power: 10
Reputation: 46
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.
по всей видимости да
Sauron is offline   Reply With Quote Quote selected
Old Nov 2, 2005, 08:33   #8
йес эм эли...
 
Mesrop's Avatar
 
Join Date: Feb 2005
Location: near the computer
Posts: 3,202
Rep Power: 4
Reputation: 89
Send a message via ICQ to Mesrop Send a message via AIM to Mesrop Send a message via MSN to Mesrop Send a message via Yahoo to Mesrop Send a message via Skype™ to Mesrop
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 : Nov 2, 2005 at 08:49.
Mesrop is offline   Reply With Quote Quote selected
Old Nov 2, 2005, 08:40   #9
йес эм эли...
 
Mesrop's Avatar
 
Join Date: Feb 2005
Location: near the computer
Posts: 3,202
Rep Power: 4
Reputation: 89
Send a message via ICQ to Mesrop Send a message via AIM to Mesrop Send a message via MSN to Mesrop Send a message via Yahoo to Mesrop Send a message via Skype™ to Mesrop
Ах да....
register_globals = on работает
спасибо всем!
Mesrop is offline   Reply With Quote Quote selected
Old Nov 2, 2005, 08:47   #10
йес эм эли...
 
Mesrop's Avatar
 
Join Date: Feb 2005
Location: near the computer
Posts: 3,202
Rep Power: 4
Reputation: 89
Send a message via ICQ to Mesrop Send a message via AIM to Mesrop Send a message via MSN to Mesrop Send a message via Yahoo to Mesrop Send a message via Skype™ to Mesrop
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??
Mesrop is offline   Reply With Quote Quote selected
Old Nov 2, 2005, 09:20   #11
Главный Лысый
 
Pascal's Avatar
 
Join Date: Oct 2001
Location: AM
Posts: 2,829
Rep Power: 7
Reputation: 38
Send a message via ICQ to Pascal
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.....
__________________
Ruben Muradyan
Technical Director
PanARMENIAN Network: Armenian News

----------------------------------------------------
Лысина - это полянка, вытоптанная мыслями.
----------------------------------------------------
Pascal is offline   Reply With Quote Quote selected
Old Nov 2, 2005, 10:36   #12
йес эм эли...
 
Mesrop's Avatar
 
Join Date: Feb 2005
Location: near the computer
Posts: 3,202
Rep Power: 4
Reputation: 89
Send a message via ICQ to Mesrop Send a message via AIM to Mesrop Send a message via MSN to Mesrop Send a message via Yahoo to Mesrop Send a message via Skype™ to 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...
Mesrop is offline   Reply With Quote Quote selected
Old Nov 2, 2005, 10:36   #13
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: Sep 2002
Location: Yerevan
Posts: 885
Rep Power: 7
Reputation: 14
Send a message via ICQ to Aram Ghazanchyan Send a message via MSN to Aram Ghazanchyan
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
Aram Ghazanchyan is offline   Reply With Quote Quote selected
Old Nov 3, 2005, 13:30   #14
Кандидат
 
Join Date: Feb 2002
Location: Am
Posts: 1,035
Rep Power: 7
Reputation: 30
Send a message via Skype™ to Arik
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
__________________
talent agency casting.am
Center of Internet Projects Support http://www.online.am
Armenian newspapers digest http://www.armpress.com
_ _ _ _ _ _ _
Bud'te proshe i narod k vam potyanetca
Arik is offline   Reply With Quote Quote selected
Old Nov 4, 2005, 12:03   #15
Stalker
 
Timewind's Avatar
 
Join Date: Sep 2002
Location: Припять
Posts: 840
Rep Power: 7
Reputation: 10
Send a message via ICQ to Timewind Send a message via Skype™ to Timewind
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.
__________________
... for long you live and high you fly ...
Timewind is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Problem Aram Ghazanchyan Web Development 8 Jan 10, 2005 14:01
PHP against ASP acid Web Development 1 Aug 6, 2004 21:30
PHP: Header and Cookies problem Aram Ghazanchyan Web Development 9 Jun 13, 2003 06:48
php and mySQL search problem!!! Timewind Web Development 1 Sep 7, 2002 01:22
PHP remote vulnerabilities VX Software Security 0 Mar 4, 2002 19:20


All times are GMT. The time now is 08:57.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link