| |
| |
| |
|
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
Comments:
<0> Clownboy: look at the PM from php-bot <1> max_input_time integer : default is -1, does that mean unlimited? <1> max_execution_time : this does not include input does it? <2> in $query_temp[$i] = "ToCa_Name != '" . $temp_tour_category_enabled[$i] . "'"; will return ToCa_Name != 'Africa' , ToCa_Name != 'Soccer' and ToCa_Name != 'Golf' How to make it to: SELECT ToCa_ID, ToCa_Name FROM tour_category WHERE ToCa_Name != 'Africa' AND ToCa_Name != 'Soccer' AND ToCa_Name != 'Golf'; ? http://pastebin.com/734335 <2> the result is in $query <2> the result of this echo $query_temp[$i] . "<br>"; already correct and then i want to join them all <3> !tell juliano[out] about g7 <1> I'm about 85% sure on this, but in php.ini -1 integer value means unlimited right? <4> I have a very simple file upload script (grabbed from the net) which works, however I am unable to upload anything larger than 1.5Mb even though php.ini says the limit is 10Mb and the script is saying 8Mb. Where else would PHP be getting a size limit from? <0> Smegzor: check what the form POST size limit is <4> post_max_size = 10M <0> Smegzor: sorry, then i don't know <5> can the contents of $_SERVER be trusted (ie: $_POST can't be trusted and should be validated before use) <6> some of them. REFERER for example comes from the user. <0> litage: some of the variables can be trusted, some others not, read the manual page on it, and it will tell you which ones you should be careful of. the main thing to watch out for is one of the current script ones and get forms
<0> whats the function to check if an instance of a cl*** is already defined? <5> Gimp_: thanks, though i don't understand what you meant by "one of the current script ones" <0> litage: script_name i think <5> Gimp_: sorry, still not following... <0> litage: nevermind then <7> Smegzor: does the upload script itsself impose a size limitation? <5> Gimp_: heh <5> Gimp_: OH heh you were talking about $_SERVER['SCRIPT_NAME'] <0> litage: yes. <8> lig: your all off on your times :) <8> err not dinner <8> bed <5> Gimp_: i just read php.net's blurb on SCRIPT_NAME and it didn't mention anything about not trusting it.. <9> itrebal: hehe - what ya making? <8> lig: hehe i had potatoes and pork.... but i'm actually about to go to bed ;) <4> SecondV: no or I would have found it. Thanks anyway. I'll have another look at it later. <9> itrebal: ahh <8> lig: i'm the one with screwed up times :) <1> I'm about 85% sure on this, but in php.ini -1 integer value means unlimited right? <0> hey, how come even after ive set error_reporting(0) its still outputting errors.... <8> Gimp_: what errors? <0> itrebal: chmod() [function.chmod]: Operation not permitted <0> im still getting that error even after setting error_reporting to 0 <8> ini_set('display_errors', false); <0> itrebal: still... <0> im using a custom error handling function, but im never triggering that first function, if i read the site correctly, i should be able to do this without having it output other errors <0> ah! holy ****, now ive messed myself over <0> ive got a cl*** that is dependant on a function, but that function is dependant on the cl***. i can't have both of them work because one or the other works depending on the order in which i include the files o.O <10> I have safe_mode turned off in /etc/php.ini but it is bieng turned on somewhere. It's not in any .ht_access files either. Where could php be turning it on? <11> :-) <12> matiu: first off , its .htaccess <11> ;-) <12> and only php.ini and apache.conf and turn it on/off <13> hello, i wrote a php music player playlist editor in php, and something strange is going on <13> http://tuxxman.pastebin.com/734390 <13> the error is Parse error: parse error, unexpected T_STRING in /usr/htdocs/users/moo/userfiles/music_playlist.php on line 93 <10> [itrebal]: Thanks. I moved /var to /home/var and symlinked it back to /var, and rebooted, is it possible php is having trouble following the symlink? <13> the pastebin is music_playlist.php <10> (Because It ran out of disk space on / partition <10> [itrebal]: thanks again. It's turned on in httpd confs... <10> :D <13> i dont understand why im getting that error, line 93 looks fine <14> tuxxman: no clue here <0> tuxxman: same... no idea, looks fine over here <0> try tracing the error <13> ? <12> $filename = "playlist.xml; <12> line 70 <13> ahhh <13> thanks <13> i see it <0> haha <15> I'm trying to enter a require() statement inside an echo ' ' - something like echo ' <html>blahblah <?php require('text.txt'); ?> blah </html> <15> but I can't get the text.txt file to display right <15> I've tried require("text.txt"); - but no go <15> can this be done - as in is my syntax wrong? <16> short tags **** <15> huh?
<16> nothing just my biased babbling <15> righto <16> did you put it on pastebin? <0> ok, new question. why is it saying chmod(): operation not permitted, when the parent folder has permissions 777.... <0> does safe mode restrict chmod() ? <15> epichero, http://pastebin.com/734406 <15> I obviously left parts out, but I included the important parts <16> <?php should only be once in script <5> when a session is created, what session data is stored on the user's computer by their web browser? <15> epichero, but the echo' '; statement is echo-ing an entire new webpage <15> so in the generated html code, there is no <?php ?> <15> unless I did that at the beging of what's being echoed <16> its including an entire new page the contents of teh .txt file if its a .txt <15> the *.txt file is just a few lines <16> it isnt code is it? <16> or is it <16> Since your not using a templating system you might as well echo all the html out instead of trying to use short tags <15> the *.txt file? No, it's just some html code <15> I am echoing all of the html code, I just have some html code that may change frequently <15> so instead of editing every page, I'd like to just edit the one file <0> Aw0L: echo "blarg" . readfile("file.txt") . "more blarg"; <16> or you could just make the html that changes into a variable <15> Gimp_, good idea, but it's not quite working <0> Aw0L: echo "blarg"; readfile("file.txt"); echo "more blarg"; <15> Gimp_, that works! <15> Thanks a lot!! <0> alright, im getting the following error: chmod() [function.chmod]: Operation not permitted however, the folder im trying to use it on has permissions 0777, and its parent has 0777 also... <0> safe mode is not on <15> I don't think the permissions of the parent directory should matter should it? <17> hello <18> hi, i'm having troubles with people being logged out when submitting forms. i'm thinking maybe it's an issue with garbage collection. here is my session handling code: http://hashphp.org/pastebin.php?pid=6835 <17> V^_^V nixon <16> you might be destroying your sessions <16> probably <6> are they using trans_sid? It's not great at automangling form targets to include the SID. <18> epichero: can you explain how i'm doing that? <6> I had behaviour like that with people who turn off cookies when I didn't realise trans_sid was on <18> so i should set, ini_set(session.use_trans_sid false); <6> yeah, and see if they can't log in at all now <18> what do you think of this comment: http://www.mtdev.com/2002/06/why-you-should-disable-phps-session-use_trans_sid/#comment-3918 <18> ? <6> or turn off cookies yourself and try the form <6> well, the actual easiest way is turning it off in php.ini <6> if you have access to it <6> it appears it will not work via ini_set after php 4.2.3 <6> so yes, setting it in the apache configuration as that comment suggests is the best option after php.ini, and a .htaccess file works as well. putting it in the IfModule is weird, though - I usually put php_flag values in the virtual host directive. <18> i don't have access to php.ini, but i'm wondering if there is a way i can get read access to it so i can duplicate it and make changes and place in my directory? i am on dreamhost... <6> well, that's what .htaccess lets you do effectively <19> chastu: better question is what are you trying to do that requires a different php.ini? <6> check out http://nz.php.net/manual/en/configuration.changes.php - it talks about apache directives you can use to override php.ini settings on a dir-by-dir basis <18> nathe: i have an application for a non-profit, and one of the application pages is quite long, so people take up to a couple hours to submit the form (they are teachers so they have sporadic free time). so people are finally finishing, and then when they submit the form they are not logged in anymore and they get kicked back to the log in page. i am ***uming my session handling is to blame. <18> xyphoid: thank you. <16> serialize the session to a variable that is submitted with the form <18> epichero: i'm a beginner, so let me make sure i understand you... i would take the session, and serialize it as a variable (which would be a hidden input?) and submit it with the form? <20> Is it possible to use squid proxy and fsockopen to open a connection to a port on an external server without a GET or POST request? <18> thanks everyone for your help. <20> In other words, I currently have an fsockopen that just opens a url and does an fput to that stream. I want to use a proxy server instead, but Squid needs a "GET URL"" or "POST URL" which is interpretted by the server. <21> http://tinyurl.com/l2h77 <21> :D <22> Hi. Is there another method of getting $_POST data from a form instead of using the name="" property? Tidy HTML dislikes that property as it is considered a "proprietary attribute". <22> It seems to be only targetting it on the <option> boxes. <22> <select name="pop" size="1"><option name="na"></select> <0> Donkano: you aren't supposed to have name="" in <option> <0> Donkano: option is supposed to have value="" <22> Oh! <23> $text = preg_replace("|[$]<a href=\"$url\" title=\"$word\">$word</a>[$]|imsU","$word" , $text); >> using this as text replacement line. Problem is if $url contains a ? rather then getting $word I get $<a href="....>$ Any suggestions on a fix/workaround? I am completely new to php and have no idea at all what I am doing <0> hey, does mysql block remote connections or something? because i have a user with host %, and am trying to connect using an intenal IP, but it doesn't work... (yes i know i shouldn't be using %) and yes it relates to php, because its in php that it doesn't connect <3> Gimp_ Would you rather I ban them/YOU instead? <0> Jymmm: nope. id rather not <3> Gimp_ too bad.... <0> o.O
Return to
#php or Go to some related
logs:
#math php mod function #centos debian etch hdparam #gimp #gentoo bitbake berlios #debian #linux #perl
|
|