Re: [PHP] making a tutorial

2006-03-16 Thread Gustav Wiberg


- Original Message - 
From: "John Taylor-Johnston" <[EMAIL PROTECTED]>

To: "PHP-General" 
Sent: Friday, March 17, 2006 7:51 AM
Subject: [PHP] making a tutorial



I'm making a tutorial and don't really understand how to do this myself :)

Which of the following pets do have at home:
dog
cat
snake
snake
none of these


How do I parse favourite[]? I might have 2 or 5, so I need to parse ^0]
- nMax. It is a checkbox.

I might use favourite[] with mail() or store it in a mysql field.

If mysql, would I store it in a varchar(20) or an enum() and how?

John



Hi there!

Do you have to name it as favourite[]? Can't you name it as "just" favourite 
(without brackets)
If you name it as just favourite, at least in Javascript you could loop 
through favourite as an array. I don't know if this works in PHP as well.


Best regards
/Gustav Wiberg

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



Re: [PHP] making a tutorial

2006-03-16 Thread - Edwin -
Hi!

On Fri, 17 Mar 2006 01:51:41 -0500
John Taylor-Johnston wrote:

> I'm making a tutorial and don't really understand how to do
> this myself :)
> 
> Which of the following pets do have at home:
>  value="dog">dog 
>  value="cat">cat 
>  value="snake">snake 
>  value="other">snake 
>  value="none">none of these 
> 

While you're at it, why not use "" instead?
(Pls. notice the last forward slash.)

> How do I parse favourite[]? I might have 2 or 5, so I need to
> parse ^0] 
> - nMax. It is a checkbox.

Not exactly sure what you meant but check what's
submitted with:

  $_POST['favourite'] or $_GET['favourite']

> I might use favourite[] with mail() or store it in a mysql
> field.
> 
> If mysql, would I store it in a varchar(20) or an enum() and
> how?

It all depends on how your tables are setup but I don't know
about enum()...

> John

HTH,

- Edwin -

-- 
"Keep doing this in remembrance of me." - Luke 22:19

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



Re: [PHP] making a tutorial

2006-03-16 Thread admin
Parse.. It will be an array after you submit the form.
So depends on what you wanna do with it.

Do a print_r($favourite); after form submit and you will see.

How to  store it.. well if you wanna it in seperate fields you can loop
through it and do an insert on every array element in your DB or store it
serialized. Or create a string from the array and store it in a DB field.
enum? Don't think it will work :)

grtz,
Thijs

> I'm making a tutorial and don't really understand how to do this myself :)
>
> Which of the following pets do have at home:
> dog
> cat
> snake
> snake
> none of these
> 
>
> How do I parse favourite[]? I might have 2 or 5, so I need to parse ^0]
> - nMax. It is a checkbox.
>
> I might use favourite[] with mail() or store it in a mysql field.
>
> If mysql, would I store it in a varchar(20) or an enum() and how?
>
> John
>
>

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



Re: [PHP] testing 234

2006-03-16 Thread John Taylor-Johnston

Are any of my posts getting through?

They don't appear to be. This one only made it halfway :P


Yeah, it doesn't seem to accept my email from another address.
Thanks Rob. I was trying to post something last night and it never got through.
This email seems acceptable to the group Gods.

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



[PHP] making a tutorial

2006-03-16 Thread John Taylor-Johnston

I'm making a tutorial and don't really understand how to do this myself :)

Which of the following pets do have at home:
dog
cat
snake
snake
none of these


How do I parse favourite[]? I might have 2 or 5, so I need to parse ^0] 
- nMax. It is a checkbox.


I might use favourite[] with mail() or store it in a mysql field.

If mysql, would I store it in a varchar(20) or an enum() and how?

John



Re: [PHP] How does one obtain the resolution of an image in PHP?

2006-03-16 Thread - Edwin -
Hi!

On Thu, 16 Mar 2006 14:31:38 -0500
John Hinton <[EMAIL PROTECTED]> wrote:

> Simon M. Campden-Main wrote:
> >
> > Well, there's the meat of it, isn't it?  I wonder how Paint
> > Shop Pro comes up with PPI (Image - Image information). 
> > I have several thousand scanned images with resolution
> > ranging from 72 PPI up to 1200 PPI (As reported by Paint
> > Shop Pro) and want to discard, or more likely tag as
> > rejected, any that suffer a resolution of less than 150
> > PPI.  As you might imagine, I find the thought of
> > doing it manually with Paint Shop Pro repugnant.

Okay, if it was scanned at 72ppi then you can't really print
it out again even with a near-similar quality. However, having
an image with a 72ppi does NOT necessarily mean that you
have an image unsuitable for printing.

> PPI or pixels per inch is a printing term.

Last time I checked, "dpi" is the printing term. (^_^)

  dpi (dots per inch) -> printer
  ppi (pixels per inch) -> monitor/screen

> It has nothing to do with viewing on a monitor as a 
> monitor's pixel setting is your set resolution, as in
> 800x600, 1024x768, 1600x1200.. etc. This is a 
> constantly debated urban legend. A pixel on a monitor
> is a pixel...

True.

> Pixels per inch are used in the printing world and relates to
> how many pixels are used to provide one inch of printed
> space. Obviously, at least up to the limits of the printer
> being used, a high PPI setting produces a higher quality
> 'printed' image.

This really depends on how big the image is to be printed.
Besides, an image/photo taken using a digital camera (at
least mine) always defaults to 72ppi. BUT that does not
mean that it will come out badly printed at 300 dpi -- it
all depends on how big is the size (setting) of the picture
when I first took it.

> If you don't believe me, use your paint program, change the
> PPI of an image and notice how the image doesn't change size
> on the screen. Also, do this and switch the image size
> display back and forth between inches and pixels.. the pixel
> count doesn't change, only the inches change.. but again...
> that's the printing world and has nothing to do with display
> on a monitor or webbrowser.

True. This is basically because most monitors/screens are
actually at or near 72 ppi. "screen" !== "printer" (^_-)

> So, an image 10,000pixels by 10,000pixels will be huge on
> screen. If set to a resolution of 1000ppi, the image would be
> printed at 10" x 10", but you still can't view the whole
> image on a monitor without zooming out. If resolution we set
> to 10,000dpi, the image would print as 1" x 1", but you still
> wouldn't be able to view it on a monitor (unless you have an

I think you meant, "... but you still would be able ... "

> awesome multi-display setup that can reach 10,000 pixels wide
> and tall). That's the bottom line.
> 
> So, I keep seeing 'display size' when I'm thinking the term
> should be 'printed size'.
> 
> John Hinton

HTH & HAND,

- Edwin -

-- 
"A capable wife is a crown to her owner." - Proverbs 12:4

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



Re: [PHP] testing 234

2006-03-16 Thread Robert Cummings
On Fri, 2006-03-17 at 01:47, John Taylor-Johnston wrote:
> Are any of my posts getting through?

They don't appear to be. This one only made it halfway :P

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



[PHP] testing 234

2006-03-16 Thread John Taylor-Johnston

Are any of my posts getting through?
John

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



Re: [PHP] How does one obtain the resolution of an image in PHP?

2006-03-16 Thread Arnaldo Gandol
hi, I have troubles with strangers characters in my html pages, I've fixed
them by using mb_convert_encoding() function with  UTF-8  encoding  but I've
hear that mbstring library is unstable in some linux distributions. Does any
body knows how to solve this problem without using mbstring library. I'm
working with php-5.

Thank you beforehand.


Re: [PHP] How does one obtain the resolution of an image in PHP?

2006-03-16 Thread - Edwin -
Hi!

On Thu, 16 Mar 2006 08:13:41 -0800
"Simon M.  Campden-Main" <[EMAIL PROTECTED]> wrote:

> [ . . . ]
> I want ppi! 
> [ . . . ]
> I'm running the current Cent OS
> [ . . . ]

See if you have ImageMagick installed. You could
probably use the "identify" command to find the
info you need. For more information:

  $ man identify

Of course, this solution is not *in* PHP but you can
invoke that program inside your PHP scripts (^_-)

HTH,

- Edwin -

-- 
"Happy are the mild-tempered ones,
 since they will inherit the earth." - Matthew 5:5

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



Re: [PHP] php 5 installation problem

2006-03-16 Thread - Edwin -
Hi!

On Thu, 16 Mar 2006 20:45:29 -0400
Miles Thompson <[EMAIL PROTECTED]> wrote:

> At 06:23 PM 3/16/2006, Anthony Ettinger wrote:
> 
> >[...]
> >Is there a drawback to running php5 as CGI?
> 
> Anthony,
> 
> I really don't know, because computers are much faster, so
> there may not be the time lags there were 10 years ago.
> 
> As I understand CGI, the web server sees that the page is of
> type .php, starts up PHP, PHP processes the page, the web
> server shuts down PHP and sends out the results. The overhead
> of starting and stopping PHP (or Perl, etc.) was the
> complaint.
> 
> When PHP is loaded as an Apache module there is not startup /
> shutdown overhead.
> 
> If I have this wrong, or if PHP5 as a CGI stays resident and
> there is no penalty, will someone please correct me.

No, nothing wrong there, I think.

But there are other differences. (Like some functions not
working, etc.) Pros and cons, one might say. Anyway, here
are some results of a quick google search:

  http://www.google.com/search?q=php+CGI+module+difference

Hmm.. I just couldn't find it but there should be a page
about it on www.php.net ... (^_-)

> Regards - Miles 

HTH,

- Edwin -

-- 
"Give to a wise person and he will become still wiser.
 Impart knowledge to someone righteous
 and he will increase in learning." - Proverbs 9:9

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



[PHP] session_cache_expire()

2006-03-16 Thread suresh kumar
I searched php.net/session and weberdev website and
implemented session_cache_limiter() and
session_cache_expire() function.but i am not getting
the output what i want.i spend whole day on
searching.any one give the solution for my problem


in windows,if user idle for 1 minute,his desktop
screen is changed to screen saver.i like to implement
the same logic in my project if user is idle for 3
minutes its session will have to automatically 
destroy.i am waiting for or response.



__ 
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com

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



Re: [PHP] Re: setcookie security concerns [medium]

2006-03-16 Thread Rafael

(Comments inline)

tedd wrote:
[···]
One last question, considering the above code, would the following code 
be a suitable replacement?





	Actually, you receive $set via GET, so you should use $_GET instead of 
$_POST.  A lot of people use $_REQUEST (wich is a combination of $_POST, 
$_GET and $_COOKIE —check the manual), but I read somewhere that this 
isn't a good practice, though I don't recall why :p


  $set = $_GET['set'];
or even better would be something like
  $set = ( isset($_GET['set']) ? $_GET['set'] : $default_value );

I've used htmlentities() before to filter out user's input, but I don't 
know if that's sufficient to protect from all types of injections -- is it?


	No, it doesn't suffice this way --it does for the script we're talking 
about, but that's because you only use the data as part of the HTML 
code, so no more harm can be done with it.


	A tipical example would be a login script that uses the data as it 
arrives, for example:

  $login = $_POST['login'];
  $passw = $_POST['passw'];
  $sql   = "SELECT * FROM user\n"
  ."WHERE( login = '$login' AND passw = '$passw' )";

In this case, what happens if I send something like
  login: ' OR '1'='1' OR '0
  passw: doesnt care
? (I avoided the ' in the passw, just in case)
Well, we'll end up with an SQL similar to this
  SELECT * FROM user
  WHERE( login = '' OR '1'='1' OR '0' AND passw = 'doesnt care' )
and because of the priority of the AND / OR, we would have 3 separated 
conditions each enough to validate the user, as '1'='1' is true, then we 
have a validated user.


Now, if I can do this, I could change the logic a little...
  login: admin' AND '1'='1' OR '0
  WHERE( login = 'admin' AND '1'='1' OR '0' AND passw = 'doesnt care' )
In this case you should care about ' and " (depending on which one are 
you using)  Again, I read somewhere that the safest way is to use 
(emulated?) "prepared SQL statements", such the "?" SQL-parameters in 
ADODB, PEAR-DB and others.


	By the way, even causing an SQL error that is displayed to the user 
(the whole message or just a part of it) can reveal info that could be 
used to bypass your protection.

--
Atentamente,
J. Rafael Salazar Magaña
Innox - Innovación Inteligente
Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE
http://www.innox.com.mx

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



Re: [PHP] Best practice to set up register_globals

2006-03-16 Thread Curt Zirzow
On Thu, Mar 16, 2006 at 08:46:07PM -0700, Nicolas Verhaeghe wrote:
> One of my clients has an os commerce install which requires
> register_globals to be set to on, for some reason.
> 
> It is set up to off in php.ini, as it should, but I'd like to know what
> the best fashion would be for me to set it on locally for this domain
> only.

Assuming you have apache as your webserver..

If you must set it, you can set it per any apache directive, like
a ,  or the like or even a .htaccess (if
enabled).


Curt.
-- 
cat .signature: No such file or directory

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



[PHP] Best practice to set up register_globals

2006-03-16 Thread Nicolas Verhaeghe
One of my clients has an os commerce install which requires
register_globals to be set to on, for some reason.

It is set up to off in php.ini, as it should, but I'd like to know what
the best fashion would be for me to set it on locally for this domain
only.

Thanks!

 


Re: [PHP] Best practice to set up register_globals locally?

2006-03-16 Thread Chris

Nicolas Verhaeghe wrote:

One of my clients has an os commerce install which requires
register_globals to be set to on, for some reason.

It is set up to off in php.ini, as it should, but I'd like to know what
the best fashion would be for me to set it on locally for this domain
only.


If you need to ask a new question please start a new thread - copy the 
email address and hit "new" instead of replying to an existing question. 
It makes it so much easier to follow.


See http://www.php.net/manual/en/ini.php#ini.list and 
http://www.php.net/manual/en/configuration.changes.php


Basically, in apache virtualhost or .htaccess file:

php_flag register_globals on


--
Postgresql & php tutorials
http://www.designmagick.com/

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



[PHP] Best practice to set up register_globals locally?

2006-03-16 Thread Nicolas Verhaeghe
One of my clients has an os commerce install which requires
register_globals to be set to on, for some reason.

It is set up to off in php.ini, as it should, but I'd like to know what
the best fashion would be for me to set it on locally for this domain
only.

Thanks!

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



Re: [PHP] MySQL NOT IN Query not working

2006-03-16 Thread Kevin Murphy

Yup. Thats the problem. I'm running 4.0.21. Thanks.

--  
Kevin Murphy

Webmaster - Information and Marketing Services
Western Nevada Community College
www.wncc.edu
(775) 445-3326


On Mar 16, 2006, at 4:48 PM, Miles Thompson wrote:


At 08:41 PM 3/16/2006, Kevin Murphy wrote:


Anyone want to point me to why this isn't working:

$hr_query = "select dp_lname,dp_fname,dp_id
FROM dir_all
WHERE dp_id NOT IN (SELECT sup_id FROM  
dir_title2)

ORDER BY dp_lname";

There are two tables, dir_all (the main list of everyone) and
dir_title2 (supplemental). If someone is in dir_title2 then the
sup_id is the same as their dp_id. What I am trying to do is get a
list of every person in dir_all that is NOT in dir_title2. Any
thoughts as to what am doing wrong?

--
Kevin Murphy
Webmaster - Information and Marketing Services
Western Nevada Community College
www.wncc.edu
(775) 445-3326


Kevin,

Looks like an older version of MySQL.
Check your version: subqueries were not supported until ver 4.1.

The older docs at MySQL give a work around.

Miles

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 268.2.1/279 - Release Date:  
3/10/2006


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



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



Re: [PHP] MySQL NOT IN Query not working

2006-03-16 Thread Ligaya Turmelle

Kevin Murphy wrote:

Anyone want to point me to why this isn't working:

$hr_query = "select dp_lname,dp_fname,dp_id
FROM dir_all
WHERE dp_id NOT IN (SELECT sup_id FROM dir_title2)
ORDER BY dp_lname";

There are two tables, dir_all (the main list of everyone) and  
dir_title2 (supplemental). If someone is in dir_title2 then the  sup_id 
is the same as their dp_id. What I am trying to do is get a  list of 
every person in dir_all that is NOT in dir_title2. Any  thoughts as to 
what am doing wrong?



What does mysql_error() say?

--

life is a game... so have fun.

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

Re: [PHP] MySQL NOT IN Query not working

2006-03-16 Thread Miles Thompson

At 08:41 PM 3/16/2006, Kevin Murphy wrote:


Anyone want to point me to why this isn't working:

$hr_query = "select dp_lname,dp_fname,dp_id
FROM dir_all
WHERE dp_id NOT IN (SELECT sup_id FROM dir_title2)
ORDER BY dp_lname";

There are two tables, dir_all (the main list of everyone) and
dir_title2 (supplemental). If someone is in dir_title2 then the
sup_id is the same as their dp_id. What I am trying to do is get a
list of every person in dir_all that is NOT in dir_title2. Any
thoughts as to what am doing wrong?

--
Kevin Murphy
Webmaster - Information and Marketing Services
Western Nevada Community College
www.wncc.edu
(775) 445-3326


Kevin,

Looks like an older version of MySQL.
Check your version: subqueries were not supported until ver 4.1.

The older docs at MySQL give a work around.

Miles 



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 268.2.1/279 - Release Date: 3/10/2006

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



Re: [PHP] php 5 installation problem

2006-03-16 Thread Miles Thompson

At 06:23 PM 3/16/2006, Anthony Ettinger wrote:


On 3/16/06, Miles Thompson <[EMAIL PROTECTED]> wrote:
> At 05:40 PM 3/16/2006, Anthony Ettinger wrote:
>
> >dreamhost let's you choose php4 or 5, as I'm sure others do as well.
> 
>
> A little more on dreamhost.
> PHP5 is installed as CGI, not Apache module.

Is there a drawback to running php5 as CGI?

--
Anthony Ettinger
Signature: http://chovy.dyndns.org/hcard.html


Anthony,

I really don't know, because computers are much faster, so there may not be 
the time lags there were 10 years ago.


As I understand CGI, the web server sees that the page is of type .php, 
starts up PHP, PHP processes the page, the web server shuts down PHP and 
sends out the results. The overhead of starting and stopping PHP (or Perl, 
etc.) was the complaint.


When PHP is loaded as an Apache module there is not startup / shutdown 
overhead.


If I have this wrong, or if PHP5 as a CGI stays resident and there is no 
penalty, will someone please correct me.


Regards - Miles 



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 268.2.1/279 - Release Date: 3/10/2006

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



[PHP] MySQL NOT IN Query not working

2006-03-16 Thread Kevin Murphy

Anyone want to point me to why this isn't working:

$hr_query = "select dp_lname,dp_fname,dp_id
FROM dir_all
WHERE dp_id NOT IN (SELECT sup_id FROM dir_title2)
ORDER BY dp_lname";

There are two tables, dir_all (the main list of everyone) and  
dir_title2 (supplemental). If someone is in dir_title2 then the  
sup_id is the same as their dp_id. What I am trying to do is get a  
list of every person in dir_all that is NOT in dir_title2. Any  
thoughts as to what am doing wrong?


--
Kevin Murphy
Webmaster - Information and Marketing Services
Western Nevada Community College
www.wncc.edu
(775) 445-3326

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



[PHP] VxWorks PHP port??

2006-03-16 Thread Shawn N
Hello,

Does a VxWorks port of the PHP interpreter currently exist? If no, is any
such project in the pipeline?? We'd like to run PHP scripts as CGIs in some
of our embedded devices.

Thanks for the info.

-- Shawn

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



[PHP] VxWorks PHP port??

2006-03-16 Thread Shawn N
Hello,

Does a VxWorks port of the PHP interpreter currently exist? If no, is any
such project in the pipeline?? We'd like to run PHP scripts as CGIs in some
of our embedded devices.

Thanks for the info.

-- Shawn

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



RE: [PHP] IE quirk

2006-03-16 Thread Jay Blanchard
[snip]
I created a small bannering program. It works great in Firefox. But I
have a problem with IE.
If I place the banner on a different domain than the bannering program,
Ex:

www.bannerserver.com

www.otherserver.com   has img tag calling from www.bannerserver.com


I use a session to keep track of the banner that is displayed, have even
tried using cookies directly.

Works great in firefox, problem with IE is first time vising
www.otherserver.com, clicking on the img does not work, apparently, the
session was never start/recorded when retrieving the image. However, if
I go back to www.otherserver.com, it then works fine, I can go anywhere,
as long as I don't close the browser, www.otherserver.com works.

Why would IE not be recording the session info on the first visit?
Firefox does it just fine.

Anyone run into this?
[/snip]

>From http://www.php.net/session
[quote]
When using session_start() to begin a session this session will remain
open until the page has finished loading or it is explicitly terminated.

You can lose the session however if the the page contains a reference to
 with name and id references (which may be used if the image
is referencing a dynamic image, called by javascript)  This seems to
casue IE6 to refresh the page session id and hence loose the session.
[/quote]

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



Re: [PHP] php 5 installation problem

2006-03-16 Thread Anthony Ettinger
On 3/16/06, Miles Thompson <[EMAIL PROTECTED]> wrote:
> At 05:40 PM 3/16/2006, Anthony Ettinger wrote:
>
> >dreamhost let's you choose php4 or 5, as I'm sure others do as well.
> 
>
> A little more on dreamhost.
> PHP5 is installed as CGI, not Apache module.


Is there a drawback to running php5 as CGI?



--
Anthony Ettinger
Signature: http://chovy.dyndns.org/hcard.html

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



[PHP] IE quirk

2006-03-16 Thread PHP
Hi,
I created a small bannering program. It works great in Firefox. But I have a 
problem with IE.
If I place the banner on a different domain than the bannering program, Ex:

www.bannerserver.com

www.otherserver.com   has img tag calling from www.bannerserver.com


I use a session to keep track of the banner that is displayed, have even tried 
using cookies directly.

Works great in firefox, problem with IE is first time vising 
www.otherserver.com, clicking on the img does not work, apparently, the session 
was never start/recorded when retrieving the image. However, if I go back to 
www.otherserver.com, it then works fine, I can go anywhere, as long as I don't 
close the browser, www.otherserver.com works.

Why would IE not be recording the session info on the first visit? Firefox does 
it just fine.

Anyone run into this?

Thanks for any help.


Re: [PHP] php 5 installation problem

2006-03-16 Thread Miles Thompson

At 05:40 PM 3/16/2006, Anthony Ettinger wrote:


dreamhost let's you choose php4 or 5, as I'm sure others do as well.



A little more on dreamhost.
PHP5 is installed as CGI, not Apache module.

Does anyone have any experience with Nexcess.net -- advertisers on back 
page of PHP | Architect?


At hub.org you can install anything - virtual server.

Cheers - Miles


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 268.2.1/279 - Release Date: 3/10/2006

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



Re: [PHP] php 5 installation problem

2006-03-16 Thread Anthony Ettinger
dreamhost let's you choose php4 or 5, as I'm sure others do as well.

On 3/16/06, Jochem Maas <[EMAIL PROTECTED]> wrote:
> tedd wrote:
> > Hi gang:
> >
> > I asked my host to install the current versions of php 5 and the
> > following was his answer:
> >
> > "Sorry but php has some issues with cpanel."
>
> cpanel has issues with php5 not the other way around :-)
>
> >
> > Anyone heard of any problems or a work-around?
>
> get a different hosting provider. ;-)
>
> in the mean time why not install a cpoy of apache/php5/mysql/etc
> on your local PC and play with that?
>
> >
> > Thanks.
> >
> > tedd
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>


--
Anthony Ettinger
Signature: http://chovy.dyndns.org/hcard.html

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



Re: [PHP] adding code and beginning and end without includes

2006-03-16 Thread Claudio Corlatti

search in google
php +prepend +htaccess

http://www.codingforums.com/showthread.php?t=78287

bye bye

Claudio

blackwater dev wrote:

Is there a way to intercept and add code at the beginning and end of every
http request - WITHOUT having to put an include at the top and bottom of
every page?

This is something we need to be app specific so don't really want to do it
globally like chanse the php.ini or something.

Thanks!

  


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



Re: [PHP] adding code and beginning and end without includes

2006-03-16 Thread Jochem Maas

blackwater dev wrote:

Is there a way to intercept and add code at the beginning and end of every
http request - WITHOUT having to put an include at the top and bottom of
every page?

This is something we need to be app specific so don't really want to do it
globally like chanse the php.ini or something.


stick this:

php_value auto_prepend_file '/path/to/prepend.inc'  
php_value auto_append_file  '/path/to/append.inc'

in /path/to/your/app/specific/stuff/.htaccess



Thanks!



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



[PHP] adding code and beginning and end without includes

2006-03-16 Thread blackwater dev
Is there a way to intercept and add code at the beginning and end of every
http request - WITHOUT having to put an include at the top and bottom of
every page?

This is something we need to be app specific so don't really want to do it
globally like chanse the php.ini or something.

Thanks!


Re: [PHP] Two functions, one javascript, one php, one on_click event?

2006-03-16 Thread Satyam
Unless you want to refresh the page, you would have to use Ajax, called from 
JavaScript and take the reply and continue processing via JavaScript.


- Original Message - 
From: "Jay Blanchard" <[EMAIL PROTECTED]>

To: 
Sent: Thursday, March 16, 2006 8:51 PM
Subject: [PHP] Two functions, one javascript, one php, one on_click event?


I have a button. When the button is clicked it performs a JavaScript
function. I need it to perform a PHP function before it performs the
JavaScript function. Is this a case where I do the PHP function and then
output the JavaScript with PHP? My head hurts.

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

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



RE: [PHP] Two functions, one javascript, one php, one on_click event? [SOLVED]

2006-03-16 Thread Jay Blanchard
[snip]

I have a button. When the button is clicked it performs a JavaScript
function. I need it to perform a PHP function before it performs the
JavaScript function. Is this a case where I do the PHP function and then
output the JavaScript with PHP? My head hurts.
[/snip]

Yes.

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



Re: [PHP] yahoo webshosting

2006-03-16 Thread pfancy

""Jay Blanchard"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
[snip]
Does anyone use yahoo webhosting? I have a question about enabling php
ftp
module or something like that.
[/snip]

No. I have answers about enabling php ftp module or something like that.

 could you help me with that. I do apologize for lack of term, just
wasn't sure how to word it.

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



[PHP] Two functions, one javascript, one php, one on_click event?

2006-03-16 Thread Jay Blanchard
I have a button. When the button is clicked it performs a JavaScript
function. I need it to perform a PHP function before it performs the
JavaScript function. Is this a case where I do the PHP function and then
output the JavaScript with PHP? My head hurts.

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



Re: [PHP] help with setting menu styles with PHP

2006-03-16 Thread Anthony Ettinger
I did something similar on my page. I did a simple comparison in a
loop through the menu DOM,

foreach ($nodeList as $node){
   if ($currentPage eq $nodeHref) { //set class attribute = 'active'; }
}


On 3/16/06, tedd <[EMAIL PROTECTED]> wrote:
> >http://www.inspired-evolution.com/About_Me.php
> >
> >What I want to do next is to change the menu from being hard coded on all of
> >my pages to being an include making the menu more manageable. The stumbling
> >block is I want to be able to keep the CSS functionality where you have the
> >active indicator which has different CSS for the link of the page you are
> >on. I have seen this done with PHP before with something like IF on active
> >page use this style  ELSE use this style. Can any PHP gurus assist me in
> >coding something like this?
> >
> >I don't believe it is too difficult, but beyond by scope right at the
> >moment.
>
> It's not a php solution, but you can change it to one easy enough.
> This will give you the idea.
>
> http://www.sperling.com/examples/menu_aware/
>
> tedd
> --
> 
> http://sperling.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>


--
Anthony Ettinger
Signature: http://chovy.dyndns.org/hcard.html

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



Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread Al

John Nichel wrote:

tedd wrote:

Here's my take -- gif's are no longer supported by the GD library 
because of patent problems. So development of how to deal with them 
has been moved to png.



Untrue.  GIF images *are* supported by the GD library.  They were 
briefly taken out, but the support was re-enabled in v2.0.28 (almost two 
years ago).  It is being actively developed, and expanded.  They've even 
added support for animated GIF's.




Yea; but it does work very well.  For example, you can resize a GIF in PSP and get a reasonable size file with good 
quality.


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



Re: [PHP] How does one obtain the resolution of an image in PHP?

2006-03-16 Thread Richard Lynch
On Thu, March 16, 2006 1:31 pm, John Hinton wrote:
> Simon M. Campden-Main wrote:
>> Well, there's the meat of it, isn't it?  I wonder how Paint Shop Pro
>> comes
>> up
>> with PPI (Image - Image information).  I have several thousand
>> scanned
>> images
>> with resolution ranging from 72 PPI up to 1200 PPI (As reported by
>> Paint
>> Shop
>> Pro) and want to discard, or more likely tag as rejected, any that
>> suffer a
>> resolution of less than 150 PPI.  As you might imagine, I find the
>> thought
>> of
>> doing it manually with Paint Shop Pro repugnant.
>>
>>
> PPI or pixels per inch is a printing term. It has nothing to do with
> viewing on a monitor as a monitor's pixel setting is your set
> resolution, as in 800x600, 1024x768, 1600x1200.. etc. This is a
> constantly debated urban legend. A pixel on a monitor is a pixel...

But there is SOME kind of data embedded in some images providing the
resolution at which they will/should be printed...

Because *SOMETIMES* http://php.net/getimagesize provides a reasonable
"resolution" in its result array.

'Course, sometimes it's full of crap, too...

Thing is, if you go changing those settings, and then save and then
print the two versions, you'll get quite different printer output.

So OBVIOUSLY the files are different, in some way that printers
understand, even if PHP only half-understands it.

'Twould be nice if PHP was as smart as a printer :-) :-) :-)

YMMV

-- 
Like Music?
http://l-i-e.com/artists.htm

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



Re: [PHP] How does one obtain the resolution of an image in PHP?

2006-03-16 Thread John Hinton

Simon M. Campden-Main wrote:


Well, there's the meat of it, isn't it?  I wonder how Paint Shop Pro comes 
up
with PPI (Image - Image information).  I have several thousand scanned 
images
with resolution ranging from 72 PPI up to 1200 PPI (As reported by Paint 
Shop

Pro) and want to discard, or more likely tag as rejected, any that suffer a
resolution of less than 150 PPI.  As you might imagine, I find the thought 
of

doing it manually with Paint Shop Pro repugnant.

  

PPI or pixels per inch is a printing term. It has nothing to do with
viewing on a monitor as a monitor's pixel setting is your set
resolution, as in 800x600, 1024x768, 1600x1200.. etc. This is a
constantly debated urban legend. A pixel on a monitor is a pixel...

Pixels per inch are used in the printing world and relates to how many
pixels are used to provide one inch of printed space. Obviously, at
least up to the limits of the printer being used, a high PPI setting
produces a higher quality 'printed' image.

If you don't believe me, use your paint program, change the PPI of an
image and notice how the image doesn't change size on the screen. Also,
do this and switch the image size display back and forth between inches
and pixels.. the pixel count doesn't change, only the inches change..
but again... that's the printing world and has nothing to do with
display on a monitor or webbrowser.

So, an image 10,000pixels by 10,000pixels will be huge on screen. If set
to a resolution of 1000ppi, the image would be printed at 10" x 10", but
you still can't view the whole image on a monitor without zooming out.
If resolution we set to 10,000dpi, the image would print as 1" x 1", but
you still wouldn't be able to view it on a monitor (unless you have an
awesome multi-display setup that can reach 10,000 pixels wide and tall).
That's the bottom line.

So, I keep seeing 'display size' when I'm thinking the term should be
'printed size'.

John Hinton

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



Re: [PHP] How does one obtain the resolution of an image in PHP?

2006-03-16 Thread Simon M. Campden-Main
Thanks again, Tedd.

I've checked out the links but still no luck.  As I stated (Or implied.)
in my first post, I have played with exif_read_data() but it is of little
use with the scanned images I've examined.  You can see results of my
experiments with  exif_read_data() and getimagesize() at:
http://www.campden-main.com/~orchids/test/test_exif.php

You'll note that if I simply divide the dimensions in pixels by the
dimensions in inches, I'll get the resolution in PPI.  Perhaps the solution
to my problem lies in simply finding a way to obtain the dimensions in 
inches
(As either exif_read_data() or getimagesize() will give me the dimensions in
pixels.) and just do the math.

Again, thanks for your help!
Simon
[EMAIL PROTECTED]

"tedd" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Simon:
>
>>Thank you for your response, Tedd.
>
> No problem, glad to help if I can.
>
>>I think so, but I am a bit dense.  I'm not concerned with image size but
>>rather
>>native resolution.  Thanks again for taking the time.
>>Simon
>
> Yes, but that's a different question.
>
> On one hand, you have an image that can be presented in numerous 
> resolutions.
>
> On the other hand, how was the image first obtained?
>
> Some images contain that information, but it's defined by the device that 
> captured the image, for example:
>
> http://www.exif.org/samples.html
>
> In that data set is a host of other information, such as shutter-speed, 
> flash, focal-length, camera make, model,  and such. Check out:
>
> http://www.digicamhelp.com/what-is-exif/
>
> If you want to access these data via php, check out:
>
> http://us3.php.net/exif
>
> But understand, not all images contain that information.
>
> HTH's
>
> tedd
>
> -- 
> 
> http://sperling.com 

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



Re: [PHP] yahoo webshosting

2006-03-16 Thread Anthony Ettinger
dreamhost.com

On 3/16/06, Jay Blanchard <[EMAIL PROTECTED]> wrote:
> [snip]
> Does anyone use yahoo webhosting? I have a question about enabling php
> ftp
> module or something like that.
> [/snip]
>
> No. I have answers about enabling php ftp module or something like that.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>


--
Anthony Ettinger
Signature: http://chovy.dyndns.org/hcard.html

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



RE: [PHP] yahoo webshosting

2006-03-16 Thread Jay Blanchard
[snip]
Does anyone use yahoo webhosting? I have a question about enabling php
ftp
module or something like that.
[/snip]

No. I have answers about enabling php ftp module or something like that.

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



[PHP] yahoo webshosting

2006-03-16 Thread pfancy
Does anyone use yahoo webhosting? I have a question about enabling php ftp
module or something like that.

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



Re: [PHP] How does one obtain the resolution of an image in PHP?

2006-03-16 Thread tedd

Simon:

One more link:

http://www.weberdev.com/Manuals/PHP/function.exif-read-data.html

There's code there.

HTH's

tedd

--

http://sperling.com

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



Re: [PHP] How does one obtain the resolution of an image in PHP?

2006-03-16 Thread tedd

Simon:


Thank you for your response, Tedd.


No problem, glad to help if I can.


I think so, but I am a bit dense.  I'm not concerned with image size but
rather
native resolution.  Thanks again for taking the time.
Simon


Yes, but that's a different question.

On one hand, you have an image that can be presented in numerous resolutions.

On the other hand, how was the image first obtained?

Some images contain that information, but it's defined by the device 
that captured the image, for example:


http://www.exif.org/samples.html

In that data set is a host of other information, such as 
shutter-speed, flash, focal-length, camera make, model,  and such. 
Check out:


http://www.digicamhelp.com/what-is-exif/

If you want to access these data via php, check out:

http://us3.php.net/exif

But understand, not all images contain that information.

HTH's

tedd

--

http://sperling.com

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



Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread tedd

tedd wrote:

Here's my take -- gif's are no longer supported by the GD library 
because of patent problems. So development of how to deal with them 
has been moved to png.



Untrue.  GIF images *are* supported by the GD library.  They were 
briefly taken out, but the support was re-enabled in v2.0.28 (almost 
two years ago).  It is being actively developed, and expanded. 
They've even added support for animated GIF's.


--
John C. Nichel IV


John:

That's what I get for reading an "out of date" reference, namely "PHP 
Graphics" by Allan Kent el at.


Thanks for the correction.

tedd
--

http://sperling.com

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



Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread John Nichel

tedd wrote:

Here's my take -- gif's are no longer supported by the GD library 
because of patent problems. So development of how to deal with them has 
been moved to png.



Untrue.  GIF images *are* supported by the GD library.  They were 
briefly taken out, but the support was re-enabled in v2.0.28 (almost two 
years ago).  It is being actively developed, and expanded.  They've even 
added support for animated GIF's.


--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

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



Re: [PHP] How does one obtain the resolution of an image in PHP?

2006-03-16 Thread Simon M. Campden-Main
Thank you for your response, Tedd.

T> There was a discussion on this a few weeks back -- you might look through
the archives.

I'm reasonably certain I saw the thread but it was no help.  I will go back
and review it in case I missed something.

T> However, the bottom line was that images (other than exif notations) do 
not
contain any resolution information because the resolution of any image is up 
to
the method you wish to view it.

Well, there's the meat of it, isn't it?  I wonder how Paint Shop Pro comes 
up
with PPI (Image - Image information).  I have several thousand scanned 
images
with resolution ranging from 72 PPI up to 1200 PPI (As reported by Paint 
Shop
Pro) and want to discard, or more likely tag as rejected, any that suffer a
resolution of less than 150 PPI.  As you might imagine, I find the thought 
of
doing it manually with Paint Shop Pro repugnant.

T> For example, if you take an image that is 1000 x 1000 pixels and wish
to view it at 72 dpi, then the image size will be 13.8 x 13.8 inches.
If you want to view it at 300 dpi, then the image size will be 3.33
by 3.33 inches in size.
Understand?

I think so, but I am a bit dense.  I'm not concerned with image size but 
rather
native resolution.  Thanks again for taking the time.
Simon
[EMAIL PROTECTED]



"tedd" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> >Good morning, folks.
>>
>>Can any one direct me to a snippet or suggest an approach to obtaining the
>>resolution of an image [file] with PHP.  exif_read_data() is great if the
>>image
>>was taken with a camera that is exif compliant, but is no help with my
>>scanned
>>images.  getimagesize() gives me height and width - not much help that I 
>>can
>>see. I want ppi!  I've no doubt that this is another case where the answer
>>is
>>painfully obvious and my mind to dull, but I've spent the better part of 
>>the
>>day searching usenet groups and the PHP docs and come up with naught.
>>I'm running the current Cent OS distribution of EL, PHP Version 4.3.9 
>>with,
>>of
>>course, GD support. Any suggestions would be most appreciated.
>>Thank you.
>>Simon
>
> Simon:
>
> There was a discussion on this a few weeks back -- you might look through 
> the archives.
>
> However, the bottom line was that images (other than exif notations) do 
> not contain any resolution information because the resolution of any image 
> is up to the method you wish to view it.
>
> For example, if you take an image that is 1000 x 1000 pixels and wish to 
> view it at 72 dpi, then the image size will be 13.8 x 13.8 inches. If you 
> want to view it at 300 dpi, then the image size will be 3.33 by 3.33 
> inches in size.
>
> Understand?
>
> tedd
> -- 
> 
> http://sperling.com 

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



Re: [PHP] help with setting menu styles with PHP

2006-03-16 Thread tedd

http://www.inspired-evolution.com/About_Me.php

What I want to do next is to change the menu from being hard coded on all of
my pages to being an include making the menu more manageable. The stumbling
block is I want to be able to keep the CSS functionality where you have the
active indicator which has different CSS for the link of the page you are
on. I have seen this done with PHP before with something like IF on active
page use this style  ELSE use this style. Can any PHP gurus assist me in
coding something like this?

I don't believe it is too difficult, but beyond by scope right at the
moment.


It's not a php solution, but you can change it to one easy enough. 
This will give you the idea.


http://www.sperling.com/examples/menu_aware/

tedd
--

http://sperling.com

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



[PHP] help with setting menu styles with PHP

2006-03-16 Thread Bruce Gilbert
 am trying to accomplish something utlizing PHP. What I have is a menu
marked up as such:



About Me
Skill set
Hire
Me
Portfolio
Contact
Résumé
http://inspiredevolution.blogs.com/inspiredevolutioncom/";
title="the blog for Inspired-Evolution.com" >Blog
RSS




and then I have everything styled nicely with CSS to give you the menu you
see here:

http://www.inspired-evolution.com/About_Me.php

What I want to do next is to change the menu from being hard coded on all of
my pages to being an include making the menu more manageable. The stumbling
block is I want to be able to keep the CSS functionality where you have the
active indicator which has different CSS for the link of the page you are
on. I have seen this done with PHP before with something like IF on active
page use this style  ELSE use this style. Can any PHP gurus assist me in
coding something like this?

I don't believe it is too difficult, but beyond by scope right at the
moment.


Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread Al

tedd wrote:
Based on the area increase; I'd expect the file size to about double, 
not be 4x as large.


$src_img = imagecreatefromgif($filename);

$dest_img = imagecreatetruecolor($new_width, $new_height);

Can anyone explain or have a solution?


Here's my take -- gif's are no longer supported by the GD library 
because of patent problems. So development of how to deal with them has 
been moved to png.


Gif's have a 256 color palette, but PNG has a 48-bit color palette and 
using imagecreatetruecolor() you greatly increase the file size of the 
image .


A better choice for your code would be to use imagecreate() which has a 
maximum of 256 color palette.


Please post if this works or not.

tedd



I tried that early on and the image quality went to hell.

What I ended up doing was process the gif and check it's filesize.  If too large, I then made the file a jgp, from the 
same GD image canvas. I then compressed the results in 5% "Quality" steps until the filesize is below a preset value.


Al

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



Re: [PHP] How does one obtain the resolution of an image in PHP?

2006-03-16 Thread tedd

Good morning, folks.

Can any one direct me to a snippet or suggest an approach to obtaining the
resolution of an image [file] with PHP.  exif_read_data() is great if the
image
was taken with a camera that is exif compliant, but is no help with my
scanned
images.  getimagesize() gives me height and width - not much help that I can
see. I want ppi!  I've no doubt that this is another case where the answer
is
painfully obvious and my mind to dull, but I've spent the better part of the
day searching usenet groups and the PHP docs and come up with naught.
I'm running the current Cent OS distribution of EL, PHP Version 4.3.9 with,
of
course, GD support. Any suggestions would be most appreciated.
Thank you.
Simon


Simon:

There was a discussion on this a few weeks back -- you might look 
through the archives.


However, the bottom line was that images (other than exif notations) 
do not contain any resolution information because the resolution of 
any image is up to the method you wish to view it.


For example, if you take an image that is 1000 x 1000 pixels and wish 
to view it at 72 dpi, then the image size will be 13.8 x 13.8 inches. 
If you want to view it at 300 dpi, then the image size will be 3.33 
by 3.33 inches in size.


Understand?

tedd
--

http://sperling.com

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



Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread tedd
Based on the area increase; I'd expect the file size to about 
double, not be 4x as large.


$src_img = imagecreatefromgif($filename);

$dest_img = imagecreatetruecolor($new_width, $new_height);

Can anyone explain or have a solution?


Here's my take -- gif's are no longer supported by the GD library 
because of patent problems. So development of how to deal with them 
has been moved to png.


Gif's have a 256 color palette, but PNG has a 48-bit color palette 
and using imagecreatetruecolor() you greatly increase the file size 
of the image .


A better choice for your code would be to use imagecreate() which has 
a maximum of 256 color palette.


Please post if this works or not.

tedd

--

http://sperling.com

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



[PHP] How does one obtain the resolution of an image in PHP?

2006-03-16 Thread Simon M. Campden-Main
Good morning, folks.

Can any one direct me to a snippet or suggest an approach to obtaining the
resolution of an image [file] with PHP.  exif_read_data() is great if the
image
was taken with a camera that is exif compliant, but is no help with my
scanned
images.  getimagesize() gives me height and width - not much help that I can
see. I want ppi!  I've no doubt that this is another case where the answer
is
painfully obvious and my mind to dull, but I've spent the better part of the
day searching usenet groups and the PHP docs and come up with naught.
I'm running the current Cent OS distribution of EL, PHP Version 4.3.9 with,
of
course, GD support. Any suggestions would be most appreciated.
Thank you.
Simon
[EMAIL PROTECTED]

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



[PHP] How does one obtain the resolution of an image in PHP?

2006-03-16 Thread Simon M. Campden-Main
Good morning, folks.

Can any one direct me to a snippet or suggest an approach to obtaining the
resolution of an image [file] with PHP.  exif_read_data() is great if the 
image
was taken with a camera that is exif compliant, but is no help with my 
scanned
images.  getimagesize() gives me height and width - not much help that I can
see. I want ppi!  I've no doubt that this is another case where the answer 
is
painfully obvious and my mind to dull, but I've spent the better part of the
day searching usenet groups and the PHP docs and come up with naught.
I'm running the current Cent OS distribution of EL, PHP Version 4.3.9 with, 
of
course, GD support. Any suggestions would be most appreciated.
Thank you.
Simon
[EMAIL PROTECTED]

 

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



[PHP] Re: setcookie security concerns

2006-03-16 Thread tedd

Rafael:

You said:

	Inspite of all this, I would really recomend you not to rely 
on register_globals=On, since: it's not a good idea, it's actually 
deprecated (someday it will be removed) and makes your code a little 
bit more confused, since it's not clear where do that variables come 
from.


-snip-


And, the corresponding (switch.php) php code is:




I thank you very much for your comments and time.

One last question, considering the above code, would the following 
code be a suitable replacement?




I've used htmlentities() before to filter out user's input, but I 
don't know if that's sufficient to protect from all types of 
injections -- is it?


tedd
--

http://sperling.com

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



Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread Al

Jochem Maas wrote:

Al wrote:

I'm trying to resize GIF images and up with very large files

For example:
Original width = 720
New width = 980
Original height = 1008
New height = 1274
Original filesize = 80kb
After resizing = 235kb

Based on the area increase; I'd expect the file size to about double, 
not be 4x as large.


$src_img = imagecreatefromgif($filename);

$dest_img = imagecreatetruecolor($new_width, $new_height);



does this function give a better result in terms of filesize?:

http://php.net/manual/en/function.imagecopyresized.php




imagecopyresampled($dest_img, $src_img, 0, 0, 0, 0, $new_width, 
$new_height, $org_width, $org_height);


imagegif($dest_img, $filename);

I tried using imagetruecolortopalette() and it helped a little; but 
screwed up the image quality.


Can anyone explain or have a solution?

Thanks
   


Exactly the same result

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



[PHP] umask is not being restored when each request is finished.

2006-03-16 Thread Manuel Vacelet
Hi all,

I copied/pasted the title of the following bug:
http://bugs.php.net/bug.php?id=36630
It seems already fixed in CVS for 5.1.x branch of PHP.

Actually, I'm running php4 (4.3.2 shiped by RHEL3) and I'm facing the
same bug. And I'm not alone, you can look at
http://bugs.php.net/28401. Unfortunatly, this bug was closed with
"Wont fix" status :/

Can someone tell me if this fix will be backported to 4.3.x or at
least 4.4.x branche or if it is already fixed in one of them
(changelog seems dumb on this subject) ?

Thanks,
Best Regards,
Manuel

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



Re: [PHP] Need shopping cart for online updating

2006-03-16 Thread tedd

I currently use Pay Pal shopping cart, but I need to find a good, cheap
shopping cart that my clients can update themselves.  Does anyone know of
something I can install so they can work on it easily.  They need to do this
online.
thanks,
Lisa A


Lisa:

You might also want to review:

http://www.weberdev.com/get_example-1395.html

tedd
--

http://sperling.com

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



Re: [PHP] Re: [PHP-DEV] Re: Problem

2006-03-16 Thread Miles Thompson

At 07:47 AM 3/16/2006, Bikram Suri wrote:


I changed that it was windows but still did not change anything. I even
reinstalled wamp but still
the include_path variable in phpinfo(); shows c:\php5\pear

Please help as this putting a stop on my work

regards and thank you for all the help


--
Bikram Suri


Have you done a search across all drives and directories for all instances 
of php.ini?

Is there one somewhere on the path shown under Apache Environment in phpinfo()?
Have you checked the setup instructions for non-WAMP installation of PHP5? 
They may tell where php.ini is located. There's obviously one lying around 
somewhere that's getting read.


Not much help, I'm afraid, but in these situations one tends to flail or 
repeatedly try the same solution.


Good luck - Miles


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 268.2.1/279 - Release Date: 3/10/2006

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



Re: [PHP] Re: Need shopping cart for online updating

2006-03-16 Thread John Nichel

Lisa A wrote:
I have looked everywhere, but it's hard to tell.  I was  hoping someone else 
had found one that they put on their site so their clients could add 
merchandise themselves failry easy.  I know I have oscommerce on my cpanel, 
but it is rather difficult it seems.

thanks.
Lisa A


Take a look at X-Cart...

http://www.x-cart.com/mall_solution.html

--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

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



[PHP] Re: Need shopping cart for online updating

2006-03-16 Thread Lisa A
I have looked everywhere, but it's hard to tell.  I was  hoping someone else 
had found one that they put on their site so their clients could add 
merchandise themselves failry easy.  I know I have oscommerce on my cpanel, 
but it is rather difficult it seems.
thanks.
Lisa A
"Nadim Attari" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Lisa A wrote:
>> I currently use Pay Pal shopping cart, but I need to find a good, cheap
>> shopping cart that my clients can update themselves.  Does anyone know of
>> something I can install so they can work on it easily.  They need to do 
>> this
>> online.
>> thanks,
>> Lisa A
>
> Hello,
>
> I don't know what you are looking for. Have a look here
>
> http://www.hotscripts.com/PHP/Scripts_and_Programs/E-Commerce/index.html
>
> Regards,
> Nadim Attari
> Alienworkers.com 

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



Re: [PHP] Detect calling function with debug_backtrace()

2006-03-16 Thread Jochem Maas

Mathijs wrote:

Hello,
i want to use debug_backtrace() in the function called by
register_shutdown_function but it only displays the function we are 
currently in

(the shutdown function)
Is there any way to trace what class, methode or line caused php to call 
the

shutdown function ??


the engine calls the shutdown function(s) - so the stack will be
empty apart from the function currently being called.

this happens _after_ your script finishes (regardless of how it finishes)
- I don't think there is a way to know on what file/line your script exited.



Thx in advanced



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



Re: [PHP] Re: REG-EXPR: Allowing limited number of special chars in usernames

2006-03-16 Thread Barry

Holger Sunke wrote:

Yes thank you,

that's all I need!




  * beware that you're saying *anything* other than alpha-numeric chars


Yeah that's why it wont work with asian or kyrillian users.
Probably writing a function that counts each special char could be an 
answer  ... prolly

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



Re: [PHP] Re: REG-EXPR: Allowing limited number of spe cial chars in usernames

2006-03-16 Thread Holger Sunke
Yes thank you,

that's all I need!


> -Ursprüngliche Nachricht-
> Von: Rafael <[EMAIL PROTECTED]>
> Gesendet: 16.03.06 07:34:15
> An: php-general@lists.php.net
> Betreff: [PHP] Re: REG-EXPR: Allowing limited number of special chars in 
> usernames


> Holger Sunke wrote:
> > I dont know that much aboput regular expressions and just want to
> > know how to find out the number of special (non alphanumeric)
> > characters in a string or how to match a string that contains less
> > than 3 special chars.
> 
>   I don't really understand what you need, but...
> - how to find out the number of special (non alphanumeric) characters
>$alpha = '[a-z0-9]';
>$special_chars = preg_replace("/$alpha+/Xi", '', $string);
>* this would replace any alpha-numeric char by... nothing, leaving
>  the "special chars" only, and strlen() will give you how many are
>* beware that you're saying *anything* other than alpha-numeric chars
> 
> - how to match a string that contains less than 3 special chars
>* as I said above, strlen() will give you the number of these chars:
>$num_special_chars = strlen($special_chars);
> 
> > preg_match('/^[ -~äöüßÄÖÜ]+$/',$string)
> 
> will return TRUE if $string consists enterily of the chars between the 
> square-brackets.
> 
>   I hope this helped a little.
> 

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



[PHP] Detect calling function with debug_backtrace()

2006-03-16 Thread Mathijs

Hello,
i want to use debug_backtrace() in the function called by
register_shutdown_function but it only displays the function we are 
currently in

(the shutdown function)
Is there any way to trace what class, methode or line caused php to call the
shutdown function ??

Thx in advanced

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



Re: [PHP] Problems with SSI, Apache & PHP!

2006-03-16 Thread Alberto Ferrer
I got only a test.shtml with this:







and a test.php with:



PHP 4.4.2 , Apache 1.3.34 , nothing weird,

Compiled Options:

'./configure' '--with-apxs=/usr/local/apache/bin/apxs'
'--prefix=/usr/local' '--with-xml' '--enable-bcmath'
'--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt'
'--with-dom-exslt' '--enable-exif' '--with-swf=/usr/local/flash'
'--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext'
'--with-imap' '--with-imap-ssl' '--with-kerberos' '--enable-mbstring'
'--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt'
'--with-mhash' '--enable-magic-quotes' '--with-mysqli'
'--with-mysql=/usr' '--with-openssl' '--enable-discard-path'
'--with-pear' '--enable-sockets' '--enable-track-vars' '--with-ttf'
'--with-freetype-dir=/usr' '--enable-gd-native-ttf'
'--enable-versioning' '--with-xmlrpc' '--with-zlib'

here is my phpinfo: http://ns1.tutorhost.com/test.php

Thanks in advance for the help.

2006/3/16, Chris <[EMAIL PROTECTED]>:
> Alberto Ferrer wrote:
> > i get segmentation fault with apache 1.3.34 , like this bug:
> > http://bugs.php.net/bug.php?id=35029 , only change the apache version.
> >
> > The error is:
> >
> > [Thu Mar 16 03:33:07 2006] [notice] child pid 2121 exit signal
> > Segmentation fault (11)
> > [Thu Mar 16 03:33:08 2006] [notice] child pid 2120 exit signal
> > Segmentation fault (11)
>
> We can't do much about segfaults. Post more information on that bug
> report and help the php guys work out what's going on.
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
>


--
bet0x

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



Re: [PHP] GD2 gif resizing problem

2006-03-16 Thread Jochem Maas

Al wrote:

I'm trying to resize GIF images and up with very large files

For example:
Original width = 720
New width = 980
Original height = 1008
New height = 1274
Original filesize = 80kb
After resizing = 235kb

Based on the area increase; I'd expect the file size to about double, 
not be 4x as large.


$src_img = imagecreatefromgif($filename);

$dest_img = imagecreatetruecolor($new_width, $new_height);



does this function give a better result in terms of filesize?:

http://php.net/manual/en/function.imagecopyresized.php




imagecopyresampled($dest_img, $src_img, 0, 0, 0, 0, $new_width, 
$new_height, $org_width, $org_height);


imagegif($dest_img, $filename);

I tried using imagetruecolortopalette() and it helped a little; but 
screwed up the image quality.


Can anyone explain or have a solution?

Thanks




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



Re: [PHP] dumping array to file

2006-03-16 Thread Jochem Maas

blackwater dev wrote:

I am doing a select from a mssql db and will then pump it into a mysql db.
What is the easiest way to take the result array from the mssql db and dump
it to a file that I can just pull into MySQL short of writing out to the
file row by row.


how else are you going to generate a 'dump/insert' SQL script that you
can feed to the mysql engine via the command line?

there is no mysql_turn_this_query_into_an_importable_sql_dumpfile() function. 
;-)



Thanks.



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



[PHP] Re: [PHP-DEV] Re: Problem

2006-03-16 Thread Bikram Suri
I changed that it was windows but still did not change anything. I even
reinstalled wamp but still
the include_path variable in phpinfo(); shows c:\php5\pear

Please help as this putting a stop on my work

regards and thank you for all the help


-- 
Bikram Suri



"Kamesh Jayachandran" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> See what 'Configuration File (php.ini) Path' shows and identify the
> php.ini used accordingly.
>
> Please don't [post this kind of help request to internals.
>
> With regards
> Kamesh Jayachandran
> Bikram Suri wrote:
>> Thanks for all your replies. I have changed the include_path settings in
>> php.ini which is in c:\wamp\php
>> but still it takes the include path as c:\php5\PEAR
>>
>> Please help
>>
>> regards
>> Bikram
>>
>> ""Bikram Suri"" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]
>>
>>> Hi,
>>>
>>> I do phpinfo(); and I see the include path set to c:\php5\Pear. I have
>>> wamp installed on my machine but before wamp I had done a standalone
>>> installation of PHP 5 in c:\PHP5 diretory. I have since uninstalled it
>>> and deleted the c:\PHP5 directory from my system. How can i reset the
>>> include path?? I'm running Windows XP with latest wamp
>>> installatin(MYSQL+PHP+Apache)
>>>
>>>
>>> Any help would be greatly appreciated
>>>
>>> regards
>>>
>>>
>>> -- 
>>> Bikram Suri
>>
>>

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



[PHP] Re: [PHP-DEV] Re: Problem

2006-03-16 Thread Bikram Suri
I changed that it was windows but still did not change anything. I even 
reinstalled wamp but still
the include_path variable in phpinfo(); shows c:\php5\pear

Please help as this putting a stop on my work

regards and thank you for all the help


-- 
Bikram Suri



"Kamesh Jayachandran" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> See what 'Configuration File (php.ini) Path' shows and identify the 
> php.ini used accordingly.
>
> Please don't [post this kind of help request to internals.
>
> With regards
> Kamesh Jayachandran
> Bikram Suri wrote:
>> Thanks for all your replies. I have changed the include_path settings in 
>> php.ini which is in c:\wamp\php
>> but still it takes the include path as c:\php5\PEAR
>>
>> Please help
>>
>> regards
>> Bikram
>>
>> ""Bikram Suri"" <[EMAIL PROTECTED]> wrote in message 
>> news:[EMAIL PROTECTED]
>>
>>> Hi,
>>>
>>> I do phpinfo(); and I see the include path set to c:\php5\Pear. I have 
>>> wamp installed on my machine but before wamp I had done a standalone 
>>> installation of PHP 5 in c:\PHP5 diretory. I have since uninstalled it 
>>> and deleted the c:\PHP5 directory from my system. How can i reset the 
>>> include path?? I'm running Windows XP with latest wamp 
>>> installatin(MYSQL+PHP+Apache)
>>>
>>>
>>> Any help would be greatly appreciated
>>>
>>> regards
>>>
>>>
>>> -- 
>>> Bikram Suri
>>
>> 

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



[PHP] Re: [PHP-DEV] Re: Problem

2006-03-16 Thread Kamesh Jayachandran
See what 'Configuration File (php.ini) Path' shows and identify the 
php.ini used accordingly.


Please don't [post this kind of help request to internals.

With regards
Kamesh Jayachandran
Bikram Suri wrote:
Thanks for all your replies. I have changed the include_path settings in 
php.ini which is in c:\wamp\php

but still it takes the include path as c:\php5\PEAR

Please help

regards
Bikram

""Bikram Suri"" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
  

Hi,

I do phpinfo(); and I see the include path set to c:\php5\Pear. I have 
wamp installed on my machine but before wamp I had done a standalone 
installation of PHP 5 in c:\PHP5 diretory. I have since uninstalled it and 
deleted the c:\PHP5 directory from my system. How can i reset the include 
path?? I'm running Windows XP with latest wamp 
installatin(MYSQL+PHP+Apache)



Any help would be greatly appreciated

regards


--
Bikram Suri 



  


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



Re: [PHP] php 5 installation problem

2006-03-16 Thread Jochem Maas

tedd wrote:

Hi gang:

I asked my host to install the current versions of php 5 and the 
following was his answer:


"Sorry but php has some issues with cpanel."


cpanel has issues with php5 not the other way around :-)



Anyone heard of any problems or a work-around?


get a different hosting provider. ;-)

in the mean time why not install a cpoy of apache/php5/mysql/etc
on your local PC and play with that?



Thanks.

tedd



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



[PHP] Re: Problem

2006-03-16 Thread Bikram Suri

Thanks for all your replies. I have changed the include_path settings in 
php.ini which is in c:\wamp\php
but still it takes the include path as c:\php5\PEAR

Please help

regards
Bikram

""Bikram Suri"" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Hi,
>
> I do phpinfo(); and I see the include path set to c:\php5\Pear. I have 
> wamp installed on my machine but before wamp I had done a standalone 
> installation of PHP 5 in c:\PHP5 diretory. I have since uninstalled it and 
> deleted the c:\PHP5 directory from my system. How can i reset the include 
> path?? I'm running Windows XP with latest wamp 
> installatin(MYSQL+PHP+Apache)
>
>
> Any help would be greatly appreciated
>
> regards
>
>
> -- 
> Bikram Suri 

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



Re: [PHP] imap_mail_compose not working

2006-03-16 Thread Karel Kozlik

chris smith napsal(a):

On 3/16/06, Karel Kozlik <[EMAIL PROTECTED]> wrote:

What version of imap do you have on both servers?

Maybe one is older and has some bugs that have been fixed.


Hi,
phpinfo on both servers reporting:
IMAP c-Client Version:  2001

The strange think is that imap_mail_compose were working on the windows
server few months ago. But now when I need it again it not work.


So what was changed on the server ?


Unfortunately don't know - many things :-(

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



Re: [PHP] Re: Updating form

2006-03-16 Thread Robert Cummings
On Thu, 2006-03-16 at 03:08, Barry wrote:
> Sugrue, Sean wrote:
> > Does anyone know how to update an option list queried from a database
> > table after an insert/delete action on that table?

Re-Query?

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

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



Re: [PHP] Problem

2006-03-16 Thread chris smith
On 3/16/06, Bikram Suri <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I do phpinfo(); and I see the include path set to c:\php5\Pear. I have wamp
> installed on my machine but before wamp I had done a standalone installation
> of PHP 5 in c:\PHP5 diretory. I have since uninstalled it and deleted the
> c:\PHP5 directory from my system. How can i reset the include path?? I'm
> running Windows XP with latest wamp installatin(MYSQL+PHP+Apache)

Look for a php.ini file (the info file should tell you where it is)
and edit it there.

--
Postgresql & php tutorials
http://www.designmagick.com/

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



[PHP] Re: Can I specify alternative php.ini in httpd.conf

2006-03-16 Thread Karel Kozlik

Khai napsal(a):

Hi All,

I am using php as an apache module.  In my httpd.conf, is there a way to 
specify which php.ini to use?


Thanks
Khai


Yes, add this line (with your own location of course) to httpd.conf

PHPIniDir "c:/Program Files/Apache Group/php4"

Karel

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



Re: [PHP] imap_mail_compose not working

2006-03-16 Thread chris smith
On 3/16/06, Karel Kozlik <[EMAIL PROTECTED]> wrote:
> >
> > What version of imap do you have on both servers?
> >
> > Maybe one is older and has some bugs that have been fixed.
> >
>
> Hi,
> phpinfo on both servers reporting:
> IMAP c-Client Version:  2001
>
> The strange think is that imap_mail_compose were working on the windows
> server few months ago. But now when I need it again it not work.

So what was changed on the server ?

--
Postgresql & php tutorials
http://www.designmagick.com/

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



Re: [PHP] imap_mail_compose not working

2006-03-16 Thread Karel Kozlik


What version of imap do you have on both servers?

Maybe one is older and has some bugs that have been fixed.



Hi,
phpinfo on both servers reporting:
IMAP c-Client Version:  2001

The strange think is that imap_mail_compose were working on the windows 
server few months ago. But now when I need it again it not work.


Karel

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



[PHP] Problem

2006-03-16 Thread Bikram Suri
Hi,

I do phpinfo(); and I see the include path set to c:\php5\Pear. I have wamp 
installed on my machine but before wamp I had done a standalone installation 
of PHP 5 in c:\PHP5 diretory. I have since uninstalled it and deleted the 
c:\PHP5 directory from my system. How can i reset the include path?? I'm 
running Windows XP with latest wamp installatin(MYSQL+PHP+Apache)


Any help would be greatly appreciated

regards


-- 
Bikram Suri

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



[PHP] Re: Updating form

2006-03-16 Thread Barry

Sugrue, Sean wrote:

Does anyone know how to update an option list queried from a database
table after an insert/delete action on that table?

Sean


To be as precise with my answer as your question:

Read the HTML manual about meta tags.

have fun!

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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



[PHP] Re: how do i select this list

2006-03-16 Thread Barry

Mark wrote:

THANKS THAT WORKED GREAT



You might need this in the future:
http://dev.mysql.com/doc/refman/5.0/en/index.html

Thare are lot's of examples, also the problem you stated is described there.

--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

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