@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 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



Comments:

<0> hehe
<1> p0windah: At any point, or request, I will not, anyways :P
<2> kuja will never happen
<1> lol
<3> kuja: there is a hole in the wall of that cage though, yeah ?
<1> Only precisely positioned where his ear is.
<1> :P
<1> Actually, in Scary Movie, was it the eye? :P
<3> heh
<1> Or both? :P
<3> kuja: just for you - my hairy fellas<wink> http://www.imagedump.com/index.cgi?pick=get&tp=376804
<4> hi all. I want edit windows share file from freebsd. please send me good howto guyz
<1> ...
<4> my php working freebsd server. then I need change windows server's file. that file is full shared.



<5> hello... I'm looking for someone to help me get PHP setup on a personal server
<6> drav: just follow the manual's instructions..
<5> I tried that... but I am useing my own server so I need to know how to set it up...
<7> okay, I have a cl***.. i wanna generateed multiple instances.. i can just use new cl***name; again cant I?
<6> drav: which httpd are you using? apache?
<5> ha... no... W2k
<6> ..
<6> do you have a web server installed?
<5> I know... I'm a reall nub
<6> IIS perhaps?
<5> yes...
<6> then read http://www.php.net/manual/en/install.windows.iis.php
<5> ok thanks...
<8> question about merging arrays with array_merge
<8> I have a function that recursively descends an an object tree looking for objects that match a pattern. Those that do, it adds to an array and returns it
<8> where they get merged with array_merge
<6> punkstar: $instance1 = new Cl***Name(); $instance2 = new Cl***Name(); you can even use arrays
<8> the problem is that I want the final array to be flat, like array( 0 => obj1, 1=>obj2, 2=>obj3)
<8> instead what I am getting is a heirarchical array like ( 0=> array (0=> array ( 0=> obj1) 1=>obj2) etc...)
<8> I can't quite figure out why. Here is my code: http://pastebin.com/578020
<9> IdahoEv: why not just use $array[] = $obj ?
<7> yeah, i was on a different page
<7> lol
<7> thats why it wasn't working
<5> umm... hate to be a pain in the a$$ but does anyone here know how to set up the PHPBB?
<6> drav: we don't supports scripts here, we only help people write their own code
<8> deadroot: scope problem; the parent iteration doesn't know about the $array that's currently being added to. The function is recursive.
<8> deadroot: i suppose i could just globalize it
<9> that's what i'd do
<5> ok... can you point me in the right direction?
<10> IdahoEv: Better would be to p*** it as a parameter
<8> drav: http://tinyurl.com/zfssn
<6> drav: #phpbb
<8> GarethAdams|Bed: oh i see, p*** the parent one in and add to it rather than p*** the found one out and have the parent iteration add it
<11> Anyone know whats the diffrence between running a program in system() and running it from a normal command line in windows? I have a PDF-merge software, which i call from system(), but then i get "The program is not registered" on all my merged PDFs, but in Windows, i dont get this text (cause it is registered).. Is the system() programs called in any other way or something?
<5> thanks
<8> that might work
<8> i just realized global won't work because i'm calling this whole function several times to search for different things inside the tree
<8> all this trouble just to re-send a @#*&$* email to a different address ....
<8> (Been working on that for about 3 days now)
<6> rightnow: it's probably because php is running as another user on the system
<6> rightnow: and your software is not registered in that windows user account
<12> okay on my ***ignment sheet it says to write puesdo code for 1x main and 5x sub.. and i was just thinking, does php even have a main process, if not, what would i put as main..
<11> niraj, aaaah, can i change that somehow? work around it?
<8> ohmygod GarethAdams|Bed you are a genius
<8> that worked
<12> okay on my ***ignment sheet it says to write puesdo code for 1x main and 5x sub.. and i was just thinking, does php even have a main process, if not, what would i put as main..
<6> rightnow: either log into windows with that user account and register it, or change the user under which your webserver runs
<6> tama: there's no C-like main in php, instead everything not in a function is main
<8> here's a question: how come php4 never respects my set_time_limit() setting? I will set it to 5 seconds and the script will run for three minutes before quitting....
<12> niraj, ew.. damn how am i gonna write that in puesdo code
<6> IdahoEv: is your php running in safe mode?
<8> niraj: not sure, how do i check?
<6> IdahoEv: call phpinfo()
<8> i mean, it quits *sooner* if I set a time limit, maybe 90 seconds instead of 5 minutes, but it's nothing like exactly the time I specify.
<8> looks like safe mode = off, at least on my mac
<6> IdahoEv: odd.. what are you p***ing as an argument to set_time_limit?
<8> set_time_limit(5);
<6> that tells it to terminate the script at most 5 seconds after that is called
<8> i usually put a line like that at the top when i'm developing in case I accidentally write a recursion
<6> didnt you say you wanted 5 minutes? :P



<8> yeah, and that gets it to terminate anywhere from 30 to 90 seconds instead of the 5 minutes it would take to stack overflow the server
<8> it even reports "time limit exceeded" in the browser .... it's just a LOT longer than the 5 seconds I set it to
<8> this is the same on both my macs and all 3 of my debian servers
<8> meanwhile I go get a cup of coffee while i wait for my browser to return control to me
<6> odd.. is set_time_limit(5) the first thing you do in the script? because it only affects code after the line it is called
<8> generally, yes
<6> well i think something before the set_time_limit call may be taking up most of the time
<8> <?PHP set_time_limit(5); code....
<8> i just thought of a possible reason on the mac
<8> if I'm running the webserver and browser on the same machine, the browser might be so busy trying to render the HTML output of the recursive code that apache/php may not even get CPU cycles available to send an interrupt for quite a while
<13> I'm trying to do a preg_replace() but my replacement (which is dynamically configured) may have dollar signs ($100 was interpreted as a backreference to "$10" so only "0" came out. How can I reliably escape those dollar signs or is there a switch to turn off backreferences in preg_replace() ?
<6> IdahoEv: i don't think that should be the case.. CPUs respond instantly to interrupts unless a higher priority interrupt comes in first
<14> markjaquith: \$
<8> hmm
<13> thanks
<8> well, it's not the end of the world and I'm under a deadline, so i'll spend time investigating it later. But it is kind of annoying.
<14> idahoev: deadlines ****
<8> you have no idea
<8> i haven't made any money from this client in 4 months
<8> and i haven't been able to work for anyone else
<14> eek
<14> that sux
<14> i have a client like that, they pay screw all and their system is terribly complex
<8> the worst specifications creep i've ever seen
<14> hehe
<8> they don't tell me what they want (because they don't know), I get to guess. Then they send me back to start over.
<14> i don't do start-over, i do dogy-hack untill its close enough then move on
<14> dodgy, even
<14> only problem is after a year or two the code becomes a mess
<6> idahoev: sit down with them, get the requirements and make them sign it, if they change it, charge them
<8> "oh no, we'd rather enter customer payments into the MySQL database instead of into quickbooks" <-- after I've spent two months writing a data transfer bridge going the other direction
<14> sounds like you need something in writing
<8> niraj: yes, that's what i'm doing now. the trouble is that I had no idea how awful they were about this when i wrote the contract a year ago ... so the specs document is nowhere near specific enough
<6> you're learning it the hard way then :P
<6> hehe
<8> And the big trouble is we spent most of nov/dec doing things not really described in the contract before I finally caught on and said "enough". But, there were a huge number of things that really *were* in the contract that still had to be done.
<8> If I can get this stupid mime-remailer working i might finish the contract elemetns by tomorrow
<9> IdahoEv: what is the problem with phpmailer?
<8> Then I get to try to talk them into paying me for all the extra stuff they made me do in nov/dec that shouldn't have been within the price cap
<8> deadroot: well, problem one is that I never heard of it before now
<8> will it do what i need? I need my script to receive emails in mime multipart, extract a string from the address, query a DB of contacts based on that string, and resend the email in the same format to all the contacts resulting from the query
<9> well, i don't know about parsing the email, but phpmailer can send out mime emails
<8> yeah, so can PEAR::Mail_mime
<8> and Mail_mimeDecode can decode them
<8> but *not* into a format that I can p*** back to Mail_mime for sending
<9> that sounds weird
<9> what was the difference?
<8> the object structure is kind of dumb
<8> Mail_mimeDecode doesn't contain an email
<8> you set it up and then p*** it an email, and it returns you a tree-like structure representing the layout of the message
<8> that structure contains a lot of Mail_mimePart objects
<9> okay
<14> can anyone recommend a good web host that provides mysql, php + cron for under US$80 per year, preferably with scp access?
<14> i have two hosting providers now, both ****
<8> But then Mail_mime builds up emails only through functions like setHTMLSection and setTextSection and addHTMLImage, and returns you a formatted body
<8> which you then p*** to standard mail()
<8> bobnormal: dreamhost.com
<9> ic
<8> dreamhost has the most unbelievable set of features and automated tools. wiki installed into your account with one click. unlimited subdomains for free
<8> The only limit on your account is the disk quota, and it's like 20GB for $8
<8> so yeah.... when all i want is to change the address and resend .... no other changes ... it's kind of crazy that there's no PHP cl*** to do this. But I've spend DAYS looking for one
<15> What's that?
<9> how do you receive the e-mail? as a text?
<9> why not regex it?
<8> i have procmail pipe it to a PHP script
<8> i pull it in with fread() on stdin
<9> that sounds like a string
<8> fread is binary-safe
<8> i could regex and change the address, sure
<8> but then how would I send it?
<9> point. >__<


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

knemo y SuSE 10.2
#css
#math
cron zenity root ubuntu
ubuntu without swap
#python
hanoveruniform
winbind winbindd dead
s168pin
etch emt64 iso



Home  |  disclaimer  |  contact  |  submit quotes