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.43 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 >
[19:38]<mzzcz9q>Also, my pages usually take at least 16ms to run on this machine, but then it's not very fast. So 800us doesn't sound too bad
[19:38]<rrppygrvnm>you could store objects in shared memory, but they would have to be serialized. you couldn't use the object without unserialization, and the class definition.
[19:40]<zdzxzzmfdgzx>MarkR42: So you'll save the hard drive hit if you use shm with serialize/unserialize. You can be damn sure the HD hit is WAY more than parsing hit.
[19:41]<zyns>MarkR42: richardlynch ||cw thanks for the answers.. I thought so already... I am optimizing my code here and there ... would be a nice datatype tought... Something togteher with STATIC and assign a memory type.... or is that to mych C ish.... :)
[19:42]<zdzxzzmfdgzx>ries: There ARE people making "Frameworks" for PHP that do this sort of thing... Not sure any are released/stable yet... Zend is making one. You can search PHP-General for threads/posts/promises/vaporware.
[19:45]<efzezz>Anyone know of any hosting providers that are PHP/MySQL-capable that you'd recommend?
[19:48]<drgmrg0w00w>Elazar
[19:48]<ugznrfx>quick one, not completely php, but hey: i am trying to stream a video file through a php script, what headers do i need?
[19:48]<xzac_swjz>www.remcom.net
[19:48]<ugznrfx>somehow content-type and content-lenght ain`t enough for gxine/mplayer
[19:49]<efzezz>DanMan01001/hack_swor: Yes?
[19:49]<xzac_swjz>www.remcom.net <--
[19:50]<pzsvzfzzsyzg>hello there, i hope to find an help here...
[19:50]<pzsvzfzzsyzg>i would like to read an email and forward it
[19:50]<d0ddrg>You never here much about SDO for PHP, but IBM apparently finished it
[19:51]<pzsvzfzzsyzg>how can i do that?
[19:51]<svnnn2>hi guys, can anyone help me: i have two arrays, i want to grab the keys from array1 and put them as objects in array2, anyone know how i can grab the keys?
[19:51]<txndynpjzd>GaMeZ,
[19:51]<grmnz>hi TheDieform :)
[19:51]<ugznrfx>steeeb > array_keys
[19:52]<ugznrfx>in other words $new_array ($old_array1, array_keys($old_array2))
[19:52]<d0ddrg>PastaFrasian: you want to read an incoming email?
[19:52]<ugznrfx>$new_array = array_merge($old_array1, array_keys($old_array2)) that is
[19:52]<pzsvzfzzsyzg>m0dman: yes i want to read and forward it as it is
[19:52]<d0ddrg>Use qmail, there are a bunch of modules for doing that.
[19:53]<cudnfc>need help finding the remote IP
[19:53]<cudnfc>$_SERVER["REMOTE_ADDR"] only show the server IP
[19:53]<d0ddrg>www.qmailrocks.org
[19:54]<ugznrfx>err anybody willing to help with my problem? :)
[19:54]<cudnfc>had a friend loggin on and stuff, and $_SERVER["REMOTE_ADDR"] is the same as _SERVER["SERVER_NAME"]
[19:54]<zdzxzzmfdgzx>Kumelk: http://php.net/phpinfo -- If what you want isn't there, then you can't have it.
[19:54]<svnnn2>unreal, i tried array_keys, i did this: $updates['11th May']; $dates[] = array_unique($updates); but i got an error
[19:54]<cudnfc>it wasn't threre richard
[19:54]<pzsvzfzzsyzg>m0dman: are there any other solution without touching a mail server?
[19:54]<cudnfc>did try it, only did show my own IP
[19:54]<mzzcz9q>Kumelk: REMOTE_ADDR should always be different from SERVER_NAME unless it's broken
[19:54]<zdzxzzmfdgzx>UnrealX: It depends what kind of movie it is... Find a movie that DOES work, and see what headers it sends. Send those headers.
[19:54]<efzezz>hack_swor: How reliable is Remcom? I'm currently with FuitadNet and they've had DNS issues twice in the past three days.
[19:55]<d0ddrg>not that I know of, unless you want to make your own
[19:55]<cudnfc>MarkR42 borken how ?
[19:55]<mzzcz9q>Kumelk: I take it you're not behind NAT or anything like that
[19:55]<ugznrfx>Steeeb > you have to set a value i guess ;)
[19:55]<gzznvxzdzds>Kumelk: REMOTE_ADDR is the client's IP
[19:55]<cudnfc>I am, tho port 80 is open ofc
[19:55]<ugznrfx>the movie works fine using gxine when streaming avoiding php file
[19:55]<ugznrfx>i mean directly
[19:55]<mzzcz9q>Kumelk: It's possible that the NAT server is NAT'ing the src address as well as the destination
[19:56]<cudnfc>hmm
[19:56]<cudnfc>like two firewalls ?
[19:56]<zdzxzzmfdgzx>UnrealX: So, use Firefox headers plug-in to see what headers are coming out, and duplicate them.
[19:56]<mzzcz9q>Kumelk: Try it on a server that isn't NAT'd (Most NAT does not do that anyway)
[19:56]<mzzcz9q>If your firewall is doing port forwarding, you'll only see its IP address
[19:56]<ugznrfx>had this idea, forgot it :) thanks, will try
[19:56]<zdzxzzmfdgzx>Kumelk: More like a firewall that is doing inside-out firewalling as well. :-)
[19:56]<mzzcz9q>However, normally NAT preserves the origin IP
[19:57]<mzzcz9q>Unless the connection goes through two NATs
[19:57]<cudnfc>right
[19:57]<pzsvzfzzsyzg>m0dman: well, thanks for telling me about that, but otherwise i think imap_mail function maybe useful but to forward an email i have to reconstruct it with imap_fetchstructure
[19:57]<cudnfc>well only got one nat setting on my router
[19:57]<d0ddrg>You could use exec to constantly run a check on the mail
[19:57]<cudnfc>but thats it
[19:57]<pzsvzfzzsyzg>m0dman: and it's a pain in the a$$
[19:58]<zdzxzzmfdgzx>PastaFrasian: You *could* use "man smrsh" with a PHP shell script... Or whatever shell script, at which point it's not germane here...
[19:58]<mzzcz9q>Kumelk: More likely you're seeing your ISP's transparent proxy IP address
[19:59]<cudnfc>hmm
[19:59]<cudnfc>so there is nothin I can do to change it ? :x
[19:59]<cudnfc>ah crap :')
[19:59]<zdzxzzmfdgzx>Kumelk: Re-configure NAT, firewall, Apache, etc. PHP gives you everything it gets. It can't make stuff up for you. :-)
[19:59]<mzzcz9q>Kumelk: Well, have a look at the network environment carefully. Place a network monitor on both sides of your NAT router to work out exactly what's happening
[20:00]<nydp>Kumelk: and what does $_SERVER[HTTP_X_FORWARDED_FOR] says?
[20:00]<ddsvd>good afternoon... I've got a weird looping issue: http://rafb.net/paste/results/QFVD1H50.html
[20:00]<cudnfc>will check
[20:00]<pzsvzfzzsyzg>richardlynch: youalso mean that there aren't somewhat doable solution in php? if so, that bad...
[20:00]<mzzcz9q>Maybe your ISP runs a transparent reverse-proxy (although why, I'm not sure)
[20:00]<ddsvd>$row is an array but only has 1 element. If I don't do the foreach part, that doesn't work
[20:01]<ddsvd>but the empty foreach looks retarded, so I guess I just don't really understand what it's doing
[20:01]<mzzcz9q>Kumelk: You could try moving your web server off port 80, that avoids most transparent proxies.
[20:01]<pzsvzfzzsyzg>m0dman: i would love a php solution ;)
[20:01]<cudnfc>Undefined index: HTTP_X_FORWARDED_FOR
[20:01]<zdzxzzmfdgzx>PastaFrasian: No, I mean it's a lot easier to handle email with a program designed to handle email :-)
[20:01]<d0ddrg>right, like qmail
[20:01]<cudnfc>oky
[20:01]<cudnfc>guess I can do that
[20:01]<pzsvzfzzsyzg>eh, you are both right
[20:01]<d0ddrg>There are a ton of modules: www.qmailrocks.org
[20:02]<d0ddrg>But you could work around it by using a shell script to grab mail and dump it someplace readable with php
[20:03]<pzsvzfzzsyzg>i'll looks for both solutions
[20:03]<mzzcz9q>PastaFrasian: You can probably use some pipes in .forward in a particular user account to invoke a shell script (or PHP script) which can then read messages send to that account from stdin
[20:03]<pzsvzfzzsyzg>ah maybe i look into che codings of any webmail that have a forward feature... who knows
[20:04]<pzsvzfzzsyzg>MarkR42: mhh interesting
[20:04]<zdzxzzmfdgzx>PastaFrasian: man smrsh will tell you how to configure sendmail to forward incoming email to a PHP script.
[20:04]<pzsvzfzzsyzg>richardlynch: i have a qmail server, does it apply on that?
[20:05]<zdzxzzmfdgzx>PastaFrasian: I dunno. Ask the qmail guys.
[20:05]<pzsvzfzzsyzg>yep, thanks :)
[20:05]<wyee_kymm>why they keep making these lang bindings for php
[20:05]<wyee_kymm>i thoght php was a web lang
[20:05]<jddddd>TML ?
[20:06]<efzezz>Wizz_Kidd: "PHP is a scripted programming language that can be used to create websites." --http://en.wikipedia.org/wiki/Php
[20:10]<pyzns>can anyone help me out with this regex? "/<a href=\".*\"/"
[20:10]<pyzns>I want it to match the url (to grab all urls from html source), not the hyperlink







