| |
| |
| |
|
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> all of the sudden it keeps forgetting my session vars, but at the same time leaving cookies on clients <0> is there some way I could reset the php engine or something of that nature to make it work again? <1> mysql returns result, for cosmetic reasons i want to limit this to 20 characters (In php or mysql), what would i need to do? <2> Fushuing www.php.net/substr <1> why do i keep forgetting that one >.< <2> slake restart apache <2> Fushuing marijuana ? :P <1> no, i wished <1> im all out of it <0> NGhhhh... <0> What the hell is going on?? <3> i am having a little bit of trouble getting jpeg support with gd <3> i did --with-gd --with-jpeg when i compiled but still nothing <4> swentel: is there a way of specifying what the tmp-file would be before $_FILES gets this from the input form? <5> gymsmoke: for what purpose ?
<4> swentel: the current tmp dir is /var/tmp, and the perms are set to 777, but i'm still getting the error "Warning: move_uploaded_file(./rep_online.gif) [function.move-uploaded-file]: failed to open stream: Permission denied in /usr/home/gymsmoke/domains/jdtest.genxy.net/public_html/jd_upload.php on line 23 <4> Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/var/tmp/phpUfATBy' to './rep_online.gif' in /usr/home/gymsmoke/domains/jdtest.genxy.net/public_html/jd_upload.php on line 23" <5> mmm this looks like there is permission problem (mostly non-writable) with rep_online.gif or with the dir where this gif-file is <6> I have another question. <2> gymsmoke check permissions on where you want to move it <4> the perms in /var are 777, the perms in /var/tmp are 777 <6> I'm injecting stuff into MySQL ... but I want to sanitize it first... want to replace < with <, etc... <7> XShad: I don't get your function to work. http://pastebin.com/564512 Sorry, just started with php :) <8> i want to make a simple website with a forum and a system where i can post and delete "articles"... now i'm wondering whether i should use mod_perl or php <6> is there any way to do it in one str_replace, instead of several str_replace <2> echo 'Output:'.myVar('$testvar'); <2> use echo 'Output:'.myVar('testvar'); // without "$" <2> hehe... and method="get" <2> for method="post", you'll need to replace $_GET by $_POST <2> 1 second <1> how to convert UNIXTIMESTAMP to something readable to the casual user? :S <2> Fushuing www.php.net/date <1> im grabbing it from a mysql database <1> i've been looking at that <7> xshad: :-) Yap, that's it... I was blind... <5> or date_format() (mysql function) <2> echo date("Y-m-d", MYUNIXTIMESTAMP); <1> doh <4> why would move_uploaded_file fail if the perms are right? (i have error_reporting E_ALL)... <2> Aldi http://pastebin.com/564530 <5> gymsmoke: is rep_online.gif writable ? or the dir where this file is ? <7> xshad: Thanks again!! <8> i want to make a website with a forum and a system that allows me to post articles. should i use mod_perl or php? <2> isn't TOO MUCH vague ? <2> there's a lot of well-done forums and cms on internet <2> fudforum is great, phpbb, that one from ez.nl <4> swentel: the dir is, yes... lemme check the file, although i didn't think that the actual file would have to be writable <8> xshad: hmm, okay <2> vali all of 'em for php <8> xshad: aaah, i guess php is the way to go then <8> are there are big successful sites using php? <9> of course <10> php.net? <11> yes vali <2> wow... A LOT of <8> hmm, anything other than php.net? <2> heheheheh... 75% of onlines websites maybe <4> swentel: i changed the perms on the file that i'm grabbing to 666... same error... <12> just look at your address bar as you browse around.. you'll see tons of .php extensions <11> vali, it's good enough for most people <11> and companies <9> gymsmoke: What about the dir? <8> yup, i'm sure it's good enough for personal websites, but i was thinking.. what if you have to run a huge website with a lot of visitors? <4> Dangermouse: the dir is /var/tmp ... /var is 777, /var/tmp is 777 <2> vali sure <2> php.net for example <2> zend.com, 99% of sf.net sites <0> What is the best way to log-off a session? <2> slake session_destroy() :D <11> vali, i run a few hotel reservation sites pulling in 500 reservations per day, when a newsletter goes out the servers and application easily handle 15000 hits in a few seconds time <0> right now I have a logoff script that just unsets all of the login sessionvars <0> ohhh! <0> ok, that explains ity <0> and what happens if I unset $_SESSION? <2> unset it <8> syf: aah, great! sounds good to me
<8> is it possible to interface php with C? <9> vali: yes! <13> slake: http://ca.php.net/manual/en/function.session-destroy.php <2> vali running as apache module, php is really GREAT <7> xshad: Last question for today ;-) I want to use the myvar function in a sql string like this one $sql = "insert into table (row_a) values (myVar('variable')"; <8> xshad: great. so i just have to install mod_php? <11> vali, well, and examples of php based community//forum sites, there's always somethingawful, loads of members, loads of activity <13> vali: http://ca.php.net/manual/en/internals.php <8> thanks a lot! <9> Aldi: "insert ...foo...values" " . myfunc('foo') . "where bar=3" <2> Aldi $sql = "insert into table (row_a) values (\"".myVar('variable')."\")"; <9> Aldi: "insert ...foo...values" . myfunc('foo') . "where bar=3" <9> even <2> Aldi take a look at www.php.net/sprintf <7> Thanks guys! Won't bother you (today) ;) <13> Dangermouse: hm? where clause on an insert statement? <2> vali about interface with C, take a look at http://pecl.php.net <4> got it... <9> AcidReign: Was an example of the strings not sql <9> AcidReign: hence "..." and "foo" <13> Dangermouse: still, you shouldn't use examples that don't make sense ;-) <0> I think I unset $_SESSION <9> AcidReign: Why should it be valid SQL? This is ##php =) <0> because none of my session variables seem to exist anymore <0> I have tried restarting apache, and clearing /tmp <14> slake: unset($_SESSION) will only remove your access to it for that pageview <13> slake: so re-login or something, so that your session data is reset <0> I wonder what the problem is then <15> is it possible to define a cl*** that can not be instantiated? <14> b1n0ry_: in php5, yes <9> isnt that an abstract cl***? <2> b1n0ry_ abstract cl*** <13> b1n0ry_: in php5, abstract cl***es <16> cool, that's what i want <2> with php5 only <16> this is 5 <9> b1n0ry: php.net/oop5 <17> anyone know where to find some good XML DOM tutorials /or cl***es <2> b1n0ry www.php.net/oop5 <2> schnoodle for use with php? www.php.net/simplexml <2> for xml in specific, take a look at www.xulplanet.com <2> and of course, w3.org :) <16> thanks folks <16> that's what i wanted to do <16> i have a generic cl*** definition that handles object errors. pretty much all of my other cl*** definitions extend it. it just didn't make sense to have a cl*** that all it does is its own error handling. <18> Cake is wonderful =) <16> s/cl*** that all/object that all <16> CraZyLeGs what flavor? <18> caramel =) <9> lemon! <14> cake: http://gallery.free-source.com/gallery/ChrisLand/100_2216 <14> friend of mine made that for my last b-day <9> haha <19> in php.ini, what would I need to set to Off, to have PHP not display "Notice" errors only? <20> I'm running Apache 2.0.55 and PHP 4.4.2 (module) on WinXP and am getting some horrible full Apache crashes (trace back to php4ts.dll) - are there any known issues? It is occuring only on my own OOP scripts, but not with, for instance, phpmyadmin, which is running fine. Is there some kind of further tracing I can do to troubleshoot? There is nothing useful in the Apache logs. <2> gunoo error_reporting <2> set to E_ERROR <21> is it possible to create a redirect by using an <img src="blah.php"> the in that file, have a redirect? <14> Bungopolis: happen to know what threading model your apache is using? <13> gunoo: error_reporting = E_ALL & ~E_NOTICE <14> lilkid: technicaly, yes, but it will depend on the browser <20> don't know ||cw - other than whatever is configured with the default win package <21> ||cw: ok thanks :) <2> lilkid with header("Location") ? no, headers already sent <21> o <14> xshad: he means in the image php script <22> is there a way to go back one on a while loop. E.g. I am looping through a query and have a "Back" and "Next" link. Is there an easy way to just say "Go back one"? Or do I have to loop through manually, and output all the info myself? <2> oh sorry <21> heh :) <14> Bungopolis: if it's not prefork-mpm then there can be issues with threading in some php modules <2> gary_ use session, manage the paginator <13> gary_: that didnt make any sense. <14> gary_: depends on what you are looping over
Return to
#php or Go to some related
logs:
prism3 ubuntu isql.aspx
#gentoo #web ubuntu compile gaim #gaim ubuntu drivers for canon i470d apt-get install python-subversion prudhvi fedora bott gentoo in gnome
|
|