[PHP] Passing Values to an image script

2002-06-05 Thread Anzak Wolf
I'm stuck on an odd problem with sending values between scripts. Take the following example. $h=20; $w=80; print ""; Now this is a much watered down version of what I'm doing, but the idea is the same. I don't want to put the values I'm passing to the image in the html code to be passed wit

Re: [PHP] Passing Values to an image script

2002-06-05 Thread Anzak Wolf
>On Thu, 6 Jun 2002, Anzak Wolf wrote: > > $h=20; > > $w=80; > > print ""; > > > > Now this is a much watered down version of what I'm doing, but the idea >is > > the same. I don't want to put the values I'm passing to the im

[PHP] POST/GET var problem

2002-06-12 Thread Anzak Wolf
take the following html code Now when that is created by a php script the value that is passed back is the following. myimg.x="Click loc X"&myimg.y="Click loc y" I could leave the name attribute off and I get an x/y value set that I can use for some math functions I have. The problem is

Re: [PHP] Gradients in PHP & GD

2002-06-26 Thread Anzak Wolf
I wrote a Color gradient in GD it is actually very simple. Though you need GD 2.x and mine is designed to go from left to right changing the color to the center line then changing it back to the edge. If your interested let me know and I'll send you a code snippet. Though I would like to see

[PHP] Gradients using GD

2002-06-26 Thread Anzak Wolf
After much pain and suffering I figured out how to do dual color Gradients using GD in an oval. While it is not as clean as I'd like it works and can be tweaked as needed. In the process I also found some very cool Gradient effects that could be used as well. I'm currently working on writing

Re: [PHP] Gradients using GD

2002-06-27 Thread Anzak Wolf
> > After much pain and suffering I figured out how to do dual color >Gradients > > using GD in an oval. While it is not as clean as I'd like it works and >can > > be tweaked as needed. In the process I also found some very cool >Gradient > > effects that could be used as well. I'm currently

[PHP] Alpha Channel Question

2002-07-02 Thread Anzak Wolf
I'm having a small problem understanding Alpha channels. I thought that the Alpha Channel was the level of transparency but the following code does not seem to work. $DI = 50; $MOD = 127/$DI; ImageAlphaBlending($im, true); for ($x=0; $x<$DI; $x++) { $AL = 127-$MOD*$x; $GLColor=

[PHP] Images with GD

2002-05-17 Thread Anzak Wolf
I'm working on getting some image creation scripts done and I have one requirement that I'm not sure how to handle. I have a base image that I can create with no problem. The problem comes in that I want to set some text in the exact center of the image. Is there some sort of formula I can u

[PHP] Global vars

2002-06-01 Thread Anzak Wolf
I have a question about global vars. Why is it that I have to declare a var global if I'm using it across included files. For example the only why I can get this var to work is by making it global. main.php loader.inc builder.inc build_whizzer(); ?> render.inc html(); ?> considering tha

[PHP] GD 2.x formulas

2002-06-03 Thread Anzak Wolf
Does anyone know of a good site for GD 2.x formulas using Alpha channels? Currently I'm trying to make a color gradiant, but in an oval rather than a line. I have a tools that can do this on an image, but my goal is to allow the color to be dynamic so I need to build it on the fly. -Jim ___

[PHP] MySQL arrays

2002-03-26 Thread Anzak Wolf
I'm trying to do something a little different in my database class I have a method to do the query and store it in an array. function query ($s = "") { $q = mysql_query($s,$this->database_connect_id); if (!$q) { $tools->error(array("Query Resulted in NULL value"))

RE: [PHP] MySQL arrays

2002-03-26 Thread Anzak Wolf
Sorry my mistake the array is $this->query_id the function is $query I still get the same results though. >From: Rick Emery <[EMAIL PROTECTED]> >To: 'Anzak Wolf' <[EMAIL PROTECTED]>, [EMAIL PROTECTED] >Subject: RE: [PHP] MySQL arrays >Date: Tue, 26

RE: [PHP] MySQL arrays

2002-03-26 Thread Anzak Wolf
>CHANGE: > > $len = sizeof($this->query_id); > > $len++; > > $this->query_id = array($len=>&$q); > > mysql_free_result($q); > > return $len; > >TO: > $this->query_id[] = $q; > return sizeof($this->query_id); > >second: >$q is a resource, th

[PHP] List server

2002-04-01 Thread Anzak Wolf
I thought I remember reading somewhere about a list server written in PHP. Does anyone know of something like this and is it any good? -Jim _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. --

[PHP] List server

2002-04-02 Thread Anzak Wolf
Since no one seems to have heard of a php driven list server could someone get me started on writting my own by telling me who I would read from stdin. -Jim _ Join the world’s largest e-mail service with MSN Hotmail. http:/

Re: [PHP] List server

2002-04-02 Thread Anzak Wolf
>On Tuesday 02 April 2002 22:10, Anzak Wolf wrote: > > Since no one seems to have heard of a php driven list server could >someone > > get me started on writting my own by telling me who I would read from > > stdin. > >fopen("php://stdin",

Re: [PHP] Assigning unique form names...

2002-04-08 Thread Anzak Wolf
I'm not sure if I can help you much here, but something I might suggest is going to a single page approach. I have a class on www.phpclasses.org that you can download called Command Class. Basicly the idea is that you have a single index.php file which loads your headers and footer informatio

[PHP] Function stored in a database

2002-04-09 Thread Anzak Wolf
I have a question about storing functions. I have some security mode stuff I'm working on and what I'm thinking is that as part of the security mode table I would store a function that could be called if the security mode is called. Something like this. Select s.function from s Security g gro

Re: [PHP] Re: mailing list using mail()

2002-04-10 Thread Anzak Wolf
Is there anyway you could break this up into managable chunks maybe. I'm currently doing something similar in that I'm writing a PHP based list server app that uses a heirarchical grouping system, but mine is broken done into smaller chunks based on group and user permissions. What if you did

Re: [PHP] mailing list using mail()

2002-04-10 Thread Anzak Wolf
> > > the combination of PHP and mysql and the ease of use of the mail() > > function obviously leads me to believe that it *should* be a cinch to > > use php to send customised messages to all my users , of whom I have > > details in a mysql table by simply running a "select * from table" and > >

[PHP] Password encyption

2004-07-02 Thread Anzak Wolf
I have been looking at a number of scripts and they all seem to use something like a config.php file where there is a var called something like $dbpasswd but the password is still clear text. While I understand that the file only sets vars and it can be put outside the document root so that it

Re: [PHP] Password encyption

2004-07-02 Thread Anzak Wolf
I realize the key needs to be stored somewhere which is part of the problem of how to make it a bit more secure. I just don't feel safe if a password in a flat file in clear text. Ideally the database should support something like an ssh style public/private Key auth where the private Key is s

RE: [PHP] Password encyption

2004-07-02 Thread Anzak Wolf
>[snip] >I realize the key needs to be stored somewhere which is part of the >problem of how to make it a bit more secure. I just don't feel safe if >a password in a flat file in clear text. Ideally the database should >support something >like an ssh style public/private Key auth where the privat

RE: [PHP] Password encyption

2004-07-02 Thread Anzak Wolf
>So host your own server. That way nobody but you has access to it. >Then you could store the password wherever you want, unecrypted, and it >wouldn't matter. If you're running an application that's that security >conscious, you shouldn't be using a shared server anyway. I do run my own server bu