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



Comments:

<0> mr_blue: and in /etc ?
<1> reading that too :p
<0> you use debian?
<1> dj_segfault: it's not a question of what can't be done, it's a question of what the script is going to look like and how well it's going to work
<2> Darien: Are vnc'd into my box?
<3> phphunter: your not on msn now ar eyou?
<1> PHP is a lot more flexible, and it's actually really small (a compile with just ncurses is 5.8M)
<3> roundyz@hotmail.com
<1> dj_segfault: as cool as that would be, no, I'm not :p
<0> mr_blue: have you actually reloaded the config file of apache?
<4> just switching to that account :)
<3> ok
<5> http://pastebin.com/548526 -> I can't figure out why the page doesn't work. when you click submit the page refreshes but beyond that nothing happens
<0> after adding .html to the AddType line?
<6> quick question: can you use php directly to query how much free space a harddrive has? If so, how?
<0> mr_blue: if it still doesnt work then try putting this line into the config anyway: AddHandler application/x-httpd-php .html



<1> Magilla: you can make a call to df -h
<6> Darien: win2k3 machine
<1> hmm
<1> there's probably a way
<1> but no idea what it would be
<0> http://ch2.php.net/disk-free-space
<7> i have the query and there is only 1 row that will be answered (a percentage thing), is there PHP code that can be used to spit out that one answer w/out having to do the while --> echo $row loop?
<6> thanks, kon
<0> you're welcome, Magilla
<0> i encourage you to never use system() calls
<8> i have a query that when i inject into SQL using the command line it works but when I send it via mysql_query($query,$link) it doesn't but mysql_error($link) does not return anything. What is the deal?
<0> only in very special circumstances
<6> indeed
<9> kon, i did all what you said but still not work ... i think i'll keep the <script language="php"> .... </script>
<7> or die(mysql_error());
<7> eek...sorry...wrong win
<8> Iontas let me try that
<0> mr_blue: you reloaded apache?
<8> ok
<0> /etc/init.d/apache2 reload
<8> it dies
<8> but still not error message
<7> or it may be - echo mysql_error();
<8> i have tried both
<8> there is no error
<8> like i said I have echoed the query to the browser output and then copy and pasted it into the command line and mysql accepts it
<9> kon, yes
<9> kon, i restarted apache
<7> i have the query and there is only 1 row that will be answered (a percentage thing), is there PHP code that can be used to spit out that one answer w/out having to do the while --> echo $row loop?
<6> is it easy to get a list of local drives?
<2> Magilla: You mean under Windows or Linux?
<8> ya just $result[0][fieldnumber]
<6> Linux
<6> errr
<6> Windows
<8> anyways i have a headache now
<6> <-- overtired
<0> mr_blue weird that it doesnt work, i dont know :(
<6> sorry
<8> errr BSD
<6> lol
<2> Magilla: No, I don't think there is.
<6> ok, no worries
<6> thanks
<0> do you use vHost direcitves or htaccess where maybe something is overridden, mr_blue ?
<2> Iontas: Just call mysql_fetch_array or mysql_fetch_asoc without a loop
<9> everything works well but i need to give a .php extension
<10> dudes. how does one turn off PHP notices in error reporting via php.ini???
<8> ok that's it i have a migrane now and I need to leave for work
<8> BigE!
<8> maybe you can help me quicky
<5> http://pastebin.com/548526 -> I can't figure out why the page doesn't work. when you click submit the page refreshes but beyond that nothing happens
<11> Sure, heh, what's up?
<0> mr_blue: well, using script is probably better anyway, as setting a general php handler for html files would prevent you from actually using normal HTML files
<8> I have a query that i am sending to mysql_query but it is not running, but if i copy and paste the query from the browser output and paste into the command line it works
<8> mysql_query($query,$link);
<11> UncleMantis: Have you used mysql_error() to see if it's throwing an error?
<8> oh and mysql_error returns nothing
<11> Heh.
<11> How is it not running?



<8> ya, so reason for migrane is valid
<8> the fields are not changing
<4> quick question... is it possible to use some cmd() type of function to get data from an application that's already running?
<11> falieson: You shoudl see all your variables in the query string after the form is submitted... do you see that when clicking submit?
<8> if i run the query by command line the fields change but if i run it within PHP the fields do not change
<11> UncleMantis: Have you printed the finished query out right before you use mysql_query() to make sure it looks like it sould?
<8> yup
<8> and i paste that result into the command line and it runs
<12> wasnt there a foreach keyword in php?
<9> ok thx for your help kon
<11> phphunter: You can use shell_exec() or similar to interact with the shell.. from there it just depends on the application you're using I'd suppose.
<4> ah - shell_exec()!
<4> thanks BigE
<11> _SKiTZO: http://php.net/foreach
<11> phphunter: Welcome.
<0> oh btw mr_blue: i just realised you used <IfModule mod_php4.c> sure it isnt using sapi?
<4> anyone up for a javascript question even though we're in php ? (tried #javascript - weren't overly helpful)
<12> BigE: it dowsnt compute on my PHP :P
<0> phphunter: shoot =)
<8> BigE any clue what could be going on here? something just isn't right and no one is confessing :P
<12> heh oops.. typo
<7> here's my query: select (SUM(IF(self=1, 1, 0))/COUNT(*)) * 100 AS percent from <table>......how do i output that in PHP?
<4> okay :D thanks kon - i'm trying to find a way to load variables into the header of an html page using DOM and JavaScript to get nodes and append..etc
<7> err..output the answer that is
<11> UncleMantis: Not sure... pastebin time. :P
<13> hi! anybody has an idea why i cant read form variables?: http://owe.homeip.net/owe/test.php.txt
<4> but - can't find the way to add a single variable "eg var bob = "yes"; " to the header using this method
<14> can you guys tell me how i can include a file and still allow it to reference files from its own directory?
<13> $output will never be set!
<4> the variable is added - but not accessible to javascript functions - lost on what to do next :D
<11> Iontas: http://php.net/mysql_fetch_***oc then echo $row['percent'];
<7> thx
<8> http://pastebin.com/548554
<14> e.g. im trying to include a page in as folder named java, but said page needs to reference the files within the java directory but cant...
<15> Konradi: $_GET['output']
<16> phphunter: please try if you can query me
<13> CryWolf: that works, thanks! i diddnt remeber this is neccessary, is this new?
<8> BigE brb
<7> BigE: didn't work
<15> Konradi: available as of php 4.1, required by default as of php 4.3, I believe.
<13> CryWolf: o.k. so this is a feature i guess
<11> Iontas: Pastebin your code. That method works fine.
<17> Damn
<17> $result = mysql_query('SELECT * FROM Login where uname="'.$uname.'"') OR header("Location: index.php?include=error/uerror&uname=".$uname." ");
<7> BigE: i don't doubt that...i'm sure i hosed something up
<17> Whats wrong with that?
<17> It doesn't do anything
<17> Am I not allowed to do OR header()?
<7> pastebin.com right?
<15> Kcaj: what condition are you checking for?
<11> Kcaj: Uh... why in the world would you want to do that?
<11> Iontas: Yes.
<17> Oh lol wait
<17> I should mvoe that OR
<7> i hate our network...brb
<7> work's proxies ****
<11> Kcaj: You just shouldn't use OR like that... it's evil. if (($result = mysql_query(...)) === false) { header('Location: index.php?include=error/uerror&uname='.$uname); exit; }
<14> can i put /home/usr/folder/file.ext as a valid reference point for files in different directories?
<11> Mr_X: Meaning what?
<7> BigE: had to use alternate: http://cpp.enisoc.com/pastebin/6714
<14> im trying to be able to use one header file and one footer file in all my pages
<11> Iontas: That's fine. FYI though, there's also...
<11> !+pastebin
<18> Submit your code to http://hashphp.org/pastebin or http://cpp.sourceforge.net or http://php.pastebin.com then tell us the URL and a summary of the problem. Don't flood by pasting in the channel.
<14> but in a way where the images they are referencing, show up
<7> kewl
<7> thx...so what'd i screw up?
<7> :-P
<14> so if i include header.php (location - /home/usr/header.php) in a file.php (location - /home/usr/folder/file.php) it will still display the images in header.php
<11> Iontas: Only thing I can think of is putting () around the whole equasion... also, you do need to start using mysql_error() and check for failed queries.
<11> Mr_X: Perhaps you should just set a variable that tells the header and footer files where the images are, and then use that variable in those files.
<19> how can i post data into a form field?
<14> i was thinking that too
<8> back


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#ubuntu
#linux
aprtition types
acer 3613 freezes
bhaubeck linux
failed fluxbox.cat
difference between i386 and x86
#perl
#mysql
turn on telnetd on ubuntu



Home  |  disclaimer  |  contact  |  submit quotes