[PHP] GD and 4.3

2003-02-12 Thread Joseph Bannon
I hear GD is included in 4.3. What does it all
support? Does it support gif?

Joseph



__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] GD and 4.3

2003-02-13 Thread Joseph Bannon
Are there any special configuration commands I have to
include at install to use GD?

J.

__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] GD and 4.3

2003-02-13 Thread Joseph Bannon
Can someone tell me what is wrong? I get this error
message when I try to configure

checking for jpeg_read_header in -ljpeg... yes
checking for png_write_image in -lpng... yes
If configure fails try --with-xpm-dir=
configure: error: freetype2 not found!



Here is my configure...

./configure --with-mysql=/home/mysql-3.23.53
--with-apache=/home/apache_1.3.27 --enable-track-vars
--prefix=/home/php-4.3.0 --with-gd --with-gd
--enable-gd-native-ttf --with-jpeg-dir=/usr
--with-png-dir=/usr --with-freetype-dir=/usr --with-zlib-dir=/usr

__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] GD and 4.3

2003-02-13 Thread Joseph Bannon
> Do you have freetype2 installed?


No, but I removed the --with-freetype-dir=/usr and it
installed ok. Does this mean I wont be able to create
text on images?

Basiclly, I want to configure php so that I can create
images with text on them, like a graphic counter. I
don't care what font is used, so if there is a default
font with GD, that's ok.

J.



__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] GD and 4.3

2003-02-13 Thread Joseph Bannon
> Do you have freetype2 installed?
 
 
No, but I removed the --with-freetype-dir=/usr and
it installed ok. Does this mean I wont be able to
create text on images?

Here is basically what I want to do if that helps... I
want to configure php so that I can create images with
text on them, like a graphic counter. I don't care
what font is used, so if there is a default font with
GD, that's ok.
 
> J.


__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] sessions

2003-02-20 Thread Joseph Bannon
I'm starting to use sessions for my website and wanted
to know some things before I fully commit to use them.

1) How are sessions different from cookies other than
where the information is stored?

2) Does session data stored on the server
automatically delete after a certain time?

3) Is a session id created for each user per each
browser or just per each user?

Thanks,

Joe The Dev.



__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] session emergency

2003-02-21 Thread Joseph Bannon
Where can I set the session data size?

Joe.



__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] using php to rotate ad banners

2003-02-26 Thread Joseph Bannon
I recently created some scripts to rotate ad banners
on my site. One script is called show.php, which
serves the banner. The other is called click.php,
which redirects the people to the proper site for the
banner they clicked on.

Some people have noticed that when they click on the
banner, they go to another site. Others have noticed
that they just get returned back to the page that they
just were at. I test it without any problems.

I have been doing the redirecting using cookies. The
script show.php puts the cookie on their computer. The
script click.php gets the cookie and redirects them to
the proper place when clicked. Should I be using
cookies or sessions to do this? I think the problem is
that some people have their browser set to not accept
cookies which is why they get directed to other
places.

Thanks,
Joseph Bannon

RisingMusic.com

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Best way to accept donations online - Can't use paypal

2003-02-26 Thread Joseph Bannon
I think paypal can be used. I created a script that
gets all their information passed from paypal's server
where it updates their account on mine. Very seemless.

J.



__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Restate: using php to rotate ad banners

2003-02-27 Thread Joseph Bannon
Anyone? Reply?


I recently created some scripts to rotate ad banners
on my site. One script is called show.php, which
serves the banner. The other is called click.php,
which redirects the people to the proper site for
the banner they clicked on.
 
Some people have noticed that when they click on the
banner, they go to another site. Others have noticed
that they just get returned back to the page that
they just were at. I test it without any problems.
 
I have been doing the redirecting using cookies. The
script show.php puts the cookie on their computer.
The script click.php gets the cookie and redirects
them
to the proper place when clicked. Should I be using
cookies or sessions to do this? I think the problem
is that some people have their browser set to not
accept cookies which is why they get directed to other
places.
 

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: using php to rotate ad banners

2003-02-27 Thread Joseph Bannon
> Why don't you just use phpAdsNew?


Because I prefer to write it myself so I can learn
more.

J.



=
RisingMusic.com
450,000 registered users.
14,000 registered bands and artists.

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Restate: using php to rotate ad banners

2003-03-01 Thread Joseph Bannon
> Don't reinvent the wheel :)
> 
> http://www.phpadsnew.com/one/


Then how would people learn? Eventually everyone that
knows how to make the wheel will die and the knowledge
to make it will be forgotten.

J.



__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Restate: using php to rotate ad banners

2003-03-01 Thread Joseph Bannon
> The other problem is that if I open two browser
> windows to your site, one after the other, and see 
> two banners, and then click on the first one, am
> I going to go to the site for the second one?


Yes, that is one of the main problems. Would using
sessions help end this?

J.



__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Restate: using php to rotate ad banners

2003-03-01 Thread Joseph Bannon
> Would this do it for you?


No, that is that the problem. Showing the banner is.
It's when they click on it.

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] file uploads

2003-03-04 Thread Joseph Bannon
Regarding file uploads...

1) Do the temp files automatically delete, or do I
need to put something in the code to delete them?

2) If automatically, how long? Where can I set the
length of time until they are deleted?

3) If not, is there a place I can make it be
automatic?


Thanks
Joseph

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] file uploads

2003-03-04 Thread Joseph Bannon
> They do, and I believe it's until the end of the
> currently-running PHP script.

Perfect! Thanks.

Joseph



__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] session data

2003-03-05 Thread Joseph Bannon

1) How long does session data remain on the server?

2) Is there a place I can set the expiration?

3) Will php automatically delete the old session data
or do I have to do it?

Thanks,
Joseph



=
RisingMusic.com
450,000 registered users.
14,000 registered bands and artists.

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] some help needed building chat-app

2003-03-05 Thread Joseph Bannon
> * how can i make sure the db-connection is closed
> before the user closes the window?


Doesn't the connection close when the php script
stops?

J.




__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Issues in passing session data

2003-03-05 Thread Joseph Bannon
> For instance, most developers uses session_start()
> on top of every page. The problem is that after 
> visiting each page, a new session file is created on
> the server.


Correct me if I'm wrong, but I don't think a new
session file is created.

"session_start() creates a session or resumes the
current one based on the current session id that's
being passed via a request, such as GET, POST, or a
cookie."

J.



__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] session data

2003-03-05 Thread Joseph Bannon
> this is controled by session.gc_maxlifetime


Is the number by second, minutes, etc?

Thanks,

J.

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] mysql and php

2003-03-11 Thread Joseph Bannon
How can I have php give me all the data in a table as
I would using the prompt in mysql?

Joseph



__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] what is session_name?

2003-03-12 Thread Joseph Bannon
I read the description on php.net, but what is
session_name really used for?

Thanks,

Joe.

__
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] for the love of god, remove me

2003-08-03 Thread Joseph Bannon
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


This page is useless, you can't remove yourself.

J. 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] for the love of god, remove me

2003-08-07 Thread Joseph Bannon
> It's not usless if you read the page. 
> [EMAIL PROTECTED]

As I said, the page is useless. This doesn't work either.

J.



> On Sun, 2003-08-03 at 13:45, Joseph Bannon wrote:
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > 
> > 
> > This page is useless, you can't remove yourself.
> > 
> > J. 
> > 
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site design software
> > http://sitebuilder.yahoo.com
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] mysql ending at start up

2003-03-28 Thread Joseph Bannon
The mysql support list is slow, so I though I would
post here since I know this list is more active.
MySQL shuts down when I start it up...
 
# Starting mysqld daemon with databases
from /home/mysqldb
030328 09:29:32  mysqld ended


__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] mysql ending at start up

2003-03-28 Thread Joseph Bannon
> Joe you got a reply within 20 minutes on the MySQL
> list asking you this:

Yeah, I did, but I'm use to the fast response of thsi
list.

 
> What does your .err log have to say about
> it?

I don't have one.



> Let's find your database error log, as root type:
> 
> find / -name "*.err" -print | grep mysql


Came back with nothing.

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] locate

2003-03-28 Thread Joseph Bannon
How do you update the locate database?

/var/lib/slocate/slocate.db

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] mysql ending at start up

2003-03-28 Thread Joseph Bannon
> Please use the appropriate list. If you want a fast
> response take out a mysql support contract.


Thanks Jason. You're such a supportive individual
-lol.

J.



__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] re: jason wong (was: locate)

2003-03-29 Thread Joseph Bannon
> You really are taking advantage of people's
> generosity in answering your OT questions.


Why are you such a jerk Jason? I'm trying to install
php / mysql and I got some questions regarding error
messages I get.

An OT question would be me asking something like,
whats the best temp for cooking a jason wong? Lighten
up.

J.



__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Is this possible?

2003-10-16 Thread Joseph Bannon
Is it possible to set two variables at once like this...

$test = $variable = 5;

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Is this possible?

2003-10-16 Thread Joseph Bannon
> Write a small script and see.


Yep, it worked. Thanks

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] mozilla

2003-10-16 Thread Joseph Bannon
Does IE use mozilla? I'm writing a PHP script to keep track of user
agents.

J.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] mozilla

2003-10-16 Thread Joseph Bannon
> > Does IE use mozilla? I'm writing a PHP script to keep track of user
agents.

> Your question isnt' clear.


What is not clear about it? I'm trying to keep keep track of user agents
with php.

J.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] mozilla

2003-10-16 Thread Joseph Bannon
> I think you mean to say "Does the word 'mozilla' appear in the IE user
agent string?"


That is not what I'm asking. I already know it appears there. But I
already got my answer.

Now my question is if IE doesn't use mozilla, why does it put it in the
user agent?

J.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] mozilla

2003-10-16 Thread Joseph Bannon
Thanks John, you answered my question.

J.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Looking for a programmer & designer to hire

2003-10-16 Thread Joseph Bannon
Are there any sites I can post a bid request for programmers and graphic designers?

J.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Any graphics people?

2003-10-17 Thread Joseph Bannon
I'm doing all the programming for my site, but I suck at graphics. Does
anyone know where I can find a graphic designer? I posted a message on
webhostingtalk.com and mostly everyone there does business sites when
I'm looking for something more retro and for an entertainment site.

J.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Any graphics people?

2003-10-17 Thread Joseph Bannon
Yes, it's a paying job.

J.

-Original Message-
From: Kit Knight [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 17, 2003 5:03 PM
To: Joseph Bannon
Subject: Re: [PHP] Any graphics people?


Hey,
I do graphics, but is it a paying job coz I cant afford non paying right
now. Paypal accepted :-)

Cheers,
-Ryan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP error logs?

2003-10-20 Thread Joseph Bannon
Where are the PHP error logs kept?

Thanks,
J.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Print mysql errors

2003-10-20 Thread Joseph Bannon
How do you print the error message sent back from MySQL?

$resultCC = mysql_query($queryCC) or die("???");

J.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Using cookies

2003-10-21 Thread Joseph Bannon

It's your site isn't it? -lol

J



-Original Message-
Nothing much. Been receiving flack about forcing people into cookies.
Much misunderstood info about cookies. I need an URL to pass on for
extra reading, as rebuttal.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Session hijacking

2003-10-21 Thread Joseph Bannon
> i setup my sessions to be transparent, can it still be hacked ?


What is a transparent session?

J.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Using cookies

2003-10-21 Thread Joseph Bannon
I think it's the responsibility of whomever is holding the key (ie, the
username and password). When a user logs into my site, I put their
username and password in a cookie. I then check those cookies to allow
them access to membership only parts of the site. It is thus their
responsibility to keep people from accessing the cookies on their
machine. If I don't put the username and password on their machine and
just use a session id, now the responsibility is in my hands.

J.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] search string

2001-04-15 Thread Joseph Bannon

What is the function to search a string? Basically, I want search a string
(a url) to see if it has "www.yahoo.com" in it and if yes, tell the user
their submission cannot be accepted.

J




-- 
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] Image Processing in PHP

2001-04-24 Thread Joseph Bannon

> I want a client to be able to upload a file to the web server via PHP.  
> Then, I want that image to be processed, scaled, and made into thumbnails 
> and full-size images.  Is this possible with the image processing 
> capabilities of PHP, or should I use something like Image Magick to do it 
> server side?



I'd like to know how to do this as well.

J






-- 
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] Image Processing in PHP

2001-04-24 Thread Joseph Bannon

> Resizing (and resampling) an image:
>
> http://www.php.net/manual/en/function.imagecopyresized.php
> http://www.php.net/manual/en/function.imagecopyresampled.php



Is there anything extra in need to install?



J






-- 
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] rounding up

2001-04-25 Thread Joseph Bannon

Is there a PHP command to round up to the nearest integer?

J

-- 
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] rounding up

2001-04-27 Thread Joseph Bannon

What is the best seamless way to upgrade/update PHP?

Joseph

-- 
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] opening files

2001-05-01 Thread Joseph Bannon

How do you open a text file and put all the contents into a variable like
$filecontent?

Joseph










-- 
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] Default values in MySQL

2001-05-08 Thread Joseph Bannon

How do you set Default values in mysql?

Joseph

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

2001-05-09 Thread Joseph Bannon

For some reason, I can get the image image size for an image on the local
machine, but remotely give me an error


My code

";
echo "size: $size[1]";
echo "size: $size[2]";
echo "size: $size[3]";
$size = GetImageSize
("http://www.picpage.com/users/ka/kaurisma1331/images/image0.jpg";); 
echo "size: $size[0]";
echo "size: $size[1]";
echo "size: $size[2]";
echo "size: $size[3]";
?>



Output


size: 310
size: 80
size: 1
size: width="310" height="80"
Warning: Unable to open
http://www.picpage.com/users/ka/kaurisma1331/images/image0.jpg in
web/imagetest.php on line 13
size: 
size: 
size: 
size: 

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

2001-05-09 Thread Joseph Bannon

> What version of PHP are you using? According to the manual:
> "URL support was added in PHP 4.0.5"



Oh, I have 4.0.4. I need to upgrade don't I?!?

Thanks, 
J

-- 
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] Installing the GD Library

2001-05-09 Thread Joseph Bannon

What all do I need to do to install the GD Library and make it work with
PHP?

Thanks,

Joseph



-- 
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] Installing the GD Library

2001-05-09 Thread Joseph Bannon

> On what kind of platform?


Linux.

J
















-- 
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] Installing the GD Library

2001-05-09 Thread Joseph Bannon

I found your email

http://marc.theaimsgroup.com/?l=php-general&m=98772364615129&w=2


1) But what about installing 1.8.4?
2) What is PNG?
3) What is freetype?

Joseph

-- 
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] Apache error when installing PHP 4.0.5

2001-05-09 Thread Joseph Bannon

What gives?

Here is my error message

configure: error: Invalid Apache directory - unable to find httpd.h under
/usr/include/apache


Here is my configure line I typed in...

./configure --with-mysql=/usr/local/mysql-3.23.37
--with-apache=/usr/include/apache
--enable-track-vars
--prefix=/usr/local/php-4.0.5



Here is the location of the httpd.h file

/usr/include/apache/httpd.h

-- 
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] Apache error when installing PHP 4.0.5

2001-05-09 Thread Joseph Bannon

> you need to point to the apache-source install
> ie: ./configure --with-apache=../apache-1.3.19


But what if I have apache already installed? I have a Cobalt Raq3 with
apache already installed.

Joseph

-- 
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] Apache error when installing PHP 4.0.5

2001-05-10 Thread Joseph Bannon

> you need to recompile apache too, unless you want to run php as cgi, 
> in which case you just leave out the --with-apache part



Can I call PHP like normal if I don't install it with Apache?

Also, is there any way of cheating this?

Joseph















-- 
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] Cannot find mysqlclient library

2001-05-10 Thread Joseph Bannon

What exactly is the problem? I don't understand this error message

configure: error: Cannot find mysqlclient library under
/usr/local/mysql-3.23.37











-- 
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] starting up apache with php

2001-05-10 Thread Joseph Bannon

Thanks Wagner for the help on the other issue. It worked :-)

Here is my next error when I try to start Apache...

Cannot load /usr/lib/apache/libphp4.so into server: libmysqlclient.so.10:
cannot open shared object file: No such file or directory



I have the "libmysqlclient.so.10" file in the "/usr/lib/apache/". Does
anyone have a clue to fix this?

J













-- 
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] it didn't upgrade to 4.0.5

2001-05-10 Thread Joseph Bannon

Thanks Shawn, that worked  :-)

Next thing. I tried to upgrade PHP to 4.0.5 but when I do "php -v", I get
"4.0.4". What do I need to check to make sure it was upgraded?

Joseph



















-- 
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] installing PHP on a sun box

2001-05-14 Thread Joseph Bannon

I'm installing PHP on a sun box and when type in "make" and i get "not
found". How can I run make if it's not found?

Thanks,

Joseph

-- 
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] Upgrading PHP

2001-05-14 Thread Joseph Bannon

Does anyone know of instructions on upgrading PHP? 

J



-- 
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] RE: it didn't upgrade to 4.0.5

2001-05-15 Thread Joseph Bannon

What can I delete on my server to do a fresh install? I'm trying to upgrade
php and it's not working.

Joseph











-- 
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] deleting a file

2001-05-16 Thread Joseph Bannon

What is the file function to remove/delete a file from a server?

Joseph


Say I'm Hot! - Post Your Picture!
http://www.sayimhot.com

















-- 
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] removing PHP

2001-05-17 Thread Joseph Bannon

How do I remove PHP from my server? I need to do a fresh install.

Joseph













-- 
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] Re: removing PHP

2001-05-17 Thread Joseph Bannon


I'm using Red Hat. I installed the source. I want to do a fresh install of
PHP becaue no one will tell me how to upgrade 4.0.4 to 4.0.5 -lol.

J













-- 
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: removing PHP

2001-05-17 Thread Joseph Bannon

I did --with-apache. For some reason, when I install 4.0.5, it doesn't
catch. It still says 4.0.4. Is there a main file(s) I can remove to make
sure 4.0.5 catches?

T,
Joseph

-Original Message-
From: Michel 'ZioBudda' Morelli [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 12:24 PM
To: Joseph Bannon
Cc: PHP (E-mail)
Subject: Re: [PHP] Re: removing PHP


On Thu, 17 May 2001, Joseph Bannon wrote:

>
>I'm using Red Hat. I installed the source. I want to do a fresh install of
>PHP becaue no one will tell me how to upgrade 4.0.4 to 4.0.5 -lol.

Do you have installed for apache (--with-apxs or --with-apache) or for
"exec cgi" (without --with-apxs or without --with-apache) ?

However for upgrade from 4.0.4 to 4.0.5 you must only to reinstall it.
bye

-- Se ti prendo ti apro come una cozza... -- Michel  Morelli
[EMAIL PROTECTED]

ICQ UIN: 58351764   PR of Linux in Italy
http://www.ziobudda.net http://www.linuxlab.it


-- 
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] Re: mysql error, dont see why.. please help

2001-05-22 Thread Joseph Bannon

Correct, SET must be before WHERE.

Joseph


CollegeSucks.com



-Original Message-
From: Tyler Longren [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 22, 2001 4:04 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] mysql error, dont see why.. please help


Shouldn't it be:
mysql_query("UPDATE user_polls SET url = '$file_name' WHERE uid =
'$UserName' AND type = '$type") or die (mysql_error());

Maybe I'm wrong.

-- 
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] php jobs?

2001-04-01 Thread Joseph Bannon


What is a good place to find PHP jobs?

J



Say I'm Hot! - Post Your Picture!
http://www.sayimhot.com

-- 
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] is this syntax correct?

2001-04-02 Thread Joseph Bannon

What does global and session_register do?


J





Say I'm Hot! - Post Your Picture!
http://www.sayimhot.com

-- 
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] geocities and php

2001-04-02 Thread Joseph Bannon

I notice that geocities does not allow you to reference images that are on
their servers to your homepage on another server/host. Is there a way to
make PHP send different host information to geocities' server?

Thanks,
J


-- 
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] changing image size

2001-04-02 Thread Joseph Bannon

Can PHP change the size of an image (gif or jpg)?

J


Say I'm Hot! - Post Your Picture!
http://www.sayimhot.com


-- 
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] PHP and geocities

2001-04-05 Thread Joseph Bannon

> Sure you can, but the only way I know of is to use fsockopen() and use
> fputs() to mimick an HTTP connection session.

Can you give me the coding for this?



> To fake geocities you'll need to set the referer, I believe. Not sure what
> it needs to be set to, however.

What is the code for this as well?


Thanks,
J






Say I'm Hot! - Post Your Picture!
http://www.sayimhot.com



















-- 
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] cookies that don't expire

2001-04-06 Thread Joseph Bannon

How do you set cookies that don't expire?

J

Say I'm Hot! - Post Your Picture!
http://www.sayimhot.com



































-- 
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] running as a script

2001-04-07 Thread Joseph Bannon

How do you get PHP to run at a script, like at a telnet prompt?

J

















-- 
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] submitting to a remote form

2001-04-07 Thread Joseph Bannon

I have a remote php script on a remote server that I need to submit
information to. Does PHP have the ability for me to submit information
remotely?

J


Say I'm Hot! - Post Your Picture!
http://www.sayimhot.com


-- 
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] submitting to a remote form

2001-04-07 Thread Joseph Bannon

> You can use fopen/fread to open the script remotely.
> 
> Just append the query string onto the url something like this:
> 
> www.example.com/example.php?var1=var
> 
> ...and example.php will have $var1 with the value "var". That's basically
> like using GET on a form.
> 
> I believe that's what you wanted to do?



I have to use POST on the form. I wish I could use GET.

J

-- 
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] submitting to a remote form

2001-04-07 Thread Joseph Bannon

Thanks for the info. Question: Is there a simple way to encode text?

J
























-- 
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] last three characters of a string

2001-04-09 Thread Joseph Bannon

I need to examine the last 3 characters of a string. Is there code that does
that?

J




-- 
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] referring url

2001-07-11 Thread Joseph Bannon

Is there a way in PHP to get the referring url when a link is click to get
to that page?

Thanks.

J

-- 
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] string search

2001-07-16 Thread Joseph Bannon

I need a search function (if statement) that performs a search on a string
and if the string contains something like "aol.com", performs another
function. Can anyone help me? Thanks.

Joseph

-- 
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] RE: string search

2001-07-16 Thread Joseph Bannon

Will this work?

$string = "http://www.aol.com/";;

if (ereg ("^aol.com^", $string) {
}
else {
}



> I need a search function (if statement) that performs a search on a string
> and if the string contains something like "aol.com", performs another
> function. Can anyone help me? Thanks.
















-- 
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] IP Address

2001-08-07 Thread Joseph Bannon

What is the php code to get a visitor's IP address?

Thanks,
Joseph


-- 
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] IP Address

2001-08-07 Thread Joseph Bannon

Just because you're having a bad day doesn't mean I should. Can you just
tell me what it is? I don't have those posts.

J

-Original Message-

On Tue, Aug 07, 2001 at 08:11:52AM -0500, Joseph Bannon wrote:
> What is the php code to get a visitor's IP address?
> 
> Thanks,
> Joseph


You might want to consider reading some of the other posts for a
change. There's an interesting thread on this list today. It's about
the exact same question you just asked.
Try reading that!

It's called: user's ip

-- 
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: upgrading PHP

2001-08-23 Thread Joseph Bannon

Has anyone come up with an upgrade proceedure for upgrading PHP to a higher
version?

Joseph


-- 
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] PHP mysql admin?

2001-08-27 Thread Joseph Bannon

Are there any free PHP mysql database admin programs out there?

Thanks,
Joseph


-- 
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] PHP mysql admin?

2001-08-27 Thread Joseph Bannon

Thanks. I'll give it a try.

Joseph


-Original Message-
Try phpMyAdmin

http://phpwizard.net/


- Original Message - 

> Are there any free PHP mysql database admin programs out there?



















-- 
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] How do I get the file size of a file on my server?

2001-08-28 Thread Joseph Bannon

How do I get the file size of a file on my server using PHP?

Thanks,
Joseph

-- 
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] remote hosts

2001-08-28 Thread Joseph Bannon

I run a community website with a bulletin board which I wrote in PHP. Each
member gets a profile and can submit a picture with it. However, those
members with pictures on geocites are having problems. Seems their server
denies remote hosts. Is there a way with PHP to tell their server to let
images be viewed on my website?

Thanks,
Joseph

-- 
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] install error

2001-08-29 Thread Joseph Bannon

What does this mean?



make[1]: Entering directory `/home/php-4.0.6'
/home/php-4.0.6/build/shtool mkdir -p "/usr/lib/apache" && /usr/sbin/apxs -S
LIBEXECDIR="/usr/lib/apache" -i -a -n php4 libs/libphp4.so
apxs:Warning: /usr/bin/httpd not found or not executable
apxs:Warning: Continuing anyway...
apxs:Warning: No shared object support for Apache
apxs:Warning: available under your platform. Make sure
apxs:Warning: the Apache module mod_so is compiled into
apxs:Warning: your server binary `/usr/bin/httpd'.
apsx:Warning: Continuing anyway...
apxs:Error: Unknown option: S
Usage: apxs -g -n 
   apxs -q  ...
   apxs -c [-o ] [-D [=]] [-I ]
   [-L ] [-l ] [-Wc,] [-Wl,]
...
   apxs -i [-a] [-A] [-n ]  ...
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/home/php-4.0.6'
make: *** [install-recursive] Error 1

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

2001-08-29 Thread Joseph Bannon

I want to use fgets to get an image off the server and then print it. Kinda
like if you call the script picture.php, an image will appear. How do I do
this? I'm trying to create a graphical counter with php.

Joseph


-- 
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] fpassthru (was: fgets)

2001-08-30 Thread Joseph Bannon

What exactly does fpassthru do? Does it download it to my server and then
shoot it to the browser??

Joseph













-- 
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] fpassthru (was: fgets)

2001-08-30 Thread Joseph Bannon

The thing I want to avoid is using my server's bandwidth. Each member gets a
profile and can have a photo referenced from their homepage. I use to allow
people to upload photos, but I'm getting close to using my 60GB bandwith
limit. The people that have photos on geocities couldn't reference a photo
because their servers don't allow remote hosts displaying pictures off their
site. Using 'fpassthru' fixed that. However, my next question is if the
'fpassthru' brings the information to my server and then shoots it to the
visitor's browser. I know I'm not saving their photos to my server, I just
want to make sure I'm not killing my alotted bandwith. Does 'fpassthru' do
this? If so, is there another solution?

Thanks for helping me with this.

Joseph




-Original Message-

On Thu, 30 Aug 2001, Joseph Bannon wrote:

> What exactly does fpassthru do? Does it download it to my server and then
> shoot it to the browser??

(http://php.net/fpassthru)

For the file pointer on which it operates, it reads the file pointer until
EOF and sends the data to STDOUT.  It is very much like the 'cat' command
in Unix.  The file pointer can be to a local or remote file opened with
fopen(), or a remote data source opened with fsockopen().

And as always, there's a gem in the docs ... readfile() does the
same thing as fpassthru() but doesn't need a file pointer.  It just needs
a path to a file, so you can eliminate the fopen().













-- 
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] file upload size, before upload complete

2001-08-30 Thread Joseph Bannon

Yes, I use to do this with my site.


# The original name of the file on the client machine.
$filename = $HTTP_POST_FILES['file']['name'];

# The mime type of the file, if the browser provided this information. An
example would be "image/gif". 
$filetype = $HTTP_POST_FILES['file']['type'];

# The size, in bytes, of the uploaded file.
$filesize = $HTTP_POST_FILES['file']['size'];
 
# The temporary filename of the file in which the uploaded file was stored
on the server. 
$filetemp = $HTTP_POST_FILES['file']['tmp_name'];




-- 
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] fpassthru (was: fgets)

2001-08-30 Thread Joseph Bannon

Dang it! -lol Any ideas how to get around my problem?

J


















-- 
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] fpassthru (was: fgets)

2001-08-30 Thread Joseph Bannon

What if I pass something in the header? Will that work?

Joseph

-Original Message-
From: Christopher William Wesley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 30, 2001 1:05 PM
To: PHP (E-mail)
Subject: RE: [PHP] fpassthru (was: fgets)


On Thu, 30 Aug 2001, Joseph Bannon wrote:

> The thing I want to avoid is using my server's bandwidth. Each member gets
a
> profile and can have a photo referenced from their homepage. I use to
allow
> people to upload photos, but I'm getting close to using my 60GB bandwith
> limit. The people that have photos on geocities couldn't reference a photo
> because their servers don't allow remote hosts displaying pictures off
their
> site. Using 'fpassthru' fixed that. However, my next question is if the
> 'fpassthru' brings the information to my server and then shoots it to the
> visitor's browser. I know I'm not saving their photos to my server, I just
> want to make sure I'm not killing my alotted bandwith. Does 'fpassthru' do
> this? If so, is there another solution?

If the image you're sending to the browser comes from a remote host,
unfortunately, yes, that image data does get transferred to your server,
and then gets transferred again to the users' browsers.  Since PHP is a
server-side solution, there isn't a way to skip out on the data transfer
to your server and use PHP to send the image.  The image data has to come
from your server when using PHP.  You may have to get creative with HTML,
DHTML, etc. to work around displaying the remote images from your site.














-- 
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] array search

2001-08-31 Thread Joseph Bannon

I have an array of names, like below...

$people = array("Jim","John","JP");

Is there a way in an IF statement to see if someone's name is in the array?
Like...

if ($people =~ $person) { }

I don't want to have to create a foreach loop to go through the array to see
if that person is there.

Joseph



















-- 
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] array search

2001-08-31 Thread Joseph Bannon

What about going the other way? Say I have a sentence...

"Hi, my name is Bob."

...and I want to search the sentence for one of the values (people) in the
array...

$people = array("Jim","John","JP","Bob");

Can this be done?


Thanks,
Joseph




-Original Message-

yes, in_array($person, $people)!

however, you may take a look into the manual.

-- 
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] returns (functions)

2001-09-05 Thread Joseph Bannon

I have a foreach loop running in a function. During the foreach loop, if a
variable matches another variable, it does "return $variable". My question
is this: does the function automatically stop running when the variable is
returned?

J

















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




  1   2   >