« first day (573 days earlier)      last day (4379 days later) » 

12:53 AM
anyone use codeigniter framework?
 
1:07 AM
looks like everyone's gone. nite all
 
No, I haven't use Codeigniter. ;)
I always develop my own MVCs, because I enjoy reinventing the wheel. It hones skills.
 
1:43 AM
Boy, this place is dead.
I feel the presence of lurkers....
 
Eh, you just came at a dead time for the PHP chat room.
Most of the active users seem to be on earlier in the day.
 
Well that's too bad. I'm usually busy during that time. :S
 
user895378
Yeah, in the US most people are outta here by about two or three hours ago then you have a lull until the people in Europe wake up.
 
Must be a lot of East Coast people. It's not even 7:00 yet in Washington.
 
@ScottyC I'm on the east coast
 
user895378
1:55 AM
That, and the people in Europe are on at the same time as the eastern US people because it's not that late there
 
user895378
but they start going to sleep and eastern US people start leaving work
 
I blame it on the Australians, they are nothing but lurkers.
 
user895378
Yep. They just sit around waiting for unsuspecting users to ask about CodeIgniter or CakePHP so they can pounce.
 
@Paul Probably right.
 
2:26 AM
I should probably stop writing e-lisp and go back to PHP. I have 1300 lines of emacs configuration and tools.
 
2:54 AM
Gotta love it when 50 line script modification works perfectly with no testing. YEAH!
 
user895378
I love it even more when all my tests pass the first time after a 50-line modification ... which actually never happens.
 
That's more like what I meant to say. Everything "works" if you don't test it. LOL
 
Good morning all
 
3:09 AM
Heyo.
 
3:50 AM
@all hi
can anyone help me with this stackoverflow.com/questions/10532332/…
 
good morning all :D
 
hi
can i get some advice on sessions
 
@ShyamK @Renai hello
 
am creating a session
am just not sure where to start the session or under what conditions?
 
@Renai @ShyamK
can anyone help me with this http://stackoverflow.com/questions/10532332/how-to-display-product-category-image-in-jigoshop-plugin
 
3:55 AM
i am not familiar with that cart, if u can post ur code too can help others
have u checked the forum for the cart? could be a common issue
 
session_start(); at the start of every page I guess :)
 
regardless of if they are logged in or not?
 
@ishhhh need code.. I haven't used jigoshop..
@Renai no only once they're logged in.. what does ur page/ site do ?
 
has data
but if u login u can rate and leave comments
so session start at top of redirect?
i originally had it at the top of every page
so empty session is created if not logged in
wat can u tell me about http headers
 
@Renai log in then create a session..
 
4:03 AM
@ShyamK can you please check the link i have pasted the code there
0
Q: How to display product category image in jigoshop plugin

ishhhhHi i am using jigoshop plugin for e-commerce. I need to display product category with its images. I got the code to include the images but im stuck with how to retrieve and display the images. Please find the code below, plugin name- taxonomy-images just installed this plugin and configured ...

 
ill try that
are there any headers i need to be concerned with? am just looking at expiry
 
@Renai meta redirects are slower than headers so the latter will be better.. header('Location: errorpage.php'); check if the session variable exists, if not redirect :D
there maybe more on this.. maybe a better simpler and more effective way.. so hang around and the pros will wake up :D
i'm just fresh off learning php :)
 
shit its 5.05am here haha
dunno how long i can stay awake
am very new
already got bad habbits
this is not working
i have a login file which is accessed via include()
inside that the header()
and session_start are inside the code
i thought session must me at top
 
hehe.. me too.. but its morning here.. and I just reached the office..

Staying up late.. but a max of 4am
@Renai what does the login file do?
like what all checks?
 
it checks if u are user against databas
matches
 
4:11 AM
so if the user exists create a session else dont.
*session variable
 
then says a paragraph
since login.php is included in index.php
would i have the condition at the top of index.php
that sounds most logical to me
 
do a session_start at the start of every page. this just inits the session variables I guess (or something like that)
 
i also have a config file hidden
wud i be better putting session in that
so as config is ran to connect to database at the top is the session check
infact there are 2 pages that do not use the database, so maybe not
 
@Renai sorry have no idea abour that
 
np
i dont like the way in header info it says nov 1981
 
4:15 AM
@Renai but what I would recommend is creating a session_start at the top of every page.
when the user logs in create a session variable say $_SESSION['username'] = 'myname'
 
would this be right:
$_SESSION['username'] = $username;
i pass the user name variable to the session ?
 
else destroy the session. Then do a check on every page that requires the user to be logged in.. check if that variable exists.. if yes, do nothing (not necessary - if u have multiple user levels). If not do a redirect.
 
cool
 
@Renai yes that will do. but it must only be done if the username exists in the db
 
any idea why the expiry is set to 1981
thanks :D
 
4:20 AM
@Renai not really.. sorry
 
np
 
@Renai session_start is required where ever the session variable needs to be checked. session_start is like something that says ' Hey I'm gonna be using sessions here fetch all my available session variables to this page too.'
 
so start of every page and am good
 
@Renai yes i think so.
thats what I usually do..
@ishhhh is the default image being displayed?
 
is the path correct
i often find if u copy the image url and load in in browser it can be wrong
 
4:35 AM
@Renai ya most probably it something liek @Renai said.. but its gotta display the default image right @Renai?
maybe such an image doesn't exist?
 
@ShyamK NO iwant to know how to display the images.
 
in the folder path.. then it'll display the default tile..hmm.. confusing..
/wp-content/plugins/taxonomy-images/.... does this folder in ur site have the image named default.png?
 
so u never worked with apache
 
@ShyamK the path and all is correct . do i have to add any additional code for displaying the image in template.
 
@Renai me? not much.. but have some idea of the working
@ishhhh normally <img src="/path to the file/filename.png" /> is enough.
 
4:44 AM
@ShyamK yes there is an image name default.png in that folder
 
thats ur pic
 
@ishhhh currently what is being displayed instead of the image?
 
@ShyamK hi
 
@ShyamK nothin s being displayed here.
 
sometimes google is just no help
 
4:51 AM
hello @Goofy and @pardhu could you please help me.
 
can anyone explain importance of http response expiry header?
 
@ishhhh sorry mate i am new to php
 
its ok no problem @Goofy
 
@ishhhh nothing..? check what the default image is .. maybe its a blank image
 
@ShyamK no the default image is not a blank image , and as the image is not null it doesnt take the Default image but doesnt display the image also.
 
5:03 AM
u tried magento cart
 
@Renai is that for me?
 
@Renai the more you google the more more unwanted crap you come across. One day this unwanted crap turns to gold. :D
try a die statement to figure out the values you're getting
die($variablename);
 
am jus reading up on http headers
my server is set to nocache
am wondering if i need a cache
 
jay
hello goodmorning
 
hey
 
jay
5:07 AM
can any one tell me how to show drop down menu in joomla1.5
hi renai
 
wat is joomla?
i dont use frameworks, prob should
 
jay
so wt tell any rooms for joomla
 
?
 
jay
joomla room is availabel in stackoverflow
 
i dont know wat joomla is
 
jay
5:12 AM
k
no problem
thank u
 
wat is it?
like wordpress?
 
5:31 AM
hello
 
@Nick hi how are you
???
 
Im good how are you ?
 
5:43 AM
@Nick i am fine
busy?
@Sam hi
 
uhh not really
 
@Nick oh ok i have a scenario can u suggest me on that
i mean how to go about
 
alright
 
ok i am currently working on health care proj
 
okay
 
5:48 AM
there i have a situation where the user will be indicated to start breathing
inhale ,exhale
which will be exercises
i have implemented a timer with start ,stop and reset buttons
 
okay
 
with start,stop and reset buttons
 
have you ever taken any javascript/jquery?
 
@Nick u mean???
 
start stop reset
 
5:50 AM
i have used javascript for the countdown timer with start,stop and reset
now
when the user clicks on timer timer starts running
and the user should start breathing
:3661943
 
yeah
i don't get what you're asking?
my opinion ?
 
yeah
now i need to indicate the user
when to inhale and exhale
using progress bar or something similar
so how to go about with it
???
 
jquery/javascript
 
any examples on that??
 
`setTimeout(function()
{
o.dequeue();
}, time);`
 
5:58 AM
@Nick sorry i am not able to get u?can please give me some links on that
 
give me a second i'll code you an example
 
ok
 
It really depends what you're doing or what you want. but jsfiddle.net/ybouchard/qsMKx
 
@Nick could you please help me out
0
Q: How to display product category image in jigoshop plugin

ishhhhHi i am using jigoshop plugin for e-commerce. I need to display product category with its images. I got the code to include the images but im stuck with how to retrieve and display the images. Please find the code below, plugin name- taxonomy-images just installed this plugin and configured ...

 
uhhh maybe
....wordpress....
 
6:10 AM
yes
 
did you write this -->
 
@Nick ok let me check please wait
 
`$image = wp_get_attachment_image( $term->image_id, 'thumbnail' );
if($image==null){
$list .= "<img src=\"".get_bloginfo('url')."/wp-content/plugins/taxonomy-images/default.png\">";
}else{
$list .= $image;
}`
 
@Nick now in the same way i need to write a code for progress bar i guess
 
@Nick yes i have pasted the code there , i have put in the Archive-product.php in jigoshop template.
 
6:13 AM
so you're telling me you need a progress bar
 
@Nick no i am asking you
 
@Nick is there anywhere else i need to paste the code to display the image?
 
@ishhhh you're missing a lot of code, I don't know where you're getting $term->image_id,'tumbnail');
 
@Nick im using Taxonomy images Plugin for giving Images for the category.
 
I'm sorry but that requires me to look at Taxonomy images plugin on wordpress which I don't use.
I can't help you
 
6:16 AM
@Nick is there any other way to get the images?
 
 
I need to set images for product categories in jigoshop plugin. @Nick
 
@Nick thnks but prob is i dont know jquery any how will try to learn
 
@ishhhh Like I said, I don't use wordpress so I can't help you with a wordpress plugin
@Goofy Consider learning jquery it's a lot simpler then javascript and works wonders
 
ok thanks @Nick No prob :)
 
6:21 AM
@Nick yes i have just started ...thnaks a lot
@Nick BTW wts the time tr?
 
time tr?
 
@Nick sorry whats the time there?
 
1:22 AM
 
hi all
can anybody tell how to run .app file on mac from asp.net website
 
@Nick you are still awake? working some where?
 
6:25 AM
Internship, I'm 19
 
@Nick oh good !!!
carry on
 
I get paid for some data entry work for a software company. I'm working on automating the process
 
u have worked only on php?
 
html,css,jquery,php, some python
javascript
 
@Nick automating in which platform?
 
6:27 AM
platform?
 
@Nick i mean in php or java?
 
PHP
 
@rdlowrey , this is getting scary
 
I built a PHP scraper that scrapes and keeps a software catalog updated
 
@Nick oh ok ok i am also working for a software company as a android dev but for time being i have been put on php for a proj
 
6:28 AM
ahh
 
@Nick ahhh?
 
android dev, java developer
?
 
@Nick yup i am a android developer
 
7:06 AM
Can some one help me for this question posted on stackoverflow.com/questions/10546682/…
 
7:18 AM
@MahavirMunot The answer to this should help stackoverflow.com/q/905030/212940
 
Sam
7:30 AM
hi @Nick
 
Hey @Sam
 
Sam
what's up?
 
just working you?
watching red tails
idk why,,
 
Sam
finishing up with some homework
how's your framework project coming along?
 
it's been on hold for a couple days
been trying to make my job automated haha
 
Sam
7:34 AM
lol
 
@Sam hi how are you
 
Sam
you'll pick up back after a while
@Goofy
you sound familiar
 
yeah once i finish this little project for work
my first chrome extension
pretty awesome
 
@Sam ya remember? you had helped me couple of days back with some php code
 
Sam
oh ok.....cool
I wanted to dabble in chrome extensions a few weeks back
but realized I currently have better things to do
 
7:37 AM
really fun, injecting scripts into pages
 
Sam
maybe after my android experience
this summer should be fun
 
object-c this summer
 
Can someone point me in the right direction,possibly a good read on logging in to sites which has cookies,authtokens etc?
 
Sam
ahh......no objective-c for me yet
I'm partial to android....:D
 
:(
 
Sam
7:42 AM
logging into sites, or creating sites with login mechanisms?
 
Logging into sites
 
What are you trying to logging to ? and from where ?
 
Sam
why would you want to read books about how to log into sites?
that doesn't make much sense, @kishor
 
@Nick - Twitter, Facebook, etc etc.
 
Sam
oh ok
you'll need to obtain their API
 
7:45 AM
@Sam - because Authtokens, cookies etc makes it confusing..
@Sam - Well, I am approaching it using curl :)
 
Sam
any site that allows you to login remotely uses some sort of API
 
I wouldn't recommend mysql_*
 
Sam
without reading the API, you can't do much with it
 
@Sam - Well, what I am trying to do is, not to depend on their API. Do I still have to bother about the api variables?
 
Sam
7:49 AM
well, if you are trying to log into their system remotely, you can only do it the way they've allowed
you can't just do it anyway you want
usually, you have to post some username/password to some url
and it'll return you some code telling you if it's successful or not
 
So what I should look on to is see how API works, and then get the url which datas are posted to, and make a script using curl which posts to that url?
 
@Kishor so this may help... stackoverflow.com/questions/3008817/…
 
Sam
no; what you should do is check out the API they have provided; it should tell you how to proceed
many of them come with examples too
 
But sam, my point is not to depend on the api at all. I want it like how a browser handles it. Like user visiting the site and logging in.
 
I don't understand why you wouldn't use the api..
 
Sam
7:53 AM
well, go to the respective site's login page
get the action of the form
 
curl forces you to use alot of regex, why wouldn't you just use their api
 
Sam
along with the username/password 'input' names
and try it with curl
that should imitate the browser
 
Thanks Nick, and Sam :)
 
Sam
I haven't tried it before, but it should work perfectly
 
@Sam why are you up?
 
Sam
8:04 AM
lol......to finish up an assignment
it's due tonight
the question is what are you up to?
 
i don't know
i should head to bed
 
Sam
lol....if you don't know why you are up, maybe you aren't really up.....:P
 
lol im watchin red tails
 
Sam
its out on dvd?
 
Sam
8:20 AM
ahh...illegal downloads....yum
 
haha, im canadian its basically legal here
anyway im off to bed night
 
Sam
alright.....have fun
 
8:35 AM
Hey anyone here?
 
no , go away
especially since you just mass-pinged everyone
 
huh
mass-pinged?
 
i assume that you were not so stupid to pick only me to invite in private room
 
Do you know how to make a folder visible from internet ?
 
8:42 AM
:(
 
@tereško @FaryalKhan hi, can you please check this stackoverflow.com/questions/10532332/…
 
it is not answered by anyone
 
flagged as "not a real question"
 
have a look at my question
 
@FaryalKhan then you can answer it .
 
8:44 AM
0
Q: Access Images one level above diectory

Faryal KhanI want to access some images and pdf files on level above my directory in php. My Directory structure is as follows /mc /files /import /folder1 image pdf /folder2 image pdf ...

once I will solve my problem I will answer him but I am sure he has already found the solution
 
@tereško ?
 
Hi everyone........
 
welcome to the second tier of outsourcing
 
@tereško The comment you drew up seems to get a positive response for the most part.
 
8:56 AM
that was the aim
 
Sam
9:19 AM
hey teresko, let me ask you this: would you consider using Python over PHP when building a web application, or does it depend on the application's function?
 
@Sam , i cannot give you an objective response , because i have almost no experience in written python web apps
but there is one thing i should point out : if you are not an expert in Python already , you should not start a critical project with it
 
Sam
really? I could have sworn you mentioned you could do some work in Python
 
nope
 
Sam
I'm not.....I'm just checking out its capabilities
 
how can I know all the fileds and datas sent from a page ? There are many hidden fields too.
 
Sam
9:24 AM
for one, its syntax is a whole lot different (and weird)
 
@Kishor var_dump($_POST, $_GET);
 
Sam
for hidden fields, preg_match value="hidden".....:D
 
teresko - No no.. thats not what I wanted. That website I talk about is not mine. When I fillup datas, and hit submit, it sends everything to the server. was wondering if I could know the fields.
 
@Sam , if you want to learn another language , python is definitely a candidate , but so is ruby and javascript
 
@Sam - I got that twitter shit half working. I have missing fields so "The server understood the request, but is refusing to fulfill it." \m/ Good sign though.
 
9:26 AM
@Kishor , then you should open the local development tool for your browser
look into the "network" tab
you should see there the request sent , and what data was passed
 
network tab of?
 
how the hell i know
depends on your browser
 
lo
lol
 
i can tell you where it is in Opera .. but i am not gonna open another browser just to spoonfeed
 
I dont want to be spoonfed either :)
 
Sam
9:28 AM
I'm moderate in JS, and will continue to enhance my skill in it; I only use it as for client-side purposes (yeah,I know about node.js, but haven't looked into it much); I've never really been interested in ruby (maybe because I haven't researched about it)
@Kishor; you can equally pull up the login page, crack open the source, and check out all the fields in there
 
@Sam - Thats what I was doing. Too many though. Well, LIVE HTTP Headers plugin for Firefox solved the shit.
 
Sam
lol....a basic 'find' function in the source code will do the trick too....:D
 
Too hard compared to a full url with all the fields and values so I can replace the values with variables.
 
Sam
too hard? you open up a source code, click Edit->find->input; yeah........that must be a herculean task....:P
 
whatever sam :)
 
Sam
9:39 AM
so, is there a reason you don't want to use the API? Planning something illegal? :P
 
9:57 AM
help
i need a good way to say "invalid cart"
it is when user has create a cart , but the conditions have change and the order cannot be fulfilled
but "invalid cart" sounds wrong
"unachievable order" , i guess
 
Sam
no....that sounds worse
 
"damaged package" ?
lol
 
Sam
go with invalid cart till you find a better phrase; you can also include a ` ? ` sup tag (or a title attribute), informing the user about what it means
 
@tereško How about "This order cannot be filled", or is that too long?
 
@vascowhite , it has to go in the URL
 
10:09 AM
aah OK
 
it servers as title/url part ... there is a longer description below in the content
 
Your user might not know what you mean by cart. So, how about "Invalid Order".
 
10:44 AM
posted on May 11, 2012 by Nelmio

Here is a quick update on conferences we will attend and speak at in the next couple months. If you are attending any, feel free to come and say hi! Next week our entire team will be at jsDay and phpDay in Verona, Italy. If you haven’t got tickets yet, hurry up because it is about to be sold out. Pierre will talk about Backbone.js, Igor has two talks about realtime apps with websockets and

 
10:56 AM
Hello,
 
@RashmiB Hello
 
how can i use zeta print extension in magento 1.4.2
I am new to magento Can some one plz tell
 
Sam
Do you think this could do with a reopen vote? @hakre

http://stackoverflow.com/questions/2235158/sha1-vs-md5-vs-sha256-which-to-use-for-a-php-login
 
Yes , this one only zetaprints.com/magentohelp/…
 
11:08 AM
@RashmiB Are you banned from google or what then?
 
11:25 AM
no
 
11:53 AM
@hakre why do high-rep people answer question like this ? Do they need to feel useful ?
 

« first day (573 days earlier)      last day (4379 days later) »