« first day (572 days earlier)      last day (4362 days later) » 

Of course that's assuming that the kind of people who use mysql_* are also the kind of people who keep their PHP up to date and have error logging enabled.... maybe not such a good assumption to make.
Actually the only thing that really bugs me about it is the new folder icon. Ug-lee!
 
`list($_token['id'], $_token['username']) = explode('|', $_token);`
impossibru
 
@webarto Ok I'll bite: Why!?
 
why what exactly :D
 
Why would you do that? :)
 
9:10 PM
because I'm forced to :P I can't use JSON.... donotwork
 
@webarto More like hey I'm a string. Look mom now I am an array.
 
pokit.org/get/img/14e4a747615747a52d936ae38996e8a4.png worst code I've written, evah ... to add cherry on top, I'll use eval()...
look ma, it works
 
The horror. That's no code, it's puke
:)
 
integrate forum they've said, it will be fun, they've said
 
TIME_NOW ??
hahahah
 
9:15 PM
@webarto myBB? couldn't have picked something better?
 
I have vB license and everything, but it took me an hour to make changes to MyBB, and with vB, whole day. I was at half way building simple forum to be used with Kohana framework, but manager says, no time to be fancy :)
 
@RepWhoringPeeHaa I like it more than the previous one.
 
@hakre but but but all those icons everywhere :(
 
@webarto phpbb is probably the simplest to integrate, despite it's hateful templating and odd idiosyncrasies...
 
ars technica's new look, on the other hand... shudder
 
9:24 PM
can I post a questions link here?
 
@RepWhoringPeeHaa looking good those now.
@GiovanniDiToro Depends on the question ^ ^
 
a php related one
and very mysterious
 
@GiovanniDiToro "Discussion for all things PHP - Don't ask whether someone is here or can help. Just tell us your problem. If anybody can and wants to help, they will." (on the right, top)
 
@hakre Well. Since you are better at that stuff (everything even remotely having to do something with design) than I am not gonna argue with you :)
 
thanks dude
0
Q: My thumbnails are getting black whenever caught from an external site location

Giovanni Di ToroMy php made thumbnails are turning into all black squares when I pull the images from sites addresses such as :http://grupointelligenza.com.br/images/stories/google.jpg . Here is the php at the upload site: if(isset($_POST['submit'])){ $image = new Image(); $image->caption = $_PO...

 
9:26 PM
sounds like a fungus problem. lolol
j/k of course
 
Might just be , the guys at the office couldnt help , neither some other forums
 
I'd guess they had some kind of anti-leeching in place. If the thumbnails generate OK when the images come from other places then the reason it fails in that case is probably that they're doing something to block you from downloading their images.
 
Or it might be something specific to that image. You could download it and provide it to the script from a known location that isn't trying to block image downloading to test it.
 
@GiovanniDiToro Can you reduce the posted code to the part that is having the problem you're facing? It's start with file upload while you are concerned about fetching from URLs, so your question looks misleading (which is not good when you're looking for an answer).
 
9:34 PM
Here is the problem , I don't know where it is , but I'll edit it to see if there is naything cuttable
 
And my quick guess is: You see all black because you don't load the image data, hence picture stays black. Enable error reporting and logging, and also check for error conditions as well.
I'm afk for a moment, wbbl.
 
later @hakre
 
ok, I think its much shorter now
 
9:46 PM
@GiovanniDiToro Have you actually tested whether there is an image before trying to create the thumbnail?
 
user895378
I'm tempted to downvote because at 27.7k rep you should probably know better than to answer a question that obviously has duplicates. I won't do it, but I'm tempted :) — rdlowrey 29 secs ago
 
@RepWhoringPeeHaa yep
 
@rdlowrey Not everyone can be tan...
 
user895378
 
@rdlowrey :P
 
9:56 PM
why do i suddenly crave raisins?
 
user895378
lol
 
user895378
Besides being a delicious snack, raisins are also high in fiber.
 
yea, i prolly need a crap too. :P
does BigResource just leech questions from SO? finding many cross-posts
 
user895378
that's all I've ever seen when I've stumbled across BigResource in the SERPs
 
i love defining my existence based on someone else's life. why not websites, too.
 
user895378
10:00 PM
It's like filling an "About Me" section with quotes by other people.
 
lol
 
That site is so annoying
 
s/b called BigWasteOfTime
where can i find something that explains creating/using temp tables in php?
 
What do you guys think of my list so far? (ignoring the current ambiguity between 'mysql' and 'MySQL')
 
i'm still spinning on this f'ing data load issue.
 
10:03 PM
Nobody likes the troublesome thumbnail guy
 
@orourkek is it so big of a problem that u needed to codify it?
 
nothing I can think of @MikeS
@MikeS not really, but yes at the same time
 
dammit all to hell. all i want to do is grab remote data and insert into a local datastore. why am i having so much f'ing trouble doing this? i doubt that it's an original problem.
 
hum... remote data to local datastore , like one trying to get an image from an external url and make a thumbnail on their own server
one being my self
 
anyone know y my php isn't recognizing 0s?
 
10:17 PM
@Manvaril Huh? More context and code please
@MikeS What problems are you having? Retrieving it or storing it?
 
humm how to explain in detail....
well lets see I can do an if statement like so: if($var["something"]) and if it's
$var["something"] == 0 <-- should have been\
and $var["something"] = 0;
it doesn't true
 
@CharlesSprayberry storing
 
hey
hey
 
@Manvaril 0 is equal to boolean FALSE (prototype.php.net/manual/en/language.types.boolean.php)
 
hey
if every website has unique IP address, why when I type my website's IP address, it just redirects to my hosting's webpage? It's shared hosting
how it knows to show my website then?
 
10:26 PM
@CharlesSprayberry if i retrieve it through a model, then the array gets tagged with the model name. also, i can't figure out how to hand over the data to the correct model to load it
@Manvaril did u want to set 'something' to 0?
 
@orourkek , it looks like something one would host on geocities
 
@hay your domain points to the IP of the specific share, so one box can have multiple IP's as long as there is enough nic cards in said machine
 
b/c that's what this does $var["something"] = 0;
 
@tereško only spent about 30 min on it, still at work
 
hey
@Manvaril: So, every website still has unique IP address?
 
10:28 PM
well $var["something"] is 0 but the if statement doesn't read the $var["something"] == 0
@hay yep
@hay don't matter how many virtual websites are on the machine each one will have a unique IP
 
so you want if($var['something']== 0) or do just want to test it like if(!$var['something'])?
 
@hay the server is probly a Blade Server so there are multiple blades and each blade is it's own server (mb, cpu, ram, nic) google blade server and read about one, they are pretty neat
 
@MikeS Are you using a framework?
 
please, use ===
 
@CharlesSprayberry yes, and i'm beginning to regret it
 
10:32 PM
@MikeS Which one are you using?
 
dont say cake... dont say cake...
 
@tereško yes, i had === but overwrote it. lol
@CharlesSprayberry pie, yea. that's it, pie. not cake. nope. not me
 
:p
 
uh, cake
 
I've never used cake so I don't have any direct quarrels with it
 
10:34 PM
hey, i'm already shunned on #cakephp for being a noob and asking too many questions
so, u folks are stuck w/ me
but, i'm gonna try a different approach to the problem since my skills are obviously so advanced that what i'm attempting hasn't been written about yet
 
if they really were shunning noobs on #cakephp , nobody would be writing anthing in that channel , @MikeS
 
<sarcasm>insert here </sarcasm>
@tereško that would be my summation.
well, it'll have to wait til tomorrow. time to act like an infant and head out. nite all
 
@MikeS It's like right now I have a file upload input on a form and it's name is "choice_img[]" and in the backend (PHP) I have an if statement that is: if($_FILES["choice_img"]["name"]) and it returns True when no file is selected
 
@Manvaril not sure how to got about testing binaries. most cases, i would throw debug statements all around. don't think u can with images, tho.
on that note, bye
 
@MikeS so there is no file name in the $_FILES["choice_img"]["name"] so technically it should be false because it's returning to the if statement ""
if you look at the $_FILES superglobal it's like $_POST but for files only
and ["choice_img"] is the name of the input and ["name"] is one of the returns
like you can do $_FILES["choice_img"]["type"] to get the file extention, $_FILES["choice_img"]["size"] to get the size of the file, and $_FILES["choice_img"]["tmp_name"] to get the binary data of the file
 
user895378
10:46 PM
The median CodeIgniter dev:
 
user895378
this might sound dumb but where is the php.ini file in codeigniter? — Dylan Buth 7 mins ago
 
Have you tried just turning the PHP ERRORS off
not like your visitors need to see them anyway
 
user895378
@Manvaril (1) It's not me asking the question, and (2) Turning off PHP errors is an extremely poor solution.
 
they are logged in the server log when they happen anyway, so it's not like you won't know about them, Every good admin knows to check the logs every now and then
You should be asking that question in the CSS chat as it's really a CSS problem your having
 
user895378
"Every good admin knows" that you should handle and fix errors, not suppress or ignore them.
 
user895378
10:50 PM
@Manvaril REPEAT: It's not my question.
 
user895378
And no, a PHP error doesn't qualify as a "CSS problem."
 
yeah @rdlowrey, go be tan in the CSS chat!
 
@rdlowrey It's pretty complicated to reroute PHP specific errors ie: E_ALL, E_WARNING, E_NOTICE errors, and takes quite a bit of lines of code, if you search around on google i'm sure there is a piece of code that you can find that will show you or explain how to do it
 
user895378
OMG.
 
lol
He didn't even ask anything...
 
user895378
10:53 PM
On that note, I'm going to the gym to blow off some SO steam.
 
don't forget the roids
 
@rdlowrey is too tanned for roids...
 
user895378
@orourkek Too tanned for roids and PHP error handling, apparently :) catch ya later dude.
 
@Manvaril ...
 
@CharlesSprayberry ...
I'm out peeps
 
11:54 PM
i drnk
n il code nw
a d
fuck
 

« first day (572 days earlier)      last day (4362 days later) »