I need to figure out a method using PHP to chunk the 1’s and 0’s into sections. 1001 would look like: array(100,1) 1001110110010011 would look like: array(100,1,1,10,1,100,100,1,1) It gets …
Tag: php
Laravel morph table with morph field id size larger than one
I have a personal access token table with the following structure: public function up() { Schema::create(‘personal_access_tokens’, function (Blueprint $table) { $table->bigIncrements(‘…
Zoom API – Request to check email does not work
I am trying to consume Zoom’s API using PHP and Oauth2. I was able to connect to the aplication and get the token using the generic lib oauth2-client. But, when I try to make a simple request, I get an error, saying that the email is missing. This is my code: As you can see, I am passing the email
codeigniter oc_ prefex database problem in server
i have created a website in codeignter, the website is working fine my local, i uploaded it to my server, then its showing the following error: Table ‘kirana_btp_new.oc_ci_sessions’ doesn’t exist …
Laravel page redirection issue
Hi I am laravel beginner and having problem during page navigation. http://localhost/mylaravel/public/index In index page I have few items and below href to see the details of that item based on …
update batch in codeigniter
I have data on db_temporary here I will update based on id_service, but why doesn’t the update work? public function updateUpload() { $db = $this->M_order->db_temporary_service(); //…
ErrorException (E_NOTICE) Array to string conversion in Laravel
I am presenting this error: ErrorException (E_NOTICE) Array to string conversion This is the view from where I am sending the data from the inputs.
@foreach ($candidates as $…
Laravel Validation Request, how to handle validation on update?
First of all I love the way that validation is going through, can now easily use public function authorize(Authenticator $auth) { return $auth->user()->hasRole(‘administrator’); } hat’s …
Laravel malformed UTF-8 characters, possibly incorrectly encoded using image intervention
I have a laravel project that has a image upload. I used image intervention library for uploading. The problem is i got a 500 error and saying Malformed UTF-8 characters, possibly incorrectly encoded. …
Jquery click event doesn’t works with multiple buttons
I’m fetching deliveries from Mysql with PHP and When the user clicks on the Accept button I want to show a form and if the user click Revision I want to show another form. I know how to this. The …