Untypical trying to get property of non-object...?

PHP
I have a problem with Laravel 5. I get a trying to get property of non-object error when I try to access an eloquent property in blade. But it...
2 years ago

how to send a variable from PHP to jQuery

PHP
The Idea is: <script type="text/javascript"> var supervar = 'u can reach me anywhere on the page'; </script> [...some PHP and HTML...] ...
2 years ago

PHP / Wordpress - add arrows to parent menus

PHP
is it possible to add some kind of class like 'arrow' or a span inside the menus that have submenus (in Wordpress)? it seems that you can do this is u...
2 years ago

Ajax JS/PHP Image Uploader not working

PHP
I tried multiple approaches and followed quite a lot questions in StkOvfl, and W3 Specifications, but still no idea. I have a form input: <input ...
2 years ago

Convert time in HH:MM:SS format to seconds only?

PHP
How to turn time in format HH:MM:SS into a flat seconds number? P.S. Time could be sometimes in format MM:SS only. ...
2 years ago

Call to a member function fill() on null

PHP
I want to do an update keeping the following information: $radicado = \App\Radicado::find($id); $radicado->fill($request->all()); ...
2 years ago

FOSRestBundle: How to Avoid Automatic Pluralization of POST /login Route?

PHP
I have this Action to handle the user login also via REST api call: /** * Login Action * * @param Request $request */ public function postLoginAc...
2 years ago

Conditional RgEx with PHP preg_match_all

PHP
Just have to select Conditional Regex. Here is what i have problem.... I just want to select time string 02:00 but not with quotation marks like "02...
2 years ago

Filter concat:out:v0 has a unconnected output | Concatenating with php-ffmpeg

PHP
I'm incorporating PHP-FFMpeg to my symfony3 project which is working perfectly. However recently I've been needing to concatenate two videos into one,...
2 years ago

How can I remove cURL error in GAE google appengine

PHP
I'm facing this error in php file Fatal error: Call to undefined function curl_init() when I upload my file on Google appengine gae then I get this er...
2 years ago

Implement a multiple column table using foreach loop

PHP
I want to implement a logic for creating a three column table using foreach loop. A sample code will look like this. $array = ['0','1','2','3','4','...
2 years ago

short_open_tag setting ignored by PHPUnit

PHP
My PHPUnit tests keep failing when trying to tests any .php files in my (legacy code) application that begin with the short open tag (<? instead of...
2 years ago

Passing token as GET variable

PHP
I have a Token class and method for getting and checking tokens. If I spit out a new token as part of a link: <td><a href="users.php?delete...
2 years ago

Change the login/register URL in Laravel 5.2

PHP
I'm currently writing an application which only has accounts for staff of the company, not regular website visitors. As such, I would like to keep my...
2 years ago

Add a custom page with form in wordpress using plugin for frontend user

PHP
hi I am very new to wordpress plugin development, I created a plugin that is adding a Sidemenu to show jquery dialog, Now I'm trying to show a form i...
2 years ago

How to link this javascript and php?

PHP
I was wondering if someone could point me in the right direction on how to do this. As you can see here: https://jsfiddle.net/caute6y0/ I have a grid...
2 years ago

enable cors in .htaccess

PHP
I have created a basic RESTful service with the SLIM PHP framework and now I'm trying to wire it up so that I can access the service from an Angular.j...
2 years ago

PHP Array always has parent 0 Array

PHP
I Have an array in PHP. For some reason that I can't figure out It always has a parent array of the key [0]. I'm not sure why This is happening. I hav...
2 years ago

insert multiple fields using foreach loop

PHP
I have a problem when I want to insert multiple fields into one table. Here's my form: <h1>Add user</h1> <form method="post" action=...
2 years ago

how do i display all records of a field using php in a mysql database

PHP
So i want to get all records of a specific field in a table using mysql database so far i tried this but it only echos the first ever record in that ...
2 years ago