| |
| |
| |
|
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 31 32 33 34 35
Comments:
<0> roundyz: http://www.php.net/if <1> possibly && <0> you need braces "(" around your if-statement <0> condition* <2> I have an index.php, that includes a header.php, and footer.php. My php code works if both parts are in the header or footer, but does not work if 1/2 is in the footer, and 1/2 in the header. How do i make php act like include /path/file.php is the same as having all the code in 1 page? <3> Supaplex: yea what about if they takeover PHP project? <3> oracle-- <4> Supaplex: i'm with ya <5> Ender_, you solved that yet? <6> i forgot the double brace because i wanted to add conditions together <6> still won't display the page though.. the while loop must contain a condition to exit the loop yes? <5> roundyz, yes <7> I tried this <7> $_SESSION['page'] = $_SERVER['REQUST_URI']."**** your mum"; <6> you can put an if statement within a loop?
<7> and when echoing $_SESSION['page'], it seems I don't get anything from $_SERVER['request_url'] <5> roundyz, yes, no prob. <7> but luckily, I do get the "**** your mum" bit <6> sp that the result of the if can break the loop? <7> which means something is half working <2> toodles, no <5> roundyz, that's not the way a while loop is suppoed to work. <4> JeeHoover: error_reporting(E_ALL); ini_set('display_errors', true); <6> how come? <5> Ender_, I'll be with you in a sec. <7> itrebal, the error reporting here ****s, yes <6> i thought the loop goes around and around untill the condition is broken? <7> can I fix that in my php,ini file? <5> roundyz, can you show me your loop? It'll be easier to explain if I use what you have. <4> can you modify the php.ini <6> yerh toodles 1 sec <7> its my computer, yes <2> toodles, take your time, i might be close to figuring it out with a friend, hehe <4> JeeHoover: http://us2.php.net/manual/en/ini.php#ini.list <6> http://pastebin.com/569383 toodles here you go, the if inside a loop <5> Ender_, nice one. If not, show me the code for quick help. Make sure you don't leave any code blocks like a cl*** unfinished. <8> how do i do a line break? <4> "\n" <8> thanks <8> how do i do /> ? <5> roundyz, your missing a curlie on line 9 <9> MrSock: php.net/tut <6> toodles: a curly (? <8> storm - i don't think that shows me how to write /> (?) <10> yay? <5> roundyz, an if an if statemant has more that 1 line in it, it should be surrounded by curlies... if (condition) { echo "hi"; echo "hi again"; } <10> sorry bout the grammar correction <10> force of habi <5> roundyz, curly is { or } <10> *habit <6> is that for both results of if statements? <5> roundyz, http://pastebin.com/569393 <5> roundyz, no, sorry, 1 sec <5> roundyz, http://pastebin.com/569397 <5> roundyz, should be ok like that. <9> MrSock: How would you write /> everywhere else? <8> i'd write /> <8> but it seems to be breaking my script <9> MrSock: Then what's the problem? <8> page is blank when i put that in thee <9> MrSock: That it's not that, what is wrong <8> there <8> when i take it out, page works <9> MrSock: Do you actually *QUOTE* that part? <8> this works: return "\t<entry title='$title_text' link='$url'"; <8> this doesn't: return "\t<entry title='$title_text' link='$url'/>"; <9> MrSock: You have something else wrong. <2> ok toodles can i pm you some links and pastebin? <8> really? how could it be anything else? i put the /> in and the page breaks. i take it out and the page works. But i don't touch anything else. <5> Ender_, sure thing <9> MrSock: Because this is fine: php -r '"\t<entry title='$title_text' link='$url'/>";' <9> MrSock: I don't know what you messed up, but I'd suggest you to enable your error reporting... <8> cool! how do i do that? <9> !+error reporting <11> Error reporting: Add <?php error_reporting(E_ALL); ini_set('display_errors', 'on'); ?> to the top of your PHP script to display all errors, or set the display_errors to 'on' in your php.ini and error_reporting to E_ALL in your php.ini <8> hmm. adding that to my page causes an error.
<8> you might say that's ironic. <8> heh .. <8> sorry. it was in the wrong place. <8> now i get about 700 undefined index errors. <9> gawd... <9> FIX THEM! <9> </bitch> <5> lol! <12> i am trying to do something with regx <9> I don't <12> basically pull out the code body of some php function <8> i'm brand new to php (obviously). i'm trying to learn by modifying existing code. they're not my errors. <12> I do $preg = '/function_name($field).*{.*?}/si'; (where fun def is function_name($field) { print "test"; } <12> anyone see anything obvious i am doing wrong? <9> yes. You should have the .*? in braces. <12> k <9> and the first .* should have a ? <12> $preg = '/function_name($field).*?\{(.*?)\}/si'; (Realized i needed to escape the braces) <12> still doesn't work though <12> it could be multiline though <12> $preg = '/function_name($field).*?\{(.*?)\}/msi'; <-- multiline, still doesn't work <13> jaydub, escape the first set of '()' <13> function_name\($field\) <9> including the $ <12> ahhhh <9> $ <-- EOL in regex <13> nah, not necessary in single quot <13> and that's only the case if it's at the end of the regex <9> mkay <13> doesn't hurt either way though <8> so as the story goes, i can't have it both ways : return "\tentry title='$title_text' link='$url'/>"; i'd like a < at the beginning of "entry" ... but < and /> together in one statement break my page. do i have to escape one of them? <8> somehow? <9> gawd <8> i hope that "gawd" was for me. <8> that means you're about to get angry and either tell me what i'm doing wrong or point me to a page, which will hopefully not be goatse <14> hi, i know this is completely random and doesnt really apply to this channel but would someone mind making me a regular expression? i **** at them and i need one real quick... <15> dont ask to ask <14> i need a regular expression that checks to see if a string matches "[any number of any characters].toothpastefordinner.[any number of any characters]/[6 numbers]/[any number of letters and underscores].[3 letters]" <16> hey guys - this must be the simplest issue in existance, but i have no idea what's wrong. i've got a simple php e-mail form setup, http://rafb.net/paste/results/4Iwakn28.html >> <16> the top part of that is the form from the page, second half is the sendmail.php script <16> when submitted, the message arrives in my box, but, only includes the first 2 line items... <17> Hello all. Is there a page of things that shouldn't be done in php to preserve security? <14> actually change that: "[any number of any characters].toothpastefordinner.com/[6 numbers]/[any number of letters and underscores].[3 letters]" <5> sorry, what channel do i goto for help with my freenode p***word? i've forgotten it, and never signed up with an email address :-/ <14> toodles: /msg nickserv help <18> uh, hi <5> Ricky28269 thanks <18> i have a problem with iconv's //TRANSLIT feature <14> yea, theres a command, i believe its "forgot" so if that is it, then type /msg nickserv help forgot <18> for some reason, it does not work on all boxes <18> any ideas? <16> anyone have any ideas as to why the third form field just doens't show up at all? =/ <13> inf3rno, you need to put the form values in a string. Only the third argument of mail() is used as the actual mail content <5> Ricky28269, comes up as no **** nick/channel <13> http://www.php.net/mail <5> Ricky28269, *such <5> Ricky28269, never mind, got it <18> any ideas why iconv may be refusing to do transliteration for me? <16> ds-, could you elaborate on that? the examples i'm seeing are alot more in depth than i need, this simple bit of info is literally all that needs to get transferred. how would i modify my current sendmail.php to accomodate? =/ <2> hey toodles im out of infomation to share in pm :) <13> mail( "robin3js@jmu.edu", "ePortfolio Access Request", "$fName $lName $sidn"); <16> ahh perfect, many thanks <19> does anyone know how invision does the "pid" increment? <5> Enderbsd, gimmie a few mins... <19> like, it checks the last post on the database and increments it <20> take your time, and thank you! <21> Braz: It probably leaves that up to the database. At least, that's the SMART way to do it. <19> ahh <19> i didn't know mySQL could do that... <19> do you know how? #mysql is very taciturn <21> Braz: I don't know MySQL, no. I believe they have documentation on their website. <19> ah, ok <19> thanks
Return to
#php or Go to some related
logs:
suse mysql-query-browser Segmentation fault $PRG-bin system boot in progress Creating View PHPMYADMIN #php #javascript famous synonmys eggdrop net: eof!(read) socket 7 define technologhy #php #math
|
|