@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
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 34



Comments:

<0> plik, xammp
<1> plik: php and mysql.
<2> alt_2: from xammp from this web site http://www.apachefriends.org/en/xampp.html ??
<0> true
<1> much as i'd like to help, these guys are used to hemp, stoners with free software, what a nightmare.
<1> whaddya think, next weezer song?
<3> hmm.. how do you restart sudo? I just edited the sudoers file..
<1> logout and sudo again
<3> sundev, tired and failed sudo :P.. how would I su in shell_exec like you mentioned eariler
<1> thomasporter: i havent used it in a while, but i thought it was -u username -p p***word
<4> dont think thats possible
<3> sundev, -u I think is correct
<5> #mysql, please
<3> sundev, -u works, -p doesn't.. using -u it comes up with a "P***word:" box.



<3> sundev, apon typing the correct root p***word it says "sorry try again"
<1> ahh, trick by using something like sudo -u sdlkf <file
<1> where file contains just your p***wd
<6> I just cannot upload a file greater than 2KB using php upload, I checked both upload_max_filesize and post_max_size, any ideas ?
<1> eljoemagnifico: you checked your php.ini file?
<6> yes thats where i checked upload_max_filesize and post_max_size
<6> i just checked using php -i | grep php.ini and checked the file in the result
<7> there is any <img src="base64;image='binaryimage'" ?syntax
<1> what are they set to? Did you do a phpinfo() to verify the settings?
<6> yes
<6> according to phpinfo it is
<6> post_max_size 55M 55M
<6> and upload_max_filesize20M 20M
<3> sundev, sudo -u root <file> "command not found"
<1> thomasporter sudo -u root <file
<3> ?
<3> I made a file in the dir called "thomasporter"
<1> the < is a redirection symbol. there is no > following it.
<3> oh :O
<3> I didn't realise
<1> eljoemagnifico: there is a way to specify a size limit with html, though I forget the format. Could that be the limiting factor?
<3> sundev, sudo -u root <thomasporter just brings me back to the "usage"
<6> sundev: Is it something like this
<6> <input type="hidden" name="MAX_FILE_SIZE" value="30000" />
<1> eljoemagnifico: that would appear to be correct... 30000 byte limit.
<1> thomasporter: try adding a cr/lf to the end of your pswd file.
<1> thomasport: in vi, that is a ctrl-v, ctrl-m
<8> I'm on PHP4, anyone knows any DOM library that parses HTML ?
<8> I'm having a look at the domxml extension, but it seems deprecated and doesn't parses html ?
<8> I've also looked at http://php-html.sourceforge.net/ which is very simple and works, but it doesn't models a DOM or anything simmilar
<9> This other dev's web-app that I'm trying to install isn't working
<3> sundev, I've been using gedit :P, is cr/lf a thing or a command?
<9> and $DOCUMENT_ROOT/logs/error_log shows no erorrs
<9> is there anywhere else I should look for errors before calling the dev?
<3> sundev, I got a different error after placing cr/lf at the bottom of the file "permission denied" then I changed the permissions and I found myself back at usage
<1> thomasporter: cr=carriage return/lf = line feed, and on second thought, you should just need the CR
<1> rutski89: yes, the apache logs
<9> oh yea... the globals ones, I forgot about those
<9> nope, no errors in /opt/apache2/logs/error_log either :-/
<6> any other directive in php which controls upload size, cau I'm able to upload 1KB and @KB files, the problem starts from 3KB files.
<9> it's really weird, index.php just returns no content
<9> and there are no errors O.o
<7> should work ? echo "<img src=\"data:image/jpeg;base64,".$row["IMG_IMAGE"]."\">";
<1> rustki89: check the access log too, just to be sure.
<9> sundev: wow, this is messed up. There are two index.php's the other one returned some errors
<9> sundev: yea, the access log is fine
<1> eljoemagnifico: you got me stumped. may i take a look at your phpinfo()?
<9> oh... the other index.php did not return an error like i thought
<9> it was just a "PHP Notice: Use of undefined constant E_NONE - ***umed 'E_NONE' in /opt/var/www/contact-manager/htdocs/cm/live.php on line 6"
<3> sundev, it outputs the P***word: box again..
<1> thomasporter: and if you type the pswd, does it work?
<3> sundev, nope.
<1> herein lies the problem
<9> sundev: seriously man, what's up with this thing? why isn't php reporting errors?
<3> sundev, shell_exec su, p***word would that work?
<1> rustki89: well, with two index.php's, I'd say your filesystem is corrupt.
<9> ahh, there we go; LogLevel debug helped
<9> sundev: no, the dev who made this is corrupt :-p
<1> thomasporter: i dont normally use shell_exec with php 4.11, I just use exec, or shell... I'm not sure what difference is.
<3> sundev, exec runs applications, shell_exec runs commands I think
<1> thomasporter: try using exec.



<3> sundev, exec ('pure-ftpwho'); ??
<1> thomasporter: oh man, don't ask me syntax. i haven't actually written anything in php for like 3 months.
<3> sundev, lol
<3> sundev, you seem helpful in every other area :P
<3> sundev, maybe were in the wrong channel :P
<9> sundev: nope, those errors didn't help
<1> i put up a good front. :)
<9> sundev: it's still not working :-/
<1> rustski89: and you get no errors?
<9> sundev: just "PHP Notice: Use of undefined constant E_NONE - ***umed 'E_NONE' in /opt/var/www/contact-manager/htdocs/cm/live.php on line 6"
<1> rutski89: there may be something turned off in regard to errors in your php.ini file
<3> sundev, I just want to run the command 'pure-ftpwho' so I can view who's connected to FTP through PHP.. any other ideas?
<1> thomasporter: i am not familiar with that command, does it output html?
<9> sundev: log_errors = On was set
<3> sundev, its for pure-ftp... typing it into a root shell outputs who's connected to FTP through pure-ftp
<1> ruski89: if you are getting a blank page with no errors, then your script is executing, but whatever is output is not understood by the browser, try outputting to a file and see what you get.
<10> sorry if this is an FAQ, I googled the subject quite a few times already. is it possible in 4.3, by any easy means, to track down which .ini file is effecting a given page?
<1> thomasporter: I see. Well, the trick is to make it somehow take a p***word. If there are no commandline options for it, then redirection is the only other way I know.
<9> sundev: apparently the script really is not outputting anything.
<1> rutski89: not even a header?
<7> yes that one should work
<9> sundev: well yea, headers are there; there's just no content.
<7> anyone know why is not working in IE or is obvious to ask
<3> sundev, "pure-ftpwho -w" it outputs the whole thing in HTML.. if that helps.. dout it.
<9> sundev: running out of ideas?
<1> thomasporter: the only other option would be to execute the script as root. ( i ***ume it is a script. )
<1> ruski89: if headers are there, it shows that script has completed. If there are no errors, I am at a loss.
<9> sundev: the script is clearly aborting. there is some static context in the script, so that most definitely should get sent no matter what
<7> any ideas ?
<9> sundev: but what about the static content that's there but isn't getting sent?
<9> sundev: I think i fond it
<1> rutski89: if the script completed, the static content would be output. On the other hand, if the script errors out, there will be no output.
<3> sundev, yeah.
<9> sundev: i did a print "hello" to catch where exactly the script aborts
<9> sundev: there's a require() that fails
<1> aha
<9> sundev: I wonder why that's not getting reflected in the logs though
<3> sundev, how would I allow www-data to run it?
<1> thomasporter: if it is a script, you can make sure that ir resides in the path that www-data uses, and change the permissions/ownership of the script to allow that user to run it.
<1> s/ir/it/
<11> how could I get in $variable a file. If I have a news.tpl.php and I want that $output would get the content of this file ?
<12> $variable = fopen("news.php","r")
<11> hmmm but I have a problem. I nead to get this file in variable like it would be executed. Same if I do include. I hope you understand me :/
<13> executed?
<13> lol
<14> Cavallo: ob_start(); include('news.tpl.php'); $contents = ob_get_clean();
<11> Rewt` whats wrong with this word ?
<13> Cavallo: first thing I though of with you describing it that way was a DOS or exploit, that's all
<3> sundev "You must be root to run this command"
<1> arpad! I think I've seen you here before, and you helped me out wsith something. I don't recall what, but... nice to see you again.
<3> sundev, maybe its just one of those commands that'll never work without root..
<11> Rewt` ?
<1> thomasporter: well, there are ways around everything in unix, but, you put yourself at considerable risk by doing these workarounds.
<13> Cavallo: yes?
<7> how to output <?xml version="1.0" encoding="UTF-8"?> in a php file
<11> arpad hmmmm not bad :) But one programmer was told me that using a ob_start() is not secure and so on ? Is this true or ... ?
<15> Cavallo: Well another option is eval and thats more evil
<15> I don't think anything wrong with using outbut buffering
<1> ob_start evil? How so?
<11> dunno
<3> sundev, its just a ftp 'view people connected' command..
<1> thomasporter: have you tried the 'who' command? Perhaps there is another way to get the info that you desire.
<9> sundev: yea, this is really f***ed up man.... REQUIRE_ONCE Is failing but there's no error being reported :-/
<9> how am I suppose to debug something like that?
<1> rutski89: my guess is that there is SOMETHING turned off in the php.ini file.
<10> is that a no, then?
<1> require and require_once are designed to report an error if the file is non-existant, non-readable, etc.
<16> Cavallo, no, there is nothing insecure about OB.
<17> is there a easy way in php to prevent a user to click back and submit a form again?
<10> nothin moreso than php as a whole, anyways ;)
<11> cobar thanks :)
<11> colder thanks :)
<17> ie some kind of token-system like in the Struts Framework maybe?
<3> ParaSiteX, did you register to my web host tpconnex.net resently? I think I noticed you online once.


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

ServerWorks HT1000 ubuntu
#ai
compiling smaug ubuntu
#ai
pilot-xfer troubleshooting
#debian
python_mod example
AjaxNotes demo
Apache Suse 10 -D SSL sysconfig
#mysql



Home  |  disclaimer  |  contact  |  submit quotes