This goes along with my previous question
I don't see a php function to make a file
I am trying to use an online form to create
an addweb profile.ini file to in turn be
emailed to my customer service dept. so
they can save the file into the addweb batch
directory for an import and autorun thus
saving the time of re-typing all of the form
information.
when my form gets filled out I need to be able to
create a new file, write text to it from the variables
and then email it to a CSR
any ideas on where to start with this are greatly appreciated.
Thanks,
Jerry Lake - [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
-----Original Message-----
From: Jerry Lake [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 12:36 PM
To: [EMAIL PROTECTED]
Subject: [PHP] write form data to a text file
How can I write the form data a user fills out
and send it to a text file?
Jerry Lake - [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
-----Original Message-----
From: Jordan Elver [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 12:13 PM
To: Pierre-Yves Lemaire
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Getting path of script
Hi,
Thanks for all the suggestions.
I worked out a fix in the meantime:
$path = strstr(strrev($SCRIPT_FILENAME), '/');
echo strrev($path);
Cheers,
Jord
On Tuesday 13 March 2001 12:35, you wrote:
> check out,
> dirname() // Returns directory name component of path
>
> py
>
> ----- Original Message -----
> From: Hardy Merrill <[EMAIL PROTECTED]>
> To: Jordan Elver <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 13, 2001 5:21 PM
> Subject: Re: [PHP] Getting path of script
>
> > How 'bout using a Perl regex with $HTTP_SERVER_VARS["SCRIPT_NAME"]
> > like this:
> >
> > echo "Starting with SCRIPT_NAME=[" . $HTTP_SERVER_VARS["SCRIPT_NAME"]
> > .
>
> "]<BR>";
>
> > if (preg_match("/(\S+)\/\S+$/", $HTTP_SERVER_VARS["SCRIPT_NAME"],
>
> $matches)) {
>
> > echo "Found $matches[1]<br>";
> > }
> >
> > HTH.
> >
> > --
> > Hardy Merrill
> > Mission Critical Linux, Inc.
> > http://www.missioncriticallinux.com
> >
> > Jordan Elver [[EMAIL PROTECTED]] wrote:
> > > Hi,
> > > I want to get the path of a script. I know about
> > > HTTP_SERVER_VARS["SCRIPT_FILENAME"] this returns someting like:
> > >
> > > /phpcode/misc/phpinfo.php
> > >
> > > But I want to strip off the file name and just have the directory
path,
>
> like:
> > > /phpcode/misc/
> > >
> > > Any ideas?
> > >
> > > Jord
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
> > > [EMAIL PROTECTED]
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]