@# 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



Comments:

<0> from my above code
<1> hmm the if case is true one time
<1> i got a debug output in there now
<1> lol
<1> sory
<1> typpo in there
<1> danm
<0> aidan?
<2> what do you see?
<0> i'm asking how one could drop a db from the code i pasted above
<3> zon3d: why would you need to know how its done to your particular code, isn't the fact that it could be done enough? processing data is the most vital part of a programs functionality
<2> I know
<0> so what does %s mean? - from the link aidan gave me
<3> zon3d: %s is a reference to a string
<3> zon3d: example: http://www.governmentsecurity.org/articles/SQLInjectionModesofAttackDefenceandWhyItMatters.php
<0> ok



<4> zon3d, http://www.php.net/manual/en/security.database.sql-injection.php
<5> if (preg_match('[^-,/\d]',$_POST['date']) == 1) {
<6> I want to set a variable. I do it like "$var = $_GET['var'];" no my problem is, I just want to set it, if it IS set in the URL. if it's not, it should still contain the value that it did before
<5> that doesn't match when $_POST['date'] contains characters other than 0-9 / - or ,,
<5> any ideas why?
<7> hi all
<6> is it just realizable with a session? or can I do s.th. like if($_GET['var']) $var = $_GET['var']"?
<8> nk_: Isset
<7> i don't know what it meen $object1->bla =&$object2
<6> wobbles: ah! *trying*
<9> OT: Anyone here know a good domain name registrar?
<10> nk_: just set your variable in $_SESSION and make sure session_start(); is at the top of every page
<6> arpad: so just realizable with a session, yup
<11> Alystair: What do you mean by "domain name registar"?
<6> otherwise there's no chance to save the content, true
<9> Stormchaser: as in a place to transfer my domains to that doesn't charge me $24 a year
<5> thats not *that* bad a price
<9> godaddy/registerfly are out of the question
<5> i pay about i think for .net .com etc
<11> Alystair: That's called a "|host" not "domain name registar"
<9> Stormchaser: I'm not talking about web hosting I'm talking about domain name registration
<12> Alystair, ukreg
<5> Alystair, i use 123reg.co.uk >.< uk based
<13> hello,guys i got this error when i ran the .php4 file The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
<11> Alystair: that does about every host I can think of. Google.
<5> cheap as hell for .co.uk's etc
<13> i downloaded apache2 with php4
<9> all the review sites look like they were designed in frontpage and mspaint
<11> hosam: Simple: The file isn't there.
<14> maybe it is, check permissions
<13> Stormchaser: the file is /var/www
<14> uh?
<11> hosam: Does your apache actually look in /var/www?
<15> hello
<15> are static attributes php5+ only?
<15> (for cl***es, i mean)
<11> for cl***? yes.
<15> oic... thanks
<16> hey guys, when you use mail() by default it comes from apache@<HOSTNAME> on a Linux system. How can I change that? I know I can add headers to mail() so that it appears to be from anybody but I want to change that default apache@<HOSTNAME> value.. anybody know how i do this?
<17> Hi. how can I preg/ereg_replace something like "<font size=-5>asdaa</font>" only the html parts without using strip_tags (only for that specific match) - what would the regexp be ?
<11> vsus: Read php.net/mail... There is a sectionjh where it describes the From part...
<6> wobbles: sure with isset? if I use isset, it's never set :/
<13> Stormchaser: how can i know , it's in or not
<8> vsus: Read the mail docs again, particularly the additional headers and additional parameters arguments
<11> hosam: I don't believe you even *ASKED* that...
<13> Stormchaser: sorry i'm a newbie
<18> I hate my ISP.
<11> hosam: Have you ever configure apache before?
<6> hm. now it works
<16> stormchaser / wobbles - ok thanks ill read it again, obviously i missed something
<14> check the apache config file
<13> Stormchaser: i look in site-enabled
<11> hosam: #apache, please.
<8> nk_: If I understood your question correctly, you want to ***ign a $_GET value to a variable if GET is set, otherwise keep the original value? if(isset($_GET['var']{$var = $_GET['var']}
<18> Of course, my ISP resets my IP, so now I can't login to ssh. Heh. What a great start to a day. :P
<16> stormchaser / wobbles yeah i saw "sendmail_from string" on php.net/mail but it said that this was a windows directive so I ***umed that isnt it, this directive works on Linux also?
<11> vsus: don't rely on that, since it's php.ini option... Search for FRom: p***ed in headers...
<16> stormchaser: yeah i know about that, but if I dont set a from in the headers to mail() it defaults to apache@<HOTSNAME> I want to change that default
<19> hi



<19> my sintax error ".urlenconde($linha['escola']." ?
<18> contraventor: You're missing a ) there...
<11> vsus: You want it to change into *what*?
<19> biggie error again ".urlenconde($linha['escola'])."
<16> stormchaser: say for example monitoring@mydomain.com
<19> Fatal error: Call to undefined function urlenconde() in xxx
<18> contraventor: What's the error?
<18> I hate X-Chat...
<11> vsus: Use from:
<8> contraventor: urlencode
<20> contraventor: urlencode not urlenconde
<16> yeah as a header, but i was wondering if i could change that default
<18> bleh.
<19> awormus arghhhhhh !
<19> thanks !
<19> :P
<11> vsus: Sure you can... IF you cahnge the user who runs the server...
<19> work :P
<16> stormchaser: oh its taken from the user who runs the server, ok, now im on the same page as you
<20> contraventor: using an ide will prevent that stuff from happening... even just an editor that closes your brackets and highlights keywords will do
<18> hahah
<16> stormchaser: ok thanks for your help :)
<18> greatest cheat code ever.
<19> awormus i'm using dreamweaver 8
<20> contraventor: I'm sorry
<8> My sympathies also :-)
<19> awormus i love linux !
<19> slackware rulla
<19> hehehe
<19> awormus linux not php editor good ...
<20> contraventor: php eclipse
<8> yoda speak?
<20> I use vim
<8> quanta or nedit
<19> dreamweaver is has auto-completation good
<20> to properly debug your code, an IDE you must use
<18> Really? Cause uh, conventional debugging methods have always worked for me...
<19> awormus vim not fast production on php
<18> vim is very fast for production of PHP.
<19> dreamweaver is fast
<18> Heh.
<19> biggie php yes, not fast prodution on php+html ...
<18> Yes it is.
<19> :P
<18> It's fast for any language you develop... as long as you know the language.
<19> NVU not is good
<21> can someone please help me with why the following command isn't working?
<19> biggie it forgives my english is bad, ok ?
<19> :P
<22> is there a way to simplify two nested foreachs?
<21> the (.*) expands to get everything
<18> Damn, I really need to find a way to get my IP...
<21> $out = preg_replace('_^(.*)(<tr><td cl***=j><font size=-1>)(.*)(<br><font color=#008000)(.*)$_','\\1',$in);
<18> Azhi_Dahaka: Simplify how?
<23> kestas, make the expression ungreedy
<21> the first .* matches everything, I only want it to match up until <tr><td cl***=j>...
<22> like using only one expression
<21> bs: is that the U modifier?
<23> kestas, it might be ;)
<22> this freaking array is a 1 element array
<23> RTFM!
<23> :P
<18> Azhi_Dahaka: Depends on your loop, I'd ***ume.
<22> i have something like this:
<18> Er, don't paste to the channel please.
<22> foreach($vars as $var) and the next line is another foreach, like foreach($var as $item)
<18> So, you're looping through a multidimensional array...
<22> yep
<18> There's not really a way to simplify that much more. You have to loop through one dimension to get to the next dimension.
<21> bs: it's still not working :(
<24> Anyone who knows of a session cl*** written in PHP5?
<22> a useless multidimensional array, as the first dimension is only one
<21> bs: both the first and third parenteses represent the whole thing for some reason


Name:

Comments:

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






Return to #php
or
Go to some related logs:

RAM 64-Bit Ran Acces Mem
opsec screensaver
xine mds
#centos
gentoo x11 VIDEO_CARDS radeon x300
gentoo +keyboardlayout
db_load in fc5
debian h264
install slackware lvm2
error in I830waitlpring centos



Home  |  disclaimer  |  contact  |  submit quotes