| |
| |
| |
|
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
Comments:
<0> Not really, no. <1> FlamingCows: no problem, I have time, been scratching my head over the few past days with this :/ <2> thanks <3> please chek this and tell me what`s the problem http://pastebin.com/597500 <4> DjDarkman: how do we know the issueif we dont know the symptom? <3> itrebal: it`s on my server ,i get 0 for the error code when i try to upload but i never stops uplading <4> how large is the file? <3> 851 bytes <5> DjDarkman: refresh your pastebin <3> kodekrash: done <3> 10x <3> Parse error: parse error, unexpected T_STRING, expecting '(' in /var/www/s/upld.php on line 5 <0> tenmon: Got it. <0> http://pastebin.com/597508 <0> It was a matter of backslashes. <0> Stupid multi-level escaping...
<4> ah damnit, i hate a hang-nail on my toe <1> FlamingCows: if it works you'll be the god of flaming cows :D <6> night <1> FlamingCows: oh man, it works, you're a god! <0> :) <1> FlamingCows: in the past week I've started to learn regex for a lexer translator I'm doing, and didn't had any major problem or stopper <1> FlamingCows: but this single thing put me off to a stop, where I couldn't do anything more <1> FlamingCows: I was starting to think that it couldn't be done with a regular expression <1> :D <0> heh, it's a simple enough regex, just with all the levels of backslash escaping going on, backslashes are a real pain in the arse to deal with. <0> Especially right next to a '\n'. <1> yeah, actually the most difficult things to me now are backslashes and newlines <1> because in php they work different from another tool I'm using <7> if I have url foo.php?bar, isset($_GET['bar']) should be true right? <7> can't figure out why it's turning out false <8> try $HTTP_GET_VARS <1> shouldn't be foo.php?bar= ? <8> ['bar'] <8> right, and also it should be that <7> is $HTTP_GET_VARS the old fashioned way? I know my version supports $_GET <9> void[]: It should give you TRUE. <7> but I'm almost certain I've done it before without = <8> i believe _GET is the old way <8> but i don't think it's turned off <0> No. <0> _GET is the good, new, way. <0> HTTP_GET_VARS is the old, deprecated, way. <7> pwned :p <8> ah, well there you go <1> and what is old is the register globals also <8> right <8> those are bad <0> ?bar mean $_GET['bar'] has no value, meaning it will evaluate to false when typecasting. <3> wich functiomn can get me the current directory (in wich i have the php)? <0> isset($_GET['bar']) should be fine, though. <1> the '=' makes the variable being set in 'foo.php?bar=' ? <0> !tell DjDarkman about func getcwd <9> tenmon: = is not necessary <7> it is requiring bar= for some reason! <7> when I put it on there it works <3> 10x FlamingCows <1> so, to '=' or not to '=', that's the question :P <8> if = works, use = <8> easy question <1> not really <1> maybe the behaviour changed between versions <1> something not really uncommon ;) <7> I'm almost certain I've done it without = on this same version <1> maybe it's a setting on php configuration ? <7> haven't touched that either <1> then, it's weird <10> I vaguely recall that behavior being supported, but I don't remember the details. I'll see if TFM has anything... <0> Have you done a var_dump($_GET) to be sure exactly what's there? <9> FlamingCows: Has no value as $some_var = NULL; ? <0> I guess. <7> I looked at $_SERVER['QUERY_STRING'] and it's there, I'll try that too <0> Of course it would be in the query string. <9> FlamingCows: If so, isset($_GET['bar']) should return TRUE, right? <0> Yes.
<7> not showing in var_dump($_GET) <0> Weird. <7> "var_dump($_SERVER['QUERY_STRING']); var_dump($_GET); exit;" -> "string(13) "id=rxs3e0&bar" array(1) { ["id"]=> string(6) "rxs3e0" }" <0> Try bar&id=rxs3e0 <7> "string(13) "bar&id=rxs3e0" array(1) { ["id"]=> string(6) "rxs3e0" }" <0> Weird. <7> yes! <10> What are you doing that doesn't p*** a value, out of curiosity? <7> just shows a slightly different view of the page <7> ?bar is neater than ?bar= but I'll add the = if I have to :p <0> You could parse the query string yourself. <7> true.. or actually couldn't I just do some string and set $_GET ? <7> string split <1> void[]: if you ask me, doing apache mod redirects would be even neater that the '?' thing <7> I don't think this signifies a new virtual page, or whatever you want to call that <1> void[]: maybe you're right, I don't know the particular case <11> sup all <7> it's the same page just excluding a certain thing, user's preference <11> not much I guess... <1> void[]: then it's not worth, and foo?bar= would be fine I guess <1> maybe you could use foo?userpref=bar instead I guess <7> hm maybe! <7> Thanks for the ***istance, all <1> that's the most common way anyways, and if you want it prettier, using mod redirects (like when making the page SEF) is good also <7> SEF? <12> heh <1> search engine friendly <1> :P <12> anyone tell me if www.platinum-designz.net resolves? <13> hello <7> Did you mean mod rewrite though? <7> I am using that, really cool feature <1> void[]: http://nexodyne.com/showthread.php?t=8147 <14> Hmm, would you guys say ... if myspace.com was done in PHP, and done properly... it would have a myspace cl*** ... ? <10> foo: Why? <1> void[]: well, a very common use of mod rewrite is to make SEF pages <14> CWhiz: Curious. <13> when i do $_SESSION["test"]="this is a test". in one php page and then i do echo $_SESSION["test"] in another page. why do i get Undefined variable: _SESSION <7> tenmon: yeah, I am very concerned with "pretty urls" (SEF ones). you just said mod redirect when I ***umed you meant rewrite. <15> Alexi5, because you forgot to call session_start()? <10> foo: Well, the question is kind of broad. There's a lot of ways to write something like MySpace. <1> void[]: lol, you're right, it's late here <10> foo: And of those many ways, there's multiple "correct" ways. <14> CWhiz: I know .. but if it was done "properly" ... should a cl*** be used? Or just several functions? What way would be more effective. hmm <14> CWhiz: I see. What way would you say would be more effective ? <14> hmm <9> foo: Whose definition of properly? <11> foo: typically there are several cl***es which contains several methods, as well as includes which contain simple functions.... <10> foo: I usually prefer object-oriented programming. But even with OOP, there's different cl*** structures that could be used. Some might have a root MySpace cl***, but others might not. <11> it depends on how the programmer writes his/her code... some people may make a cl*** which contains methods that involve database interactions etc... or a cl*** used simply to inspect input data and so on.. <14> CWhiz, cyphor, tws: I see. Thanks - if you had to do something like myspace, how would you structure it? As far as making several functions ... or having a cl*** with several methods .. hmm. <11> I'd probably have some of everything <10> foo: You still seem to be holding something back. We're not going to re-implement MySpace for you. <11> maybe have a cl*** that contains the base site header and footer, a cl*** that contains methods for inspecting user-supplied input data, a cl*** that contains database queries and so on... then I'd probably have a simple functions include that contains stuff like maybe a function that converts timestamps based on user selected timezone etc.. <3> how can i get teh contents of a directory? <9> foo: It will need some thinking and some changes after the result of thinking is implemented. <11> heh <10> DjDarkman: http://php.net/opendir <11> DjDarkman: see also http://us3.php.net/manual/en/ref.dir.php <3> 10x CWhiz & cyphor <11> np <16> hi <11> hello zulqar <16> i need help <11> oh? <14> cyphor: thank you. <16> first i make run.sh shall script i give chmod +x run.sh <11> np foo <14> CWhiz: I'm not holding nothing back, and I'm not asking you to re-implement myspace. I am curious, and nothing more. <16> but when ever i click it won't open inside my own software <16> but when i try with ./run.sh it works? <11> wrong place to be asking those types of questions zulqar <16> any idea <9> zulqar: Your own software?
Return to
#php or Go to some related
logs:
ubuntu no sda1 CVS advantages over SVN undefined reference to XdmcpWrap #perl Ubuntu mouse not workin get raw headers php ubuntu mbrola how-to sles10 dhcpd debian sarge 3w-9xxx install famouse mathematica
|
|