[PHP] system()

2001-08-07 Thread Jon Yaggie

how can i find out what kind of error i am recieving when i call a command thru 
system()?





Re: [PHP] Re: Any good gif/jpg processing tool for PHP??

2001-08-06 Thread Jon Yaggie

how do you feel about the speed of imagemagick?  fastwr? slower than gd
functions?


- Original Message -
From: "Girish Nath" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 07, 2001 1:56 PM
Subject: Re: [PHP] Re: Any good gif/jpg processing tool for PHP??


> Hi
>
> I've used ImageMagick in the past(it runs on NT and Linux), I found it
gives
> higher quality results than the builtin functions especially when resizing
> jpegs.
>
> http://www.imagemagick.org
>
>
> Girish
>
>
> - Original Message -
> From: "Gaylen Fraley" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 07, 2001 4:43 AM
> Subject: [PHP] Re: Any good gif/jpg processing tool for PHP??
>
>
> PHP does exactly that.  Look in the manual for the Image functions.
>
> --
>
> "Diego Fulgueira Pastor" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I am sure many of you have had this same problem. I want all uploaded
> images
> > to my site (gifs and jpg)  to be resized "on the fly" so that all have
the
> > same width and height. Does anyone knows about a tool (free, if
possible)
> > that can do this under Win2k, IIS 5.0 and that can be used with PHP 4.0?
> A
> > php extension (dll) would be great. If it works only for one format (gif
> or
> > jpg) is fine.
> > Thanks in advance for any tip.
> >
> > Cheers, Diego.
> >
> >
>
>
>
> --
> 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] Text area ...

2001-08-06 Thread Jon Yaggie

i take it you input this into a  hence the subject

try this  
this should carry over the formatting into the cariable or how ever your
store it






Thank You,

Jon Yaggie
www.design-monster.com

And they were singing . . .

'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code

101 little bugs in the code . . .'

And it continued until they reached 0


- Original Message -
From: "Coconut Ming" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 07, 2001 3:24 AM
Subject: [PHP] Text area ...


> hi..
> Did you feel it is strange alignment when you output the same thing
> again in PHP...
>  I mean the line break... For example I enter the following text and the
> order of text as below
>  I
>  AM
>  A
> GUY
>
>  so... I store it when I output it again.. It is display as I AM A
> GUY
>  the line break or [enter] key just does not detected... Anyone know
> any  solution for this? thanks for helping.
>
>  Sincerely
>  Kok Ming
>
>
> --
> 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] age

2001-08-05 Thread Jon Yaggie

does any one know where i can get a script that will convert a birthdate in to an age. 
 i have one half written however i have incounter difficulties with dealing with leap 
years.  perhaps soem one would know the solution  . ..  or just a premade script is 
fine


$test = strtotime ("January 12, 1944");
$test2 = strtotime ("January 9, 1954");

$oneyear = 3600 * 24 * 365;

$diff = $test2 - $test;
$ans = $diff/$oneyear;

echo $ans;





Thank You,
 
Jon Yaggie
www.design-monster.com
 
And they were singing . . . 
 
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
 
101 little bugs in the code . . .'
 
And it continued until they reached 0





Re: [PHP] Q: Hiding Folder Directories from public while still...

2001-08-03 Thread Jon Yaggie

dont knwo if ti easier but much better yes . . .


- Original Message -
From: "scott [gts]" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Friday, August 03, 2001 12:38 AM
Subject: RE: [PHP] Q: Hiding Folder Directories from public while still...


> if you're using apache, there's a *much* easier/secure way
> of doing this.
>
> setup an .htaccess file to restrict access to certain
> username/passwords.
>
> check out both:
> man htaccess
> man htpasswd
>
>
> > -Original Message-
> > From: Jon Yaggie [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, August 02, 2001 1:34 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [PHP] Q: Hiding Folder Directories from public while
> > still...
> >
> >
> > i dont know if this is elagant but ti works.  but a fake index.htmlin
your
> > directory for browsers to default to.   . ..
> >
> >
> > - Original Message -
> > From: "Marcus James Christian" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, August 03, 2001 12:30 AM
> > Subject: [PHP] Q: Hiding Folder Directories from public while still...
> >
> >
> > > Hello,
> > >
> > > How does one do the trick of hiding a  folder's directory listing from
a
> > > public browser?
> > >
> > > i.e.  Lets say the full address is
www.mysite.com/php/magicphppage.php
> > >
> > > Well I still need some other files to read and write to
> > > magicphppage.php   I don't want the public to be able to simply type
> > > www.mysite.com/php/ and have all of my php files show up on a
funky
> > > "virtual directory".
> > >
> > > Thanks,
> > > Marcus
> > >
> > > --
> > > Marcus James Christian - UNLIMITED -
> > > Multimedia Internet Design
> > > http://mjchristianunlimited.com
> > >
> > > Proudly presents the music of CHROMATICUS
> > > at http://chromaticus.com
> > > and http://artists.mp3s.com/artists/275/chromaticus.html
> > >
> > >
> > >
> > > --
> > > 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]




Re: [PHP] Spot the difference?

2001-08-03 Thread Jon Yaggie

isnt this fact a good enough reason to believe it worthless???


- Original Message -
From: "Kyle Smith" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 03, 2001 6:34 AM
Subject: [PHP] Spot the difference?


Whats the difference between ASP and PHP cause ASP has gotta have something
good about it cause microsoft uses it!


-lk6-
http://www.StupeedStudios.f2s.com
Home of the burning lego man!

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666





-- 
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] Q: Hiding Folder Directories from public while still...

2001-08-03 Thread Jon Yaggie

i dont know if this is elagant but ti works.  but a fake index.htmlin your
directory for browsers to default to.   . ..


- Original Message -
From: "Marcus James Christian" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 03, 2001 12:30 AM
Subject: [PHP] Q: Hiding Folder Directories from public while still...


> Hello,
>
> How does one do the trick of hiding a  folder's directory listing from a
> public browser?
>
> i.e.  Lets say the full address is  www.mysite.com/php/magicphppage.php
>
> Well I still need some other files to read and write to
> magicphppage.php   I don't want the public to be able to simply type
> www.mysite.com/php/ and have all of my php files show up on a funky
> "virtual directory".
>
> Thanks,
> Marcus
>
> --
> Marcus James Christian - UNLIMITED -
> Multimedia Internet Design
> http://mjchristianunlimited.com
>
> Proudly presents the music of CHROMATICUS
> at http://chromaticus.com
> and http://artists.mp3s.com/artists/275/chromaticus.html
>
>
>
> --
> 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] Fw: detecting mysql

2001-08-01 Thread Jon Yaggie



- Original Message -
From: "sarahana" <[EMAIL PROTECTED]>
To: "Jon Yaggie" <[EMAIL PROTECTED]>
Sent: Thursday, August 02, 2001 6:26 PM
Subject: detecting mysql


> Does anybody here know how to detect with php whether mysql is installed
or
> not.. ? Thanks, I haven't been able to get anything from the other lists..
> sarahana
>


-- 
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] Re: HTTP_SESSION_VARS

2001-08-01 Thread Jon Yaggie

Actually after an hours nap i found the problem.  It is not something anyone
could have helped me with since i didnt give complete enough code.   the
very simple solution was stupidly i used it in a function without declaring
ir global.  all is good now.


- Original Message -
From: "Richard Lynch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 02, 2001 3:17 AM
Subject: [PHP] Re: HTTP_SESSION_VARS


> >while (list ($key, $val) = each ($HTTP_session_VARS)) {
> >echo "$key => $val";
> >}
> >
> >i get the error -
> >
> >Warning: Variable passed to each() is not an array or object in
> /var/www/html/adult/func.php >on line 5
> >
> >and well it looks liek an array to me . . is there soemthing i can do to
> make this work?
>
> Spell it with SESSION, not session.
>
> $HTTP_session_VARS ain't nothing unless you set it.
>
> --
> WARNING [EMAIL PROTECTED] address is an endangered species -- Use
> [EMAIL PROTECTED]
> Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
> Volunteer a little time: http://chatmusic.com/volunteer.htm
>
>
>
>
> --
> 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] HTTP_SESSION_VARS

2001-08-01 Thread Jon Yaggie

SORRY i just coppied it wrong
the actual code is capitalized

while(list($k, $v) = each($HTTP_SESSION_VARS))


- Original Message -
From: "Faisal Nasim" <[EMAIL PROTECTED]>
To: "Jon Yaggie" <[EMAIL PROTECTED]>
Sent: Thursday, August 02, 2001 12:23 AM
Subject: Re: [PHP] HTTP_SESSION_VARS


> Make session capital!
>
> $HTTP_SESSION_VARS instead of $HTTP_session_VARS
>
> Might also use:
>
> foreach ( $HTTP_SESSION_VARS as $k => $v )
> {
>   // etc
> }
>
> Faisal Nasim
> FreeWebWare.com
>
> At 12:17 AM 8/2/2001 +0700, you wrote:
> >when i try this then   .. . .
> >
> >
> >
> >while (list ($key, $val) = each ($HTTP_session_VARS)) {
> > echo "$key => $val";
> >}
> >
> >i get the error -
> >
> >Warning: Variable passed to each() is not an array or object in
> >/var/www/html/adult/func.php on line 5
> >
> >and well it looks liek an array to me . . is there soemthing i can do to
> >make this work?
> >
> >
> >
> >Thank You,
> >
> >Jon Yaggie
> >www.design-monster.com
> >
> >And they were singing . . .
> >
> >'100 little bugs in the code
> >100 bugs in the code
> >fix one bug, compile it again
> >101 little bugs in the code
> >
> >101 little bugs in the code . . .'
> >
> >And it continued until they reached 0


-- 
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] HTTP_SESSION_VARS

2001-08-01 Thread Jon Yaggie

when i try this then   .. . .



while (list ($key, $val) = each ($HTTP_session_VARS)) {
echo "$key => $val";
}

i get the error -

Warning: Variable passed to each() is not an array or object in 
/var/www/html/adult/func.php on line 5

and well it looks liek an array to me . . is there soemthing i can do to make this 
work?



Thank You,
 
Jon Yaggie
www.design-monster.com
 
And they were singing . . . 
 
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
 
101 little bugs in the code . . .'
 
And it continued until they reached 0





Re: [PHP] env var

2001-08-01 Thread Jon Yaggie

thanks dave and phillip,
(accidentally emailed dave instead of the list the first time)

i found it in the manual just before i got the messages.

is there a reson i get soem of these twice  is it the fault of the
people sending them?  the list?  or my mail program???



- Original Message -
From: "Philip Olson" <[EMAIL PROTECTED]>
To: "Jon Yaggie" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, August 01, 2001 11:36 PM
Subject: Re: [PHP] env var


> See :
>
>   http://www.php.net/manual/en/ref.session.php
>
> Note the use of $HTTP_SESSION_VARS within the examples, this may be what
> you're referring to.
>
> Regards,
> Philip
>
>
> On Wed, 1 Aug 2001, Jon Yaggie wrote:
>
> > is there not an array that saves all session variables?  I just got
> > done looking for it and though i am sure there is a list of all these
> > variable i am not sure where (it is not in my info file).  thanks
> >
> >
> > btw if you are the RTM (RTF(antastic)M) guy no need reply.
> >
> >
> >
> >
> >
> > Thank You,
> >
> > Jon Yaggie
> > www.design-monster.com
> >
> > And they were singing . . .
> >
> > '100 little bugs in the code
> > 100 bugs in the code
> > fix one bug, compile it again
> > 101 little bugs in the code
> >
> > 101 little bugs in the code . . .'
> >
> > And it continued until they reached 0
> >
> >
> >
>
>
> --
> 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] env var

2001-08-01 Thread Jon Yaggie

is there not an array that saves all session variables?   I just got done looking for 
it and though i am sure there is a list of all these variable i am not sure where (it 
is not in my info file).thanks


btw if you are the RTM (RTF(antastic)M) guy no need reply.





Thank You,
 
Jon Yaggie
www.design-monster.com
 
And they were singing . . . 
 
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
 
101 little bugs in the code . . .'
 
And it continued until they reached 0





[PHP] mail() a list favorite

2001-07-28 Thread Jon Yaggie

ok please ignore my rather ongoing stupidity.  I briefly scanned my manual and didnt 
find this.  so figured since everyone here should be experts on this function with so 
many questions asked. . 
Does this require a specific mail server e.g. sendmail?




Thank You,
 
Jon Yaggie
www.design-monster.com
 
And they were singing . . . 
 
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
 
101 little bugs in the code . . .'
 
And it continued until they reached 0





[PHP] search engines

2001-07-28 Thread Jon Yaggie

it is common now that search engines use xml respondses to affiliate requests for 
information.  this is fine in that i can process the xml.  my concern is the sending 
and recieving of data.  how is is done?  the current project i have to parse a 
gigantic url with xml in it and send this.  but how do i get the info back and process 
it?  should i be using cURL? something else  sockets?(shiver)




Thank You,
 
Jon Yaggie
www.design-monster.com
 
And they were singing . . . 
 
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
 
101 little bugs in the code . . .'
 
And it continued until they reached 0





Re: [PHP] successful error?

2001-07-27 Thread Jon Yaggie


okay another one we never discussed.  what is this?
/image_blu2.jpg

is this an element?  i rememeber only discussing

$timage
$logo
$button
$textmenu


so what are the other ones

and if you wanted to include addition elements why not tell me before.  i
asked you to list ALL possible elements for a reason  .. .

Thank You,

Jon Yaggie
www.design-monster.com

And they were singing . . .

'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code

101 little bugs in the code . . .'

And it continued until they reached 0


- Original Message -----
From: "Jon Yaggie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 9:57 PM
Subject: [PHP] successful error?



okay i just got this error.  what doe sit mean

Warning: file("") - Success in /var/www/html/login/login.php on line 45

the lines of code involved are

 $filename = "log/userdb.txt".
 $list = file($filename);


Thank You,

Jon Yaggie
www.design-monster.com

And they were singing . . .

'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code

101 little bugs in the code . . .'

And it continued until they reached 0





-- 
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] successful error?

2001-07-27 Thread Jon Yaggie


okay i just got this error.  what doe sit mean

Warning: file("") - Success in /var/www/html/login/login.php on line 45

the lines of code involved are

 $filename = "log/userdb.txt".
 $list = file($filename);


Thank You,
 
Jon Yaggie
www.design-monster.com
 
And they were singing . . . 
 
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
 
101 little bugs in the code . . .'
 
And it continued until they reached 0





Re: [PHP] Re: Stripping HTML

2001-07-26 Thread Jon Yaggie

hmm i think there is a function specificlly for html.  but i am not sure

have you tried strip_tags()  it will remove html and php tags from a string
. . .




Thank You,

Jon Yaggie
www.design-monster.com

And they were singing . . .

'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code

101 little bugs in the code . . .'

And it continued until they reached 0


- Original Message -
From: "Tobe Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 27, 2001 2:37 AM
Subject: [PHP] Re: Stripping HTML


> I am trying to check a data element ($data - which may be up to a few
paragraphs in length) which has html codes within the text.  I need to strip
out all the html coding.  Is there an fairly simple way to do this such as
using the <  > signs as markers for checking and deleting the html data from
the data element to be displayed?
>
> Tobe Johnson
> Johnson & Associates, Inc.
> http://www.johnsons.net
> Free web based email and web sites
>
>
> --
> Brought to you by Johnson & Associates, Inc.
> http://www.johnsons.net
> Free web sites and web based email accounts
>
>
> --
> 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] hosting

2001-07-26 Thread Jon Yaggie

I am aware this is a bit off topic but i need advice.  i have a client that wants to 
set up hosting.  we need to get him a control panel for administrative use.  We have 
search open source stuff and there is one PHP that is alpha.  We have no problem 
paying for it if we could find one.  PHP would be nice so we could easily integrate it 
in the rest of the site.  Any one able to point me in the right direction?

Thank You,
 
Jon Yaggie
www.design-monster.com
 
And they were singing . . . 
 
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
 
101 little bugs in the code . . .'
 
And it continued until they reached 0





Re: [PHP] Why doesn't this simple query work?

2001-07-25 Thread Jon Yaggie

hmmm i think you need to always have quotes around string regardless of if
they are variables . .  .
$result = mysql_query("SELECT shootID FROM shoots WHERE
(location='$location')");

- Original Message -
From: "Seb Frost" <[EMAIL PROTECTED]>
To: "php-general" <[EMAIL PROTECTED]>
Sent: Thursday, July 26, 2001 3:10 AM
Subject: [PHP] Why doesn't this simple query work?


> Driving me mad.  Works if I put a string in quote marks instead of the
> variable $location.
>
>
> $result = mysql_query("SELECT shootID FROM shoots WHERE
> (location=$location)");
>
>
> This should work shouldn't it?  If it's a problem with the variable being
> embedded in the query what's the easiest way to overcome this?
>
> cheers,
>
> seb
>
> -Original Message-
> From: Sheridan Saint-Michel [mailto:[EMAIL PROTECTED]]
> Sent: 19 July 2001 14:50
> To: php-general
> Subject: Re: [PHP] REGEXP
>
>
> I am not sure if I am understanding you... but if you just want to return
> the boundary try
>
> preg_match("|boundary=\"([^\"].+)\"|Uis", $text, $regs );
> $boundary = $regs[1];
>
> I am guessing that you want the boundary from the lines
> > to avoid regexp (too lazy) but now I want to use it.  The final result I
> > would need is: B42DA66C4EC07C9B572A58FC so that I can search
>
> If you are looking for something else let me know
> Sheridan
>
> > -Original Message-
> > From: Adrian D'Costa [mailto:[EMAIL PROTECTED]]
> > Sent: Saturday, July 14, 2001 2:54 AM
> > To: php general list
> > Subject: [PHP] REGEXP
> >
> > Hi,
> >
> > I am trying to capture the Header from a mail for my webmail using php
> > and
> > pop3.  The header is something like this:
> > Content-Type: multipart/mixed;
> >  boundary="B42DA66C4EC07C9B572A58FC"
> >
> > When I use preg_split("/[\d;]*/", $buffer), I get
> > Content-Type: multipart/mixed;
> >
> > What I want is to return the whole line split by the ";".  I usually try
> > to avoid regexp (too lazy) but now I want to use it.  The final result I
> > would need is: B42DA66C4EC07C9B572A58FC so that I can search
> > in the body of the message for the rest of the parts.
> >
> > Any pointers would be helpful.
> >
> > Adrian
> >
> >
> > --
> > 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] magic quotes

2001-07-22 Thread Jon Yaggie

how do i get around this?i have a script works great for me, but the clients php 
config has this set magic_quotes_gpc on.  isnt there a varible i can change to 
eliminate this for my script?  if so how do you use it?





Thank You,
 
Jon Yaggie
www.design-monster.com
 
And they were singing . . . 
 
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
 
101 little bugs in the code . . .'
 
And it continued until they reached 0





Re: [PHP] oop thingie

2001-07-20 Thread Jon Yaggie

okay sorry i didnt clarify what i meant by empty.  meant when i do a
var_dump() on it i get an empty array.   i have searched most of the day but
in actuality it is rather straight forward.  $newpets() from user input.
and when i print it it is just fine but immediately after i call this
fuction

pets->dog->weekcount($newpets);

so i guess if the array prints find just before the function yet it still
shows an empty array i am baffle where else the problem could be the rest of
the code doesnt really even come near these values or function








Thank You,

Jon Yaggie
www.design-monster.com

And they were singing . . .

'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code

101 little bugs in the code . . .'

And it continued until they reached 0


- Original Message -
From: "Neil Kimber" <[EMAIL PROTECTED]>
To: "Jon Yaggie" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 6:31 PM
Subject: RE: [PHP] oop thingie


> Not sure about your code, but what you describe is perfectly faesible in
> PHP.
> If you are setting values in one part of your code and cannot see these
> values in another part of your code then I would suggest that you have
> reference problem somewhere. The code you provided looks fine, maybe the
> problem is elsewhere.
>
> Alternatively you are looking in th ewrong place. You say that
> pets->dog->lostpets is always empty, yet your code seems to suggest that
> pets->dog is an array of objects, in which case you should be looking at
> pets->dog[n]->lostpets rather than pets->dog->lostpets.
>
>
> -Original Message-
> From: Jon Yaggie [mailto:[EMAIL PROTECTED]]
> Sent: 20 July 2001 12:15
> To: [EMAIL PROTECTED]
> Subject: [PHP] oop thingie
>
>
> ok first of all i admit i am complete new to OOP.  Secondly didnt write
this
> script.  but there is my problem
>
> i declare a class say dog.  dog uses a constructor that has a few extra
> unassigned arrays.
>
> laster i declare a new instance of dog in another class (pets)  i invoke
the
> constructor and all is well with a few empty arrays as part of my object.
> but how can i put information in these arrays?  can i do it through pet?
> for example can i make a member function in pet that goes soemthing like
> this -
>
>   function wekkcount($id, $newpets) {
>   $i=0;
> while($newpets[$i])
>  {
> $this->dog[$id]->lostpets[$i] = $newpets[$i];
> $i++;
>  }
>
>
> where this refers to class pets and dog is an instance of dog?
>
> i have been trying to all day and even though i know for sure $newpets has
> information in it.  i always have an empty array in pets->dog->lostpets.
i
> am starting to believe maybe i just cant do it.  or maybe there is
soemthing
> stupid i am missing?
>
>
>
>
>
>
>
>
> Thank You,
>
> Jon Yaggie
> www.design-monster.com
>
> And they were singing . . .
>
> '100 little bugs in the code
> 100 bugs in the code
> fix one bug, compile it again
> 101 little bugs in the code
>
> 101 little bugs in the code . . .'
>
> And it continued until they reached 0
>
>


-- 
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] oop thingie

2001-07-20 Thread Jon Yaggie

ok first of all i admit i am complete new to OOP.  Secondly didnt write this script.  
but there is my problem

i declare a class say dog.  dog uses a constructor that has a few extra unassigned 
arrays.

laster i declare a new instance of dog in another class (pets)  i invoke the 
constructor and all is well with a few empty arrays as part of my object.  but how can 
i put information in these arrays?  can i do it through pet?   for example can i make 
a member function in pet that goes soemthing like this -

  function wekkcount($id, $newpets) {
  $i=0;
while($newpets[$i])
 {
$this->dog[$id]->lostpets[$i] = $newpets[$i];
$i++;
 }


where this refers to class pets and dog is an instance of dog?

i have been trying to all day and even though i know for sure $newpets has information 
in it.  i always have an empty array in pets->dog->lostpets.  i am starting to believe 
maybe i just cant do it.  or maybe there is soemthing stupid i am missing?








Thank You,
 
Jon Yaggie
www.design-monster.com
 
And they were singing . . . 
 
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
 
101 little bugs in the code . . .'
 
And it continued until they reached 0





Re: [PHP] whatever.php

2001-07-18 Thread Jon Yaggie

is whatever.php file encloded in php tags?  sounds like it is interupting it
as texted.  i didnt test this theory so dont kill me if i am wrong.  but it
is a guess


- Original Message -
From: "Jeremy Morano" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 19, 2001 12:53 AM
Subject: [PHP] whatever.php


> HI
> I'm using
> require("whatever.php")to access my variables...it works.
> The problem is my "whatever.php" page shows up on top of my current page.
> Is there a simple clear screen I can use???
> I tried include and the same thing happens.  What do I do?
>
> --
> 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] set var in PHP clarified

2001-07-18 Thread Jon Yaggie




- Original Message - 
From: "jessica lee tishmack" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 18, 2001 10:50 PM
Subject: [PHP] set var in PHP clarified


> Thanks for the prompt replies...but I think I should clarify...
> 
> In regular html, I would do this:
> 
> 
> 
assign like this

$TITLE = "some text here";




> 
> and header.html would have in it (among other things):
> 
> 

use like this

echo $TITLE;

or 

print"$TITLE";


if this is in html makde sure you have php tags arround it  




> 
> So, the title of the webpage would be "some title here"...
> 
> How can I accomplish the same thing in PHP?
> 
> Thanks,
> Jessica
> 
> 
> 
> 
> 
> -- 
> 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] set var in PHP

2001-07-18 Thread Jon Yaggie

i was wondering this too what happen to
some title here

reminds me of MIVA script or one of the build in things  maybe  (gulp)  a
front page thing?

anyways i suspect that
$TITLE = "some text here";

is what you want


- Original Message -
From: "Chris Boget" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 18, 2001 10:47 PM
Subject: RE: [PHP] set var in PHP


> > In html, I can do
> > 
>
> I've actually never seen this in html...
>
> > How do I do this in PHP?
>
> but is this what you are talking about?
>
> $TITLE = "some title here";
>
> ?  Or am I missing something?
> Or perhaps you want to keep it an html thing...
>
> echo "";
>
> ?
>
> Chris
>
>
>
> --
> 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] How to add a new color to JPEG

2001-07-17 Thread Jon Yaggie

has this problem

check the annoted manual on php.net.  i believe there is a work arround
posted on imagecolorallocate() and i reposted the same thing under
imagecreatefromjpeg.  basically you create and image, allocate colors, and
then copy your jpeg on it.





Thank You,

Jon Yaggie
www.design-monster.com

And they were singing . . .

'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code

101 little bugs in the code . . .'

And it continued until they reached 0


- Original Message -
From: "Matthew Loff" <[EMAIL PROTECTED]>
To: "'Jennifer'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, July 18, 2001 12:01 AM
Subject: RE: [PHP] How to add a new color to JPEG


>
> I don't know a way around the problem you're describing with your
> version of PHP, but PHP 4.0.6 with GD 2.0.1 allows you to call
> ImageCreateTrueColor(), which eliminates the 256-color limitation with
> JPEG files-- solved my problem right away.
>
> -Original Message-
> From: Jennifer [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 17, 2001 5:55 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] How to add a new color to JPEG
>
>
> > > > -Original Message-
> > > > From: SED [mailto:[EMAIL PROTECTED]]
> > > > According to the manual, you can only get closest value of your
> > > > desired color by letting the ImageColorClosest() find it.
> > > > Therefore, if the image is totally black, you can not get the
> > > > yellow color. I have not found a way to do this though I believe I
>
> > > > have tried everything. And yet, I have not found any documents
> > > > covering this other than PHP-manual.
>
> I didn't get this from reading the manual, but I struggled with this
> problem for days and finally gave up.  I posted to some other forums
> when this one was done and found no answers.
>
> Now, I know it isn't just me and I know what the problem is, but I still
> don't know a solution.
>
> I am creating an image on the fly and I have no problem if I am just
> using a background color and adding text to it or if I use
> ImageCreateFromPNG, but if I use ImageCreateFromJPEG and try to add text
> on top of that or even a rectangle or anything on top, it seems to
> ignore the color that I specify and always came out grey. (Of course now
> if I use ImageColorClosest(), some colors work because they are in my
> image.)
>
> It doesn't matter what I output it as, only what I read it in as.
>
> And if I read it in as a png, the image quality is horrible which I also
> don't understand. It seems to have drastically reduced the number of
> colors used.
>
> My phphinfo says GD version 1.6.2 or higher I'm using PHP Version
> 4.0.1pl2
>
> Here is my test page.
> http://216.122.251.174/test/test.php
>
> Here is the source for the graphic
> http://216.122.251.174/test/button.phps
>
> Any idea on how solutions?
>
> Jennifer
>
> --
> 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] true type fonts

2001-07-16 Thread Jon Yaggie

nope.  the fonts are normalenough when i i open them.  and in fact i guess i
get slight different "boxes" for different fonts.   but all of them are
alpha-numeric fonts




Thank You,

Jon Yaggie
www.design-monster.com

And they were singing . . .

'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code

101 little bugs in the code . . .'

And it continued until they reached 0


- Original Message -
From: "Chris Anderson" <[EMAIL PROTECTED]>
To: "Jon Yaggie" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, July 17, 2001 2:02 AM
Subject: Re: [PHP] true type fonts


> Many special fonts don't have all the characters besides letters and
> numbers. Perhaps thats the problem?
> - Original Message -
> From: "Jon Yaggie" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 16, 2001 2:11 PM
> Subject: [PHP] true type fonts
>
>
> i am creating images using true type fonts.  i have uploaded all my fonts
> into one directory on the server(/fonts)
>
> some fonts like arial.ttf work.  however other show up as boxes.  they are
> beautiful but not quit the desired effect.  what is the problem any idea?
> it cant be a scriptproblem can it? it has to be the files or maybe server
> set up?   i have done this before with no problem so i am stumped at what
> the difference here is and why some work.
>
>
> idea?
>
>
>
>
> Thank You,
>
> Jon Yaggie
> www.design-monster.com
>
> And they were singing . . .
>
> '100 little bugs in the code
> 100 bugs in the code
> fix one bug, compile it again
> 101 little bugs in the code
>
> 101 little bugs in the code . . .'
>
> And it continued until they reached 0
>
>
>


-- 
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] true type fonts

2001-07-16 Thread Jon Yaggie

i am creating images using true type fonts.  i have uploaded all my fonts into one 
directory on the server(/fonts)  

some fonts like arial.ttf work.  however other show up as boxes.  they are beautiful 
but not quit the desired effect.  what is the problem any idea?  it cant be a 
scriptproblem can it? it has to be the files or maybe server set up?   i have done 
this before with no problem so i am stumped at what the difference here is and why 
some work.


idea?




Thank You,
 
Jon Yaggie
www.design-monster.com
 
And they were singing . . . 
 
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
 
101 little bugs in the code . . .'
 
And it continued until they reached 0





Re: [PHP] sessions . . . .

2001-07-16 Thread Jon Yaggie

Luiz

I can see from the error message the variable is empty in control.php.
however there are two pages of script before it where it does exist.   So
the problem is why isnt it also available in this part of the script?  i
have started the session on this page also which should make it avaiable.  i
do register more variables on this page but i never reregister $directory




Thank You,

Jon Yaggie
www.design-monster.com

And they were singing . . .

'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code

101 little bugs in the code . . .'

And it continued until they reached 0


- Original Message -
From: "Luiz Vitor" <[EMAIL PROTECTED]>
To: "Jon Yaggie" <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 9:22 PM
Subject: Re: [PHP] sessions . . . .


> Probably the $directory variable is empty or incorrect.
> Why don't you print $directory variable and see what is the value.
>
>
> Regards,
> Luiz Vitor
>
> - Original Message -
> From: "Jon Yaggie" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 16, 2001 11:12 AM
> Subject: [PHP] sessions . . . .
>
>
> i have  three pages all begin with session_start()  one fo the variables i
> register on the first page si $directory which is used to create a unique
> and temp directory for user files.  in the first this is some stuff saved
> tot his directory.  in the second page there is information pulled fromt
> this directory.  in the third when i try to save to it i get the following
> erros
>
>
> Warning: fopen("/body.html","a+") - Permission denied in
> /home/www/hvacsites.com/SiteBuilder/control.php on line 35
>
> Warning: Supplied argument is not a valid File-Handle resource in
> /home/www/hvacsites.com/SiteBuilder/control.php on line 36
>
> Warning: Supplied argument is not a valid File-Handle resource in
> /home/www/hvacsites.com/SiteBuilder/control.php on line 37
>
> from the code
>
>  $pg_info .= "";
>  $file = "$directory/body.html";
>  $handle = fopen($file, "a+");
>  fputs($handle, $pg_info);
>  fclose($handle);
>
> as you can see in the error $directory appears not to be there.  i didnt
> unregister it.  i didnt change it.  where did it go?  and what might have
> cause this??
>
>
>
> Thank You,
>
> Jon Yaggie
> www.design-monster.com
>
> And they were singing . . .
>
> '100 little bugs in the code
> 100 bugs in the code
> fix one bug, compile it again
> 101 little bugs in the code
>
> 101 little bugs in the code . . .'
>
> And it continued until they reached 0
>
>
>


-- 
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] sessions . . . .

2001-07-16 Thread Jon Yaggie

i have  three pages all begin with session_start()  one fo the variables i register on 
the first page si $directory which is used to create a unique and temp directory for 
user files.  in the first this is some stuff saved tot his directory.  in the second 
page there is information pulled fromt this directory.  in the third when i try to 
save to it i get the following erros


Warning: fopen("/body.html","a+") - Permission denied in 
/home/www/hvacsites.com/SiteBuilder/control.php on line 35

Warning: Supplied argument is not a valid File-Handle resource in 
/home/www/hvacsites.com/SiteBuilder/control.php on line 36

Warning: Supplied argument is not a valid File-Handle resource in 
/home/www/hvacsites.com/SiteBuilder/control.php on line 37

from the code

 $pg_info .= "";
 $file = "$directory/body.html";
 $handle = fopen($file, "a+");
 fputs($handle, $pg_info);
 fclose($handle);

as you can see in the error $directory appears not to be there.  i didnt unregister 
it.  i didnt change it.  where did it go?  and what might have cause this??



Thank You,
 
Jon Yaggie
www.design-monster.com
 
And they were singing . . . 
 
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
 
101 little bugs in the code . . .'
 
And it continued until they reached 0





Re: [PHP] lack of error

2001-07-15 Thread Jon Yaggie

wonderful i hope ti is the only problem left:)



Thank You,

Jon Yaggie
www.design-monster.com

And they were singing . . .

'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code

101 little bugs in the code . . .'

And it continued until they reached 0


- Original Message -
From: "Andrew Brampton" <[EMAIL PROTECTED]>
To: "Jon Yaggie" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, July 15, 2001 10:31 PM
Subject: Re: [PHP] lack of error


> Well if you manually go to that image with a telnet program you can see
> exactly what is returned... and this is what I get:
>
> 
> Warning:  Could not find/open font in
> /home/www/hvacsites.com/SiteBuilder/logo.php on line 74
>  Ï Ó ?JFIF ??  ? ?   ? >CREATOR: gd-jpeg v1.0 (using IJG JPEG v62),
default
> quality
>  ? ??
> ?2!?!22 ?  ß" ?? ?
?
> ??
> ??
> ? ? Á? ???  ?}??? !1A??Qa"q¶2ü#B??§RЭ$3bré
> and a lot more ASCII characters
>
> If you fix the error on lin 74, then I think it will work :)
>
> Andrew
>
> - Original Message -
> From: "Jon Yaggie" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, July 15, 2001 4:11 PM
> Subject: [PHP] lack of error
>
>
> i am generating an image.  Everything is going fine except this one image.
> it shows only as a broken image.  even if you go directly too the file all
> you get is a broken image.  with out an error of some sort i am baffled
> where to start.  any one got an idea what may cause such?  here is the url
> you can try it.
>
>
http://www.hvacsites.com/SiteBuilder/logo.php?tmpcolor=_dred&logo_text=sdfds
> dfasfd&logo_style=1
>
>
>
>
>
>
>
>
> Thank You,
>
> Jon Yaggie
> www.design-monster.com
>
> And they were singing . . .
>
> '100 little bugs in the code
> 100 bugs in the code
> fix one bug, compile it again
> 101 little bugs in the code
>
> 101 little bugs in the code . . .'
>
> And it continued until they reached 0
>
>
>


-- 
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] lack of error

2001-07-15 Thread Jon Yaggie

i am generating an image.  Everything is going fine except this one image.  it shows 
only as a broken image.  even if you go directly too the file all you get is a broken 
image.  with out an error of some sort i am baffled where to start.  any one got an 
idea what may cause such?  here is the url you can try it.

http://www.hvacsites.com/SiteBuilder/logo.php?tmpcolor=_dred&logo_text=sdfdsdfasfd&logo_style=1








Thank You,
 
Jon Yaggie
www.design-monster.com
 
And they were singing . . . 
 
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
 
101 little bugs in the code . . .'
 
And it continued until they reached 0





Re: [PHP] flat file db

2001-07-10 Thread Jon Yaggie

is there a way i can check this?
and what is the liklihood of it being so?


- Original Message -
From: "Chadwick, Russell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 10, 2001 11:23 PM
Subject: RE: [PHP] flat file db


>
> put in somewhere outside the document root, as long as your apache isn't
> "jailed" php can read your flat file wherever you put it, as long as its
> owned by the webserver user - Russ
>
> -Original Message-
> From: Jon Yaggie [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 10, 2001 9:18 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] flat file db
>
>
> i am setting up a flat file database.  i want to restrict acess so that
> users cant view it intentionally or accidentally.  i am pretty positive
this
> is a job for htaccess but i am pretty clueless in this area(one of many
> areas i am clueless in)  anyone got a suggestion on a tutorial or another
> way to protect the db other than htaccess?
>
>
>
>
>
>
>
>
>
> Thank You,
>
> Jon Yaggie
> www.design-monster.com
>
> And they were singing . . .
>
> '100 little bugs in the code
> 100 bugs in the code
> fix one bug, compile it again
> 101 little bugs in the code
>
> 101 little bugs in the code . . .'
>
> And it continued until they reached 0
>
>
>
> --
> 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] flat file db

2001-07-10 Thread Jon Yaggie

i am setting up a flat file database.  i want to restrict acess so that users cant 
view it intentionally or accidentally.  i am pretty positive this is a job for 
htaccess but i am pretty clueless in this area(one of many areas i am clueless in)  
anyone got a suggestion on a tutorial or another way to protect the db other than 
htaccess?









Thank You,
 
Jon Yaggie
www.design-monster.com
 
And they were singing . . . 
 
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
 
101 little bugs in the code . . .'
 
And it continued until they reached 0





Re: [PHP] url without a query string?

2001-07-08 Thread Jon Yaggie

problem with a session is the link originates at another domain.  so as far
as i know i can pass a session between domains.

yes js is not a problem except i dont know it.  and refrshing is possible
because on first load i will set up a session.  can you specficate a url to
refresh??  so that i cna refresh it without the query string?









Thank You,

Jon Yaggie
www.design-monster.com

And they were singing . . .

'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code

101 little bugs in the code . . .'

And it continued until they reached 0


- Original Message -
From: "James Tan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 12:37 PM
Subject: Re: [PHP] url without a query string?


> hie...
> if i'm not wrong.. u could try using session :)
>
> that way, ucan have index.php s u ish :)
>
> --login.php--
> session_start();
> $id = 1;
> sessoin_register("id");
> --index.php--
> session_start();
> $memid = $id-0;
> // **statement**
>
>
> hope it helps..
> good luck :)
>
> regards,
>
> James
> Jon Yaggie <[EMAIL PROTECTED]> wrote in message
> 033901c10832$68f072a0$0100a8c0@piiimonster">news:033901c10832$68f072a0$0100a8c0@piiimonster...
> > i have nothing to do with the popup stuff :)
> >
> > - Original Message -
> > From: "Ben Bleything" <[EMAIL PROTECTED]>
> > To: "'Jon Yaggie'" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> > Sent: Monday, July 09, 2001 11:37 AM
> > Subject: RE: [PHP] url without a query string?
> >
> >
> > > Yikes.  Popups and porn.
> > >
> > > Anyhoo, I guess I can't help you.  I just don't know enough about the
> > > inner workings of http.
> > >
> > > Sorry =>
> > >
> > > Ben
> > >
> > > -Original Message-
> > > From: Jon Yaggie [mailto:[EMAIL PROTECTED]]
> > > Sent: Sunday, July 08, 2001 9:34 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [PHP] url without a query string?
> > >
> > > i mean this is coming from a hardcoded link.
> > >
> > > example
> > >
> > > www.design-monster.com links to www.site.com/index.php?id=4
> > > but site www.hopeless.com links to www.site.com/index.php?id=2
> > >
> > > both these then have a membership link on them and the memebership
> > > service
> > > uses the refering url.  but the referer needs to be exact.  so the
query
> > > string needs to be stripped some how?
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Thank You,
> > >
> > > Jon Yaggie
> > > www.design-monster.com
> > >
> > > And they were singing . . .
> > >
> > > '100 little bugs in the code
> > > 100 bugs in the code
> > > fix one bug, compile it again
> > > 101 little bugs in the code
> > >
> > > 101 little bugs in the code . . .'
> > >
> > > And it continued until they reached 0
> > >
> > >
> > > - Original Message -
> > > From: "Ben Bleything" <[EMAIL PROTECTED]>
> > > To: "'Jon Yaggie'" <[EMAIL PROTECTED]>;
> > > <[EMAIL PROTECTED]>
> > > Sent: Monday, July 09, 2001 11:25 AM
> > > Subject: RE: [PHP] url without a query string?
> > >
> > >
> > > > A shot in the dark would be to use HTTP Post instead of Get... but,
I
> > > > don't know http.
> > > >
> > > > -Original Message-
> > > > From: Jon Yaggie [mailto:[EMAIL PROTECTED]]
> > > > Sent: Sunday, July 08, 2001 9:22 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [PHP] url without a query string?
> > > >
> > > > the problem
> > > >
> > > > i have a page that uses a query string to determine content.  ie
> > > > index.php?id=2  in this page there is a link to a memebership area
> > > that
> > > > uses a remote service.  this service requires that thee be the exact
> > > > same refering url.  is the refering url must always be index.php.
how
> > > > can i do this?  can i do this?
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Thank You,
> > > >
> > > > Jon Yaggie
> > > > www.design-monster.com
> > > >
> > > > And they were singing . . .
> > > >
> > > > '100 little bugs in the code
> > > > 100 bugs in the code
> > > > fix one bug, compile it again
> > > > 101 little bugs in the code
> > > >
> > > > 101 little bugs in the code . . .'
> > > >
> > > > And it continued until they reached 0
> > > >
> > > >
> > >
> > >
> > > --
> > > 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] url without a query string?

2001-07-08 Thread Jon Yaggie

i have nothing to do with the popup stuff :)

- Original Message -
From: "Ben Bleything" <[EMAIL PROTECTED]>
To: "'Jon Yaggie'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 11:37 AM
Subject: RE: [PHP] url without a query string?


> Yikes.  Popups and porn.
>
> Anyhoo, I guess I can't help you.  I just don't know enough about the
> inner workings of http.
>
> Sorry =>
>
> Ben
>
> -Original Message-
> From: Jon Yaggie [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 08, 2001 9:34 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] url without a query string?
>
> i mean this is coming from a hardcoded link.
>
> example
>
> www.design-monster.com links to www.site.com/index.php?id=4
> but site www.hopeless.com links to www.site.com/index.php?id=2
>
> both these then have a membership link on them and the memebership
> service
> uses the refering url.  but the referer needs to be exact.  so the query
> string needs to be stripped some how?
>
>
>
>
>
>
>
>
>
> Thank You,
>
> Jon Yaggie
> www.design-monster.com
>
> And they were singing . . .
>
> '100 little bugs in the code
> 100 bugs in the code
> fix one bug, compile it again
> 101 little bugs in the code
>
> 101 little bugs in the code . . .'
>
> And it continued until they reached 0
>
>
> - Original Message -
> From: "Ben Bleything" <[EMAIL PROTECTED]>
> To: "'Jon Yaggie'" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Monday, July 09, 2001 11:25 AM
> Subject: RE: [PHP] url without a query string?
>
>
> > A shot in the dark would be to use HTTP Post instead of Get... but, I
> > don't know http.
> >
> > -Original Message-
> > From: Jon Yaggie [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, July 08, 2001 9:22 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] url without a query string?
> >
> > the problem
> >
> > i have a page that uses a query string to determine content.  ie
> > index.php?id=2  in this page there is a link to a memebership area
> that
> > uses a remote service.  this service requires that thee be the exact
> > same refering url.  is the refering url must always be index.php.  how
> > can i do this?  can i do this?
> >
> >
> >
> >
> >
> >
> >
> > Thank You,
> >
> > Jon Yaggie
> > www.design-monster.com
> >
> > And they were singing . . .
> >
> > '100 little bugs in the code
> > 100 bugs in the code
> > fix one bug, compile it again
> > 101 little bugs in the code
> >
> > 101 little bugs in the code . . .'
> >
> > And it continued until they reached 0
> >
> >
>
>
> --
> 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] url without a query string?

2001-07-08 Thread Jon Yaggie

i mean this is coming from a hardcoded link.

example

www.design-monster.com links to www.site.com/index.php?id=4
but site www.hopeless.com links to www.site.com/index.php?id=2

both these then have a membership link on them and the memebership service
uses the refering url.  but the referer needs to be exact.  so the query
string needs to be stripped some how?









Thank You,

Jon Yaggie
www.design-monster.com

And they were singing . . .

'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code

101 little bugs in the code . . .'

And it continued until they reached 0


- Original Message -
From: "Ben Bleything" <[EMAIL PROTECTED]>
To: "'Jon Yaggie'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 11:25 AM
Subject: RE: [PHP] url without a query string?


> A shot in the dark would be to use HTTP Post instead of Get... but, I
> don't know http.
>
> -Original Message-
> From: Jon Yaggie [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 08, 2001 9:22 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] url without a query string?
>
> the problem
>
> i have a page that uses a query string to determine content.  ie
> index.php?id=2  in this page there is a link to a memebership area that
> uses a remote service.  this service requires that thee be the exact
> same refering url.  is the refering url must always be index.php.  how
> can i do this?  can i do this?
>
>
>
>
>
>
>
> Thank You,
>
> Jon Yaggie
> www.design-monster.com
>
> And they were singing . . .
>
> '100 little bugs in the code
> 100 bugs in the code
> fix one bug, compile it again
> 101 little bugs in the code
>
> 101 little bugs in the code . . .'
>
> And it continued until they reached 0
>
>


-- 
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] url without a query string?

2001-07-08 Thread Jon Yaggie

the problem

i have a page that uses a query string to determine content.  ie index.php?id=2  in 
this page there is a link to a memebership area that uses a remote service.  this 
service requires that thee be the exact same refering url.  is the refering url must 
always be index.php.  how can i do this?  can i do this?







Thank You,
 
Jon Yaggie
www.design-monster.com
 
And they were singing . . . 
 
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
 
101 little bugs in the code . . .'
 
And it continued until they reached 0





Re: [PHP] watermarks

2001-07-07 Thread Jon Yaggie

well i understand that this is normally a digit signature involved.  That is
why i am concerned about dynamic creation.  looking through the image
functions i dont actually see a obvious function that would do such a thing.
Can you please tell me what and how if this is simple.  thank you




Thank You,

Jon Yaggie
www.design-monster.com

And they were singing . . .

'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code

101 little bugs in the code . . .'

And it continued until they reached 0


- Original Message -
From: "Chris Anderson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, July 08, 2001 10:50 AM
Subject: Re: [PHP] watermarks


> a watermark is not something ON an image. A watermark is the same as a
> digital signature so you know who created the piece
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, July 07, 2001 11:38 PM
> Subject: Re: [PHP] watermarks
>
>
> > on 7/7/01 11:27 PM, Chris Lambert - WhiteCrown Networks at
> > [EMAIL PROTECTED] wrote:
> >
> > > I am afraid I am completely stupid in the way that watermarks
> > > work(researching now).  however I need to know quickly if I can
> dynamically
> > > apply a watermark to an image using PHP.  Any one know?
> >
> >
> > Just use
> >  imagestring (int im, int font, int x, int y, string s, int col)
> >
> > that is if you have the GD lib installed.
> >
> > Susan
> >
> >
> > --
> > 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] watermarks

2001-07-07 Thread Jon Yaggie

I am afraid I am completely stupid in the way that watermarks work(researching now).  
however I need to know quickly if I can dynamically apply a watermark to an image 
using PHP.  Any one know?




Thank You,
 
Jon Yaggie
www.design-monster.com
 
And they were singing . . . 
 
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
 
101 little bugs in the code . . .'
 
And it continued until they reached 0





Re: [PHP] caching

2001-07-04 Thread Jon Yaggie

It seems still not to work.

i have tried all the header options mentioned. adding a query string is out of the 
option I am using javascript and it dont like that stuff.   and my browser still 
caches everything and drives me nuts.  maybe i am putting it in the wrong file?  but i 
really cant imagine what other file it should be in.  the set up is like this.

I have button.php which is just a function that creates and image and save it to a 
file.  and then mypage.php that uses this function to generate a menu and then one 
include to header.html which contains the actual menu and calls to the images saved.  
I placed the headers at the top of mypage.php.  where else could i put them?  and my 
browser still caches unless i conpletely turn off caching.



What am i doing wrong?




Thank You,
 
Jon Yaggie
www.design-monster.com
 
And they were singing . . . 
 
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
 
101 little bugs in the code . . .'
 
And it continued until they reached 0

this code works good...

Place this code at the top of the files where you want then to always
refresh i.e. no cache

 header ("Pragma: no-cache");
 header ("Cache-Control: no-cache, must-revalidate, max_age=0");
 header ("Expires: 0");

Have fun
Kevin
- Original Message -
From: "Jon Yaggie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 30, 2001 4:36 PM
Subject: [PHP] caching


Ok I am dynamically creating images.  my problem is my browser is caching
the images (or at least half ot them - i see no particular system to which)
i have no idea how to stop this.  i have tried using the header
Cache-Control: no-cahe  However it seems to have no helped.  maybe i am
using it wrongly?  is there another method i can clear the browser cache?




Thank You,

Jon Yaggie
www.design-monster.com

And they were singing . . .

'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code

101 little bugs in the code . . .'

And it continued until they reached 0


this code works good...

Place this code at the top of the files where you want then to always
refresh i.e. no cache

 header ("Pragma: no-cache");
 header ("Cache-Control: no-cache, must-revalidate, max_age=0");
 header ("Expires: 0");

Have fun
Kevin
- Original Message -
From: "Jon Yaggie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 30, 2001 4:36 PM
Subject: [PHP] caching


Ok I am dynamically creating images.  my problem is my browser is caching
the images (or at least half ot them - i see no particular system to which)
i have no idea how to stop this.  i have tried using the header
Cache-Control: no-cahe  However it seems to have no helped.  maybe i am
using it wrongly?  is there another method i can clear the browser cache?




Thank You,

Jon Yaggie
www.design-monster.com

And they were singing . . .

'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code

101 little bugs in the code . . .'

And it continued until they reached 0






Re: [PHP] Cookie ?

2001-06-30 Thread Jon Yaggie

i had this problem a while back.  the problem with this is cookies work by
the users time not the servers time.  so if the server is in america and my
computer is on japanese time even a cookie set for time()+18000 will be
valid because my computer is actually +50400 for a server in EST.   i have
have worked with two alternatives here.  one set another cookie that holds a
timestamp of the time you want the other cookie to expire and then compare
server time and the expiration cookie.  or do the same thing basically b ut
use a variable set in a session.



Thank You,

Jon Yaggie
www.design-monster.com

And they were singing . . .

'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code

101 little bugs in the code . . .'

And it continued until they reached 0


- Original Message -
From: "Jack Sasportas" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Sunday, July 01, 2001 9:44 AM
Subject: [PHP] Cookie ?


> I wanted to do something like set the cookie for 5 minutes, then as the
> user uses the system each page would refresh so to speak the timeout
> always setting it back to 5 minutes as long as he was using it.
> I beleive this is not really working.
> Any Ideas on how I can accomplish this ??
>
> Thanks
> Here is the function I was using to set the cookies...
>
>
> function f_put_cookie($user_name,$user_email,$account_type) {
>
> global $HTTP_COOKIE_VARS;
>
> if(isset($c_user_name)) {
>
> setcookie("c_uas_time","GREEN",(time()+400),'/','website.com',0);
> } else {
>
>
setcookie("c_user_name",$user_name,(time()+400*30*12),'/','.website.com',0);
>
>
>
setcookie("c_user_email",$user_email,(time()+400*30*12),'/','.website.com',0
);
>
>
>
setcookie("c_account_type",$account_type,(time()+400*30*12),'/','.website.co
m',0);
>
> setcookie("c_uas_time",
> "GREEN",(time()+400),'/','.website.com',0);
> }
> }
> ___
> Jack Sasportas
> Innovative Internet Solutions
> Phone 305.665.2500
> Fax 305.665.2551
> www.innovativeinternet.com
> www.web56.net
>
>
>
> --
> 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] caching

2001-06-30 Thread Jon Yaggie

Ok I am dynamically creating images.  my problem is my browser is caching the images 
(or at least half ot them - i see no particular system to which)  i have no idea how 
to stop this.  i have tried using the header Cache-Control: no-cahe  However it seems 
to have no helped.  maybe i am using it wrongly?  is there another method i can clear 
the browser cache?




Thank You,
 
Jon Yaggie
www.design-monster.com
 
And they were singing . . . 
 
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
 
101 little bugs in the code . . .'
 
And it continued until they reached 0





RE: [PHP] Website dealing with PHP image generation?

2001-06-30 Thread Jon Yaggie

Jeff,

I am not extremely fimilar with this function.  However, I did notice you are copying 
your image at a width and height of 1x1.   this is my guess as far as i know by 
default this pixels.  so the likehood you would see an image copied at 1x1 is rather 
low.  

but perhaps i am complete wrong . . .let us know.






Ok, I have tried Experts Exchange, Devshed, and even posted on here asking.
Does anyone know how to use the image generation?

I looked for a good site on it but found nothing...

My problem.

I am creating an image on the fly based on newest entries in one my mySQL
tables.  In this created image I am trying to add a small one to it.  Now I
am TRYING to use the below code:

$image = ImageCreate(500, 70);
$bg = ImageColorAllocate($image, 255, 255, 255);
$blue = ImageColorAllocate($image, 0, 0, 255);
$black = ImageColorAllocate($image, 0, 0, 0);
$himage= "usr/hyrum/public_html/images/topics/hyrum.gif";
ImageRectangle($image, 0, 0, 500, 70, $white);
ImageString($image, 4, 0, 0, $text, $blue);
ImageString($image, 3, 0, 20, $title1, $black);
ImageString($image, 3, 0, 35, $title2, $black);
ImageString($image, 3, 0, 50, $title3, $black);
//ImageCopy($image, $himage, 400, 20, 1, 1, 60, 60)

Imagepng($image, "signature.png");
ImageDestroy($image);

Am I using ImageCopy incorrectly?  It doesn't put anything in the new image.

Jeff
Thank You,
 
Jon Yaggie
www.design-monster.com
 
And they were singing . . . 
 
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
 
101 little bugs in the code . . .'
 
And it continued until they reached 0





[PHP] images

2001-06-26 Thread Jon Yaggie



I am trying to produce buttons with 
imagecreatefromjpeg().  the problem i am having is i cant allocate a color 
for the text of the betton.   it appears i have 2 choices black and 
gray.  Anyone know why this could be.  Code is below
 

 
switch($buttontype){case 
1: $buttonfile = "images/button1.jpg"; break;case 
2: $buttonfile = "images/button2.jpg"; break;
 
}
 
$im = 
imagecreatefromjpeg($buttonfile);
 
switch($color){case 1: $imcolor = 
imagecolorallocate($im, 255, 0, 0); break;case 2: $imcolor 
= imagecolorallocate($im, 0, 255, 0); break;case 
3: $imcolor = imagecolorallocate($im, 0, 0, 
255); break;
 
}
$sizex = imagesx($im);$sizey = imagesy($im);$fontlen = 
imagefontwidth(3);$strlen = strlen($text) * $fontlen;$xvalue =  
($sizex - $strlen)/2;$yvalue = $sizey * .40;
 
imagestring($im, 3, $xvalue, $yvalue, $text, $o);
 
 
 
imagejpeg($im);
 
?>
 
 
 
 
 
Thank You, Jon Yaggiewww.design-monster.com And 
they were singing . . .  '100 little bugs in the code100 bugs 
in the codefix one bug, compile it again101 little bugs in the 
code 101 little bugs in the code . . .' And it 
continued until they reached 0
 
 


[PHP] MIME type

2001-06-26 Thread Jon Yaggie



is there a function to get the mime of a given 
file?  if so what?
 
 
 
 
Thank You, Jon Yaggiewww.design-monster.com And 
they were singing . . .  '100 little bugs in the code100 bugs 
in the codefix one bug, compile it again101 little bugs in the 
code 101 little bugs in the code . . .' And it 
continued until they reached 0
 
 


Re: [PHP] newbie algorithm help!!!!

2001-06-23 Thread Jon Yaggie



is this what you want?  there must be an 
easier way.  i am sure some one else knows it be i would -
 

$result = mysql_query("select * from 
table");
?>

 
$i = 0;
while($my_array = 
mysql_fetch_array($result))
{
if($i%2)
{
print"{$my_array[0]";
}
else
{
print"{$my_array[0]}";
}
$i++:
 
}

 
or am i completely off on what you 
need?
 
 
 
please share if you know hwo to di it. thanks you""McShen"" <[EMAIL PROTECTED]> 
wrote in message9gqm6o$g6n$[EMAIL PROTECTED]">news:9gqm6o$g6n$[EMAIL PROTECTED]...> 
hi> i have a mysql table with approx. 30 entries.>> I wanna 
get them(i know how to do that) and list them in a 2-column table.I> 
have been trying to use a loop to do it. But it will only produce 
a1-column> table. it's like>> entry 1> entey 
2> entry 3> entry 4> etc>> Please help me so 
that i can get this :>> entry1 entry2> entry3 
entry4>> Thanks in advanced.>
Thank You, Jon Yaggiewww.design-monster.com And 
they were singing . . .  '100 little bugs in the code100 bugs 
in the codefix one bug, compile it again101 little bugs in the 
code 101 little bugs in the code . . .' And it 
continued until they reached 0
 
 


[PHP] re: time

2001-06-20 Thread Jon Yaggie



actually i believe if you date() it gives you users 
system time
 
it is the problem i have run into in the script i 
am trying to modify.  the original person used date() and it clear shows my 
time.  As much as i admit the possibility of their server being in Siberia 
but I doubt it.  
 
 
Thank You, Jon Yaggiewww.design-monster.com And 
they were singing . . .  '100 little bugs in the code100 bugs 
in the codefix one bug, compile it again101 little bugs in the 
code 101 little bugs in the code . . .' And it 
continued until they reached 0
 
 


[PHP] time

2001-06-20 Thread Jon Yaggie



quickly can some one tell me if time() return 
server or usersystem time?
 
 
 
 
Thank You, Jon Yaggiewww.design-monster.com And 
they were singing . . .  '100 little bugs in the code100 bugs 
in the codefix one bug, compile it again101 little bugs in the 
code 101 little bugs in the code . . .' And it 
continued until they reached 0
 
 


[PHP] test

2001-05-23 Thread Jon Yaggie

Dear Peter

It wasnt a test my email program gets out of hand occassionally.  trust me i am trying 
very hard to control.  i am sorry if it really bothers you.

if you want a real question no one has answered the one i posted last nite regarding 
strftime and why i cant pass the value %e to it.   is it a bug or what???



[PHP] ff

2001-05-23 Thread Jon Yaggie

f



[PHP] strftime()

2001-05-23 Thread Jon Yaggie

Okay here is what I am trying


strftime("%A, %B %e, %Y %H:%M:%S", $last);


I have looked now at the manual and stared in amazement but it seems not to recognize 
%e at all.  What i get is this


Wednesday, May , 2001 12:44:08


Am i doing soemthing wrong??  %d works.



[PHP] tutorials

2001-05-23 Thread Jon Yaggie

Okay i am not expecting any heavy research here but if any one know of tutorials  on 
these sujects it would really save me some time.  thanks


1) useing php and xml 
2) using perl and php together 



[PHP] sorry correction

2001-05-23 Thread Jon Yaggie

it seems that some of my manual is just missing . . . maybe it was aliens.  i have the 
link to the functions . ..  



[PHP] re: files

2001-05-23 Thread Jon Yaggie

Okay thanks perhaps i am using an old manual.  I think i downloaded it about three 
months ago but this function is not present there . .. 


Jon



Re: Re: [PHP] files

2001-05-23 Thread Jon Yaggie

What i need is the function that allows me to read the files in the directory.  This 
is what i can'g find.  To be honest I am lazy and was hoping there may be a secret 
function out there like filetime() that worked on the whole directory.  but all i 
really need is what function will read the contains of the direcotry?

Jon



[PHP] Re:[PHP] MySQL Select

2001-05-23 Thread Jon Yaggie



think this is what you want 


$i = 0;
$result = mysql_query("SELECT jazz FROM funk WHERE foo='bar'")
while($music = mysql_fetch_array($result))
{

$funk_music[$i] = $music[0];
$I++;

}





ok...sorry to ask a stupid question but

$result = mysql_query("SELECT jazz FROM funk WHERE foo='bar'")

but where do you go from there. How would you iterate through the array a
row at a time, doing your thing as you go along?

thanks,

jamie



[PHP] Re: Passing variables

2001-05-23 Thread Jon Yaggie

I dont know any other way.  best is if you ssl available to use it on the forms that 
pass these variable but using a form all variables are passed this way either post or 
get through the url.  

Jon 



[PHP] cookies

2001-05-22 Thread Jon Yaggie

Sorry.  My emails is acting wierd.  This is a repost.  The suggestion was there is a 
clock problem.  My clock is right.  Could it be cause by a time zone difference?




original message -


I have set up a user login so that it will assign a cookie for one hour -
setcookie("cookie_id", $id, time()+3600);

The manner in which i suse the expiration is copied form the manual but i have 
actually tried several alteratives.  The problem is the expiration works perfectly 
locally (i am running apache 1.3 for windows)  but once i upload it (linux red hat 5.2 
(why so old i dont know)/ apache 1.3.19.)  The expiration will not work on my 
browser(s) unless i increase the expiration to +5000 or above.  My client tests it 
using the same version of IE i have and it will not set the cookie still at +5000 for 
him.  

Now i understand from browser to browser there can be differences but why can i set a 
cookie for +200 locally but not for less than +5000 uploaded when i am most certainly 
checking it with the same browser (IE 5.5)



[PHP] ff

2001-05-22 Thread Jon Yaggie

f