« first day (9 days earlier)      last day (5165 days later) » 

17:00
Could you explain me the difference between array and row
oh wait
I get it
although that didnt really make bigger difference.. just changed array, and 'msg' to 0
$get = mysql_query("SELECT msg FROM users_statuslog WHERE id = '$id' AND uID = '$USER'");
$msgs = mysql_fetch_row($get);
foreach($msgs as $msg)
unlink('../images/status/photo/' . $msg);
Oops. I was too quick. This cannot be solved this way.
$get = mysql_query("SELECT msg FROM users_statuslog WHERE id = '$id' AND uID = '$USER'");
$show = mysql_fetch_row($get);
unlink('../images/status/photo/' . $show[0]);
Isn't this right using _row
holy crap. is this a PHP chat room?
@ed209 No, it's a awesome scripting language room.
2
@user457827 This is right, but has no advantage over what you used to have. I made the assumption mysql_* functions can do the same as PDO (grabbing all values from a column) and grabbed the first function that looked like ... the closest one. My fault.
17:07
yes
@pestaa Okay
Whose into aerosol can cheese?
Personally, I think it tastes OK but it bothers my stomach.
17:22
Hey guys.. Just testing a login script.. I have the md5(password) in database but when i try validatiing, the md5(same passwd) is diff from the stored value.. am i missing something?
@RamBhat the password isn't the same you entered initially
md5 always produce the same result for the same input
@HoLyVieR i entered the same thing
i know its supposed to be same thing.. only the last 4 bytes difffer
check for capslock, extra space, etc.
@RamBhat is the length of the two hashes the same?
@RamBhat if the last 4 bytes differ, are you sure something is getting stuck on the end like a carriage return?
oh nevermind I guess with md5() it wouldn't matter, would be different with a return stuck on there
17:30
oh.. looks like im getting an extra 7 characters in the second hash that are diff..
both forms are being processed in the same way tho..
@RamBhat just check for anything that can alter the input, like magic_quote
ops.. stupid error.. my database was limiting the field to varchar(25), last few chars were getting truncated :P
thanks all :D
btw what IS a safe limit on the number of characters for a password? Im allowing 25 chars for password in the form
I personnally find this ridiculous, if it's hashed it will always be the same size in the database
the length doesn't change anything, on the other side you should probably set a minimum length for the password to make sure people don't use password like 123
md5 always returns 32 character hexadecimal number
so make it 32
@chanchal1987 thanks for that
17:39
@chanchal1987 WTF?
ah sry, you were talking about the db field :)
If you want to be optimal, you can store password with only 16 chars
You just have to use the raw_input parameter of md5
Hey, do you know anything in PHP to cache DB results and retrive them easily?
@Francesc memcached.org if you're not on a shared host
17:44
@svens Can be this applied to only a VPS server?
@Francesc Probably. Also there's no real access control too, so on a shared host everyone could read/write/delete all the data.
@svens I'll try but as the server doesn't have a lot of RAM (1GB). Thank you
Hi all
also Hi
anyone know of any php library for handling invites like from fb... i use open inviter but it seems buggy
17:53
@Francesc APC is another alternative for object storage like memcached
what's up
@tpae php
I wish there was a standardized php library for working as a go between developers and social website api
@SirLojik opensocial
@Ra
17:55
lemme read more about it. last time i read bout it. was for joomla only. i think
np...its google.
cant see support for fb in the list of social networks
its amazing how long ive been web developing and to find out how pagination if not well done can cause infinite loops during crawling... well not really infinite. i wish they would stress this out in those php books
u end up being penalized by search engines
search for: canonical url then
i now use buttons instead of anchor tags. casue some crawlers ignore the 'nofollow' attribute
i now use canonical links too
it took me 8mnths to figure out crawlers were failing to get relevant content from the site... now crawling takes 2minutes...before hours
18:18
@SirLojik Are you talking about a system where page 1 links to page 2, and page 2 links to page 1? Properly programmed crawlers shouldn't follow links to pages they've already visited...
yes
@meager sometimes crawlers index these pages..... why is the rel='nofollow' attribute not always honored?
@SirLojik the rel='nofollow' doesn't tell crawlers not to follow the link, it just says not to store the relationship between the linked pages (as a method of demonstrating the "important links")... en.wikipedia.org/wiki/Nofollow
hey all
anyone do the php 5.3 cert yet?
Not I, but then again, I don't believe in certs...
@Darren The certification from which compagny ?
18:26
Zend
I am wondering if it is worth it
Here in Cali my cert gives me good job leads
I depends if you have experience or no
I would think that solid experience would trump any cert any day of the week
If you don't have experience certification is a good fallback to show that you know what you do
even if you have experience
its good to have
i guess if you are a freelancer it doesnt matter
but if i try to go work for a firm or startup it helps
I think it really depends on the company. I know a few CTOs that won't hire anyone with more than one certification (they feel that it's a pointless display, and that people who have a lot of them tend to be making up for other lacking qualities)
I'm not saying I agree with it, but I know some people in hiring positions that feel that way...
18:29
good for them
@Darren for startups i dont think it matters, m have my own startup and i dont consider certificates for hiring at all
those are usually the companies who are really uptight and geeky
they are very egotistic
@abhinavlal how many people do you employ
I think in the end, it doesn't really matter if you have one or not. Sure, it may push you over the edge on getting an interview (and I stress may, depending on the market and type of position), but it's not going to get you the job...
i totally agree with @ircmaxell
18:32
no the cert doesnt get you the job alone
to be honest
i got it to test myself
That's the right reason IMHO to go for a cert
To try to better yourself...
yeah
hey @abhinavlal what kind of startup do you have? like are you making a web app?
yep
yep its a practice management web app for healthcare sector called practo.com
woah hey do you know where i can find details on HIPAA compliance?
i have to make a medical app soon
i know the standards for networks but not web apps
im thinking im gonna have to log everything
its dipersed all over the web
u ll need to do a lot of googling
also our product is mainly india based and we havent launched in US yet
so havent spend much time on it
Regarding the web app the most importtant think is audit trails
18:40
im thinkin of using firehost for the hosting compliance
thats a good option
you all coding right now?
im working on marketing emails
nope, working on some design for the new features...
n doing some research on mongodb
planing to use it for storing anlytics data
i know a guy who uses it for his own analytics site and its fast as hell
hes able to do like 150 queries per second
Darren, yes I'm coding.
18:47
ya the speed is pretty awesome + u have map reduce for running complex analytics queries
Or rather trying the chat.
lol
i love stackoverflow
@Knubo now even m trying chat :)
lol
@Darren since u mentioned zend certification, hav u used zend framework??
18:49
The sad thing is that my php coding is done so quickly, but the javascript frontend takes more time :) So now it is time for some Javascript.
@abhinavlal I have tried it but I don't really like it
I prefer Symfony
Symfony just makes sense to me
for the smaller foot print frameworks I prefer CakePHP and CodeIgniter depending on what I am doing
thats the thing about the Zend cert
is people assume you are an avid ZendFramework user as well
Ok we use Zend but only cause it very loosely coupled an allows me do things in ways i like
for smaller things even i prefer codeigniter
yeah i get irked when people try to compare larger frameworks to codeigniter and cake
im waiting to try symfony 2
with namespaces
it benchmarked super fast too
even zend fm 2 ll have namespaces and it has a long way to go
ya saw symfony 2 benchmark
it was pretty fast
Any of you coding on any open source projects?
18:53
no
im at work right now and at night i code personal projects
at work i code in ColdFusion and at home I do PHP
no lately.. i was working on drupal modules couple of yrs back
@Knubo u working on anything??
so its advised you dnt use rel='nofollow' on paginater anchor tags?
why would you want to do that?
its always good to have more pages indexed
even if the pages change
also if the pages change which they will if you add more results its better because its a higher change frequency
crawlers take long crawling irrelevant pages
these days i have a php script linked to the index page that outputs links to pages i want indexed
Yes, @abhinavial I work on a Norwegian accounting system for volunteer organizations. (Like sport clubs and such) Writing a member portal now.
19:00
@Knubo writing yourself using some open source project as base ??
codeigniter is the best.
:)
lol
i dnt use frameworks... i just like doing everything myself...ie php frameworks. for javascript i find jquery sufficient
i stopped liking reinventing the wheel years ago
same here. frameworks makes things go a lot faster
19:02
I use lots of frameworks - translate.google.com/…
me too stopped doing that,
hmm.... making me think now
yeah. it saves time
Though only where they can do something for me.
ive also had it where a psyched developer creates a new framework for a company
19:03
what php frameworks r easy to install and wud u recommend?
then he doesnt have any documentation
when you get a new employee its hell teaching tem
(the link is the page on the wiki translated from Norwegian where I acknowledge what I am using)
CakePHP is easy
i'll keep banging the CakePHP drum all day :)
@SirLojik use codeigniter codeigniter.com
19:04
@SirLojik i would say start with codeigniter
especially if you've used ASP.NET MVC or Ruby on Rails, should be very familiar to ya
i like cakephp and codeigniter
@Knubo that a lot of libraries how do u guys maintain it??
i dnt understand what you wud use a framework for that u cant code the old fashioned way
19:05
Sir Lojik I prefer using a framework over using spaghetti code
actually, kohana is the best framework i'ved used..
I am maintaining it - I'm doing all the code in my spare time. Been a hobby project since 2004.
usually the people who have the attitude why not do it yourself code in all procedural code
the main benefit of framework is that it gives your application structure which is easier to maintain in long run
well guys illbe back
Lunch time
19:06
i use oo when coding my applications
+ a lot of things comes with it which u dont want to write over and over again
yes but with time you get to have a coding practice and sort of have a framework in ur head
lemme read about codeignitor tho
okay, so you are using a framework then :P
@Knubo thats great
19:07
im using cakephp for my current project and using code ignitor for my next one
we all use frameworks
whether we call them that or not
My take in the PHP code is to create it simple but still with structure. And it also helps that I almost exclusivly use php for json data.
codeignitor looks good
PHP + Google Web Toolkit is a match that I have enjoyed quite a lot, as I am also a Java developer.
thats the problem too many frameworks. is there a place they are reviewed and recommended on the net
19:10
yeah, stackoverflow :P
there's so many php framework questions
2
Q: Should I use a PHP Framework? If so, which one?

Alec SmartHi, Ive been researching into PHP frameworks. I am trying to understand the utility of these frameworks. For e.g. does facebook use a framework? I guess not. Also, say I am developing a product which I want to sell users. Now suppose a use a framework like Zend, then I am unnecessarily imposi...

ok lemme check.
how you do dat
just past a SO url?
yep thats all
sweet
19:13
If you don't know which one to pick, Sir Lojik.. go with what most people go with.. Zend probably. Once you know it, you might have found out why you dont like it, and pick a new one that doesn't have that problem :)
3
Q: Is there a PHP function to generate a pretty and valid URL from a natural text?

DRI want to auto-generate a readable URL from any natural text, like this: Latest article: About German letters - Handling äöü and ß! would ideally be changed to this latest-article-about-german-letters-handling-aou-and-ss.html It should work for all latin based languages and I want to ...

sweet
If I were that person I would have considered punycode, oh well :)
i dnt think zend is easy to install
might not be, but it's very common and a good skill to have on your resume.
@SirLojik i dont think there is anything to install
just grab the library and start coding,
19:19
Good day
the zf comes with a script which ll generate the required code to get you started
is anyone using mongodb ??
So, since we're talking about frameworks, which framework do you think it would be best to learn if you eventually wanted to get a job as a PHP developer?
One used in a company where you are going to seek employment :)
if only job angle is involved then i would suggest zend, as zend is promoting the framework alot , and i think the demand for zend framework developers are going to grow alot in coming times
19:35
Zend is a little bloated imho
Zend framework certainly looks "enterprisey" enough
it is but entreprise love bloated :D
touche
Hence it would help when job hunting :) Frankly anything that gets you thinking in organized terms of reusable code libraries and separation of logic and display is a step in the right direction
hey all im back
19:49
nobody interested in debugging or profiling, but in building apps only. I am curious, what are these framework users will do when their framework-based application will stop working
You all should look at Symfony over Zend
The rsync tool and the usage of Doctrine and Lime with it makes it amazing
I can't wait to see how Symfony 2 will be designed.
its alright been released i alpha
i wish i could go to the event
san francisco is expensive though
So, is Zend being used in the corporate world more than the others, or is there really no framework that seems to be in use more than the others?
@Darren Is it worth looking into? Or it's just buzz around it? Interested in your take.
@HenryAdamsJr Other than old ones (CI, Cake, Symfony), I can only mention Yii which is gaining much popularity these days.
19:58
pestaa its like 10x faster than symfony 1.4 and its a lot faster than Zend
actually 3x
It is up to 3 times faster than symfony 1.4 or Zend Framework 1.10 and consumes half the memory.
@Darren what benchmarks have you performed? Faster on what?
if you're going after speed then it's not PHP you're looking for.
@Darren With or without byte-code cache? These numbers aren't telling me much.
Thats all I know that Fabien has posted on the website
hey all, is it okay to ask a quick newbie question here or should i just make a topic on SO?
@Justine Let it out.
20:07
did they custom make this chat or is it a script
I think it's mostly custom
@Darren Actually, both. They custom made this chat script.
I just looked at firebug hoping for some comet but awwh it's just polling =)
How often @Fanis? :)
Looked at one of our servers today - it seems to be running Zend Optimizer but no opcode cache. Considering we're not using Zend Guard this seems utterly pointless and from what i've read the minute gains from having Zend Optimizer are ruined by the fact we have no opcode cache. Anyone?
20:16
@pestaa on first glance every couple of seconds
seengee make abackup, uninstall it and see what happens
@Darren a backup of what?
of your server image
Hi :D
hye
20:29
Hi all
hey
Glad to see a PHP room.
Can anyone help me understand logins and login security.
I wonder if this is written in PHP
asp.net mvc
what do you want to understand?
20:31
heres what u need
csrf
the best thing is to use a prebuilt authentication/authorisation library
define: csrf
cross site request forgery
use a csrf token
it will take careof brute force and cross site request forgeries
in terms of the login
for the passwords of accounts use a salt encrypted method
OWASP has pretty good documentation about security
It's a very good reference
are you trying to comply with any standards?
is the owasp esapi ready for use though?
20:35
I'm making a custom CMS for my school/organisation.
why
@Petah - why what?
there are a billion CMS out there already
@Petah - I know.
you will never make it as good as others
20:38
I didn't wake up yesterday from a centurylong slumber.
dont be rude
I want to do something specific.
@Petah - My apologies. I didn't mean to be rude.
what do you want to do (im curious)
@Perah - I want the user to login and be able to upload photo/video/pdf files
Any user should be able to see them
but any cms can do that
20:39
gtg guys have tp brain storm
@Darren - Good Luck.
@Petah - I have my reasons. I want to know exactly what's in my CMS.
And, I want to make one.
For personal experience.
fair enouph
well, dont get caught up in the authentication part of things
just use something already made
also what are your target browsers?
If it's for school, you might have to support the evil IE6 :/
We sadly STILL have IE6 installed at my college
omfg
@HoLyVieR - No, we don't.
20:43
i hate your school
ie 6 is the bane of my life
It's funny though, they remade their website and it's all glitchy in IE6
anyway, for a cms system you only need to support the limited subset of your target audience (the ones who actually use the cms). but all the front end stuff should be cross browser compatible
are they using windows xp too?
@Petah yes
hahah
Yes, I think so.
20:45
what 3rd world country do you live in?
It's one guy here who is going to be uploading.
It's ridiculous the amount of outdated software we have
Microsoft practically give away there software to schools
Guess the PHP we have installed ?
20:45
yep
you should leave that school
they will be no help
I think they just have a huge lack of ressource and don't have time to do anything
user153275
welcome to every school ever
at my old school we could download windows xp, vista, 7, server, and a whole bunch of other microsoft software for ffree
That's through MSDN AA if I remember right
20:47
yea
anyway, i gtg
@Petah cya
im at work, and i really should be working :P
@Petah - bye

« first day (9 days earlier)      last day (5165 days later) »