How can I change my.ini and php.ini values?

Status
Not open for further replies.

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
You don't have access to them; they're global on the server. You can temporarily change some values using PHP's ini_set(), which will make PHP act as if the value you set was set in the php.ini while the script is running.

That's true with most shared hosting, by the way, not just Free Hosting here. If you need to control mysql.ini and php.ini, you need a private or virtual private server.
 

jmasirx1

New Member
Messages
9
Reaction score
0
Points
1
So there's no way to change it... Ok... I always got the same message from nixiweb's mysql server (has gone away) and I thought here in x10hosting I could change values like "max_allowed_packet size"
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
Hi, you're able to adjust some PHP configuration directives via cPanel's X3 theme. Please see this help center article: http://x10hosting.com/support/guides/php-configuration-tutorial

It is not possible to adjust my.ini options - but you shouldn't be getting errors regarding the server having gone away, unless you're relying on connections remaining open for very significant periods of time (30+ minutes). Can you elaborate a bit on what type of script you're running and how it is interacting with MySQL?
 

jmasirx1

New Member
Messages
9
Reaction score
0
Points
1
Thanks for your help but I need first to access to my website but I can't. This error is:

"Fatal error: Call-time pass-by-reference has been removed in /home/jmasirx1/public_html/Drupal/sites/all/modules/deletlibros/deletlibros.module on line 51"...

I worked with PHP 5.3 to create this custom module but x10hosting works with 5.4 and 5.5. The problem is:

If I change the "&" symbol before "$variable" my module doesn't work. There's a way to keep my module working without remove "&"?

Here's a fragment of my module:

"

// ATENCION!
// Tener en cuenta que usaremos una tabla "libro" dentro de la misma base de datos de Drupal

// Creamos el enlace para acceder al formulario

function deletlibros_menu() {

$items['eliminar_libro'] = array(
'title' => t('Eliminar libro existente'),
'page callback' => 'my_module_form_delete',
'access arguments' => array('Administrar configuracion DELETE'),
'description' => t('Eliminar libro existente'),
'type' => MENU_CALLBACK,
);
return $items;
}

// Para administrar permisos

function deletlibros_permission() {
return array(
'Permisos' => array(
'title' => 'Administrar configuracion DELETE',
'restrict access' => true,
)
);
}

// Enlace al primer formulario

function my_module_form_delete() {
return drupal_get_form('my_module_my_form3');
}

// Primer formulario

function my_module_my_form3($form, &$form_state) { <----- Here's the error (without &$form_state doesn't work)

$isbn_get = $_GET['isbn'];

drupal_set_message("Introduzca un ISBN valido, de lo contrario no se mostraran datos para editar.", 'status');
drupal_set_message("Puede ver la lista de los libros con sus ISBN respectivos <a href='http://jmasir.tk/Drupal/todosloslibros'>aquí</a>.", 'status');

if (isset($form_state['storage']['page_two'])) {
return my_module_my_form3_page_two($form, &$form_state);
}

"
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
The actual error is not in the line you've indicated, it's in the "return" line. The ampersand there is a call-time pass-by-reference; on the indicated line, it's part of a function definition (which is allowed).
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
Remove the ampersand from the function call in your return line. It's okay to declare that you're going to pass by reference in a function definition (when setting the formal parameters), but you're not allowed to pass a reference in when you call a function (when stating the arguments).
 
Status
Not open for further replies.
Top