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




How Do I Email The Contents Of A Webpage?


How do I email the contents of a webpage?

My project is coming along nicely and I have it almost completed.

It started with putting data into a mysql database and allowing people to
select items wanted from a big list. I now can update the database with the quality wanted and I can generate an email to the person however I cannot get the list of items wanted into the email.

The list is coming from a mysql database based and comes up in a table type
format

My question is how do I get the information from the 2nd page into the body
of an email?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Webpage To Email
Several times recently I've been asked to generate HTML email messages for
clients. It would be very nice to be able to render an existing webpage in
such a way that it could be included as the HTML portion of an email
message.

The problem is that web pages usually have some relative urls, such as for
images, links, stylesheets, backgrounds, etc. which wouldn't work in an
email.

Does anyone know of a way (in PHP) to translate all the relative urls in a
document to absolute?

Webpage Via EMail
I have developed a website in my local machine using PHP, MySql and
apache. It's not uploaded on the net. If someone asks for references,
is there a way to send without uploading on the net?

Can You Send An Entire Webpage Via Email Using PHP?
If you go to File >> Send > Page via email

it will send a snap shot of the current page you are looking at via email.

can this be done via PHP (or another means) so that I can create a script that will email a webpage automatically to a chosen person?

Page Contents To Email
I have scripts that will email a link to the page but what I need is an email form that will allow someone to put an address in and when they click 'Send' on the form certain contents that have been passed to the page will be sent in the email.

Send Contents Of Page In Email
is there not an easy way to simply send the contents of a page in the
body of an email? i.e. i have a report.php that pulls from a mysql db.
i need to be able to send the displayed file right in the body of the
email. can anyone help with this?

Sending The Contents Of A Php Array In A Html Email
I'm creating a site that posts orders to an email address when they're
submitted, these orders need to be in the form of official invoices so
i'm using HTML to format them.

I already have a shopping basket system which adds all of the totals
up and puts them into a nice looking invoice.

What's the best way to take this HTML and put it into an email?
I'm really looking for a way of sending the page via email, like you
can do in IE by selecting File > Send > Page by Email.

The basket script is quite large and i'm trying to avoid running it
more times than neccesary.

How To Move Arrays From Html Webpage To Webpage?
There are a couple techniques to move information from different html
web page to web page.
1. URL;
2. Cookie;
3. Form;
4. Session;

All the examples I found are move distinguished variables from page to
page, such as "?weight=20&name='apple'".


I need users choose from the first web page (the arrays will be
generated), then use it in second and third html web pages. How do I
transfer them (arrays) and which way is the best?

For example, if I have two arrays,

$fruit[] = array("apple", "pear", "orange");
and associative array
$myCats["Me"]="Merry";
$myCats["Pi"]="Pippin";
$myCats["He"]="Hergie";

Php Webpage And Form On Webpage!
recently signed up for a text messageing service that can use php script to send required details to specific mobile numbers, Anyways i recieved this code from the company: Code:

Get Webpage Url
how would I call a web page url I'm interested in the current active page Example the URL when I type this post is

http://www.phpfreaks.com/forums/index.php?action=post;board=1.0

I want to assign it to a variable

ie $url=http://www.phpfreaks.com/forums/index.php?action=post;board=1.0

Screenshot Of Webpage.
I remember an old topic way back about creating a script that would be able to create a dynamic thumbnail image of a live web page. I didn't follow it all the way thru and never did see if somebody created a solution. I tried searching for it, but can't find it.

Did anyone figure out if this is possible?

How To Parse A Webpage
I've scoured the net looking for a tutorial on how to parse a webpage but I've come up short handed. Can anyone provide me with some tips on how to get started?

Forcing A GET To Another Webpage
How can I forcefully 'push' a get request within a php? Example would be having 2 websites running on two diferent server. When I update site A, I would like update site B as well using GET. PHP Code:

Ideas ..with Webpage
Hello I didn't do any web page development since university ,I wanted
to create a web page for the fun of it ,an I was surprised of how easy
it is to use frontpage and dramweaver to do basic stuff ,but I wanted
to do something that I am sure it can be done but I don't really know
the way .
The webpage is not something original and it has been done before .
Xe.com is a currency converter from a currency to another currency I
have the following questions :

1) Wanted to auto detect the users country and accordingly set the
starting currency (from this currency) to the currency that his country
is using.
And also change the language to the user's language ...

2)lets say that I have users from two countries Germany and Hungary I
can create two starting web pages one with Hungarian and one with
German ..but lets say I have users from 30 different countries is not
very convenient to have to create a web page for each language there
must be a way that someone can i have a webpage that takes textiles or
something with the language strings and just displays them.

3) Lets say that the language is wrong and the user is using a computer
of the Spanish person and the user is Japanese I want to give them the
option to change the language
at any time ..do they have to install another language e.g Japanese in
this case? or only the encoding has to be changed .?

4)I wanted to give the user the option to select the currency in a
better way than dropdown box ,or a list box .. like a menu somehow but
I can't come with anything ...I don't know what guys can you
suggest I guess the list box is the obvious especially if there are
so many currencies but I would like something nicer... for example to
display the currency image at the side ..not sure..

5) If I create user login for example and I have different users that
they pay for the services how can I restrict certain currency converter
for certain users e.g. we have two users and the one user didn't pay
subscribed for the free service (he can convert Euro to dollars, visa
versa, pounds to dollars visa versa, pounds to Euro visa versa), the
user that paid can convert any currency ..

6) How can I restrict users from copying the website (using offline
explorer for example).

I was wondering what tools do I need to use to create the
website(recommended reading books?/online tutorials ),how will I be
creating the functionality that I want and how will I be resolving
every problem listed ?

Webpage Screenshot?
Is it possible to fetch a webpage and take screenshot of it like it displays
in browser and then store it in jpg/gif

Moving To Another Webpage
Is there a way of jumping to another page from PHP. I've got a form that is submitted, and that data is entered into the database. I want the page to then go back to the original page. Can i do this?

Webpage Hit Counter In PHP
Where would I find a website hit counter written preferably in PHP? I
do not have shell access to the web provider so installation would
have to be via FTP only (no make or compilation)....

Webpage Hit Counter In PHP
Where would I find a website hit counter written preferably in PHP? I
do not have shell access to the web provider so installation would
have to be via FTP only (no make or compilation)....

Using A PDF-creator On A Webpage
I have a webpage: www.site/page245.php.  I also have a "frame" on the right side where I have this PDF-button.

That button uses html2pdf to create a pdf. The problem is:

I need to get a hold of the address it is supposed to create a pdf of.

when I use this code: $htmlFile = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; I only get the current page, and I want the previous.

Backup A Webpage
Is there a way with php to backup/mirror a page? I know that I can use file_get_contents() to get the HTML from the page, however how can I get the images etc to be downloaded and stored on the server?

How To Restrict Webpage
how to restrict my webpage, the logged in users are only allow to access page, if not redirected to login form.

Emailing From Webpage Issues
To All,
I am new to PHP and I come from ASP. Is there an easy way to allow users to email me from a webpage. I want to have a form that will include drop down, radio and check boxes and in ASP it's real easy to handle it, but I don't know where to start in PHP.

Playing MP3's In A Webpage...
Is there a way to open up an MP3 by using the header functions similar to the following:

header("Content-type: audio/x-mpegurl; name="file.mp3""");
header("Content-Disposition: filename="http://somedomain/dir/file.mp3"");

does this make any sense?

Rotating Webpage Headline
I have a webpage that looks like a sales letter. To test different headlines for their sales pulling power, I want to rotate several headlines.

Ideally, they should be sequential. i.e. i would have 4 headlines, for example, and would appear Headline 1, 2, 3 and then 4. On the 5th visitor, Headline 1 would then appear. Get my drift?

What is the best way to achieve this?

Parsing An Array Containing A Webpage
I want to parse a few webpages to obtain stats and a few other bits but I`m a bit stuck on how I get down to the chunk of data I need.

I've created a small script which obtains the page into an array,

after that I have managed to get each line of the site to print out on each line.

Now I know what line(s) of the page I need to capture into a seperate string, I`m just not sure how I capture that particular line.

below is the script I am currently using:

Generate Thumbnail Of Any Webpage Using PHP
Joshua Eichorn(http://blog.joshuaeichorn.com) recently released a
fantastic service for creating thumbnail of webpages at runtime. The
service is named as WebThumb (http://webthumb.bluga.net). Later he
relased some API for developers to incorporate the service using a
API-Key. The API-Key is available after registering at the site.

Retrive URLs From Webpage
How can you get urls from a webpage? For example, there's 15 links on a page and you want the last 13 links and store them into an array like $array so I can use them later.

WebPage Snapshot / Thumbnail Using PHP
Does anyone know how to take a website URL and show a snapshot thumbnail of the site without needing any installed components, just pure PHP?

The purpose is to show snapshots like ICQ Search does.

Webpage That Can Ping A Server...?
what i want to do is make a webpage for my gaming comunity that basicly will ping the 2 main gaming servers say every 30 mins to make sure there online and then will either send u to the appropiate page IE if it dont ping its offline.. if it does ping .. the sever is up and running... is this possible or not..? is the a script out there that does this??

Read External Webpage
I made the folowing script. It works in most cases but not in the one below. I tried several solutions, but I still don't get the content of that website.

<?php
$url="http://www.example.nl/";
aspxerrorpath=/Default.aspx";
$arr =file_get_contents($url);
print($arr);
readfile($url);
$array = file($url);
print count($array);
?>

Who can help?

Print Out Before Loading Another Webpage
Is there a way to printout some string before loading a new page. I use sleep after I print something out and then used a header to direct the browser to another page.

For example:

echo "Foo";
sleep(10);
header("Location: ./foo.php");

So far, php did not print out anything and the browser goes directly to foo.php

Playing A Movie In Webpage
I want to play a movie in web page (php). Can any one help me? How can I do this?

Error In Getting Parameters From A Webpage
everytime I click the submit button, it seems that the browser cannot read or cannot get the value of $submit variable, here's my php code:

Php+mysql-driven Webpage
I have a little problem:

I have php-code stored in a mysql-table.
How do i run this code?

if i echo it, i see the code, but how do i run it?

Check On Reading Webpage
I wonder if there is any one out there who could help me out, .... and
I am sure there is somebody !!

I want to implement the following :

a webpage with very important news should be read by a bunch of people.
These people are stored in a MySql database, and as they have to logon
to read the page, I can uncheck their names in the database as
indication they have read (or at least accessed) the page.

So far no problem, but now I'm looking for a system that can check the
readflag in the MySql database let us say, every week, and send a mail
to all persons which still have not read the page.This process should
go on until all persons listed in the database have read the page. Does
anyone know how this can be implemented ?

How To Include RSS Script In To Our Webpage
i want to include the bbc news link (it means rss link);
i dont know how to call it in my php program
for example:
http://newsrss.bbc.co.uk/rss/sporto...nt_page/rss.xml
how to add the above link in my program

Getting Other Webpage Results In To Php Page
I Have a page which will take authentication from a diffrent page from
a difrent website.

My program needs to call a page like this from php page lets say:
http://www.abc.com?handshake.jsp?us...htoken=94399843

my php page is at www.xyz.com
based on this url's response i need to print the result on my php page?

I tried this..

$url="http://120.126.79.21:6080/AutoPrintWeb/apvalidator.jsp?tempid=$tempid&authtoken=$authtoken&ipaddress=$rmtadd";
$fp = fopen($url, 'r');
$response1=stream_get_meta_data($fp);
print_r($response1);

The reukt is like this:

Array ( [wrapper_data] => Array ( [0] => HTTP/1.1 200 OK [1] => Server:
Apache-Coyote/1.1 [2] => Set-Cookie:
JSESSIONID=B55CA82D1790D6C0A9E20ED1CEDBB1B9; Path=/AutoPrintWeb [3] =>
Content-Type: text/html;charset=UTF-8 [4] => Content-Length: 382 [5] =>
Date: Fri, 10 Mar 2006 10:22:41 GMT [6] => Connection: close )
[wrapper_type] => http [stream_type] => tcp_socket [mode] => r+
[unread_bytes] => 382 [seekable] => [uri] =>
http://193.186.79.21:6080/AutoPrint...dress=127.0.0.1
[timed_out] => [blocked] => 1 [eof] => )

I need only sucesss or fail..

Opening A Remote Webpage
Anyone know how you could open a remote webpage and put its html source into a string? I've tried a few different methods and functions, including file(), fopen(), and file_get_contents(), but nothing seems to work so far.

HOW To Copy The Content Of A Webpage Using PHP?
can anyone tell me how to use PHP to copy the whole content of a webpage?

Easy Webpage Edit
I'm completely new to PHP, and have just one thing that needs to be done.  I do plan on eventually learning PHP, but for now, I need this.

I'm a Visual Basic programmer, and am making a program that will enter data into a website.  I do own the website, however I want the site to update (add the entered data to the bottom of the page) the page as soon as it is submitted.

Basically, I need a script that will add a string of text (entered in an on page textbox) to the bottom of the site.

With this, I plan on duplicating the post data in my program so that I can do this automatically to my website.

Parsing A Remote Webpage
I've managed to come up with code to download & open a remote webpage, and display it. So I know that code works fine. I do not know how to parse text in PHP, I want to parse out HTML tags and other keywords in the remote site's HTML, for use on my own site.

Right now I am using fgets() to grab one line of text at a time, but I do not know how to parse through that line of text for stuff I am looking for. Is there any way to parse text like you can in Assembly? Or at the very least, C?

Can I POST To Webpage.php?something=somethingelse ?
I am having a problem POSTing from a form using this....

<form method="post" action="page2.php?enabled=yes" enctype="multipart/form-data">

This parses an uploaded file, and the above works great if I just POST it to page2.php.
But I really would like to get it to work like the above, due to the layout of the code.


Looking To Convert A Webpage To An Image
Is there some way I can take a webpage and convert it into an image? I imagine the only way to do it would be to render the html, load external files, and convert the output to an image.

Anyone know how to do this? It almost seems like it would have to be an addon library.

URL Redirections From One PHP Page To Another Webpage?
Subject: How to make URL Redirections from one PHP Page / site to another webpage in same website or different in PHP?

I have PHP multilanguage webpage and I have all content of pages translated into english and german language.

Problem:

I'm watching content of page in english language(on that link:
/index.php?page=out&id=509&lang=en)

On second step I want to see the same content of  page which I saw before in german language(/index.php?page=out&id=509&lang=de
).
Problem is that my code/webpage always links you to first page of langauge(index) which we choose.

Parsing A Webpage And Explode()ing It Into Tables
So far I've found/gotten this far on my parser code...

Snap Shot Of Webpage - Thumbnail
I am starting a website where, i am making it a directory, free directory like
dmoz. Now i want to place a snapshot of the website along with the link of website.

so is there any script which on displaying the details show the existing
homepage of the website. in a thumbnail. Like ......it happens in
domaintools.com, or like it happens in alexa.com. which displays a snapshot of
webpage.

How To Session Timeout For Specific WebPage ?
I would like to know how to set the session timeout time
locally and not globally in the php.ini file.
I do that as it is ine www.php.net but doesn't seem to do anything
/***************************/
/* set the cache limiter to 'private' */

session_cache_limiter('private');
$cache_limiter = session_cache_limiter();

/* set the cache expire to 1 minutes */
session_cache_expire(1);
$cache_expire = session_cache_expire();
/******************************/
I enter 1 minute for testing purposes....
- Also It would be helpfull to let me know how I am going to verify that
the session has been expired....
- Is there any way to automatically refresh the page when the session has
expired and let the user know ?
- Is there any good site that I can find tutorials or examples for this
purpose?

Sending Text On A Webpage To A Database
does anyone know how i could send text from my webpage to mysql database without using textareas or text boxes.

Database-stored Webpage-content?
more and more pages seem to be extracted entirely from a database. Not only dynamic information, like search-engines, but also (semi-)static content, (just text/information)
Does anybody know a good tutorial on: how to set up the needed effective structure for these database-driven websites?

Form Fields To Update A Webpage
I am trying to build this mini "publishing" system and allows the user to use form fields to update a webpage (images and text) then press a button to email that webpage to a list of emails. (spamming own userbase). I will have a webpage with php code in it and the code will pull data from the db.

How can I save the file has a static html file so that I can pass it to my mail function? or can I directly pass the php page to the mail function? or what is the best way of doing this? I also have to learn how to do file upload with php aswell.


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