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: 1822.66 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-05-11
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
46
47
Next >
[02:40]<grvxn>frank34: what exactly are you trying to do with these?
[02:40]<zpzzznff>gah
[02:40]<grvxn>stupid office wireless... grr
[02:41]<dwrxrnf>hi, someone is telling me about ajax.net .. the microsoft crap... can anyone give me some arguments?
[02:41]<jddddd>m1chael try #web
[02:42]<dwrxrnf>i'm an open source guy
[02:42]<dwrxrnf>and im feeling jealous
[02:43]<zpzzznff>m1chael, you mean atlas
[02:44]<dwrxrnf>i use postgresql and i have a freebsd server
[02:44]<dwrxrnf>and i want to proficient things
[02:44]<zpzzznff>please restate
[02:44]<dwrxrnf>jfarrell, you use php with that?
[02:45]<zpzzznff>i use everything with everything
[02:45]<crlsj>Does unset() work on arrays?
[02:45]<zpzzznff>assigned from platform limitations, which is more a marketing ploy then a disparity in technology, their are no boundaries to technology, as I have found - not to mean their arent
[02:45]<zpzzznff>Capso, not how you think
[02:46]<crlsj>Jfarrell: Care to explain how it does?
[02:46]<zpzzznff>it will unset the index, that is, set the index to null iirc
[02:46]<zpzzznff>perhaps you should write a test\
[02:47]<crlsj>How can I unset a whole array then?
[02:47]<zpzzznff>unset($array)
[02:47]<zpzzznff>i thought you were referring to the indicies within the array
[02:47]<zpzzznff>m1chael, i have two linux servers and i should have a dedicated windows server soon, so that I can cease using my laptop as a server
[02:48]<zpzzznff>not that there is anything wrong with that
[02:48]<zpzzznff>:)
[02:48]<dwrxrnf>yeah but, i run a freebsd server
[02:48]<dwrxrnf>don't you need a microsoft server?
[02:48]<zpzzznff>for?
[02:48]<dwrxrnf>ajax.net stuff
[02:48]<pzrgac19>MarkR42: i make php since php/fi and so i think i know what i'm doing. Problem is i don't have enought knowledge to make clean usage of pcntl_fork, signal, stream_socket_pair
[02:48]<zpzzznff>most likely if it is built on the .NET framework as i understand it is
[02:48]<dwrxrnf>oh
[02:48]<zpzzznff>as I said, its more of a marketing ploy then a disparity in technology
[02:49]<zpzzznff>ajax exists, and using most often, outside of .NET
[02:49]<pzrgac19>MarkR42: you can make uncredible and clean things with php cli, look at nanoweb and the job of vincent negrier
[02:49]<zpzzznff>as i understand it, ajax just allows us to have prebuilt ajax features
[02:49]<zpzzznff>just as .net gives the programmers access to so many native prebuilt features
[02:50]<crlsj>Jfarrell: The thing is... I'm adding an element to an array within a for loop... but after the for loop is completed and the array has been used within the foreach (as the for loop and the array are both contained within one big foreach)... I want to remove all contents of the array so that next time it runs through the foreach, it does not append to the array, but rather starts with a clean slate... any ideas?
[02:50]<zpzzznff>$array = array();
[02:51]<crlsj>Within the major foreach?
[02:51]<zpzzznff>at the point that you wish to reset the array
[02:51]<crlsj>Damnit...
[02:51]<crlsj>Hm.
[02:51]<zpzzznff>if you wish for a complicated reset
[02:52]<zpzzznff>such as inner array hierarchy persvation then a custom function should be used
[02:52]<pdznpfdq99q>Capso, can't you just set the index back to zero and rewrite over it?
[02:52]<zpzzznff>though i believe their are array mapping functions available
[02:52]<crlsj>Firefly2442: Well... I can do a lot of things, but it's the placement that matters.
[02:52]<zpzzznff>m1chael, let me be clear you do NOT have to have .net to use AJAX
[02:53]<zpzzznff>ajax.net (atlas) is just microsoft encapsulating prebuilt features for the programmer
[02:53]<zpzzznff>as i understand it
[02:53]<crlsj>Jfarrell: And I can't clean the $array within foreach ($array as $key => $val) { ... } can I?
[02:54]<zpzzznff>no
[02:54]<zpzzznff>cause the variables within the foreach are working on copies of the array
[02:54]<zpzzznff>although i digress
[02:54]<zpzzznff>you could
[02:54]<zpzzznff>$array[$key] = whatever you want
[02:54]<pzrgac19>is pcntl_mkfifo('./mynamed_pipe.sock', ..) the "same thing" as stream_socket_server('udg://./mynamed_pipe.sock'......) ?
[02:54]<crlsj>Jfarrell: $val = "" should also work.
[02:54]<pzrgac19>or is it a non sens ?
[02:54]<zpzzznff>o
[02:54]<zpzzznff>no
[02:55]<zpzzznff>$val is a copy of the value at that position
[02:55]<zpzzznff>not a reference
[02:58]<mjgcnd_2>anyone know of a ready to go 'resize' function that uses GD to resize an image?
[02:58]<mjgcnd_2>the examples on the php site suck :\
[02:58]<drvvdaa>There isn't much to it... Load image, create resized image, save resized image.
[02:58]<mjgcnd_2>i just need to generate a thumbnail from a jpg
[02:59]<mjgcnd_2>ok
[02:59]<zpzzznff>Monkey_b, the theory is divide the inital size
[02:59]<zpzzznff>get the ratio
[02:59]<zpzzznff>and try to find new numbers (one you should know) that have the same ratio
[02:59]<zpzzznff>check www.php.net/gd
[03:00]<pdznpfdq99q>the length of my substring doesn't seem to working, it grabs all the rest of the string, anyone know why?
[03:00]<pdznpfdq99q>substr($file_contents[2], stripos($file_contents[2], "date=")+6, strlen($file_contents[2])-2);
[03:00]<zpzzznff>might be somethign there
[03:00]<zpzzznff>firefly2442, what are the values that the function sees
[03:01]<suvr2y>I am having a problem with getting header() with Referal to show up. I first set the referal to my site and then use Location to send them somewhere else on my site but when I go to check the referal, nothing is there.
[03:02]<drvvdaa>sutabi: If you're talking about Referer, that isn't something one sets in an HTTP response.
[03:02]<drvvdaa>You can't tell a client to tell a server who it was referred by.
[03:03]<suvr2y>mattmcc: ~_~ but it should have already been told right?
[03:03]<suvr2y>becuase it always showing a blank
[03:04]<suvr2y>$_SERVER['HTTP_REFERER'] always returns "" even if they are redirected from a site or accessed directly from them.
[03:04]<pdznpfdq99q>jfarrell, 36 and 54
[03:04]<zpzzznff>and firefly2442 do those values make sense and PHP substring function is a little odd, make sure your giving the parameters in the appropriate order
[03:05]<bummrbjd>i think i'm going blind at this time of night. can anybody tell me what is wrong with line 72? http://php.pastebin.com/710532
[03:05]<bummrbjd>php is spitting out a 'Parse error: parse error in i:\www\handbook_search_and_replace.php on line 72
[03:06]<suvr2y>BuddaBoy: you have ===
[03:06]<suvr2y>instead of == ?
[03:06]<bummrbjd>thats valid sutabi?
[03:07]<suvr2y>I never knwe there was a ===, only knew of a == and a =
[03:07]<bummrbjd>sutabi: fwrite() can return 0 as a valid answer, the number of bytes written
[03:07]<bummrbjd>fwrite also returns A FALSE if something went bad
[03:07]<suvr2y>BuddaBoy: I knwo but you have it as ===.......
[03:07]<bummrbjd>yes
[03:07]<pdznpfdq99q>string substr ( string string, int start [, int length] ) does length go from the beginning of the string or the start position?
[03:07]<suvr2y>shouldn't it be == instead?
[03:08]<bummrbjd>sutabi: no because i want to check for a FALSE return, not the 0 return
[03:08]<bummrbjd>sutabi: check the example at http://uk.php.net/fwrite







