@# 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



Comments:

<0> any advice on how i should p*** output to php templates without any of the above?
<1> includes?
<2> DogWater: the beginning of a string char is ^ so #^code=(.?)#
<3> DogWater: no, that'll make it look anywhere in the code :)
<0> so just include the html template at the bottom of the logic and all variables in the logic will be accessible, right?
<1> zircu: well, what I mean is the above regex works fine, right? the string is like this code=1 code2=something code3=something_else code4=something_else_entirey
<0> makes sense
<1> zircu: and right now the script is only setup to look for the value of code, and i'm just trying to modify it to get the rest of the values
<1> zircu: so i'm basically just adding more preg_matches with the same regex but changing code to code2 code3 and code4, and it isnt working ;-)
<1> fastly: web designers hate me putting gigantic blocks of php into the center of their dreamweaver laden html, so instead they like to put <? include('functions.php'); function(); ?>
<1> zircu: i thought maybe it was because the # tells regex to start at the beginning of the string and look from there
<2> DogWater: then you would want something with preg_match_all() using #code(\d+)?=(.?)#
<2> the # is just the delimiter
<4> What does parse error, unexpected $ in /home/existance/public_html/OOConvertFrontEnd.php on line 26 Mean if the file ends at line 25
<1> existance: it means the file should've ended before that line
<5> (\d+)? is just equivalent to (\d*). :\



<1> existance: usually you missed a }
<2> existance: you are missing a quote ' or " or a ending }
<4> DogWater, ah... not a very descriptive error..
<6> I'm trying to bring over some rows from one page to another by submitting the row id#'s as an array and then selecting them on the next page. I'm getting an error on the mysql_fetch_array (argument not valid), but I can't find what I'm doing wrong. I've confirmed the values are posting correctly and the SQL statement is formatting correctly. If someone could take a look I would appreciate it. http://pastebin.com/622150
<2> FlamingCows: yeah i did make it more complicated than it needed to be :)
<7> If i put ad='%s'
<7> will it accept numericals
<1> zircu: Well; they're sending back something like 35 pieces of info; and they could change the order at any time.
<7> Or is it just string
<1> zircu: or add more pieces of info; so i figured if i just grabbed the 5 pieces i needed i'd be safer
<3> fdfdfdf: *blink*
<8> how to parse the PHP codes inside a string?
<1> im sorry did you say %s?
<1> "$var";
<1> ?
<1> or did you mean concatenation?
<8> FliesLikeABrick ->$a = "echo '<hr>'";
<9> e sad sam se pravo izbrijao
<9> uhm...wrong channel
<8> like this, $a = "echo '<hr>'";
<8> I want the <hr>
<4> Is there a problem with using an HTML form and posting to the same page?
<3> let's try a different question... fdfdfdf: Do you actually *KNOW* SQL?
<7> Stormchaser: Good question
<8> existance ->no...
<2> DogWater: you just confused me
<1> DespNekus: you just want it to echo for each $a?
<7> Stormchaser: Thanks for the help the other issue was fixed
<4> DespNekus, I get a unexpected T_VARIABLE error after submitting..
<7> Stormchaser: I am here to LEARN
<3> fdfdfdf: I'm not interested in question, but in your answer, which cannot be anything else than boolean expression. So what is it?
<4> DeskNekus, and the offending code doesnt involve the posted variable at all
<8> existance ->show the error
<4> parse error, unexpected T_VARIABLE in /home/existance/public_html/OOConvertFront.php on line 10
<5> I'm starting to remember why I stopped bothering to help in this channel. :\
<8> missing ; in line 9, maybe
<3> !+parse error
<10> Parse errors show the line where parsing failed, not nessicarily where you made your mistake. Try looking a line or two above the reported error.
<4> DespNekus, oh. nm
<4> DespNekus, i changed the file name and didnt change the post.. :(
<3> FlamingCows: Nightmares or somethinbg else?
<1> zircu: ok; we're submitting a form via get to a company, right? we're using curl to get the response, they're sending back 35 chunks of data, they add new chunks all of the time, originally I was only interested in one chunk of information, now I need 5 chunks of information, the chunks of information are not all 'concurrent' in order so i was just going to do 5 different preg_match statements to make sure that i get them all correctly instead of preg_
<3> *something
<8> let's try this, I used file_get_contents in a PHP script, and I want to run it, how to?
<5> Stormchaser: All the incoherency.
<1> $stuff = file_get_contents($handle);
<3> FlamingCows: :)
<5> And Bad Ideas (TM).
<3> DespNekus: with include() perhaps?
<2> DespNekus: why don't you just include it?
<11> /[^a-zA-Z0-9]/ will match everything BUT letters/numbers, no?
<12> when i load my webage it tries to download my index.php but I have php4 and 5 installed. I have it added in my DirectoryIndex and i have it in AddType and AddHandler but it still tries to download it
<5> itrebal: Correct.
<13> yes itrebal
<1> parezidentt: did you restart apache?
<12> yes
<3> FlamingCows: Usually the wors is, when there are no moderators around, and people that 'think' they know give bad ideas o.O
<14> how can i check if session has been started?
<8> Cause Im tyring somethng different... so, there's no way to do it?
<5> Stormchaser: Yup.
<1> Yeah everything is a bad idea.



<2> DogWater: i'm not sure of the situation but if you are getting data back that says in random order code#=something preg_match_all can catch it as mentioned earlier
<5> I can't count the number of times I wished I had ops so I could just kick some moron who was promoting crap ideas.
<1> zircu: wouldnt preg_match_all create an array called matches ?
<12> DogWater: scripts dont work except for one is showing some erroneous code
<5> "Don't use OOP, it just confused me!"
<5> *KICK!*
<12> DogWater: instead of executing it
<2> DogWater: if i undestand correctly yea
<3> DogWater: There is a HUGE difference between bad idea and good idea implemented badly. I still can't decide what is worse.
<3> FlamingCows: :)
<1> zircu: yeah see the problem is, the company we're sending the form to constantly adds new fields to the stuff they're sending back to us.
<8> Stormchaser ->I need to parse some tags before show the content
<1> zircu: and they dont always tack the new fields onto the end
<3> DespNekus: Who's stoping you?
<1> zircu: so the fields I need may move randomly
<2> wykis_: you can check via session_id()
<1> zircu: so i cant say I need responses['0'], 2, 9, 7, 15
<8> Stormchaser ->Cause this I couldn't use the include...
<3> DespNekus: str_replace, then
<15> lol
<1> zircu: they do it alphabetically
<8> I was affraid of it
<15> microsoft chat is pretty cool
<14> i see thanks
<3> fransoo14: and this has to do with PHP... how?
<3> that was weird
<2> Stormchaser: php runs on MS OS's :)
<16> hi, what does this error-msg say: Fatal error: Cl*** AppController contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (AppController::setup) ?
<5> That just exemplifies my earlier point.
<3> zircu: oh! *stab*
<3> FlamingCows: *nod*
<1> Stormchaser: until someone makes a frontpage that automatically generates scripts in the #php moderator approved way to do everything, there are always going to be arguments on the right/wrong way to do things; and you're probably always going to have high blood pressure when you're in here; If I could i'd make you a hot chocolate right now, but I'm betting you're at least 1000 miles away from me.
<17> defel: You forgot how-to read?
<3> DogWater: My point still stands.
<18> ye a i guess
<5> That's actually a good idea. A USB punch-in-the-face peripheral that activates whenever your IDE detects a Bad IDea (TM) in your code.
<17> FlamingCows: LOL
<1> FlamingCows: firewire would be better cause it would react faster.
<2> heh
<1> but then we get into a ruby vs php type argument and nobody wants that again
<12> when I try to execute php scripts it just shows a blank page
<1> god what is it with those people
<18> ur all fags
<1> perezidentt: turn on errors in the php.ini
<1> perezidentt: more astutely, display_errors = On
<17> perezidentt: or put error_reporting(E_ALL); at the top of your page.
<19> Hey, you can create word files with php right?
<16> Gargoyle: I think not - the function is abstract. Why should it (therefore) declared as abstract, when it is abstract.
<5> Paging Doctor Stormchaser....
<19> .doc that is
<17> defel: That's not what it says!
<3> oh, what the hell...
<1> Unh Unh, boom shalak shalak lack lack boom
<2> Doctor Who?
<5> zircu: Excellent TV show.
<1> The new one?
<1> i picked it up last night 20 minutes into it and i couldnt figure out what the hell was going on
<1> so i went and saw V for vengeance
<2> i waited 4 years to use that in this context :)
<1> great movie
<12> DogWater: Where would I turn on errors in php.ini?
<3> I didn't saw the new one... Is it better than the old one?
<1> display_errors
<1> no idea, battlestar galactica sure as hell is tho :D
<5> I liked John Pertwee as the Doctor, personally.
<2> Stormchaser: no, the original is better
<1> I totally couldnt figure out what was going on
<12> DogWater: it was already on
<1> so i went to the movies, got some drinks and played oblivion until 4am
<3> zircu: I have pretty vague memories of those, tho :(
<3> DogWater: Good solution :)
<1> what happens if you cd to the directory that script is in, and type php and the filename of the script you're trying to run in the browser?
<5> I saw some really old Doctor Who a month ago. It was the very original, and he had two companions. The guy-companion had a kilt. :\


Name:

Comments:

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






Return to #php
or
Go to some related logs:

do_stage ()
wxwidgets font resize
#suse
ubuntu Error loading operating system
perl LinkExtor howto
baby picutres
#web
mke2fs ubunti
#centos
#web



Home  |  disclaimer  |  contact  |  submit quotes