[PHP] Where can I get the Printer extension?

2007-01-17 Thread Chuck Anderson
It thought it would be bundled with my Windows version pf Php 4.4.1, but 
it is not.


I've searched for it and can't find it at php.net.

How do get a copy of php_printer.dll for Php4.4.1 for Windows?

--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
*

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



Re: [PHP] Where can I get the Printer extension?

2007-01-17 Thread Chuck Anderson

Chris wrote:

Chuck Anderson wrote:
  
It thought it would be bundled with my Windows version pf Php 4.4.1, but 
it is not.


I've searched for it and can't find it at php.net.



You didn't search very hard.
  



On this page:

http://php.net/printer

Read the bit under Installation.

This PECL extension is not bundled with PHP.

and

You may obtain this unbundled PECL extension from the various PECL 
snaps pages (select the appropriate repository for your version of PHP): 
PECL for PHP 4.3.x, PECL for PHP 5.0.x  or PECL Unstable.


  


I did look there.  I did read that.

You didn't try those links, though, did you?  (Not Found)

(btw,  I asked in another group and just found that it is located 
here: http://pecl4win.php.net/index.php)


I don't see how to get there from the main PECL site, but there it is.

--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
*

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



[PHP] Re: Havn't been on the list in a while

2006-12-13 Thread Chuck Anderson

Jim Lucas wrote:

Seems like this list has slowed down alot.

Anybody else notice this, or am I just missing something?

jl
  


If you're referring to what I think you are  yes . I get almost 
nothing but timeouts when trying to do anything in this newsgroup.


--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
*

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



[PHP] Re: Havn't been on the list in a while

2006-12-13 Thread Chuck Anderson

Jim Lucas wrote:

Seems like this list has slowed down alot.

Anybody else notice this, or am I just missing something?

jl
  


If you're referring to what I think you are  yes . I get almost 
nothing but timeouts when trying to do anything in this newsgroup.


--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
*

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



Re: [PHP] Re: news.php.net times out - unreachable for days

2006-12-11 Thread Chuck Anderson

Lester Caine wrote:

Chuck Anderson wrote:
  
In the time it takes to write a message, I lose my connection and often 
cannot even connect to send it.


I'm hurrying this time, so I hope it works.

( not that time . timed out . I'll try Sending again)



When I was forced to use the newsgroup interface I often had that 
problem, and I was complaining that I could not get eMails working :(


I've been running on emails for a while now after some kind fairy lifted 
the blocking of my email addresses, but I'm still using the newsgroup 
interface for a couple of php.net lists and nothing has changed there.


  


It was not like this until about two or three weeks ago.  Prior to that 
it behaved like any other news server I connect to (it simply connected 
... right away).  Something has changed or broken.


(... It took three tries just to get this composition window to open 
with quoted material)


--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
*

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



Re: [PHP] Re: news.php.net times out - unreachable for days

2006-12-11 Thread Chuck Anderson

Lester Caine wrote:

Chuck Anderson wrote:
  
In the time it takes to write a message, I lose my connection and often 
cannot even connect to send it.


I'm hurrying this time, so I hope it works.

( not that time . timed out . I'll try Sending again)



When I was forced to use the newsgroup interface I often had that 
problem, and I was complaining that I could not get eMails working :(


I've been running on emails for a while now after some kind fairy lifted 
the blocking of my email addresses, but I'm still using the newsgroup 
interface for a couple of php.net lists and nothing has changed there.


  


It was not like this until about two or three weeks ago.  Prior to that 
it behaved like any other news server I connect to (it simply connected 
... right away).  Something has changed or broken.


(... It took three tries just to get this composition window to open 
with quoted material)


--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
*

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



[PHP] news.php.net times out - unreachable for days

2006-12-07 Thread Chuck Anderson
It's probably been well over a week or even two.  I can no longer 
connect to php.net through Thunderbird (as I have been doing daily for 
many months).  It always times out.  I'll be lucky if this post even 
makes it.  I saw some other posts indicating that I am not alone.


Something NEEDS to be fixed.

I'll just have to keep trying to connect every day and hope something 
changes.  As of now, das ist kaput!


--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
*

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



[PHP] news.php.net times out - unreachable for days

2006-12-07 Thread Chuck Anderson
It's actually been well over a week or even two.  I can no longer 
connect to php.net with Thunderbird (as I have been doing daily for many 
months - news.php.net - port 119).  It always times out.  I'll be lucky 
if this post even makes it.  I got connected briefly yesterday and saw 
some other posts indicating that I am not alone.


Something NEEDS to be fixed.

I'll just have to keep trying to connect every day and hope something 
changes. 


As of now, das ist kaput!

--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
*

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



[PHP] Re: Newsgroup connect time has become very long

2006-12-06 Thread Chuck Anderson

Al wrote:
Anyone having problems connecting the last few days? Or, is there something 
wrong on my end. All other sites are working just fine.


Thanks.
  


Same here. The group has become nearly unusable. I've been ignoring it 
for days as most of the time I get a timeout - from Thunderbird - 
connecting to news.php.net.


--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
*

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



[PHP] Re: Newsgroup connect time has become very long

2006-12-06 Thread Chuck Anderson

Al wrote:
Anyone having problems connecting the last few days? Or, is there something 
wrong on my end. All other sites are working just fine.


Thanks.
  


Same here. The group has become nearly unusable. I've been ignoring it 
for days as most of the time I get a timeout - from Thunderbird - 
connecting to news.php.net.


--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
*

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



[PHP] Re: pop-up window in php???

2006-06-08 Thread Chuck Anderson

Michelle Konzack wrote:

Am 2006-05-29 11:56:43, schrieb [EMAIL PROTECTED]:
  

ok, maybe I didn't make my question too clear. I was mostly wondering
if there
is a way to do it in PHP rather than Javascript. I would prefer only
using php.



Maybe it can be done, like,

1)  Client fill out a form
2)  Client klick the Submit Button
3)  The php script on the server get the data
and store it temporary
4)  The php script on the server send back a HTML page
which open a new (popup) window with the question
5)  Client must confirm
6)  The php script on the server get the confirmation
and do something wit the previously sored data

Greetings
Michelle Konzack


  
You can not specify the window parameters (a popup) without using 
Javascript.


You are correct, tough. You could load a new page asking them to confirm 
(I do this a lot with scripts that delete something - are you sure?), 
but not in a popup window.


--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Everyone's journey should be different,
so that we all are enriched
in new and endless ways
*

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



Re: [PHP] Help with enter key in Forms

2006-06-01 Thread Chuck Anderson

Chris wrote:

George Babichev wrote:
  

Hello everyone, I am programming a blog, and most of it is done, except I
have one issue. When I am typing in the form (before I click submit) and I
click the neter key to make a space, the MySQL database does not recognize
that space. How do I make it recognize it?



Unless you're stripping it out, it will recognise it. View HTML Source 
and you'll see the newline is actually in there. A \n is not a html 
newline so you need to convert it.


What you want is http://php.net/nl2br

  

Uhhh  did you try this -- nl2br?

--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
*

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



[PHP] Re: User confirmation questions?

2006-05-05 Thread Chuck Anderson

William Stokes wrote:


Hello,

In PHP is it possible to generate windows style question boxes and get the 
users choice back? Or do I need javascript or something else for that?


For example if a user hits a button in form I could ask for his confirmation 
for the action. Like Do you Really wan't to drop the whole database? Yes 
or No. And perform or cancel the action by user's decision.


-Will
 

It's not what you want to do (popup window), but I do it in the 
following often.


I put the question right on the page - using a form. The form reloads 
the page on submit and my script checks for the submit value at the top 
of the page. If the form was submitted it either performs the action or 
not - based on the submitted values.


--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*

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



[PHP] Re: Session contamination?

2006-04-20 Thread Chuck Anderson
This has been a very interesting discussion, as I have had the same 
problem, but never thought much about the fact that I could do 
anything about it.


As to session save path, when I run phpinfo (at my remote Linux server) 
it tells me that it is set to no value. This means it would default to 
/tmp. Where is this tmp directory? I have looked at the tmp directory 
that is one level above my site's www directory (outside of the web 
space), but I do not see any session data there. That's why I am asking 
if it is a system wide directory, or is it the one in my home directory.


If I set the path myself, what would be a good location? (I assume it 
should be outside the web space). Should I make up some random folder 
name (one time) and story my session data within that directory, within 
my own home directory?


Ben Liu wrote:


Hello All,

I'm using a single development server to host multiple client
projects, many of which require session management. I've noticed that
sometimes when I test these various web apps (which are simply in
separate sub directories) I get session leakage where logging in and
establishing a session on one app allows me access to (automatically
logs me in) to other app(s) on the same server. Or sometimes a session
variable will be set across all the apps, like $_SESSION['username'].

Is this due to the fact that sessions are established between client
browsers and servers, regardless of directory/sub directory?

What is the best way to avoid/prevent this problem? Should I be using
specific Session ID's or Session names?

Thanks for any help,

- Ben
 




--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*

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



[PHP] Re: phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread Chuck Anderson

alex wrote:


hi everyone

i have delete a few entries in my database as they were entered for testing 
purposes and are no longer need (actually 102 entries)... and even thought 
that db is empty i noticed that when the next entry went in the id number 
went to 103
not 0 so i was wondering is it possible to somehow reset the value to 
zero...


it is of int type and auto_increment

i have a few db's which id like to reset to zero i have tried placing a zero 
enrty after deleting the lot but it only jumps to  its next increment.

does anyone know what i mean...?
any help will be grateful
regards alex 
 


On a related note (he did say PhpMyAdmin) ...

ALTER TABLE 'tablename' auto_increment=n works, but I can't get 
PhpMyAdmin to reset the auto_increment through the Operations menu page.


If I go to the Operations tab for a table and set the auto_increment 
value to something less that it currently is, PhpMyAdmin will not honor 
my request and re-specifies the current auto_increment value in the 
ALTER TABLE command (even though my requested value is valid).


Is this because of a config setting? I could have sworn earlier versions 
would obey my request.


--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*

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



Re: [PHP] Re: phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread Chuck Anderson

tedd wrote:


At 1:42 PM -0600 4/16/06, Chuck Anderson wrote:
 


alex wrote:

   


hi everyone

i have delete a few entries in my database as they were entered for 
testing purposes and are no longer need (actually 102 entries)... 
and even thought that db is empty i noticed that when the next 
entry went in the id number went to 103

not 0 so i was wondering is it possible to somehow reset the value to zero...

it is of int type and auto_increment

i have a few db's which id like to reset to zero i have tried 
placing a zero enrty after deleting the lot but it only jumps to 
its next increment.

does anyone know what i mean...?
any help will be grateful
regards alex
 


On a related note (he did say PhpMyAdmin) ...

ALTER TABLE 'tablename' auto_increment=n works, but I can't get 
PhpMyAdmin to reset the auto_increment through the Operations menu 
page.


If I go to the Operations tab for a table and set the auto_increment 
value to something less that it currently is, PhpMyAdmin will not 
honor my request and re-specifies the current auto_increment value 
in the ALTER TABLE command (even though my requested value is valid).


Is this because of a config setting? I could have sworn earlier 
versions would obey my request.
   



Chuck:

This always works for me in PhpMyAdmin (I mistyped it before).

1. Delete the first record.
2. Reset the auto_increment in Operations to whatever you want.
3. Insert a record.
4. Delete that record.

After that, the next record will start at the new auto_increment 
value. Don't ask why, that's just the way it works.


tedd
 

That would work, except that I want to change the auto_increment without 
deleting the first record.


During testing I may add many entries to the end of an existing database 
table. When I am done testing I want to delete those extraneous 
entries (leaving the earlier entries intact). Call me 
obsessive/compulsive or whatever, but I like to knock the auto_increment 
value back down to the next valid value (what was the first test value).


PhpMyAdmin refuses to use the valid auto_increment value I specify in 
Operations and I have to edit the query to set it right.



--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*

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



Re: [PHP] Re: phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread Chuck Anderson

tedd wrote:


At 3:01 PM -0600 4/16/06, Chuck Anderson wrote:
 


tedd wrote:

   


At 1:42 PM -0600 4/16/06, Chuck Anderson wrote:

 


alex wrote:

 

   


hi everyone

i have delete a few entries in my database as they were entered 
for testing purposes and are no longer need (actually 102 
entries)... and even thought that db is empty i noticed that when 
the next entry went in the id number went to 103
not 0 so i was wondering is it possible to somehow reset the 
value to zero...


it is of int type and auto_increment

i have a few db's which id like to reset to zero i have tried 
placing a zero enrty after deleting the lot but it only jumps to 
its next increment.

does anyone know what i mean...?
any help will be grateful
regards alex
   

 


On a related note (he did say PhpMyAdmin) ...

ALTER TABLE 'tablename' auto_increment=n works, but I can't get 
PhpMyAdmin to reset the auto_increment through the Operations menu 
page.


If I go to the Operations tab for a table and set the 
auto_increment value to something less that it currently is, 
PhpMyAdmin will not honor my request and re-specifies the current 
auto_increment value in the ALTER TABLE command (even though my 
requested value is valid).


Is this because of a config setting? I could have sworn earlier 
versions would obey my request.
 

   


Chuck:

This always works for me in PhpMyAdmin (I mistyped it before).

1. Delete the first record.
2. Reset the auto_increment in Operations to whatever you want.
3. Insert a record.
4. Delete that record.

After that, the next record will start at the new auto_increment 
value. Don't ask why, that's just the way it works.


tedd

 

That would work, except that I want to change the auto_increment 
without deleting the first record.


During testing I may add many entries to the end of an existing 
database table. When I am done testing I want to delete those 
extraneous entries (leaving the earlier entries intact). Call me 
obsessive/compulsive or whatever, but I like to knock the 
auto_increment value back down to the next valid value (what was the 
first test value).


PhpMyAdmin refuses to use the valid auto_increment value I specify 
in Operations and I have to edit the query to set it right.
   




Chuck:

Okay, then delete whatever record you want and reset the 
auto_increment value to that -- for example: Let's say you have 
records 0 - 100 that you want to keep. Then you added some test 
records that went from 101 to 150 and now you want to delete those 
records and start again at 101, right?


Simple, just:

1. Delete records 101-150.
2. Reset the auto_increment in Operations to 101
3. Insert a false record.
4. Delete that false record.

Now, your dB will be set to start at 101.

What's even more amazing (at least I've found), is that if you had 
0-100 records you wanted to keep and 101-150 you wanted to delete, 
but also had 151 to 200 you also wanted to keep, you could do what I 
said above and the auto_increment would fill up 101-150 and then jump 
to 201. It's neat the way it works. At least that's my memory. Try it.


tedd
 


I appreciate your help here . but 


2. Reset the auto_increment in Operations to 101

That's the part that PhpMyAdmin refuses to do. It will not alter it to 
less than 151 (per your example).


PhpMyAdmin 2.6.4-pl3

It's not much work to then edit the PhpMyAdmin query to my liking, but I 
don't think I used to have to do that.


I like your second part about filling in the between stuff. If I'm at 
that point, though, I delete the auto_increment field (sorting the table 
by date) and then add it back in. That fills all the gaps, too.


What I want to know is why PhpMyAdmin will not do your step 2. I swear 
that earlier versions would let me do that.


--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.


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



Re: [PHP] Re: phpMyAdmin--resetting auto increments to 0

2006-04-16 Thread Chuck Anderson

Jay Blanchard wrote:


[snip]
 


2. Reset the auto_increment in Operations to 101
   


[/snip]

This isn't another of those 'reseting the auto-increment' holy war
questions where you use the AI number as an identifier for the record,
is it? 
 


Nope. And I have no intention of taking it there.

I just get obsessive and thorough when testing and then I don't like 
stale data in my database - so I like to reset everything. It would be 
better to backup before testing and then restore. Resetting the AI just 
makes it the same as if you had.


And my real question is about PhpMyAdmin and why it no longer seems to 
let you reset the AI using the Operations page. At least it doesn't on 
my machine - Windows XP - Apache/2.0.55 - PhpMyAdmin 2.6.4-pl3.


--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*

--
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-17 Thread Chuck Anderson

Curt Zirzow wrote:


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 VirtualHost, Directory or the like or even a .htaccess (if
enabled).


Curt.
 

I'm not sure how they set it up, but at my web host I can put individual 
php.ini files in the directory the php script files are in.


That means that I can create a php.ini file and add 'register_globals 
on' in any directory where I need it.


Does anyone know how to configure that?

--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*

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



[PHP] Re: displaying documents stored under web root

2006-03-10 Thread Chuck Anderson

Adrian Bruce wrote:


Hi

After some advice (surprise!)

I currently store restricted documents beneath the web root so they are 
not accessible via the URL, when a valid user wishes to view a document 
i copy it to a temporary folder above the root and load it in a new 
page.  the only way i can then manage to delete the copy is 
automatically deleting all temp files when any user goes to the log out 
page.


This is obviously not a very good way of doing this but unless i can 
establish when a user is no longer viewing the doc then i dont know when 
to delete it.  I was wandering how others deal with these problems like this


any advice appreciated greatly

Ade
 

I deliver restricted PDFs that are kept *above* the web root without 
using a temporary file. Why do you need to create a temporary file? I 
use headers and readfile.


--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*

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



[PHP] Re: array variables with or without quotes

2006-02-22 Thread Chuck Anderson

2dogs wrote:

I recently encountered a situation where I had to retrieve data from a MYSQL 
database table with a field named include. My code looked like this:


$content_result = mysql_query('SELECT * FROM calander') or 
die(mysql_error());

$content_row = mysql_fetch_array($content_result);
if ($content_row[include])
   {go do something;}

When I tried to run this, PHP treated the word  -include- as a control 
structure rather than an index name. Understandable. So, I put it in single 
quotes  ('include') to see what would happen and it works fine. But I don't 
understand why!


What is the difference between $content_row [include] and 
$content_row['include']? I have been unable to resolve this question in the 
php manual, I need enlightenment.


2dogs 
 


http://www.php.net/manual/en/language.types.array.php#language.types.array.foo-bar

--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*

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



[PHP] Re: image location hiding techniques

2006-02-08 Thread Chuck Anderson

hbeaumont hbeaumont wrote:


Hi,

I have a site with images that I want people to download but not have
the direct path to. ie. I do not want them to be able to just view the
source, find the dir and then download everything or direct link to
them.

However I can see no way to do this other than keeping the images on
disk, having a php script read them and then spit them out. example:

view.php?92348924  where 92348924  is a code that translates to the
image on disk.

Can anyone think of a better method? If not, what is the most
efficient way to do this (ie. avoid the most i/o)

Thanks!


P.S. I also realize I could use .htaccess to stop direct linking and
turn off directory indexes. Still I think there might be some other
problems with .htaccess
 

I know it's not exactly what you're asking for, but here's a great php 
based defense against hotlinking.


http://www.alistapart.com/articles/hotlinking/


--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*

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



[PHP] Re: exec php.exe in windows

2006-01-22 Thread Chuck Anderson

Dave Kennedy wrote:


Env:
Windows XP
PHP 4.3.10 (cgi-fcgi)

I am trying to capture the html output of Balance.php to a file:
The code loops over month and branch to build up a report in
export/Balance.html

exec('c:\php\php -q Balance.php export=all branch=branch month=month
login=admin password=admin  export/Balance.html');

This command works in Linux when called from a web page.
In Windows it works from the command line 
but from a web page it hangs - a cmd and php process are left running in

the Windows Task Manager

Any help would be greatly appreciated

 

Sounds similar to something I had going on. In Control Panel - 
Administrative Tools - Services (I don't know of a shorter way to get 
there), I had to right-click on the Apache service and under Log On - 
check Allow service to interact with desktop.


I run run Php as an Apache module, but you may want to give that a try.

--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*

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



[PHP] Upgrade to 4.4.2 shows as 4.4.1-pl-1 (Windows)

2006-01-20 Thread Chuck Anderson
I upgraded to 4.4.2, the Windows binary.  When I run phpinfo, the title 
says PHP Version 4.4.1-pl1 (my previous version).  However, under 
apache2handler, though, it says:

Apache/2.0.55 (Win32) mod_ssl/2.0.55 OpenSSL/0.9.8a PHP/4.4.2
(I run php as an Apache module on my home PC.)

Is there something wrong?

--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*

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



[PHP] Re: PHP 4.4.2 released!

2006-01-18 Thread Chuck Anderson

Derick Rethans wrote:


Hello!

The PHP Development Team would like to announce the immediate release of 
PHP 4.4.2. This is a maintenance release that addresses a number of 
minor security problems and fixes a few regressions that shown up in PHP 
4.4.1. All users of PHP 4 are recommended to upgrade to PHP 4.4.2.


A separate release announcement is also available. For changes in PHP 
4.4.2 since PHP 4.4.1, please consult the PHP 4 ChangeLog. 


Release Announcement: http://www.php.net/release_4_4_2.php
Downloads:http://www.php.net/downloads.php#v4
Changelog:http://www.php.net/ChangeLog-4.php#4.4.2

regards,
Derick
 

I just installed the Windows binary and phpinfo still displays PHP 
Version 4.4.1-pl1 (as does phpversion)


Under apache2handler, though, it says:
Apache/2.0.55 (Win32) mod_ssl/2.0.55 OpenSSL/0.9.8a PHP/4.4.2
(I run php as an apache module on my home PC.)

Have I done something wrong?

--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*

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



[PHP] Re: Image editing?

2006-01-09 Thread Chuck Anderson

William Stokes wrote:


Hello,

I might have to start doing some automated image editing or rezising with 
PHP. I've never done anything like this before so I would need some 
guidelines to get started. Basically what sections of the manual to read and 
what tools need to be installed to the server side to get things like this 
done. Are there any websites about this issue, other than php.net, that 
might provide help to beginners? Thanks for your assistance!


-Will
 

Most photo images need some unsharp mask applied to crisp them back up 
after being resized. I found I needed ImageMagick to do the job right. 
If you are concerned about tweaking the quality of your final graphic, 
you might look into using it. It *is* installed on many servers. There 
is a Windows version you can install, too.


--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*

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



[PHP] Re: Can't use secure file wrappers - Windows

2005-11-28 Thread Chuck Anderson

James Benson wrote:


Could use the xampp package or just the openssl  php from it,


http://www.apachefriends.org/en/xampp.html


Chuck Anderson wrote:
 

[I've had this posted in the php.windows group for a few days, but I got 
no replies there.]


I have been plugging away at this for some time now and I can not figure 
out how to get https and ftps as registered streams in my Windows 
installation of Php (4.4.0).  My direct need is to use fopen on secure 
URLs - https.


(I've installed openssl - enabled the Php openssl extension - and 
verified that my copy of Php was compiled with the openssl module.)


The latest thing I have read says that I need a special copy of 
php4ts.dll in order to enable secure streams (https, ftps) in Php on 
Windows (XP, in my case).


The posts I read point to copies of php4ts.dll for Php 4.3.4.

I am running Php 4.4.0.  Where can I find a copy of php4ts.dll for 
Php4.4.0 that enables secure streams?


(And is that really the solution in Php 4.4.0?)

Thanks in Advance
   

A followup: This is from a while back (two weeks ago), but I finally 
tried installing xampp. I installed it into c:\xampp and when I managed 
to get it working (independent of my other apache service) it did what I 
needed. I had https and ftps as registered streams. S ... I 
copied the php in xampp into c:\php and the apache dll files into my 
existing apache folder and ultimately made a real mess of things. Since 
I had backed everything up, I put it all back the way it was, 
uninstalled xampp, and to my surprise, I now have https and ftps streams 
registered in my previous installation. I'm glad I can finally access 
secure sites from my Php scripts, but I have no idea what is that I 
managed to change to allow it.


(I have a guess. With things mixed up a bit I started getting an error 
message I'd never seen before when starting Apache (with Php as a 
module). A search on Google for the error message ... Function 
registration failed - duplicate name  I got the advice to NOT 
register openssl in php.ini, if it was already statically linked in the 
binary. H. This may have been my problem earlier, but for 
some reason I was not seeing any error messages.)


Oh well. At least it's Apache 2.0.55 OpenSSL/0.9.8a and Php 4.4.1, so I 
shouldn't need to upgrade any time soon (other than to eventually try 
out Php 5).


--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*

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



[PHP] Re: php error message

2005-11-17 Thread Chuck Anderson

Ben wrote:


Edward Martin said the following on 11/17/2005 04:27 PM:

 


Warning: Cannot modify header information - headers already sent by
(output started at
/usr/home/ecmartin/public_html/ethics06/calendarlogin.php:8) in
/usr/home/ecmartin/public_html/ethics06/sas.php on line 34
   



It means you are trying to change the page's headers after they have 
already been sent to the user's browser. You are probably trying to use 
the header() function after HTML/Javascript/what have you has already 
been sent to the browser.  If you need to use header() you should write 
any earlier output to a variable and only output it to the browser after 
any header() function use.


- Ben
 

Most likely that is exactly what's happening. To be even more clear - 
the solution is to use the header function before any HTML (before *any* 
output). I learned this when I had an include file that was all Php 
causing this problem. The end of the included file had a carriage return 
after the closing tag ?. That was a nasty one to locate. Now I always 
make sure there is no white space after the closing tag in files I might 
include somewhere else.


--
*
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*

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



[PHP] Can't use secure file wrappers - Windows

2005-11-14 Thread Chuck Anderson

[I've had this posted in the php.windows group for a few days, but I got no 
replies there.]

I have been plugging away at this for some time now and I can not figure out 
how to get https and ftps as registered streams in my Windows installation of 
Php (4.4.0).  My direct need is to use fopen on secure URLs - https.

(I've installed openssl - enabled the Php openssl extension - and verified that 
my copy of Php was compiled with the openssl module.)

The latest thing I have read says that I need a special copy of 
php4ts.dll in order to enable secure streams (https, ftps) in Php on 
Windows (XP, in my case).


The posts I read point to copies of php4ts.dll for Php 4.3.4.

I am running Php 4.4.0.  Where can I find a copy of php4ts.dll for 
Php4.4.0 that enables secure streams?


(And is that really the solution in Php 4.4.0?)

Thanks in Advance

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



[PHP] Re: Can't use secure file wrappers - Windows

2005-11-14 Thread Chuck Anderson

James Benson wrote:


Could use the xampp package or just the openssl  php from it,


http://www.apachefriends.org/en/xampp.html

 

Hey thanks.  I may give that a try, but I already have two full apache 
servers loaded on my PC.  What I can't figure out is why these secure 
streams are not registered.  I seem to have done everything needed.


If I get some free time this week, I may install Xampp - see what happens.





Chuck Anderson wrote:
 

[I've had this posted in the php.windows group for a few days, but I got 
no replies there.]


I have been plugging away at this for some time now and I can not figure 
out how to get https and ftps as registered streams in my Windows 
installation of Php (4.4.0).  My direct need is to use fopen on secure 
URLs - https.


(I've installed openssl - enabled the Php openssl extension - and 
verified that my copy of Php was compiled with the openssl module.)


The latest thing I have read says that I need a special copy of 
php4ts.dll in order to enable secure streams (https, ftps) in Php on 
Windows (XP, in my case).


The posts I read point to copies of php4ts.dll for Php 4.3.4.

I am running Php 4.4.0.  Where can I find a copy of php4ts.dll for 
Php4.4.0 that enables secure streams?


(And is that really the solution in Php 4.4.0?)

Thanks in Advance
   



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