PHP

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.

Group dedicated to the topic of PHP, the language of Drupal.

Welcome

Drupal is dependent on PHP. At this time PHP 5 is the industry standard, but with both the PHP 5.3 & 5.2 releases maintained at the same time there is are questions that pop up mainly with compatibility. This group helps bring PHP questions and their answers to light. Both PHP newbies and pros can get together here for the better of Drupal.

"PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section." -- Description taken from PHP.net

More about PHP can be found at: http://www.php.net


Drupal & PHP

  • Drupal 8 requires PHP 5.3 or greater.
  • Drupal 7 requires PHP 5.2.4 or greater.
  • Drupal 6 requires PHP 4.4 or greater. PHP 5.2 is recommended.
  • Drupal 5 requires PHP 4.3.5 or greater.

NOTE: Job postings are for members only. Membership is free. To view PHP/Drupal jobs, sign-up and join this group.

Latest Polls - Make Your Vote!

Chris Charlton's picture

Which version of PHP are you running Drupal on today? (Summer 2013)

PHP 5.5
5% (1 vote)
PHP 5.4
21% (4 votes)
PHP 5.3
68% (13 votes)
PHP 5.2
0% (0 votes)
Older or different versions of PHP
5% (1 vote)
Total votes: 19
kevinsers's picture

php is more secure than dotnet

yes
64% (14 votes)
no
36% (8 votes)
Total votes: 22

Recent Discussions

ADGTech's picture

We are hiring Junior to Mid level Drupal Developers

ADG Tech has some web based projects for the Federal Govt and are currently seeking Junior to mid level drupal developers.
Excellent Full Time Opportunity to learn and grow in the Drupal Field with practical real time experience.
We are interviewing candidates with at least one (1) year of Drupal OR PHP AND MySQL, Javascript experience.
** Candidates will be required to work onsite (Chantilly, VA)
Kindly respond directly with contact information to contact@adgtech.net

Read more
ADGTech's picture

Associate Drupal/PHP developers

ADG Tech needs Junior Drupal Developers to support its development team at Chantilly, VA.

Ideal candidate will be someone with atleast 1 year of experience in Drupal/PHP/MySQL and JavaScript.

If interested in this opportunity, Kindly respond : Contact@adgtech.net

Read more
ADGTech's picture

Seeking PHP/Drupal developers

ADG Tech has some Federal Projects and is looking for an associate PHP/Drupal developer to support our team at Chantilly, VA.

Should have some hands on experience with JavaScript,MySQL and JQuery.

Good Career opportunity ...www.adgtech.net
Kindly respond if interested.

Read more
freescholar's picture

Power To Connect with VoIP Drupal - Beta Launch!!!

The agaric team has launched the BETA version of PowerToConnect.com We are using VoIP Drupal to enable Event Organizers and participants to send and receive messages using a regular phone.

BoF (Birds of a feather) organizers can send text updates to interested people that have signed up, or attendees can call +1 617 648-5578 and enter the extension of the BoF to hear updates, or subscribe to a Bof and receive txt updates.

Come help us test it out by posting your BoF session, or subscribing to one for DrupalCon Austin!

Read more
spideep's picture

How to call a "mymodule" function outside drupal

I have my drupal directory here: www/ext/drupal/
I have made a index.php in : www/ext/index.php

I've made my module with these instructions:
http://www.bobbymods.com/faq/drupal-modules/how-do-i-add-my-own-php-func...

After that my ext/index.php looks like these:

<?php
$path = $_SERVER['DOCUMENT_ROOT'];
chdir($path."/drupal");
define('DRUPAL_ROOT', getcwd());
require_once './includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);

/call mymodule function/
myfunctionlibtwo("block");

Read more
josejayesh's picture

Creating a View From Refernce

I am using Drupal7 and I have 3 content types

Country

Country Name
Country Description

State

State Name
Country Name (Node Reference)
State Description

District

District Name
State Name (Node Reference)
District Description

Is there any way to create a view from District table using the filter (where clause) State Name and Country Name. Note that Country Name reference is not using in District Table.

Thanks
~Jayesh

Read more
m.david's picture

Questions about upgrading to 5.3

I'm getting ready to upgrade from PHP 5.2.17 to PHP 5.3 on a shared hosting server. I have sites running on both Drupal 6 and Drupal 7 on the server.

Is there anything I will need to change or update after upgrading to PHP 5.3?

Any gotchas I should watch out for?

I haven't been able to find any instructions or guidelines about this so thought I'd ask so I don't miss something.

Thanks!

Read more
msk2020ckp's picture

Bad internet connection error

I got (Bad internet connection, server error, browser problem, Please try again shortly.)" error in drupal6?

Read more
josejayesh's picture

Open Government Platform Running On drupal

India and the US jointly developed ‘Open Government Platform’ in New Delhi.

http://webcast.gov.in/ogpl/

Read more
Konstantin Boyandin's picture

PHP 5.3 compatibility

Hello,

Approximately a year ago I posted an entry where I was expressing concerns about PHP 5.2 end of life declared, while contributed modules for Drupal 6 were not yet PHP 5.3 compatible.

Now we see PHP 5.4 having been released, but when I tried to run a replica of some of my Drupal 6 sites under PHP 5.3.10, I still have problems due to deprecated API/function calls. I don't see major problems, the code seems working, but I would like to be absolutely sure code won't break on one of the next 5.3 versions (let alone 5.4).

Read more
josejayesh's picture

Migrating to Drupal from PHP/MYSQL

Guys,
I have a site that is running on php/MySQL, now I want to migrate it to drupal 7. Using this sites registered users can create the content on various categories, others can view the content. First phase I am planning to convert MySQL database into drupal’s MySQL database. If anybody is experienced in this kind of project please share the experience .

Thanks
~Jayesh

Read more
josejayesh's picture

expose drupal nodes (content), images, tags as web services

I want to expose drupal nodes (content), images, tags as web services and it can be consume by any client (.Net application or Perl Application).Also i want to update the comment from client side (comment can made by anonymous)

Please suggest which module is good for performing the task , i am considering
services
RESTful Web Services

Thanks
~Jayesh

Read more
tbreese's picture

Hey Drupalers!

For anyone who will be at DrupalCon Denver be sure to stop by Forum One Communications' booth, 113, and pick up a free t-shirt or sticker sheet. We're always looking for talented people, so come chat with us about career opportunities.

Visit: www.forumone.com/drupalcareers

Read more
freescholar's picture

Who is using VoIP Drupal?

So, we all know that VoIP Drupal facilitates the construction of Drupal sites that virtually pick-up the phone, make calls, record messages, send and receive text messages, run voice polls, and more.

I am using VoIP Drupal on a few of my sites and I am trying to figure out new ways to integrate it as part of my Web Development Services. I would like to offer a few ways for a client to integrate VoIP Drupal on their site as examples, and would love some feedback on how people are using VoIP Drupal...

  1. How did you find out about VoIP Drupal?
Read more
stevengm7's picture

Custom search results

Hi everyone

I have been messing with Drupal and other CMSs for a while (3+ years). But I chose Drupal and stack with it since then no matter how hard the learning curve was.
So far whenever I had issues either I figure it out or search Drupal.org site for any possible solutions time being sacrificed. But now I want to save time and be efficient expediting my projects getting direct help from all my groups. Most issues being discussed here are grabbing my attentions because they are very important that's why I joined so many groups.

Read more
digodrupal's picture

How to seach text from .txt file

i need this help on drupal.

i have a text file and file name is C:\wamp\www\mysite\sites\default\files\abc.txt. in this file is;

aaaaa bbb
ccccc ddd
eeeee fffff

if i type aaaa in the search box and hits enter means the output should come with the node containing the word aaaa and this this text document also.

This will be shown in search output

is there any module available for that?

thanks.

Read more
hariharasuthan_mk's picture

Is there any module like google translater in drupal 7

hi drupalers,

can anyone help me, google translater module in drupal 7
i do not need i18n module functionality

Read more
hariharasuthan_mk's picture

how to upgrade drupal 4 version to drupal 7

hi drupalers,
i need the help from u , i am in need to upgrade a site from drupal version 4 to latest drupal 7 version , how to do that , any idea if you have share with me, If there any other way through patches / modules

wishes in advance

Read more
umanda's picture

Search with in search by views module

Hi all;

I created a Advanced search system for my web site, using views module. I used exposed filters. Once I pass some argument as a key word it gives me correct result. but In my second time, if I use different key word , That result should be filtered by previous result. let me give example,

1st time -> If I say "heart" as my key word my result will be "heart" , "heart patient" , "heart attack" , like this

Read more
Lord Malka's picture

IF e Views

Gostaria de saber como faço para colocar uma View em um Footer de outra View que revelasse um tipo de conteúdo de acordo com o taxonomy/term/%

Mas porquê disso? Tenho dois tipos de conteúdo e um deles está programado para aparecer em taxonomy/term/% com uma formatação estilizada. A outra view tem outro tipo de conteúdo sem formatação estilizada, mas que é sorteada de acordo com um field chamado "tipo_inser". Esta segunda view tem que aparecer após a primeira na página de taxonomy/term/% (se ela tiver conteúdo dentro desta taxonomia).

Entenderam?

Grato,
Daniel Lemos

Read more
kavita_rs's picture

Trying to create dynamic fields in hook_install $schema database function

Hi there,

I am new to Drupal and trying to create a database with a dynamic number of fields depending on one of the field inputs. So, I have an input called "num" and then I want to ask for names for a "num" number of times. Here is what I wrote but it is not working. Any ideas?

/**
* Implementation of hook_schema()
*/
function add_family_schema() {
$schema['add_fam'] = array(
'description' => t('Stores the family information.'),
'fields' => array(
'num' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,

Read more
Subscribe with RSS Syndicate content

PHP

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: