| |
| |
| |
|
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
Comments:
<0> anyways, thanks, I appreciate. It's a small thing, but it's just gotten to be silly. <1> unicode in PHP? how's it managed? I'd like to send a file in a certain encoding <2> 0 - name; - 14 !!! <3> DespNekus: '<?=$SITE->' is being interpreted as a tag. <0> Stormchaser: wouldn't know what to say, other than "this person keeps pm'ing me for no reason at all, it's getting tiresome and being ignored isn't making them give it up." <2> mmm <3> Run htmlspecialchars on the substr return. <3> And you probably want to add an offset to $cstart. <4> also... FlamingCows seeing as how you do seem to know more about this than I what is the best way to check usersubmitted info to make sure it does not contain something damaging <2> it worked <1> !+unicode <3> grendal_prime: Validate with regex or if it's too free form, run one of the escaping functions before p***ing to anything (e.g. DB or shell). <3> !tell Yango about msg the bot <1> FlamingCows, are you an operator? :) <4> you mean like running foreach ($_POST as $var => $value) { <4> htmlentities($_POST['$var']);}
<5> Yango: iconv is a start... <3> Yango: No, but it's permitted to !tell in channel, not '!+'. <6> grendal_prime: You should make your app so that no value the user can submit can be damaging. This means escaping it appropriately for the medium you're using it in <1> et, iconv requires libiconv :( <7> can someone look at this and give me a hand ... http://pastebin.com/622459 <6> However, I also have a generic routine for doing this which checks for ascii control codes <7> I keep getting an error that it is not selecting a database, however the database connectio works <7> so even thing in the _config.php file is working but the database name, which i know exists and that the user has permissions on it <8> can i use pg_lo_import() to import CREATE TABLE statements from a .sql file? <9> gnov: Check the account privileges on the database server. <7> the user for that has full permissions on my landb i created <10> luckyshot solicited me for pay work in private, he's been taken care of in here? <11> is there a way to get header() to work even at the command line? <7> yesterday i was having problems with this because it wasnt setup to be put anywhere but at the webroot, and i wanted it to be in www.mywebsit.com/~lan <7> so i had to add ./ in front of each include <7> which i used sed for <7> did that mess something up in this script? <9> gnov: No idea. You're apparently using some sort of cl***, so what's actually going on is not something that can be seen from just what you put in pastebin. <7> yeah i know <7> what else you need to see? <7> sorry, I am not a programmer at all <9> gnov: So why is it that you're doing whatever you're doing with this code if you're not a programmer? <12> hi guys <7> Elazar: It's for a website for a lan I am helping host, I am the person doing all of the networking and they want a website so i am doing it <13> How would I deal with communicating with web pages? <12> what is this equal to subnet : 0xfff fff00 <14> I have a variable with some raw php code in it (HTML + PHP code), how to output it with the PHPs parsed? <12> 255.255.255.0 ? <7> Elazar: It's not like I dont know anything about programming but this isn't my code its an open source portal for lan parties <7> is there a function i can add to that install.php to turn a debug on so i can see what is happening? <13> Nekusagi: Stick it on a webserver. <13> gnov: Unfortunatly, no.. <13> w51t: Yep. <14> freeone3000,: what you mean? <13> Nekusagi: You need a PHP parser for it to parse the php. <13> Nekusagi: You can either: install php5-cli, or install apache2 and mod_php <7> is there a script that someone has made that i can use to test my connectio to my database? <13> Nekusagi: Since you have HTML in there as well, apache2 would better suit your neds. <13> *needs <8> how can i play into my pg db a dump file of another db? <13> gnov: It'll return an invalid link if it fails... <9> !tell gnov about g10 <15> w51t: php -r 'echo 0xfff;' <7> ok Elazar: I am writing a php site and I need to know how to test if i can connect to my database <9> gnov: What database server are you using? <7> mysql <9> gnov: mysql_error() <9> gnov: If your connection or database selection is failing, that should tell you why. <7> thanks <16> does PHP have the equivalent of Perl's $! which contains the error message from the last executed command? thanks <11> grigora: no, it has a suite of functions that take weird arguments <17> Yes, it has it, somewhere. <14> freeone3000,: Im loading up a template, I have the var, just need to parse and output, but if I echo or print, the php isn't parsed. <16> sili_: I just need something simple to get the shell error message to debug a mkdir ('../path', 0755) call, any ideas? <17> hyksos: Why don't you dump it from the command line, instead of PHP? <17> Or steal phpMyAdmin's parser and dump it from PHP. <15> EEEEEEEEWWWWWWWWWWWWWW!!!!!!!!!!!!!! <18> hahaha <18> or just use shell_exec('/usr/bin/mysql ..... dump.sql'); <18> then if there are problems you get the output returned
<15> kuja: PMA's parser is Oh-so-damn-incredibly-slow! <17> lol <18> not to mention the whole application is a fscking disaster <18> trying to rip something out...you might as well rewrite it all <15> kuja: You tried to upload 10 meg file into the server via PMA and compare the speed with the CLI client? <17> Stormchaser: No, but of course it's going to be slow :) <17> I believe PMA was aiming for portability :P <15> kuja: 10 megs file imported via PMA will take 10 minutes while MySQL client will take 10 seconds for that. <17> Stormchaser: Probably. My stupid host claims they gave me ssh access, but I never got it. I usually just deal with PMA. <15> kuja: ouch. <17> I think I've only asked twice about it though. <6> kuja: Well, you should get shell access. Having a hosting account without shell access is unworkable. <15> heh... You should nag instead of ask :) <17> MarkR: I really don't work on that account, since I've dropped PHP. <17> The only thing I use it for now is just a wordpress blog, friends' gallery, hosting some files, etc <18> Or say, if you can't provide me with shell access as promised, there are other hosts who will. <17> :) <18> Hosting companies make their living off of long-term customers. <18> They should sort you out because they know well enough that you'll tell others. <17> This is my second year with them, I think. <19> When I try to execute a program with shell_exec(...) I'm getting the message "Oracle error". However, when executing `php index.php`, the output is the correct expected output. <18> rtao: what's the command being executed.. <19> hermit: It's executing a program that is supposed to connect to an Oracle db and display some tables. The command is shell_exec('/full/path/to_the_executable'); <20> hello <19> $outp = shell_exec(...); echo "<pre>$outp</pre>"; is the way I'm testing it out. <20> am trying to install php5.1-pgsql to my debian sarge based apache2 unsuccessfully : when trying to do 'apt-get install php5.1-pgsql' it downloads php5 and apache1 and install them, what's the matter ? <19> Is there a way to get a more specific error message than "Oracle error"? <17> loca|host: Looks like that specific packages doesn't want to use Apache 2 <17> loca|host: From where are you getting these packages? dotdeb.org? <20> # Sarge backports <20> deb http://www.backports.org/debian/ sarge-backports main <17> loca|host: Have you tried installing Apache 2 first? <20> yes it's installed <20> and working with php5.1 <20> PHP Version 5.1.2-Debian-0.1~sarge1 <17> And it only doesn't work when you try to get the pgsql package? <20> yes <17> Sounds like you need to talk to the package maintainers, not us. <20> ok <20> thx anymore <20> kuja, here's what i get when doing a apt-cache show php5.1-pgsql : <20> Maintainer: Piotr Roszatycki <dexter@debian.org> <20> Depends: php5.1-common (= 5.1.2-0.1~sarge1), phpapi-20051025, libc6 (>= 2.3.2.ds1-21), libpq3 (>= 7.4) <20> Provides: php5-pgsql <20> Architecture: i386 <20> Filename: dists/php5.1/php5.1_5.1.2-0.1~sarge1/binary-i386/php5.1-pgsql_5.1.2-0.1~sarge1_i386.deb <20> Size: 53774 <20> why it's providing php5-pgsql ?! <17> loca|host: 1) Don't flood, 2) Ask the package maintainers. <17> Well, maintainer, in this case. dexter@debian.org <20> sorry <17> Stormchaser: You ****. <16> if I name several text boxes with the same "name[]", shouldn't I be able to get their values in an array, or does that only work for checkboxes? <21> if i have 2 arrays $array1 and $array2 will $array1[0]=$array2 turn array1 into a 2 dimensional array? <22> grigora: should work with text boxes <22> Jack_S: arrays can be 'jagged' ie. they can have array and non-array elements <16> dools: thanks, i might not be reading it correctly from $_RESPONSE ... <21> dools: thanks <22> grigora: try $_POST <15> kuja: Are you naturally dumb or you have no idea, that you lost your mind? :) <17> Stormchaser: Bitch, thanks for reminding me :P <15> kuja: About the `dumb` part? You're wwelcome >:) <17> : <17> :( <23> smelly Davey! <15> kuja: You can't outsmart me, because I'm a moron! </freakazoid> :) <17> Yes, very smelly!! >:| <24> Parse error: opening tag <15> mismatched with closing tag </freakazoid> <25> are there any scripts out there in pear or somewhere else that would show example for user registration/email verification?
Return to
#php or Go to some related
logs:
#centos tomcat5 backport sarge telnetd ubuntu vls #web #gentoo gentoo sftplogging #web gentoo tx2300 promise #awk Exim configuration error in line 6 of /etc/exim4/update-exim4.conf.conf:
|
|