Create A New Html File
how to open and edit or add a file but ,I don't know how to create a new ".html" or ".txt" file? I have STFW and STFM but still maybe i'm blind.
View Complete Forum Thread with Replies
Related Forum Messages:
Script To Create Html File
I'm looking for a php script that will look in my images folder and for each image in there, create an html file named <imagename>.html and store it in a folder called "pages". I currently use the code inserted below that scans my image folder, creates an xml file that contains a list of the images and the my Flash image gallery reads the xml file to create the gallery. but I would rather do it by the method I'm requesting above and get away from flash. Any ideas? Even if there's a way to modify the code below to do what I want, that would be great. Code:
View Replies !
Create A New .html File On My Server...
i have some data in a variable ($message) that is being emailed with the php's mail() function (an html email actually)...i'd like to also take that html data in the $message variable and have my script also make a new .html (with any random name) file on my server with that $message data, any easy way to do that?
View Replies !
Create HTML Page
I would like to make a form that once you insert data into the form,it ll automatically create a html format of the data you entered in a html and save it in a folder! How do i go by doing this?
View Replies !
Create Html Table
tryin to get a table to add a new td /td for every result from the Db. but can't for life of me figure it out... the nubers are the results and there are 3 required infos from each entry,(abc) so if there were 4 results it would have a 4a,4b,4c... its prob really simple but i cant get it! how would i print it via PHP? Code:
View Replies !
Create HTML Emails
I've been trying to create HTML emails but when i receive the email created by this script the link comes out as text do anyone have any idea why this might be? and what apoach would be best to solve it. Code:
View Replies !
How To Create Html List From Such Array ?
I've got an example array like this: $myArr = array( array("jj", "0", "jjj"), array("ee", "0", "eee"), array("bb", "ee", "bbb"), array("ll", "ee", "lll"), array("ff", "0", "fff"), ) Where each row is an array with columns: id of list element, id of parent list element ("0" means main node) and content of the element. So, from my array I'd like to create a list like this: <ul> <li>jjj</li> <li>eee <ul> <li>bbb</li> <li>eee</li> </ul> </li> <li>fff</li> <ul>
View Replies !
Create Html Table With Php Result?
I'm looking to display 5 records in one rows, from the database. What i mean is, basically, let's take the "emails" as an example. I have a table with 100s of email addresses. Now i want to display these email addresses on a html table, but i want to display only 5 email adresses per table row, then the next 5 in the next table row and so on.
View Replies !
PHP Create HTML Email Inserts '!'s
I'm trying to create an email and when it sends the email, it mostly works except that there are '!' inserted at some spots. Checking the html source of the email, looks like they are placed at the end of long lines. I'm assuming there is some issue with the encoding, but searching through groups, nothing I've tried has worked. Can someone let me know if I should be doing something differently with my headers for an html email? I'll change emails to null@null.com. Thanks! $headers = "X-Mailer: PHP " . phpversion() . " "; $headers .= "From: null@null.com "; $headers .= "Reply-To: null@null.com "; $headers .= "Content-Type: text/html; "; $headers .= "charset="iso-8859-1" "; $headers .= "Content-Transfer-Encoding: 7bit ";
View Replies !
Create Form Linked To Html
I need to access an SQL database from a webpage so users can update information directly to the database (in the form of a "form"). There are a few fields from different tables in SQL that I need on the form. I have no idea how to even begin. Someone mentioned that PHP is the way to go and I've started looking through tutorials, but thought I would post the question to see if this is even the right language to use.
View Replies !
Combining BBcode To Create One Html Tag
I'm working on some BBCode and I was wondering if it is possible to combine two bbcode tags to create one span tag after the preg_replace e.g. Code: [font=Arial ][b ][color=red ]Text[/color ][ /b][/font ] HTML Code: <span style='font-family:Arial;font-weight:bold;color:red;'>Text</span> instead of HTML Code: <span style='font-family:Arial;'><span style='font-weight:bold;'><span style='color:red;'>Text</span></span></span> Of course I'd need it for multiple instances of nested BBcode tags within the same message.
View Replies !
Create A Data Entry HTML Form For Given Table
I am working on a simple web site updating utility for a web site. Rather than hard code the data entry forms, I would like to automactically generate them based upon the table a user selects to update or insert into. What is the best way to approach this? for "insert" should I use the MySQL DESCRIBE table command and build a form element for each field according to its data type? for "update" should I use the DESCRIBE command to build the form as above and SELECT statement to populate each element with data, or should I just use a SELECT statement to retrieve the data and use php to determine the field type and choose an appropriate form element?
View Replies !
Read A Directory Files, And Create Echo HTML?
i have a foo/ directory and a foobar/ directory, and a barfoo/ directory in root/ for each directory in root, i'll put x or y or z amount of images in each directory. then, have the php write 01.html with the correct links to a) main image, b) thumb images and prev/fwd links. we could have separate php files to handle the drawing of the new sequenced .html files in each directory (probably best to pass variables), because they're slightly different, or one to rule them all (sounds like too much work). then, the syntax would need to be sorted out (so index.html has a link to foo/foo.php?=foo01) would work correctly and draw up 01.html with the correct images, being that index.html would probably have to have hardcoded variable-passing links. eh? it's sweet, 'cause updating would be fast. upload and delete image files. done. I mean, I know that you could go the database/XML route, but sigh ........
View Replies !
Create A Simple HTML Form That Has The Standard To:, CC:, BCC:, Comments: Etc
I need to create a simple HTML form that has the standard To:, CC:, BCC:, Comments: etc. - but I need for the form to have a drop down list of "Subjects". Depending on which subject the user selects, it should email a different email address for each one for the contact. The email addresses should be hidden and only server side. Could someone point me to a sample form which has something like this? I've Googled it all over but can't find any examples.
View Replies !
Implode - Read The Contents Of A File (servers) And Create A New File
I am trying to read the contents of a file (servers) and create a new file off of it with more information line by line. You will see the logic soon. I know how to do this via a script but not php. The end result is servers2 should have (ssh root@$count 'echo $user|passwd --stdin root' ; done). The variable $count is the list of servers in the (servers) file, so it will have the line above for each server name. Code:
View Replies !
Form Script - Create The Landing Page In Html With Tags
A form that people will enter their info, and when the submit it, they will land on a page that shows the info they submitted for them to double check that it is the correct info before they confirm the submission. I have an idea that I could create the landing page in html with tags like [firstname] and [address], and have the script replace those tags with the matching field data from the form. I just can't figure out HOW to do it. Sorry if I'm rather incoherent. just spent a long night attempting to figure this out. I'm feeling very, VERY Dense, even with my very limited PHP knowledge.
View Replies !
Function In PHP To Create Files Such As A Php File Or Txt File?
I am currently creating a file manager to add/edit/delete files and folders, etc but i was wondering if there is a function in PHP to create files such as a php file or txt file? All i want is a function that will allow you to create a file from the name you give! Is this possible? I have seen a script called Genesis but the problem is that it is Perl! and i dont have a clue about Perl!
View Replies !
Create A .txt File Or Skip If .txt File Already Exists
I am currently trying to write a favourites script which will store all the information on a .txt file using the following line of code, $file = fopen("mytextfile.txt","w"); All works great apart from one tiny problem... Every time i reload the page it re-creates the .txt file and deletes all the content. I need the code to create a .txt file if one doesn't exist (and skip the creation if one does) then run the rest of my program. My guess so far is this... If 'text file' doesn't exist, create one then run rest of code. If 'text file' does exist, simply run the rest of the code.
View Replies !
File Upload NOT Using HTML Input Type=file
in an earlier post on the javascript forum i was talking about a small program i'm writing to allow file uploads through the http protocol that look and function similar to a ftp client. I have made some nice progress on this project and am able to return the FSO collection from the client pc. this allows me to list of directories on the page so users can select multiple files to upload at once or even entire directories. Code:
View Replies !
Can Php Create A New Txt File?
I'm trying to build an e-card page for a client using php, but they don't want to use a mySQL database, so I was wondering if PHP can create new text files when someone enters their information into a form and then the recipient gets an email with that txt file reference in a link and can then go to a page that populates with that particular text. Does it sound like I'm on the right path?
View Replies !
Can't Create New File
I have a small PHP script that will convert text into vcard format and write it to a new .vcf file (plain text). To write, I've used PHP Code:
View Replies !
Create A New Php File?
How would I go about creating a new php file with php tags in it? I am creating a config file on the fly. So it would need to be like: <?php $username = "lalala"; $site = "site site"; ?>
View Replies !
Create Csv File
I have php pages that fetch data from MySQL and displays it in table format. I need to be able to have export to excel link and have it prompt to save the page as an excel file.. Any ideas on an easy way to do this? Is there a query which creates a csv file or any other ideas?
View Replies !
Create .exe File Using PHP
how to create an exe file so that the user downloads it from the website and installs the intended application on his machine by running the downloaded exe file? I want to create the .exe using PHP.
View Replies !
Create New File
I have been messing with php ftp connections, and for the purpose of my new site, i need to create a new file. I am currently working in this directory htdocs/this_directory when a user signs up, they recieve their own directory htdocs/username i want to create a file called index.html in their directory, but the code to create index.html must be placed in the htdocs/this_directory
View Replies !
How To Create A File
I am trying to find a way to create a PHP file that I can set up as a cron job. In this PHP file, I would like to run the following MySQL commands.. Code:
View Replies !
Create A Php File
I'd like to create a php file after a user submit a thread. For example, i post this thread with the title of "create a php file like this forum does", then i want to create a php file with a name of "create-a-php-file- like-this-forum-does.php". I tried to create a php file as following, but it does not work. <?php error_reporting(e_all); $myFile="create-a-php-file- like-this-forum-does"; $e=".php"; $myFile="$myFile$e"; $fh = fopen($myFile, 'w') or die("can't open file"); $stringData = "<html>welcome to mypage, I am testing</html>"; fwrite($fh, $stringData); fclose($fh); ?>
View Replies !
Create A Cgm File
I'm looking for a php library that would let me create a cgm file (a map) reading from a mysql spatial database... It would be good to create other kinds of vectorial files (svf, for example) do you know a good one? free, possibly...
View Replies !
Create PHP File
Edit a .htaccess file to redirect users from a specific folder to a file having problems with this as the address contains a? mark which messes up the address (Example test.php?user=1) and when I go to the folder it does redirect (Made the script add it to .htaccess) but I get a 404 as the? is coming up as a %3f Create a blank index.php (I can then write a custom redirect from there.
View Replies !
Require_once(<html Fragment File>) Vs Document.write(<html Fragment>)
To reuse common fragments of html on many pages I have used javascript functions, called from a linked .js file, which are precisely one instruction: document.write(<the html>). I'm starting to learn PHP now and see that a require_once(<url for file containing the html fragment>); will have the same affect. My question is, which method is more efficient? i.e. renders faster? P.S. is there a simple way to set up testing-only server-software on my local machine so i can debug php locally before uploading them to site's server?
View Replies !
Cannot Create File When Uploading
Hi. I use this script to upload file (taken by Zend.com website) This works locally, but when i upload to server i get an error. script... //$campofile is the file field filled before in a form... $archive_dir = "../folder1"; $filename = basename($campofile_name); $filesize = basename($campofile_size); $filetype = basename($campofile_type); if($campofile!='') { if(!copy($campofile,"$archive_dir/$filename")) echo "Error: $filename could not be uploaded."."<br>"; } After executing that script i get this error:
View Replies !
Create A Csv File On-the-fly For Downloading
I have a large database-created table on a page, that needs to have a "download as csv file" link (actually, as xcel, but I'll bet that's much harder to create). What's the simplest way to do that? Do I actually delete-and-recreate a csv file on the server every time?
View Replies !
Cannot Upload And Create File
I've written this script to upload files to my server, and if the file being uploaded is an image file, a thumbnail is automatically created along with it. But right now, after you select the file, and hit upload, you are brought to a blank screen. I check the directories, and the files are not uploaded. Everything LOOKS right, I just don't know what's wrong. PHP Code:
View Replies !
How Do I Create An Url That Downloads An Mp3 File?
i want to write a script that lets me create a url that downloads an mp3 file like this: http://domain.com/songs.php?m=killerfx and have that goto this file http://domain.com/music/abc.mp3 this is what I have so far, could someone help me with the missing part? <?php $m = $_GET['m']; $file = 'music/'.$m.'.mp3';?>
View Replies !
Create Downloadable Xml File
I need to make a downloadable xml google sitemap based off of mysql data. What fuctions would I use. I assume I would be using fopen to write it, but how do I make it downloadable. I don't want there to be a copy of it on the server (permissions wouldn't allow it anyway), I just want people to hit a button, generate the file, and download it.
View Replies !
Script Will Not Create A File
why my script will not create the desired file I want. The paths are correct so it is not them. PHP Code: <?php   error_reporting(E_ALL);     /* Count number of hits on the site when user enters site    * for the first time every three hours    */   function countPageHits() {     $date = date('m_d_Y');     $ip = $_SERVER['REMOTE_ADDR'];
View Replies !
Create An Ms Word File
I have customer contact information in a MySQL DB. The standard stuff: first name, last name, city, state, zip, etc. I'd like to write a PHP script that will take a customer ID range (e.g., customer 10000 - 11000) and stick those into an MS Word document, plain text document, or a PDF (any of the three will work). The key is that each record has to have a page break after it so that each customer prints on a separate piece of paper. Anyone know how to do this?
View Replies !
File Create / Download
I have a text file which stores MAC addresses. I would like to have a form prompt for the last six characters of the MAC maybe in a text area field (the first six will never change so I'll code them statically) and upon submitting, generate a text file with the MAC's listed in the order entered, with colons at the normal spacing. The output file should look like this: 00:10:36:0E:21:A2 00:10:36:20:14:33 00:10:36:05:1F:44 00:10:36:04:71:5B and it could have several hundred entries. I think I can do the coding to get the file created but pretty much don't know where to begin putting the values into the file and then make the file automatically pop up with a "save as" dialog box so I can choose to save it locally instead of to the server.
View Replies !
Create A File (txt) To Download
does anyone knows which are the functions I've to use to create a file, in this case a txt or a csv, that will be asked in runtime to the user to download it? So I suppose without creating any file on the server. Something like the dump in phpmyadmin when we choose to save as.
View Replies !
Create A Text File
how to create a text file in remote server from local system with full path of that file. I created a text file in my system. $fp = fopen( http:://192.168.192.168/icronex/text.txt ,w+) fwrite($fp,"icronex is my name"); fclose($fp); But i got an error like *** can't find file in this directory...........*** but i need to create a text file on remote system like.
View Replies !
How To Create A File With A Php Extension
Just purchased mac mini and upgraded to Tiger 10.4. I want to create a small web app with php that links up with a mySQL db. I have mySQL installed and php installed. Problem is, I do not know how to create a file with a php extension (e.g. info.php). I thought developer tools xCode2 came standard with Tiger, but TextEdit does not allow php extensions. I think I have already configured Apache to work with php pages.
View Replies !
Alter And Create New Png File
I'm trying to take an existing png file, modify it in php, and then to create a new png, but haven't got it work yet. I've been trying with the imagecreatefrompng (http://us.php.net/manual/en/function.imagecreatefrompng.php) function, but always keep getting a black image, and not the updated modify image.
View Replies !
Create A .txt File Online
I am trying to create a PHP script that will create a .txt file online, and then fill it with a string. At the moment, i'm keeping it simple, so just need the code to create a new .txt file if this is even possible.
View Replies !
|