@# 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> arpad: true, let me check
<0> arpad: thanks! you were pointing to the right thing :-)
<0> do I have to set something in the directory setting of apache to be able to overrride php_flags in htaccess?
<1> urlencode would have worked too bad
<2> Hello
<1> tokyoahead yes
<3> tokyoahead: the setting in question is AllowOverride, i think you need 'Options' for php_flag/php_value
<2> What does this usually mean? Warning: Missing argument 1
<2> in function()
<0> arpad: thanks a lot!
<4> question about cl***es, what is the function name for the function inside a cl*** that is automatically run when an instance of the cl*** is created?
<5> The terminology? "Constructor"
<6> Gimp_: __constructor() in php5, and cl***name() in php4
<4> itrebal: thanks
<5> __construct(), rather.
<6> right



<6> and then __destruct is run when closing
<6> alright, 'night you all
<7> i'm moving from mysql_query (php bultin) to DB just so i can use bind vars and avoid sql injection. is this a bad solution? i prefer it to mucking up all my damn sql strings and figure i might get some features.
<3> mandric: mysqli would be a more obvious choice
<7> arpad: hrm
<7> thanks arpad
<8> hey
<8> is the config file (php.ini) the same for php5 and php4?
<8> or are they different?
<9> different
<10> Does anyone have a link to a tutorial showing how to implement Taggin?
<8> ok
<10> in any web app
<10> or the DB structure for taggin
<11> how can i include a css style sheet into my php
<11> http://pastebin.com/723950
<11> thats my code
<11> it works perfect, i just need it to follow the rules of that style sheet :)
<12> any Body have a God chat source for a multiplayer game ?? i need to have a cheat working with ping pong
<13> Fr0zen: you include a css style sheet with your html
<11> so i cant do anything
<11> like it is now
<11> did u see my pastebin
<13> !tell Fr0zen about u
<11> thats supposed to be genenerated into becoming a myspace bulletin
<13> I took a quick look at your pastebin. It's irrelevant to your question.
<11> can i put it in <style> tags?
<11> that script outputs code for a myspace bulletin
<11> i need it to include that css
<11> for it to work
<13> !tell Fr0zen about enter
<11> lol, i know sorry
<13> Fr0zen: write your html as you wish. then make PHP output that html. It's as simple as that.
<14> i am having some trouble including something. i want to include foo.php from another directory. well foo.php includes stuff in other directories relative to itself. how can i fix this without changing foo
<13> Syco54645: is your problem that you're including something more than once?
<3> Syco54645: you could add foo.php's directory to the include_path, but you're generally much better off adding a single absolute path to the include_path and making all your includes relative to it
<14> CryWolf: i believe that is it, but the problem is that i use the stuff that is included 2 times before i make the include to foo. i thought that require_once would fix it, but it did not
<13> Syco54645: if require_once didn't fix it, that's not really the problem.
<14> CryWolf: ah ok. i was beginning to worry
<13> Syco54645: if the problem is actually the relative paths, a common technique is setting a constant as the base path, and going off that.
<13> It may well see two different relative paths pointing at the same file as different files. I don't know for sure, though.
<14> CryWolf: this is the only thing in php that gives me trouble.
<15> whats the quickest way to find out what libraries your php installation has?
<3> phpinfo();
<15> thanks
<16> stream select won't take a SysV message queue as a param will it?
<16> i'm trying to find a efficent way to monitor both a message queue and several p_opened file handles
<17> any idea why is a T_VARIABLE error -> protected $db_p*** = $_SERVER["DB_P***WORD"];
<18> jon_blaze: php version ?
<17> 5.1.4
<18> most likely because that variable comes from a private method
<18> Altough im not sure i only do 4 for now
<17> ok... I'll check it out. thanks
<18> Objects in for mean
<18> jon_blaze: no problem
<18> s/in/in 4/
<17> I found a fix -> protected $db_p*** = '{$_SERVER["DB_P***WORD"]}';
<19> http://us2.php.net/manual/en/function.is-bool.php
<19> look at the comments in the example. is that a typo?
<20> $fileResource=fopen('myapplication.pid','w');flock($fileResource, 1); will make "myapplication.pid" is not writeable by anyone else, am i correct? can it be checked through is_writeable() ?
<18> Ox41464b: http://us2.php.net/manual/en/function.flock.php#64096



<21> hi all, goddady hosting sometimes disables functions on their system. Does anyone know of a way to see what function are disabled?
<18> trelayne: phpinfo ();
<21> thanks Diva
<18> trelayne: http://us2.php.net/manual/en/function.ini-get.php <- even
<20> DivaSatanica, whats my question again... ?
<18> Ox41464b: if you can use flock as a unique resource for one user
<20> and... the "question" is ?
<18> Ox41464b: i wanted to point out the race condition
<22> How do I make an include path that works for all my files if I can't get to httpd.conf and php_ini include_path in .htaccess gives me a 500 error
<18> Ox41464b: do whatever you like
<18> Triton: set_include_path ?
<22> I'm trying to do it in a .htaccess or just so I can put include specificfile.php and it will know where to look
<22> in all my files
<18> i see
<22> so am I just out of luck?
<18> hmmm i wouldnt say that
<18> altough i never had the need of using PHP into .htaccess files
<18> Triton: maybe I should say thanks since it pointed me out something ;)
<22> its a pain but I need it done since its not my server
<22> Its amazing what you can get for $3 a month
<18> Triton: you want to avoid the ../../../ thingie
<22> yes, very much so
<23> hey guys. i have a dilemna
<18> Triton: hmm personally i use pre-includers tha means scripts that include certain includes
<18> s/tha/that/
<22> Most of the time I'm only including a header and footer, both which have ifs blah include abunchoffiles.php,
<18> Triton: i see :)
<18> Triton: an objective approach would be better
<18> in any case nevertheless
<18> Triton: can you describe more in depth what do you want to do so i could suggest something ?
<24> anyone know what/how include() or fopen() using url wrappers determines what interface it will use for outgoing connections? Probably something with linux sockets. Trying to firgure out how to specify outgoing interface
<18> Triton: like if the directory depth is known ....
<18> c0l0rad0: fsockopen ?
<22> I simply want something to put in .htaccess or that will take effect globally that will set the php include_path, most of the time its only 1 directory deep, I can't use php_ini include_path in .htaccess because php is not installed as a module
<22> or so I've read
<18> and http://us2.php.net/manual/en/function.stream-get-transports.php
<18> Triton: :| eeek
<18> maybe an additional file that would use set_include_path for a given case ?
<20> How do i check a file is LOCKED or not? *Locked through flock()*
<22> DivaSatanica: yeah, i've thought of that but I would still need to put the absolute path in every single file I have directing to that one, or figure out the ../../ mess
<24> DivaSatanica: php 4.4.2 using fopen("http://www.somesite.com";). I have a bunch of ethernet aliases eth1:0, eth1:2, etc.. Seems like it uses the last interface I added, where as postfix will use highest interface eth1:99
<18> Triton: no no, on the top directory
<18> c0l0rad0: so what you really want to do is to specify the interface which this is going out
<18> s/which/were
<22> I have an idea, ok, thanks Diva
<24> DivaSatanica: yes, seems to change when I add a new eth alias
<18> :|
<18> c0l0rad0: i've no idea and i dont know if its possible
<18> c0l0rad0: from PHP
<18> maybe you would have to do some routing executing commands from PHP
<4> do i have to use an extension to have one cl*** work inside another?
<18> Gimp_: no, you could just require/include the file and then access the file directly
<18> Gimp_: or even cerating a new cl*** inside that same cl***
<18> s/cerating/creating
<4> DivaSatanica: ok, but i get an error saying my instance is an undefined error
<25> what's the difference between $foo=new Bar(); and $foo=&new Bar();
<18> accesing the method directly i mean
<25> i don't understand how that reference operator is supposed to do anything there
<4> DivaSatanica: heres what i have, i have a instance of a cl***, thats $err. now, i have another cl***, sql, and inside sql, it uses $err->addError
<18> JakeConnor: it would if you would have it defined in some place else, both instances of the objects would be aliases
<25> DivaSatanica: so that means if i do $foo=&new Foo(); then $x=$foo; then $x is automatically a reference of $foo?
<18> no, $x is just a copy of foo
<18> Gimp_: aha
<4> DivaSatanica: ?
<18> Gimp_: use a constructor method in your cl***
<4> that makes a new isntance of the err cl***
<4> ?
<18> Gimp_: that is a method that has the same name as the cl*** does
<18> if you need to use another cl*** without extending
<4> uhh
<18> just include the cl*** file
<4> the constructor method is __construct , is it not
<18> Gimp_: version ?
<4> 5


Name:

Comments:

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






Return to #php
or
Go to some related logs:

Ubunto gcursor
apt-spy not found bug
#math
ubuntu FTP server GUI
#perl
fluxbox communist
Tualatin menuconfig
iptables -m recent syn flood
\eml files in Linux\
operation not permitted ping Fedora NVIDIA



Home  |  disclaimer  |  contact  |  submit quotes