PHP question (newbie)

This is a discussion on "PHP question (newbie)" within the PHP Forum section. This forum, and the thread "PHP question (newbie) are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 28th, 2005, 12:59
New Member
Join Date: Nov 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
PHP question (newbie)

PHP question (newbie)

As my Company block this ball result page, I (newbie) write this little php code try
to get the text(not graph) of the page and display using my server:
http://mylink.com/ballr1.php (code as bottom)
The problem is it show very good the first page but not the history data link
that can be enquired inside, because the url became
http://mylink.com/srchRes.asp?srchDa...=2005&teamName=
which must be 404 url not found!
My question:
Any advise how the below code can be change such that I can actually get
http://bet.hkjc.com/football/en/resu...=2005&teamName=
and the display on my server again ?? Many Thanks.
Understand that:
1) after ballr1.php display the site html first time, the history data can be enquired by pressing the 'Search' button inside
but ballr1.php need intercept this button to form a link fist like:
http://mylink.com/ballr1.php?srchRes...=2005&teamName=
but not just
http://mylink.com/srchRes.asp?srchDa...=2005&teamName=
2) when the ballr1.php is invoked again with the variable parameters (from/to dates etc.), it need to do something
to change the base url to:
http://bet.hkjc.com/football/en/resu...=2005&teamName=
I am really newbie to php, so appreciated anyone point me the solution code.

ballr1.php
Code: Select all
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Result</title>
</head>
<body>
Result
<hr><br>
<?
        $file = "http://bet.hkjc.com/football/en/results/results.aspx";
        $contents = file($file);
        $size = sizeof($contents);
        for($i = 0; $i < $size; $i++) {
 
        $alldata = $contents[$i];
        echo $alldata; }
?>
</body>
</html>

Last edited by btfans; Nov 29th, 2005 at 05:17.

  #2 (permalink)  
Old Nov 29th, 2005, 01:23
Reputable Member
Join Date: Sep 2005
Location: Canada, BC
Age: 24
Posts: 239
Thanks: 0
Thanked 0 Times in 0 Posts
Re: PHP question (newbie)

None of your pages seem to be loading, and i'm haveing a hard trying to figure out what you are trying to do, and why it isn't working without them.
  #3 (permalink)  
Old Nov 29th, 2005, 01:36
Highly Reputable Member
Join Date: May 2005
Location: U.K
Age: 21
Posts: 739
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbramz
Re: PHP question (newbie)

im having the same problem aswell
  #4 (permalink)  
Old Nov 29th, 2005, 01:57
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: PHP question (newbie)

We have no idea what your trying to say.

Please be more clearer and structure your sentences better
  #5 (permalink)  
Old Nov 29th, 2005, 05:15
New Member
Join Date: Nov 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: PHP question (newbie)

Please apologise my poor English,
be specific, I want:
just to screen dump the 'ball' pages blocked
to my own server using ballr1.php
but in the 'ball' page, there allow from/to date input and enquire
thru a 'Search' button, I want this to be viewed using (any code)
in my server (to avoid blocking).
So you can re-try above links (except mylink.com).
Appreciate yr patient and help.
  #6 (permalink)  
Old Nov 29th, 2005, 06:12
Reputable Member
Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 293
Thanks: 0
Thanked 0 Times in 0 Posts
Re: PHP question (newbie)

Wouldn't it be easier just to get your company to unblock the page if you need access to it as a part of your work?
  #7 (permalink)  
Old Nov 29th, 2005, 08:26
New Member
Join Date: Nov 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: PHP question (newbie)

They blocked it at their reason, I refer to it is my own interest.
Any more hints?
  #8 (permalink)  
Old Dec 6th, 2005, 02:53
New Member
Join Date: Nov 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: PHP question (newbie)

Pls close it's resolved.
Closed Thread

Tags
php, question, newbie

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie Question DRWEB Starting Out 7 Jun 20th, 2007 19:09
Newbie Question kelbrit Webforumz Suggestions and Feedback 4 May 9th, 2007 13:10
XSL Newbie Question mr4thjuly Other Programming Languages 0 Oct 19th, 2006 17:37
Newbie with a question wishmastersjewelry Web Page Design 11 Aug 21st, 2006 21:20
iteration with xsl:for-each: newbie question? inarobis Other Programming Languages 0 Jul 7th, 2006 14:00


All times are GMT. The time now is 07:22.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43