Search found 7 matches

by Icarus
Fri Oct 25, 2002 10:26 pm
Forum: PHP coding => General
Topic: HTTP URL error code
Replies: 1
Views: 1217

Have a look at the advanced http class at http://lightwood.mirrors.phpclasses.org ... e/576.html

That should get you started
by Icarus
Fri Oct 25, 2002 10:22 pm
Forum: PHP coding => Images
Topic: How to draw a dynamic pic
Replies: 2
Views: 3403

Use the example on:
http://www.php.net/manual/en/function.imagecreate.php

To create the base image.

and use imageline() to draw your curves.
by Icarus
Fri Oct 25, 2002 6:07 am
Forum: PHP coding => General
Topic: what is the comand for loading images to a php file?
Replies: 4
Views: 1800

<?php header("Content-type: image/png"); $string = $_GET['text']; $im = imagecreatefrompng("images/button1.png"); $orange = imagecolorallocate($im, 220, 210, 60); $px = (imagesx($im) - 7.5 * strlen($string)) / 2; imagestring($i...
by Icarus
Fri Oct 25, 2002 3:29 am
Forum: PHP coding => General
Topic: what is the comand for loading images to a php file?
Replies: 4
Views: 1800

Re: what is the comand for loading images to a php file?

juansoul wrote:what is the comand for loading images to a php file?
and how do i do this ?


Have a look at the example at :
http://www.php.net/manual/en/ref.image.php
by Icarus
Fri Oct 25, 2002 1:46 am
Forum: PHP coding => Images
Topic: How to draw a dynamic pic
Replies: 2
Views: 3403

Re: How to draw a dynamic pic

novice wrote:I want to know how to draw a dynamic of data from mysql database!

thanks!


In what way?
Get the picture from a MySQL db or create a picture by using multiple values from a MySQL db (e.g. PieChart).
by Icarus
Thu Oct 24, 2002 11:30 pm
Forum: PHP coding => General
Topic: Getting the content-type
Replies: 3
Views: 1468

If you do : [maurits@shadow maurits]$ telnet localhost 80 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. HEAD /paperclip.gif HTTP/1.0 HTTP/1.1 200 OK Date: Fri, 25 Oct 2002 07:31:58 GMT Server: Apache-Server/1.3.26 PHP/4.2.3 Last-Modified: Wed, ...
by Icarus
Thu Oct 24, 2002 9:36 am
Forum: PHP coding => General
Topic: Getting the content-type
Replies: 3
Views: 1468

Getting the content-type

Hi All,

I was just wondering ....
Is there a way to get the content-type of a remote file

lets say http://someserver.com/file/somefile.ext

Or does anybody know a code snippet that does this ?