Topic: register_argc_argv (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=28181" title="Pages that link to Topic: register_argc_argv (Page 1 of 1)" rel="nofollow" >Topic: register_argc_argv <span class="small">(Page 1 of 1)</span>\

 
H][RO
Paranoid (IV) Inmate

From: Australia
Insane since: Oct 2002

IP logged posted posted 07-07-2006 08:03 Edit Quote

Anyone know exactly what this setting is for register_argc_argv

Its a php setting, something to do with argc and argv being set. Does this have anything to do with your normal GET, POST variables?

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

IP logged posted posted 07-07-2006 09:00 Edit Quote

argC and argV are the count and contents of the variables passed via the command line to a (c-)program.

I guess they're only really usefull if you're running php from the command line,
otherwise they should either be containing the script to execute (if you're running your php as a cgi),
or empty ( if you are running as mod_php).

so long,

->Tyberius Prime

H][RO
Paranoid (IV) Inmate

From: Australia
Insane since: Oct 2002

IP logged posted posted 07-07-2006 09:09 Edit Quote

Currently my host is running php as cgi

Is it okay if i set register_argc_argv to off then?


If they changed back to mod_php can i turn them off?


As far as i know im not passing any variables to a command line c program



Should i just leave them on?

H][RO
Paranoid (IV) Inmate

From: Australia
Insane since: Oct 2002

IP logged posted posted 07-07-2006 09:11 Edit Quote

Just to clarify:


So they are only useful if i say write a custom program/module for php that i need to execute from within a php script? My only concern is if normaly php modules need this set to on?

I can leave it on, just trying to sort it all out

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

IP logged posted posted 07-07-2006 16:39 Edit Quote

Let's approach this the other way - why do you want to disable it?

H][RO
Paranoid (IV) Inmate

From: Australia
Insane since: Oct 2002

IP logged posted posted 07-07-2006 17:58 Edit Quote

Okay, well im just going through all the settings and i guess disabling some things for security reasons, and some things that dont need to be enabled, or you would normally disable. So ive disabled register globals, all the magic quotes etc.



If it doesnt fit any of those categories i dont mind leaving it, just finding it hard to find information on what it actually does. Mostly likely because i haven't used anything that uses it myself (that i know of).



Because of what its called i thought it may fall in the same boat as register globals

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

IP logged posted posted 07-08-2006 00:52 Edit Quote

I just happened to be reading a php.ini file yesterday and it says in the comments that if your not actually useing the args you should turn them off.

quote:

If you don't use these variables, you should turn it off for increased performance.



- Butcher -

H][RO
Paranoid (IV) Inmate

From: Australia
Insane since: Oct 2002

IP logged posted posted 07-08-2006 03:54 Edit Quote

Thanks butcher, i spose you would know if you are using them so ill turn them off for now.




On another note....
any idea why using imagecreatefromjpeg would cause an internal server error. It works fine for small images but when i try a large file say 17mb, it gives a 500 error

My host is trying to figure it out, they got it working again yesterday when they put it back in php_module mode, but now they are back in cgi mode and the problem is back.


Who would have thought it would be so difficult to setup the server to upload 30mb images!

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

IP logged posted posted 07-08-2006 13:59 Edit Quote

Most likely because it exceeds phps memory limit. I have expierenced webservers that would just bomb out with a 500 instead of saying 'memory limit exceeded'.


argC and argV are only useful if you are running command line php programs, and as far as I understand the description, they're so that your code can use whatever was passed on the command line.

So they are not necessary in a webserver context - the 'perfomance improvement' of not coping an int and a rathor short string are neglicable though.

H][RO
Paranoid (IV) Inmate

From: Australia
Insane since: Oct 2002

IP logged posted posted 07-12-2006 09:22 Edit Quote

Well i talked to my host and they said the limit is being imposed beacuse they are using phpsuexec, any ideas if it is possible to upload large files with phpsuexec running?

They said they have tried many workarounds but nothing worked.

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

IP logged posted posted 07-12-2006 15:41 Edit Quote

H][RO

I don't know if any of it will work with phpsuexec running but there's some decent code snippets on the imagecreatefromjpeg() page in the user notes for either dynamically uping the memory the script is allowed or at least checking the amount of memory you'll need to process them image and then you can decide to go ahead with it or not.

- Butcher -

H][RO
Paranoid (IV) Inmate

From: Australia
Insane since: Oct 2002

IP logged posted posted 07-12-2006 17:56 Edit Quote

Yeh ive checked them out, none of it works because the php isnt compiled with memory-limit, im not sure if its to do with the zend optimizer. Can you have zend going and compile php with memory limit i wonder.

At this stage it isnt the biggest issue, i can do roughly 15mb files which is okay for now.


Now the problem is converting tiff to jpeg, its annoying that GD doesnt do tiffs! Trying to get imagemagick and magickwand installed but it looks like phpsusuexec is causing problems there too.

Looks like alot of stuff isnt working in CGI mode in general

Is php CGI mode a fairly new concept that is just taking off or something?



Post Reply
 
Your User Name:
Your Password:
Login Options: Remember Me On This Computer
 
Your Text:
Loading...
Options: Show Signature
Enable Slimies
Enable Linkwords

« BackwardsOnwards »

Show Forum Drop Down Menu