Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





How To Get My Upload File To Automaticaly Post A Link To A Html Web Page


Can some one direct me to a good tutorial that can teach me how to get my upload file to automaticaly post a link to a html web page on a web site.




View Complete Forum Thread with Replies

Related Forum Messages:
Automaticaly Upload A Text File From The Visitor's Computer
I've been trying to create a page (http://www.mysite.com/update.php), where when it is loaded, it will automaticaly upload a text file from the visitor's computer (file will be on the HDD (c:ap_definitions.txt)).

I have been searching for the code for 2 days, and can't find any upload script that doesn't use the $_FILE box.

Is it possible to automaticaly upload c:ap_definitions.txt to ap_definitions.txt on the server?

View Replies !
Using Preg_match_all To Locate HTML Anchor Link BUT Only If The Link Is A .pdf File
The subject line describes what I'm trying to do, (and after thinking about it for a day or so and trying different things; searching around for similar questions on the board,) but I still haven't found a proper regular expression.

I am trying to use preg_match_all to locate HTML Anchor link BUT only if the link is a .pdf file within text from a database table. It actually was working just fine until I recently made a change regarding new lines () and (<br />) in the text that is to be searched. But after making changes regarding the new lines and things, my previous regexp doesn't work correctly. Here is the regexp I am trying to use:

preg_match_all('/<a href="(.*)">(.*)</a>/U', $entry->Record['e_entry'], $res_output, PREG_PATTERN_ORDER);

That regexp does find each occurance of an <a href="">something here</a> link... but I need it to only find occurances of an anchor link if it is a PDF file link (ex: <a href="../something.pdf">something</a>). So I tried changing the regexp to something like this:

preg_match_all('/<a href="(.*).pdf">(.*)</a>/U', $entry->Record['e_entry'], $res_output, PREG_PATTERN_ORDER);

But in the preg_match_all results array ($res_output) a regular <a href="">something here</a> link is ALSO found as well as the .pdf links... I am trying to only find links that contain .pdf at the end of the file name. Sorry that this is written kind of strangely, if you need more info let me know. Does anyone know what I need to change in the regexp to ONLY find HTML anchor links that contain .pdf at the end of the HREF?

View Replies !
Page Redirection - Link Index.html Page To A .php Pag
I have an index.html page with a link to a .php page This is the complete code of the .php page Code:

View Replies !
Make It Link To Another Html Page
How to retrive feild from table and make it clickable and link to another html page.

View Replies !
<link:page.html,xxx> => <a Href="page.html?id=xxx">
I want to transform this code <link:page.html,xxx> to

<a href="page.html?id=xxx"> dynamically.

I tried out alot of preg_replace stuff, but I didn't get to manage it.

View Replies !
Regalar Expression To Extract An Html Link From A Page
I have a regalar expression to extract an html link from a page:

href=(["']?)([^>1]*.html)1(?: [^>]*)?>

It looks after the "href" for an optional quote and then looks for something
that is not the quote or the endarrow.

The problematic part is [^>1]*. It should exclude anything with the quote,
but somehow that doesn't work. Maybe 1 is not allowed inside brackets?
I would like some advice on how to handle this.

View Replies !
Wont Recognise POST From HTML Page
I've been having a ball over the last few days trying to configure IIS, PHP5 and MySQL...
Finally got it all working then tried a simple form script and discovered that PHP wouldn't print the variables from the form to the screen! Code:

View Replies !
Html Page Link Prints Path 3 Times In Header
I have a website with html pages and a php page (a form). I just put in links on the html pages to the php page. When I click them I go to the php page and as bonus the path of the html page is printed at the top three times. (The text in the php page changes depending on which page I have hit the link from.) For example:

Quote: http://mysite.com/sitefolder/previouspage.htmlhttp://mysite.com/sitefolder/previouspage.htmlhttp://mysite.com/sitefolder/previouspage.htmlhttp

If I highlight and then delete this text in Navigator or Explore both browsers return me to the page written out three times at the top of the page. Here is the code that is giving me this result. Code:

View Replies !
A Web Development QUICK LINK PAGE (QLP) - HTML, Perl, PHP, JavaScript, AJAX, CGI, Etc.
I've recently organized and even color-coded many of my favorite
bookmarks on WEB DEVELOPMENT (and a few other favorite subjects too)
into what I call QUICK LINK PAGES. These are very condensed, compact
(no graphics), fast-loading pages with a 100+ links to some of my
favorite web sites on a particular subject. I hope you'll give them a
try...

Here's the link...

The easy-to-remember link above gets you to one of the Quick Link Pages
(QLP). The current categories (DIVERSIONS, INVESTING, JAZZ, MACINTOSH,
OPERA, PHYSICS (with ASTRONOMY and MATHEMATICS), SPORTS, WEB
DEVELOPMENT, and WINDOWS) are color-coded on the top of every page.
Just click your favorite category. I hope you'll find a lot to enjoy.
If you find any errors, or have suggestions for additional links or
categories,

View Replies !
How Do I Exit An Html Frameset As I Have A Link Which Has To Redirect Back To The Index Page?
I was just wondering in how do I exit an html frameset as I have a link which has to redirect back to the index page as shown below, which should not have the frames. header("location:index.php");

View Replies !
Post A File Upload Script
Can someone post a File Upload Script so that I can see how it works? I am trying to add this functionality to my website.

View Replies !
Non-POST File-upload With Ftp_*?
on our webserver both open_basedir and safe_mode are active, so I have
to use move_uploaded_file().
But when I do this, the destination file is 0600 and uid/gid=www-data
and due to safe_mode I cannot do anything with that file
(for details see related posting "move_uploaded_file + safe_mode")

A common way to circumvent safe_mode is by using ftp (ftp_*-API), so
is there a way to do a file-upload (from the the browsing user to the
server that runs php) with it?
(Ideally this should work with a <input type="file"...> but this
can be handled with javascript)

Any other way to make a file-upload with safe_mode and open_basedir
set?

View Replies !
Upload And Present As HTML Page?
I'd like to have a form where users can upload a photo, add a short bio, put in some contact info, and have all of this information stored in a database (natch). Then I'd like for this form to take this user's data and put it into an html presentation template. Ideally, members would sign in and be able to modify their own profiles as well as view other profiles.

Basically I need the sort of functionality you see on dating sites or job search sites.

View Replies !
Search Each Html File For Every Occurrence Of A Link
I am looking to transfer content of hundreds of html files into a database. I need to search each html file for every occurrence of a link, image if there is one present, alt text and anchor text. It should then be placed in several variables $link, $src, $alt, $anchor and placed into a csv file so I can import it into a database. The only thing that I have done so far is read the contents of the html file into a string.

<a href="link.htm" target="_blank"><img border="0" src="example.jpg" alt="This is an example"><br>This is an example</a></td>

So in this example, I need to retrieve link.htm, example.jpg, 'This is an example', and 'This is an example'.

View Replies !
Html Link For Local File Not Working
I tried a simple example for html link inside php file
I have a file called file1.txt inside C:

I put the following lines in a file and named it .html

<html>
<a href='C:file1.txt'> open file</a>
</html>
here the link works and the file opens upon clicking

if the same file I named it .php and tried to run it using apache localhost
here when you click the link, nothing happen and the file didn't open

why??

knowing that if we put any website link it works , but if we put any file inside our computer it doesn't work.

View Replies !
How Do You Link To An External PHP Script In An HTML File?
I installed XAMPP, so everything should be configured properly. However, I'm still having problems. So, here are some of the questions I have. If anyone could help me out on any of them, that would be great.

1. What is a web server? How is it helping me write PHP?

2. When I open my PHP files in my browser, they are still not read properly. Any known reason why?

3. How do you link to an external PHP script in an HTML file? Is there a such thing, or am I totally clueless?

View Replies !
Post , Add, Copy To Html File
I'm posting data trough a form and adding it to an html file with the following :

<?php
echo "copiage de fichier debut";
// your new data + newline
$new_line = stripslashes($_POST['codesource'])."";
// the filepath
$file = 'upload/aaatest.html'
// the old data as array
$old_lines = file($file);
// add new line to beginning of array
array_unshift($old_lines,$new_line);
// make string out of array
$new_content = join('',$old_lines);
$fp = fopen($file,'w');
// write string to file
$write = fwrite($fp, $new_content);
fclose($fp);
echo "copiage de fichier Fin";
echo "Redirection.....";
?>


this code add "codesource" to "upload/aaatest.html"

It add it to the bigginig of the file, How can I choose the line "codesource" is added within the file , ex : count 100 lines and start adding text after 100 lines ????


I also need this code to add a log part, It would add to the source code of the html file, in comment, the time&date, the ip, the name, email.

I know how to show the time or ip of a user on screen but i don't want it to be seen, only in the sourcecode of the html, as logs?

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 !
Post HTML Form To Excel File On PocketPC?
The PocketPC version of Excel does not create forms, but HTML pages work pretty well. I'm trying to build an HTML form that can be opened on the Pocket PC that will post (or get, as needs be) any data entered (using fancy controls like checkboxes, radio buttons, etc) to a pocket excel file on the same PocketPC. I'd like it to insert new rows into the existing spreadsheet...not just overwrite the file or produce other files.

(I already have done php forms that save to a MySQL database when there is wireless available...but the current project is for a more common situation where wireless would not be available and the user would have to sync/email the file to me from an internet-connected computer.)

View Replies !
Flash / PHP File Upload (w/out Standard HTML Form)
- i am trying to create an upload form based on a flash mx movie and a server-side php script.
- i have to avoid using the standard HTML upload form.
- local filesystem browsing function is not needed, only the given file must be transferred.
- the problem is that the php script cannot acces a local file like "c:/dir/file.ext", as the path is handled like a server-side path.
- the HTML form (enctype has to be set multipart/form-data) sends the file via the POST method. Flash is able to send information this way, too, but only files with internally specified variables like "&var=data" can be read into the flash movie - and sent as text.
- i am thinking of using a hidden form somewhere - maybe in another frame of the site (in the first one is the flash movie embedded). Another way to solve this could be a popup window with the upload form. These might work, but i am searching for a less complex solution.

View Replies !
File Upload :: Page Cannot Be Found
We have a service where users can send advertisements with image. It has worked okay, except according to our testing, images greater than 500 kb lead to "page cannot be found" - error. I have gathered some of the "important looking" php settings from servers
phpinfo(). In all of these cases local value and master value are the same.

magic_quotes_gpc = On
max_execution_time = 30
max_input_time = 60
memory_limit = 8 M
post_max_size = 8 M
upload_max_filesize = 2 M

I would like to ask your opinions: what is the reason?

View Replies !
How To Upload Image File In Update Page
How to upload image file in page update ..?? i have logic like this : if user upload new image then old image must delete and update DB used new name if user not upload new image then old image no delete. code form like this (i dontknow this code right or wrong, please correction if wrong) : Code:

View Replies !
Upload And Download Files (pdf Or Doc File) In My Page
i need to upload and download files(pdf or doc file) in my page using php.
once the user enters the login page it shd display his own company information and he can either upload or download files and shd be able to view the archived ones
can somebody suggest me how to do this?

View Replies !
File Upload Giving Blank Page
I am trying to code a page wher users can upload images using the code below, but I keep getting blank page, what could be the problem. Code:

View Replies !
Image Upload File Limit - Page Expired
just a slight problem with my upload. If the file size is above 50k i display an error message but when i go back with the browser the page is expired how can i work around this please. code is as follows:-

<?php

if(!is_dir($store_dir) )
{
echo("Specified directory is not valid... Exiting");
@unlink($HTTP_POST_FILES['upfile']['tmp_name']);
exit();
}
if( copy($HTTP_POST_FILES['upfile']['tmp_name'],$store_dir.$test3) )
{
echo("");
}
else

View Replies !
Display A .php File In A .html Page
if u have a .php file, u can use include to pull in other files. no problem there. This is what i need to know. how to use html coding to pull in a .php file into the page and display it.

View Replies !
Converting An Html/php Page To Pdf File
Im using php 4.2.2, and need to convert an page that consist of html and php to and pdf file. Can anyone help me on how I can do this and if it’s possible to do with php 4.2.2

View Replies !
Urgent Please Help (how To Show .doc File On An Html Page)
i have uploadeed a .doc file into server now i want to show it on a
page
how can i do it

View Replies !
How To Extract A Page Title From An HTML File
I am trying to extract the page title, description and keywords from an HTML page. Description and Keywords are easy, using get_meta_tags().

View Replies !
Loading External HTML File In Every Page
how can I load a HTML into my "every-page" template. Let's say I have a menu (HTML - ul list that becomes a collapsing menu thru CSS) and I want to have it loaded in every page of my site.

View Replies !
Script That Reads My Log File And Displays It In An HTML Page.
I have a problem. I am trying to make a script that reads my log file and displays it in an HTML page. I got the base code from a book, being that I am still learning PHP and I needed a little help starting out. But the code I am using gives me an error.

The error is :

Fatal error: Maximum execution time of 30 seconds exceeded in /home/sites/home/web/php-site/log-file.php on line 15

It ranges from to line like so :

Fatal error: Maximum execution time of 30 seconds exceeded in /home/sites/home/web/php-site/log-file.php on line 27

I want to know if anyone knows the specific reason or maybe a place to start at to find out the problem and the solution.

View Replies !
Dynamic Download Link - Not Direct File Link
I'm posting a podcast feed that makes reference to audio files for download. Instead of linking to the files directly (e.g. www.mywebsite.com/podcast.mp3), I want to link to the file as get variables so that I can track number of listeners (e.g. www.mywebsite.com/?audio=podcast.mp3). Where would I look to get something like this to work? How do I start sending audio data to the user using a link like this?

View Replies !
Free Link Post
I took some code from a gusetbook, and made a script that allows people to post links to their sites in nice little tables. The only problem is they become listied in reverse order. Id like for the new ones to be on the top of the list. Can anyone help me? It uses an english language pack, but i know that has nothing to do with this, im just telling you so youll know what your looking at. I know there is lots of unneeded code, but: PHP Code:

View Replies !
POST Data In A Link..
Is it possible to to send POST data if you click a link? Such as, using a link to replace a submit button. A submit button usually has a value. (value=""). Could you do this in a link?

View Replies !
POST Variable In Link
Is it possible to have a normal link, using anchor tags, and place a post var in it?

View Replies !
Post Value When Clicking On A Link
i have a table each row having a link to another page. What i want is depending on the link that was clicked, to pass to the other page a different value (for example to pass the text of the link). I don't want this value to be visible in the url.

View Replies !
Adding A Link To A Post
<?=$_POST['web']?>

How do I make this an actual link?

View Replies !
Post Values From A Link?
how to post values in a form, but i cant figure out how to post values via a link? e.g. ive got PHP Code:

<?php
$author=$_POST['author'];
?>

<?php
// calls javascript function to open a pop up window
echo "<A HREF="javascript:openwindow()">$author</A>";
?>

how do i send $author via a link to a new page rather than the usual form/submit option??

View Replies !
Close A Window Automaticaly
Is there a way to close a window automaticaly with PHP. The case is: I have a form, and when someone clicks on the first option, en then submits, a form is printed, if one chooses the other option, the window should close .. is that possible ?

View Replies !
How To Detect Which Link Was Used To POST A Form
Have a PHP script that reloads itself into one of two modes, depending on which text link you click on. Right now it's done using the GET method, by appending different variables to the URLs, but I'd like to convert it to POST if that's not too hard.

View Replies !
$PHP_SELF - Create A Link Which Refreshes The Current Page, And Based On Certain Items On The Page
On a page, I want to create a link which refreshes the current page, and based on certain items on the page (simple form objects like radio buttons)the page will load differently. My link looks like this: PHP Code:

View Replies !
Automaticaly Displaying Links In Several Categories
I've put together two functions that pull a list of categories from a db which are hyperlinked to all of the links that correspond to that particular category. And two almost identical functions that display the links. What I would like to do is to have the category names echoed out with all of it's respective links automatically under it as opposed to clicking the category to see them. PHP Code:

View Replies !
Load The Data From The Id Card Automaticaly
how to load the data fro the id card automaticly to the web form for php form ?

View Replies !
How To Automaticaly Send An Email (with DB Data) When An Event Is Triggered?
- I am modding a simple program that interacts with a MYSQL database which tracks the Expiry Dates of vehicle road licenses. I would like to have the program automatically sent an email warning out to a list of email recipients 30 days or X no. of days before the expiry date of each vehicle's road license

- and also perhaps make it possible for the user to be able to define how many days before an expiry date that he/she wants the program send an email alert/warning out.
- and there are multiple versions of predefined email text that is system-selected to form the email body when a particular event is triggered

- the email body will also contain some other data from that DB record. For e.g. road license no., licensing agent's name,..etc. Code:

View Replies !
Upload From A Link?
I've been searching for a tutorial that shows me how to upload a file from a link instead of from your computer. Does anyone know a tutorial that tells me how to do this?

View Replies !
Passing POST Data On Link Click, And Not Form Button
is it possible to send a form data to a page, using a link instead of a button?

id prefer not to have to rely on javascript, so i would like it to be ras html, or the like..

View Replies !
File Upload Issue - Unable To Upload A Large File
I am using PHP Version 4.4.3 under Linux/Apachie to upload files.
The PHP.ini upload_max_filesize is 2M, which I need to override this
in the HTML (see below). I changed the MAX_FILE_SIZE to 4,000,000
but the system only accepts files less than 2M.

Is the override wrong, do I need to raise the limit in the PHP.ini
file, or is the Apachie issue.

<form name="upload" action="admin.php" method="post"
enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="4000000">

View Replies !
Upload A File But I Always Get The Error Message: Possible File Upload Attack!
I'm trying to upload a file but I always get the error message: Possible file upload attack! Code:

View Replies !
Setup A Link In My Page That Will Change My Page
I am working on a page with a right column that I want to use for
navigation. In this right column I am using the below code to set a
value for the link. I am using the variable $test right now.

I want to click on the link and when the value is set to a certain
value, say 1, I want the script to run and load a page based on a
switch case. This way I can use different links for navigation that
will load different forms and areas of my application. So here is the
code for the link line. Code:

View Replies !
Php Upload Without Post ?
I was wondering if there was a way to upload a file wihtout the post method. I think I have already seen something like that in ASP... They took the binary code of the page and then reconsitued it on the server.

View Replies !
Upload Form And Upload Script On Same Page
On many upload pages, the FORM action is set to the same page-that means the script to generate the page and save the uploaded files is same.Can somebody give me some simple example of how to do this ?

How to detect if somebody is accessing a page( == generate the form) or uploading the files ( == upload the files) ?

View Replies !
HTML Link
The select options include each of the products which are coded by an ID number. To create a link in the outgoing mail by PHP page. I have a var coming from a Select Option $productid. It is written as

<OPTION VALUE="23532">

What I need to do is have this provide a complete link and name of the product. I would like to parse the databse of the store so that if the ID number is provided, on the resulting php page that sends the mail and displays the results on the screen, I want to read from the data base to complete the link that goes on to the screen and into the mail

Thus pulling
$product_name
$product_description
$product_thumbnail

and composing it into a preformatted HTML email message.

<P ALIGN="CENTER"><IMG SRC="$imagelink" width="100" height="120"><BR>
<A HREF="http://www.foobar.com/products.php?productid="$productid"> $product name</A> $product_description</P>

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved