[PHP-DB] include_path in appache.conf

2010-04-05 Thread ad
This may be an apache question but I'd like to find the php answer first 
if one exists.


I have several virtual hosts on a dedicated server. 
In a IFmodule mod_php5c container in an httpd.conf  include file I have 
the following to create a unique include path for each virtual host:


IfModule mod_php5.c
 php_value include_path .:/home/virtual/site#/path/to/include
 php_admin_flag safe_mode off
/IfModule

For one of the virtual hosts I've set up a dev site in a subdomain at 
dev.site#.com for development.
In the root directory of this development site I have an .htacces file 
to create another unique include_path solely for this development subdomain.


php_value include_path  .:/home/virtual/site#/path/to/dev/includes

Also in the httpd.conf I have
   Directory /home/virtual/site#/path/to/dev/root/
   Allow from all
   AllowOverride All
   Order allow,deny
   /Directory


The configuration is CentOS 5.3, Apache/2.2.3, PHP 5.1.6

I recently upgraded the OS from FC6 and the PHP version and I have not 
been able to get the include_path to change for this dev.subdomain.  
Even after restarting apache it PHPinfo tells me it is reading the 
server php.ini and the virtual host include path for the httpd.conf but 
it is ignoring the .htaccess file. 

I've even tried putting the php.ini with specific settings in the 
/home/virtual/site#/root directory to no avail.


Any ideas how to make this work or even a better set up?

Thanks in advance.





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



Re: [PHP-DB] include_path in appache.conf

2010-04-05 Thread Niel Archer
Try asking on the general list. This is not Db related at all, so your
chances of getting answers here are pretty slim.

 This may be an apache question but I'd like to find the php answer first 
 if one exists.
 
 I have several virtual hosts on a dedicated server. 
 In a IFmodule mod_php5c container in an httpd.conf  include file I have 
 the following to create a unique include path for each virtual host:
 
 IfModule mod_php5.c
   php_value include_path .:/home/virtual/site#/path/to/include
   php_admin_flag safe_mode off
 /IfModule
 
 For one of the virtual hosts I've set up a dev site in a subdomain at 
 dev.site#.com for development.
 In the root directory of this development site I have an .htacces file 
 to create another unique include_path solely for this development subdomain.
 
 php_value include_path  .:/home/virtual/site#/path/to/dev/includes
 
 Also in the httpd.conf I have
 Directory /home/virtual/site#/path/to/dev/root/
 Allow from all
 AllowOverride All
 Order allow,deny
 /Directory
 
 
 The configuration is CentOS 5.3, Apache/2.2.3, PHP 5.1.6
 
 I recently upgraded the OS from FC6 and the PHP version and I have not 
 been able to get the include_path to change for this dev.subdomain.  
 Even after restarting apache it PHPinfo tells me it is reading the 
 server php.ini and the virtual host include path for the httpd.conf but 
 it is ignoring the .htaccess file. 
 
 I've even tried putting the php.ini with specific settings in the 
 /home/virtual/site#/root directory to no avail.
 
 Any ideas how to make this work or even a better set up?
 
 Thanks in advance.
 
 
 
 
 
 -- 
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

--
Niel Archer
niel.archer (at) blueyonder.co.uk



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



Re: [PHP-DB] include_path in appache.conf

2010-04-05 Thread ad

Thanks Niel.

Niel Archer wrote:

Try asking on the general list. This is not Db related at all, so your
chances of getting answers here are pretty slim.

  
This may be an apache question but I'd like to find the php answer first 
if one exists.


I have several virtual hosts on a dedicated server. 
In a IFmodule mod_php5c container in an httpd.conf  include file I have 
the following to create a unique include path for each virtual host:


IfModule mod_php5.c
  php_value include_path .:/home/virtual/site#/path/to/include
  php_admin_flag safe_mode off
/IfModule

For one of the virtual hosts I've set up a dev site in a subdomain at 
dev.site#.com for development.
In the root directory of this development site I have an .htacces file 
to create another unique include_path solely for this development subdomain.


php_value include_path  .:/home/virtual/site#/path/to/dev/includes

Also in the httpd.conf I have
Directory /home/virtual/site#/path/to/dev/root/
Allow from all
AllowOverride All
Order allow,deny
/Directory


The configuration is CentOS 5.3, Apache/2.2.3, PHP 5.1.6

I recently upgraded the OS from FC6 and the PHP version and I have not 
been able to get the include_path to change for this dev.subdomain.  
Even after restarting apache it PHPinfo tells me it is reading the 
server php.ini and the virtual host include path for the httpd.conf but 
it is ignoring the .htaccess file. 

I've even tried putting the php.ini with specific settings in the 
/home/virtual/site#/root directory to no avail.


Any ideas how to make this work or even a better set up?

Thanks in advance.





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



--
Niel Archer
niel.archer (at) blueyonder.co.uk



  



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



[PHP-DB] imagecopyresize???????

2010-04-05 Thread Karl DeSaulniers

Hello List,
I am hoping this will be a quick and easy for someone to help me with.
I am trying to create an upload form that lets a user upload a  
product photo to the server.
In the process of this upload, I want to take the file they are  
uploading and create two images to put on the server.

Both are specific sizes. A large image and a thumbnail.
I then want to throw away the file they uploaded.

My question is what is the proper way to do the uploading/resizing/ 
destroying?

I have been toying with imagecopyresize, but it never works.
I think I just have parameters out of order or something.

Also, I would like to put a copyright on the side.
I have been able to use imagestringup to do that,
but it covers the image im placing it on with
a transparent background and deletes the image.

How do you duplicate an image with transparency?
Or keep the transparency an image already has?
Most grateful for any help, pointers, tuts.

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com



Re: [PHP-DB] imagecopyresize???????

2010-04-05 Thread Rasmus Lerdorf
On 04/05/2010 09:03 PM, Karl DeSaulniers wrote:
 Hello List,
 I am hoping this will be a quick and easy for someone to help me with.
 I am trying to create an upload form that lets a user upload a product
 photo to the server.
 In the process of this upload, I want to take the file they are
 uploading and create two images to put on the server.
 Both are specific sizes. A large image and a thumbnail.
 I then want to throw away the file they uploaded.
 
 My question is what is the proper way to do the
 uploading/resizing/destroying?
 I have been toying with imagecopyresize, but it never works.
 I think I just have parameters out of order or something.
 
 Also, I would like to put a copyright on the side.
 I have been able to use imagestringup to do that,
 but it covers the image im placing it on with
 a transparent background and deletes the image.
 
 How do you duplicate an image with transparency?
 Or keep the transparency an image already has?
 Most grateful for any help, pointers, tuts.

Wrong mailing list.  But look at the example on the imagecopyresampled
doc page.

-Rasmus

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



Re: [PHP-DB] imagecopyresize???????

2010-04-05 Thread Karl DeSaulniers

Oh, I am sorry, is this not a php list?
or is this strictly php to database?

Karl


On Apr 5, 2010, at 11:32 PM, Rasmus Lerdorf wrote:

On 04/05/2010 09:03 PM, Karl DeSaulniers wrote:

Hello List,
I am hoping this will be a quick and easy for someone to help me with.
I am trying to create an upload form that lets a user upload a product
photo to the server.
In the process of this upload, I want to take the file they are
uploading and create two images to put on the server.
Both are specific sizes. A large image and a thumbnail.
I then want to throw away the file they uploaded.

My question is what is the proper way to do the
uploading/resizing/destroying?
I have been toying with imagecopyresize, but it never works.
I think I just have parameters out of order or something.

Also, I would like to put a copyright on the side.
I have been able to use imagestringup to do that,
but it covers the image im placing it on with
a transparent background and deletes the image.

How do you duplicate an image with transparency?
Or keep the transparency an image already has?
Most grateful for any help, pointers, tuts.


Wrong mailing list.  But look at the example on the imagecopyresampled
doc page.

-Rasmus

Karl DeSaulniers
Design Drumm
http://designdrumm.com


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



Re: [PHP-DB] imagecopyresize???????

2010-04-05 Thread Karl DeSaulniers

Found it.
Thank you.

Karl


On Apr 6, 2010, at 12:05 AM, Lester Caine wrote:

Karl DeSaulniers wrote:

Oh, I am sorry, is this not a php list?
or is this strictly php to database?


Questions related to database use with PHP ...
http://www.php.net/mailing-lists.php

--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

Karl DeSaulniers
Design Drumm
http://designdrumm.com


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