| |
| |
| |
|
Page: 1 2 3 4 5 6 7
Comments:
<0> sorry i mean <0> filemtime <1> http://pastebin.ca/131109 <- have you try that with filemtime ? <0> no but i mean , when this condition will be true in the for loop` <1> back to, http://pastebin.ca/131105, and apply the ($Diff < 2) and the other stuff to replace what inside Line8 of http://pastebin.ca/131105 <0> ok <1> that condition will be true if you have any files that ($Diff < 2) <0> so i should put $Diff = (time() - filemtime("$path/$file"))/60/60/24; in forloop ? <1> Yes, but fix the "$path/$file" <0> yeah <0> should it be simple $file ? <0> Sorry, i mean file_list[$index] <1> perhaps, why dont you try ? <0> ok.. <0> Warning: filemtime(): Stat failed for gametest (errno=2 - No such file or directory) <0> http://pastebin.ca/131126
<1> Line 11, why you should put suffix ? <1> http://php.net/basename <0> i dont want to show the extension of directory files <1> okay... isnt that meaning filemtime() also didnt know what the extension ? <2> what??????/ <1> so... how did you fix that ? <0> no idea. <1> ... if you "hide" the extension from filemtime(), how come he able to lookup which file you want to show <1> check your error message <2> he? <0> i want to show ALL files , no matter what extension is. <1> what do you think that second argument for ? <3> Hi. <3> Let's say my domain is http://www.easypwn.com/ and I request /files/file.php so the full path would be http://www.easypwn.com/files/file.php .. how could I output just "/files/file.php" from this? <1> easypwn_, phpinfo(); and search the value near $_SERVER <1> inside* <0> Ox41464b.. so what is the way for basename solution? <3> ok, thanks <3> *$_SERVER* not found in phpinfo(); output. But anyways, which one should I look for which does what I want? <1> Kingfisher, dont use suffix, or... give the extension back when you use it inside filemtime <1> easypwn_, got any "_SERVER" ? <3> oh, yeah, srry, found it. <0> ok <0> oh great.. it seems to work, when i did remove basename on line 11 <0> oh my God, it works.. Thanks a billion Ox41464b for helping so long <0> okay, now it shows the file names+extension.. is there anyway that i can only show basename while printing it ? <1> basename it while printing then... <0> .basename($file_list[$index]). doesnt work <0> sorry <0> mistake again. <0> have done <0> i will once again like to say thanks to you Ox41464b for always being very helping. <3> What's a good way for quickly checking if an external file exists? (Lets say i wanted to check it http://www.domain.com/dir/dir2/somefile.php existed) <2> well you visit it ofcourse <2> DuH! <3> lol, I need to use PHP to check it :| <2> fopen/popen ? <2> @popen <4> fopen('..','r') i think <5> (PHP 3, PHP 4, PHP 5) <5> resource popen ( string command, string mode ) <5> Opens process file pointer <5> http://www.php.net/popen <2> @fopen <5> (PHP 3, PHP 4, PHP 5) <5> resource fopen ( string filename, string mode [, bool use_include_path [, resource zcontext]] ) <5> Opens file or URL <5> http://www.php.net/fopen <3> k, thanks! <2> id go with fopen <2> just read the first 4096 bytes.. <2> im not sure if it checks for 404 messages tho <3> how do I just check the first few bits of it? <3> When a 4040 appears it takes like full 30 sec to load :d <3> 404* <3> Just need to check if it exists or not :| <2> id use sockets then <2> opena tcp socket to port 80.. and send the headers <3> k <4> http://www.php.net/manual/ru/function.file-exists.php#59986
<6> um <6> @file_exists <5> (PHP 3, PHP 4, PHP 5) <5> bool file_exists ( string filename ) <5> Checks whether a file or directory exists <5> http://www.php.net/file-exists <6> LOCAL <4> easypwn_, see comments here: http://www.php.net/manual/ru/function.file-exists.php#59986 <6> fopen/popen would better suit his needs. <3> hm.. I've opened a socket, sendt "GET /dir/file.php" and waiting for reply.. but it still times out tho I've set it to '0'.. :/ <3> Can any of you take a look? If so; http://pastebin.ca/131164 <3> Its a function for a page.. supposed to be a lil table with some output like.. <ip> connecting to .. <server_ip>:<server_port> .. connected/failed, then GET <page> ... page found/404. <7> weird <7> cant seem to load pastebin.ca =/ <3> hm :s I pasted there cause pastebin.com wasnt working for me.. heh:s sec.. <3> http://paste.lisp.org/display/24103 <0> how can i replace begning letters of files from lower case to upercase ? <1> easypwn_, check docs for fread <3> substr/str_replace/strtoupper? :s <3> ok, thanks, I'll try. <7> shouldnt you send \r\n as well? <1> you are not timeout, but you are waiting on fread <3> oh.. <3> k <1> and one more... dont supress your error with @ <3> ok <1> Line 23, HTTP Protocol didnt works only with "GET /path" <7> GET /bleh/boo HTTP/1.1 or something <1> what wrong with file_exists($url) ? <3> Got it working now. Thanks! (I removed the GET /.. and fread() part and just fsockopen'ed the url, seems to work=) (I hope=) Thanks. <7> o_O <7> it doesnt mean the file exist <7> ;P <6> prior to php 5 php didn't support some url wrappers. but post php5 it has some limited support <3> o, hm.. <2> @file_exists <5> (PHP 3, PHP 4, PHP 5) <5> bool file_exists ( string filename ) <5> Checks whether a file or directory exists <5> http://www.php.net/file-exists <2> does it support url checks? <7> doubt it, see what ansi said ;o <3> I'm trying file_exists(); now, and (values of my vars) make it if(file_exists("http://localhost/dir/thisfile.php")) {echo "ok";}else{echo "404";} and it always turns out 404, although the file exists.. (it checks for itselfs existanse) :s <7> Tip: As of PHP 5.0.0 this function can also be used with some URL wrappers. Refer to Appendix M for a listing of which wrappers support stat() family of functionality. <7> http://www.php.net/manual/en/function.file-exists.php#59986 was mentioned earlier :) <3> ok, but I kind want this to be something I've made, and something a lil short.. like without huge extra functions :\ But maybe not possible like that anyways? :/ <2> im going and watching cartoons <2> im bored <6> 2s ***id <2> ? <6> 2s = peace <6> like dueces <2> hrmm <2> brain doesnt function when i dont have much work.. <2> work is food for brain <1> easypwn_, $fs=fopen('http://localhost'); var_dump($fs); /* compare with */ $fs=fopen('http://localhost/404.page'); var_dump($fs); <1> s/fopen/@fopen/ <2> i wonder whats on tv <2> btw <2> anyone here using voip? <6> NINJA TURTLES BEYOTCH <3> Thanks for help guys:)! Afk Bbl. <2> im offering tollfree termination <7> nope. <7> speaking of ninjah <7> ive got a boxset of ninja turtles that i havent watcvh <7> ;o <7> -v <6> lol <2> tmnt <6> yay, my domain is up. <6> w00t <6> iilywyswb: you want to slice this layout too? <6> anyways, shower. bbiaf.
Return to
#php or Go to some related
logs:
#india #kl #india kesy strong 3gpmovies #worldchat #allnitecafe #india Sting194 nameste london
|
|