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-06-09
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
Next >
[19:01]<dzzznzdjusn>retro_neo: That's part of the FTP extension, is that enabled?
[19:01]<lwgx>compile with: --enable-ftp
[19:02]<sugyr_>bhundven: mhm, I'm setting it in php.ini
[19:02]<jjzsxr>i tried ths: http://pastebin.com/770244 This really make me confuse.. if i insert not too many html codes (text) on $tour_itinerary it will works fine... but problem with too many codes and return echo "do nothing!" (i already set the field to longtext), but still problem :(
[19:02]<zgvzj_ggj>Dangermouse: that's it :( thanks
[19:02]<jjzsxr>how to trace the problem?
[19:02]<sxgree>Hi all. I am getting a "General error: 2013 Lost connection to MySQL server during query" when I attempt to use an existing DB connection to run more than 1 query in PHP. How can I recycle a connection to do this?
[19:02]<dzzznzdjusn>no problem
[19:03]<dzzznzdjusn>Jorsha: Whats the size of your column? What does mysqli_error say?
[19:04]<dzzznzdjusn>or $mysqli->error whatever it is
[19:04]<jjzsxr>Dangermouse the echo "The ID is: " . $mysqli->insert_id . "<br>"; didn't come out.. so i believe the if () return false
[19:04]<dzzznzdjusn>Jorsha: Thats great. What does mysqli_error() say
[19:05]<jjzsxr>Dangermouse it is longtext
[19:05]<jjzsxr>Dangermouse where do i put that?
[19:05]<jjzsxr>in else { } ?
[19:05]<dzzznzdjusn>Jorsha: yea
[19:05]<jjzsxr>ok wait
[19:06]<jjzsxr>Dangermouse just return this: do nothing!
[19:07]<jjzsxr>wait i try mysql->error
[19:07]<dzzznzdjusn>Do var_dump($mysqli->error()); just to make sure
[19:07]<jjzsxr>ok
[19:08]<dzzznzdjusn>err $mysqli->error actually i think
[19:08]<jjzsxr>Dangermouse i do this in else { var_dump($mysqli->error()); echo "do nothing! <br>"; } but both not show
[19:08]<dzzznzdjusn>yea sorry remove the (), its a property now a method
[19:08]<jjzsxr>ok, i will try $mysqli->error
[19:09]<dzzznzdjusn>You can tell i've used mysqli :) hehe
[19:09]<jjzsxr>oh ok :)
[19:09]<jjzsxr>oh yeah...
[19:09]<jjzsxr>string(227) "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's Wall Street)</strong>. Dilanjutkan dengan mengunjungi <strong>Jade' at line 14" do nothing!
[19:10]<dzzznzdjusn>=)
[19:10]<dgvrgyac>Is it possible to have varible function names? Like $mode = $_REQUEST['mode'] ; ${mode}_fcn();
[19:10]<lwgx>yes
[19:10]<gzggtuzcrd>hi
[19:10]<gzggtuzcrd>does printf faster than echo ?
[19:10]<lwgx>well at least $FUNCTION("arg1","arg2") works
[19:11]<lwgx>where $FUNCTION is a variable with the function name in
[19:11]<wsxrm>metanick $functionName = "${var}_bla"; $functionName();
[19:11]<jjzsxr>Dangermouse so can you recognize what is the problem hehe.. do you have any keyword of it?
[19:11]<gzggtuzcrd>printf("hi %s",$user); echo "hi $user"; which string is faster ??
[19:11]<wsxrm>ErenTurkay echo
[19:11]<ajgne>ErenTurkay, test it.
[19:11]<dzzznzdjusn>Jorsha: Now you go to #mysql or #sql with that error because its mostly a mysql error.
[19:11]<gzggtuzcrd>i dont know testing :)
[19:11]<2xugmvgg>Jorsha: http://www.php.net/manual/en/function.mysqli-real-escape-string.php
[19:11]<dzzznzdjusn>ErenTurkay: the echo. Use printf when you need it for something more complex than that heh
[19:11]<lwgx>ErenTurkay: Why do you need to find out which is faster?
[19:12]<cxgzrmggygg>I have a question.. i'm trying to run a script from a webpage with something similar to this: exec('/something/./myscript'); but it just doesn't seem to work
[19:12]<gzggtuzcrd>L1nX: curiosity :)
[19:12]<lwgx>Cheradenine: what does exec() return?
[19:12]<dzzznzdjusn>Cheradenine: What is myscript?
[19:12]<2xugmvgg>ErenTurkay: you could also check out apd: http://pecl.php.net/package/apd
[19:13]<jjzsxr>oh the problem is ' <-- if i remove this, will works fine
[19:13]<cxgzrmggygg>i've set up sudo so that the apache user should be able to run the script as a local user without having to type in a password
[19:13]<jjzsxr>Dangermouse thank you
[19:13]<jjzsxr>bhundven i will see it
[19:14]<cxgzrmggygg>the script that im trying to run is a script that lets me start and stop two gameservers remotely
[19:14]<cxgzrmggygg>and exec() doesn't return anything
[19:14]<cxgzrmggygg>the script runs fine if i run it as a local user
[19:15]<dzzznzdjusn>But wouldnt you need to do something like exec('sh foo..') or exec('bash foo') or does it just use the shebang?
[19:16]<lwgx>try shell_exec()
[19:16]<zgvzj_ggj>what does this error mean? Warning: ftp_fput(): Requested action aborted: Remote IP address can not be changed from control to data session
[19:16]<lwgx>shell_exec("/something/./myscript");
[19:16]<cxgzrmggygg>DM: exec('sh foo..') ?
[19:16]<cxgzrmggygg>what do you mean?
[19:16]<cxgzrmggygg>newbie here :)
[19:17]<cxgzrmggygg>im new to both linux and php so you'll have to bear with me if i say something stupid
[19:17]<lwgx>just run it liek this: exec('sh /something/./myscript');
[19:17]<cxgzrmggygg>ah
[19:17]<cxgzrmggygg>cool will try it asap
[19:17]<jjzsxr>thanks Dangermouse and bhundven it works fine right now :) you're great! ^^
[19:18]<dzzznzdjusn>Jorsha: You should get the invoice in a few days :-)
[19:19]<jjzsxr>lol :) i will check my postbox.. you must see your bank account soon.. ;)
[19:19]<jdddd>!+cbd
[19:19]<svjzd2jv>[CBD] Cash Before Delivery
[19:19]<mnp2dvn>does someone know how to create a <table> that takes the hole screen ?
[19:20]<dzzznzdjusn><table width="100%"> ... #web
[19:20]<lwgx>defbyte: use <table style="height: 100%; width: 100%;">
[19:20]<mnp2dvn>this works .. but my css version doesn't :(
[19:21]<wjlllrws>!+g8
[19:21]<svjzd2jv>Guideline #8) SQL Q's: #sql, #mysql or #postgresql. Apache Q's: #apache. Linux Q's: Either #yourdistro, #linuxhelp or #linpeople. HTML/CSS/JavaScript Q's: #web. Just because some other channel is 'dead' does NOT mean you can ask here.
[19:21]<2xugmvgg>I use xhtml and css. get rid of that table and use a div
[19:22]<cxgzrmggygg>damn it doesnt work
[19:22]<mnp2dvn>http://rafb.net/paste/results/m8pVqr40.html
[19:22]<mnp2dvn>L1nx: http://rafb.net/paste/results/m8pVqr40.html
[19:22]<mnp2dvn>my firebug doesn't tell me an error =(
[19:22]<wsxrm>defbyte you've been warned once
[19:22]<lwgx>Cheradenine: Did it return anything?
[19:22]<mnp2dvn>what ?
[19:22]<wsxrm>#web
[19:23]<cxgzrmggygg>nope
[19:23]<fjzmjmyg>defbyte take ur question to #web, or someone will ban u
[19:23]<wsxrm>+english :P
[19:23]<fjzmjmyg>i think that's what they are trying to tell u
[19:23]<lwgx>hmm...
[19:23]<fjzmjmyg>sorry
[19:23]<cxgzrmggygg>the script returns a status message if you run it locally so something should be returned if it worked
[19:23]<wsxrm>!temm lordOdin about u
[19:23]<fjzmjmyg>i totally forgot about that
[19:23]<wsxrm>temm :P







