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: 1982.48 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-07-27
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
Next >
[21:42]<yzrvyc>ya know, storing them DB wise would give you an advantage, you could make a list of most popular keywords, query elements - like a tag cloud
[21:42]<vwjmncj>cythrawll, oh i know... its not that long but kinda
[21:42]<rjvrjm>boricua: I copied your file, and it works on my installation.
[21:42]<2jzyrur>mmm if you hit submit the form gets display and no thank you message?
[21:43]<rjvrjm>boricua: I suspect it is not registering the form post data in your $_REQUEST super global. Do me a favor and try $_POST['email']
[21:43]<rjvrjm>boricua: no, I get the thank you menu.
[21:43]<rjvrjm>boricua: you want to know if email is empty?
[21:43]<2jzyrur>well you should not get the thank you menu is the form is empty corect
[21:43]<vwjmncj>what is the php pastebin for here?
[21:43]<rjvrjm>boricua: isset() just says if the variable exists, which it does, it's just empty or whatever.
[21:44]<rjvrjm>boricua: you want something like if (!empty($_REQUEST['email']))
[21:44]<rdvxzrwff>twodeko, any pastebin you can find
[21:44]<vwjmncj>http://dalphp.shoggoth.net/pastebin_view.php?857
[21:45]<vwjmncj>cythrawll, that is the longest the search query will get
[21:45]<2jzyrur>mmmmm so my understanding was wrong thanks
[21:45]<rdvxzrwff>towdeko.... wow
[21:45]<rdvxzrwff>twodeko rather
[21:45]<vwjmncj>that isnt too bad
[21:45]<vwjmncj>:p
[21:45]<rdvxzrwff>sif it isn't too bad
[21:46]<vwjmncj>?
[21:46]<rdvxzrwff>as if
[21:46]<vwjmncj>sure it is a long address but it works well
[21:46]<vwjmncj>i could store it in $_SESSION, but that might get goofy
[21:47]<rdvxzrwff>you wouldnt' have to encode it that way twodeko
[21:47]<rdvxzrwff>just pass the array to $_SESSION
[21:47]<rdvxzrwff>or in a cookie
[21:47]<vwjmncj>true
[21:48]<vwjmncj>hmm, id want to clear that after they navigate away from the page
[21:48]<rjvrjm>twodeko: why bother base64 encoding it?
[21:48]<vwjmncj>and you wouldn't be able to bookmark it
[21:49]<vwjmncj>notgod, shits and giggles
[21:49]<vwjmncj>worked well at first
[21:49]<vwjmncj>itll work without it i know, just haven't taken it out
[21:49]<vwjmncj>url is still somewhat long though
[21:49]<rjvrjm>urlencoding it makes it super-stupid-long, too. hah
[21:50]<vwjmncj>notgod, yes :p
[21:50]<vwjmncj>id say that this works pretty well for what i want it to do
[21:50]<rjvrjm>twodeko: I think the cached query key in the DB might be better. hah
[21:51]<rjvrjm>twodeko: if it does the job, cool. :)
[21:51]<vwjmncj>yeah we ALL think thats better, but is it the right thing to do :p
[21:51]<yzrvyc>the morality of cached queries?
[21:52]<vwjmncj>sorry
[21:52]<vwjmncj>heh
[21:52]<rjvrjm>iratik: well, the other benefit of keyed searches is you can associate them with the user IDs, and they can then be on a sidebar.
[21:52]<vwjmncj>where was that guide on the cached queries notgod
[21:52]<yzrvyc>yeah, and notify them when there are new popular results in them
[21:53]<vwjmncj>this search isn't too massive here
[21:53]<yzrvyc>and monitor them - and track stats on who's been searching what for how long
[21:53]<vwjmncj>like i said, some categories and dates
[21:53]<rjvrjm>iratik: haha. or RSS them.
[21:53]<rjvrjm>iratik: then you need counters on your search keys.
[21:54]<rdvxzrwff>I hate when other people use my computer and leave finger prints all over the monitor
[21:54]<vwjmncj>notgod, did you send that link before about keyed searches?
[21:54]<yzrvyc>thats not so bad
[21:54]<rjvrjm>twodeko: no, I didn't.. :I
[21:54]<yzrvyc>Anyone have any experience with html2fpdf?
[21:54]<yzrvyc>IT has no usage instructions which really irritates me
[21:54]<vwjmncj>is it just throwing the query in SQL and then assigning a unique key to prevent it filling up indefinately
[21:55]<rjvrjm>twodeko: I would do what you are doing now, and throwing that into a DB. Not the entire query. So if your DB structure changes, you don't have to process strings in your query key db.
[21:56]<vwjmncj>so i have my encoded string array... put that in a table with a unique key and use the unique key in the $_REQUEST
[21:57]<rdvxzrwff>iratik it has class docs, should be able to figure it out
[21:57]<rjvrjm>twodeko: yup, easy peasy. I would recommend indexing on your unique key.
[21:57]<r2rsn>hello
[21:57]<yzrvyc>Whats funny is your query can be your primary key
[21:57]<rjvrjm>jbase: whats up?
[21:57]<yzrvyc>as long as its unique
[21:57]<vwjmncj>is there a way to make the key random and not auto_incrementing
[21:57]<yzrvyc>You can make the key the query
[21:58]<r2rsn>well I was going to ask if its possible to include the inc file other than using include or require
[21:58]<vwjmncj>iratik, why would i do that if i dont even have to touch SQL to do it now
[21:58]<rjvrjm>iratik: oh, I always use an 'id' field for primary keys. heh.
[21:58]<r2rsn>I need to do some replacements in that file using str_replace
[21:58]<r2rsn>tried eval(), not working because the inc is a mixture of html and php
[21:58]<rjvrjm>jbase: exec()
[21:58]<r2rsn>oh
[21:58]<rjvrjm>jbase: er, eval(). haha
[21:58]<r2rsn>exec not working either
[21:58]<r2rsn>unable to fork
[21:59]<vwjmncj>does the keyed search string have anything to do with the results, or am i just storing what i have in the addy bar now
[21:59]<rjvrjm>jbase: eval() assumes it's running code right where you are...
[21:59]<r2rsn>thats what I need
[21:59]<r2rsn>but need to do some text replacements in the inc
[22:00]<rjvrjm>jbase: so in your eval, try adding '?>'.$filecontents.'<?php'
[22:00]<rdvxzrwff>twodeko, another idea about using cache db searches, you can do some funky ajax to do something like googles search suggestion
[22:00]<r2rsn>oh I could load it, then replace, then store the file then include, but thats too lame
[22:00]<mn2_usnz>any php coders out there willing to do a small, paying job?
[22:00]<wjlllrws>!+jobs
[22:01]<lxl-2jv>no job posting / asking for jobs on ##php (see /msg php-bot g7). You might want to check out: ##php.jobs http://www.geekfinder.com, http://www.monster.com, http://www.rentacoder.com or http://www.getacoder.com, or php.net/links, "Developers and Job Opportunities".
[22:01]<rjvrjm>deb_user: more details?
[22:01]<yzrvyc>OH my god! People, Does anyone just have a working complete html 2 pdf tutorial, i've been working on this since 10:00 this morning and now its 2:00PM, I don't care what library, i don't care where - I just need to convert an xhtml complaint file with one image into pdf - can anyone please help?
[22:01]<rjvrjm>php-bot: og, heh
[22:01]<wjlllrws>There are people here?!? Where?
[22:01]<r2rsn>notgod: its working! thanks much!
[22:02]<rjvrjm>jbase: sure thing.
[22:02]<rjvrjm>jbase: do you understand why?
[22:02]<rdvxzrwff>iratek there's calss doc on html2fpdf's page
[22:02]<wjlllrws>iratik: you've been working on that for only 4 hours? That's not much
[22:02]<rrdrdr>Wolfpaws - no, not real people. plastic people.







