« first day (1026 days earlier)      last day (3938 days later) » 

@Danack checking
 
@PeeHaa Love the last one
 
@PeeHaa im doin my crappy personal website too haha
 
@Danack user doesn't need action. The edits have been approved by community. Just leave a comment if you feel the tagging in the questions is distracting. As for the tag wikis, he cited the source, so that's okay with me. If you feel that's objectionable open a post on MSO please so we can get the community opinion on it.
 
@Duikboot which is better? phalcon, laravel or symfony2?
 
5:16 PM
I am not the right person to ask that question. :)
 
@reikyoushin ZF2 ;)
@reikyoushin Of those I'd take symfony2
 
Im not sure why but i move away from zf.. something doesn't feel right
 
@reikyoushin Using ZF1 or ZF2?
 
@reikyoushin impossible question to answer
 
whichever.. XP
@ircmaxell for an enterprise solution? which is better? add zf2 to the list
 
5:18 PM
impossible question to answer
 
LOL
@ircmaxell would you create one from the ground up instead?
 
it's impossible because trying to make a decision on partial information is always impossible
 
saw that
 
@ircmaxell aaah. for example you are going to create a new e-commerce platform.. netsuite like and stuff
 
5:20 PM
 
i was double face palmed. T-T
 
Well stop asking silly questions then!
Look, framework choice is rarely an objective thing.
Each one has advantages, each one has disadvantages. Some are well-architected, some are embarrassments.
Pick a few, write some trivial projects using them, and then pick the one that you liked working with the best.
Just remember that you're gonna get made fun of here regardless of which one you pick.
:)
 
well, what I'm asking is.. what if you are the one to do something like magento for example.. without knowing it originated from zf.. what would you use if i were you..
so i would have an idea why the people here choose those frameworks
ive read some already from blogs..
 
@reikyoushin I would use ZF2, or I would use Catalyst but that's not PHP
 
yet still im not sure about if i chose the right one
 
5:24 PM
If you don't like ZF2, try Symfony2
 
Personally, I'd use Silex on top of a SOA backed by my home-grown wacky non-ORM, but I'm not you, so I'm not going to advise you do that.
 
@reikyoushin I would personally say avoid CodeIgniter or anything else which puts more priority on speed and ease of use than on maintainability.
Any of the 'heavy' frameworks will do what you want them to. If they can't, extend them.
 
You can always use Wordpress, m'kay.
 
@ircmaxell actually, we make decisions on partial information all the time. then we learn it was the wrong decision. and then we adapt. rinse and repeat :)
 
well, zf2, symfony2, laravel 4 and phalcon i think all use composer so i can interchange their modules right?
i mean.. the helper modules.. not the core of course
 
5:26 PM
I'm going to play a @tereško for a bit... Hire a developer.
 
@reikyoushin I doubt phalcon uses composer since it's a pecl extension
 
@webarto "Hire a developer." but I'm trying to be a good one.. why hire when what I want is to learn :P
 
And unless Laravel 4 takes it out of static-everything-hell, I doubt it'd get along well with ZF2 or Symfony2 components.
 
i think laravel 4 uses symfony2 components, won't it work the other way around?
 
@reikyoushin I also tried to add my SO flair, but those cheapasses don't support ssl :(
 
5:28 PM
@Gordon yes, but we have a lot more information than "for enterprise"
@Gordon and shut-up. You know what I meant ;-)
 
@reikyoushin Then stop asking stupid questions and debate like you're experienced, try it, learn it, move on.
 
@ircmaxell :)
 
:-P
 
@webarto i just don't want to be biased to a framework just because it is the only one i've liked. maybe, just maybe.. there is a reason out there that could change my mind.
 
@PeeHaa is this "make a crappy homepage" week, 'cause I'm doing it too :P
 
5:31 PM
@PeeHaa err.. does not support ssl?
 
@reikyoushin use vork.us. It's an Enterprise PHP Framework
 
user895378
Here's the pthreads problem I need to solve to improve the async job dispatcher in case anyone cares ...
 
@reikyoushin Use what does the job for you, and what you like... if you don't like any, you can always make one for yourself, it's still PHP. Your opinion is not relevant.
 
@webarto I'm done with it. Shit like that is boring :P
 
user895378
@webarto Did somebody say "geocities"?
 
5:33 PM
@Gordon Pfft, if we're trolling people you should at least point them at RADICORE for the ultimate in hilarity
 
@Charles yolophp.com
 
hey yolo's site has changed :( @igorw
 
@Gordon I'm very slightly afraid of that site.
 
Or did it always have a white bg?
 
@Charles it's @igorw's
 
5:34 PM
@rdlowrey LOL
 
@Gordon Remind me to thank/scream at @igorw.
 
@PeeHaa I used to polish turd make homepage when I was unemployed and had no money better things to do.
 
user895378
Comic Sans MT? What's not to like!!!11
 
@webarto hehehe
> Pull requests MUST include at least one animated gif or at least one piece of ASCII art in the description.
7
lol
 
BOTH!
 
5:37 PM
:P
 
pfft. what's with my firefox.
its crashing everynow and then
 
@LeviMorrison react/promise by jsor is a really good implementation.
he is actively following the promise/a and promise/a+ specs from JS land as well.
@PeeHaa the only recent change was the addition of YOLO Certified Engineer
 
@igorw hmmm my memory is a mess. I must have burried the memory of the site :P
1 message moved to bin
 
~ ➤ time_between days 09/08/2012 12/31/2012
There are 114 days between 2012-09-08 - 2012-12-31
~ ➤ time_between months 09/08/2012 12/31/2012
There are 3 months between 2012-09-08 - 2012-12-31
~ ➤ time_between farts 09/08/2012 12/31/2012
Anyone knows what farts is, except obvious?
2
 
5:57 PM
how long would it take to perform a 40 bit encoding using php? i have a 10 digit integer, so i want to do a 40 bit encoding
 
@NokImchen 40 bit encoding using what? what algorithm/format do you want to encode it with?
 
@igorw i dont have the algorithm. can i use base_convert() to convert the 10 digit integers of 8 bit to 40 bit integer?
 
@Charles reminds you to thank/scream at @igorw
 
@reikyoushin Use IE ;)
 
wohoo, I got summoned for jury duty...in another state O_0
 
6:06 PM
@crypticツ congrats!
 
@crypticツ ROAD TRIP!
 
apparantly if I don't travel 1,300 miles to serve, I will be in contempt of court. Only in America...
 
@crypticツ hey, please help me , please have a look here pastebin.com/X88LxtGZ
@igorw please have a look at pastebin.com/X88LxtGZ (same link as above) regarding the previous question..
 
.oO ( if my vote wasnt binding … )
 
@Gordon Oh thanks.
@igorw I love/hate you for that YOLOPHP thing.
That is all.
 
6:11 PM
@crypticツ can't you say that.. i did not receive the mail. XP
 
@crypticツ See if you can be luckier: Failing to report for jury duty is not technically illegal and usually results in an individual simply being placed back into the selection pool to be called for another trial.
 
@NokImchen based on that, I believe what you want is to convert from base 10 to base 2.
something like this: str_pad(base_convert(3542342314, 10, 2), 40, "0", STR_PAD_LEFT)
 
@igorw i dont know about base system. Yes i do know that binary is base 2 and decimal is base 10 cos decimal has 10 numbers while binary has 2 numbers? But i have no clue what base do i need
 
@rdlowrey I have answered the bug, sorry for delay ... infact there is likely a better way to do what you are doing, so before I go ahead and give you working example can you update bug with more info ...
 
@igorw thanks a lot, i have also been playing with same base converter functions-online.com/base_convert.html
 
6:15 PM
@cheesemacfly the letter says otherwise, says if I don't report can result in fines and incarceration. I've called the jury coordinator twice and left messages, she apparently never goes to work.
 
thanks a lot. You help me a lot :)
i'll code now :)
 
@Gordon mmm they look delicious, I love shrooms.
 
@NokImchen note, nothing changes about the bits. converting the base just represents the same number in a different way. meaning, it's the same bits.
 
@crypticツ tell them 1300 miles is too far to go by car and you want inplaneceration or at least intrainceration
3
 
6:18 PM
@Gordon lol, I see what you did there =oP
 
@Charles <3
 
@crypticツ they have funny names. I think I'll start to call people Latticed Stinkhorn from now on
 
@igorw please look at the accepted answer stackoverflow.com/questions/18093544/… , he wants me to use 10 bit (but 40 bit is perfect cos i have exactly 10 numbers). i understand the bit system. But i don tknw how to do the encoding.
^ @igorw the code u gave me str_pad(base_convert($term, 10, 2), 40, "0", STR_PAD_LEFT); works wonders :) thank u a million :)
 
6:48 PM
@Gordon Yuck.
 
@gordon I'll ask on meta about the others but this stackoverflow.com/tags/transactional-replication/info is copied from a Microsoft site that doesn't appear to give permission to copy.
 
@igorw i have been trying to replace str_pad cos it returns in string format. i want it to return in float. I have tried sprintf, number_format but both fails. Any alternative?
 
I wish there was a sorting machine for that. it's soooo tedious to sort fries by hand
 
The nom-nom-nom sort?
 
@Gordon if they would pay for the transpo it would be a nice vacation :)
 
6:57 PM
@NokImchen I repeat my suggestion from the other day read the data compression book to stop wasting your and everyone elses time: amazon.co.uk/Data-Compression-Book-Mark-Nelson/dp/1558514341
 
@reikyoushin yeah, vacation in Kansas...sounds wonderful =oP The only good thing in that town is the cheap pot and the local beer.
 
@Danack i'm going to achieve within a week!!! Now, i'm wondering what to do with the algo, sell? Patent? or open source it? Any alternative?
 
^ what he said
 
@NokImchen You're still doing that?
 
6:59 PM
@crypticツ Kansas? That's that JavaScript thing you can draw on, right?
document.kansas.draw()
 
Warning: syntax error, unexpected '!' in config.ini on line 5 pastebin.com/GYTAhL9D
 
@Bracketworks Yup - and he still doesn't understand why he's wasting his time.
 
@NokImchen definitely patent it and then sue everyone using it
 
@Bracketworks yes, i;m 80% done. Now, i have solid "trade secret" theoretical approach to the algo. All i need is to code. Bt i'm stuck with base_convert and bring it back to base 10 format :( help me :(
 
@Gordon I called that on Chrome, and got this:
 
7:01 PM
@Gordon it's where I went to college, apparently I still live there and have civic duties. I wonder if I still need to file taxes there too O_o
 
@Gordon i cant affort a lawyer in countries like US, UK, or any developed/rich country :(
 
@Bracketworks sharknado?
 
@iroegbu try quotes? password = "Password!"
 
@Gordon That was on the other day :-P
 
@Gordon those are real
 
7:02 PM
@NokImchen ask on law.stackexchange.com
 
@crypticツ Isn't that when a typhoon slurps up a school of sharks from a reef or whatever, and then rains them on the general populace?
 
@crypticツ it was on tv so it must be real
 
@Bracketworks waterspout, and yeah many have died from it. In the Amazon they get Pirahnadoes
 
@NokImchen Y'know, please don't take this the wrong way, but if you're stuck with base conversion, I have little (read: zero) faith in your algorithm.
@crypticツ Aaaaand that's why I spend most of my time indoors.
 
@Gordon i know the patent system and it takes years to get accepted/rejected. I dont think i can afford a patent. I'm thinking to sell it but i want guge money , will donate a small part to stackoverflow and member like Cryptic, iglow, Dave Random, rici, etc etc many many ppl helped me.
 
7:04 PM
@NokImchen sounds like an honorable cause. maybe @crypticツ can pay for the intrainceration with it
 
@Bracketworks i'm not a programmer by profession. Programming is just a hobby. I'm more of a theoretical guy.
 
@Danack Thanks a bunch
 
I smell a troll among this chatroom O_O
 
@Gordon it was rici and many guys here (too many to name) who gave me the idea if binary encoding. I'll be able to compress 90+% of even a zip file :)many
ok , ok no more chat here. sorry, u guys continue :)
 
@Gordon the same city spent $1.4 million repeatedly arresting a blind homeless man over a 10yr period. =o(
tax money at work! =oD
 
7:09 PM
@crypticツ who? who is it? who is that Latticed Stinkhorn?
 
@Gordon It might be me...
 
@Gordon a sweet man name Simon, blind, a little nutty wore socks on his hands and was actually very intelligent just fell on hard times due to his disability. But city made a no loitering rule downtown because Chamber of Commerce didn't want 'poor' people downtown sullying the look of their businesses so if he was caught so much as sitting down or leaning against something it was loitering and he was arrested. With $1.4 million the city wasted they could have make a very nice homeless shelter.
 
@salathe yes
aaaand done :)
 
gimme some of 'dose
 
@Jeremy dey all mine. u only gonna git some over my cold dead body
 
7:20 PM
git pull go_oh noms
 
ask the 'murricans. The constitushion says I can shoot you if you try to take mah freedom fries
 
@Gordon I'm not sure what's on the plate, but I want to eat all of it. And the plate.
 
evening
and goodbye again...
 
@Bracketworks it's freedom fries, croquettes and chicken breast slices with habanero sauce and baked with old cheese
 
soooooo
 
7:24 PM
@Gordon freedom french fries fried potato segments. Don't be all like that.
 
@Bracketworks tbh, they are thick ones, so I guess they are dutch
oh, there is also corn on the plate
 
Well, that's effin' delicious looking.
 
@Bracketworks I can tell you, it's not only looking like that ;)
@NikiC there is a feature request in the internals room I'd like your opinion on. please check it
 
I'm gonna be honest, I cannot believe that "freedom" fries are a thing. Is it really unanimously agreed upon across the US to refer to them as freedom fries? (I'm Canadian, so you know, I'm too busy fighting polar bears to know what's going on in the world)
 
^ how the PHP room juggles between food and php
@Bracketworks Nobody calls them freedom fries...
Maybe the Germans do, you'd have to ask.
 
7:28 PM
Freedom fries is a political euphemism for French fries in the United States. The term came to prominence in 2003 when the Republican-controlled Congress officially renamed the menu item in Congressional cafeterias in response to France's opposition to the proposed invasion of Iraq. The renaming quickly gained notoriety as part of a greater wave of political and popular anti-French sentiment in the United States. Although originally supported by Americans with several restaurants changing their menus as well, following declining support for the Iraq War, the term fell out of use. Followin...
 
> Although originally supported by Americans with several restaurants changing their menus as well, following declining support for the Iraq War, the term fell out of use
 
@Jeremy Well, I remember for a brief time, visiting relatives in the US, that people did in fact refer to them as such.
 
@Bracketworks Yeah
 
@Jeremy Ah, that makes sense.
Everybody on the band-wagon! This band-wagon sucks. Everybody off!
 
@Jeremy I'm german. I cant possibly follow up on all your mood swings.
 
7:29 PM
@Gordon That's why I said maybe the Germans do :P
 
Graz
 
@webarto Those could be bacon-wrapped fishing lures, and they's still be awesome.
 
besides, I doubt the french call them french fries. they have this habitat to complicate things so it should rather be something le stick de la pommes pas de peel
 
@Gordon I believe it's pomme fritte
 
@Bracketworks too easy :)
@webarto i wouldnt mind a beer
 
7:34 PM
@Gordon Well, no, when you break it down it directly translates as fried apple, apple only makes since it's pomme de terre, or "earth apples"
So, I'd say it's still pretty obfuscated.
 
@Bracketworks and you wonder why I call them freedom fries :)
 
@Gordon I call em' oily tubers
 
@crypticツ maybe visit smallville and stuff?
 
"Ay, shoot me a box of oily tubers with some tomato squish"
 
@Bracketworks dammit!!! I forgot the ketchup :(
 
7:38 PM
@Gordon Tomato squish is what makes the oily tubers.
 
@Bracketworks you dont want to know my mental associations about oily tubes ;)
 
@Gordon Add "fried" to those mental associations; I don't think that'll make it any better though.
 
@Bracketworks Or simply frite
 
@cheesemacfly True fact.
 
You can say pomme frite if you are over 50 years old tho
 
7:53 PM
@iroegbu @iroegbu I'm sure you aren't aware but 'thanks a bunch' is almost only ever used sarcastically :) . English - confusing people for a thousand years.
 
user image
3
 
English; a language in which the word "fly" can mean an irritating insect, a method of travel, and an integral component to a gentleman's trousers is just asking to be mangled.
 
lol
 
@Gordon Haha "I only have a few minor comments" rewrite it completely
 
@Bracketworks Fly can also be "to leave quickly" or be fashionable.
 
8:00 PM
While flying, a fly landed on the fly of my trousers; the ones that the stewardess had said were rather fly. After we landed, I wanted to boink her in the bathroom, but had to fly.
 
"Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo" is a grammatically correct sentence in American English, used as an example of how homonyms and homophones can be used to create complicated linguistic constructs. It has been discussed in literature since 1972 when the sentence was used by William J. Rapaport, an associate professor at the University at Buffalo. It was posted to Linguist List by Rapaport in 1992. It was also featured in Steven Pinker's 1994 book The Language Instinct as an example of a sentence that is "seemingly nonsensical" but grammatical. Pinker nam...
Overload all the things!
 
@Danack crazy
 
@Danack Uncaught exception 'MindBlownException' in Brain:buffalo
 
@Bracketworks It can also be an obsolete description of a cool thing.
 
Where do cows go at the weekend? To the moovies.
 
8:19 PM
You'd think it's Friday if you judge this chatroom by the conversations going on.
 
@LeviMorrison it's the warm up party
 
@Danack Every time I see that one, I'm reminded of Chicken Chicken Chicken.
 
@Gordon Yea, this Friday'll be a convoluted mess of YouTube links and lolspeak.
 
@Charles what the????
 
8:27 PM
 
@Gordon Chicken chicken chicken. Chickens?
 
Can anyone suggest materials on complex visitor-like patterns? I'm trying to find a clean way of implementing transactional behavior while traversing a tree; if a node fails, rollback the state; if a node succeeds apply some function to the payload state.
@Charles Surely this has been a Q on SO before too ;-P
 
@Bracketworks I wonder if it'd get past the quality filter. Someone needs to do a variant on Ook where the word is Chicken instead so some code can be posted.
 
@Charles We could attempt a coordinated "chicken" question flood for giggles.
What's the worst thing that could happen?
 
I dunno, I like not being suspended.
 
8:32 PM
1
A: LaTeX - defining a custom 'wrapfig' environment

Herbert SitzI don't have full understanding of it, but I suspect it's because wrapfigure is itself a wrapper around figure float environment. I think I found a solution/workaround here: http://texblog.net/latex-archive/plaintex/expandafter/ I think this code gets what you want: \documentclass{article} \us...

^ Read it.
 
Evening
@Bracketworks Y U KEEP CHANGING UR AVATAR?????
 
@DaveRandom Oh, isn't this Facebook?
I dunno why I chose this picture anyway; my nose is quite visibly broken.
 
user image
4
 
It is not MyFace, Twitbook, or any other social network
It is an anti-social network
@webarto "Meanwhile, in Russia" ?
 
Oh shit; I didn't even notice it.
 
8:37 PM
@DaveRandom Клорокс ☭ it would say then.
 
@Bracketworks transactional behavior as in db transactions?
 
@Gordon Well, atomicity.
 
@Bracketworks that should be fairly straightforward. start the transaction when the visiting begins and then fire the queries on each node. when one fails send a rollback
 
@Gordon Yea, the problem is managing object state in nested transactions; I was just wondering if this has been generalized into a "pattern"
 
@Bracketworks can you explain a bit more? are looking for UnitOfWork?
 
8:45 PM
@Gordon Not exactly; this doesn't have anything to do with persistence (though I suppose such a pattern could be applied for that)
Lemme draw up a paste.
 
@Bracketworks ah, you mean Memento: en.wikipedia.org/wiki/Memento_pattern
 
@Gordon Yes; like Memento, but for managing several nested states; incrementally if you will.
Like predicate based version control of an object over it's lifetime.
 
@Bracketworks hmm. not sure. example?
 
Hey guys... I'm having a bit of a problem, and maybe someone could help here... I have a php script: `<?php

if ($_POST["password"] != "somepassword")
{
echo "The password you entered is incorrect";
}
else
{

$url = 'C:\website\' . $_GET["site"] . '.html';

$printtoscreen = fopen($url, 'r');
echo fread($printtoscreen, filesize($url));
fclose($printtoscreen);

}

?>`, and when I run it in firefox, I get this error message: `Parse error: syntax error, unexpected ''; ' (T_CONSTANT_ENCAPSED_STRING) in C:\wamp\www\website\sitedirector.php on line 12` any idea why this would happen? Thanks ahead
 
8:54 PM
@HelpingHand What editor do you use?
 
@HelpingHand you should rename yourself to NeedAHelpingHand then ;) and please put code on separate message and hit ctrl-k
 
Haha! Just Microsoft WordPad... I don't like the other fancy ones.
Oh okay...
 
"I don't like the other fancy ones." Well, you should use one with syntax highlighting, and your error would be obvious.
 
<?php

if ($_POST["password"] != "somepassword")
{
	echo "The password you entered is incorrect";
}
else
{

$url = 'C:\website\' . $_GET["site"] . '.html';

$printtoscreen = fopen($url, 'r');
echo fread($printtoscreen, filesize($url));
fclose($printtoscreen);

}

?>
 
'C:\website\' => 'C:\website\\'
 
8:56 PM
@Danack FIFY 'C:/website/'
 
Oh okay, let me try that out...
Here's the error message I get for that...
Warning: fopen(C:/website/site_to_open.html): failed to open stream: No such file or directory in C:\wamp\www\website\sitedirector.php on line 12
 
@HelpingHand well, it clearly states what's wrong
 
<?php
$_POST["password"] === "somepassword" OR die;
echo file_get_contents("C:/website/$_GET[site].html");
@HelpingHand FIFY
 
Alright... give me 45 sec... let me test that out...
 
@Gordon I dunno, this is a pretty naive example, but it's what I'm talking about; sorta proxy/memento. I guess I'm wondering if this "pattern" has been refined for this purpose, since it is a mashup of proxy/memento.
 
9:03 PM
It will fail, because there is no such file.
As Sir @Gordon already said.
 
Neato, my transactional object snippet is named uNDio ... undo!
 
But there is... i've accessed the file many times...
Same name...
 
C:\website\
C:\wamp\www\website\

Same name?
 
@Bracketworks side note: good luck mocking these final methods
 
@Gordon Yea, don't know why I did that.
 
9:05 PM
@Bracketworks cant think of anything better atm. I am not aware of a better than combines memento and proxy.
 
That's alrighty; this example isn't great either, as it doesn't touch on the mututally recursive nature of the visitor pattern being involved, given the hierarchical nature of the data (nodes)
Visiproxmento!
 
Well, how am I to load the html from the php located in a different folder?
That's sort of my goal here...
This should work, right?
:
echo file_get_contents("C:\website\" . $_GET['site'] . ".html");
 
Yup
 
@HelpingHand For the record, you should "whitelist" the possible $_GET['site'] values if you intend on going this direction.
 
Well, its giving me this error message from that code...: Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\wamp\www\website\sitedirector.php on line 10......... (line 10 is the code I showed above
 
9:13 PM
echo file_get_contents("C:/website/$_GET[site].html");
 
$page = $_GET['page'];
switch ($page) {
    case 'home':
    case 'about':
    case 'contact':
    // ...
    case 'whatever': {
            echo file_get_contents(sprintf('C:\\website\\%s.html', $page));
            break;
        }
    default: {
            header('Location: ?page=home');
            exit;
        }
}
You'd need output buffering for this to not puke on you.
 
if ( in_array($_GET[page], ['a', 'b', ...]) {} ?
 
@webarto PHP Notice: Use of undefined constant page ... you bastard...
;-)
 
'page' assumed ;)
 
Aw, gee; thanks PHP!
 
9:17 PM
I think it's gettin' a little complicated now... tried this:

echo file_get_contents("C:/website/$_GET[site].html");........... and it gave me this: Warning: file_get_contents(C:/website/yetanothertest.html): failed to open stream: No such file or directory in C:\wamp\www\website\sitedirector.php on line 12
Why is it looking in its root when the path is elsewhere?
 
foreach (glob('C:\\website\\*.html') as $path) {
    if ($_GET['page'] == basename($path, '.html')) {
        echo file_get_contents($path);
        break;
    }
}
Untested, but w/e.
 
What is wrong with file_get_contents, or the url of the html file?
Still getting: Warning: file_get_contents(C:/website/yetanothertest.html): failed to open stream: No such file or directory in C:\wamp\www\website\sitedirector.php on line 12
Is there any relatively easy fix for this?
 
@HelpingHand The error message is pretty self explanatory
 
Yes, but it is stating that php is looking for C:/website/yetanothertest.html in C:\wamp\www\website\sitedirector.php.
 
Where does it say that?
 
9:31 PM
Nowhere.
 
"No such file or directory in '' "
 
Now here? @webarto
:)
 
@HelpingHand Is the file you're accessing to do this named sitedirector.php?
 
Yes, exactly.
 
And is the line you are running this code line 12 by any chance?
 
Here's line 12: echo file_get_contents("C:/website/yetanothertest.html");
 
@HelpingHand So, that's line 12 of C:\wamp\www\website\sitedirector.php?
 
Yes.
 
wow the error message tells you exactly where it goes wrong
interesting
 
In C:\wamp\www\website\sitedirector.php (on line 12 to be specific), you're receiving an error that states C:/website/yetanothertest.html cannot be found.
 
9:34 PM
Is it not able to follow the url that is stated in the code?
Yes.
 
Is this an Abbott and Costello routine?
 
@PeeHaa Buffalo you :P
"Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo" is a grammatically correct sentence in American English, used as an example of how homonyms and homophones can be used to create complicated linguistic constructs. It has been discussed in literature since 1972 when the sentence was used by William J. Rapaport, an associate professor at the University at Buffalo. It was posted to Linguist List by Rapaport in 1992. It was also featured in Steven Pinker's 1994 book The Language Instinct as an example of a sentence that is "seemingly nonsensical" but grammatical. Pinker nam...
Not sure who posted earlier.
 
Alright... what the heck!!
 
@HelpingHand Well, you see; buffalo buffalo, buffalo chicken, buffalo buffalo chicken chicken chicken. $chicken = buffalo($chicken); chicken buffalo, buffalo chicken chicken chicken chicken('BUFFALO', $chicken).
 
Oh, I see... does that use $_GET["Sarcasm"] by chance?
 
9:38 PM
Notice: Undefined index: Sarcasm
 
@webarto lol wtf
 
@HelpingHand Really though; the error message is pretty clear: breaking it down, it's simply telling you that in the script C:\wamp\www\website\sitedirector.php, on line 12, you're trying to load a file that doesn't exist. The sitedirector.php has nothing to do with the location of the HTML file, except it's the script in which the error is occurring.
Well, I shouldn't say nothing, as it would impact relative paths, etc., but that's not relevant here.
 
php youtube.php OpQFFLBMEPI

0. hd1080 video/webm; codecs="vp8.0, vorbis"
1. hd1080 video/mp4; codecs="avc1.64001F, mp4a.40.2"
2. hd720 video/webm; codecs="vp8.0, vorbis"
3. hd720 video/mp4; codecs="avc1.64001F, mp4a.40.2"
4. large video/webm; codecs="vp8.0, vorbis"
5. large video/x-flv
6. medium video/webm; codecs="vp8.0, vorbis"
7. medium video/x-flv
8. medium video/mp4; codecs="avc1.42001E, mp4a.40.2"
9. small video/x-flv
10. small video/3gpp; codecs="mp4v.20.3, mp4a.40.2"
got tired of crappy ad supported downloaders
 
@Gordon Oh sweet, there's lyrics. I was worried for a moment.
 
9:41 PM
@Bracketworks So, file_get_contents cannot reach outside its own directory?
 
@PeeHaa The open file dialogue isn't showing...
 
lol
 
I laughed.
 
@HelpingHand Yes, it can. The file you're attempting to access doesn't exist at the location you've specified, or is not available for reading as a result of permissions or some cocktail of reasons.
 
9:42 PM
:(
 
It does, however (exist).... Alright, i'm gonna take a break on it... thanks for all the help guys... Have a good day.
 
@HelpingHand Then it's likely a permissions issue.
 
I haven't really touched that on it... Either way... gotta go... thanks for the help.
 
No prob Bob.
 
Not Bob, but that's okay... signing off...
 
@RobertHarvey At least he's not forgetting about the Validation / Integration environment deployment, waiting for manual/automated tests to be run, and then staging it to deploy. Production is the test environment for SE. With our luck they'd reverse the ternary values and say "2 year" and "1 years", with a rare side effect that makes Jon Skeet's profile say he's been a member for NaN years. Then it would take another NaN years to get a new feature-request approved to flip the ternary return values. — somequixotic 2 hours ago
 
10:04 PM
A memory leak in Java is *literally* memory trying to escape from the awful code.
3
 
Alright, I'm back to say that you guys were right about my coding problem... A stupid mistake, i'll admit it... The file was located in a different folder than specified in the code. I thought i'd stare at the screen for a few more minutes, and that's when the innovation happened. "The light bulb went off." Now, you may go forth in peace, knowing that you have solved my problem (strange proverb, i'll admit that too). Good day to you all.
 
@HelpingHand s'ok, we're all allowed a PEBKAC once in a while!
 
Yup, good day. (even though YOU did not help, but criticize :-) no problamo. [just joking])
Honestly, joking. Thanks for the help you would have been if you were on this chat when I asked!
 
@Gordon You should have been with me at 5AM, going 100km/h through mountain roads, singing this song :P
 
10:18 PM
I see if somebody came with missing question you say ; please edit your question, or not clear ,general ..i don't need you to help me ;anyway if you want to be paid go to some freelancer website and work.i know you all the three can't make any work ;why? because you even think that am about retrieving images!!!! the code required is about 50 lines of php and you said this is about retrieving images! bullshit ;i recommend any admin to get you fired out of here. — Safsafs Site 4 mins ago
 
php youtube.php _bdOTUocn5w
0. large video/webm; codecs="vp8.0, vorbis"
1. large video/x-flv
2. medium video/webm; codecs="vp8.0, vorbis"
3. medium video/x-flv
4. medium video/mp4; codecs="avc1.42001E, mp4a.40.2"
5. small video/x-flv
6. small video/3gpp; codecs="mp4v.20.3, mp4a.40.2"
1

Resolving r6---sn-bvvbax-8pxl.c.youtube.com... 64.15.113.81
Connecting to r6---sn-bvvbax-8pxl.c.youtube.com|64.15.113.81|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16969024 (16M) [video/x-flv]
 
@HamZa just flagged it :P
 
@DaveChen lol it got deleted
@SafsafsSite Mwahahahahahaahhahaahahaahahahahaa please do yourself a favor and GO LEARN THE BASICSHamZa 37 secs ago
 
mwahaha ... haha wat.
 
10:40 PM
Rasmus should not be allowed to give out code examples. I just spent ten minutes trying to figure out why the memory usage string for OPCache couldn't be split on a space character:
function size_for_humans($bytes) {
        if ($bytes > 1048576) {
            return sprintf("%.2f&nbsp;MB", $bytes/1048576);
        } else if ($bytes > 1024) {
            return sprintf("%.2f&nbsp;kB", $bytes/1024);
        } else return sprintf("%d&nbsp;bytes", $bytes);
    }
shakes tiny fist
 
Jul 10 at 9:29, by salathe
@PeeHaa In ye olde days, Rasmus used to log on to boxes and upgrade PHP. Maybe he could go back to doing that. :)
Jun 22 at 17:42, by tereško
@PeeHaa埽 true .. the php code, that Rasmus writes, can cause spontaneous hemorrhaging
Jun 22 at 17:36, by PeeHaa 埽
rasmus really should refrain from anything related to actual webdevelopment :P
 
Shall I raise it as an rfc?
 
wiki:rfc:ban_rasmus_from_coding
4
 
i want to make a song request php script. here is this include this option Your Name , Location,Dedicated To ,Artist Name ,Song Title any one can help me?
 
@CoolBoy you're 9 months member on SO and you dare post that shitty question ?
 
@CoolBoy Really. I have no clue what it is you are asking
 

« first day (1026 days earlier)      last day (3938 days later) »