| |
| |
| |
|
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> is $_SERVER['REMOTE_ADDR'] secure? Ii it allways the ip of the client. Proxys are one thing, but that I know. <0> is it allways... <1> hello <1> i have an issue with IE <1> i have a search engine that uses a form for each result <1> when the user clicks the submit button the result detail are displayed <1> now the problem is that if the user tries to go back to search results <1> a "page expired" appears <1> (seems to appear each time you try to go back to a page with an url using POST) <1> (the POST comes from the search textbox) <1> how can i avoid this? <0> ktne: are you sure it's an issue with php and ie... I mean as far as ie is considered, contents is html or whatever **ml <1> it's not a php issue <1> but the app is developed in php :) <1> it's more of an IE issue <2> ha1331
<2> no <2> for some reason <0> ktne: Follow the guidelines and nobody will get hurt, /msg php-bot guidelines <2> $_SERVER['REMOTE_ADDR'] never returns my actual IP <2> it returns some other IP address as if i was behind a proxy or sth <1> ha1331 ? <1> ha1331 and how would my question be against the guidelines? <3> Andy--: your ISP may be caching the result, may be filtering your IP, etc <3> check X_FORWARDED_FOR <0> ktne: 8) If it's not a PHP question, don't ask. <2> yeh aidan i think its ntl doing it <2> :) <1> ha1331 it's a php app so it has to be solved on the php side <2> they are a bit wierd like it <4> !+g10 <5> Guideline #10) We don't support xyz script. We help you *write* PHP, not recommend or download and install/hack/modify/adapt/use pre-written scripts <2> i think its one of the reason ebuyer.com is so slow for ntl users <2> :/ <2> reasons* <1> ha1331 and i tought that it might be common enough so that some fellow php'ers might have a solution <0> ktne: I'm not offended, I just pointed it out, in case someone else is. And what comes to your question, I dont know how to answer. I just think it might have something to do with either coocies (dont know if that even is really an option) or with POST. I'd use GET <4> I bet that app is running on an intel or amd cpu too, why not call them for support too! <6> What does 'Fatal error: Invalid opcode 99/4/1. in ...' means ? <7> hello <1> i need i really small in-page WYSIWYG editor script <1> anyone can recommend something? <4> !+g10 <5> Guideline #10) We don't support xyz script. We help you *write* PHP, not recommend or download and install/hack/modify/adapt/use pre-written scripts <1> Jymmm sure <1> and who says that those guidelines are right? <0> Jymmm: :D <4> !+g16 <5> You can be /kickban from ##php for being stupid <0> :DD <4> **** me.... DST is in effect <0> dst? <8> daylight savings time <4> yeah <4> I need to put a better antenna on my clock, sigh <0> aa, is that when you turn clocks forward? <9> lawlz, you lost one hour <8> yeah <8> Jymmm: Synchronising clock via radio? <4> jpofy yeah <0> we did that week ago <9> ha1331: countries/states have different rules... <0> Vylen: it seems so :) <8> Jymmm: That's the best feature any of my watches has ever had =) <9> some dont even observe DST <10> can php 4 syntax be utilised under php5 environment? <9> yes <11> hi all <12> hi <11> how do i enable GD2 in PHP under windows? <12> its a extension <12> Well, you have to download php_gd and unrar it. Put it in your /php/extensions directory. Then you open your php.ini file, and start searching for a pretty long list of extensiondefinisions (most of them commented, list of extension=thin_one.dll and so on.) <12> Now find the following rule: <12> ;extension=php_gd2.dll and remove the ; in front of it. <12> Safe it, restat your server and if everything went ok, you should see your extension listed when you open a phpfile with <12> http://users.skynet.be/R.V/GD2/php_gd2.rar <12> there you can download GD2
<12> the dll <12> lol <12> Jymmm <4> redalpha yes? <13> blue team go, blue team go, activte delta shield <13> red alpha hold position <12> Jymmm do you have any idea how people can get those comment blocks in the php source so perfect all the time <4> redalpha no life? <12> k :P <14> redalpha: things that make the comments for them <15> When returning resultsets, does using the *_fetch_array() function where it returns both numeric and ***oc arrays have overhead? The db2_fetch_both() function which is comparable to the mysqli_fetch_array() function states that there is mem overhead but the mysqli does not say state anything about performance hits. <14> err... wtf? $array = scandir_r('/path/to/something'); natcasesort($array); will return many array-to-string conversion errors, which don't make sens... do they? <14> mtjo: i ***ume there'd be some overhead there.... but not much i coulnt imagine a whole lot <16> I need some ideas on what to program, does anyone have something not that big but that easy <16> but not that easy <16> * <15> thanks itrebal <17> is anybody running php from cvs ? <18> hey <18> I have a question about using the gd library <18> if I make an image and use a php file containing the image code, is there any way I can gave it intereact with the page the image is on? <18> gave=have <18> im not sure if it's possible to post information from that page to the image.php <18> besides using a form or something <19> hey <4> FordPref: Say that agian, this time in an EARTH language. <14> Jax: what version of PHP? <14> Silliman: like something to do in your freetime, while still a learning thing? <19> He's FordPrefect and not from earth <19> Anyway <16> itrebal, yes <14> Silliman: what was your last project? <16> a game <14> and you dont call that huge? what kind of game <19> I need to get the newest file in a directory. For my webcomic thingo. I'm ***uming the newest file in the directory is the latest webcomic. Unless anyone knows any other ways to go about this. <16> itrebal, yes that way i want something small <19> To make sure its the latest file, the program goes to the page that the comic is on and checks for the comic directory string for a match. <16> itrebal, online shoot/guess/calc thing <14> Vixus: scandir i think orders by last-modified <14> ah <19> itrebal: Thanks. <14> Vixus: nope, its not.. <19> itrebal: nope <19> itrebal: play around with readdir? <17> itrebal 5.1.2 or so <14> Jax: yea, i am... i was running php6 but i ran into an issue <17> itrebal could you run a test case for me, just a couple lines of code <17> if you got mysqli compiled in that is <17> http://pastebin.com/635778 <14> Vixus: yea, i was looking at glob but that doesnt seem it either <14> Jax: nope, no mysqli <19> itrebal: I thought of todaysdate-filemtime to get the last modified and doing it for each file got through opendir, but the comic may have been modified before its predecessor etc. <17> grml <14> Vixus: yea.... how are you arranging your webcomics? and wouldnt it work to name them timestamp.jpg therefore you can do.... $array = scandir('/path/to/comics'); array_walk to strip off the .jpg and then use max() on the array, put .jpg back on and use that? <14> Vixus: actually now reading the max() manual, you can use strings, and it may work without remove .jpg <18> ok, <18> say I want to use the gd library to generate an image in my page <19> itrebal: Sorry, trying to understand what you wrote. I see what you're saying, but the problem is... how do I know if the file really is the newest? People may not upload their comics in order of creation all the time. <18> I would make the php code for it in a php file and use <img src="...image.php"> to use it <18> but how do I p*** info from the page im placing it on to the image.php <18> without a form <14> Vixus: thats an issue, because the 'last modified' will be the time they uploaded it anyway, becase technically, that is the last time it was written to <19> itrebal: Another way could be to scan the page the authors post their comics at, and find the <img src="blabla/path/to/comics/###TAKEME.JPG####" /> and make it take the image from there. <19> itrebal: Oh really? Then that makes everything ok. But which method would be faster? <20> FordPref: You can append data to the end of the URL, like a GET form does. That data will be available as elements of $_GET in your script. <14> Vixus: i'm not seeing a 'faster' option, since i'm unsure how you could get the 'last-modified' time, in which case it would probably be faster, but doing $img = max(scandir('/path/to/comics')); seems like a pretty basic solution <19> itrebal: but scandir orders alphabetically, no? <14> Vixus: yes, but it will get the highest value in the array, with max() <18> ok.. <19> itrebal: It would return the file zoo.jpg instead of abacus.jpg... and abacus.jpg might be the latest comic. <14> Vixus: that idea was based on if you were using a timestamp for the name, but you are right <19> itrebal: Ah... doesn't filemtime(file) give the last modified time? <14> Vixus: it does indeed, i was unware of the function <19> itrebal: So will that work?
Return to
#php or Go to some related
logs:
ubuntu start sshd #lisp FreeFontPath vnc #php #lisp gentoo canadian multilingual keyboard /bin/sh error while loading ubuntu #debian #math #css
|
|