@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27



Comments:

<0> anyone can help me i am getting a error notice:undefined variable: action
<1> is somebody using "template.inc" file from PHPLib in order to manage template ?
<2> why would you take away the ponies *sobs*
<3> hello
<4> With an array, I don't have to set a key, right?
<4> eg: array( "blah", "blah2", "blah3" );
<3> Does anyone here develop with sugarcrm?
<4> Is it possible to do a reg_exp search on an array?
<5> ...and that was windows ignoring the 'reboot later' button and rebooting anyway
<6> maybe you didnt click the button fast enough... OR missed next time it asked :) it only waits 20sec iirc
<0> hi pncha
<0> sorry | poncha
<0> can u help me pls
<7> !+enter
<8> Don't use the enter key as puncuation. Think in complete thoughts, then type.
<7> !+u



<8> Surely you mean 'you', not 'u'? The letter 'u' is not a personal pronoun. Talking like this in ##php may get you silenced. For details, /msg php-bot aolbonics
<0> am getting a error
<6> hyperspeed, ask your question ;)
<0> Undefined variable: action in C:\Inetpub\wwwroot\phpscript\crm\copper\install\index.php on line 2
<0> and the line 2 is :if ($action == "process")
<6> ok... this means you are trying to use a variable that is not defined yet
<0> ya understand it, but i googled it and come to know that problem is with register_golbal
<5> captain obvious to the rescue
<0> i put it on also..but no change on the error
<5> register_globals doesn't exist and shouldn't exist
<5> :/
<6> mazzanet, sometimes people dont try to read what error messages are saying :)
<0> poncha, really am very new in this, really
<6> hyperspeed, that (using register_globals) is a bad idea anyway.
<7> !+globals
<8> [GLOBALS] There is $GLOBALS --> http://php.net/manual/en/reserved.variables.php#reserved.variables.globals or you might have meant Register Globals --> http://php.net/manual/en/security.globals.php
<0> so then how to rectify this
<0> error
<6> if your action comes from query string (get request) , then it should be available from $_GET["action"]
<7> Read da manual
<6> i.e. $action = $_GET["action"]
<7> !+xss
<8> [XSS - Cross site scripting] NEVER accept user input without some type of filtering . See: http://en.wikipedia.org/wiki/XSS and http://www.technicalinfo.net/papers/CSS.html
<0> let me try, i remove this ... if ($action == "process") and put as u told
<7> !tell hyperspeed about u
<0> am a person of networks and security
<6> if you want to be even safer (what happens when one dont p*** it)... then you could do something like this: $action = isset($_GET["action"])?$_GET["action"]:null; if($action == "foo") { // do foo }
<9> Jymmm: Having fun, eh?
<6> eh... now that i recall magic_quotes_gpc stuff... who invented it in first place ?? :/
<10> tor user?
<10> what's that
<6> alien3d, what are you talking about /
<6> s/\//?/
<11> someone who was tired of seeing newbie code get exploited, and sometimes just "not work" :)
<10> If you are a tor user, ...
<10> anybody had tought when we make query we post some empty row
<10> is there a function which can eliminated empty data and post only posted data when query?
<9> alien3d: You mean, INSERT statement?
<6> define "posted data" , define "query"
<6> define "empty row" :)
<10> maybe it update nor insert
<10> like this
<10> is sql=insert("a","b") values($_GET['value']=have value,$_GET['value']=non);
<12> Hi
<12> What I did wrong here: http://rafb.net/paste/results/UxiweY66.html it calls this file: http://rafb.net/paste/results/7l81Lw61.html | but I dont works :(
<10> when query it only insert a only automaticaly no need to insert row a and b query together
<9> alien3d: Do you really need to ask such question?
<10> you dont't understand
<10> the idea
<12> Anyone? :)
<9> alien3d: You wrote "is there a function which can eliminated empty data and post only posted data when query?". I understand it and it's very silly to ask such question.
<10> like you have 20 input data but only 3 are input insert .It's like you make the query to mysql shorter
<12> ? :)
<0> $action = isset($_GET["action"])?$_GET["action"]:null; if($action == "process")
<0> is getting me error again of line 47
<0> and line 47 is nothing but a : }
<6> what error ?
<11> if php says the error is on line 47, the error can be anywhere
<0> Parse error: parse error, unexpected T_ELSE in C:\Inetpub\wwwroot\phpscript\crm\copper\install\index.php on line 47
<11> if you can't find parse errors you shouldn't be coding
<11> although it gets tricky sometimes... :)



<6> hyperspeed, check before that lines that every end of statement has ;
<0> i know , as i told i dont know a **** of it, but need to do it any how
<0> thats y am here for help
<13> Is there any difference between if() .. if () .. if() statements and an if() .. elseif() .. elseif() .. .. ?
<0> okay let me check
<14> :)
<11> babo: no
<13> Oh wait, - the second one executes only once right ?
<6> babo, sure! elseif() are only checked if previous expression was not true...
<11> although who knows if i know what you're asking, doubtful
<14> how can I render an included page like I can in nitro/ruby, asp.net, or jsp? :)
<9> babo: Yes.
<0> this is the line without ; - for ($i=0; $i < $array_count; $i++)
<11> tsume: define what you mean by render
<14> philip: well heres an example, but its nitro/ruby..
<6> hyperspeed, no, that line is ok...
<0> ok
<14> <body><render 'header_page.rnx'>blah blah blah</body>
<0> so the remaining line is only the first without ; is
<0> $action = isset($_GET["action"])?$_GET["action"]:null; if($action == "process")
<14> I've been using other things so long.. php is driving me nuts :/
<14> is the kit from zend any good?
<11> consider smarty.php.net
<0> should i need to put (;) on $action = isset.....
<11> hyperspeed: there already is one
<0> ok
<6> there is ";" there after null ... thats the end of statement
<6> can you post your code somewhere on pastebin?
<14> philip: I thought php had an include page in rendering though?
<11> php.net/include
<14> philip: oh damn it.. pebkac
<14> philip: I am in a non-web programmer state of mind
<0> ya i can where to post >>> poncha
<14> philip: when I think include, I think code, not page.
<6> hyperspeed, http://hashphp.org/pastebin.php
<0> ok
<11> include parses for php, other functions are more efficient for outputting text, such as readfile()
<0> ya posted the whole code
<14> philip: oh really?
<14> philip: why is that?
<15> How do I make a countdown function?
<11> parsing for php takes time, some at least
<6> hyperspeed, if($action == "process") { // do foo }
<11> usually not something we worry about though :)
<6> hyperspeed, ther closing } is part of comment here
<6> hyperspeed, remove line 3 and get back line 6 (remove comment) :)
<16> http://lanceslife.com/graffiti/engine.php
<16> it worksSSS!!!!!!
<16> thanks for the help guys :-)
<6> sellout4him, that is supposed to be some sort of new generation bulltin board ? :))))
<6> hehe
<16> well its going to be my ultimate guestbook
<16> a graffiti guestbook
<16> he he he
<16> been working on it all day
<16> and bugging you guys in here.
<0> okay that works
<11> the most ultimate graffiti guestbook of all time?!?!
<16> why of course
<0> great ...thank you a lot poncha....now i will go on for installation
<11> nice :)
<16> hehe
<6> good luck hyperspeed ;)
<16> <adds the guys in #php as credits
<11> my the force be with you both
<6> hehe
<11> heh
<16> now to go grab about 200 more fonts... and set a lot of vars
<16> <evil laugh>
<0> thanks >> poncha
<11> yes, when you get a chance, please pastebin 200 lines of font variable definitions... :)
<15> How would i do so when soemone for example registers it saves the time and then it adds 3 months to the account but then if the 3 months has past blablabla happens?
<6> sellout4him, better read fntdir dynamically (imho) :)


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

enygmapantyhose
java wine ie6 ubuntu
#web
#web
emerge libfaad
enable sunjave
cpufreqd kacpid
mailman postfix user unknown in virtual alias table
#perl
nvidia ubuntu wrong monitor



Home  |  disclaimer  |  contact  |  submit quotes