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-05-21
[09:01]<npnrp>hi
[09:01]<kgfjzrg>ajax != answer to all auto-fill problems
[09:01]<sjdgjgg_>ajax? Sounds like dishwashing detergent
[09:02]<npnrp>lol
[09:02]<ice>if your passing information ajax is great for that
[09:02]<kgfjzrg>it used to be a oven cleaner actually
[09:02]<sjdgjgg_>ahhh ok then
[09:02]<sjdgjgg_>i knew it was used in the kitchen somehow
[09:02]<kgfjzrg>also name of a very famous vicking
[09:03]<xracnm``>i dont think prefilling javascript array would be good, since there are like 200,000 records
[09:03]<kgfjzrg>(i cant spell)
[09:03]<sgrg_dyacgg>hacked``: so use ajax
[09:03]<xracnm``>thing is
[09:03]<xracnm``>i dont know how
[09:03]<sgrg_dyacgg>hacked``: do a little googling about it.
[09:03]<kgfjzrg>ajaxfreaks.com ?
[09:03]<ice>ajax is a floor cleaner and all purpose tustme on this use it in the marine corps thousands of times
[09:04]<ice>its not oven cleaner
[09:04]<f00jajd>Anyone know how I might go about capitalizing the first letter of each sentence in a string (not first letter of each word)?
[09:04]<kgfjzrg>i could swear its an oven cleaner, gona have to check now
[09:04]<sgrg_dyacgg>it's a general purpose cleaner.
[09:04]<npnrp>yea
[09:04]<npnrp>that's what I was just going to say
[09:05]<xracnm``>besides, i thought ajax was a fad technology
[09:05]<xracnm``>why are you suggesting i use it, all of a sudden
[09:05]<ice>nope
[09:05]<ice>old technology
[09:05]<npnrp>WITH A TWIST
[09:05]<ice>great for bandwidth restricted servers
[09:05]<kgfjzrg>hacked``, AJAX has been around for a very long time, it was just called ActiveJavaScript before
[09:05]<zeugma>anyone can give me a hint of how to put links here?
[09:05]<zeugma>http://pasteme.com/p.php?id=33
[09:06]<rymrg`>ZEUGMA: php.net/foreach
[09:06]<zeugma>i saw
[09:06]<ice>ajax has its place just like dom does
[09:06]<zeugma>but i don't know if i need to insert <a href
[09:06]<rymrg`>ZEUGMA: if you keep asking, you are going to be banned. Go practice using foreach until you understand how it works. Look at php.net/getting-started for more examples.
[09:06]<zeugma>or if there's a better method for htis
[09:06]<zeugma>this
[09:06]<rymrg`>ZEUGMA: yes, you need to insert the HTML
[09:06]<zeugma>ok
[09:07]<zeugma>what i don't understand is there the links should go
[09:07]<zeugma>since the ftp doesn't have external links
[09:07]<zeugma>at least not public
[09:07]<zeugma>it's not anonymous
[09:07]<zeugma>so they're not ftp:// links
[09:07]<ice>can anyone tell me if saxon is being used for real world enviroments
[09:07]<zeugma>this is what i don't understand
[09:07]<zeugma>i understood how foreach works now
[09:07]<sgrg_dyacgg>hacked``: really all you're doing is writing a simple script that will query the database and fetch results and then display those results in XML format or comma delimited or something. then you use JS to fetch that page and then parse the results... so, when you JS requests that page your PHP script will then run and query the DB. get it?
[09:08]<rymrg`>ZEUGMA: this is too complicated for you
[09:08]<rymrg`>ZEUGMA: have a look at premade ftp browser scripts
[09:08]<ice>are those records doc or xml format ?
[09:08]<xracnm``>sean_micken, makes sense.. but i have no experience in xml and that kind of garbage
[09:09]<sgrg_dyacgg>hacked``: it's not garbage, tard.
[09:09]<ice>cause xml is fast enough
[09:09]<zzfwjm2nn2fn2zjw>"garbage"?
[09:09]<xracnm``>k
[09:09]<sgrg_dyacgg>hacked``: use comma delimited then.
[09:09]<ice>xml is easy
[09:09]<zeugma>i looked at lots of browser scripts and i don't like any
[09:09]<zeugma>i want a very simple one made by me
[09:09]<ice>I would see if you can convert those records to xml
[09:09]<kgfjzrg>XML the foundation of most file formats (now)
[09:10]<kgfjzrg>ZEUGMA, this "simple" one is too complicated for you, by the sounds of things
[09:10]<sgrg_dyacgg>right. i mean XML just describes data... an XML file is only as retarded as the person who designed it.
[09:10]<zeugma>well, what simple premade script do you recommend me to look?
[09:11]<ice>I want to learn how to make dynamic xml
[09:11]<kgfjzrg>simplexml for php ?
[09:11]<ice>sos I don't have to make xml files all the time they would just generate themeselves
[09:12]<kgfjzrg>xml itself cant do smit, you always need a parser
[09:13]<kgfjzrg>and you just make a daemon, or somet to write the xml files on the fly with simplexml or just xml (simplexml and xml, are php modules)
[09:14]<ice>never used it
[09:14]<ice>have to check it out
[09:15]<ryddygxrgssjg>How can i have a function return its own name from within a function?
[09:15]<azdjzyaas>function foo() { return "foo"; }
[09:15]<azdjzyaas>For a more sophisticated approach, use reflection.
[09:15]<xracnm``>guys, how can i check if a row exists in a mysql table that has value "gay" in column "name"
[09:16]<azdjzyaas>hacked``: See #mysql
[09:16]<kgfjzrg>%gay%
[09:16]<ryddygxrgssjg>kamoricks: ty :)
[09:16]<sjdgjgg_>this is very weird.. if i run php -f test.php from cmd line, it connects to mysql and outputs results but if i run exactly the same script in the browser, it says it cant connect to the mysql.sock file.. any ideas?
[09:16]<kgfjzrg>someone_, your server is fcked,
[09:16]<zzfwjm2nn2fn2zjw>yep
[09:16]<zzfwjm2nn2fn2zjw>probably
[09:17]<sjdgjgg_>its a fresh install... pretty much
[09:17]<kgfjzrg> /etc/init.d/mysql restart
[09:17]<xracnm``>kamoricks, this is a php question, not mysql
[09:17]<sjdgjgg_>yeah already restarted and all that crap
[09:18]<kgfjzrg>hacked``, no thats a mysql question
[09:18]<zeugma>Keloran: what simple premade script do you recommend me to look?
[09:18]<xracnm``>im not asking for the query, im asking for the results
[09:18]<kgfjzrg>ZEUGMA, i dont use premade anything
[09:18]<kgfjzrg>hacked``, you would do it in the mysql query, not after the result
[09:19]<ice>restart your server
[09:19]<sjdgjgg_>tried that too
[09:19]<kgfjzrg>cause you would be pulling ALOT of data, only for the server then to parse each of those results
[09:19]<ice>someone what editor are you using ?
[09:19]<kgfjzrg>someone_, you need to recompile php, jag







