[PHP] Looking for a high usage PHP host

2001-10-24 Thread Ben Quinn

Hi all

I'm looking for a web host with the following requirments

* PHP (would prefer version 4) with GD support - the most important thing is
the version of GD must be 1.6 or lower because we have to work with GIF
files on the fly
* High data transfer - somewhere in the range of 20gig+ per month
* Telnet access

I've been looking for quite some time now and haven't had much luck - if
anyone could help me out it'd be much appreciated!

Cheers

Ben Quinn

Assistant webmaster of the Australian Severe Weather Association website
http://www.severeweather.asn.au
Webmaster of the Brisbane Storm Chasers Homepage
http://www.bsch.au.com
Weather education section at NEMAS (North East Media of Atmospheric Science)
http://www.nemas.net/edu/




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Old version of GD or a patch

2001-09-17 Thread Ben Quinn

Hi all

Does anyone know where i can pick up an old version of GD? preferably V
1.5 - 1.6.2 .  I'm planning to use it locally (i don't run a hosting
service, i simply want to perform operations on GIF files for local use) and
i'm based in Australia - from what i've read so far the problems with the
GIF patent don't apply in Australia?

I've also downloaded a version of php_gd.dll from this site

http://php.weblogs.com/php_gd

but when i use it tells me there's an error in the DLL

Any help i can get will be much appreciated



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] ereg()

2001-08-28 Thread Ben Quinn

Hi all

Say i had text similar to below

Cairns  Fine
Mareeba Fine
Innisfail   Fine

I'm using the following code to grab the weather forecast for each of those
towns

$GrabURL = forecast_map_data.txt;
$GrabStart = PROVINCIAL CITY;
$GrabEnd = UV ratings;

$file = fopen($GrabURL, r);
$rf = fread($file, 2);
$grab = eregi($GrabStart(.*)$GrabEnd, $rf, $show);

eregi(Cairns(.*)Mareeba, $show[1], $cairns);

which works fine, but when i then try to grab the forecast for Mareeba using
this

eregi(Mareeba(.*)Innisfail, $show[1], $mareeba);

nothing happens - i figure it's because i've already use Mareeba as a stop
point.  Can anyone recommend a function or a way to do this where i'll be
able to use the same start or stop text more than once?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Web fetching script

2001-08-27 Thread Ben Quinn

G'day Guys

Sorry, i should have explained it better.  What i want to do is grab 2
different lots of text from the same page.  Say the page had this text

10am
Some text
12pm
Different text
2pm

I want to be able to grab from say 10am to 12pm and store it in $texta and
then grab from 12pm to 2pm and store it in $textb - but with the script i've
pasted below  i can only grab one lot of text at a time! to grab 2 lots of
text from the same page i have to have 2 scripts and in the end i've opened
up and closed the page twice! Anyway, any help i can get will be much
appreciated

This is the script i'm using
?

$GrabURL = url.txt;
$GrabStart = start;
$GrabEnd = stop;

$file = fopen($GrabURL, r);
$rf = fread($file, 2);
$grab = eregi($GrabStart(.*)$GrabEnd, $rf, $printing);

$printing[1] = str_replace(replacedatestamp, withnewstamp,
$printing[1]);

fclose($file);
echo $printing[1];

?



- Original Message -
From: Dave [EMAIL PROTECTED]
To: Ben Quinn [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Wednesday, August 22, 2001 10:57 PM
Subject: RE: [PHP] Web fetching script


 What response are you expecting, and what response are you getting?

 assuming your regex is working as expected, you are running it twice to
receive
 the same result into 2 different variables???  why not just copy the
variable
 after

 additionally, $printing is filled with the matches of your regex(10 of
them
 according to manual)  as such you have to specify which element of
$printing you
 are wanting to print, or you will get the lovely array output

 I don't understand why the grab variables are there unless you need them
later.
 Without accounting for your regex...

 eregi($GrabStart(.*)$GrabEnd, $rf, $printing);
 echo $printing[1];
 $printingb=$printing;
 echo $printingb[1];

 I have a web fetching script that fetches text from an external URL and I
 would like to grab two lots of text at the same time - can anyone tell me
 why this isn't working?
 
 ?
 
 $GrabURL = http://grabfile.html;;
 $GrabStart = start;
 $GrabEnd = stop;
 
 $file = fopen($GrabURL, r);
 
 $rf = fread($file, 2);
 
 $grab = eregi($GrabStart(.*)$GrabEnd, $rf, $printing);
 
 echo $printing;
 
 rewind($rf);
 
 $grab2 = eregi($GrabStart(.*)$GrabEnd, $rf, $printingb);
 
 echo $printingb;
 
 fclose($file);
 
 ?
 
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Web fetching script

2001-08-27 Thread Ben Quinn

G'day David, Niklas

As usual i'm in way over my head so i'm going to be a real pain and ask for
more help

Niklas, unfortunately the start and stop points change constantly, i'm
hoping to get around this by using the substr() function - luckily the
format (in tables) stays the same

My main objective is for the file to be read once only, by the time i'm
finished i'll probably be grabbing 20-30 different areas of text/numbers
from a file, and i'm paying for anything over 1gig downloaded from my
account each month, so it could end up quite expensive.  This is an example
of the file i'm grabbing from

http://www.arl.noaa.gov/data/ready/usr/897_profile.txt

David, i couldn't get what you said to work - any chance of a quick example?
:-)



- Original Message -
From: David Robley [EMAIL PROTECTED]
To: Ben Quinn [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, August 27, 2001 5:58 PM
Subject: Re: [PHP] Web fetching script


 On Mon, 27 Aug 2001 17:10, Ben Quinn wrote:
  G'day Guys
 
  Sorry, i should have explained it better.  What i want to do is grab 2
  different lots of text from the same page.  Say the page had this text
 
  10am
  Some text
  12pm
  Different text
  2pm
 
  I want to be able to grab from say 10am to 12pm and store it in $texta
  and then grab from 12pm to 2pm and store it in $textb - but with the
  script i've pasted below  i can only grab one lot of text at a time! to
  grab 2 lots of text from the same page i have to have 2 scripts and in
  the end i've opened up and closed the page twice! Anyway, any help i
  can get will be much appreciated
 
  This is the script i'm using
  ?
 
  $GrabURL = url.txt;
  $GrabStart = start;
  $GrabEnd = stop;
 
  $file = fopen($GrabURL, r);
  $rf = fread($file, 2);
  $grab = eregi($GrabStart(.*)$GrabEnd, $rf, $printing);
 
  $printing[1] = str_replace(replacedatestamp, withnewstamp,
  $printing[1]);

 Here, reset your start and finish criteria and do the eregi again,
 assigning the result to $grab2.
 
  fclose($file);
  echo $printing[1];
 
  ?

 Unless I'm missing what you're trying to do, of course.

 --
 David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
 CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA

Manure Occurs.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Web fetching script

2001-08-22 Thread Ben Quinn

Hi all

I have a web fetching script that fetches text from an external URL and I
would like to grab two lots of text at the same time - can anyone tell me
why this isn't working?

?

$GrabURL = http://grabfile.html;;
$GrabStart = start;
$GrabEnd = stop;

$file = fopen($GrabURL, r);

$rf = fread($file, 2);

$grab = eregi($GrabStart(.*)$GrabEnd, $rf, $printing);

echo $printing;

rewind($rf);

$grab2 = eregi($GrabStart(.*)$GrabEnd, $rf, $printingb);

echo $printingb;

fclose($file);

?






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Importing a GIF image and making it transparent

2001-08-21 Thread Ben Quinn

Hi all

 I've been trying to make a script that imports a GIF image from an external
server (i have permission to do this, see below) and designates a certain
colour transparent for some time now and i'm not having much luck. Can
anyone help or provide a script that does this?

The images i'm using are Australian weather radar images with a rather plain
brown background

http://mirror.bom.gov.au/radar/IDR503.gif

What i'd like to do is have an orographic map for the background, like this

http://www.bsch.au.com/temp/preview.jpg

The radar images are available to the public and i have permission to make
these alterations

Is it possible for PHP to download a GIF image (through HTTP), designate a
certain colour transparent and then display the image on the screen without
saving the image to the server?

Any help i can get with this would be much appreciated




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Importing a GIF image and making it transparent

2001-08-21 Thread Ben Quinn


Thanks to those who replied, i finally worked it out - the script has been
pasted below just incase anyone is sifting through the list archives looking
for the same thing.  One thing though, my server doesn't allow me to open a
GIF file through HTTP - ie this doesn't work

$image = ImageCreateFromGif(http://www.severname.com/image.gif);

Does anyone know of a server/hosting company that will allow me to do this?


The script:

?

$id = ImageCreateFromGif(image.gif);

$trans = imagecolorexact($id, 120, 100, 90);

imagecolortransparent($id, $trans);

ImageGIF($id,newimage.gif);

echo done;

?



- Original Message -
From: Chris Lambert [EMAIL PROTECTED]
To: Ben Quinn [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, August 21, 2001 4:49 PM
Subject: Re: [PHP] Importing a GIF image and making it transparent


 It doesn't look like you'll be able to use GD, as GIF support was dropped
in
 1.6 and JPEG support was only added in 1.8. You'd have to experiment with
 ImageMagick, or another command-line tool independent of PHP.

 /* Chris Lambert, CTO - [EMAIL PROTECTED]
 WhiteCrown Networks - More Than White Hats
 Web Application Security - www.whitecrown.net
 */

 - Original Message -
 From: Ben Quinn [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, August 21, 2001 2:23 AM
 Subject: [PHP] Importing a GIF image and making it transparent


 | Hi all
 |
 |  I've been trying to make a script that imports a GIF image from an
 external
 | server (i have permission to do this, see below) and designates a
certain
 | colour transparent for some time now and i'm not having much luck. Can
 | anyone help or provide a script that does this?
 |
 | The images i'm using are Australian weather radar images with a rather
 plain
 | brown background
 |
 | http://mirror.bom.gov.au/radar/IDR503.gif
 |
 | What i'd like to do is have an orographic map for the background, like
 this
 |
 | http://www.bsch.au.com/temp/preview.jpg
 |
 | The radar images are available to the public and i have permission to
make
 | these alterations
 |
 | Is it possible for PHP to download a GIF image (through HTTP), designate
a
 | certain colour transparent and then display the image on the screen
 without
 | saving the image to the server?
 |
 | Any help i can get with this would be much appreciated
 |
 |
 |
 |
 | --
 | PHP General Mailing List (http://www.php.net/)
 | To unsubscribe, e-mail: [EMAIL PROTECTED]
 | For additional commands, e-mail: [EMAIL PROTECTED]
 | To contact the list administrators, e-mail: [EMAIL PROTECTED]
 |
 |
 |


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Importing a GIF image and making it transparent

2001-08-21 Thread Ben Quinn

G'day Chris

Yep i did, with this code

$id = ImageCreateFromGif(http://mirror.bom.gov.au/radar/IDR503.gif;);

I get this error :

Warning: imagecreatefromgif: Sockets are not supported for image type 'GIF'
in /home/httpd/html/bsch/temp/monkey.php on line 5

Brick wall #9080982093848934  - but i guess that makes the end result just
that little bit better :-)

BTW - can anyone recommend a good GD install tutorial? If i can't run this
script on my website i'll install PHP and GD and run it from my computer



- Original Message -
From: Chris Lambert [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 21, 2001 8:45 PM
Subject: Re: [PHP] Importing a GIF image and making it transparent


 Did you use quotes around the URL when trying to access the image?

 /* Chris Lambert, CTO - [EMAIL PROTECTED]
 WhiteCrown Networks - More Than White Hats
 Web Application Security - www.whitecrown.net
 */

 - Original Message -
 From: Ben Quinn [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, August 21, 2001 6:09 AM
 Subject: Re: [PHP] Importing a GIF image and making it transparent


 |
 | Thanks to those who replied, i finally worked it out - the script has
been
 | pasted below just incase anyone is sifting through the list archives
 looking
 | for the same thing.  One thing though, my server doesn't allow me to
open
 a
 | GIF file through HTTP - ie this doesn't work
 |
 | $image = ImageCreateFromGif(http://www.severname.com/image.gif);
 |
 | Does anyone know of a server/hosting company that will allow me to do
 this?
 |
 |
 | The script:
 |
 | ?
 |
 | $id = ImageCreateFromGif(image.gif);
 |
 | $trans = imagecolorexact($id, 120, 100, 90);
 |
 | imagecolortransparent($id, $trans);
 |
 | ImageGIF($id,newimage.gif);
 |
 | echo done;
 |
 | ?
 |
 |
 |
 | - Original Message -
 | From: Chris Lambert [EMAIL PROTECTED]
 | To: Ben Quinn [EMAIL PROTECTED]
 | Cc: [EMAIL PROTECTED]
 | Sent: Tuesday, August 21, 2001 4:49 PM
 | Subject: Re: [PHP] Importing a GIF image and making it transparent
 |
 |
 |  It doesn't look like you'll be able to use GD, as GIF support was
 dropped
 | in
 |  1.6 and JPEG support was only added in 1.8. You'd have to experiment
 with
 |  ImageMagick, or another command-line tool independent of PHP.
 | 
 |  /* Chris Lambert, CTO - [EMAIL PROTECTED]
 |  WhiteCrown Networks - More Than White Hats
 |  Web Application Security - www.whitecrown.net
 |  */
 | 
 |  - Original Message -
 |  From: Ben Quinn [EMAIL PROTECTED]
 |  To: [EMAIL PROTECTED]
 |  Sent: Tuesday, August 21, 2001 2:23 AM
 |  Subject: [PHP] Importing a GIF image and making it transparent
 | 
 | 
 |  | Hi all
 |  |
 |  |  I've been trying to make a script that imports a GIF image from an
 |  external
 |  | server (i have permission to do this, see below) and designates a
 | certain
 |  | colour transparent for some time now and i'm not having much luck.
Can
 |  | anyone help or provide a script that does this?
 |  |
 |  | The images i'm using are Australian weather radar images with a
rather
 |  plain
 |  | brown background
 |  |
 |  | http://mirror.bom.gov.au/radar/IDR503.gif
 |  |
 |  | What i'd like to do is have an orographic map for the background,
like
 |  this
 |  |
 |  | http://www.bsch.au.com/temp/preview.jpg
 |  |
 |  | The radar images are available to the public and i have permission
to
 | make
 |  | these alterations
 |  |
 |  | Is it possible for PHP to download a GIF image (through HTTP),
 designate
 | a
 |  | certain colour transparent and then display the image on the screen
 |  without
 |  | saving the image to the server?
 |  |
 |  | Any help i can get with this would be much appreciated
 |  |
 |  |
 |  |
 |  |
 |  | --
 |  | PHP General Mailing List (http://www.php.net/)
 |  | To unsubscribe, e-mail: [EMAIL PROTECTED]
 |  | For additional commands, e-mail: [EMAIL PROTECTED]
 |  | To contact the list administrators, e-mail:
 [EMAIL PROTECTED]
 |  |
 |  |
 |  |
 | 
 | 
 |  --
 |  PHP General Mailing List (http://www.php.net/)
 |  To unsubscribe, e-mail: [EMAIL PROTECTED]
 |  For additional commands, e-mail: [EMAIL PROTECTED]
 |  To contact the list administrators, e-mail:
[EMAIL PROTECTED]
 | 
 | 
 |
 |
 | --
 | PHP General Mailing List (http://www.php.net/)
 | To unsubscribe, e-mail: [EMAIL PROTECTED]
 | For additional commands, e-mail: [EMAIL PROTECTED]
 | To contact the list administrators, e-mail: [EMAIL PROTECTED]
 |
 |
 |


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Links

2001-04-28 Thread Ben Quinn

Hi all,

I've been trying for many hours to find information on this, but not having
much luck.  What i want to do is have an index.php page, and then each link
on that page has a URL like index.php?linkidie.  index.php?links  etc

Can anyone point me in the right direction?




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Transfering an image

2001-04-25 Thread Ben Quinn

Hi all,

I am trying to copy an image from an external server and save it to my own.
I have the following script to do this for a txt file and it works great!

?

$page  = ../temp/yep.txt;

$date = date(http:/www.example.com/yep.txt);

$cartFile = fopen($page,a);
fwrite($cartFile,$date,strlen($date));
fclose($cartFile);

?

But i can't get it to work for image files - the images are saved and
displayed on screen as a whole bunch of rubbish.

I'd appreciate any help you can give me



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]