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

09:13
$obj = new ClassName();
$obj->callFunc();
hi
anyone here?
hello everyone!
hello onlyone
:)
could you help me with a problem! stackoverflow.com/questions/4012461/…
I am facing a doubt on Vtiger
I dont know if this can be achieved or not.. I am very new to PHP and VTiger
09:16
Sorry no idea. May be someone else
ok! thank you! :)
Well, this is pretty interesting.
hello mark
Can you help me with a problem in Vtiger?
0
Q: Vtiger Client response email for updating ticket

rekoHello everyone, I could get the following things done.. Client sends e-mail to [email protected] Mail Scanner scans, creates a ticket. A notification is sent that email is received by support team to client. Admin assigns the ticket to someone, client recieves an email that the ticket is bein...

09:21
Oct 16 at 6:26, by Jeff Atwood
I'm all about the PHP. It is the only language that matters, man! :)
Oh, yeah that's awesome!
Mark, there? Vtiger help badly needed!!
I'll take a look.
thanks a lot :)
Yeah, I have no idea mate, I've never used Vtiger.
oh! thanks anyway!
Hello Everyone! Did anyone work on VTiger before?
09:30
Hi! Does anyone here have any experience with handling 64 bit binary integers in PHP? I've got these functions (pastebin.ca/1972592) - do these look OK?
09:40
This chat thing looks crazy
Chat needs a bit of a redesign, I think. Would be nicer if there was more room for conversation on the screen and less stats, hovers and buttons.
I disagree, I very much like it this way. Not so fuzzy, and clear.
@Robin, bit math is not really my strong point but they /should/ be ok.
@Robin
@Robin, although it will always return a value in Big Endian.
09:58
Now its Lunch time :)
@lhnz Maybe the option to resize/toggle the right hand side would be good. Shrink it down as an option
10:14
good moorning people.. i need a cakephp developer for an easy, basic, not-worth-to-be-in-stackoverflow question.. anyone? =)
ahp, solved.. never mind :)
Can someone help me with the sql to remove a link table? I have table a, table b and table c. Table a has an id, table b has an id and table c is a one to one link table from a to b that needs to be refactored into table a, so the foreign key exists there and table c is removed completely.
Solved, wrote a php migrate script.
@Gazler Remove table c, add an column to table B with a foreign key to table A
I guess that would be the same solution
Yeah, I meant the actual sql for it. :P
Got it now though thanks.
ah
ok
then I'll just leave it, if you fixed it already
10:30
hey
hm, maybe wrong place to ask
but mysql can use varchar as a foreign key, right?
it can index it.. .
:p
"------------------------
LATEST FOREIGN KEY ERROR
------------------------
101025 11:26:56 Error in foreign key constraint of table golf_booking/#sql-139c_1d2:
FOREIGN KEY `FK_items_1` (`CourseID`)
REFERENCES `courses` (`CourseID`)
ON DELETE SET NULL
ON UPDATE CASCADE:
Cannot find an index in the referenced table where the
referenced columns appear as the first columns, or column types
in the table and the referenced table do not match for constraint."
Both needs to be in the exact same format. It seems not here.
VARCHAR(20)
I'm not sure if it works with VARCHAR but I'm sure that if one is VARCHAR(20) and the other VARCHAR(15) it won't work.
yeah.. i checked that already
and its correct, they need to be exactly the same
binary?
what tool is best for php benchmarking and performance testing?
KPL
KPL
10:38
jason XHProf is a good one..
@KPL Use @jason for a better chat use :)
@Cho
hm
@Chouchenos better?
KPL
KPL
@Chouchenos Yep. :) This's twitter style!
@k
@danp Well, there's nothing into the MySQL manual that says it can't be varchar... I'm looking to it
10:40
annoying, it doesnt let you hit return to choose the first nick
@danp +1
@KPL it is not available for windows
But you can click the small arrow at the right of the line of which you want to answer
it'll get there
i trust SO ;)
there's something just not clicking on these keys..
I've emptied the tables..
taken all indexes off..
checked nulls..
KPL
KPL
@jason It's a PECL package. This doesn't has to do anything with the OS till you have PECL in place...
10:42
@danp Cannot find an index in the referenced table where the referenced columns appear as the first columns are they first columns ?
nope
Maybe that's why
that error message isnt very clear
I dont really understand what it's trying to say
if its not a first column, it has to have an index.. right?
"first column", this phrase is horrible
I imagine it's trying to say "the first field in the table definition" or something?
first columns.. how can you have more than one column first?
10:44
anyway it must be referenced to a primary key which is... indexed
I thought it added indexes automatically
I did read this
Foreign key reference a primary key to another, and primary when created are automatically indexed.
but - i don't need to add "primary key" on those fields to be able to FK them?
in the table definition?
anyway, foreign key are just constraints and does not create index or primary, you must create them first.
Well they must be PK or index, but they need to be created before you create the constraint.
hm.. the key will be repeated a fair amount
I don't really want to stick that as PK
sorry for mysql chat here btw
i am using php 5.3 to do this :)
10:48
@danp Did you try to index them first ?
just trying
I may be wrong about the PK (but it usually is PK...)
it's still not taking it
the tables have two PK's now
one on the ID field, other on the CourseID varchar
thing is - the CourseID might change on the parent
You can't have 2 PK in the same table...
it seemed to let me?
10:49
You should post a question on SO with your DB schema
or give a link to it
yep, thx for help cho
ill do that
11:00
hello
@SergeyBasharov hi
can anybody help me with the issue described here: stackoverflow.com/questions/4013699/…?
how can i print 1001.01 as 1,000.01 in php
11:13
why doesn't any TOP MNC use PHP?
11:30
hi all
so guessing most of you guys n girls are at work?
Anybody knows how to integrate Wordpress 3.0.1 and the bbPress 1.0.I just want to install bbPress with my previous Wordpress site (Url : mysite.com).I just want to install it on mysite.com/forum . I just tried doing it by creating a folder and installing bbPress there,( I skipped the wordpress integration ). Whne I tried to log onto the bbPress,it just throwed a hell lot of warnings saying function deprecated.
Ali
Ali
11:50
Hi I'm having trouble with google maps application firefox - my question is at stackoverflow.com/questions/4014228/…
@Richa I'm not sure why, I think maybe its because theres a very short learning curve to start using php. Its an easy language to get started upon thats why alot of people just learn the basics of php and start coding with nary a care to go into the deeper features and power that the language has to happen, also I think it must also be an open source thing.
Is that so ?
but its easy that doesn't mean that no company wabt to work on that
and there are lots of things with it
like cms framework?
12:12
hi
nice place to solve problem ...
:)
Any body looked to my problem?
hi
I don't really understand namespaces in 5.3.
Variables are always global? Because this throws error:
echo \a\b\$x;
PHP Parse error: syntax error, unexpected T_VARIABLE, expecting T_STRING
12:42
@Vili: You cannot namespace variables, for that you'll have to use class constants or global constants.
@Vili: Either declare const x inside \a\b or access $x through $GLOBALS
On a side not, what exactly is the purpose of this chat?
For example - what Vili is dealing with could've easily been a question on SO and he probably would've gotten an answer way quicker. Is this even the right place to discuss such topics - if so, who is moderating this?
it would be a useful feature to make SO question of a chat message
Starting the other way around seems to make more sense. Create the question and then bring its address to the chat for discussion if desired.
@VoteyDisciple Actually, it is how it work :O
That's my point. (-:
but what if my message would be a good SO question? yet when I was asking, I didn't thought it would.
12:56
There's no bad question on SO (just some repetitive ones)
I think that's the point where the virtues of Copy & Paste come into play.
The trouble with trying to add a button in the user interface that generates a question is that informative chat messages tend to be spread across multiple clicks of the "Send" button.
hello
@VoteyDisciple there could be a button on the dropdown menu of the already sent message, that gray one
There could be, but all it could do is copy/paste one message. You'd still have to do all the creation yourself. And again, if your entire question fit into a single chat question you could have asked it originally. The more likely scenario is that through a long discussion the need to ask a question has emerged.
Hello, fire.
that's a good point...
but what should I do if I or somebody find my question SO-worth, but someone answered it here? I know the answer, why would I bother asking it on SO?
13:06
Anybody knows how to integrate Wordpress 3.0.1 and the bbPress 1.0.I just want to install bbPress with my previous Wordpress site (Url : mysite.com).I just want to install it on mysite.com/forum . I just tried doing it by creating a folder and installing bbPress there,( I skipped the wordpress integration ). Whne I tried to log onto the bbPress,it just throwed a hell lot of warnings saying function deprecated.
@NishantShrivastava Sounds like an excellent example of a question to ask on Stack Overflow proper.
@Votey Thanks
Woot! SO Chat!!!
13:25
Hey Brad,do you have any idea where it is missing out the stuff,when I am trying to install it
Well, you probably have a newer version of PHP than expected.
I'm not familiar with either, so I don't know.
13:46
<?php echo "Hello StackOverFlow Chat!"; ?>
@PhillPafford Hello
14:07
Hello everyone.
hi
Hello
It looks like someone execute room->sleep(50000) ... lol
14:22
@Brad Thanks!Well so far I have found out that development of bbPress has been stopped by Wordpress,that's the reason why it is saying function deprecated.Though I the conclusion is like latest wordpress is not compatible with bbPress's last version!
14:55
I used to like bbPress, but internally it's the same mess as WordPress.
Recently I've been walking the no-framework path discussed by Rasmus Lerdorf toys.lerdorf.com/archives/… Anybody here who wants to share some wisdom in this regard?
@pesta Can you suggest me any other open source forum which I can integrate it with my wordpress website?
15:15
howdy
so what's new and exciting in PHP these days
PHP 6 is new and exciting
is that released now?
@Nishant What do you mean by integration? A system that shares userbase?
15:24
anyone played with Lithium yet?
looks interesting
have you messed with it?
no
it's kinda a spin-off of Cake3, and I've used cake so I'm kinda interested
15:39
Is it fork of Cake?
I'm going to start a big project on Yii
well, kinda
I think it's a fork of Cake3, but Cake3 was basically a rewrite of Cake with PHP 5
do u ppl find any serious issues working with php .. as compared to .net or et al.... its nt abt theoretical issues bt somethng more practical ..
for example?
15:44
can be anything while u work on it .... might be say security or performance... practical ones .....
the biggest problem I run into is really lousy legacy code
I mean, legacy code has a reputation of being lousy in any language, but in my experience, it's especially bad in PHP
can u please be specific ??
lousy in what sense ??
well, php doesn't have something like Standard Library, like in python or java, in object-oriented fashion
lousy in that code is copy-pasted everywhere instead of refactored, there is no separation of concerns, UI, business logic, and data access are all smushed into one
and since PHP is so easy to use and deploy, often you'll see ridiculous code because the original "programmer" wasn't really a programmer and just muddled through
like connecting to db, fetching rows and using bunch of print's in the same function?
15:47
function, if you're lucky, more likely all inline on every page
as for built in library, how abt the gd libary though its for images only??
I'm totally guilty of it too, I'll admit I did that stuff when I first got into web development :-P
this happens even with big projects. social engine for example has really bad code.
all authentication, database and view logic are messed up
yeah I don't think it's something limited to PHP
ASP.NET devs putting everything in Page_Load, for instance
ASP Classic had a similar problem
didn't know that, lol. I thought it's php flaws
15:50
the other PHP problem I've had until recently is a decent IDE
I tried a billion of em and hated them all
@pestaa Actually I just need to install a Forum.So that user can register and can talk about the product of the client,share there views,bug fixes,faq's.That's it.
but I finally came across PhpStorm by JetBrains and I -love- it
@mgroves what have you chosen finally?
i see
what about netbeans?
yeah I tried it for a while
issues with netbeans?????
15:51
it's probably the runner up :P
wht kinda??
netbeans had some great CakePHP support, but it just seemed really really slow to me
and unlike PhpStorm, it's not an IDE that's just targeted to a specific language
phpstorm is java based?
but it's good, definitely
yeah I think so
btw, does it support PEAR CS?
15:53
phpstorm? I do not know.
do u ppl suggest the use of any PHP library..... i m a newbie to development ... open source..
@Sachindra library dealing with?
actually that infact depends upon teh complexity of teh project in fact ... bt do u advise me to get into details abt this php library thing?? being into php for nt more than 6 months ...
sachindra there are so many frameworks and libraries, it could largely boil down to a matter of opinion
I don't understand you. there are billions of libs
15:56
I like CakePHP, but there's also CodeIgniter, Symfony, etc
Yii :)
actually wht i feel is that b4 v go n work into a new tech or even a part of it ... one has to delve a bit into that topic,.... so m i suggested to get into the php library stuff with a limited exposure ??
hope i m clearer this time around??
@mgroves +1 for phpstorm. also the OO legacy code i run into is all inheritance. very little composition.
@Gutzofter really. I find it pretty rare to even see classes, much less inheritance :-)
well time for my daily standup, brb :)
@Sachindra you mean you have to dive into every library's code when you start using it?
16:01
i worked with a (free) pdf library that was very hard to mock in my unit tests. Yeah you're right the standard usually is spaghetti
isnt it correct for a beginer to know something abt the library b4 getting to work on it??
@Sachindra you have to know it's API at least
when working with a library usually all u should know is the API.
juz that wud be enough ???
i mean the api only???
usually yes
if you wanna know implementation details you look the code
16:03
n the look at the code wud give u teh exposure required??? gr 8 .....
a good library vary rarely requires looking at implementation. thats why its a library
i think this is about every library, not just php
library is something ppl with lessr xposure can implement ?????
implementation details could be useful, for example, to write more effective algorithms
library is something that you can grab and use
when using a library the first thing i try to do is isolate the library so that its implementation details do not leak into my code base.
16:07
leakage ?? n how do u thionk thats possible???
using same functions in more than one place??
first off the naming conventions for php functions are way crazy. so i do something like this: `function eatLastCharacter($string, $chars = -1) {
return substr_replace( $string, "", $chars );
}

`
anything wrong with this??
thks ppl ........ see u soon......
Is it possible to make a real time application using PHP?? I need help to create real time application using PHP.
@chanchal1987 Realtime like what you mean?? intregated with AJAX?
what type of domain? a web app?
16:12
Yes.. Web application
now is the client (browser) requesting real time data
@chanchal1987 of course it's can, there is much open source web application you can test first, and learning from it's code..
@chan
there are timers in javascript
@chanchal1987 you can, you'll also need to use javascript though
16:15
@CalvinL yes, and JS is mandatory if you want to make it. :D
See this question..
-1
Q: PHP / ASP.NET / JSP application like Google Wave

chanchal1987I want a PHP or ASP.NET or JSP application like Google Wave to host in my website. Features I needed: Free Open Source (not required) Real-Time Fast & Secure Image, Video and file sharing (not required) Video playback and image preview (not required) Maekdown editor (not required) Not using...

-1
Q: PHP / ASP.NET / JSP application like Google Wave

chanchal1987I want a PHP or ASP.NET or JSP application like Google Wave to host in my website. Features I needed: Free Open Source (not required) Real-Time Fast & Secure Image, Video and file sharing (not required) Video playback and image preview (not required) Maekdown editor (not required) Not using...

Google Wave uses Comet technique, as I know
oh so your looking for a turn-key system.
16:16
What is Comet?? Please help..
check wiki link above.
and what is turn-key??
something that is already built
You won't be able to create a true real-time application. AJAX/PHP will let you poll data at regular intervals, but it's not possible to push data directly to your web app
Hi all
16:17
@vaske wat up?
@CalvinL By using long-polling or similar techniques you can almost get there
Is real time application language dependent or server dependent??
Comet is a technique to make TCP-connection over HTTP, which is normally impossible, since HTTP is stateless
"...but it's not possible to push data directly to your web app.." without a request from the client\
@Gutzofter nothing just looking at code without a beer :D
16:19
@Gutzofter possible if you use comet
I've breiefly looked at comet's API and source. To me It's industrial size (too big) for the apps I do.
How to create Comet application using PHP... I need some link...
docs with example
@chanchal1987 server-side: github.com/kakserpom/phpdaemon, nodejs.org
client-side: socket.io
Also, orbited.org has complete solution to do comet with examples and docs, but it's serverside is in python
@vaske - for me: no beer = good code. beer = WTF
Thanks @galymzhan
16:24
they really need to reduce this scrolling. after so many messages they need to fold
haha
@chanchal1987 usually people who hears about comet first time says: "WTF?". so read theory first to be familiar
hey, btw this chat is real example of comet :)
But this is not using PHP
actually we don't know
client-side will be in js, server-side is anything that can interact via HTTP
@galymzhan nodejs.org is a library. But I need a documentation with example how to made Comet with Pure PHP and Javascript
16:31
For Comet you need a "Comet Server". node.js can act as this server. If you prefer PHP, check phpdaemon (link above). phpdaemon runs in daemon mode. do u know what does it mean?
Do you know how does HTTP daemon work?
No.. I am new programmer.. Please help me
just one little thin mint...
chanchal, you need some experience before dealing with comet and/or complex web apps.
understanding http, how does web-server interact with php and so on.
16:40
Thanks @galymzhan for helping me.. Now I will try to learn about Comet Technology
Hello this is nice..
how can i remove a picture with PHP?
@user457827 From where??
from a directory e.g images/name.jpg
should i do unlink('images/name.jpg'); ?
@NishantShrivastava Something simple like SMF www.simplemachines.com might be a good fit.
16:45
Thank you, so I was right by doing the above?
@chanchal1987
@user457827 Yes. Why not??
@user457827 Unlink is perfect as long as the process that runs PHP have write permission on the image.
Don't know. Going to try it now. Im unsecure at coding sometimes, and wan't to be really sure.
@pestaa Thanks man!I will surely try it out today!
@Nishant Let me know if it meets your expectations.
16:51
Is this right
unlink('../images/status/photo/$show["msg"]');
Or should i do: unlink('../images/status/photo/'$show[msg]);
unlink('../images/status/photo/' . $show['msg']);
Thank you
unlink('../images/status/photo/'.$show[msg]);
@chanchal1987 it's missing ' for the index of the array
I pronounce PHP as pfff.
16:53
@HoLyVieR Yes.. Sorry
If im only going to grab one column from a query, is there a easier way than making a query in an variable, and then make a variable for the fetch_array and then finally use the "msg" column doing the unlink() ?
Always have wondered that..
@user457827 Are you using PDO? Fetching an entire column is as easy as 1*1.
$get = mysql_query("SELECT msg FROM users_statuslog WHERE id = '$id' AND uID = '$USER'");
$show = mysql_fetch_array($get);
unlink('../images/status/photo/' . $show['msg']);
Example on what i mean above ^, No im not using PDO
heh.. that's about as simple as it gets. Most people use a db abstraction of some kind, making it slightly simpler.

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