Category "php"

Get keys from associative array [duplicate]

I have this array: Array ( [7] => 12 [5] => 11 [4] => 11 [2] => 9 [8] => 7 [1] => 6 [3] => 6 [6] => 5 [23] => 3 [3

Get keys from associative array [duplicate]

I have this array: Array ( [7] => 12 [5] => 11 [4] => 11 [2] => 9 [8] => 7 [1] => 6 [3] => 6 [6] => 5 [23] => 3 [3

How to solve cURL error 60: SSL certificate in Laravel 5 while Facebook authentication

Currently, I am doing a project on laravel5. I use socialize for Facebook authentication,But I got cURL error Mentioned below. RequestException in CurlFactor

How avoid Moved Permanently The document has moved here

I'm in a site and I would call an API that is in another site. So I build a curl $url = ........ $curl_data = array('name'=>$name); $ch = curl_init(); cur

How to get the ID of the link in another page in php

I like to catch the id of below tag in show.php file once the link is clicked... I have already got the href name in show.php <?php if (isset($_GET['subm

how to pass row id in href of a tag in codeigniter controller?

I am using jqxgrid in codeigniter to display records from mysql database. while displaying the data, I made a column named 'action' that contains edit a tag to

php code to send checkbox form results to email

Would really appreciate some help for a php novice! HTML form has the following checkbox list: <input type="checkbox" name="servicetype[]" value="Optio

Create tags in laravel post publishing

Currently when I want to add tags in my posts I have to go to my tags page and create them then go to my post create page and add them to my post by multiple in

How can I access an array/object?

I have the following array and when I do print_r(array_values($get_user));, I get: Array ( [0] => 10499478683521864 [1] => 07/22/1983

Laravel 5 session not persisting after user is logged in

I'm having an interesting issue with Laravel 5. After logging in a user, the logged in status is not persisted across pages. Clearly it has something to do wit

retrieve data from database using session

Hi I had read topics here and tried doing it in different ways but my problem still not solved. I tried storing session and use it to retrieve data again from t

Possible bug with getTransitions in PHP 8.1?

I know a lot of date-related bugs have been fixed in PHP 8.1, but it may have introduced new ones... Take this code: $time_zone_id = 'America/Vancouver'; $timeZ

Woocommerce Edit Message "An account is already registered with your email address. Please log in."

I am looking to overwrite this message via functions.php through a child's theme. I have seen some examples through here and here. I would prefer using a filte

Only on Firefox "Loading failed for the <script> with source"

I want to integrate Marketo form with my existing website on yii framework. My code works on all the browsers except Firefox. Excerpt from my code: $('#bu

PHP - How to protect the URL after logging in from copy paste

I have created a login script and the user, after entering his username and password, is redirected to the main page of the site named main.php, if of course en

Composer Warning: openssl extension is missing. How to enable in WAMP

Trying to install Composer dependency management tool on Win7/64 + WampServer 2.2 via the Setup Installer and I am getting the following message: The openss

Find out the name of the last script that included the current one

Let's say I have 3 scripts, the main/top one which includes second which in turn includes a third. Let me draw that so it be clear. [top level script] -> [se

str_word_count() function doesn't display Arabic language properly

I've made the next function to return a specific number of words from a text: function brief_text($text, $num_words = 50) { $words = str_word_count($text,

Convert date and time to Jalali in Laravel

I want to change the time and date calendar to Jalali (Shamsi calendar used in Iran) in my system. How can I do this? "language_title" => "English",

Jquery DataTables: Data not displaying in table via Ajax

My problem is that Jquery DataTables is hanging at Loading and will not display any data from the php script: Here is my HTML: <!-- Default box --> &l