@# 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 32 33



Comments:

<0> exit
<1> itrebal dbl click on image, grab rotate handles and rotate
<2> ah.. ill use usort
<1> itrebal: right click on image, properties
<3> would anyone be able to give me any advice on the overall structure of my 'display events' script? a current pastebin is at http://perry.pastebin.com/542543
<4> does anyone here use php+ajax ? if so, do you use any framework at all?
<5> NBrepresent: i'm not a fan of mixing display logic with application logic, personally
<3> i'm a total beginner, though
<5> makes the whole thing tightly coupled and a pain to maintain
<5> that's ok
<6> Jymmm: mmh i know vi but not how to prevent the ^M in php, it tryed etherreal to see whats going on i tryed a lot of differerent functions but stil failure
<3> unless you could give me some pointers as to where i can separate things?
<1> ovis nfc, I've never had such issues, well not in 20 years anyway.
<1> and that was with ascii binary and ftp transfers moons ago
<7> Say I have a int i.e. '52' and I want to break it into days and hours -- whats the easiest way? I.e. 52 hours = 2 days, 4 hours?
<8> can someone help me setup vanilla?



<8> i'm new to thids
<5> NBrepresent: sorry, I don't have a lot of time at the moment - would the first not-totally-rubbish looking URL I can google up suffice? :)
<1> xiuan : 60*60*24
<9> xiaogil $hours=$num%24; $days=floor($num/24)
<7> Jymmm?
<6> Jymmm firewall on or off doesnt matter
<6> there is something i have overlooked
<9> dammit, I meant xiuan in that line above
<10> ovis, if you can do shell commands, cat file.file | sed -e "s/^M$//" > file2.file
<1> xiuan: 60 seconds == 1 minute. 60 seconds * 60 minutes == one hour or 3600 seconds. 60 seconds * 60 minutes * 24 hours == 1 day or 86400 seconds.
<3> insin, absolutely, and thanks for the suggestions so far
<11> Can someone help me how to gzip a directory in PHP?
<7> thanks Jymmm and GarethAdams I just had a blank out.
<6> reikon thats a good option altough php should have enouge tricks to handle a newline ;0
<6> ill try
<12> GarethAdams: ah?#..hum#hmm...go back to sleep...
<6> reikon: the source file is clean
<10> how are you transferring the file?
<6> hej in php or on the command line ?
<13> is PHP 5 stable enough for a larger scale website?
<11> ovis, in php
<6> reikon like readfile($filename)
<13> are there any concerns for stability, security, etc.
<6> reikon first p*** some headers
<14> n42: PHP 5.1
<14> Don't touch PHP 5.0
<14> It's rubbish
<13> ok
<13> would it be better to stick with 4.4 or 4.3 or something?
<14> Not unless you have good reason to
<13> ok
<14> 5.1 is ready to both rock and roll
<13> thanks
<6> hej dontknow
<1> a) 2 degrees square -or- b) 2 sqaure degrees ?
<6> pastebin.com/542570
<10> ovis try $contents = file_get_contents("$files_location"); Header ("Content-Type:application/x-download\n"); Header ("Content-Disposition:attachment;filename=$filename\n\n"); echo $contents;
<5> NBrepresent: I can't find anything, so I'll make a suggestion - try to change your script so that all the database access and calulation of whatever you need is at the top of the file (storing all the values you'll need to display the page) and all the display logic is at the bottom of the file, with php interspersed with HTML, rather than echoing out tags, where possible
<5> if you can get it all separated out nicely, you'll see how much more readable it is
<15> Someone here can help me, right?
<16> is there a list of predefined php constants somewhere in the manual? can't seem to find it
<5> at that stage, you could really have the database access/data calculation and display logic in two separate files... and there we leave it :-)
<17> How do I configure unzipping files? I don't get an error message and the archive never gets uncompressed. http://pear.php.net/search.php?q=zip
<15> Can anyone here help me with the ecec() function?
<15> *exec()
<10> what about it iPod-nano
<10> ovis, something like this : http://paste.insanityflows.net/viewpaste.php?id=34204
<1> !+g1
<18> Guideline #1) Don't ask to ask, Don't state: "I have a question", Don't ask: "Is anyone around?" or "Can anyone help?". Just Ask The Question
<15> is there a way I can make it execute a command without it returning any output?
<3> ok. the only example i had to work from to make this did the while($row = mysql_fetch_array($result, MYSQL_***OC)) { so i didn't really know how to do the mysql ***oc bit earlier and loop through it later when i need it
<5> you can create an array() and store values in it as you loop
<19> iPod-namo, sure....just don't have it return anything
<1> insin lies! all lies!
<20> is anyone around to help me with the problem i'm having trouble with? Can I ask the question?
<21> Hello.. can someone help my with my computer, its coming up with 'Invalid Instruction at 0x40340590. If the problem persists please contact your system administrator'
<21> Then explodes.
<1> jsoft get a new mobo and ram
<22> hope you ducked and didn't get hit by shrapnel jsoft



<10> iPod-nano, have you tried just: exec(command);? or system(command);?
<15> No, what does that do? I'm still relatively a newbie to PHP.
<10> if you don't know what the exec command does, you shouldn't be using it.
<10> http://us3.php.net/manual/en/function.exec.php
<6> reikon i am buzie trying
<15> Oh wait, I misunderstood you. You were asking a question and I thought somehow the question mark might be a part of the command.
<23> hi, i need to make a file in php that when the user clicks the download button, it downloads to the user machine (like show the download popup) problem is the file is .txt so it opens in the brwoser. How can i prevent that and make it download? (only has to work on IE don't care about the rest)
<10> lol.. no... i'm sorry iPod-nano i wasn't clear on that
<15> Sometimes I come up with awesome scripts and they don't work because I failed to type a single character.
<24> hey, I have a line case preg_match('/:([^!]+)!([^@]+)@([^\ ]+)\ /', $match[0], $foo): .. the part that follows is evaluated correct, but foo stays empty? any ideas why? (if I put it in in a separate test.php file with an if statement, foo is an array with the parts as expected)
<22> Stan - php.net/header ... check out the examples
<25> Hi everybody
<15> The problem is, the command I run in exec() is constantly running. It's an AIM bot, so it maintains a steady connection to AIM, but this leaves my browser constantly loading.
<15> Until I kill the bot.
<25> I'm trying to run a script, from a book. It uses object-oriented style. It fails on the syntax of: try {
<26> iPod-nano: er... are you running this bot off a host?
<25> Is it necessary to ... turn on o-o?
<15> I think it's waiting for some kind of output, but it doesn't finish producing output until I kill the bot.
<27> Six Sigma is a waste of time
<27> let the project manager beware!
<26> iPod-nano: because its constantly running, and requires to run for the bot to stay on
<15> Yeah, so I need to hide the output somehow.
<28> Hello. I am working on a new website, and I need to create a search engine that searches through the other sites, and a separate file. I haven't done any of it yet, so if anyone has a link, suggestion, or comment, that would be greatly appreciated.
<24> so anyone knows if a case preg_match('/regex/', 'string', array): have some pitfalls?
<24> that syntax, i mean
<24> where the string is the variable of the switch( .. )
<29> array_search doesn't search keys right?
<29> it doesn't mention it in the manual
<15> Or I need to send the output somewhere other than the browser.
<22> Majd: if you want to search keys - isset($array['key'])
<24> Majd: array_keys
<29> array_key_exists
<29> that looks good
<29> lig, you may be right.....
<29> but, i want it to match $array['key1']
<29> because the key is not just "key" it's "key1"
<29> but i can't depend on isset($array['key1'])
<15> Is there any way to hide the output from something I started in the exec() function.
<15> *?
<25> Perhaps if I ask differently.... How do I get ... try { statement; } catch { statement; } to work?
<26> !tell Majd about enter
<1> iPod-nano You REALLY need to rtfm... http://php.net/system
<28> I am working on a new website, and I need to create a search engine that searches through the other sites, and a separate file. I haven't done any of it yet, so if anyone has a link, suggestion, or comment, that would be greatly appreciated.
<26> tspier2: so... you'd be making a search engine?
<28> Yes, but just for the site that I am making.
<26> how much of it is database related?
<26> rather, gotten from the database
<28> Well, I want to have it search through the other pages for whatever the user typed in, and then I also want it to be able to search through another specific file with information in a format of that, that a configure file has.
<30> tspier2: Don't reinvent the wheel. Use lucene.
<24> http://pastebin.com/542598 anyone?
<30> Or mnogosearch
<31> anybody around
<22> nope
<31> to help with a mysql problem im having?
<26> no
<26> would it better suite #mysql ?
<31> no
<31> it would better suit php
<26> in that case, no
<22> :)
<30> sylow: What are you switch()ing on?
<19> sylow, i can look at it in a sec.
<24> TML: $match[0]
<32> ok aside from un commenting error_log = syslog what else do i have to do to have errors in php output somewhere?
<30> sylow: Please paste your entire switch statement
<24> TML: $match is an explode(' ', $string);
<24> ok
<30> soop: php.net/errorfunc
<32> cheers
<33> how do i get the absolute filepath to a file using php?
<25> To use try-catch, does it have to be within a cl***?
<22> cornell_: not as far as I know
<26> hmm... i've got an SVN repository, which can be downloaded by anyone... i need a way to have my files to be able to access my files, while not having the p***word in the repos.. any tips?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

python Popen fifo subprocess
ubuntu Too many files open
Loading libc6-udeb failed for unknown reasons
download an old version of ubuntu
#physics
unrar -l
#ldap
onomotapeia
#web
gentoo cannot find keysymdef.h



Home  |  disclaimer  |  contact  |  submit quotes