473,473 Members | 1,822 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Get info from a site with PHP

Hi,

I was wondering if this is possible. Maybe someone could push me towards
the right direction.
Let's say i'm making site B, that gets a few numbers from site A.
Is this possible? Site A has everything in tables.

Also an extra part: it has to log in.

I'm not asking the coplete solution, just a little push.

TIA.

J.
--
My Project Page.
http://www.npi.be
Jul 17 '05 #1
6 1624
Jean wrote:
Hi,

I was wondering if this is possible. Maybe someone could push me towards
the right direction.
Let's say i'm making site B, that gets a few numbers from site A.
Is this possible? Site A has everything in tables.

Also an extra part: it has to log in.

I'm not asking the coplete solution, just a little push.


You can use wget (with help of system()) to fetch the data from the remote
site to your site B.
//Aho
Jul 17 '05 #2
In article <Da**********************@phobos.telenet-ops.be>, Jean wrote:
Hi,

I was wondering if this is possible. Maybe someone could push me towards
the right direction.
Let's say i'm making site B, that gets a few numbers from site A.
Is this possible? Site A has everything in tables.

Also an extra part: it has to log in.


http://www.php.net/curl
--
Tim Van Wassenhove <http://home.mysth.be/~timvw>
Jul 17 '05 #3
On Sat, 04 Sep 2004 12:03:47 GMT, Jean
<bl**@boeitmijniet.be.blah.com.boe.bah.bleh.zie.je .eindigt.met.punt.invalid>
wrote:
I was wondering if this is possible. Maybe someone could push me towards
the right direction.
Let's say i'm making site B, that gets a few numbers from site A.
Is this possible? Site A has everything in tables.

Also an extra part: it has to log in.

I'm not asking the coplete solution, just a little push.


Certainly possible, since you can open URLs with PHP, e.g. with fopen.

However, it's probably easier with Perl, as WWW::Mechanize and
HTML::TableExtract are particularly good at this sort of thing.

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #4
Jean <bl**@boeitmijniet.be.blah.com.boe.bah.bleh.zie.je .eindigt.met.punt.invalid>
wrote in message news:<Da**********************@phobos.telenet-ops.be>...

I was wondering if this is possible.
Yes.
Maybe someone could push me towards the right direction.
Well, here's a little problem:
Also an extra part: it has to log in.


Since you forgot to mention what authentication mechanism the target
site uses, it is difficult to suggest anything in particular.

Cheers,
NC
Jul 17 '05 #5
Hello,

On 09/04/2004 09:03 AM, Jean wrote:
I was wondering if this is possible. Maybe someone could push me towards
the right direction.
Let's say i'm making site B, that gets a few numbers from site A.
Is this possible? Site A has everything in tables.

Also an extra part: it has to log in.

I'm not asking the coplete solution, just a little push.


You may want to try this HTTP client class that you can use to retrieve
pages and also submit forms and collect cookies that are passed to the
next pages which is something that you most likely need to login that site:

http://www.phpclasses.org/httpclient
--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
Jul 17 '05 #6
"Jean"
<bl**@boeitmijniet.be.blah.com.boe.bah.bleh.zie.je .eindigt.met.punt.invalid>
wrote in message news:Da**********************@phobos.telenet-ops.be...
Hi,

I was wondering if this is possible. Maybe someone could push me towards
the right direction.
Let's say i'm making site B, that gets a few numbers from site A.
Is this possible? Site A has everything in tables.

Also an extra part: it has to log in.

I'm not asking the coplete solution, just a little push.


http://www.php.net/stream_context_create
Jul 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Celebrate | last post by:
I'm noticing that when my homepage first starts up, all the menu links to other pages have the session info appended to the URL. For example: ...
1
by: MAS 90 reseller | last post by:
I was looking thru the mas90 info site of http://www.accountingsoftwareconsultants.net/mas90_accounting_software.htm for detailed info on MAS 200 SQL server. There's some info on that page, but I...
2
by: muttu2244 | last post by:
hi all i tried running a exe file info.exe from the spawnle cmd, its running fine from the interactive mode, but when i try to run the same info.exe file from a python file, its giving me the...
1
by: Tony Jones | last post by:
Can I have two ASP.NET site using the same membership provider settings? For this to happen, the applicationName would have to be the same, but what about the configuration of the <properties>...
1
by: arachaz | last post by:
I am accessing a book database server with personal password, via a http site. When I want to request info for some books, I need to enter the ISBN or title of the first book on the the text box ,...
20
by: Tim Reynolds | last post by:
Team, I am developing a web service. In testing in on my enw PC, I am expecting to see exceptions thrown appear on my browser. Instead I am getting an HTTP 500 Internal Server Error page and I am...
5
by: Jeff | last post by:
Hey ASP.NET 2.0 I'm working on a web site and I want info about the domain stored in web.config. By domain I mean for example: www.domain.com The reason I want info about the domain stored...
16
by: =?Utf-8?B?VGRhclRkYXI=?= | last post by:
Hello, I want to get reffering site info like if the way they got to the site is from google, While that is easy enough, of course, but I want to get that info after they have been on the site for...
2
by: empiresolutions | last post by:
I am using a standard mail function within an AMFPHP Class that i have used many times. Now, when i use it it does not work right. When a mail is sent, the $header info and html shows in the email. ...
1
by: cumupkid | last post by:
II am trying to create a form that will allow me to upload photos to a folder in the site root directory and add the information to the mysql db at the same time. I have created two forms, one...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.