| |
| |
| |
|
Page: 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
Comments:
<0> how do I load it? <1> it should be loaded on windows no? <0> I have session.auto_start = 1 in /etc/php/*/php.ini <2> Cicciux: what distro? <0> gentoo <3> I cant even make phpmyadmin works :( <1> it's a use flag then <2> Cicciux: rebuild with the session use flag set <1> you need to recompile php with session use flag <1> why do i even bother :P <4> yes, recompile php with the right configuration option <0> ok... thanks... <2> Cicciux: session.auto_start just indicates whether or not you need to use session_start() to start a session, or if that's done automatically when the script starts. <1> jonez: oh jee how helpful, my god <5> hmm
<6> can PHP be used to run commands on a system ? <0> what do you mean raden? <0> on the server or the client? <7> raden: php.net/exec <0> http://www.php.net/exec <0> :-( I'm slow.... <6> Cicciux, like if i wanted to have something on the website run a command on a server like adduser <6> zircu, thank you : ) <0> raden, php.net/exec <6> Cicciux, thanks <2> raden: you would need to use sudo to allow the apache user to run adduser...but that would given everyone the ability to do that. <4> jiggster, well, to be fair, php told you what the problem is. I was just being "funny" by repeating the error message. <6> CryWolf, im just learning just wondering what the capabilites are adduser bad example <4> did you build php yourself or did a distro come with php set without session support? <1> well it didnt tell me anything, i'm not the one suffering the problem :P <8> split ? <8> oh... im the one who lagg :D <0> jonez, it's me, and I emerged the package... I didn't have the session USE flag set, so it built php without session support <4> ah <9> $query = 'INSERT INTO users(id,pokerid,last_spammed) VALUES("",'.$id.','.$time.')'; <9> whats wrong with that <9> im getting a syntax error near time <2> sym0_: a php error or an sql error? <10> sym0_: echo $query; ... <10> you'd have thought that was obvious <9> sql error <9> i may have to do with the datetime deal <9> 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 '22:34:48)' at line 1 <9> that )' appears inside the wrong bracket <4> sym0_, I don't think this will fix your problem, but your sql would be easier to read if you said something like ...VALUES("",{$id}) and such <4> rather than trying to concatenate. <2> sym0_: this is off-topic here, and should be asked in #mysql, but I'll point out your two mistakes...first, put your query string in double quotes. sql values should be single-quoted. And second, all strings need to be quoted. <2> jonez: that wouldn't work for what he's got. <9> i see <9> trying now <4> CryWolf, it wouldn't? <6> what does everyone use for editors ? <2> jonez: it's all in single quotes. <1> i'm using ZDE on gentoo forwared through an X11 session to my Mac :p <4> he doesn't have any (obviously) string values, and the first field (id) can be left off instead of using "" <4> *sigh* <4> I'm going to bed. <11> here's a doosy <11> s/\\\\/\/g; <11> lol <11> its wrong argh <11> s/\\\\/\\/g; <3> hello, when I test my php with a file including " phpinfo()" it doesnt work, just appears a blank page; whats wrong? <0> raden, vi (vim the editor) www.vim.org <4> raden, joe, joe's own editor.. joe.sf.net <6> hmm <2> Sonny: including phpinfo(), or with phpinfo() as the only thing in the file? <6> syntax coloring ? <10> Sonny: view the source, do you see the php? <4> raden, joe does that <0> sym0_, I usually use sprintf: $query = sprintf("INSERT INTO table VALUES ('%s')",$foo); <0> damn.. that was just one second late... <3> CryWolf,<html> <?php pfpinfo(); ?> </html> <12> is there a way to get the calling function (ie. like HTTP_REFERER) ? <2> Sonny: leave off the html tags.
<2> and spell php properly <10> Sonny: remove the <html>, the manual says very clearly, JUST <?php phpinfo(); ?> <6> <? phpinfo(); ?> <3> ok let me see <10> cube: __FUNCTION__ <10> CryWolf: asif, I use it like that too <10> CryWolf: $foo would be mysql_real_escape_string($foo) <10> CryWolf: it's a good way to separate your query logic from your php crap <3> CryWolf,aidan: The same blank page, what can be wrong? <0> CryWolf, what would be the correct way of doing that?? <10> <10> Sonny: view the source, do you see the php? <10> Cicciux: you've got it spot on <2> aidan: that's different, though. It seems pointless to use sprintf with just a plain variable being used as a string. <4> Sonny, turn error_reporting to E_ALL and display_errors On and see what happens <3> aidan; yep <10> CrazyEddy: concat is so ugly though, and it's easier to switch to PDO, just replace %s with ? <10> Sonny: then you haven't installed php <12> aidan, I meant the "referring function" ... like the name of a function which called a function <3> aidan; I have... well I follow the steps <12> aidan, sorry I wasn't clear on that <10> cube: debug_backtrace <12> aidan, you da man <3> aidan, I have installed apache2, mysql5 and php 5.1.2 <10> jiggster :) <10> Sonny: you haven't enabled php, follow the instructions better <7> hmm.. is that 'the' aidan <0> Sonny, did you enable php on apache in any way?? (either as a mod or as a cgi?) <10> zircu: I'm logged in, aren't I? :) <3> Cicciux, I have added this lines to httpd.conf: LoadModule php5_module "c:/php/php5apache2.dll", AddType application/x-httpd-php .php, and PHPIniDir "C:/php" <13> Is the only real way to get 5.1.2 on debian sarge compiling? <14> In Apache, can I set a variable that won't die after a page is finished and can be refered to by any new pages? <0> did apache give any error? (check the logs) <13> Peter: read about sessions <7> aidan: i just had to make sure, i havn't been following this channel lately <13> Peter: and cookies <14> nathe, I want to set something like $admin_email and have it pop up all I want from all pages and not have to set it in each page. <0> now that you mention cookies... I'm hungry... :S <13> oh <10> PeterFA: include it at the start <0> PeterFA, you can always include the file php.net/include <13> then what you can do is have something like /config/config.php set $admin_email in there and then just include that file <14> Cicciux, will that be parsed? <13> PeterFA: yes, inline <0> omg! I'm slow!!! <14> nathe, Oh, so I can just include config.php in every php file? <13> yeah <14> k thanks <13> np <13> now <14> Now I just got to figure out how to get a number from a table in a db via mysql. <13> you might also want to look at configuring it so that not just anyone can read that file ;P <0> PeterFA, php.net/mysql_query <13> but thats beyond the scope of the question <14> Cicciux, well, I got that down so far, it's the select command that goes into mysql that I'm working on <14> $query='SELECT count FROM counter'; doesn't seem to work <0> PeterFA, #mysql <3> Cicciux, what do you mean enabling php as a cgi? <14> Oh yeah <13> heh <13> anyone? 5.1.2 on debian sarge? <13> .. I'm going to feel silly If i just dont' have a testing source <15> zircu: Sorry not tonight. Got notified this morning and this afternoon that a friend and an aunt died. <0> sonny you can have php as a common gateway interface script, with apache I use it as a mod, but in some servers that do not support php but support cgi you can use it as such. <7> nathe: i'm not sure how to answer that <0> it's said to be a bit slower. <13> zircu: I can't find an apt package <13> and it's dying out on xml2-config <7> Jymmm: sorry to hear <13> libxml2 is installed correctly as far as I can tell <15> zircu thanks.
Return to
#php or Go to some related
logs:
ubuntu2debian Couldn't find package libstdc++-libc6.1-1.so.2 #centos child-climax int * double in bash fedora core 4 iso public hdlist network install kubuntu famd #asm #gentoo #mysql
|
|