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.49 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-07-21
Pages: 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
48
49
50
51
52
53
54
Next >
[00:04]<tml>OneLineDesign: Hello?
[00:04]<yvzn2rf>TML: i guess not :)
[00:09]<su2sjgya>How can I check what type a varible is
[00:11]<jd>subsonic, gettype
[00:11]<su2sjgya>Jy: thanks
[00:12]<rrnc>||cw, actually, i can use the __set() and __get() methods
[00:12]<sxwrr>Is php.net the best way to learn about OOP. Ive never used OOP before and trying to figure out where it is useful.
[00:13]<drvvdaa>No, the PHP manual is not an introduction to OO concepts.
[00:13]<sxwrr>can you recommend something ?
[00:14]<zxnzvnz>c++
[00:14]<zxnzvnz>java
[00:18]<yvzn2rf>ruby/smalltalk are both 100% OO
[00:20]<sxwrr>PHP isnt good for OOP ?
[00:20]<yvzn2rf>no, it has terrible OOP
[00:20]<sxwrr>should I even bother using OOP with php ?
[00:22]<zxnzvnz>shwag: oop has uses you can't deny
[00:22]<orrlyrrdrsyrr>(TML): sorry back now will do that now
[00:22]<yvzn2rf>shwag: yes, the OOP php has is useful, though its usually a "yes i use it" or "no, its terrible" thing
[00:23]<orrlyrrdrsyrr>(TML): shows null
[00:23]<sxwrr>ive just been writting my on php for a long time, and want to look at other things to expand my arsenal. Doesnt have to be OOP, but maybe just other code examples so I can think about other ways to do things.
[00:26]<sxwrr>http://www.phpdeveloper.org/news/5719
[00:34]<orrlyrrdrsyrr>sorry back
[00:34]<orrlyrrdrsyrr>any replys?
[00:37]<orrlyrrdrsyrr>everyone gone lol
[00:45]<orrlyrrdrsyrr>hello?
[00:45]<ndt>I have a variable: example - $blah = "5433435423"; And trying to take that and grab the first 3 nunbers 543 and put them in another variable....I swore I used rtrim for this once before but can't remember how I did it heh...
[00:45]<yvzn2rf>substr
[00:46]<orrlyrrdrsyrr>Can anyone help on my issue please?
[00:46]<ndt>itrebal: Ahhh yes that is it...lol...thanks
[00:53]<orrlyrrdrsyrr>back
[00:56]<zdzg|wjzc>afternoon all
[00:56]<zdzg|wjzc>good *
[01:04]<nnjtxnzdya>Hmm, I've got a big problem that I'm unable to sort out.
[01:05]<nnjtxnzdya>Every time I pull file_get_contents on a URL, PHP crashes
[01:05]<nnjtxnzdya>if run under apache, this takes apache down too
[01:05]<gudysv>nice
[01:05]<nnjtxnzdya>the thing leaves only this in the logs:
[01:05]<nnjtxnzdya>Faulting application php.exe (or apache.exe if run under apache), version 4.4.2.2, faulting module php4ts.dll, version 4.4.2.2, fault address 0x000c5fca.
[01:06]<nnjtxnzdya>I've tried to replace php4ts.dll with a fresh copy, but it still crashes.
[01:06]<nnjtxnzdya>any ideas on ways to solve?
[01:07]<vggvxfycgfyjgs>how come {print 'hello " . function() . " goodbye"} outputs functionhello goodbye?
[01:07]<nnjtxnzdya>teethlikelions: mismatched ' and " ?
[01:07]<vggvxfycgfyjgs>it looks right, but i'll see
[01:07]<nnjtxnzdya>but normally the functions run first
[01:08]<nnjtxnzdya>like echo 'foo: ' . var_dump($foo); won't execute in that order.
[01:08]<vggvxfycgfyjgs>the ' and " are right i think. is there a way to control where the function outputs on the line?
[01:10]<nnjtxnzdya>the only thing that hits my mind immediatly is output buffering
[01:11]<gmffrsx>here's a weird question... does anyone know of a recursive function that will turn an array into php code that generates that array?
[01:14]<gmffrsx>doh nevermind... var_export() does exactly what i need
[01:15]<vggvxfycgfyjgs>NeoThermic: what is output buffering?
[01:16]<bynnnx>hey, what is the function that overwrites how long a spesific php script can run for?
[01:19]<vggvxfycgfyjgs>NeoThermic: it tuns out i'm an idiot... i just put them in different print statements
[01:22]<myansaxufm>anyone know why a curl and an fopen to a url would both be timing out?
[01:24]<myansaxufm>they both work on my local server, but not in the remote one
[01:28]<mjjfs>i just moved an application from an osx server onto a freebsd server and it exhausts the memory limit :S they both had the same memory limit set in php.ini
[01:28]<svr222d>PHP4 classes don't work in PHP5 do they:?
[01:28]<yvzn2rf>sure they do
[01:28]<yvzn2rf>dools: ooh exciting :)
[01:29]<yvzn2rf>i hate it when shit messes up :P
[01:29]<svr222d>so I can use any of my php4 stuff in php5?
[01:29]<myansaxufm>most of it
[01:29]<svr222d>alright :) thats a good releif
[01:29]<mjjfs>stabbby: the only problem i had was with &
[01:30]<mjjfs>itrebal: i know... cryptic!!
[01:30]<svr222d>&???
[01:30]<gzjf>does anyone happen to know how to make php process a files that does not end in php on a webserver? basically i need an XML file dynamically generated, and i cannot change the filename from .xml
[01:30]<zpzzznff>may have to turn off some notices
[01:30]<mjjfs>stabbby: the reference operator
[01:30]<zpzzznff>var for example will generate a ntoice becuase its not really used in php5
[01:31]<mjjfs>jfarrell: var doesn't generate a notice
[01:31]<svr222d>@_@ I didn't even think php has references!!! oh man I am missing out
[01:31]<myansaxufm>Grol: add it to your apache conf to use php
[01:31]<myansaxufm>same way you added the .php extension
[01:31]<zpzzznff>dools, really
[01:31]<zpzzznff>i could have sworn it did
[01:31]<mjjfs>nope
[01:31]<zpzzznff>from what i remember
[01:32]<gzjf>mikeschuld: no way to do it for a single file and not an entire ext?
[01:32]<myansaxufm>public and private var might
[01:32]<myansaxufm>Grol: hmm, well if there was it'd be in the apache conf
[01:32]<mjjfs>mikeschuld: public var is a compilation error
[01:32]<myansaxufm>ahh
[01:32]<gzjf>Ok, thank you
[01:32]<pjj>Hmm, if I am doing a file upload via php, is there a way I can do a status bar via php? How, how would I go about this?
[01:32]<mjjfs>var, private, protected and public all work in php5
[01:33]<myansaxufm>foo: ajax it up!
[01:33]<mjjfs>foo: google it. there's one using a perl script
[01:33]<pjj>dools: ah, thanks.
[01:33]<mjjfs>foo: you can't do it _only_ in php though
[01:33]<svr222d>mike..... an ajax upload is not possible due to sercutiry permission, unless you hack into firefox to fix it. There is no way for IE
[01:33]<mjjfs>stabbby: you can submit the form to an iframe
[01:33]<myansaxufm>stabbby: i was juat talknig about the status bar
[01:34]<svr222d>you cannot upload binary daya via post from xmlhttp
[01:34]<svr222d>dools: I know :P thats how I do it
[01:34]<myansaxufm>stabbby: you could just do a size check on the uploaded/total and update the bar :/
[01:34]<mjjfs>stabbby: i hate that i am reduced to such hackery :)
[01:34]<zxnzvnz>can't you have a javascript that would query the server with your unique session token?
[01:35]<svr222d>mike but then you'd have to look into the /tmp dir on your server and check the file uploading right?
[01:35]<txudrgg>okay.. i've made a simple app http://pastebin.ca/93992 , i'd like it to calculate the $tickets by doing a $item * $quantity, but i'm not sure on how to do this, aswell as adding a 'value' to the $item since it's text
[01:35]<zxnzvnz>stabbby, no idea at all







