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: 1951.74 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-05-12
[10:50]<vzggm>the question is open to the whole channel :)
[10:51]<crlsj>Can there be an IF statement within the definition of a foreach loop?
[10:52]<mrscm_>trend: im pretty sure its $_REQUEST['QUERY_STRING']
[10:52]<zjw>no
[10:52]<ndf>Capso, I'm not sure what you mean, but NO.
[10:52]<crlsj>I.e.: foreach (if ($var) { $for } else { $for[0] } as $key => $val) { ... } ?
[10:52]<ndf>Capso, No.
[10:52]<zjw>$_SERVER['QUERY_STRING']
[10:52]<crlsj>Aw...
[10:52]<kyrrdyfj>hey guys :)
[10:52]<crlsj>Eml: You have to write out each instance in whole?
[10:52]<kyrrdyfj>can one of you guys recommend a good php devel app? ;)
[10:53]<ndf>Capso, What do you mean?
[10:53]<zjw>Kingmilo: I like phpedit 1.2.5, dislike phpedit 2 not bug free enough and too cpu hungy
[10:53]<mrscm_>Kingmilo: if you can afford it, zend studio
[10:53]<ndf>Capso, To be honest I misread you quite good, but I still don't know what you mean.
[10:53]<a2lzjs>Kingmilo: phpeclipse
[10:54]<kyrrdyfj>woah, sounds like there are a few :)
[10:54]<vygzdnfdzz>hi
[10:54]<kyrrdyfj>thanks guys
[10:54]<zjw>ah morning jbpros :)
[10:54]<frrrnfjvscy>hi guys, can someone pls tell me why i get  instead of space?
[10:54]<a2lzjs>hi row !
[10:55]<myrxrnw>Hi
[10:55]<vygzdnfdzz>i'm sorry to be OT but does someone here able to commit on cvs at sourceforge ? (#sourceforge is like a desert).
[10:55]<myrxrnw>I am getting this error while compiling dba with php:
[10:55]<myrxrnw>ftp://rpmfind.net/linux/fedora/core/3/i386/os/Fedora/RPMS/gdbm-devel-1.8.0-24.i386.rpm
[10:55]<crlsj>Is there a dynamic way to manipulate the order of output from echo ?
[10:55]<myrxrnw>oops sorry
[10:55]<myrxrnw>configure: error: DBA: Could not find necessary library.
[10:55]<myrxrnw>any idea ?
[10:56]<vygzdnfdzz>you need a lib
[10:56]<zjw>jbpros: btw is there another way of doing this http://phpfi.com/117333 ?
[10:56]<vygzdnfdzz>or give access to it
[10:56]<myrxrnw>how to check to this ?
[10:56]<zjw>without the while statement
[10:56]<vygzdnfdzz>maybe if you do ./configure --help you'll see a switch refering to the missing lib
[10:56]<zjw>and I don't use md5sums anymore just direct compare
[10:56]<ndf>Capso, Ordet the output?
[10:57]<zjw>jbpros: it only does 1 col tag at a time for some reason.
[11:03]<crlsj>Eml: Yes.
[11:04]<a2lzjs>row: I can't seem to concentrate anymore I have not slept yet :x
[11:05]<ndf>Capso, Order*. I have no idea what you're trying to do to be honest.
[11:08]<zjw>jbpros: lol its cool it works for now anyway but I am sure if it was a single regexp be faster.
[11:08]<a2lzjs>is it slow?
[11:09]<zjw>jbpros: if you fancy taking a oook I will upload latest code when you are around, I must have breakfast anyway just woke up :/
[11:09]<a2lzjs>ok I'll check that later, after some hours of sleeping :D
[11:09]<a2lzjs>have a nice day
[11:09]<zjw>have a nice sleep :)
[11:10]<a2lzjs>I will ;) see ya
[11:13]<vzggm>can I not do echo 'whatever'; ?
[11:13]<vzggm>instead of echo "whatever";
[11:13]<vzggm>it does appear like I can. .but that is dumb
[11:15]<zjw>trend you should use '' its faster as does not look inside
[11:15]<ejgyne>Hi, i was woundering if somebody can help me troubleshoot my code? cause it isnt functioning as it should, when i press the send button it don´t seem to send it to the sql server. :( http://pastebin.com/713111 here u have the code.
[11:15]<zjw>trend include vars like echo 'foo'.$var.'bar'; etc
[11:16]<frrrnfjvscy>hi guys, im wondering if it is possible to insert text taken from a word document into a database and then retrieve it as it was inserted?
[11:17]<zjw>whats wrong with it roniez?
[11:17]<ejgyne>when i press send
[11:17]<ejgyne>it dosent seem to send it to the sql server. :S
[11:17]<zjw>roniez why do lots of echos...
[11:17]<ejgyne>wh en i try to insert some values..
[11:17]<ejgyne>hold happit.
[11:17]<zjw>a multi line echo would most likely be faster.
[11:17]<ejgyne>habbit
[11:19]<zjw>roniez: any sql error, does it ever enter the if statement?
[11:19]<ejgyne>nope no sql error no nothing.
[11:19]<zjw>ah spoted the error
[11:19]<ejgyne>oh?
[11:19]<zjw>roniez: your form is seting a post not a get your looking for get values...
[11:20]<wljwnzsvumyjs>roniez: if it doesn't even respond, make sure the submit button inside whichever form controller you're using
[11:20]<zjw> "<form action='?add=post' method='post'>"; so you should be using $_POST or $_REQUEST not $_GET
[11:21]<ejgyne>u mean on if (isset($_GET['add']) && $_GET['add']) { ?
[11:22]<zjw>nah thats fine as you put that in url however why you are checking if its set and then checking its value like that I don't know
[11:22]<zjw>if(strlen($_GET['add'])) {} would be enough....
[11:23]<zjw>I did not notice you had used $_POST else where ....
[11:23]<ejgyne>hm..
[11:23]<ejgyne>Notice: Undefined index: add in c:\program files\easyphp1-8\www\db2.php on line 17
[11:24]<ejgyne>when i switch my GET to yours.
[11:24]<vzggm>crap.. how do I do this: echo '<a href="' & $_GET['file'] & '">'; ?
[11:24]<wljwnzsvumyjs>if($_GET['add']=="post"){.......} will do it
[11:24]<zjw>xpowerstudios: strlen should do it too. he might as well have a $_GET['action'] and a swich statement tbh
[11:25]<zjw>anyways breakfast calls
[11:25]<wljwnzsvumyjs>yup
[11:25]<vmmwno9>d
[11:26]<ejgyne>xpowerstudios: nopew dont work,
[11:26]<zjw>roniez: print_r($_REQUEST); at top of script and see whats been sent and what should be sent and correct it, $_REQUEST holds post and get vars
[11:26]<ejgyne>undefined index.
[11:26]<zjw>lols
[11:26]<zjw>you fucked up else where
[11:26]<ejgyne>i get from xpowerstudios´s version of adding.
[11:26]<zjw>pastebin your knew code
[11:26]<wljwnzsvumyjs>roniez: when you click submit, does it do anything? try to submit/send any information?
[11:26]<ejgyne>all i get its like this. in my address field http://localhost/db2.php?caseID=asdasd&errorID=asdasd&desc=asdasdas&by=asdasd
[11:27]<wljwnzsvumyjs>roniez: reload, error, anything?
[11:27]<ejgyne>reloaded got undefined index "add"
[11:27]<wljwnzsvumyjs>got a pastebin? sorry mustve missed it
[11:27]<ejgyne>Array ( [caseID] => adsasd [errorID] => asdasda [desc] => asdasd [by] => asdasdasd ) i get this when i added what row said
[11:28]<ejgyne>xpowerstudios: http://pastebin.com/713111







