php

PHP is a widely used, high-level, dynamic, object-oriented and interpreted scripting language primarily designed for server-side web development.

48 votes
6 answers
2.4K views
What is Drupal's default password encryption method?

I am trying to figure out what is the security that Drupal 6/7 uses by default to store passwords. Is it MD5,

avatar
Rudolf
0 1 0 9
asked 07 September, 2021
50 votes
9 answers
1.2K views
How to get the full URL of a Drupal page?

I need to be grabbing the URL of the current page in a Drupal site. It doesn't matter what content type i

avatar
Arline
0 1 0 9
asked 07 September, 2021
64 votes
8 answers
2.4K views
How to output (to a log) a multi-level array in a format that is human-readable?

I'm working on a drupal site and when debugging, I am always having to read through long, nested arrays.

avatar
Dorinda
0 1 0 9
asked 07 September, 2021
57 votes
30 answers
1.2K views
How to convert array to SimpleXML

How can I convert an array to a SimpleXML object in PHP?

avatar
Carmelina
0 1 0 9
asked 07 September, 2021
64 votes
3 answers
1.6K views
Implementing an RESTful API Authentication using tokens (Yii/Yii2)

I am building an API in Yii 1.x which will be used with a mobile application. Part of the process involves a l

avatar
Hallie
0 1 0 9
asked 07 September, 2021
55 votes
3 answers
1.7K views
Emberjs, server side vs client side, All in?

I have been looking into Ember.js, and it looks really great, but one thing that concerns me, and that I can&a

avatar
Tuan
0 1 0 9
asked 07 September, 2021
59 votes
4 answers
840 views
Yii: Multi-language website - best practices

I find Yii great framework, and the example website created with yiic shell is a good point to start... howeve

avatar
Serina
0 1 0 9
asked 07 September, 2021
61 votes
3 answers
2.7K views
What is the difference between homeUrl and baseUrl in Yii framework?

What is the difference between homeUrl and baseUrl in Yii framework?

avatar
Emilia
0 1 0 9
asked 07 September, 2021
59 votes
2 answers
834 views
Yii: Render action using different layout than controller's layout

In Yii, is there a way to render a single action using a different layout than that defined for the controller

avatar
Dorinda
0 1 0 9
asked 07 September, 2021
61 votes
2 answers
1.8K views
Yii multi page form wizard best practice

I am trying to build a multi-page form with Yii, but am quite new to PHP and Yii and am wondering what the bes

avatar
Don
0 1 0 9
asked 07 September, 2021
62 votes
2 answers
1.6K views
Yii2 global filter/behavior to force user to authenticate first

In my Yii2 application I'm trying to force all users to be authenticated. If they're not already aut

avatar
Dwain
0 1 0 9
asked 07 September, 2021
52 votes
5 answers
2.2K views
How to do IS NULL and IS NOT NULL with Yii 2 ActiveRecord?

I have a table which has a field `activated_at` timestamp NULL DEFAULT NULL, which means that it can contain a

avatar
Don
0 1 0 9
asked 07 September, 2021
55 votes
7 answers
2.1K views
Securing php api to use in android application

I am newbie to android development. I am using android studio for developing an application. Things i have don

avatar
Eddie
0 1 0 9
asked 07 September, 2021
53 votes
5 answers
3.1K views
Create button with link in Yii2

I am trying to setup a button with a link to a view. However yii\bootstrap\Button does not have a property url

avatar
Tana
0 1 0 9
asked 07 September, 2021
51 votes
2 answers
1.7K views
Yii2 how does search() in SearchModel work?

Please can someone explain how the search method in a Yii2 SearchModel works? I generated it using Gii. Here i

avatar
Keith
0 1 0 9
asked 07 September, 2021
57 votes
4 answers
1.8K views
Yii 2.0 How to generate form without <div class="form-group">?

<?php $form = ActiveForm::begin(['id' => 'contact-form']); ?> <?= $for

avatar
Scot
0 1 0 9
asked 07 September, 2021
54 votes
8 answers
953 views
Basic Hidden field in yii

I'm trying to place data in hidden text in yii, but I don't know how. I need a similar code to a re

avatar
Dwain
0 1 0 9
asked 07 September, 2021
62 votes
8 answers
3.1K views
Stupid error: Failed to load resource: net::ERR_CACHE_MISS

I'm developing Web app in Yii framework. I need use AJAX in my some pages. So, when I clicked the button

avatar
Fabian
0 1 0 9
asked 07 September, 2021
52 votes
7 answers
2.8K views
How to return just file name using glob() in php

How can I just return the file name. $image is printing absolute path name? <?php $directory = Yii::getPat

avatar
Robt
0 1 0 9
asked 07 September, 2021
51 votes
4 answers
1.6K views
Why use CJSON encode when we have json_encode

I am building an API for a website using Yii. I know that there is a utility class called CJson and has a func

avatar
Wilfredo
0 1 0 9
asked 07 September, 2021