You are here: Re: Run CGI in php « PHP Programming Language « IT news, forums, messages
Re: Run CGI in php

Posted by Eddie on 09/13/06 18:34

On 13 Sep 2006 10:16:15 -0700, elgoomff wrote...
>
>Hello !
>
>Due to a limitation of PHP from my host (2mo on upload) I need to run a
>cgi script to upload a file larger than 2MB ( PSUpload
>http://www.perlservices.net/en/programs/psupload/index.shtml )
>
>This script work good but i need to fill others information about the
>file in mysql database with this upload form.
>
>PHP_INI is locked by my host so i can't change MAX_FILE_SIZE with
>ini_set function...
>.
>So, did anyone know how to execute this CGI perl script in php so i
>could process mysql insert of the information and the file upload in
>one unique php script ?
>
>Thanks to all !
>
>Goomff
>

You can usually run shell commands using "shell_exec()" or "system()". One
method returns complete output as a string while the other just outputs it.

If you need to manage form data in your Perl program, you might need to find a
creative way of jumping from one program to another or maybe considering
converting the exiting program to Perl is the MAX_FILE_SIZE is going to create
that much extra work for you.

Eddie
--
Help a Community by Participating in Ours
We donate your subscription fees to the charity you choose
100% of your first month, 10% thereafter.
http://newsguy.com/charity.asp

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация