| |
| |
| |
|
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
Comments:
<0> Pollita: libpng-devel is installed on my system, is there a way I can tell it where to look? Though it's in /usr/lib/, but might be worth a shot? <1> Renich: http://pastebin.com/733809 <2> anyone? any clue? <2> oh <2> saved richardlynch <3> Hi, is there a way to make PHP and Apache not send a huge amount of headers? <2> yeah, just set DontSendHugeAmountOfHeaders = 1 on php.ini... <3> Because I'm making a page that updates automatically using JavaScript, with a sort of "heartbeat" system, and it appears that every heartbeat, my code only returns "0" or "1" but the headers are a huge blob <1> Ricky28269: So have it skip all the headers and ignore them? Or maybe find a function/switch in JS to do that for you? <2> are you using pics on that from a db or something? <3> Well I'm doubting it's JavaScript's fault... <3> things like the Date header and Server header are unnecessary <2> richardlynch: so? what's the problem with my little color_table? <1> Ricky28269: You can turn off Server in php.ini, I think... And maybe header("Date:"); will suppress date header? <3> Date: didn't work <3> also X-Powered-By is completely pointless
<1> Renich: *SOMETIMES* it's an array, and *SOMETIMES* it's a string like "a" -- I cannot fix your algorithm that crams arrays and strings all willy-nilly into the data structure, but that's what you've done. Scroll down past the zillion arrays, and find the Warning lines. <1> Ricky28269: X-Powered-By: can definitely get changed in php.ini <4> can anyone suggest a good/reliable vps hosting service? <1> The rest are in Apache httpd.conf, probably. <2> ok, I see your point... let me try and fix this stuff <3> Okay, well thanks <5> JJPeerless: You should know better than ask this here. <6> hello, has expat been removed from standard php5 distro completely, or is there a way to install it? <7> Im getting an HTML validation failure when I put <something> in my mysql db and echo them out on a page because og the < > how can i prevent this? <6> php.net/htmlentities <1> Apocs: Call htmlentities() on the data right before you print it out to the browser. <0> Pollita: I installed pslib from source and the extension then installed with no errors. <7> ok, thank you richardlynch :) <8> slugger: you could have install pslib-dev package <9> Is there a way to p*** a value to a require_once() file? <1> TheWarden: Pretty much all your variables are already there... <6> will expat show up in phpinfo in php5? <9> richardlynch: well I'm p***ing a value via the query_string.... so I'm using $_GET. Mmm maybe I can just set the value before require_once(). <8> TheWarden: include/require works like copy/pasting the code from the included file into the current file, there is no concept of "p***ing" there <8> TheWarden: you can just use $_GET in the included file <1> TheWarden: $_GET will still be there. And any other variables you used. <9> ||cw: not in my case, as due to the way I have mod_rewrite configured I have to handle 404 errors... yeah I feel dumb no bring this up... I just was not thinking. It works fine now.. geesh.. I'll go shrink away now. <10> anyone know any good tutorials on building php scrapers? <6> screen scrapers? <1> nmatrix9: http://php.net/curl :-) <6> use tidy <6> its great for screen scraping <6> John Coggeshall's web site has some talks <11> Im having a little problem with pear on this new server. <1> How well does Tidy handle *bad* HTML spit out by other servers?... <11> just copied the code to new server, and I get this error: Warning: main(): open_basedir restriction in effect. File(/usr/lib/php/PEAR.php) is not within the allowed path(s): <11> www.yellowlocalpages.com/phpinfo.php if ur curious. <11> Any ideas? <6> screen scraping is full of holes <12> good night <6> you make due <6> witrh tidy you can navigate the html dom <1> FatalRemedy: PEAR.php is not within the directory structure your host wants you to use for your PHP files. move it, copy it, or change open_basedir in php.ini <13> hi phpers <11> richardlynch, thanks alot man. I'll contact my host. <6> or install your own PEAR <6> its easy <13> I have a pear <14> if the user has cookies disable will sessions not work for that user? <6> they will work by appending sessionid to the urls <15> If you're using the cookie method, yeah. <15> You can set a flag in php.ini to have the session ID p***ed through URLs automatically, i.e. index.php?section=new&PHPSESSID=d41d8cd98f00b204e9800998ecf8427e <15> session.use_cookies = 0 <6> i thought it tried both by default <10> richardlynch: I was thinking more a structured tutorial not a manual . . . but I guess I'll read the comments <16> That trans_sid stuff is bad news. yay for p***ing session ID's around through referer and bookmarks and emailed links. <1> nmatrix9: Yeah, that's why I had a smiley. You may be able to find a tutorial with a Google -- But the info you need IS in there if not. <10> richardlynch: yeah the comments are very handy <14> Julian|work: i dont have access to the php.ini im on a shared server, is there any way around it? <1> Xyphoid: Which is why your session IDs and what not should expire quicker if you use trans_sid, and why you should challenge for p***word before anything REALLY serious, no matter what their cookie/URL says. <17> Has anyone any experience of running MULTIPLE apache webserveres in parallel with php? I think of some DNS load balancing. My concern is: If I use session variables in my php scripts, how would these function on such a DNS loadbalancing setup? Will the browser cache the first IP-address it resolves (so that the same session is reached at every request)? <1> lilkid: .htaccess often will be enabled for you to change some settings. <6> xst: write a custom sessions handler to use the db <18> xst: Sessions have nothing to do with the client's IP, they're propogated by request data (Typically a cookie) <14> yep it is, ok thanks :) <1> xst: You need to get the session data into shared storage somehow. db is okay up to a point, but on SUPER busy server, db can slog you. MCacheD or MemCacheD or somesuch is a good solution to this one, according to a talk I just attended...
<19> xst: if you're worried about hitting different machines, you should look at using memcached as your session store <16> some load-balancing setups will do server affinity so future requests will keep going to the same node <16> we go with the mysql session handler instead <1> You should NOT rely on server affinity to save your *** -- ***ume any one of the boxes *WILL* go down at any time. <19> xst: the advantage of memcached is that it is very easy to add more machines. mysql and most other alternatives do not allow for this. <5> richardlynch: That's true. Tested :) <16> we probably would have gone with memcached now - we're using it for other projects and it's lovely. <6> now that the smart ones wokre up.. whats up with expat and php5.. is it in there? <17> Thanks for all the good replies. I actually planed to use memcached already, but not for session storage. Maybe I should look into that <1> phisy: Still don't know. Sorry. <6> hehe, dang <6> three time sthe charm. i'm out <1> phishy: Google for like PHP 5 Roadman or somesuch, or ask on Internals. <20> hi, how do i convert á to ? <20> php has some function for that? <19> emulatore: html_entity_decode <1> emulator: http://php.net/htmlentities has a link to it. <20> thanks <17> But using memcached as session storage requires some sort of custom session handler as someone in here said, right? <1> xst: Yes, you will still need that. <19> xst: i'm pretty sure there are bindings for it <17> (I need to make sure that the session IDs really is unique) <8> xst: yeah, not hard to make one though <17> I'll go goole it. Thanks for the advices! <17> goole = google <5> goole = goo :) <21> Goole is a grotty town in England <5> lol <22> hey can someone tell me what I am doing wrong here <22> $bots[2] = ["googlebot","<a href='http://www.google.com'>GoogleBot</a>"]; <5> Oyst3X: yes? <5> Burian: Ummm... php.net/array <1> Burian: http://php.net/array <23> Burian: http://php.net/array <22> thank you all for the link <24> [Stormchaser]: =] <24> [strobedream]: yeahh <1> LOL <5> *blink* <18> Scary thing found in somebody else's code: A not quite infinite, but extremely deep recursive operation in an object that generates an HTML table, which results in the page failing to render. In fact, it prevents the server from sending an HTTP response at all. <18> Why didn't anybody else notice it? Because I'm apparently the only person to ever run this code with a PHP memory limit of 8mb. Apparently, production sets it to 64mb. <25> is there something i can use to check if pre_replace replaced something? <10> mattmcc: bloat <25> so that i can set a flag <10> mattmcc: was this website owned by M$ <10> ? <1> fuffalo: $original = $string; preg_replace(...); if ($original != $string) echo "changed."; <18> nmatrix9: Insane bloat. It's runaway recursion that just happened to work itself out in the memory limit everybody else was using. <5> fuffalo: you want preg_match <25> richard than you <1> What moron uses recursion to make an HTML table in the first place? sigh. <5> richardlynch: It really depends on the purpose. <21> sorting a table rather than using order by on the db server? <1> The DB *has* to be faster than PHP for sorting, or you've done something even more wrong in the DB... <24> XP <26> how do i tell ftp to only read the LAST line of a file? <21> ftp==FILE transfer protocol not line <27> Howdy folks, is there a fast way to update PHP to the latest version via terminal? <5> Fushuing: you don't? <28> Fushuing: That's not entirely possible within the FTP spec. The best you could do, is manually guess where you would need to resume the file to get the last line. <26> eeer <26> tell PHP to only read the LAST line of a file XD <5> Vyusher: apt-get upgrade php <27> I've just installed OS X 10.4.6 and it has PHP 4.4.1 on it currently. <26> i've been ftping too much today :| <27> Great thanks Stormchaser! <5> Fushuing: fopen / fseek <26> i looked at those <27> Stormchaser, just tried it and it said, "-bash: apt-get: command not found" <5> Fushuing: You'd be probably best off by using 'tail' <1> Fushuing: fopen/fseek(filesize())/ loop: fread(-1) === "\n" <26> there is no tail() in the documentary <5> Fushuing: ...
Return to
#php or Go to some related
logs:
remove infodomestics bar #linux #ubuntu #gentoo apt-get install imap fc3 use yum offline #asm #web #math xgl on intel915
|
|