| |
| |
| |
|
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
Comments:
<0> Squalleh: no, its not impossible <1> it's 100% valid without..... <2> how do you do it? <3> interferon, what os are you using? <0> Squalleh: there is an option for it <4> jonez, redhat linux <5> Takeyoshi: You do an invalid include, so language.php is not used... and it validates. You do a valid include, so language.php IS used, and you don't validate. The problem lies in language.php. <3> interferon, fedora? <2> cos session_start(); has to be at the top, and so does your doctype, and they cant both be....meh, I dunno, i never write valid stuff anyway <4> jonez, no <3> interferon, ok, what version of rh? <6> hi could anyone tell me if there is a problem with using include_path = ".;C:\Program Files\xampp\php\pear\;C:\Program Files\xampp\php\pear\propel\" <0> Squalleh: you put session_start at the beginning of the file, and then you do the doctype, that is perfectly valid <6> because the includes don't seem to be working <4> jonez, i'm not sure offhand. how is that relevant? <1> Ahroun, if I use the same code FROM the include and just put it in the page it works and validated
<1> Ahroun, when I put the code in the file and use include it can't validate <3> interferon, it can be. <3> interferon, yes, archive_tar should come with pear <5> Takeyoshi: Then the problem lies in the formatting of language.php. You cannot get around this fact. Try getting detailed output from the validator and find out WHY it doesn't validate, and maybe someone can give you other ideas. <3> interferon, what error are you getting, exactly? <1> hmm.. ok thanks - I don't really understand the error message hehe <5> Takeyoshi: Out of curiosity. You include file.... does it start and end with <?php ... ?> <1> Ahroun, you mean inside the include? Yes it starts with <? and ends with ?> <7> instead of doin switch($release) can i do switch(strstr($release,III))? <1> This is the error -> "1. Error Line 8, column 0: character data is not allowed here . <1> $B#O(Bstrong>?? <1> " <5> Takeyoshi: You probably have something unterminated then. <8> dentist: ***uming III is a constant, yes. <1> Ahroun, what does that mean? <7> great <7> yeah i meant switch(strstr($release,'III')) <4> jonez, http://rafb.net/paste/results/wYgjk693.html <5> Takeyoshi: So it's mangling a '<strong>' tag? <0> interferon: are you asking a PEAR question? <1> Ahroun, I don't know what a <strong> tag is <1> I don't have something like that in my code <5> Takeyoshi: Did you write this PHP yourself? <1> Ahroun, yup <4> itrebal, indeed i am <0> interferon: #pear, please <4> sigh <3> interferon, what is the output of "rpm -q php-pear"? <9> Hi kuja <4> jonez, not installed <5> Takeyoshi: you'll need to either pastebin some code or give a URL then. <3> interferon, ah.. well, that is at least part of the problem. you need to install that rpm <9> iterbal? <0> ##php does not support PEAR, please take it to #PEAR <4> itrebal, calm down <0> i'm not stressed or uncalm, but your question is for #PEAR <1> Ahroun, http://pastebin.com/657809 - I know my use of sessions might be wrong, but that isn't related to the validation lol <9> iterbal: i have a question are you free? if yes come back to #PEAR <4> jonez, my experience is all with debian. is there a central repository of rpm's where i would get that, or do i need to download that file specifically? <0> //FILENAME: language.php <0> //UTF-8 file linked from index.php through "<?php include("language.php"?>" is not within <?php and ?>, therefore is outputted as text, which could cause it <10> for ($i = 8; $i > 1; $i--) { $total = $total+$array['choice'][$i]*$i; } i have this code but unfortunately the $i starts the array at the end (so the 8th character, but i need it to start at 0 and x it by 8 and work it's way down? <1> itrebal, hmm isn't that how include should work? <0> Takeyoshi: no. <3> interferon, this is why I wanted to know *what* version of "red hat linux" you are using. <11> JaredCE: for ($i = 8; $i > 1; $i--) <-- at at this part :) <5> jonez, interferon: Your conversation has p***ed any direct relevance to PHP. The direct relevance is to PEAR. Please take it there. <4> jonez, like i said, i don't know offhand, but do the fundamental concepts of rpm change with different versions? <1> itrebal, what do you mean it isn't within <?php and ?> ?? <0> Takeyoshi: look at the code, comments, one line later <?php <10> whats that AfroTurf <10> i understand what the for is doing <5> itrebal: Ooooh, good catch, I missed that. <11> JaredCE: for ($i = 1; $i < 8; $i++) <10> but should i have another for in there where i do for ($c = 0; $c < $i; $c++) <10> no <1> itrebal, I don't quite understand... my index.php file has a line saying <?php include("language.php"); ?> and my language.php file starts with <?php and ends with ?> <11> JaredCE: you want it to go to start at 0 instead of 8 <0> ****ing a <5> takeyoshi: Your comments need to be INSIDE the <?php
<10> AfroTurf: i have to times the first char in the array by 8, the second char by 6 <10> 7 not 6 <1> Ahroun, I made them for you <1> Ahroun, they aren't in the file <11> JaredCE: oh i see <5> Takeyoshi: Never ever edit what you load to a pastebin. Load code exactly as it is. <12> I've got this sort of setup: cl*** meh { $lang = array('meh' =>'moo'); } but I'm getting a PHP error saying: Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION <1> Ahroun, ohhh sorry <12> anyone know why? <13> hi <13> we have change our server <5> Takeyoshi: Innocent mistake, no worries. Can you pastebin index.php so we can see the context of the include? <13> and maybe change mysql server too <0> Seadog: becuase you are not saying like 'public' 'private' 'var' etc to declair its a cl***-variable <12> itrebal, ah, ok <1> ok 2 sec <13> why i get this error on loading the page <13> You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '(konu,1,55),'...') as konu FROM forum where id = '33379'' at l <3> interferon, I need to know a little more about the system you are using before I can tell you where to get the rpm. an rpm is an rpm, but the different versions of rh have different repositories. <13> when i put the old archives <13> then i dont get that error page <0> s|a_before_a|k: you are running invalid SQL for that version <13> i think that isnt about mysql <13> maybe some of backups <13> and dumpng sql data <1> Ahroun, the index.php http://pastebin.com/657828 not touched <11> JaredCE: your statement is taking the first Element in your array and times it by $i <11> JaredCE: your statement not character <10> nah at the moment it's taking the last character and working it's way to the first <13> JaredCE <13> already i do that <10> so a strigng of 12345678 starts at 8 then goes to 7 down to 2 <13> so never nobody ask that to <13> o <13> ok <13> i remember <5> Takeyoshi: You send the <?xml thing before you handle your session. I'd take a big guess that's your problem. <10> i want it to start at 1 and goto 7 <1> Ahroun, I see, so I need to divide it into two pieces? <10> but 1 gets times by 8 and 7 gets times by 2 <5> Takeyoshi: Session opening features need to happen before any other data is sent to the remote browser. <1> Ahroun, I see, thanks. <0> some people need to rtfm <5> Takeyoshi: Considering your initial php will always print that exact XML declaration, put that directly in your HTML. Then move your include above the XML statement. <1> <?php include("blabla.php"); print('<?xml.....blablba?>'); ?> ??????? <1> Ahroun, anyway thanks, i'll mess with it <12> bleh, now I'm getting the error: Fatal error: Cannot call abstract method language::language() <12> even though that function isn't abstract <12> and I'm not even calling it! <14> anyways, I didn't get a reply for my question, so... <14> when you connect to a DB from a PHP page, where should you store the user and p***word? <5> Takeyoshi: Why are you printing your <?xml statement with PHP? <0> _Lucretia_: how do you mean store it? <14> itrebal: well, when you connect to a MYSQL DB there are users in the mysql db, right? <0> sure <14> itrebal: you need to login to MySQL with a username from there to be able to modify it <0> right <0> what i mean, is why would you store it anyway? <14> itrebal: yet, in PHP you need to connect the db with a username and p***word <15> I normally put it in.... a file <0> i'm not dumb about mysql, i used it for a long time, either hard-code it in (IMO most secure) or stick it in a .php file so it wont dump the contents, and insludeikt <15> insludeikt = include it, I think <14> itrebal: but, say I wanted to create a web app that basically allows a user (who will be an admin) to modify the db, should I create a table of users and a guest account (read-only)? <0> lol, i'm on drugs guys <14> itrebal: but I've just read somewhere that placing this stuff in a php file is bad <15> everything is bad <16> hello <5> lucretia: You're asking two totally different questions. <14> true <17> Hi ! I have a problem, when I gather informations out of a MySQL DB using PHP, it brakes the special characters (such as etc...). <14> Ahroun: yup, in a way <5> lucretia: You're asking about logging in to the database itself, then you're asking about user management. HUGE difference.
Return to
#php or Go to some related
logs:
broken symlinks xkb UZ2: Failed to fully write #web ubuntu vnc:0 #php how-do-i-know udp-or-tcp #perl #lisp #python #mysql
|
|