logs archiveIRC Archive / Freenode / #php / 2015 / July / 19 / 1
troop
hello
martin290
It may be beneficial to create a variable which will be set to 1 if the first and second update statements succeed
troop
how can i access foreach scope variable outside of loop?
tw2113
they won't exist, but you can reference the indexes of the array directly
depending on if it's an indexed array or an associative array
martin290
Troop, create it outside the for loop
SomeT
Can someone explain to me what this error means and how to fix it please? : http://pastebin.com/WJgd2Dmk
d3m0n
How this looking? https://gist.github.com/jstnmthw/fce1e6ff9520514e1dcf
martin290
Is session_start() the first line in your php file
SomeT
thats the problem I don't know which file
based on the error log I am thinking it is common.php right?
however when going into that file it has Common::startSession();
on the very first line
where session_start(); is on line 88
         

martin290
Can you try commenting out all your includes and require
Then try adding session_start() to the top of your page
d3m0n
martin290: How's this? https://gist.github.com/jstnmthw/fce1e6ff9520514e1dcf
SomeT
why comment out the includes and require?¬
martin290
Where do you start the session
SomeT
basically using Codiad
it all works fine
martin290
They could be causing the problem. Need to isolate the issue
SomeT
but I keep getting this problem in the error log, and the error log eats up space on the server
ah ok
martin290
I hope that helps
JoshPeck
Hello guys
SomeT
can I not just replace Common::startSession(); - line 8 with session_start(); on line 88 the code is here http://pastebin.com/437ZwXnN
yeah its set me on the right track
I don't actually know any php well not much anyway, just installed Codiad and this is my only problem with it
Alphos
SomeT : in the file /home/bito/public_html/ide/common.php , more specifically on line 88, you have a call to session_start(). this call is prevented from performing what it should do by output that was already sent (which prevents additional headers such as a session cookie from being sent), and the first bit of output occurred in /home/bito/public_html/ide/plugins/Codiad-Terminal-master/emulator/index.php on line 9
SomeT : why not ask whoever supports Codiad to fix their stuff ?
SomeT
Alphos you lost me, I tried I get no response
Alphos
SomeT : then dump that piece of crap
SomeT
I can't find a decent alternative
Alphos
if i get no support for stuff i use, i damn sure ain't gonna use it any longer
SomeT
just trying to save c++ files and execute on my server
Alphos
SomeT : and that's our problem because... ?
SomeT
I never said its your problem
Alphos
yet you came here for support
SomeT
yes
         

Utils
Composer: undefined variable caBundle in C:\...\Temp\js-HH421.tmp\install.phar, I'm guesing this is related to like a certificate bundle, but this is just for locally. it's safe to ignore, right?
Alphos
so you attempted to make it our problem
SomeT
well not really most problemns have a solution ;)
Alphos
SomeT : the solution*s* are to either dump that piece of crap or ask for it to be fixed
SomeT
ok thanks
Utils
what branch is illuminate/database at?
is it 5.1
branch version idk what to call it
JoshPeck
Anyone know where I can find a good php programmer?
Utils
here.
but not me
i just did >=5.1 i gues its good enoguh
JoshPeck
I need to build a website exactly like this model http://megafilmeshd.net/
payment with bitcoin..
__adrian
JoshPeck, !+jobs
php-bot
JoshPeck, No job posting or asking for jobs on ##php, please (see /msg php-bot g7). You may want to check out: ##php-lance, http://www.freelancer.com/ or http://www.getacoder.com (##PHP does not affiliate with any of these channels/sites).
JoshPeck
thanks __adrian
__adrian
sure
m4tthumphrey
anyone know how to make phpstorm put the namespace definition on the same line as <?php by default?
Alphos
we don't support phpstorm. ask them for support
m4tthumphrey
lol.. ok Alphos
sorry for bother you
to^
Alphos
it's not funny :-/
tw2113
you mean you don't support everything that involves the letters "php" in that order?
Alphos
or in any other order
some of them we even advise against
m4tthumphrey
i think its funny Alphos
was a general question to the community than an expectation of a complete answer
thanks for your help! :)
SomeT
thanks Alphos I think I fixed the problem now
I just deleted the commented out stuff at the top of index.php
and added session start to the top of common.php
I think its fixed it
Alphos
yeah, better not be sure, you're absolutely right
and better try and do yourself something you said yourself you don't know much about
tw2113
run the unit tests
Alphos
it's definitely going to work without a problem
what could possibly go wrong, right ?
</sarcasm>
SomeT
it was all guess work
but what you said helped figure that out
Alphos
SomeT : problem is you don't know how it'll affect the software you're using, and i'm not about to read a whole stack right now
so you have no idea what consequences there might be
which means there may well be unexpected issues from your "fix"
SomeT
I am a bit worried about this <?php
session_start();
Common::startSession();
Alphos
debugging isn't just shoving a function call somewhere. it's analyzing where and why you should put your function call, IF you have to put it at all
tw2113
it's like one is a function call and the other is a static method call that may do the same function call in the long run
SomeT
I mean I have tested it out and I can't notice any problems
Alphos
so stop asking us, and either ask whoever supports that piece of crap or drop it altogether
SomeT
I was just trying to say thanks for the help
Alphos
...
tw2113
i think Alphos is saying there's risk you'll be back with more issues later
Alphos
i think the message didn't quite get through
SomeT
but what issues?
Alphos
SomeT : what you did wasn't a fix. it was throwing spaghetti at the wall, and you don't know what stains it'll leave on the paint
SomeT : the unexpected kind
SomeT
I only added one line
« prev 1 2 3 4 5 6 7 8 9 10 11 12 next »