@# 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> Can anyone help me design a regex for this to make it more elegant? http://pastebin.com/545734
<1> S^Gerbitz: if you drop de die() part .. mysql will tell you more about the error
<0> I need to find a way to strip /inc or /setup from a string if they occur @ the way end
<2> TML: No Sir, just having issues in respect to subdirs
<2> TML: No Sir, just having issues in respect to subdirs that actually do exist on the filesystem.
<3> hmph
<4> aeg - thanks
<2> TML and I wasn't aware if two or more Conditions were logical AND or logical OR togheer
<5> cube: $str = preg_replace('@(/(inc|setup))$@', '', $str);
<3> it's AND
<3> I explained that yesterday when I explained the stuff I gave you
<6> jason: Well tehre is your problem.. you're outputting the form before sending the header. ob_start() should be before ANY output.
<0> Pollita, k.. gunna go read up on that regex, but I'm ***uming that the prefixing @ means to match at the end?? ie. it will allow /home/setup/www/blah/setup to turn into /home/setup/www/blah ?
<3> cube: The @'s are delimiters. The $ means end
<2> TML Which I do appreciate.
<0> TML, Pollita thanks as usual! :)



<3> Jymmm: What's it doing wrong?
<3> Nice...a new release of MochiKit
<0> TML, what do you think is faster? The preg_replace statement or a substr(0,-4) ?
<7> cube: substr
<2> TML example.tld/~user/ works just fine. example.tld/~user/library/ (/home/user/public_html/library/) isn't seen as actuallying being on the file system.
<3> cube: substr would be slightly faster, probably
<3> Jymmm: Because it's not a file
<3> Yeah, ok
<2> TML: RewriteCond %{REQUEST_FILENAME} !-f
<2> isn't being adhered to
<3> Yes it is
<3> it's decidedly !-f
<4> fixed my isseu thaks
<3> It's a directory
<6> TML: Mochikit looks dead ***xxy.
<3> jonnay: I'm a fan
<3> Jymmm: '-f' (is regular file)
<8> is there a simple way to hide one var so it is not seen when you view source?
<3> Jymmm: You need to add "RewriteCond %{REQUEST_FILENAME} !-d"
<3> antihc3: Store it in a session on the server side instead of on the client side
<2> TML do you know where this flags are listed by chance? uel
<2> url
<3> Jymmm: Or something...that's just one possibly solution. :)
<3> http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritecond
<2> those
<2> looking
<3> There's a table
<3> "special variants of CondPatterns"
<9> What should I use to hold.55313412" in a SQL db?
<9> wth... "-76.55313412"
<10> jonnay, ob_start(); is the first line in the doc
<6> jason: do you have some kind of auto_prepend action happening?
<2> TML: Thank you.
<11> TML, have you ever run into an issue with IE6 dying on file uploads ( either timeout or page not found ) with a trivial file upload form. Firefox works perfect....
<10> jonnay, i dont know what that term means, but it might have something to do with the fact that this doc in question is the form action of a form defined in another html doc.
<6> jason: nope.. probably not.
<10> jonnay, havew you looked att he pastebin?
<6> yes.
<6> essentially, what is going on however, is that you are outputting something to the browser before wexecuting the header function..
<6> or the ob_start() for that matter.
<10> jonnay, but if obstart is the first line in the doc, how could i be outputting something to the browser?
<1> Tac_Work: can it be that IE and FF have diferend default MAX_FILE_SIZE
<11> aeg: could be... how do I know what those differences are?
<11> wait no..
<11> because if i sent a 300 byte jpg it dies
<10> jonnay, could the problem be that the browser doesn't see this page first?
<6> wait a sec..
<6> just what do you mean by "doesn't see this page first"... When you submit the form, you are submitting to somefoo.php, right? The first line of somefoo.php is <?php, followed by ob_start(), correct?
<10> jonnay,i am saying that the browser opens up to a different page first, ands then the user clicks to this page.
<6> err that cleared nothing up for me.
<6> Is the login form action the same file as the one in the pastebin?
<12> my php code sometimes takes a while to run, what's the best way of profiling it to see where it's slowest?
<10> jonnay, yes, and there is a seperate html file which just creates the from itself.
<13> prophile: use microtime()
<12> Stormchaser: righto
<10> jonnay, p***word.html creates the form, and p***word.php is the form action.
<6> righto. And the very top of p***word.php is <? and ob_start(), and you do not have anything set in your auto_prepend_file php ini directive?
<6> because if that is the case, I am well and truely lost as to why this wouldn't work. Unless your php file got munged, and you have some weird control characters at the very beginning.
<10> jonnay, yes on the first one, but the secoond one i am not sure.



<14> Whats the best way to test for an empty string?
<15> hi
<16> Can anyone suggest a way to reload php data in a webpage without reloading the whole page? I'm trying to reload constantly changing data in a frame.
<14> frames :S
<17> Burninato use meta tag refresh
<15> i have installed php rpm with all options including curl enabled when i exec php curltest.php it works(fetch particular domain)but hangs when i access thro browser
<15> please help
<18> will that cause the whole page to refresh or just the data?
<17> Burnninator: are you using an iframe or an actual frame?
<18> an actual frame
<19> O
<17> if it's an actual frame, just put the <META> tag in the doc you want to reload
<6> AJAX! ;)
<20> http://www.eclipse.org/proposals/atf/
<20> :)
<19> Whoops, I'm doing this http://pastebin.com/545793 and when I do, I get Call to a member function on a non-object in line 64 which states $irc->join($chan);
<17> burned: <meta http-equiv=\"Refresh\" content=\"60; URL=http://www.website.com/document.php"; />
<17> sorry i meant that for Burnninator
<19> I don't know why it tays its not an object. :X It works in my other functions, it also says I didn't supply 2 arguments for the function, I'm calling it with gsbot::joint();
<17> Burnninator: <meta http-equiv="Refresh" content="60; URL=http://www.website.com/document.php"; />
<17> Burnninator: also, as jonnay points out, you could use AJAX
<15> hi it just hangs http://airheads.org/linkpoint/testing.php
<6> For the love of god however, be careful. Ajax can be used badly so easily.
<18> yea, i tried the meta tag. but i don't like how the browser does a "refresh"
<15> it is curl test script which fetch some domain using http
<18> i don't want anything to change but the numbers
<6> rai: without more information I can't really help. Maybe you have an infinite loop somewhere?
<17> Burnninator: AJAX it is then
<6> Burnninator: check http://sourcelabs.com/ajb/archives/2005/05/ajax_mistakes.html for some ideas on what not to do.
<15> http://airheads.org/linkpoint/info.php it is the php info page which seems correct but curl is not working
<18> im trying to modify an opensource project called sabnzbd
<21> where to paste ?
<22> Die, b'stard! :)
<6> rai: have you tried accessing the url you are trying to curl directly?
<15> jonnay:yes it is working normal
<6> conversely, you could try the curl command line with the same otions as yoru php script to see what is happening. Maybe the end-point does some kind of user-agent sniffing.
<6> if you hav eshell access on the server, try cURLing it from teh server, as that might give you some more hints.. (maybe DNS is timing out?)
<1> can someone help me with a preg_match to not to match quoted parts of a line
<15> johnnay:but it works incommand line without any problem
<14> how can I find out how many elements are in an array?
<23> count()
<14> is there a function to do this? ok thanx
<24> hi everyone
<6> rai: are you doing anything crazy, like POSTing form data, or is it a simple GET?
<25> threat sizeof()
<10> jonnay..no...the first file isn't even included in the pastebin, and neither is the title page
<6> error_reporting(E_ALL), either at the top of your script, or in your php.ini, apache.conf, or .htaccess depending on your needs
<6> err sorry, for hte last three (php.ini, apache conf, .htaccss) the syntax is different...
<21> I have change php.ini, how should I make it into effect ?
<6> jason: but the contents of the pastebin is just one file, correct?
<10> jonnay, yes
<21> jason, I have change php.ini, how should I make it into effect ?
<6> (so therefore, the ob_start() should be working, and the var_dumping and echoing shouldn't be affecting anything).
<21> jonnay, I have change php.ini, how should I make it into effect ?
<14> in an array, is it possible to print out the ***oc name by using the element number?
<21> jonnay, and my session does not work also
<6> try restarting apache.
<6> i know nothing about your session.
<6> okay kids, its smoke-time.
<6> I'll be back in 10.
<10> jonnay, cigarettes?
<6> sadly .. yes. Quitting soon.
<21> session_start();
<17> if i have a variable that contains the following: 08/Feb/2006:18:36:41 -0500|/archive|0|Grumptronix - Spectrum (Fall 1995) ...how could i get just the part after |/archive|0| keeping in mind that 0 could be any number and /archive could also be just /
<26> hello all
<17> oh hmm actually i could just explode() by |
<27> jonnay: Does segfault in apache error_log have something to do with it?
<10> dude! IT WORKED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
<28> hi, i need to call a function with more then 1 parameter (no clue how many) how can i loop through them?
<15> jonnay:no am using simple php script just fetch page
<6> rai: I dunno what to say man.
<10> I took away the var_dump and then the 'welcome to the inside!'
<6> Mitja: depends on the segfault.. but sounds quite likely.
<29> Stan1: http://php.net/func_get_args would be a start...


Name:

Comments:

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






Return to #php
or
Go to some related logs:

mp3 encoding in sound juicer
what is doscsi
sin4x 1/2 cos4x
#gaim
ex2ifs lvm
enterminus missing keyword
translate fegad
pylibpcap tutorial
#css
onresize closure



Home  |  disclaimer  |  contact  |  submit quotes