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-27
Pages: < Prev
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Next >
[05:21]<jdddd>itrebal hell if I know.
[05:21]<yvzn2rf>hehe not any more :D
[05:23]<byre>Mmm.. I need unrar
[05:23]<jdddd>BigE Z7
[05:24]<byre>Jymmm: Eh?
[05:25]<jdddd>BigE http://www.7-zip.org/
[05:25]<byre>Ah, well, since it's a rar file, I think it's best that I use unrar to extract it for now.
[05:26]<jdddd>BigE Z7 does unrar
[05:26]<byre>Especially since I'm not on Windows either...
[05:26]<sajvnly>BigE i dont think array_multisort can do what i need unless im reading it wrong
[05:26]<byre>Ah, there's the source.
[05:26]<jdddd>BigE it does linuz too
[05:26]<byre>Oh well.
[05:33]<sajvnly>can someone help me with array_multisort? http://hashphp.org/pastebin.php?pid=7679 is my array format, i need to sort $array['host'][*]['ip'] numaricly but i can seam to get the SORT_STRING array working right
[05:35]<duzznz>is it \r\n or \n\r?
[05:35]<sajvnly> \r\n i beleve
[05:39]<clxw00>hi
[05:39]<clxw00>ne1 can translate the following re? /\\(?[0-9]{3}\\)
[05:44]<byre>!tell kph100 about aolbonics
[05:44]<byre>kph100: Translate how? What it matches?
[05:44]<suv9w9>question: in a mvc framework, who's in charge creating.. forms
[05:45]<clxw00>transalte --> what does it mean?
[05:45]<rjfjggfprgyr>suv4x4, I would say that's the view part
[05:45]<gavaasx>suv4x4: uh, how do you mean 'creating'?
[05:46]<gavaasx>suv4x4: the business logic dictates the content of the forms.. but the view layer actually 'creates' them
[05:46]<suv9w9>notjosh, that's the thin part: first is presentation markup which is obvious: the view.. but what about the number and type of components and their name and value? what about form's target
[05:46]<byre>kph100: It's a regex... and it's looking for a ( followed by three numbers followed by a ) ... even though that doesn't look right.
[05:46]<sajvnly>kph100, im not entierly sure what the outer part is but the innder part is any 3 diget number
[05:47]<byre>suv4x4: That would be the view part... because a form is something you view.
[05:47]<suv9w9>notjosh, so how does that happen in practise, say an array of form components such as: {type:"textBox",name: ..., value ....}
[05:47]<sajvnly>BigE, any clue to my array_multisort question?
[05:47]<gnzj>is there a big security concern with leaving a directory 777 so that php can do file uploads? Is it better to make a directory that belongs to apache/nobody/whatever the php user is?
[05:47]<suv9w9>BigE, you view it, but when you post it, that data goes somewhere
[05:48]<rjfjggfprgyr>To the controller
[05:48]<byre>suv4x4: Right, the posted data is handled by the controller, but the form itself is made by the view.
[05:48]<gavaasx>suv4x4: yeah, to the controller
[05:48]<suv9w9>colonelPanic, no I mean, precisely it goes there, so it has to make sense. Shouldn't the controller tell the form "ok here's what you do.."
[05:48]<sajvnly>or anyone have any clue how to user array_multisort and can help me out?
[05:48]<byre>Scotepi: Haven't looked yet, sorry.
[05:49]<gavaasx>suv4x4: that's tightly coupling the view and the controller then.. which voids the purpose of mvc really
[05:49]<sajvnly>its looks like a realy odd style function for php
[05:49]<suv9w9>in MVC frameworks the controller have argument signatures right?
[05:49]<suv9w9>does something aid the view in creating proper signature forms
[05:50]<rjfjggfprgyr>you can use helpers for that.
[05:50]<gavaasx>suv4x4: nothing formal, usually.. that's the idea of documentation and such (from my experience, anyway)
[05:50]<suv9w9>how would that work
[05:50]<suv9w9>notjosh, I see
[05:51]<suv9w9>one more question
[05:51]<suv9w9>last
[05:51]<lynzr>just went to see superman returns tonight
[05:53]<suv9w9>a page with really lots of GET parameters, such as google search (just example). So the page defines short names for all of them and their values. page becomes p and so on. when the controller gets ?p=10 it automatically maps it to page=10.. for the controller that ain't a problem, for the view to display the shorthand version also isn't a problem since it gets the map from the controller.. but what about other pages calling this controller. where do they get
[05:58]<sajvnly>BigE, i broke it down a little more if you have time
[05:58]<lzaanav>when i tried to print out two strings with value Thomas and value Wu sequentially. For some reason, a new line comes out between the two, is there a reason?
[05:59]<lzaanav>i found out if i changed Wu to wu, it prints out on a single line...
[06:00]<sajvnly>BigE, i have it down to a foreeach, witch im not that used ot using http://rafb.net/paste/results/Md5tpe44.html
[06:00]<suv9w9>question: what do you do when using full readable parameters in GET makes the line too long. Is there some mechanism you have implemented in rpactise to map shorted $_GET names and values to longer names/values
[06:01]<sajvnly>can anyone help me with the foreach and geting it to sort right?
[06:02]<gavaasx>suv4x4: haha, i'd re-look at why it's too long and think of a more appropriate way of doing it :/
[06:02]<gavaasx>oh, way to /quit on me!
[06:10]<vggvxfycgfyjgs>how come when i set $_SESSION['auth' = 1; it affects index_body.php but not index_list.php?
[06:11]<vggvxfycgfyjgs>for instance, if i print out its value between quotes on both pages it prints as "1" on body, but "" on list
[06:11]<sajvnly>nm go it
[06:12]<vggvxfycgfyjgs>anyone?
[06:13]<rupdg>teethlikelions: it's 1 of 3 things: session_start(), include problem, or a misspelling
[06:13]<vggvxfycgfyjgs>i'v got session.auto_start turned on
[06:13]<vggvxfycgfyjgs>and i've checked spelling like 20 times
[06:13]<vggvxfycgfyjgs>would i include index_body.php in index_list?
[06:14]<vggvxfycgfyjgs>because body does set the value
[06:14]<rupdg>I imagine both of these files get included by index.php
[06:15]<vggvxfycgfyjgs>index.php is just a form layout
[06:15]<vggvxfycgfyjgs>and index_list and index_body are in the two forms
[06:15]<a2zyd2fn>I want my PHP app to send a notification email to a certain address when a value in the database (inventory stock level) reaches a certain point. How would I do this? Set up a cron job that runs a script every 15 minutes?
[06:15]<rupdg>you're prolly including _list.php before setting the value
[06:16]<gjsjw>jbrimble why not build that feature into the script that modifies that value itself in the database?
[06:16]<sajvnly>anyway i can get php to handle $var=192.168.2.1 as a string or ip insted of a int? i need to sort it but php is thinking its 192.16921
[06:16]<vggvxfycgfyjgs>i didn't include _list in any. if i do the page just keeps reloading over and over
[06:16]<vggvxfycgfyjgs>if i include either _body or _list it does
[06:17]<vggvxfycgfyjgs>and $_session['auth' gets changed dynamically
[06:17]<rupdg>teethlikelions: pastebin
[06:17]<vggvxfycgfyjgs>surely
[06:17]<a2zyd2fn>GoSox: I want it to check for updates and send an email if Stocklevel is less than, say, 50 cartons.. Other applications access MySQL and manipulate the data. Can I do something like this with PHP ?
[06:18]<a2zyd2fn>Is this usually done with cron?
[06:18]<gjsjw>what i'm saying is, can't you have those other applications check as they are editing the value, instead of having crons running over and over and usually not actually doing anything
[06:18]<a2zyd2fn>hmm, thats a good point.
[06:19]<vggvxfycgfyjgs>http://pastebin.ca/101724
[06:22]<vggvxfycgfyjgs>gufmn: see what i'm trying to do? it should be simple but i'm really stumper
[06:22]<vggvxfycgfyjgs>stumped*
[06:22]<rupdg>yeah
[06:23]<rupdg>are you calling authbox() in both files?
[06:23]<vggvxfycgfyjgs>i call it at index_body.php?go=login
[06:23]<rupdg>also, check the values of $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW']
[06:23]<vggvxfycgfyjgs>y'know?
[06:23]<vggvxfycgfyjgs>ok
[06:24]<rupdg>and just for laughs, throw a session_start() in
[06:25]<vggvxfycgfyjgs>they display fine on _list
[06:25]<rupdg>I'm not completely sure of your include structure, but it's looking more and more like that's the problem
[06:25]<rupdg>session_start() at the top of the file doing the including
[06:26]<vggvxfycgfyjgs>still the same, the uname and pw print out on both pages, but auth is "" on _list and "1" on _body
[06:26]<vggvxfycgfyjgs>should i just throw it on index.php? (the root file)?
[06:27]<rupdg>session_start()? yes







