@# 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



Comments:

<0> depends on what delimiter is there
<1> i cant see any, but i guess it should be a carriage return
<0> well yeah, you can't usually SEE control codes
<1> i tested with line terminated by '\n' and table is empty... also with '\r'
<2> hi, im having trouble with a contact form. well the form works perfectly but the confirmation email that the "client" recieves contains an image but is not displayed, a html code is displayed instead. may any one help? line 66, http://pastebin.com/556820
<3> they do not accept HTML.
<0> maybe his email client is blocking it
<2> its no that
<3> just fmi, do you need a full <html><body></body></html> in order to include html in an email?
<0> how do you know?
<3> or can you just type w/e you want and hope they work it out?
<0> Stoned4Life: the latter, pretty much
<3> figured
<3> hmm... email offering me bigger **** 2" ... T1R3D of SHORTT D11112CKK yeah.. that's not conspicuous.
<3> html file attached. 2kb.. dare i?
<3> maybe on someone elses computer.



<4> Stoned4Life: i have a much better deal: http://www.cs.rutgers.edu/~watrous/make-penis-fast.html
<3> cut your **** into pieces, mail it to 5 people, and expect others to mail your parts of their penis??
<3> to mail their*
<3> err.. to mail you*
<4> i dont see what your problem is. so you don't have a penis for a while.. soon you get 50,000 inches of penis
<5> is it possible that i execute some graph making GD2 .php script to a certain file... will that file be .png then ?
<5> example: php myscript.php > picture.jpg
<5> myscript creates jpg file actually
<5> is this possible or nor ?
<4> theres lots of ways
<5> hmm
<5> well what's the other way ?
<4> send a content-type header is the simplest
<4> you can also do content-disposition to rename it, thuogh i think some versions of IE have various issues with that
<5> hmm i would actually like to execute this php scipt from console...
<5> i have for example: pie.php?width=200&height=300&data=1000000
<5> how would i save this image that is generated
<5> by this script
<4> huh
<5> any example ?
<4> you want to execute on a command line... but you just pasted a GET query
<5> hmm
<5> yes now when i'm thinking... i see that... lol
<4> is this an image thats showing up in a web page?
<5> yes.
<5> but i have a problem for example
<5> i'd want to have graph generated for each customer
<4> then you should just generate it from the web server.. executing as an application will just cause problems
<5> hmm... :/ crap.
<4> i fail to see why that would prevent this from working
<4> generating an image is just the same as generating an html page.. it just outputs image data as opposed to html
<5> problem is, that i cant exec: exec("du -c /var/lib/mysql/".$uporabnik."* | grep skupno | awk {'print $1'}")
<5> i know that...
<5> i understand that
<4> oh, i see
<5> i have a problem... when i execute my php script
<5> what it does
<5> is to check dir size
<5> but if i execute the script as apache user
<5> apache doesn't have rights to see size of dirs
<4> thats not going to be solvable by exec()ing a script like you suggested anyway .. it will still run as apache
<5> that's why i'd like to output images to certain folder... and view it there...
<4> theres still a couple ways to do that though. use sudo to run that command
<0> why not just give apache the rights?
<0> heh.
<5> loooool
<0> ?
<5> don't make a fool outta me.
<5> no.
<4> or just run that command in cron, and output the results to a text file somewhere that apache has access to
<4> (which is much less overhead than generating graphs constantly)
<5> mysql is very strict about mysql.mysql ownership of database tables.
<5> hmm
<5> groogs yes !
<5> that would be the solution
<5> humm
<5> hmm...
<5> lemme think...
<5> okay so i actually php file.php > index.html lol
<4> ... dont need php for that
<0> godammit. opencms is pissing me off



<4> du -c /var/lib/mysql/".$uporabnik."* | grep skupno | awk {'print $1'} > /some/apache/accessable/path/usage.txt
<3> what?? openCMS!?? how!
<5> hmm... i have everything written in php actually. checking for dirsize and outputs, and then checks in mysql database what's the users quota, and does $free = $quota - $used
<5> hmm
<5> let me think...
<0> Stoned4Life: huh?
<0> i can't figure out how to check for direct edit
<5> i would then post these numbers to text file... but how can i use them then in graph ? huh...
<3> lol.. just noting the praise you give for opencms
<3> $1 .. is that a variable?
<5> groogs sorry i'm complicating things... but i see no other way to do it...
<4> Bl4ckB1rD: the spot in your script where you were going to exec('du....'), put file_get_contents('/path/to/whatever/usage.txt')
<5> maybe store the info in mysql table
<4> that works too
<4> are you sure there isnt just a mysql command to show size?
<0> there is
<5> problem is... that users have multiple databases
<4> yeah phpmyadmin does
<5> and checking each...
<5> it is prefixed by user_database1 user_database2
<5> but still
<3> mysql_select_db($user_id)
<5> i would have to list databases, and then switch database, and choose only prefixed by user_ urgh much work...
<5> is there a way to check how much space has user currently in use ? is there a command to do that ?
<3> .. i just give each user a unique databse name and store that name in the "user" database with it's own field, named, no duh, user_database
<5> that would be simplest way
<4> too much work? it's like a 5 line for loop
<3> foreach($user_database as $db) { ... }
<5> humm
<4> theres some neat stats in here
<5> hmm... i'll consider using that...
<4> my servre does 26.21 queries per second
<4> 122million selects in the last 83 days
<6> anyone know what slackware uses for package management?
<0> show stats;?
<4> 188million total queries
<4> evulish: i dunno. i just clicked on stats in phpmyadmin
<4> memorizing administraive sql is for chumps
<0> ansimation: it doesn't really have one
<0> 'pkg' is the best you get, i believe
<5> groogs hmm... i'll complicate then and make the way you suggest.
<6> nothing like aptitude to download packages from the net?
<0> wget
<5> groogs btw, what's this server ? webhosting or something ?
<4> gr, stupid people. "number of joins that do not use indexes: if this is not 0, you should check your indexes: 1million"
<4> Bl4ckB1rD: yes,shared hosting
<5> i see
<0> hrm
<0> i don't see any stats button on phpmyadmin here
<7> i don't know if phpmy has a stats button
<7> or stats features
<5> 1,794 3,835.15 63.92 1.07
<5> yes you have
<5> Runtime Information
<4> its on the front page
<5> should solve the issue lol
<0> i'm using an old*** version
<0> 2.5.7
<5> i have 63.92 queries per minute lol. :D
<4> er .. howd i get htere
<4> oh right, show runtime information
<5> groogs what's the server load ? lol
<4> load average: 0.12, 0.13, 0.14
<5> huh wtf
<5> and that many traffic ?
<0> 1058768 selects
<5> i have dual Xeon 3,2 GHz 64 bit and 4GB ram and i have higher load than you with less traffic... huh
<5> groogs what versions of apache / php / mysql you use ?
<4> heh, this server isnt that beefy either
<4> dual core intel p4 i think, 2gb ram
<5> aha
<5> i see
<4> model name : Intel(R) Pentium(R) 4 CPU 2.80GHz


Name:

Comments:

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






Return to #php
or
Go to some related logs:

kun pieraisee niin lemuaa
#allnitecafe
#linux
promošin
www.egghelp.org
belamısın
#php
#allnitecafe
#india
Anne-Julie undernet



Home  |  disclaimer  |  contact  |  submit quotes