
mynamesleo
Members-
Posts
68 -
Joined
-
Last visited
Never
Profile Information
-
Gender
Not Telling
mynamesleo's Achievements

Member (2/5)
0
Reputation
-
Ah ok, thought as much. linuxdream; how could I go about testing #1 ?
-
Just wondering if theres a way to view the php code of a php script online? or some sort of way to see what functions it has etc????
-
well, yahoo was an example website.... it seems to crash out on 49 on any website. What I am doing is just basicly scanning the html of a bunch of sites, for certain information. Nothing "dodgy" mind. I can do it fine in visual basic but thought id try it out in php. Is there anything else i could try?
-
Just used that as an example, the number it loops to will be much more and the page it reads will be differernt each time. Is that causing it to run out of memory? if so, what do i have to do? create a new variable for each page i read or??
-
Ok guys this is driving me cookooo now :-\ Ok this works fine, echo's out up to 440. [code] for ($x=0;$x<441;$x++) { echo "Scanned " . $x . "<br>"; } [/code] But adding this new line in, it stops at 49. What the hell? [code] for ($x=0;$x<441;$x++) { [b]$chtml = strtolower(file_get_contents("http://yahoo.com"));[/b] echo "Scanned " . $x . "<br>"; } [/code] Sorry if this is something silly, i'm still new to php, I just dont understand how adding that line in causes it to stop looping at 49 >:(
-
i updated the time and it seems to work in IE now ???
-
Hi all, having a bit of a problem with the setcookie: In my index.php I have the following: [code] <?php if (isset($_POST['list'])) { setcookie("VLIST", $_POST["user"], time()+3600);$vlistid=$_POST["user"]; } else { $vlistid=$_COOKIE["VLIST"]; } [/code] $vlistid will be put into a forms textbox further down in index.php, i did it so if the form is being submitted then: set the cookie, otherwise $listid = the last cookie set. the reason i put $vlistid=$_POST["user"] after setting the cookie as when the page reloaded from the form being submitted it was showing the old cookie. It seems to work fine in firefox but in IE, when I go back to the site it doesnt show the cookie. Thanks in advance, p-s; how do i set the cookie to expire in 1 year?
-
is there a way to get the re-directed url using header? im guessing no ??
-
I said shut the F*** up after you started the argument, remember. I didn't argue with ted I said thanks but basicly that doesnt help. And as he kept posting it I just got a little irritated. I just thought i was asking a very simple question, but it seems to have just confused everyone.. which sucks. Shu, i think you actually had the answer to the question also, in the header part.
-
My god man how old are you???? The first question I asked was this: [code]All I want, is to be able to get the url that this link directs too: http://youtube.com/v/I6DBeK7y-4Q it directs to http://youtube.com/p.swf?video_id=I6DBeK7y-4Q&eurl=&iurl=http%3A//sjc-static14.sjc.youtube.com/vi/I6DBeK7y-4Q/2.jpg&t=OEgsToPDskIDNtK1GcrDtb2oPUlepC__ [/code] How is that not asking a question properly??? how in the hell can that be asked differerntly? all that happens is the link re-directs, i simply wanted to know how to get the link that it redirects too; which happens to be an FLV file/player. I said it has nothing to do with youtube to try and make it simpler for you to understand (my god, how does this need simplifying!?!?) - the question I am asking has nothing to do with youtube, its to do with a re-directing url. The program I am writing does have to do with youtube, but im not here to talk about that im here to talk about the re-direction!!!!!!!!!! Yes I did state you cant answer the question which is FINE, but because you dont know the answer to my question you try and start an argument instead. Theres a name for people like you, i'm not sure what it is but its very clear whats happening... You dont know the answer, which subconsciously angers you.. maybe this is due to an inferior complex of not knowing enough or something. So you have come up with a defense mechanism for when you dont know the answer, you trigger an argument and work from there... trying hard to make the person asking the question feel like they are infact the one who doesnt know enough, and of course you know more. Am I chatting crap? well look what happened here: Out of the blue you post this: [quote]"Firstly, sorry to disappoint you. [b]But you make it sound like you are the first person[/b] to find out how to download a video from youtube. Secondly, [u][b]i can do it[/b][/u] by injecting a javascript code." [/quote] Can you see that? cries out "im better than you!!!!" even though i had presently said [quote] alot of people have wrote youtube downloaders[/quote] Your not alone though buddy, theres guys like you on all forums. just remebered what they are called: delusional dreamers
-
Shu I only used rude words at you because simply you was acting a fool , and i'll bet everyone else can that also. You started with me trying to make me feel stupid by saying "your acting like you are the only one who can do this" , even though I wasnt, i clearly said "I NO LOTS OF PEOPLE HAVE DONE THIS" Anyway, my question is about PHP not youtube videos, i told everyone why im doing it and it seems to just added more confusion which is why i didnt do that in the first place. As for your questions, you told me deleted videos cant be download and i just showed you that they can... how can you have more questions? just leave it at that. Anywho, if you cant answer the question "how to get the URL from a link that redirects in php" then please stop posting in this thread. Thanks
-
[quote author=Shu link=topic=119886.msg491863#msg491863 date=1167171333] you do know, typing 'http://youtube' in the address bar won't take u to youtube. and then please don't be that naive. youtube as one of the top site, will of course make the .flv file of the deleted video unable to download as well. [/quote] My god are you that simple? ok let me finish the EXAMPLE: "Anywho, I dont know JS but looking at that its just the same way everybodys doing it. First of all id change the CHECK (the check to make sure they are at youtube!!) from WWW.YOUTUBE.COM to just YOUTUBE.COM as some people like me have it bookmarked as HTTP://YOUTUBE.COM" Naive????? Deleted video: http://www.youtube.com/watch?v=v1XgE_c9jyw Download that deleted video: http://ash-v126.ash.youtube.com/get_video?video_id=v1XgE_c9jyw mod edit: grossly inappropriate comment removed. Do not use language like that here. The next time, will get you banned.
-
[quote author=Shu link=topic=119886.msg491825#msg491825 date=1167162374] Firstly, sorry to disappoint you. But you make it sound like you are the first person to find out how to download a video from youtube. Secondly, i can do it by injecting a javascript code. [code]javascript:var r=false;void(g());function g(){if(window.location.host!=%22www.youtube.com%22&&window.location.host!=%22www.youtube.com%22){alert(%22Go to YouTube and select a video first.%22);return false;}try{r=new XMLHttpRequest();} catch(a){try{r=new ActiveXObject(%22Msxml2.XMLHTTP%22);}catch(b){try{r=new ActiveXObject(%22Microsoft.XMLHTTP%22);}catch(f){r=false;}}}if(!r)alert(%22oops! try again later ..%22);w=window.location;r.open(%22GET%22,w,true);r.onreadystatechange=u;r.send(null);}function u(){if(r.readyState==4){if(r.status==200){var t=r.responseText;var l=t.indexOf('SWFObject(%22/player2.swf?')+23;var z=t.indexOf('%22',l);if(z==-1){alert(%22String not found.%22);return false;}var h=t.substring(l,z);window.location=%22http://www.youtube.com/get_video%22+h;}}}[/code] i put this code into a bookmark and whenever i want to download a video i just click the bookmark. no privacy issues, fast and simple. :tested in firefox 2.0 Shu. [/quote] First of all, what part of me saying "alot of people have wrote youtube downloaders" gives you the impression i am making out im the first person to do this??? Anywho, I dont know JS but looking at that its just the same way everybodys doing it. First of all id change the check from www.youtube to just youtube. as some people like me have it bookmarked as http://youtube Also the way im doing it is to be able to downloaded deleted videos
-
how about opening up a new/hidden broswer within php then just grabbing the url of it? can this be done in php or is it to messy?
-
[code]str_replace("£", "", $value);[/code] I guess that would work, and do the same for the .