| |
| |
| |
|
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
Comments:
<0> there is <0> here's the full login.php http://pastebin.com/530002 <0> and my validation checking doesn't work :/ <1> RewriteRule ^delete/(.*)/(.*)?$ index.php?cmd=delete&page=$1&$1.id=$2 <1> is this correct? <2> Need a leading / <3> .* would be greedy? <2> Probably <2> But that's probably not a problem for valid URLs <2> (valid in the fits what he's expecting <3> wouldn't $1 be abcd/abcd <3> rather than abcd <2> I might go for: RewriteRule ^/delete/([^/]*)/([^/]*)/?$ index.php?cmd=delete&page=$1&$1.id=$2 personally though <2> aidan: In order to match the pattern, you have to get the last post-/ part in $2, and everything else in $1 <3> ah I see
<2> hiya jimbo <4> Pollita how ya doin sweety? <2> ai'ight <5> Pollita: are you sure it needs the opening /? <4> Pollita ai'ight in da hood?! <5> I thought RewriteRules were evaluated in the context of the directory <2> Gareth: They *can* be, but he's matching start of string <6> Someone Can help me to find the little bug here please --> http://pastebin.com/530000 (it's very short) ? <3> if you have ^/ you can't use that pattern in a .htaccess, only httpd.conf <2> Oh, *shrug* I only use Rewrite in the context of httpd.conf <4> Pollita : Have you coding anything that follows the double-entry accounting method ? <2> Yer on yer own for .htaccess :) <3> Nag: $v=Y; ? <2> Jymmm: Probably not. <4> Pollita okey dokey =) <4> Pollita: you probably know it... debits and credits <4> balance sheet stuff <2> Then I probably have done that sort of thing <6> Aidan --> in my DB online is an enum('Y','N') <6> so if it's return Y i want to print ONLINE, if not i want to display OFFLINE <3> Nag; Y doesn't mean anything to php <3> Nag: $v = 'Y'; perhaps <2> so.... you replaced a nice simple bit field with an enum, then you want to map the enum to something else. <2> Brill I Ance <3> Nag: that line doesn't seem to have any importance in the code you showed us, and you overwrite it in the next line ... so remove it <6> wich line ?. <3> Nag: $v=Y; <6> no i have tried $v= 'Y'; $v = "Y"; $v = Y; always the same result.... <3> Nag: php.net/getting-started <6> i have search on php.net already : http://fr3.php.net/manual/fr/control-structures.foreach.php <3> Nag: $v = Y; is not doing anything in your script. Even if it was valid code, which it isn't, it doesn't appear to have any purpose. <6> but don't find the problem... <3> Nag: what is the actual problem? you haven't even told us what is wrong with your code... <6> in my code, i give me the list of servers while ($serv = mysql_fetch_array($sql)) { <6> echo '<li><a>'.$serv["server"].'</a></li>'.$serv["online"]; <6> but do not show ONLINE <6> as you can see here : http://zefunchat.net/Beta/rezo_serveurs.php <7> is something like this valid? if (($x = function()) > 5) echo $x; so if the function saves to x, checks x if greater than 5, if so echo $x? <3> Nag: did you just expect us to guess that was the problem? <6> as you can see the echo of Y ($serv["online"]) is ok <3> Smirker_L: TIAS <8> Hi there. :) Would anyone know of a Cairo binding for PHP? <8> Six months ago, someone mentioned a binding was being worked on, but I still can't find it in PECL <6> why dont he interpreting the foreach...code.. ? <7> aidan: i'm ***uming TIAS is something like... test it yourself? <3> Smirker_L: try it and see :) <3> Nag: you don't make sense <7> ah :) yeah, i should really try things before asking <9> anyone know of an open-source project management system? i had a good one before but have forgotten its name <6> sorry , i speak a very bad english, i don't understand what you would want to say aidan ? <10> Nag: your foreach doesn't make sense. I don't know what you're pulling out of the db, but chances are it's not an array. <6> the pull out of my DB is Y i have made an echo $serv["online"]; and he print me good Y, so what i want, is : if the return is Y, i want to print ONLINE, else i want to print OFFLINE <3> Nag: if ($var === 'Y') { echo 'online'; } else { echo 'offline'; } <6> i can put it in my while and foreach ? <3> you can put it anywhere <10> Nag: I think you first need to conceptually understand what you're trying to accomplish <6> i know exactly what i want to accomplish, but i cant make it working :-( <11> if(strstr('/',$date)!=false) -> how bout if i want to ensure there are two '/' in $date? <3> stedios: preg_match <11> ok <3> Nag: this is VERY basic PHP. If you can't work it out with the code we've just given you, you should start learning PHP from the basics. PHP.net/getting-started
<8> stedios: It might be a good idea to be a little bit more robust and use a regular expression, say like '\d+/\d+/\d+' <12> but nailbiter has a valid point, you're checking for valid dates, and you could be more robust than that and make sure the date is actually (almost) valid via the use of a regexp <11> ok <6> ok, thanks a lot <6> it's working now :-)) <6> http://zefunchat.net/Beta/rezo_serveurs.php <6> correct code is there --> http://pastebin.com/530021 <10> is it late enough for me to hand out crappy advice yet? if the format is mm/dd/yyyy, one *could* just explode() the string and check each piece with is_numeric(), and finally run checkdate() on it. :) <11> its mm/dd/yy , but, i want to amek sure they put it in as mm/dd/yy, and not mm/dd.yy (or anyother form of typos) <11> amek= make <3> javax.xml.transform.TransformerException: java.lang.RuntimeException: Some content could not fit into a line/page after 50 attempts. Giving up to avoid an endless loop. (fo:block, "Figure.Stereographic projections") <4> Far too many permutations imo --> m/d/yy mm/d/yy m/d/yyyy m/dd/yyyy m/dd/yy d/m/yy dd/m/yy d/mm/yy dd/mm/yy dd/mm/yyyy d/m/yyyy d/mm/yyyy dd/m/yyyy dd/mm/yyyy <3> arg. <4> aidan stenography? <11> i just want to check that its two numbers, then a /, then two numbers, /, two numbers again <3> stereographic? <4> aidan what are you doing? <3> trying to convert xml to pdf <0> use xpath and xslt <4> !+xml <13> [XML] eXtensible Markup Language - jymmm believes it to be the spawn of satan and pure evil, but a lil tutorial and introduction is available at http://www.tizag.com/xmlTutorial/ <3> kainnation: oh that is such a useful comment... not <0> hey just trying to help <3> 'I wish to cook a pavlova cake.. ', 'use flour'. <3> kainnation: how on earth is "use xpath and xslt" meant to help? <0> i'm having session issues <0> <0> http://www.kainnation.com/pxc/pxc/core <0> <0> username admin <0> <0> p*** admin <4> !+pastebin <13> Submit your code to http://hashphp.org/pastebin or http://cpp.sourceforge.net or http://php.pastebin.com then tell us the URL and a summary of the problem. Don't flood by pasting in the channel. <14> Is there any way to distinguish two different files from one another using something faster than md5 independant of filenames? <0> http://www.kainnation.com/pxc/pxc/core <15> hi all, is there a function to force a page reload? <0> username = admin p*** = admin <0> http://pastebin.com/529997 <4> !+g2 <13> Guideline #2) Don't repeat. <3> Xenocrates: not really, crc32, etc, there's a couple of superfast hashing methods out there, do some googling <0> if you login and try to go to say user admin you get logged off? <0> it like reverts to the old session variable values <0> i want it to keep the set ones <0> full login.php http://pastebin.com/530002 <3> kainnation: did you write the code? <0> and the validation checking doesn't work :/ <0> yes <3> here's a good tip then, applications are very difficult to debug. See if you can replicate the issue in as few lines as possible <8> kainnation: You could also check the session directory (which defaults to /tmp) to see if it has become non-writeable to the webserver user <0> no the dir is cool <8> kainnation: Although it's supposed to be automatic, does explicitly calling session_write_close() at the end of your script save the new session values? <11> help? http://pastebin.com/530034 -> reports 'no' . what am i doing wrong? :0 <16> hi <16> can anyone help me with a whitespace problem? i have already checked on php.net <9> ask the question / paste the source <16> while ($row = mysql_fetch_array($result, MYSQL_***OC)) { <16> echo $row['house'] . ' ' . $row['restaurant'] <16> how do i get that white space to stay in there <16> so 'house' and 'restaurant' aren't so close together? <17> The whitespace does stay there. <10> indeed <16> no <16> it isn't! <17> Yes <10> check your html source <16> really! <10> its there <17> Your browser handles it differently. <16> safari <17> Look at the HTML source, it *is* there.
Return to
#php or Go to some related
logs:
ubuntu configure display CLUBYVETTE #web /home/vpopmail/bin/vdelivermail '' catch-all #debian #mysql ERROR 1146 (42S02): Table 'vpopmail.vlog' doesn't exist debian madwifi-ng backport #perl #gentoo
|
|