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: 1822.66 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-05-11
Pages: < Prev
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
Next >
[10:58]<vnc_>okay.
[10:59]<vnc_>I do like the idea of the RSS feeds though
[11:00]<gnzzd>CWhiz, hmmm so it's a feature in Gmail and other services that you want? Not Netvibes?
[11:00]<[snffjuv]>eml that gives me a lot of information but not html source...
[11:00]<ndf>[sellout], To be honest, I don't think you can get the actual HTML-source. With good design you can get it though.
[11:01]<gnzzd>CWhiz: Sorta like setting up a limited use account which can only be used by a certain domain, without them having the root password.
[11:01]<gnzzd>s/use/user/
[11:02]<[snffjuv]>http://www.dan.co.uk/viewsource/index.php?url=http%3A%2F%2Flanceslife.com
[11:02]<[snffjuv]>is an example of what i want
[11:02]<[snffjuv]>i have a very crazy template and using css i want to have a pages source code, ias its background
[11:03]<gnzzd>CWhiz: So am I correct in assuming that this would be more a feature of Gmail and other such services?
[11:09]<cwxye>Gerry: Yep, it's not something that Netvibes could do on their own. I'm not necessarily blaming them.
[11:09]<cwxye>Sorry, bbl
[11:09]<gnzzd>k, gotcha
[11:10]<djjsnd>blah security update
[11:10]<djjsnd>rebloots
[11:10]<cw[r]>Gerry: It's something that should have been implemented, however. It's kind of obvious.
[11:11]<ranmn>I have a constant cfg_ADC which contain a field name ! I want to use that constant something like $nbr = $row["cfg_ADC"] but it seem is not likle that ! how could I use cfg_ADC in that $row[""] ?
[11:11]<gnzzd>CWhiz: you could set up your own in between proxy. Where Netvibes passes on the request to you and then you fetch the data and pass it back to Netvibes... if they are in fact netvibes.
[11:12]<gnzzd>CW[a] ^^
[11:12]<gnzzd>CW[a]: it is now. =D
[11:12]<cw[r]>Gerry: That I can blame them for, because there's no way to redirect the request to my hypothetical proxy without re-writing the module...which I considered doing.
[11:13]<gnzzd>Ohh yeah
[11:13]<gnzzd>Sux
[11:14]<sddffd>Hey how can i make sure there are no duplicate entry's being sent to mysql?
[11:14]<gnzzd>CW[a]: You could suggest the feature
[11:14]<ran_dn>I have a field name ADC_EN or ADC_FR and I define a language constant cfg_ADC which contain that field name ! I want to use that constant inside while's something like $row["cfg_ADC"] but it seem syntax is not ok ! How could I use cfg_ADC in that $row[""] ?
[11:15]<cw[r]>Gerry: I'd want to figure out why we don't have the whitelist yet.
[11:15]<gnzzd>CW[a]: Agreed
[11:15]<cw[r]>Gerry: From the very first Web 2.0-style API - Blogger - I knew it was a bad idea and how to fix it.
[11:15]<aand_fznsx>web 2.0 shit is stupid if you ask me
[11:15]<gnzzd>CW[a]: Don't every say that word again.
[11:16]<cw[r]>It's hyped, but it's a valid description of what's going on.
[11:16]<gnzzd>No it's not
[11:16]<cw[r]>And we were agreeing so well...
[11:16]<gnzzd>Web services will do
[11:17]<ymrg>im in a little truble with regex. i need to get the action= on a <form> tag.. so i builded up <form[\s\S]*?action=["|']([\s\S]*?)["|'][\s\S]*?> this.. but if someone forgets to do action="a" (the quotes) that dosent give me any result at all.. what sould i do?
[11:17]<gnzzd>The rest was already a major part of Web1.0 :D
[11:17]<cw[r]>Collaboration was the _intent_ of Web 1.0, but it wasn't implemented so John Doe could participate. Web 2.0 is fixing that.
[11:17]<gnzzd>CW[a]: LOL, I just hate that word
[11:18]<gnzzd>And I'm beginning to dislike you... for your use of it. =D
[11:18]<ran_dn>noone know ?
[11:18]<cw[r]>Just because something is hyped doesn't mean it's hype.
[11:19]<cw[r]>really bbl now
[11:19]<fwneve>HI, I need to remove all CRLF in a string is there a function like that (I suppose I need mtrim :))?
[11:19]<gnzzd>Yes it is if it existed before the name
[11:19]<cw[r]>btw, Ajax Ajax Ajax!!!
[11:19]<cw[r]>muahaha
[11:19]<gnzzd>hate ya
[11:19]<gnzzd>IFRAME IFRAME IFRAME
[11:20]<gnzzd>qwertz, str_replace?
[11:23]<gnzzd>ace_me, pastebin
[11:23]<frrrnfjvscy> hi guys! I have written my own component which displays a resume. The values of the resume are displayed in text fields. What i want to do now is to have a print button and when clicked on I want to open a new page with the values from the textfields to appear as ordinary text on it. It would be like a preview button. Anyone has any idea how to achieve this
[11:25]<gnzzd>pangelovski, do you know about this: http://xmlresume.sourceforge.net/
[11:25]<[snffjuv]>how can I get $h->loadFile($include); inside an EOF set of html?
[11:26]<[snffjuv]>\or rather how can i get the output of $h->loadFile($include); to a single variible like $loadedfile
[11:27]<gnzzd>$loadedfile = $h->loadFile($include); ?
[11:27]<frrrnfjvscy>cool, you just saved me alot of time
[11:27]<frrrnfjvscy>:)
[11:27]<gnzzd>sweet
[11:27]<frrrnfjvscy>gerry, sorry but i dont think that is for joomla/mambo right?
[11:28]<gnzzd>pangelovski, I have no idea, but I'm sure it could be integrated.
[11:28]<frrrnfjvscy>ill give it a go
[11:29]<frrrnfjvscy>Gerry: you any good with javascript? how can you do a window.open(); and fill that window with text?
[11:30]<fwneve>Gerry, thanks will try it
[11:31]<sajzs_>hi, I have a situation where I have some config options stored in a database, these option will not change unless when I want them to (very rare). The options are needed with every pageview, and therefor I'd rather cache them. I was thinking about writing PHP code from the database in a file and include that file every pageview (like <?php $aConfig[x] = y; ?>).
[11:32]<gnzzd>I think you have to do something like foo = window.open(); foo.write(contents); foo.close() but I can't really remember and this isn't #js
[11:32]<sajzs_>But I'm having my doubts regarding security, mostly because the file probably needs to be world writable. Your thoughts about this situation please.
[11:33]<jjxrg>Someone who can give me a hand on a regex problem? I want to replace from the beginning to the first match: $str="an example test string to test it". I want to replace from ^ till the first test, hoever ^.* replaces to the last test. Anyone?
[11:33]<frrrnfjvscy>ok, but thanks for showing
[11:34]<sajzs_>Johan, use (.*?) to match ungready (the ? does it)
[11:34]<jjxrg>sjors_: thanx!
[11:35]<kjzvxzug>Any pointers on why a php 5.1.x script using the zip extension would work fine from command line, but complain about not seeing zip_open() when run from a browser?
[11:36]<[snffjuv]>i need to get the output of these commands to an eof$h = new PHP_Highlight;
[11:36]<[snffjuv]>$h->loadFile($include);
[11:36]<[snffjuv]>$h->toList(false);
[11:36]<sxrug>php.ini has a directive called extension_dir, how can i get this value?
[11:36]<sxrug>i tryed $_SERVER['extension_dir']
[11:36]<sajzs_>Korthrun: are both the CLI and apache module using the same php.ini?
[11:36]<sajzs_>Shaun: try http://www.php.net/ini-get
[11:36]<kjzvxzug>sjors_:I wasn't 100% sure of that, so I added the extension to both of the copies I see
[11:37]<gnzzd>sjors_ if you are writing and reading it on the same server then I don't think you need to make it writable to everybody do ya. I'm a Win user, so I'm not too sure on this.
[11:37]<ymrg>how to get last chr from a string? i dont remember the exect function..
[11:37]<gnzzd>idan: http://gerardc.googlepages.com/phpsearch
[11:37]<kjzvxzug>sjors_:according to phpinfo, from a browser and command lien though they are
[11:40]<kjzvxzug>I did just notice that phpinfo from a browser doesn't show that zip support is included, do I need to recompile with some flag so that the DSO is aware of it?
[11:41]<sajzs_>you also need PECL for zip. Try using the same php.ini with apache as you do with your CLI
[11:42]<kjzvxzug>ill make a backup of one and symlink them to be 100% sure
[11:45]<sddffd>very n00b question.. but is there any program that kinda helps you out with the coding? u just kind of put it there?
[11:45]<kjzvxzug>sjors_:I have pecl, but when I did "pecl install zip" the phpize failed, so I had to download it, run phpize manually and copy the .so to the extension_dir
[11:46]<kjzvxzug>I'm assuming that the presense of the pecl command line util menas that I "have pecl" in the way php expects
[11:48]<sddffd>anyone?
[11:50]<kjzvxzug>Hrm, made progress anyway
[11:50]<kjzvxzug>It's going to be some PATH crap
[11:50]<kjzvxzug>[11-May-2006 01:49:41] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/share/extensions/no-debug-non-zts-20020429/zip.so' - /usr/share/extensions/no-debug-non-zts-20020429/zip.so: undefined symbol: _zval_ptr_dtor in Unknown
[11:53]<sddffd>how can i prevent mysql from getting a duplicate entry?
[11:55]<kjzvxzug>INSERT ....... IF EXISTS
[11:55]<kjzvxzug>check the mysql.com docs
[12:02]<[qz]lugq>hey
[12:02]<[qz]lugq>can anyone help me with this php script?







