@# 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> but i will create this object in of fuction, i hopefull that php doesn't remove it when it ends the function
<1> if there's no reference to the object then it'll be destroyed (hopefully)
<0> how?
<0> i don't understand
<0> but i am doing a new, then this is a dynamic object... php should not remove it
<0> no?
<0> i think this happens in c programming
<0> kestas, do you think php works so?
<0> i am going to create a object in a function and after i am going to return this object... then is there any problem with this? this is my question
<0> this object will be created with new function
<2> my date functions will not work.. Ive been in mysql for five hours becuase that's where I tought the trouble was... Ive examined php.net date functions, and mysql's functions to no avail.. no matter what combo of date I try, it wil not shake this format: http://pastebin.com/554139 I want february 14, 2006 time
<3> How do I mysql_real_escape_string the entire $_POST[] array?
<2> why is http://pastebin.com/554149 not working?
<2> almost 500 users.. anyone here? :)
<4> CaptainMorgan: works for me
<2> what is the output ?



<4> date_format(now(), '%M %d, %Y %h:%i') ==> "February 14, 2006 07:30"
<4> php -r "echo date('F l j Y');" ==> February Tuesday 14 2006
<2> DShadow, where in my code ?
<5> o.LO
<2> the echo date, is a variable - date_art
<5> When people start asking that means something is badly wrong.
<2> yes. like I need sleep
<2> but this is really pissing me off
<4> is date_art a unix timestamp?
<2> because it's not that difficeult
<4> if so, then you need a from_unixtime() in there.
<2> DShadow, - datetime
<2> i have tried timestamp thought
<4> then you need a unix_timestamp() if you want php to do the date conversion
<6> What is the best way to secure apache2/php on a server that has multiple users so that a malicious user can do include("/home/userfoo/public_html/config.php"); ?
<4> safe mode. also, apache2 has a way of configuring it to allow a per-vhost uid, so each site can only run as the user who owns it
<7> can anyone recommend a php editor with code comparison?
<5> ultraedit.
<6> DShadow: okey, do you know the name of the apache2 thingy?
<7> Stormchaser: I'll have a look at it thanks
<6> hmm, mpm-itk maybe..
<8> Hi could someone please help me to setup php on apache2 using macosx? apache2 is up running without any problems and i've added this to my httpd.conf: LoadModule php5_module /usr/local/php5/libphp5.so , AddModule mod_php5.c , <IfModule mod_php5.c>AddType application/x-httpd-php .phpAddType application/x-httpd-php-source .phps</IfModule> and restarted apachectl but still no success on viewing php files
<9> anyone can help me with PHP \ JAVA on php?
<9> i need import a .jar file on php
<10> lo
<11> heh, good luck with that one
<12> I'm using php 5.0.4 on apache 1.3.33 and I have some problems with the built-in xml-rpc functionality. It all seems to work pretty well, but the response header from the server does not include "Content-Length", which makes some libraries (notably: xmlrpc++) fail.
<12> Am I missing something? Do I need to set a switch somewhere in the config to switch this on?
<13> people, what am i doing wrong?
<13> http://pastebin.com/554217
<13> the file "mjpeg_unicast.php" is not being created
<13> why?
<14> file permissions?
<13> ?
<13> whose?
<14> yours?
<14> other than that i dont know because it's 6:30 am and i'm going to bed :P
<13> hmmm...
<13> what permissions should i set then?
<15> LUCKY, 5:30am here, and I am just getting up
<16> Hi all, anyone know how to use a $var in a {php} $var {/php} block in Smarty?
<13> jiggy|laptop: yes, it seems to be the permission stuff
<13> it says "Warning: fopen(mjpeg_unicast.php): failed to open stream: Permission denied in /home/mamoru/devel/web/commute/ind.php on line 61"
<14> so set the containing dir to 0777
<14> chmod
<13> yes, this works :)
<13> thanks, jiggy!
<14> no problemo
<17> someone here is a tinymce expert?
<18> hi i have a stupid problem. what's the problem with <?php include "scripts/random.php" ?>
<19> no ;
<18> after .php" ?
<19> yes
<18> ok i had another error but now that's fine
<18> thanks
<13> what is the difference between 'fopen($filename, "rb");' and 'fopen($filename, "r");' ?
<20> Jy dont need a last ; if it is the last line
<21> OT: Okay - someone find a sport which starts with the letter "n"..
<20> nigger hunting?
<22> noppo: I believe b is for a binary
<20> night football?



<20> :/
<23> is there a way to do something like this: echo array_keys($_GET)[0];
<23> inline, grab the first element of an array
<24> ah dear
<25> fangel, netabll
<25> *netball
<25> better late than never :p
<26> wazzaaaaaaaa ....
<24> I need to do a readfile via a proxy ... has anyone done that before?
<21> Rhasta: great.. thanks ;) (my coworker challenge me to find one.. ;))
<25> yeh
<25> it's like basketball but with all the good bits taken out
<25> and mainly for chicks
<21> Rhasta: so you strip out the good thing, but to make up for it they add chicks... great sport ;9
<27> fangel: the fopen wrappers should support your proxy settings
<24> me
<27> woops
<24> ||cw: how? I've done a fair bit of socket work but I can't imagine how I'd get access to that sort of level
<27> if you need to set the proxy on the fly there's an example in the fopen manual page comments (no idea why it's there since it uses fsockopen)
<24> wow that is cool
<28> guys, im screwing around with the image uploading code from http://www.air4web.com/files/upload/ anyone familiar with it? it allows me to upload (just had to give the apache user the correct permissions), but doesnt display the thumbnails at all
<21> ||cw: goodie, but why did I have to know that ;)
<27> fangel: cause i'm still sleepy and crossed the lines
<21> ||cw: ohh jolly good..
<29> hey
<27> Redb3ard: does it need GD and does your GD have all the required libs? (jpeg, png, gif)
<29> do connections to a mysql server automatically get closed when the execution of a script finishes?
<28> yes, i compiled php with GD, use it in quite a few places
<29> because i've seen a lot of scripts that don't close the mysql connection and yet it the DB allowance never gets exceeded
<30> hi, i have a site that is secured by htaccess. and i have another one that is secured by a php login. is it possible to give the login-vars from the php site to the htaccess site?
<28> IIcw, it seems to resize the image to thumbnail, and then spool it out without ever writing it to file, but im no php guru, not making alot of sense to me yet
<30> so that if someone is logged in to the php-site automatically logs in to the htaccess site?
<31> pcb-dennis: no.
<30> Meltir, really no chance?
<31> the phpstuff is session/cookie, and the htaccess is hadeled by browser.
<27> pcb-dennis: not unless you find a way to inject them into apache
<30> arg
<30> okay thats bad for me
<31> what you could do - is make the htaccess login data be used in the php site.
<30> hm
<27> you might be able to trick it with javascript to set http headers
<27> if that's possible
<30> i think the better idea would be to remove the whole htacces thing
<27> but http auth has to come from the browser, i think
<28> IIcw, if i didnt have php compiled with the necessary toys, id get errors in my apache log, right?
<30> okay thank you all
<24> that function worked, spot on, ||cw
<27> Redb3ard: no, but you might get them in your php error log
<28> ill check that then
<27> aidan`: the comments are awesome like that :)
<30> hm is it possible to secure a whole directory with subdirectorys?
<30> with php?
<31> pcb-dennis: sure. check the session in every script
<31> .htaccess is easier thou.
<30> yes
<30> hm
<30> the whole directory is html....
<30> there are no php scripts yet
<30> thats crap, i need a single sign on for the php-part and the html part
<27> pcb-dennis: then one of the 2 will have to redone
<30> it seems so :(
<27> pcb-dennis: btw, you can simulate htaccess with php only, look up http_auth
<30> ?
<31> pcb-dennis: use the htaccess. the data sentin it is always in the $_SERVER vars in every file accessed. you can use that info to simulate the login into php.
<30> hm
<30> that sounds good
<31> thats what i would do.
<32> hey all. is there a way to say to the browser 'redirect to this page, but don't update your address bar', like mod_rewrite does by default?
<33> anyone here speak japanese?
<32> header('Location: ...') acts like mod_rewrite with [R]: the address bar changes
<31> davidhouse: php.net/header
<27> it might not be to hard to have the php part use http auth instead of a form, then the creds would try to cary to the .htaccess site so long as you make the site names the same in the http auth part (in php you can set it to whatever you want
<32> Meltir: which header do I want?
<27> Dave123: no, a redirect tells the BROWSER to go to a different page, rewrite tells the SERVER to send the client a different page


Name:

Comments:

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






Return to #php
or
Go to some related logs:

ububtu C compiler cannot create executables
#perl
#perl
#php
fedora 2 eth0 device not found
ubuntu +chown +take ownership
alc8800 driver
lvm create RAID1 fedora
#linux
update-manager ubuntu-server



Home  |  disclaimer  |  contact  |  submit quotes