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



Comments:

<0> CrazyTux, can i know with what tool you have convert from hex to base 10 ?
<1> Adrenalin`, in php you can use hexdec()
<0> that's nice, wonder why google can't convert, heh (it don't reconize 0x7fffffff hexadecimal in decimals)
<2> hm, somebody got a minute?
<1> robert_, ask your question
<2> ok
<3> 35 seconds left...
<2> well, I'm writing a new form parser(from the ground-up), and I seem to be having issues with the SQL generation for the employees section of the form
<2> CrazyTux: http://r-butler.net/~robert_/code/post.phps
<4> ./* | COMMENTED OUT | thats original, lol
<2> lol
<2> that was a test
<2> though, now I've got real form data to test with
<4> you're 22?
<2> yep :P
<4> wild, well anywho back to your problem i'll shutup



<2> have been since last sept. :P
<1> robert_, wow... I can't believe I continue to see code like this.
<2> ?
<2> is that good, or bad?
<4> variable variables is never good
<1> robert_, the later.
<2> oh, that
<1> robert_, What exactly are you trying to do with this jungle? :)
<2> create several SQL queries from potentially lots of post data
<2> heh
<2> and make sure that if I receive fields from the "optional" entries, that the complete form information is filled in for that employee/member/whatever
<1> robert_, one second...
<2> ok
<1> robert_, http://pastebin.com/564197
<5> is php5 generally backwardly compatible with php4? ie will most/all php4 code run as php5, or will lots of things break?
<1> robert_, this makes life alot easier, then playing with looping through and creating queries on the fly, based on who knows what...
<1> robert_, it might be more work to start, but I guarantee less in the end.
<6> does anyone know what apxs2 is part of?
<4> apache
<6> i dont seem to have apxs2 even though apache is installed
<4> what about apxs?
<7> apache2
<6> ah yeah well apxs is present...
<4> good then
<5> cirkit: you might also need an apache2 dev package?
<6> but the php configure options state apxs2 hehe..same thing?
<4> check the apache version
<4> apxs can be for 2 as well
<4> if it's a package it all depends on how the package was setup, some are apxs2 some aren't
<8> hi
<1> paines, Hello :)
<9> Hi i have select a string from a mysql database, that contains, double quotes, single quote, what is the best way to excape this for presentation in <input name="test" value="{$record['test']}"> having some problems.
<10> hi.could someone tell me how to cut a string after a value of words?like on some news teasers.sorry about my bad englisch.thanks in advanced
<5> davro: depends on which db interface you're using. they usually have a function that escapes strings for you
<11> dup1o: substr
<12> if im sending out an email using mail, how can i get the text in the body to go to a new line without using html ?
<10> lizardX : but with substr i just can cut after a value of characters and not words.or what you think?
<1> Xspl0it,
<1> Xspl0it, \n or \r\n depending on what you
<1> Xspl0it, you're* doing \n is a newline and \r is like a carriage return.
<13> hello can somebody tell me where i can find a php script with how can i create a php login page (username - mysqluser , p*** - mysqlp***) ?
<13> tutorial...or something...
<4> there's lot of results off google for that sort of thing
<13> oh..sorry let's see...
<4> we dont really keep a list handy, because all we'd do is look on google too
<8> anyone have apc running with php 5.1.2 ?
<14> is there an issue with this rtrim($VarWithTrailingComma,",");
<9> well im using php5 and mysql, mysql_escape_string, example output value="How dirty is your motorcycle \"\" \'\' " does this look ok, as its not working in input test
<15> php wouldnt format the unix epoch properly
<15> it said it was 1969, at 7:00PM
<15> Wed Dec 31, 1969 7:00 pm
<15> im formatting the unix epoch numbers from phpbb
<4> how did you try and get the time?
<4> i see
<4> then it's obviously not a proper unix epoch
<16> yeah. try date('fartfart', time());
<4> what does one look like thegh0st ?
<17> phpBB's times are unix epoches.
<4> well it's hard to get an exact fix without seeing any code what so ever
<16> its prolly something else. try generating a timestamp for the current time and using that in date() to verify its working okay
<16> but php not formatting timestamps.. its a rather bold statement to make



<15> I pulled it from a mysql db and then formatted it
<16> uh.. how did you format it?
<5> php's date and time functions are lousy. you might be able to get mysql to format it instead
<15> one sec
<15> $time = $r2["topic_time"];
<15> $time = date("D M j, Y g:i a", $time);
<17> thegh0st: add echo $r2["topic_time"]; before the date line
<17> tell us what that outputs
<5> lousy, especially if you're dealing with timezones
<4> mosty: not really
<5> i'm not sure about php5, but php4 was terrible in that respect
<16> try var_dump() ing $time before you do date() on it. it would seem plausible to me that a value of 0 would cause time to format that 1969 date
<16> lemme test that
<4> http://192.168.1.20:8080/scripts/ajax/timezone/
<17> *sighs*
<4> no problem with timezones here :P
<4> oh
<4> oops
<17> heh
<4> lol freakin ajax... my ip changed so it'll prolly bitch
<17> thankfully you're not on my network, as we are all 192.168.3.x ;)
<4> yes yes and that
<4> it's late go away
<15> doing it now
<17> its ok, just a few mins ago I had a strange thought that feb had 31 days :\
<15> Wed Dec 31, 1969 7:00 pmstring(24) "Wed Dec 31, 1969 7:00 pm"
<4> It DOESNT!
<4> ?
<17> thegh0st: hmm. What is your SQL query?
<15> http://pastebin.com/564230
<17> where's the error checking on that SQL query?
<4> lets try this again
<17> if (!$bb_query) { die('An error! : ' .mysql_error()); }
<18> hrm, in PHP5 or PHP4 is it possible to overload a user defined function?
<17> add that on line 2 of your code, just for testing
<15> lol k
<19> "
<19> Fatal error: Call to undefined function sqlite_open() in C:\www\tmwserv\themanaworld\cl***es\sqllite.php on line 70" :/
<4> http://68.147.197.231:8080/scripts/ajax/timezone/
<4> my kick *** sql timezone **** :P
<17> jiggster: London shouldn't be +0100
<20> hi all. If I have $mailto = 'some@email.addy'; $subject = 'test'; ... and then further than: mail($mailto, $subject, ...) .. can a user maliciously inject info somehow to this PHP script to send emails to wherever they want?
<4> mmm unfortunatly a lot of the integer zones are wrong
<15> no errors
<4> i have to update the entire table :( something went wrong on my import when i did it
<4> but everything else works
<15> I used phpmyadmin and went in the db, and got the string and tried formatting myself
<15> Fri Oct 20, 2000 8:01 pm, I got that
<6> php 5.1.2 is installed..apachectl claims the php5_module is already loaded but php isn't being loaded on the server when testing php
<15> still a bit off but closer :P
<4> the times are right too because lucky for my i'm not using the integers
<15> hmm this is making me angry, you wouldnt like me when im angry
<17> thegh0st: ok, add var_dump($r2); just after the beginning of the while loop (line 4 in your paste), and pastebin the result of that
<18> anyone?
<17> Seadog: I don't think its possible to do overloading functions in PHP.
<17> I'm not 100% sure on that, but I do think I've been told that when I asked if it was possible some time ago
<15> any idea whats going wrong here?
<17> thegh0st: done my suggested idea?
<18> NeoThermic, yeah someone was having trouble with it
<18> I don't see why they wouldn't allow it though
<21> hallo
<17> PHP isn't C/C++? ;)
<22> hey
<21> i have a stange issue with my opera browser
<15> NeoThermic, doing now :P
<4> ganymed: thats nice, whats it have to do with php/
<23> hi guys
<21> i have an index.php. i ope it in opera, everythings works. however, after a second or two it wants to connect to http:/// (three slashes). and it doesnt stop doing do...
<4> so what do you want us to do about it?
<17> jiggster: 'stop time and fix the problem' is the normal answer
<15> http://pastebin.com/564237
<18> NeoThermic, but still
<21> what could cause this? any ideas? it has happened since i inserted the php code and made the index.html a php file. other files work properly


Name:

Comments:

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






Return to #php
or
Go to some related logs:

the quickining
lower cpu frequency cpufreq-set
detected that fuse
eastneo
is only avaliable with the XS version
mplayerplug-in stopped
debian amd64 codeblocks
verlihub: symbol lookup error
Operation failed: sorry, you must be root or get CAP_NET_ADMIN capability to do
#math



Home  |  disclaimer  |  contact  |  submit quotes