ramkarthik
-
Posts
9 -
Joined
-
Last visited
Never
Posts posted by ramkarthik
-
-
$fileName = "test.html"; $filepath = $_SERVER['DOCUMENT_ROOT'] . "\\testfolder\\" . $fileName . ".html";
Your adding a second 'file extension' ... Try removing that.
I have removed the second file extension also, but i am getting "can't open the file" error.
-
May I ask why you're wanting to dynamically generate files? Usually when this question is asked, it's being attempted for all the wrong reasons . . .
I have PHP form, after entering all the details in that form, have a submit button. when clicking the submit button it will create a html file..
-
That code work's fine by me?
The file is creating on the server root directory.... But I was not able to create on a particular folder....
Thanks in advance
-
Hi,
I want to create a .html file dynamically on the server. Below is the code for that but i was not able to create the file. I have given all the read, write and execute permission on the folder.
$filerand = rand();
$fileName = "test.html";
$filepath = $_SERVER['DOCUMENT_ROOT'] . "\\testfolder\\" . $fileName . ".html";
echo $filepath;
$bodytxt = "Welcome to my webpage";
$ourFileHandle = fopen($filepath, 'w') or die("can't open file");
fwrite($ourFileHandle, $bodytxt);
fclose($ourFileHandle);
Thanks in advance
-
Obviously your clinet picked the wrong person to ask then.
Without understanding your clients exacting requirements, every option would just be opinion.
I suggest you let this one go to someone with a little more experience.
Obviously you picked the wrong post to reply
Without understanding my requirements, every opinion of yours would be irrelevant.
/* I suggest you let this one go to someone with a little more experience */
-
Hi Neil,
Thank you for the information, I will look into it.
-
I need the solution for this..
I am not sure which is the best solution or the combination of open source applications to use.
-
Hi,
I am new to the forum as well as PHP, one of my client is asking that, he wants a rental site not built from scratch but using an existing CMS to work with rentjuice.com API and he wants a CRM with it.
Thanks in advance
Karthik
Create a html file dynamically
in PHP Coding Help
Posted
I have given some other name also like "mailbackup", still i am getting the same error.