13:59 Mon Sep  3, 2007
Cheap Hummer!

12:18 Tue Jul  4, 2006
Hummer Camp After

12:15 Tue Jul  4, 2006
Hummer Camp

Help Me Humpa
PHP and MMS Server Help
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


php.ini file...

 
Post new topic   Reply to topic    Help Me Humpa Forum Index -> Anything PHP
View previous topic :: View next topic  
Author Message
Phree



Joined: 31 Dec 2005
Posts: 254
Location: South Coast, UK

PostPosted: Mon Jan 16, 2006 6:56 pm    Post subject: php.ini file... Reply with quote

Humpa,

here's one for you! As you may remember, I couldn't get the edit facility to work within my copy of your mms scripts due to not being able to use exec, system or passthru.

I have been onto my webhosts to see if they could help and they have said to create my own php.ini file to sort the problem locally. I'm obviously very pleased with this, but I'm a bit unsure what to do next. I have downloaded the full php.ini from php.net and had a look thru it. I have run a phpinfo.php on my server and part of it reads thus:

Code:

disable_functions exec,shell_exec,system,passthru,readfile,escapeshellarg.........


and I have also read up a bit and found this interesting quote:

Quote:

Note: you cannot use your configuration file to extend the Web server's PHP settings. Only settings in your own php.ini will be used if you have one. If you set only a few settings, all other settings will use the hard-coded values in the PHP interpreter.


So (to finally get to the point)...Does this mean I can create a new php.ini file, place it in the folder of my mms installation and just have one line that says:

Code:

disable_functions shell_exec,system,passthru,readfile,escapeshellarg.........


i.e. Take out exec

and this will work? All other php.ini config will be taken from the main installation of php.ini on my server?

Hope this all makes sense and you can "Help me Humpa" Very Happy
Neil.
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Mon Jan 16, 2006 7:13 pm    Post subject: Reply with quote

That's what it sounds like.
Can you put the php.ini in any directory? It doesn't have to be in your public_html directory or somesuch?

Also, you have to use "enable_functions = exec" - otherwise it will be disabled still.
Back to top
View user's profile Send private message
Phree



Joined: 31 Dec 2005
Posts: 254
Location: South Coast, UK

PostPosted: Mon Jan 16, 2006 7:19 pm    Post subject: Reply with quote

Cool Cool

I'll put it in the public_html folder and see if everything works as it should. I have a test install of your scripts on another server so I will see if that works first before putting it over to my main install...

Will let you know how it goes.

Thanks a lot Humpa, you rock! guitar
Back to top
View user's profile Send private message
Phree



Joined: 31 Dec 2005
Posts: 254
Location: South Coast, UK

PostPosted: Tue Jan 17, 2006 1:46 pm    Post subject: Reply with quote

Ah well Sad

Tried putting it in the public_html folder - still didn't work. Then the main mms folder - still nothing...Then finally the mms/delete folder and still nothing. I think I raed the server needs rebooting before it will work - but the hosting company won't do that for me Sad Pain in the ass!

I think I'll just forget using the Imagemagick facility altogether Sad
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Tue Jan 17, 2006 2:03 pm    Post subject: Reply with quote

Phree wrote:
Ah well Sad

Tried putting it in the public_html folder - still didn't work. Then the main mms folder - still nothing...Then finally the mms/delete folder and still nothing. I think I raed the server needs rebooting before it will work - but the hosting company won't do that for me Sad Pain in the ass!

I think I'll just forget using the Imagemagick facility altogether Sad

I can't use it either. Sad
gate.com doesn't have image magick installed, and I don't have ssh access
Back to top
View user's profile Send private message
Phree



Joined: 31 Dec 2005
Posts: 254
Location: South Coast, UK

PostPosted: Tue Jan 17, 2006 7:51 pm    Post subject: Reply with quote

Sad For both of us!

I put a post up in another php forum explaining the problem and I got this reply:

Quote:

Typically, if not all, web hosting companies turn off shell accounts and shell script execution from any program.

The only way around this, is if you can figure away to achive your goal with a cron job and your provider allows you to run cron jobs, you may can just ask them to turn it on for you.


Does that make sense to you? It sure doesn't to me! I can run CRON jobs, but don't know quite what I would want to run...
Back to top
View user's profile Send private message
Humpa
Site Admin


Joined: 06 Nov 2005
Posts: 10258

PostPosted: Tue Jan 17, 2006 10:23 pm    Post subject: Reply with quote

I thought you said your webhost was the one to tell you to use a php.ini in your directory.

Have you asked them why it isn't working? I wouldn't think this is something that would work by default, at least I've never been able to do it with any of my webhosts.
Back to top
View user's profile Send private message
Phree



Joined: 31 Dec 2005
Posts: 254
Location: South Coast, UK

PostPosted: Tue Jan 17, 2006 10:29 pm    Post subject: Reply with quote

Yep, it was my webhosts that told me to use the php.ini. I think the guy I referred to in my last post didn't really understand what I was trying to do. I haven't been back in touch with my webhosts as yet, but I'm planning on doing so sometime today if I still can't get it working.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Help Me Humpa Forum Index -> Anything PHP All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum