changes to php.ini

Status
Not open for further replies.

londonturu

New Member
Messages
2
Reaction score
0
Points
0
Hi i your free hosting is awesome !!!

I'm trying to upload a singapore php gallery.

I need to have a session.save_path and Transparent session id support(use_trans_sid) enabled.

i tried to modified it via .htaccess but it didn't work, any chance you could modified these settings for my site.

thanks,

Andrés
 
Last edited:

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Try in the top of your scripts

PHP:
<php

php_ini("session.save_path", value);

?>

Were value is like on, off, or w/e

that should work if not php_ini its set right.
 
Last edited:

londonturu

New Member
Messages
2
Reaction score
0
Points
0
hi blong4life,

It worked fine!!! I have 2 doubts:

Suppose I have several .php files, for example index.php and form1.php

1)Is it ok if I only modify index.php that is the entry point to my site and an instance where every browser visiting my site will go through or i have to use php_set in all files?

2) do you know which the setting to modify the maximum file uploading size? I think I can change with this method as well? or not?

thanks,

Andres
 

DizzyTechnology

New Member
Messages
500
Reaction score
0
Points
0
Actually, you can put a php.ini in your public_html directory and it parses that. I used to utilize it when register_globals was on so I could turn them off... Joomla went wacky without it.
 

jaygreentree

Member
Messages
148
Reaction score
1
Points
16
DizzyTechnology said:
Actually, you can put a php.ini in your public_html directory and it parses that. I used to utilize it when register_globals was on so I could turn them off... Joomla went wacky without it.
Sorry but I don't recomend doing this because of security of the server. Having your own php.ini could cause problems for everyone else.
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
londonturu said:
hi blong4life,

It worked fine!!! I have 2 doubts:

Suppose I have several .php files, for example index.php and form1.php

1)Is it ok if I only modify index.php that is the entry point to my site and an instance where every browser visiting my site will go through or i have to use php_set in all files?

2) do you know which the setting to modify the maximum file uploading size? I think I can change with this method as well? or not?

thanks,

Andres

That has to go on each page

and file upload would be

PHP:
<?php

php_ini("post_max_size", value);  // For the max size for posting something
php_ini("upload_max_filesize", value);  //Max upload size

?>

That should be it....you can change almost everything in a php_ini file here...my recomendation is to do this

1. Make a file called php.ini.php

2. Include it FIRST on every page like
PHP:
<?php include("php.ini.php") ?>

That should do it.
 
Status
Not open for further replies.
Top