« first day (1445 days earlier)      last day (3496 days later) » 

4:19 AM
morning
 
Good Morning Joe
@JoeWatkins, Where are you from????
 
Oh Great :)
I am working in a Software firm as a PHP Developer
I never do freelancing.
I have good knowledge in Core php
and also in CodeIgniter Framework well
rafusoft.com is my firm's website and I totally developed the website with Codeigniter and RAW php
Though I have good skill in PHP development, I am not familiar with freelancing.
 
is this leading up to a question ?
it's half five in the morning, I'm only awake because monitoring servers, not likely to be very helpful for another hour or two ...
 
yes
oh
 
4:28 AM
go ahead and ask the question, I'm not the only person here ;)
 
I. Am. So. Fucking. Tired.
Moving shit for 3 days straight.
I think my mind is actually disembodied, and I'm dead.
 
I dunno what moving shift is, but this is the second day I got up early enough to fuck the crack of dawn ...
 
Hahaha, I like that expression.
 
ever tried to use fpm slowlog to debug anything ?
it's useless ... "GET /index.php" ...
 
Moving "shit", also known as "shite"
Nay.
 
4:36 AM
ah ... ur moving, got it ...
5:30 am, need wide birth for stupid brain...
 
Indeed.
S'alright. As mentioned, I think I'm actually dead.
So forgive my being not alive.
 
I'm not convinced that you are ...
(dead)
 
Neither am I, but all signs point to it. That or dying, at least.
Euphoric, but in incredible pain.
 
A death rattle, known clinically as terminal respiratory secretions or simply terminal secretions, is a sound often produced by someone who is near death when fluids such as saliva and bronchial secretions accumulate in the throat and upper chest. Those who are dying may lose their ability to swallow and may have increased production of bronchial secretions, resulting in such an accumulation. Usually, two or three days earlier the symptoms of death can be observed as saliva accumulates in the throat, making it very difficult to take even a spoonful of water. Related symptoms can include shortness...
rattling much ?
RIP @DanLugg :D
I get annoyed when people use the words asynchronous, concurrent and parallel interchangeably ... they are not interchangeable ... stop it ...
 
5:00 AM
hello
all
i wanna ask how to connect cake php configure in local server to DB configure in other online server
 
5:24 AM
Morning guys
Anyone worked with webrtc here?
 
6:02 AM
@Gotalove im trying to make something work with it too.. why?
 
nice
@reikyoushin coz I want to get started on it to create an app for chat
how far have you gotten
I have been researching on how to do voip on php and honestly wasnt feeling too optimistic about it till I saw the webrtc site link html5rocks.com/en/tutorials/webrtc/basics
 
6:17 AM
good morning guys from India
 
good morning
 
6:36 AM
posted on September 30, 2014 by kbironneau

/* by ima.noka */

 
zan
6:54 AM
hi
 
why would you down vote that ?
 
Good Morning fellah's
 
why can't stylesheet using the link tag can't read out a file location
as my test environment style sheet is linked to: c:\..........
page: <link rel="stylesheet" type="text/css" href="{SSB['error']->['style']->['stylesheet']}" />

PHP: $getStyle = dirname(__FILE__).'/templates/errors/style.css';
PHP: $errorPage = str_replace('{SSB[\'error\']->[\'style\']->[\'stylesheet\']}', $getStyle, $getErrorPage);

output: <link rel="stylesheet" type="text/css" href="C:\xampp\htdocs\forum\includes/templates/errors/style.css" />

content: not styled
 
@JoeWatkins Is Guzzle still just a curl wrapper?
 
7:09 AM
yes
 
Joe do you know why it gives a not styled page back?
 
Aw, at least in his reply he acknowledged who you are :D
You're e-famous now
 
> though to be fair, most asynchronous code is likely going to be run concurrently with other asynchronous code using some kind of non-blocking event loop
this sounds confused to me
 
because the event loop is the part that blocks? :)
 
concurrent has a very specific meaning, in a single thread of execution, nothing runs concurrently with anything else ...
 
7:15 AM
I'll hold my hand up and say I've never used pthreads. Are the threads still constrained to the core that the main PHP process is using?
 
what do you mean ?
 
i.e. cannot be concurrent because their operations are interleaved.
processing is multiplexed with other threads
 
good morning
 
no, each thread it's own context, they execute concurrently ...
 
ok, let me backtrack, using pthreads, would he be able to achieve real concurrency
 
7:18 AM
yes
 
yea ok, that's what I was trying to get at :) ty
 
@iroegbu Good morning.
getting to hate CSS + HTML XD
 
unless it was a single core system ;)
(like a VPS with a single vCPU with no hyperthreading)
 
yeah ... although ... our watches are quad core ...
(there's not really anything left with a single core, in the real world)
 
yay got a step future
further *
Not allowed to load local resource: file:///C:/xampp/htdocs/forum/includes/templates/errors/style.css
 
7:33 AM
good meurning
 
you know what fuck it, I am just gonna read out the file and throw it in the page.
 
mornin' everyones
 
7:56 AM
Its so dead here o.O
 
Good moo-ning :)
 
hehe
cow selfie :)
 
8:12 AM
mornings
 
moin
 
hi @DaveRandom I saw some alternative to video chat using webrtc. html5rocks.com/en/tutorials/webrtc/basics
Have you had any experience with it.From the video seems like an easier implementation to asterisk
 
8:28 AM
@Gotalove Depends what you actually want - webrtc ties you to web clients really, whereas a "standard telephony"-based approach would let you more easily plug in to e.g. SIP, H.323-based endpoints.
Also bare in mind that the webrtc spec is very young and (afaik) not standardised
But if that satisfies your requirements, then go for it :-)
 
here anyone know laravel basic?????
 
posted on September 30, 2014 by kbironneau

/* by Deathroyer */

 
@PHPDeveloper sure: take 3 parts codeigniter, add namespaces, replace the hard parts with symfony and garnish with sauce of deep ignorance and arrogance
also, I'm hungry
 
8:52 AM
Morning
 
okay @DaveRandom all I want is a video chat app so to me the simpler the code the better coz I dont have much understanding of the protocols and other generally important stuff for this so am hoping it will be easy enough to do this
 
@Gotalove If that works for you, I have no problem with that
@tereško lol
 
thanks
 
9:08 AM
\o/
 
is it me, or is the php website loading really slow?
 
Guys, what's the name of the functionaly that syncs code from one folder to another in phpstorm ?
 
: Docs, Backlog | Tools: Explain, phpdbg, devdocs.io | Addons: [cv-pls], PHP Manual Linkifier | Snippets: ext/mysql | Reference: QAs
8
@MoshMage Deployment?
There are tools in there for local sync
 
@DaveRandom Thank you! I tried "sync" and was finding nothing :)
 
Look in deployment under project settings and create a target of type "Local or mounted folder"
You need to turn on "Automatic Upload" if you want it to do it automagically on save
(under tools -> deployment menu)
 
9:12 AM
@DaveRandom this piece of info is highly appreciated :)
 
@Naruto It's you. Try a different mirror
@MoshMage One of my co-workers has all kinds of crazy hooks set up so that it auto-deploys to his local dev and auto-commit/push to a temp remote branch when he saves, and then when he uses the actual commit button it actually squashes the commits and then merges into the target branch... it's a really sweet setup for those nervous types but he spent like 3 hrs setting it up or something
Ain't nobody got time for that...
 
mr5
\o all
Uhmm...
Why do Php outputs "null" if I have a character of 'ñ' in my database? I know this is some encoding stuffs but I thought doing these following stuffs would solve it but it didn't:

Apply this to Php header:

header('Content-type=application/json; charset=utf-8');

And change the table encoding in the database to "utf-8-bin"
Any things I've missed?
 
@DaveRandom I just want it to move the code from one folder to the other so I don't do it manually :x though I'm getting "it wont automaticaly yadda because you have no valid mappings" though I'm mapping `\` (I thought this mean "map everything to the same place" but it turns out it doesnt
 
@MoshMage Yeh I always get confused by that, one sec
 
@mr5 you are missing the code
 
9:19 AM
@tereško Hello..
 
mr5
@tereško It's like, I put the queries from db inside the array of unknown type? then blast it in html by json_encode
 
@MoshMage So what you want is on the "connection" tab, point it at the base dir of the base target directory, and on the "mappings" tab, point "local path" at the base source directory, and set "deployment path on server" and "web path on server" to / (use forward slash on Win as well)
 
mr5
You know, the usual stuffs done by any other programmer
 
That's how mine is set up, anyway
 
ouch.. any one help me...........
 
9:21 AM
@DaveRandom Thank you
 
@mr5 so you want me to debug imaginary code ... well , error is in the line 51, tnx-bye
 
How can I configure laravel???
 
mr5
@tereško $result = $conn->query( "SELECT * FROM myTable" );

$response = array();

while ( $r = $result->fetch_array() )
{
$row["field1"] = $r["field1"];
...
$response[] = r;
}

print json_encode( $response );

just like that??
 
@DaveRandom "base target directory" means "where the phpstorm project is" OR "where I want the source to be copied to" ? ( imgur album for simplicity sake imgur.com/a/Koqm2 )
 
9:26 AM
@MoshMage Source is your PHP storm project, target is where you want it to be copied to
 
@DaveRandom @Leigh @tereško @DanLugg @Danack ... and @rest of you ...
 
/hides
 
hm, huh what?
 
@JoeWatkins I'm the @rest what can I do to help you today, Joe? :P
 
2 mins ago, by Joe Watkins
https://gist.github.com/krakjoe/83c9117b4613c4825ce8
did I explain it ?
 
9:28 AM
I like how the passage of time dilates around task 1, task 1 was clearly activating the flux capacitor
You explained it.
 
How do i get the elements I want from a pdo results array consisting of stdobjects?
 
@JoeWatkins I would add another diagram that shows the sequential I/O-bound processes with dead time
 
Array
(
    [0] => stdClass Object
        (
            [id] => 1
            [name] => 4ee269991861331957002e21.jpg
        )

    [1] => stdClass Object
        (
            [id] => 2
            [name] => 22769-interesting-cat-meme-rv31.jpeg
        )

    [2] => stdClass Object
        (
            [id] => 3
            [name] => 10645322_300758350130075_5393354656605964412_n.jpg
        )

)
that is what is returned
when i try to fetch from db. I am having trouble trying to get the id I want
 
@DaveRandom This is weird; I had the "this will not be mapped" though I closed the settings window and oppened it and.. the warning went away
 
| 2 | --- || --- request disk read ->
| 1 | --- || --- request network read ->
...
| 1 | <-- || --- data from network --
| 2 | <-- || --- data from disk --
 
I also fixed a typo in parallel
 
ah you forked, was going to say ... "like this?"
 
@MoshMage Blame Java. That's what I usually do.
 
@JoeWatkins You ought to make the slow IO things explicit in the 'diagram' and possible use google docs to draw the diagram.
 
9:34 AM
@Leigh That works too, I just stuck with the linear theme
 
it's still linear, the first col is still async concurrency in a single thread :)
Just wanted to show some I/O bound stuff
 
@JoeWatkins it's also probably worth noting the limits of parallel processing, at the moment it doesn't explain why creating 3000 threads is a bad idea
 
@DaveRandom ZING! :D I blamed java and it worked xD
Thanks for the walkthrough
 
np
@Leigh Yeh that's cool, I just cba drawing out sexy ascii-art atm :-P
 
ok reread ?
this is only for a reddit answer, and I didn't want to complicate diagrams by including what each instruction was ... I dunno if might be confusing ...
 
9:40 AM
@DaveRandom \o/
 
does it work ?
 
:-D
 
morning
 
moin bob
 
@JoeWatkins already looked at async-interrupt branch?
 
9:46 AM
not yet
 
can't yet, I'm on high alert because servers keep failing, so can't do anything for more than 5 minutes ...
 
@JoeWatkins oh. Why are they failing?
 
well the primary cause seems to be opcache's fast_shutdown, which was corrupting heaps and causing random crashes, that's gone by disabling fast shutdown, but still we have some requests taking 40 seconds to execute, quite a lot of them, at random places throughout application ...
not really sure what is going on with that ...
so then at cron time fpm is refusing responses for so long nginx is giving up ... leaving us looking offline ...
 
but without opcache everything works?
do you actually need opcache, or does it only reduce load on servers, but nothing the server couldn't handle?
 
9:53 AM
@JoeWatkins Works for me, although I think it should be made clear that having more threads than cores is a bad plan
 
@DaveRandom if you use the threads to do synchronous I/O it's allowed…
 
Well yeh, but this is a sync vs async vs parallel basic explanation, best not to over-complicate it
Also I'd argue that it's still the wrong thing to do, better to have threads <= cores and each thread does async
 
some I/O by nature cannot be async, bob is talking about that I think ...
not allowed, but done in the real world, in theory not a good idea but in practice ... our hardware is really fucking clever now ... it works ...
 
@JoeWatkins Clever, and yet still retarded enough that no async FS I/O
 
9:56 AM
hi all
hi DaveRandom :)
 
The really rare situation that Windows can actually do something that *nix can't
@Julo0sS yo
 
@JoeWatkins and even if you try async fs I/O via libuv, all what happens is that the threading is abstracted away from you…
 
@bwoebi *file system
Socket I/O is still straight up event loop async
 
yep. That's what I was talking about…
 
as any good abstraction would have to do ... and any decent programmer should know how it works ...
 
9:58 AM
s/decent programmer/programmer who wants to use it/
 
s/who wants to use it//
 
@DaveRandom i still have problem to get POINT data from my mysql db...
I try to do it this way, but i get empty data...
$query = $db->prepare("SELECT X(geo_pos) FROM geo WHERE geo_id=$id");
$query->execute();
foreach($query as $g){
return $g['X(geo_pos)'];
}
my sql query gives me the right data... but the php seems wrong
 
@bwoebi Not really, I don't expect e.g. front-end JS guys to know this stuff, it's not relevant to them
@Julo0sS You should do SELECT X(geo_pos) as x ..., for a start
 
@DaveRandom If people are front-end only, they're not decent programmers
 
Disagree. Just because people don't do what you do doesn't make them bad. The kind of people who write extJS-style apps know all sorts of stuff about GUI interaction that I don't know, or want to know, or need to know
 
10:01 AM
I should put this out there: I'm not allergic to nbio ... I have no bias towards anything, I know where it's acceptable and beneficial to use threads and know when it's stupid .... it annoys me that people seem to think whenever I talk I'm trying to promote the use of threading over the use of common sense ... I'm never doing that, I happened to write pthreads, and unlike everyone else I am actually pretty proud of what is old code, but it doesn't allow me to ignore how things actually work ...
 
@JoeWatkins I don't think that anyway, I don't think anyone here does
 
Guys - using a tool like composer in a production context. What happens if a package you're using is deleted in the time between transferring from sandbox to live and running composer install? Does Packagist cache these or something?
 
@DaveRandom does not change anything...
the whole code just echoes json_encode($g['x']) and i receive it into a js script, i try to alert it (alert(response)) from my .ajax, but alert is empty...
if i execute the query into the mysql manager i have the data
 
@Jimbo You would be fucked. i) bastionrpm.com ii) package yo shit
I'm going to be finishing it and publishing it in the next 72 hours.
 
> which removes any dependendcy on Packagist, ever
 
10:07 AM
// if you haven't done this already. You should do this straight away after you create
// the PDO instance
$db->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
$db->setAttribute(\PDO::ATTR_EMULATE_PREPARES, false);

try {
    $stmt = $db->prepare("
        SELECT X(geo_pos)
        FROM geo
        WHERE geo_id=:id
        LIMIT 1
    ");
    $stmt->execute(['id' => $id]);
} catch (\PDOException $e) {
    // something went wrong with the query, handle error
}

// for SELECT, this is safe for MySQL, but doesn't work with every DB
@Julo0sS ^ free code
understand what it does before you use it though ;-)
 
@Danack I told you to remove the rounding of the top bar :-/
 
couldn't pack it with more discontentment if you tried ...
 
@bwoebi That was different site - console.basereality.com. Also....you're not my boss, man!
 
@Danack twice same design…
 
and?
 
10:09 AM
well, do you really care if I'm your boss or not? :-P
@Danack "Compposer" typo in intro.html page
 
@bwoebi thanks.
 
and once just "Compose" (without r)
 
@bwoebi thanks - I may have already fixed that locally, which page please?
 
same page… intro.html
 
@DaveRandom idk where the problem is... but i still have a "internal server error" from my php script (ajax)
 
10:14 AM
k
 
@Julo0sS You need to check your error logs then, whenever you get a 500 error, a message telling you what happened is logged to the server error logs.
 
@JoeWatkins I like
 
@NikiC :)
 
@JoeWatkins The guys running composer have made some terrible decisions. Packagist should not be part of any deployment process.....it is incredibly slow and has hilariously bad security issues. What absolutely crosses the line though is that they've effectively stopped working on making it better (or making Satis the software behind it better) to focus on their own paid alternative.
 
@Danack what paid alternative?
 
10:17 AM
See if you spot the subtle advertising.
Sep 12 at 18:52, by Danack
1 min ago, by Danack
More the 'Satis doesn't do everything you need and the we're not going to either implement them or accept PR for them so why not pay us cash money'.
Sep 12 at 18:53, by Danack
@ircmaxell They don't tag versions of Satis or Composer which makes it harder to write software that depends on either of them: https://github.com/composer/satis/issues/85
/anyway need to do work.
 
@Danack The only thing what I haven't gotten is how that thing works now with composer?
 
@DaveRandom the problem seems to be the "fetchColumn(0)"
if, instead of this, i do the foreach thing, i finally get my data, everything ok... but if i do the fetchColumn, i got an error...
 
@bwoebi short version, composer talks to a 'satis repository' which is basically some json, and a load of zip files. Packagist is a satis repository, toran is a satis repo, bastion is a satis repo. You tell composer which one to talk to - or just set an entry for packagist.org in your hosts file, and because there's no security, composer will use whatever is at that IP address.
 
How do I change this to a normal array? This is what PDO fetch all returns to me
    object(DB)#3 (5) {
      ["_pdo":"DB":private]=>
      object(PDO)#4 (0) {
      }
      ["_query":"DB":private]=>
      object(PDOStatement)#8 (1) {
        ["queryString"]=>
        string(30) "SELECT * FROM background_image"
      }
      ["_error":"DB":private]=>
      bool(false)
      ["_results":"DB":private]=>
      array(3) {
        [0]=>
        object(stdClass)#7 (2) {
          ["id"]=>
          string(1) "1"
 
e.g. a satis repo - satis.basereality.com
 
10:23 AM
Why do we still need a satis repo? :-/
Why can't we just directly access github?
 
@DaveRandom after few investigations, seems the problem comes earlier... the problem is in the query with :id and the array execute(['id'=>$id])
 
@Julo0sS What's the error message?
There's presumably an exception thrown, just echo it out
 
error 500 i don't have a clear log, i use firebug
the only way to get my data is to do it like this :
$getGeo = $db->prepare("SELECT Y(geo_position) AS y FROM geo WHERE geo_id = $id");
$getGeo->execute();
if($getGeo->rowCount()>0){
foreach($getGeo as $g){
echo json_encode($g['y']);
}
}
as soon as i add these lines :
$db->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
$db->setAttribute(\PDO::ATTR_EMULATE_PREPARES, false);
it fails
*wait
no, sry, i'm wrong
 
@Danack I'd more like a fork of composer which removes the need for something in-between and is able to more…
 
@Julo0sS Yes, because that causes the database errors to actually be errors instead of just being swallowed up
 
10:29 AM
@DaveRandom it fails when i change my $id with :id and add the array in execute statement...
 
That's a big part of why you should use ERRMODE_EXCEPTION, because it means that when you get something wrong you code explodes instead of just carrying on as if it worked... makes it a lot easier to find bugs
 
@Danack we're using satis too, mostly we mirror stuff that is mission critical ... that would solve your problem I think, we do it for other reasons, patches and speed
 
@bwoebi Too slow anyway, but also github don't want you to do that....there api is rate limited to 5000 requests per hour which is really not many when scanning multiple repos for tags etc. Also we've discussed this before - relying on Github is not a reliable way of deploying apps......it's okay for small projects, not for larger projects where not being able to deploy for 20 minutes due to github outage is unacceptable.
 
i don't understand what you mean...
 
@Julo0sS What's the error message, though?
There is an error being emitted that tells you exactly what is wrong
 
10:31 AM
@Danack just like we might have a Satis outage.
 
@JoeWatkins Yes and no.....I need to put more emphasis on the ability to control deployed versions better that composer/satis has.
 
@bwoebi Yes, which is why you should host your own satis in your servers.
 
All it does is migrating the point of failure.
 
And puts it under your control.
 
10:32 AM
our deployment is pretty messy, so I got nothing useful to say about that ...
 
ah hm
 
If your servers have fallen over - then yes you won't be able to deploy....but you can i) fix that ii) spend money to have redundancy.
 
@Danack btw. I'd like to be able to include repos without composer.json file. without having to declare repositories field in each depth of the chain
 
@DaveRandom Firebug only gives me error 500 i don't know where to find this information... :/
 
@Julo0sS Firebug cannot help you debug PHP. Instead of making ajax requests, call the script directly in the browser as if it's a web page, and inspect the output. If you get no output, turn on error_reporting=-1 and display_errors=1 ini settings.
Also, check your web server error logs...
Firebug is for front-end debugging, this is back-end code...
 
10:35 AM
awwwwforfucksake. so, Internals Team is not using bootstrap because (apparently) they hate it, so they use jquery-ui instead; I asked "did you code that bootstrap-like menu by hand or are you using a plugin?" the Team Leader sends me a link to? "jQuery Bootstrap-style Dropdowns" lol.
 
10:46 AM
hehe
monrings
 
moin
 
Hi Joe, rainy day here..
 
sun is shining for me ...
 
Hi everyone
 
Hi @Wissem
 
11:00 AM
I have a small idea for a PHP project but I dunno if it exists :)
is there a way to give your composer.json to some webserver and the you get the vendor directory back ?
I want this because composer is very slow for me (my internet connection is horrible)
 
catch(\PDOException $e){
echo $e;
}
echoes nothing...
 
@Wissem your internet is slow anyway...
 
@Julo0sS Oh wait... what PHP version are you using?
 
it would more faster if a server does it and give me back a zipped file
 
@DaveRandom 5.3
 
11:04 AM
@Julo0sS Change $stmt->execute(['id' => $id]) to $stmt->execute(array('id' => $id))
And turn error reporting on in php.ini
At the moment you are developing with one hand tied behind you back
And also... use a newer PHP version...
 
@Wissem I do not know any project which does that, but I also think the usecase is quite limited. Might as well ssh to a remote, composer install, download the zip.. and how much bandwidth would you save.. ?
 
And also echo $e->getMessage();
 
@iroegbu echo $e is good for dev, outputs the stack as well
 
@DaveRandom on 5.6 now, error messages turned on, and still nothing changes^^
@iroegbu tried this, but nothing changed
 
@Julo0sS Remove the try/catch then, let PHP explode
Although if you are getting a 500 error, something is being logged somewhere
 
11:09 AM
@Julo0sS could you put your code in a pastebin, after you replaced the $id with :id and etc
 
i can't call the page directly since i use a POST, i will paste it in pastebin
 
@DaveRandom oh =] I see..
 
It's possible there's something wrong with that code, but I can't see it...
 
@Julo0sS nevermind me, I was just rambling
 
11:13 AM
@RonniSkansing too laaaatttteeeee :P
 
@DaveRandom even without the try/catch i have nothing on screen since it's an ajax request... AND if i replace my POST refs by GET refs and call my file directly with ?id=xxx i get a blank page.. nothing on it!
 
You NEED to look at the server error logs
6 mins ago, by DaveRandom
Although if you are getting a 500 error, something is being logged somewhere
 
@Julo0sS you could check in the browsers developer tools, in the network tab, click the request and look at the response data. You should be able to see anything output in the "ajax request"
 
@DaveRandom i'm looking for the logs...
 
11:20 AM
@RonniSkansing but that's a lot harder than uploading a file and downloading a zip back :)
 
I have a question, how do I iterate on these? I tried foreach to do this but nothing shows up. Any ideas? these results came from the database using pdo.

        array(3) {
      [0]=>
      object(stdClass)#7 (2) {
        ["id"]=>
        string(1) "1"
        ["name"]=>
        string(28) "4ee269991861331957002e21.jpg"
      }
      [1]=>
      object(stdClass)#9 (2) {
        ["id"]=>
        string(1) "2"
        ["name"]=>
        string(36) "22769-interesting-cat-meme-rv31.jpeg"
      }
 
@DaveRandom Call to a member function rowCount() on null
 
Sure. @Wissem
 
@Carnal double foreach?
 
wait
 
11:24 AM
@Julo0sS
s/query/stmt/
 
@naruto Can you give me an example?

I tried doing this:

foreach($bgItems as $bgItems) {
    print_r($bgItems)
}
 
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1' in getGeoX.php:8
Stack trace:
#0 getGeoX.php(8): PDOStatement->execute()
#1 {main}
thrown in getGeoX.php on line 8
 
Wait, wut?
 
At line 1?
 
11:26 AM
@DaveRandom okay i got it
 
There isn't even any data on line 1...
(in my code...)
 
now your code works
it certainly had something to do with the PHP version... changes are only effective right now, i didnt see the messages before...
 
@Carnal You cannot call the thing you are iterating and the element the same thing, that makes no sense
Why do so many people do that?
 
^ I think it is the wild web tutorials fault
 
@DaveRandom Sorry about that, I forgot to remove s
 
11:28 AM
@Julo0sS Well short array syntax is only available in 5.4+... but did you restart the web server/fpm (if you are running that) after you made changes to php.ini?
 
It seems I cannot edit it anymore. lol
 
@Carnal What @Naruto was saying is something like this:
 
@Carnal something like?
foreach($array as $item){
foreach($item as $key => $value){
 
^ that
 
@DaveRandom yes all is done right now, but i'm hosted @one so i can't do the changes directly, i have to wait they take my edits in account
 
11:29 AM
lol
 
@DaveRandom the timing ;)
 
@Julo0sS Highly recommend that you set up a local development server. Trying to develop on a remote server where you don't have absolute control of the configuration is just making your life harder than it needs to be
 
@DaveRandom yes i know...
@DaveRandom game is not over yet! it would had been too easy heh! :P i have something else going wrong... but i think it's more for Javascript Chatroom
 
11:52 AM
@Naruto Okay, turns out its hard to manipulate objects. Is there anyway to convert this to an array?
Sorry kinda new to thios
 

« first day (1445 days earlier)      last day (3496 days later) »