IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1982.48 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-07-25
[10:39]<zjd2yn>That right?'
[10:39]<vmmwno9q>cythrawll: why would someone want to use slashes for?
[10:39]<rdvxzrwff>that compares $passwd to a space
[10:40]<rdvxzrwff>to assign you use =
[10:40]<vmmwno9q>ohh yea its html_special_char thats eccapes html
[10:40]<rdvxzrwff>= is assign, == is compare, === is compare with type enforcement
[10:41]<rdvxzrwff>tdd19842, slashes escapes strings in the eyes of SQL, because people can trick SQL to doing things you don't want, it's called SQL Injection
[10:41]<rdvxzrwff>read up on it in the php manual, it'll scare yah
[10:41]<jdddd>tdd19842: You REALLY need to RTFM.
[10:41]<jdddd>tdd19842 That was your warning.
[10:41]<zjd2yn>I still have the extra click issue,.'
[10:41]<m2n>How can I echo the variable $foo="Text?radomchar=someotherrandomchar"; whithout the ? and the character that follows after that?
[10:43]<jdddd>tdd19842: And you've been told this over the last few weeks. There will be no more warnings for you.
[10:43]<vmmwno9q>Jymm: okay thank you
[10:44]<rdvxzrwff>dbe, use string manipulation
[10:45]<m2n>cythrawll, How? php.net/?
[10:45]<rdvxzrwff>you betcha, look at str functions
[10:46]<rdvxzrwff>dbe, the http://php.net/strings
[10:46]<rdvxzrwff>i'd look at substr and strpos if i was you
[10:55]<zr2nfmr2fn>thanks for the info guys
[10:56]<vmmwno9q>dangit man do you guys know of a program that will decrypt the passwords under IE i got it saved, but can't remember what it is I need it for something else
[10:56]<vmmwno9q>actually its stored in the db, but its encrypted
[10:56]<jdddd>tdd19842 this is ##php, not #google
[10:58]<tml>tdd19842: If you can get to the DB, you should be able to set the password to a new (known) value
[11:03]<pzynsv-jp-psy>lo TML
[11:03]<pzynsv-jp-psy>Jymmm *nod*
[11:04]<tml>Jymmm: Check that. It gets cut off.
[11:04]<jdddd>damn
[11:04]<tml>"banned without" here.
[11:05]<jdddd>k
[11:06]<tml>I need to poke the bot anyways. He's half-split.
[11:07]<djqfuw>I want to insert a string (YES) in HTML table if true, another string(NO) if false, i use the following line
[11:07]<djqfuw>print "<td>".$row['validate'] == 0 ? "Yes" : "No"."</td>";
[11:07]<tml>Jymmm: "banned without wa"
[11:07]<djqfuw>the line don't put the information in html table
[11:07]<jdddd>TML there we go
[11:08]<tml>works for me
[11:08]<jdddd>I need to work on an ending still =)
[11:09]<tml>yo2lux: It's an operator precedence problem.
[11:10]<djqfuw>Please see my code at http://hashphp.org/pastebin?pid=7705 . I want to put a Yes or No in validate row but don't work
[11:10]<djqfuw>any idea why?
[11:10]<tml>yo2lux: echo "<td>".($row['validate'] == 0 ? "Yes" : "No")."</td>";
[11:10]<djqfuw>thanks !
[11:10]<tml>yo2lux: Check the operator precedence table.
[11:10]<tml>yo2lux: php.net/language.operators
[11:11]<djqfuw>thanks TML
[11:12]<tml>yo2lux: Make sense?
[11:16]<mrg_l>is there anyway to set variables like $_SERVER['HTTP_HOST'] when running a php script in cli mode?
[11:17]<txzzzzdjdzvzzzzz>dan_p: to what?
[11:17]<rnyfr>PSPELL couldn't open the dictionary. reason: I'm sorry I can't find any suitable word lists for the language-tag "en" <--- anyone ever seen that?
[11:18]<mrg_l>to the hostname I would like to emulate
[11:18]<advx|sfnnl>dan_p why would you try to set a server variable when in cli mode, no server is envolved...
[11:18]<dsv>anyone tried Jaws?
[11:19]<advx|sfnnl>i've tried jaws before, but that was a year or so ago
[11:19]<nrvym>If i wanna select lets saw row 4 in a table in mysql how would i do that?. Select row.4 from <table> ?
[11:19]<mrg_l>cyth|sleep: because when in the server is used it is used to include some site-specific info
[11:20]<advx|sfnnl>so dan_p why are you running it in cli?
[11:20]<dsv>cyth|sleep, apparently it went through a complete rewrite to MVC & templating, and looks super sexy now
[11:20]<advx|sfnnl>Navid, you would have to set that row with some sort of id, and select it that way
[11:20]<nrvym>isnt there any other way?
[11:21]<nrvym>cause the ID i have is not in order
[11:21]<nrvym>its like 1,2,3,7,8,9
[11:21]<advx|sfnnl>then order them
[11:21]<advx|sfnnl>of course, that's how they work
[11:21]<nrvym>that would ruin everything according to a coder from mysql room.
[11:21]<advx|sfnnl>exactly
[11:22]<mrg_l>cyth|sleep: basically I would like to run the moodle cron: http://docs.moodle.org/en/Cron in CLI mode, rather than wasting apache resources on it
[11:22]<nrvym>then why do you want me to order them?
[11:22]<nrvym>if thats gonna mess up stuff
[11:22]<mrg_l>but I have site-specific configs using the hostname of a moodle site
[11:22]<advx|sfnnl>no it won't, not if you know how to use Order By ,and limit
[11:22]<advx|sfnnl>order by the id column and then use limit to return the 4th set
[11:23]<advx|sfnnl>in your case it would return id 7
[11:24]<nrvym>someting like
[11:24]<nrvym>SELECT * FROM `gc_chrs` ORDER BY `ID` ASC LIMIT 0 , 30 ?
[11:24]<gjllj>people, i get an error "Call to undefined function dba_handlers()"
[11:25]<gjllj>the script is <?php print_r(dba_handlers()); ?>
[11:25]<gjllj>what's the problem?
[11:25]<advx|sfnnl>Navid yeah
[11:25]<gjllj>the module php_dba.dll is enabled in php.ini
[11:25]<nrvym>except change limit to 4, 30?
[11:25]<advx|sfnnl>well if you want to start at the 4th record it would be 3,30
[11:25]<gjllj>and the script works fine when calling it from the command line.
[11:26]<nrvym>I see.
[11:26]<advx|sfnnl>3,30 would return rows 4 to 33
[11:26]<nrvym>I understand now,
[11:27]<nrvym>So I set the order first, then even if the ID is like 5th, it would be 2nd in the list if none else exists before right? then i can just select that one.
[11:27]<advx|sfnnl>my bad 34
[11:27]<advx|sfnnl>exaclty
[11:27]<nrvym>Thank you.
[11:29]<nrvym>Wait, if i have them ordered, How do i select the 4th row again?
[11:29]<mrg_l>ah, worked it out myself, just export the environmental variable
[11:29]<advx|sfnnl>dan_p I understand what your trying to do, but php cli can not use $_GET $_POST or $_SERVER variables
[11:30]<jdddd>TML I think I got it that time, let me know what you think.
[11:30]<nrvym>cause i have a script that will make a random number. I want the php code to select the random number row from a mysql table.
[11:30]<advx|sfnnl>Navid, trye LIMIT 3,1 read teh mysql docs, this is more of a mysql question
[11:31]<mrg_l>cyth|sleep: it seem to do if I just do export HTTP_HOST="my.hostname";php /my/script.php
[11:31]<mrg_l>thanks anyway







