Calling a url with parameters...hidden
Posted: Tue Sep 28, 2004 10:32 pm
This should be a relatively easy question to answer. I have a page that does some processing that I would like to call from a form action page. More specifically, I"m going to be uploading a log file and then parsing that log file to insert data into a database.
the page I'm using to parse the log files requires a url variable that I do NOT want my end users to see.
I was thinking of doing something along the lines of:
but I"m pretty sure that won't work (doing it as an include).
do I need to use fsockopen() to make this work the way I want it to? If so, can someone please provide me with some guidance as to the syntax to use with fsockopen().
thx for your time,
Burr
the page I'm using to parse the log files requires a url variable that I do NOT want my end users to see.
I was thinking of doing something along the lines of:
Code: Select all
<?php
if (isset($_FILES['attachfile']['tmp_name']) && !empty($_FILES['attachfile']['tmp_name']) && file_exists($_FILES['attachfile']['tmp_name']))
{
move_uploaded_file($_FILES["attachfile"]["tmp_name"],"tempupload/".$_FILES["attachfile"]["name"]);
}
include("myParserFile.php?hiddenvar1=bob&hiddenvar2=larry");
?>do I need to use fsockopen() to make this work the way I want it to? If so, can someone please provide me with some guidance as to the syntax to use with fsockopen().
thx for your time,
Burr