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



Comments:

<0> I have a login form, which goes to an authcheck page, but if i skip the login form and just go to the authcheck page, it still logs me in, how can i stop this?
<0> the authcheck page checks to see if the user exists in the database, if it does then $success is set to true and the session is started
<0> but if I go to the authcheck page without using the login form, it still logs me in :S
<1> hi everyone
<2> bullrage got any code for the authentication page?
<0> Hit3k: http://hashphp.org/pastebin.php?pid=6792
<1> I'm having some problems with an OpenType font... instead of some accentuated chars, such as "", I get other strange signs, such as ""... it's not an UT8/ISO problem, but I don't know where it might come from... I'm using gd2 extension with PHP 4.3.10
<1> any help would be welcomed :)
<3> bullrage: a better way to do it is to select the user's p***word from the db based on their username, then compare the given username to that
<3> and don't use mysql_result, use mysql_fetch_row
<3> and a mysql_num_rows before that as well...
<0> ok.. but any idea why its logging me in without actually using the login screen?
<0> oh dear.. using mysql_num_rows and mysql_fetch_row seems alot easier
<4> balbinus: Are you using UTF input to GD interface?
<1> I don't exactly remember... I remember having tried both UTF and ISO... I'm gonna check anyway
<4> balbinus: Your font should be the exact same type as the string encoding, that you're using...



<1> the text seems to be iso
<5> what is the name of the variable or function that can tell me the document root ?
<1> Stormchaser: but using utf8_encode() on imagettftext does not get things better...
<5> $_SERVER['DOCUMENT_ROOT'] doesn't seem to be set
<6> Hey guys can anyone recommend some decent PHP books (I don't know php at all, not one bit) I would like to learn it, but since it is such a broad topic im having real trouble finding a decent starting place, can anyone point me in the right direction?
<1> threat: you can try a print_r($_SERVER) to check...
<2> damn.. now im having issues with my login script
<0> lol stole my code Hit3k? :p
<2> I made it check if the session doesnt exsist and when i login.. itt keeps linking me back to the login page
<2> bullrage i wrote this yesterday
<7> how the hell do I gzwrite to stdout?
<0> I'm kidding man
<2> but i would steal code :p
<7> oh
<7> gzcompress
<5> balbinus, ok, it does work if I put it in the main script that gets called first, but any scripts that are called within a script do not have the $_SERVER['DOCUMENT_ROOT'] set
<5> balbinus, do I need to make something global?
<1> what do you mean by "scripts called w/i a script"? include()'s ?
<6> Anyone?
<8> Hi all!
<0> rog3r: PHP 5 for Professionals
<8> If I have two arrays (that are not dictionaries) how can I concatenate them?
<0> Professional PHP5*
<1> rindolf: array_merge() ?
<8> I want to make (1, 2, 3, "Hello", "There") out of (1,2,3) and ("Hello", "There")
<5> balbinus, no, I mean the script that gets called first is index.php, within that file I call <img src="/scripts/gd/button.php?text=woot&bg=/images/bg.gif">
<1> ok, so these are two independant scripts
<5> yes
<1> threat: what if you call directly /scripts/gd/button.php?.... from your browser window? can you get the $_SERVER['DOCUMENT_ROOT']
<8> balbinus: seems like it, thanks.
<1> rindolf: np, and don't forget to check out PHP online doc... that's what I do everytime I wanna something "unusual" with an array :)
<9> Whats the header() value for checking the referrer of a pahe
<9> header("Referrer: bleh.php"); ???
<1> header() sets a header value
<1> it's not targeted at checking their values, afaik
<6> Hey guys can anyone recommend some decent PHP books (I don't know php at all, not one bit) I would like to learn it, but since it is such a broad topic im having real trouble finding a decent starting place, can anyone point me in the right direction?
<10> anyone got an idea of how to create new users for vpopmail(using qmailrocks install for email), maybe a way to execute vaddusers from a php page?
<9> rog3r:: start on PHP.net
<11> hrm, how do you make regexes use multiline mode?
<12> rog3r: Try http://php.net/books.php
<6> thanks
<5> balbinus, umm, yes that seems to work
<0> wobbles: I forgot the books page existed :x
<5> balbinus, actually it seems to work good now :\
<1> :)
<5> balbinus, do you know anything about gd? :)
<13> Seadog with /m
<11> PerL_MonK, where abouts?
<1> threat: err... basic stuff, yeah... I'm currently struggling with OpenType fonts ;)
<5> oh
<13> Seadog preg_match('/regex/m', $var); // used for $var containing \n
<5> I am trying TrueType fonts, but I am having issues changing the colour when I run more then one imagettftext
<11> PerL_MonK, ah ok
<1> threat: can you copy/paste your current code on a pastebin?
<11> hrm, I'm trying to stripout <?php(newline)include "blah";blahblah;?> but doing $var = preg_replace("/\<\?php.*\?\>/m", "", $var);
<11> but it still doesn't strip it out
<5> balbinus, ok
<5> what is the url ?
<13> oopsi, sorry Seadog it was /s :(
<13> i'm beginning to forget regex slowly...
<1> threat: http://www.pastebin.com/ will be ok, I think ;)



<13> /<\?php.*\?>/s
<13> this should do it
<5> balbinus, hehe ok ---> http://pastebin.com/730916
<5> balbinus, $bg_img is an image that is 198 * 2 px wide
<1> threat: k... and where's the color prob?
<1> Stormchaser: do you have any idea of how I can check my font file's encoding?
<5> balbinus, line 37 and 38 define the colours to use, although the first colour define is being used for both fonts, not just the first one
<5> balbinus, can I prv msg you the url to the script?
<1> threat: yeah, sure
<1> now that I'm identified ;)
<5> hehe
<5> balbinus, oh identiy crap :/
<5> balbinus, grrrr http://synergysystems.yi.org/scripts/gd/button.php?text=Test&bg=/images/left_menu/link_1.gif
<1> ok
<0> err when using mysql_fetch_row() it fetches back the username stored in $row[0] but not the md5 p***word in $row[1], any ideas?
<1> threat: and the colors are not what they're supposed to be, I suppose ?
<14> "INSERT INTO user (userid, username, usergroupid, email, p***worddate, joindate, lastvisit, lastactivity, salt) VALUES (NULL, '$row[username]', 4, '$row[user_email]', '$today', '$date', '$today', '$today', '$salt')"
<14> how do I use the arrary $row in this code?
<1> Nissim: well, I guess you're using it to get the data for the SQL request :)
<0> err when using mysql_fetch_row() it fetches back the username stored in $row[0] but not the md5 p***word in $row[1], any ideas?
<15> hi, sendmail_from works on linux using local MTA?
<12> bullrage: Almost sounds like the element night not be populated?
<4> backz: try it
<0> it is wobbles, i'm looking at it now in phpmyadmin
<15> Stormchaser, dont works! mail() returns 1 but mail message isn't sended.
<15> I'm using postfix
<16> backz: did you check the mail log?
<15> mst: D494D180D9: to=<danielkl@gmail.com>, relay=none, delay=211, status=deferred (connect to gsmtp183.google.com[64.233.183.27]: Connection timed out)
<17> gah
<17> lol
<17> thats like so silly
<0> wobbles: same applies if I use fetch_***oc
<0> it just won't retrieve the p***word
<0> nevermind, my query was wrong
<16> backz: what does any of this have to do with PHP?
<9> session_start();
<9> session_register('username');
<9> I know we use $_SESSION superglobal now.. whats the replacement for the session_register('username') line
<18> session_id
<19> no
<19> Dr4g, there is no replacement
<19> Dr4g, you just remove the session_register()...
<9> the equivelant
<19> Dr4g, the equivelant would be like $_SESSION['username'] = $username;
<19> Dr4g, there is no need to register the variables anymore, thats old stuff and if you php version requires it then its high time to upgrade
<9> I'm on latest PHP version
<9> Okay thanks..
<18> is there a PHP professional here who wouldn't mind if I PM to seek advice about my job interview and what to expect?
<18> It's my first, so I would really like some thoughts
<14> What is the part of $_SERVER arrary that I can find the domain name?
<20> Nissim: try print_r($_SERVER); ?
<21> pdc303: there are a lot of pro's here but most don't like pm's so just ask.
<1> Nissim: basically, do a print_r(), and you'll find :)
<15> mst, ****! firewall is blocking my MTA!
<22> is there a version of zend optimizer for glibc22? all i see on their download page is for 2.1 and 2.3
<16> your firewall blocks outgoing connections? that's quite paranoid
<18> CyaNox: ok then. Will do
<16> winmutt: emacs
<23> anyone have a windows editor that support sftp and synstax highlighting and is free?
<1> troll
<23> or low cost
<24> hey, I need a hand with Zend v3. Its installed on PHP 5.1.4 and appears in phpinfo(), but when I try to load an ENCODED page, it claims its not installed. Any suggestions?
<23> killertim: restart apache?
<21> winmutt: maybe editplus?
<16> balbinus: visual studio * 10 + tetris = emacs
<24> tried many times
<24> doesnt hlep
<16> editplus is nice
<23> CyaNox : doesnt do sftp. :(
<12> winmutt: http://www.midnighthax.com/phpeditors.php
<23> http://www.midnighthax.com/phpeditors.php
<23> er
<23> I MISS KATE


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#perl
#css
#linuxhelp
conky refresh kde desktop
qdepend gentoo
ubuntu startx cannot stat
#python
xorg-server app autostart
escobar5
ubuntu cdrom must specify the filesystem type



Home  |  disclaimer  |  contact  |  submit quotes