Re: [PHP] Re: heavy parsing of text, storing both versions

2004-02-20 Thread Torsten Schabdach
Hi,

2. [...] I'm going to be storing a LOT of data in the DB.
Why not save both as files? Maybe you find a structure for this,  i.e. 
http://example.org/articles/2004/02/19/text34_v3.html or something 
like this. You save the editfiles and cache the xhtml-output.
  The other problem with the above is that I don't wish to merge the
fields with the template at this point -- I want that to be on-the-fly. 
Of course you can when storing as files. Just keep both on serveral 
branches. The public XHTML-stuff to the URL and your raw material on a 
different branch in your filesystem. To cache the output is just a 
option. You can always do the stuff on-the-fly. Just map the URL in a 
secrue way to the filesystem and the parser.

 I guess simple XML would be an option...
Yep. I did this once for a friend. It was great, because we defined a 
couple of tags to work with. It was so easy for him, I didnt need to 
write some forms. He wrote the stuff right in the editor with all the 
tags in mind. I dont know if this is the same situation here. Maybe I'm 
missing something :)

But: While it was a great thing for him, it was a real pain for me to 
write the parser. As long as the stuff kept simple, than there was no 
problem. But when the output depends on some nesting tags, it will 
become real hell! So this is something that would be better to solve 
with PHP5 and SimpleXML and not with PHP4.

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


[PHP] Re: date

2004-02-20 Thread Lucian Cozma
date('Y-m-d', time()- 60*60*24);

You could also use mktime.

Regards,
Lucian

Madcat [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 hi there

 how do i make php give me yesterday's date?

 i tried

 date(Y-m-d)-1

 but if today would be the 1st of july (2004-07-01), yesterday would be 00.
 july (2004-07-00) according to that calculator.
 is there any way to make this one get it right? without any if-structures
if
 possible

 regards

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



Re: [PHP] Headers Again

2004-02-20 Thread Stuart
PETCOL wrote:
Unfortunately history tells me that php like ColdFusion will one day be
bought out by the big corporates, or at least they'll have a considerable
financial vested interest in it.
Not likely. Since PHP is open source if Zend decided to change the 
license I'm certain it would be forked and continued as an open source 
project. This is the basis of why open source software is so popular and 
also why there is negligible gain to be had by Zend in changing the license.

At which time we hope way off in the future, we'll all have to start paying
for support and maintenance contracts.
EVen if it did happen you'd be in no different a position than you are 
now. This mailing list is primarily user-supported and would likely 
continue even if PHP became a commercial product (which it won't - see 
above).

If you want commercial support for PHP you can get it. And you'll pay 
for it.

Allaire owned ColdFusion, the developer network was extremely co-operative,
then joint venture between Macromedia and Allaire, now if you want good old
assistance you need a Devnet contract.
ColdFusion was never open source (afaik). That's the difference.

For more info on what 'open source' actually means, see 
http://www.opensource.org/docs/definition.php

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


[PHP] Re: [PEAR] RE: [PHP] Re: PEAR DB 1.6.0 has been released

2004-02-20 Thread Lukas Smith
electroteque wrote:
unfortunately i tried mdb and it was totally unusable and badly documented,
and to port pear db over to mdb was impossible, i find pear db ok, even
adodb is cool, i had to build my own class specifically just for mysql with
pretty good performance as no others could.
Actually it had just as much documentation as PEAR DB since a while (I 
will update the MDB docs with DB updates soon .. just as I will port 
over the improvements made to DB). Its just that MDB can do way more 
than DB and yes all of those advanced features havent been documented.

I am not sure what you mean with unuseable. Care to enlighten me?

Anyways yes I guess in alot of ways I have been somewhat foolish in this 
entire process. Since I did MDB few people helped me even though alot of 
people wanted all the nice Metabase features. At the same time I keep 
helping out in DB, posting patches etc. So essentially its a one way 
direction. I feed DB, but DB doesnt feed MDB (so I have to watch thr CVS 
commits to figure out if I should apply the same thing to MDB).

So in the end it seems to me that I was a bit blind sided as to what 
people really wanted in PEAR. Appearently they prefer to stay with DB, 
adding things here and there to try to add the missing features. While 
at the same time ignoring the fact that this will make DB even slower as 
it is today (yes MDB is faster than DB, MDB2 even more so .. but that is 
another myth I was unable to combat).

Well either way MDB has worked nicely for me and a few people (and will 
get continued support) and MDB2 works even better for me. So the effort 
was worth it. Just kinda annoyign getting FUD like this spread across 
multiple MLs.

regards,
Lukas Smith
[EMAIL PROTECTED]
___
  BackendMedia
  www.backendmedia.com
  [EMAIL PROTECTED]
  Linn Zwoch Smith GbR
  Pariser Str. 44
  D-10707 Berlin
  Tel +49 30 83 22 50 00
  Fax +49 30 83 22 50 07
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PROBLEM: Explorer trying to save my *.php files...

2004-02-20 Thread Marek Kilimajer
What installation instructions did you follow?

  wrote:
Now, my problem is next:
When I tryin' to view my phpinfo.php file, Internet Explorer is invite
me to save it to disk Not To Open Why?
I have 11 files in my PHP directory:
LICENSE
MSVCRT.DLL
php4ts.dll
php4isapi.dll
php.exe
php.ini
php.ini-optimized
php_calendar.dll
php_imap.dll
php_ldap.dll
README.txt
Did you read the README.txt file?

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


[PHP] problem handling files.

2004-02-20 Thread php
I have a bit problem with following script in php: 

?php
$fichero = /var/www/php/fichero/fichero1.txt; 

if ($fp=fopen($fichero,r)) { 

	print ( El fichero ha podido abrirse. );	 

  fpassthru($fp); 



			} 

else { 

	print (El fichero no ha podido abrirse.); 

	}
? 

fpassthru doesn't work. 

I can see: 

El fichero ha podido abrirse. 

on the navigator, but I can't see the content of: 

/var/www/php/fichero/fichero1.txt 

I have php 4.1.2 on debian-woody. 

Could you help me with this problem? 

Thank you in advance. 

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


Re: [PHP] Advice Needed

2004-02-20 Thread Richard Davey
Hello daniel,

Friday, February 20, 2004, 6:10:28 AM, you wrote:

deo Hi there, i have finally built a project space for work, its a collaborate
deo space for storing important key documents (not public), what is the best
deo way to store these, outside the web directory or would it be safe within a
deo htaccess protected directory ? Being that to access that directory i would
deo have to send the login and pass to the link of the file which i fopen up
deo and either header output to the browser or download.

If you're going to open the files via fopen on the local filesystem,
your htaccess settings have no implication on this at all. For files
like this I store them outside of the web root and fopen them from my
PHP script and stream them to the browser. That is on a dedicated
server where I know no-one has access to the directory they are stored
in and it can never be found via the web server. Your mileage may
vary.

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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



[PHP] display a hiddenfield

2004-02-20 Thread Dominique ANOKRE
I use a simple form like this : 

print(form method=\post\ action=\image.php\\n);
print(input type=\hidden\ name=\hiddenField\\n);
$_POST[hiddenField] = $image_avant;
print(input type=\submit\ name=\avant\ value=\Avant\\n);
print(/form\n);

and when i click on the submit button, i want to display the value of my hiddenField 
(doing by the file image.php) :

 ?php
echo $_POST[hiddenField];
?

but nothing is displaying !!

Please help !





RE: [PHP] display a hiddenfield

2004-02-20 Thread Michael Egan
No value has been given to the hidden field.

e.g.

print (input type=\hidden\ name=\hiddenField\ value=\yourvalue\);

HTH.

Cheers,

Michael Egan

 -Original Message-
 From: Dominique ANOKRE [mailto:[EMAIL PROTECTED]
 Sent: 20 February 2004 11:17
 To: Php List
 Subject: [PHP] display a hiddenfield
 
 
 I use a simple form like this : 
 
 print(form method=\post\ action=\image.php\\n);
 print(input type=\hidden\ name=\hiddenField\\n);
 $_POST[hiddenField] = $image_avant;
 print(input type=\submit\ name=\avant\ value=\Avant\\n);
 print(/form\n);
 
 and when i click on the submit button, i want to display the 
 value of my hiddenField (doing by the file image.php) :
 
  ?php
 echo $_POST[hiddenField];
 ?
 
 but nothing is displaying !!
 
 Please help !
 
 
 
 

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



[PHP] Re: display a hiddenfield

2004-02-20 Thread Nadim Attari
echo form method='post' action='image.php';
echo   input type='hidden' name='hiddenField' value='$image_avant';
echo   input type='submit' name='avant' value='Avant';
echo /form;
---

?php
//  image.php
///
echo $_POST[hiddenField];
?

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



Re: [PHP] display a hiddenfield

2004-02-20 Thread Dominique ANOKRE
I 've given a value se the code :

$_POST[hiddenField] = $image_avant;

where  $image_avant  is a variable which contains a value !!


Cdt


- Original Message -
From: Michael Egan [EMAIL PROTECTED]
To: Dominique ANOKRE [EMAIL PROTECTED]; Php List
[EMAIL PROTECTED]
Sent: Friday, February 20, 2004 11:22 AM
Subject: RE: [PHP] display a hiddenfield


No value has been given to the hidden field.

e.g.

print (input type=\hidden\ name=\hiddenField\ value=\yourvalue\);

HTH.

Cheers,

Michael Egan

 -Original Message-
 From: Dominique ANOKRE [mailto:[EMAIL PROTECTED]
 Sent: 20 February 2004 11:17
 To: Php List
 Subject: [PHP] display a hiddenfield


 I use a simple form like this :

 print(form method=\post\ action=\image.php\\n);
 print(input type=\hidden\ name=\hiddenField\\n);
 $_POST[hiddenField] = $image_avant;
 print(input type=\submit\ name=\avant\ value=\Avant\\n);
 print(/form\n);

 and when i click on the submit button, i want to display the
 value of my hiddenField (doing by the file image.php) :

  ?php
 echo $_POST[hiddenField];
 ?

 but nothing is displaying !!

 Please help !





--
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[2]: [PHP] display a hiddenfield

2004-02-20 Thread Richard Davey
Hello Dominique,

Friday, February 20, 2004, 11:29:21 AM, you wrote:

DA I 've given a value se the code :
DA $_POST[hiddenField] = $image_avant;
DA where  $image_avant  is a variable which contains a value !!

No, you've overwritten whatever might have been in the $_POST array
with the image_avant value.

Also even if this would work (which it doesn't) you are still
outputting the HTML to the browser BEFORE you do this anyway.

Try like this (as has already been suggested):

?
print(form method=\post\ action=\image.php\\n);
print(input type=\hidden\ name=\hiddenField\
value=\$image_avant\\n);
print(input type=\submit\ name=\avant\ value=\Avant\\n);
print(/form\n);
?

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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



Re: [PHP] display a hiddenfield

2004-02-20 Thread Marek Kilimajer
Dominique ANOKRE wrote:

I use a simple form like this : 

print(form method=\post\ action=\image.php\\n);
print(input type=\hidden\ name=\hiddenField\\n);
This will result in
input type=hidden name=hiddenField
That is a hidden field without a value. This will get to the browser.
$_POST[hiddenField] = $image_avant;
This will assign a value to $_POST[hiddenField], which means just 
that, nothing more. It does not change html output.

You need to use:

print(input type=\hidden\ name=\hiddenField\ value=\. 
htmlspecialchars($image_avant) .\\n);

print(input type=\submit\ name=\avant\ value=\Avant\\n);
print(/form\n);
and when i click on the submit button, i want to display the value of my hiddenField (doing by the file image.php) :

 ?php
echo $_POST[hiddenField];
?
but nothing is displaying !!

Please help !




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


Re: [PHP] Re: date

2004-02-20 Thread Richard Davey
 how do i make php give me yesterday's date?

 i tried

 date(Y-m-d)-1

LC date('Y-m-d', time()- 60*60*24);
LC You could also use mktime.

Someone has already advised you look at strtotime, but just incase you
haven't here is one way you can use it:

$yesterdays_timestamp = strtotime(-1 day);

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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



[PHP] [OT slightly] PHP and Ewebeditpro CMS

2004-02-20 Thread David Robley
If anyone has experience with using a PHP interface to EwebeditPro 
content management system, I' ppreciate a little help. In particular, a 
sample script for handling contnet upload would be a godsend. ewebeditpro 
provide samples for ASP which isn't a great deal of help.

-- 
David Robley
Quod subigo farinam

All my efforts were for nothing, Tom said naughtily.

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



[PHP] returning image from CGI.

2004-02-20 Thread Nicklas Kittelmann
Hi!

I have a PHP-file which outputs an image when called from a web page. No
problem there.
However, when I change it to a CGI-file (for use by a webserver), and I
insert a line 
#/usr/bin/php -q  
before the ?php -tag, the result is that a newline is inserted in the
output, and the image is broken.

How do I fix this? 
The reason that I need to have it as a cgi is for sequrity (the web
server runs cgi's as a different user).
I have run other php-files renamed to cgi, that output HTML, and that
works perfectly.

/Nicklas Kittelmann

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



php-general Digest 20 Feb 2004 12:27:31 -0000 Issue 2601

2004-02-20 Thread php-general-digest-help

php-general Digest 20 Feb 2004 12:27:31 - Issue 2601

Topics (messages 178304 through 178335):

Security Issue?
178304 by: Ed Lazor

Re: date
178305 by: Tom Rogers
178321 by: Lucian Cozma
178333 by: Richard Davey

Re: PHP  PDFs...
178306 by: Evan Nemerson

Re: heavy parsing of text, storing both versions
178307 by: John W. Holmes
178308 by: joel boonstra
178309 by: Justin French
178310 by: John W. Holmes
178313 by: joel boonstra
178320 by: Torsten Schabdach

Flash and Sessions
178311 by: Jack Baty

PEAR DB 1.6.0 has been released
178312 by: Daniel Convissor
178315 by: Jakes
178317 by: daniel.electroteque.org

Advice Needed
178314 by: daniel.electroteque.org
178326 by: Richard Davey

PROBLEM: Explorer trying to save my *.php files...
178316 by: ãÙÇÁÎÅÎËÏ áÒÔ£Í
178324 by: Marek Kilimajer

PEAR::MAIL Problem
178318 by: Stanley Chan

Re: XSLT in php v5 beta 4
178319 by: Lucian Cozma

Re: Headers Again
178322 by: Stuart

Re: [PEAR] RE: [PHP] Re: PEAR DB 1.6.0 has been released
178323 by: Lukas Smith

problem handling files.
178325 by: php

display a hiddenfield
178327 by: Dominique ANOKRE
178328 by: Michael Egan
178329 by: Nadim Attari
178330 by: Dominique ANOKRE
178331 by: Richard Davey
178332 by: Marek Kilimajer

[OT slightly] PHP and Ewebeditpro CMS
178334 by: David Robley

returning image from CGI.
178335 by: Nicklas Kittelmann

Administrivia:

To subscribe to the digest, e-mail:
[EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]

To post to the list, e-mail:
[EMAIL PROTECTED]


--
---BeginMessage---
Hi Everyone,

Oddball error randomly shows up when accessing pages on my web hosting
provider.  The error message is below.

My account is obb4wine.  PHP behaves as if I'm the account budguy when
the script error occurs.  A page refresh usually makes the error go
away.  The error happens frequently enough that site users are
complaining.

Any ideas?

-Ed





PHP:  4.3.4.  (See below for Configure Command)

Apache:  Apache/1.3.29 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2
mod_bwlimited/1.4 PHP/4.3.4 FrontPage/5.0.2.2634 mod_ssl/2.8.16
OpenSSL/0.9.6b



Error Message:


Warning: Unknown(): open_basedir restriction in effect.
File(/home/obb4wine/public_html/prepend.php) is not within the allowed
path(s): (/home/budguy:/usr/lib/php:/usr/local/lib/php:/tmp) in Unknown
on line 0

Warning: Unknown(/home/obb4wine/public_html/prepend.php): failed to open
stream: Operation not permitted in Unknown on line 0

Warning: (null)(): Failed opening
'/home/obb4wine/public_html/prepend.php' for inclusion
(include_path='.:/home/obb4wine/public_html') in Unknown on line 0


-
PHP Configure Command
-

'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml'
'--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom'
'--with-dom-xslt' '--with-dom-exslt' '--enable-ftp' '--with-gd'
'--with-jpeg-dir=/usr/local' '--with-png-dir=/usr'
'--with-xpm-dir=/usr/X11R6' '--with-imap' '--with-imap-ssl'
'--with-kerberos' '--with-mcrypt' '--with-ming=../ming-0.2a'
'--enable-magic-quotes' '--with-mysql=/usr' '--with-openssl'
'--with-pear' '--enable-xslt' '--with-xslt-sablot' '--enable-sockets'
'--enable-track-vars' '--enable-versioning' '--enable-wddx'
'--with-xmlrpc' '--with-zlib'
---End Message---
---BeginMessage---
Hi,

Friday, February 20, 2004, 6:32:27 AM, you wrote:
JB [snip]
JB hi there

JB how do i make php give me yesterday's date?

JB i tried

JB date(Y-m-d)-1

JB but if today would be the 1st of july (2004-07-01), yesterday would be
JB 00.
JB july (2004-07-00) according to that calculator.
JB is there any way to make this one get it right? without any
JB if-structures if
JB possible
JB [/snip]

JB http://www.php.net/strtotime

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


date('Y-m-d',strtotime('-1 day'));

-- 
regards,
Tom
---End Message---
---BeginMessage---
date('Y-m-d', time()- 60*60*24);

You could also use mktime.

Regards,
Lucian

Madcat [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 hi there

 how do i make php give me yesterday's date?

 i tried

 date(Y-m-d)-1

 but if today would be the 1st of july (2004-07-01), yesterday would be 00.
 july (2004-07-00) according to that calculator.
 is there any way to make this one get it right? 

[PHP] sign not posted to next page

2004-02-20 Thread Piet from South Africa
i have the following problem.

when i href like this

 a href=nextpage.php?name=$name

and the name contains a  sign, it does not post it to the next page.

if the name is bedbreakfast it stops at bed.

Can anyone tell me how to do this.

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



[PHP] Delayed mail()... ?

2004-02-20 Thread Tristan . Pretty
I've been asked to add a small amount of functionality to a site I've 
built
(It's a techer at home web site)

Basically, prospective teachers/students, can sign up for more info etc.
Currently, that info is captured, and the site admin people are 
E-mailed...
all good so far..

What they've asked for, is that when they reply to the enquiry, they are 
reminded to chase up the enqiry a few days later...
Now I could give them a message on screen, if they happen to be in the 
admin area, but what i'd like to do , is simply mail the admin users, 
after say, 3 days.
regardless if they even visit the admin area at all...

is this possible at all?

I use 12All E-mail software at work, and that has a delayed sending 
option, but [EMAIL PROTECTED] NO idea how it works...

Any suggetions?



*
The information contained in this e-mail message is intended only for 
the personal and confidential use of the recipient(s) named above.  
If the reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby 
notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is 
strictly prohibited. If you have received this communication in error, 
please notify us immediately by e-mail, and delete the original message.
***

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



[PHP] Re: sign not posted to next page

2004-02-20 Thread Ben Ramsey
Use the urlencode() function. 
http://www.php.net/manual/en/function.urlencode.php

Piet From South Africa wrote:
i have the following problem.

when i href like this

 a href=nextpage.php?name=$name

and the name contains a  sign, it does not post it to the next page.

if the name is bedbreakfast it stops at bed.

Can anyone tell me how to do this.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] sign not posted to next page

2004-02-20 Thread Richard Davey
Hello Piet,

Friday, February 20, 2004, 1:18:11 PM, you wrote:

PfSA when i href like this
PfSA  a href=nextpage.php?name=$name
PfSA and the name contains a  sign, it does not post it to the next page.
PfSA if the name is bedbreakfast it stops at bed.

urlencode()

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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



[PHP][MySQL] FAKE DUPLICATE ROW

2004-02-20 Thread Alessandro Vitale
I have this table on my MYSQL 4.0.16 :

CREATE TABLE `pls_in_row` (
  `row_id` int(11) NOT NULL auto_increment,
  `pls_id` int(11) default NULL,
  `code` int(20) default NULL,
  `description` varchar(255) default NULL,
  `valid_from` date default NULL,
  PRIMARY KEY  (`row_id`),
  UNIQUE KEY `pls_row` (`code`,`pls_id`,`valid_from`)
) TYPE=MyISAM


when I push data into the table with a INSERT IGNORE statement, everything
works fine as long as 'code' is not longer than 9 digits. When I try to
insert records with 'code' longer than 9 digits, mysql does not distinguish
anymore in the index... so for example if I perform the following, the
second statement does not insert anything as the row was duplicate, but
actually is not:

INSERT IGNORE INTO pls_in_row SET pls_id = 17, code = 372622701, valid_from
= '2004-01-01';
 affeted rows: 1;

INSERT IGNORE INTO pls_in_row SET pls_id = 17, code = 3726227013, valid_from
= '2004-01-01';
 affected rows: 0;

leaving out the 'IGNORE' I get this...
 ERROR 1062: Duplicate entry '2147483647-17-2004-02-01' for key 2

so that seems that mysql has created a completely wrong key for this row!


my question is: is there a limit for the integer part of the index, or a bug

any suggestion would be very much appreciated.

cheers

alessandro

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



[PHP] Re: sign not posted to next page

2004-02-20 Thread Ben Ramsey
Use the urlencode() function. 
http://www.php.net/manual/en/function.urlencode.php

Piet From South Africa wrote:
i have the following problem.

when i href like this

 a href=nextpage.php?name=$name

and the name contains a  sign, it does not post it to the next page.

if the name is bedbreakfast it stops at bed.

Can anyone tell me how to do this.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: sign not posted to next page

2004-02-20 Thread Ben Ramsey
Use the urlencode() function. 
http://www.php.net/manual/en/function.urlencode.php

Piet From South Africa wrote:
i have the following problem.

when i href like this

 a href=nextpage.php?name=$name

and the name contains a  sign, it does not post it to the next page.

if the name is bedbreakfast it stops at bed.

Can anyone tell me how to do this.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] sign not posted to next page

2004-02-20 Thread BAO RuiXian


Piet from South Africa wrote:

i have the following problem.

when i href like this

 a href=nextpage.php?name=$name

and the name contains a  sign, it does not post it to the next page.

if the name is bedbreakfast it stops at bed.
  

Because '' is a special character in URL, you need to escape it by
urlencode it first before pass it, i.e.

$encodename = urlencode($name);

  a href=nextpage.php?name=$encodename

Best

Bao

Can anyone tell me how to do this.

  


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



Re: [PHP] Delayed mail()... ?

2004-02-20 Thread Richard Davey
Hello Tristan,

Friday, February 20, 2004, 1:12:01 PM, you wrote:

TPrsc What they've asked for, is that when they reply to the enquiry, they are
TPrsc reminded to chase up the enqiry a few days later...
TPrsc Now I could give them a message on screen, if they happen to be in the
TPrsc admin area, but what i'd like to do , is simply mail the admin users,
TPrsc after say, 3 days.
TPrsc regardless if they even visit the admin area at all...

TPrsc is this possible at all?

Someone more knowledgeable about SMTP than I will probably be able to
tell you if you can send a mail and have the SMTP server hold onto it
for 3 days - however I suspect it's not very likely.

One way to approach this is to have a PHP script that does nothing but
check to see who is due to be sent an email (based on the date they
replied) and then send out a reminder accordingly.

This script could then be called once a day via a CRON job, or you
personally could click a button and make it happen - the downside
being you'd have to remember to do it every day without failure.
Personally I'd go for the cron job :)

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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



[PHP] Re: Delayed mail()... ?

2004-02-20 Thread Ben Ramsey
Probably the best way to do this is the use cron to schedule a script to 
run at a specified time.

The way I'd do it is to create a PHP script that compares the current 
date with the date they registered (you'd save that date to the 
database, of course).  If the current date is greater than 3 days and 
less than 4 days older than the date they registered, then you'd use 
mail() to send them another message.

Use cron to schedule the script to run the script once every day.

For the PHP script that cron will be running, you'll need to put this 
line in above the first ?php tag:

#!/usr/bin/php -q

That way, it'll execute on the system.  And you may have the chmod the 
file 755, though I can't remember if that's necessary.

Finally, your system must be Linux (or other unix-type system) for this 
to work correctly.  If it's Windows, you can use the task scheduler, but 
I don't think it'll execute the PHP script.



Tristan Pretty wrote:
I've been asked to add a small amount of functionality to a site I've 
built
(It's a techer at home web site)

Basically, prospective teachers/students, can sign up for more info etc.
Currently, that info is captured, and the site admin people are 
E-mailed...
all good so far..

What they've asked for, is that when they reply to the enquiry, they are 
reminded to chase up the enqiry a few days later...
Now I could give them a message on screen, if they happen to be in the 
admin area, but what i'd like to do , is simply mail the admin users, 
after say, 3 days.
regardless if they even visit the admin area at all...

is this possible at all?

I use 12All E-mail software at work, and that has a delayed sending 
option, but [EMAIL PROTECTED] NO idea how it works...

Any suggetions?



*
The information contained in this e-mail message is intended only for 
the personal and confidential use of the recipient(s) named above.  
If the reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby 
notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is 
strictly prohibited. If you have received this communication in error, 
please notify us immediately by e-mail, and delete the original message.
***
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP][MySQL] FAKE DUPLICATE ROW

2004-02-20 Thread Richard Davey
Hello Alessandro,

Friday, February 20, 2004, 1:31:02 PM, you wrote:

AV   `code` int(20) default NULL,

AV so that seems that mysql has created a completely wrong key for this row!
AV my question is: is there a limit for the integer part of the index, or a bug
AV any suggestion would be very much appreciated.

The maximum value an INT field can hold is 4,294,967,295 on an
UNSIGNED field - you have not declared your code field as unsigned
which means you have halved this maximum value (because it must cope
with the minus values as well) - so consequently your 3,726,227,013
value is simply too big for it.

Change to a BIGINT or make the field unsigned.

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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



Re: [PHP] Re: Delayed mail()... ?

2004-02-20 Thread Tristan . Pretty
Right,
I'm off to php.net, to learn all about cron jobs...
i've never heard ofit ;-)
(I'll come out from under my rock now)
Cheers everyone




Ben Ramsey [EMAIL PROTECTED] 
20/02/2004 13:36

To
[EMAIL PROTECTED], Tristan Pretty 
[EMAIL PROTECTED]
cc

Subject
[PHP] Re: Delayed mail()... ?






Probably the best way to do this is the use cron to schedule a script to 
run at a specified time.

The way I'd do it is to create a PHP script that compares the current 
date with the date they registered (you'd save that date to the 
database, of course).  If the current date is greater than 3 days and 
less than 4 days older than the date they registered, then you'd use 
mail() to send them another message.

Use cron to schedule the script to run the script once every day.

For the PHP script that cron will be running, you'll need to put this 
line in above the first ?php tag:

#!/usr/bin/php -q

That way, it'll execute on the system.  And you may have the chmod the 
file 755, though I can't remember if that's necessary.

Finally, your system must be Linux (or other unix-type system) for this 
to work correctly.  If it's Windows, you can use the task scheduler, but 
I don't think it'll execute the PHP script.



Tristan Pretty wrote:
 I've been asked to add a small amount of functionality to a site I've 
 built
 (It's a techer at home web site)
 
 Basically, prospective teachers/students, can sign up for more info etc.
 Currently, that info is captured, and the site admin people are 
 E-mailed...
 all good so far..
 
 What they've asked for, is that when they reply to the enquiry, they are 

 reminded to chase up the enqiry a few days later...
 Now I could give them a message on screen, if they happen to be in the 
 admin area, but what i'd like to do , is simply mail the admin users, 
 after say, 3 days.
 regardless if they even visit the admin area at all...
 
 is this possible at all?
 
 I use 12All E-mail software at work, and that has a delayed sending 
 option, but [EMAIL PROTECTED] NO idea how it works...
 
 Any suggetions?
 
 
 
 *
 The information contained in this e-mail message is intended only for 
 the personal and confidential use of the recipient(s) named above. 
 If the reader of this message is not the intended recipient or an agent
 responsible for delivering it to the intended recipient, you are hereby 
 notified that you have received this document in error and that any
 review, dissemination, distribution, or copying of this message is 
 strictly prohibited. If you have received this communication in error, 
 please notify us immediately by e-mail, and delete the original message.
 ***

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





*
The information contained in this e-mail message is intended only for 
the personal and confidential use of the recipient(s) named above.  
If the reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby 
notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is 
strictly prohibited. If you have received this communication in error, 
please notify us immediately by e-mail, and delete the original message.
***

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



[PHP] Thanks guys it works great

2004-02-20 Thread Piet from South Africa

Piet From South Africa [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 i have the following problem.

 when i href like this

  a href=nextpage.php?name=$name

 and the name contains a  sign, it does not post it to the next page.

 if the name is bedbreakfast it stops at bed.

 Can anyone tell me how to do this.

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



Re: Re[2]: [PHP] display a hiddenfield

2004-02-20 Thread Dominique ANOKRE
Ok 
problem solved 

thank you everybody
- Original Message - 
From: Richard Davey [EMAIL PROTECTED]
To: Dominique ANOKRE [EMAIL PROTECTED]
Cc: Php List [EMAIL PROTECTED]
Sent: Friday, February 20, 2004 11:35 AM
Subject: Re[2]: [PHP] display a hiddenfield


 Hello Dominique,
 
 Friday, February 20, 2004, 11:29:21 AM, you wrote:
 
 DA I 've given a value se the code :
 DA $_POST[hiddenField] = $image_avant;
 DA where  $image_avant  is a variable which contains a value !!
 
 No, you've overwritten whatever might have been in the $_POST array
 with the image_avant value.
 
 Also even if this would work (which it doesn't) you are still
 outputting the HTML to the browser BEFORE you do this anyway.
 
 Try like this (as has already been suggested):
 
 ?
 print(form method=\post\ action=\image.php\\n);
 print(input type=\hidden\ name=\hiddenField\
 value=\$image_avant\\n);
 print(input type=\submit\ name=\avant\ value=\Avant\\n);
 print(/form\n);
 ?
 
 -- 
 Best regards,
  Richard Davey
  http://www.phpcommunity.org/wiki/296.html
 
 -- 
 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



[PHP] Re: XSLT in php v5 beta 4

2004-02-20 Thread Steve Dieke
Lucian, thank you very much for the insight you provided.

I am still a littke confused.  It looked to me like in php 4.x you needed
the SablotronT library.  But from what I can see with v5 beta4 you don't
need it.  At least the docs do not state it from what I saw.  Maybe I am
wrong.  I just wanted to try and used standard php libraries instead of a
3rd party.

Are the instructions that you provided for v4 or v5 of php?  I configured
php v5 b4 using the following line:

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-xsl=/usr/lib/ --
with-libxml-dir=/usr/lib/

I am using libxml2 2.6.6 and libxslt 1.1.3 both of which reside in the
location mentioned in the configure line above.

Thanks again for you response I really appreciate it.  I will give the DOM
XSLT a try this weekend.

Steve

Lucian Cozma [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I think your problems comes from configuring php with domxml instead of
xslt
 lib ( that requires sablotron).
 You can use domxml's xslt transformations. I actually recomend it. It's
 faster and in my opinion more flexible and reliable. (see
 http://www.php.net/manual/en/ref.domxml.php for more info )


 Extract from manual for installing sablotron:
 
 On UNIX, run configure with the --enable-xslt --with-xslt-sablot options.
 The SablotronT library should be installed somewhere your compiler can
find
 it.
 Make sure you have the same libraries linked to the SablotronT library as
 those, which are linked with PHP. The configuration
 options: --with-expat-dir=DIR --with-iconv-dir=DIR are there to help you
 specify them. When asking for support, always mention these directives,
and
 whether there are other versions of those libraries installed on your
system
 somewhere. Naturally, provide all the version numbers.
 

 Extract from manual for installing domxml:
 
 This extension is only available if PHP was configured
 with --with-dom[=DIR]. Add --with-dom-xslt[=DIR] to include DOM XSLT
 support. DIR is the libxslt install directory. Add --with-dom-exslt[=DIR]
to
 include DOM EXSLT support, where DIR is the libexslt install directory.
 

 If you're still having problems, send me the config line for php.

 Regards,
 Lucian

 Steve Dieke [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  I am guesing that I have installed something incorrectly.  I am trying
to
  use the function xslt_create().  I installed php v5 Beta 4 successfully.
 but
  when I try to use the function xslt_create() I get the following error:
 
  Fatal Error: Call to undefined function xslt_create()
 
  I have a test php page that uses phpinfo() and here's what the xml
related
  setting say.
 
  xml
  XML Support  active
  XML Namespace Support  active
  libxml2 Version  2.6.6
 
  xsl
  XSL  enabled
  libxslt Version  1.1.3
  libxslt compiled against libxml Version  2.6.6
  EXSLT  enabled
  libexslt Version  1.1.3
 
  My environment is the following:
  Fedora Core 1
  php - version 5 beta 4
  apache -  2.0.48
 
  Anyone have any ideas?  I have looked at the articles on php.net and
 didn't
  see anything that I thought would help.
 
  Thanks,
  Steve

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



Re: [PHP] Re: Delayed mail()... ?

2004-02-20 Thread Ben Ramsey
You'll be hard pressed to learn about cron at php.net.  Still, there may 
be something on it there.  Instead, since cron isn't a PHP function, do 
a google search on cron or cron tutorial to find out how to use it.

Tristan Pretty wrote:

Right,
I'm off to php.net, to learn all about cron jobs...
i've never heard ofit ;-)
(I'll come out from under my rock now)
Cheers everyone


Ben Ramsey [EMAIL PROTECTED] 
20/02/2004 13:36

To
[EMAIL PROTECTED], Tristan Pretty 
[EMAIL PROTECTED]
cc

Subject
[PHP] Re: Delayed mail()... ?




Probably the best way to do this is the use cron to schedule a script to 
run at a specified time.

The way I'd do it is to create a PHP script that compares the current 
date with the date they registered (you'd save that date to the 
database, of course).  If the current date is greater than 3 days and 
less than 4 days older than the date they registered, then you'd use 
mail() to send them another message.

Use cron to schedule the script to run the script once every day.

For the PHP script that cron will be running, you'll need to put this 
line in above the first ?php tag:

#!/usr/bin/php -q

That way, it'll execute on the system.  And you may have the chmod the 
file 755, though I can't remember if that's necessary.

Finally, your system must be Linux (or other unix-type system) for this 
to work correctly.  If it's Windows, you can use the task scheduler, but 
I don't think it'll execute the PHP script.



Tristan Pretty wrote:

I've been asked to add a small amount of functionality to a site I've 
built
(It's a techer at home web site)

Basically, prospective teachers/students, can sign up for more info etc.
Currently, that info is captured, and the site admin people are 
E-mailed...
all good so far..

What they've asked for, is that when they reply to the enquiry, they are 


reminded to chase up the enqiry a few days later...
Now I could give them a message on screen, if they happen to be in the 
admin area, but what i'd like to do , is simply mail the admin users, 
after say, 3 days.
regardless if they even visit the admin area at all...

is this possible at all?

I use 12All E-mail software at work, and that has a delayed sending 
option, but [EMAIL PROTECTED] NO idea how it works...

Any suggetions?



*
The information contained in this e-mail message is intended only for 
the personal and confidential use of the recipient(s) named above. 
If the reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby 
notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is 
strictly prohibited. If you have received this communication in error, 
please notify us immediately by e-mail, and delete the original message.
***


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


Re: [PHP] Delayed mail()... ?

2004-02-20 Thread Matt Matijevich
snip
What they've asked for, is that when they reply to the enquiry, they
are 
reminded to chase up the enqiry a few days later...
Now I could give them a message on screen, if they happen to be in the

admin area, but what i'd like to do , is simply mail the admin users, 
after say, 3 days.
regardless if they even visit the admin area at all...

is this possible at all?
/snip

you could use a some kind of database flag and cron jobs/scheduled
tasks to do it.

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



Re: [PHP] Re: Delayed mail()... ?

2004-02-20 Thread Seba
The solution to use cron is good, in this way you can run the script
manually to if you want, you have to:

1)Insert data into a databse or a text file,  create a php page with the
comparison of the dates (from the databe or the txt file) and the mail()
command.
2) create a shell script that does a GET
http://abcabc.com/yourscript.php
3) a cron for the shell script every day.


Seba




Il ven, 2004-02-20 alle 14:36, Ben Ramsey ha scritto:
 Probably the best way to do this is the use cron to schedule a script to 
 run at a specified time.
 
 The way I'd do it is to create a PHP script that compares the current 
 date with the date they registered (you'd save that date to the 
 database, of course).  If the current date is greater than 3 days and 
 less than 4 days older than the date they registered, then you'd use 
 mail() to send them another message.
 
 Use cron to schedule the script to run the script once every day.
 
 For the PHP script that cron will be running, you'll need to put this 
 line in above the first ?php tag:
 
 #!/usr/bin/php -q
 
 That way, it'll execute on the system.  And you may have the chmod the 
 file 755, though I can't remember if that's necessary.
 
 Finally, your system must be Linux (or other unix-type system) for this 
 to work correctly.  If it's Windows, you can use the task scheduler, but 
 I don't think it'll execute the PHP script.
 
 
 
 Tristan Pretty wrote:
  I've been asked to add a small amount of functionality to a site I've 
  built
  (It's a techer at home web site)
  
  Basically, prospective teachers/students, can sign up for more info etc.
  Currently, that info is captured, and the site admin people are 
  E-mailed...
  all good so far..
  
  What they've asked for, is that when they reply to the enquiry, they are 
  reminded to chase up the enqiry a few days later...
  Now I could give them a message on screen, if they happen to be in the 
  admin area, but what i'd like to do , is simply mail the admin users, 
  after say, 3 days.
  regardless if they even visit the admin area at all...
  
  is this possible at all?
  
  I use 12All E-mail software at work, and that has a delayed sending 
  option, but [EMAIL PROTECTED] NO idea how it works...
  
  Any suggetions?
  
  
  
  *
  The information contained in this e-mail message is intended only for 
  the personal and confidential use of the recipient(s) named above.  
  If the reader of this message is not the intended recipient or an agent
  responsible for delivering it to the intended recipient, you are hereby 
  notified that you have received this document in error and that any
  review, dissemination, distribution, or copying of this message is 
  strictly prohibited. If you have received this communication in error, 
  please notify us immediately by e-mail, and delete the original message.
  ***

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



[PHP] R: [PHP][MySQL] FAKE DUPLICATE ROW

2004-02-20 Thread Alessandro Vitale
you are an angel,
thanks for your great suggestion.

cheers

alessandro

-Messaggio originale-
Da: Richard Davey [mailto:[EMAIL PROTECTED]
Inviato: venerdi 20 febbraio 2004 14.40
A: [EMAIL PROTECTED]
Oggetto: Re: [PHP][MySQL] FAKE DUPLICATE ROW


Hello Alessandro,

Friday, February 20, 2004, 1:31:02 PM, you wrote:

AV   `code` int(20) default NULL,

AV so that seems that mysql has created a completely wrong key for this
row!
AV my question is: is there a limit for the integer part of the index, or a
bug
AV any suggestion would be very much appreciated.

The maximum value an INT field can hold is 4,294,967,295 on an
UNSIGNED field - you have not declared your code field as unsigned
which means you have halved this maximum value (because it must cope
with the minus values as well) - so consequently your 3,726,227,013
value is simply too big for it.

Change to a BIGINT or make the field unsigned.

--
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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



[PHP] Re: PHPSESSID and URL rewriting

2004-02-20 Thread memoimyself
On 19 Feb 2004 at 17:15, seba wrote:

 Unfortunately I do can not oblige users which will use those pages to
 accept cookies . The pages are for an e-commerce web site. If I use
 the directive session.use_trans_sid  = 0 is not possible to MANTAIN THE
 SAME phpsessid value among differents pages, isn t it? 

Well, in this case you cannot have your cake and eat it too. Either you expect your 
users 
to accept cookies or you propagate the session ID via the URL string, the former being 
safer and more convenient.

Frankly, in this day and age people being afraid of cookies is like girls being afraid 
that 
they'll get pregnant if they kiss a guy. Furthermore, someone who doesn't accept 
cookies is shut out from millions of web sites out there, so I shouldn't think you'll 
find 
that many no-cookie activists.

It is true, however, that some e-commerce sites like Amazon.com propagate session 
IDs via the URL string, so you won't be alone if you choose to accommodate users who 
won't accept cookies.

Erik

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



[PHP] Re: problem handling files.

2004-02-20 Thread memoimyself
What are the contents of your file? You do realize, I hope, that whatever is in the 
file is 
going to be output to the browser, so any HTML tags in the file will be processed 
before 
anything is displayed in the browser. Have a look at the resulting page's source code.


On 20 Feb 2004 at 10:15, php wrote:

 I have a bit problem with following script in php: 
 
 
 ?php
 $fichero = /var/www/php/fichero/fichero1.txt; 
 
 if ($fp=fopen($fichero,r)) { 
 
   print ( El fichero ha podido abrirse. );   
 
fpassthru($fp); 
 
  
 
   } 
 
 else { 
 
   print (El fichero no ha podido abrirse.); 
 
   }
 ? 
 
 
 fpassthru doesn't work. 
 
 I can see: 
 
 El fichero ha podido abrirse. 
 
 on the navigator, but I can't see the content of: 
 
 /var/www/php/fichero/fichero1.txt 
 
 
 I have php 4.1.2 on debian-woody. 
 
 Could you help me with this problem? 
 
 
 Thank you in advance. 
 

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



[PHP] PHP class for XSL transformations?

2004-02-20 Thread memoimyself
Hello all,

I'm looking for an alternative to PHP's XSLT extension. Does anyone 
know of a good PHP class capable of performing XSL transformations?

Thanks for your time,

Erik

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



Re: [PHP] Re: Delayed mail()... ?

2004-02-20 Thread John W. Holmes
From: Ben Ramsey [EMAIL PROTECTED]

 Finally, your system must be Linux (or other unix-type system) for this 
 to work correctly.  If it's Windows, you can use the task scheduler, but 
 I don't think it'll execute the PHP script.

Sure it will. Just put the program to run as something like this:

c:\php\php.exe -q c:\path\to\script.php

Or use the php-cli version. Not a big deal to do on Windows vs. Linux. :)

---John Holmes...

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



Re: [PHP] Delayed mail()... ?

2004-02-20 Thread John W. Holmes
From: [EMAIL PROTECTED]

 Basically, prospective teachers/students, can sign up for more info etc.
 Currently, that info is captured, and the site admin people are
 E-mailed...
 all good so far..

 What they've asked for, is that when they reply to the enquiry, they are
 reminded to chase up the enqiry a few days later...
 Now I could give them a message on screen, if they happen to be in the
 admin area, but what i'd like to do , is simply mail the admin users,
 after say, 3 days.
 regardless if they even visit the admin area at all...

How are they replying to the inquiry? If they're just using outlook and
sending off a reply email, then there's no way for you to capture that
reply and then do something else three days later. If they're sending a
reply through your webpage, then just save the time of the reply in a
database and run a cron script that looks for three day old replies and
sends an email reminder.

---John Holmes...

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



Re: [PHP] Re: Delayed mail()... ?

2004-02-20 Thread Jason Wong
On Friday 20 February 2004 21:35, [EMAIL PROTECTED] wrote:

 I'm off to php.net, to learn all about cron jobs...
 i've never heard ofit ;-)
 (I'll come out from under my rock now)

You'll probably find that using 'at' is more appropriate than using cron.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
QOTD:
If I could walk that way, I wouldn't need the cologne, now would I?
*/

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



[PHP] Re: XSLT in php v5 beta 4

2004-02-20 Thread Lucian Cozma
Here's my config:

'./configure' '--prefix=/usr' '--with-config-file-path=/etc'
'--disable-debug' '--enable-pic' '--enable-shared'
'--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs'
'--with-exec-dir=/usr/bin' '--with-regex=system' '--with-gettext'
'--with-gd' '--with-jpeg-dir=/usr' '--with-png' '--with-zlib' '--with-gdbm'
'--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem'
'--enable-sysvshm' '--enable-track-vars' '--enable-wddx' '--with-mysql'
'--without-oracle' '--without-oci8' '--with-xml' '--with-pdflib'
'--with-pgsql=/usr/local/pgsql/' '--with-dom' '--with-dom-xslt'
'--with-dom-exslt' '--enable-mbstring' '--with-imap' '--with-kerberos'
'--with-imap-ssl' '--enable-shmop' '--enable-sysvmsg' '--enable-sysvsem'
'--enable-sysvshm' '--with-primebase' '--with-curl'

I think that what you need for domxml are:
'--with-xml' '--with-dom' '--with-dom-xslt' '--with-dom-exslt'
If you don't need  DOM EXSLT support, ignore the '--with-dom-exslt'.

It should be the same for 4 and 5 (the config is for my php 4.3.4, but
should work fine on 5).
Be carefull though, dom in php5 has major API changes from php4 (but it's
gonna be much better, as Christian  all the guys from domxml are really
doing their best to bring this one home for all of us).

Also, try to use the latest libs (both libxslt and libxml).

Regards,
Lucian

Steve Dieke [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Lucian, thank you very much for the insight you provided.

 I am still a littke confused.  It looked to me like in php 4.x you needed
 the SablotronT library.  But from what I can see with v5 beta4 you don't
 need it.  At least the docs do not state it from what I saw.  Maybe I am
 wrong.  I just wanted to try and used standard php libraries instead of a
 3rd party.

 Are the instructions that you provided for v4 or v5 of php?  I configured
 php v5 b4 using the following line:


./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-xsl=/usr/lib/ --
 with-libxml-dir=/usr/lib/

 I am using libxml2 2.6.6 and libxslt 1.1.3 both of which reside in the
 location mentioned in the configure line above.

 Thanks again for you response I really appreciate it.  I will give the DOM
 XSLT a try this weekend.

 Steve

 Lucian Cozma [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  I think your problems comes from configuring php with domxml instead of
 xslt
  lib ( that requires sablotron).
  You can use domxml's xslt transformations. I actually recomend it. It's
  faster and in my opinion more flexible and reliable. (see
  http://www.php.net/manual/en/ref.domxml.php for more info )
 
 
  Extract from manual for installing sablotron:
  
  On UNIX, run configure with the --enable-xslt --with-xslt-sablot
options.
  The SablotronT library should be installed somewhere your compiler can
 find
  it.
  Make sure you have the same libraries linked to the SablotronT library
as
  those, which are linked with PHP. The configuration
  options: --with-expat-dir=DIR --with-iconv-dir=DIR are there to help you
  specify them. When asking for support, always mention these directives,
 and
  whether there are other versions of those libraries installed on your
 system
  somewhere. Naturally, provide all the version numbers.
  
 
  Extract from manual for installing domxml:
  
  This extension is only available if PHP was configured
  with --with-dom[=DIR]. Add --with-dom-xslt[=DIR] to include DOM XSLT
  support. DIR is the libxslt install directory.
Add --with-dom-exslt[=DIR]
 to
  include DOM EXSLT support, where DIR is the libexslt install directory.
  
 
  If you're still having problems, send me the config line for php.
 
  Regards,
  Lucian
 
  Steve Dieke [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
   I am guesing that I have installed something incorrectly.  I am trying
 to
   use the function xslt_create().  I installed php v5 Beta 4
successfully.
  but
   when I try to use the function xslt_create() I get the following
error:
  
   Fatal Error: Call to undefined function xslt_create()
  
   I have a test php page that uses phpinfo() and here's what the xml
 related
   setting say.
  
   xml
   XML Support  active
   XML Namespace Support  active
   libxml2 Version  2.6.6
  
   xsl
   XSL  enabled
   libxslt Version  1.1.3
   libxslt compiled against libxml Version  2.6.6
   EXSLT  enabled
   libexslt Version  1.1.3
  
   My environment is the following:
   Fedora Core 1
   php - version 5 beta 4
   apache -  2.0.48
  
   Anyone have any ideas?  I have looked at the articles on php.net and
  didn't
   see anything that I thought would help.
  
   Thanks,
   Steve

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



[PHP] Re: PHP class for XSL transformations?

2004-02-20 Thread Juan Torres
Hi,

you try with XMLDOM Functions. You look this function:
DomXsltStylesheet-process --  Applies the XSLT-Transformation on a
DomDocument Object

Good luck!
Juan Torres.

[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hello all,

 I'm looking for an alternative to PHP's XSLT extension. Does anyone
 know of a good PHP class capable of performing XSL transformations?

 Thanks for your time,

 Erik

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



Re: [PHP] Headers Again

2004-02-20 Thread Chris Shiflett
--- PETCOL [EMAIL PROTECTED] wrote:
 Unfortunately history tells me that php like ColdFusion will one day
 be bought out by the big corporates, or at least they'll have a
 considerable financial vested interest in it.

There's nothing to buy. Welcome to open source.

Chris

=
Chris Shiflett - http://shiflett.org/

PHP Security - O'Reilly
 Coming mid-2004
HTTP Developer's Handbook - Sams
 http://httphandbook.org/
PHP Community Site
 http://phpcommunity.org/

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



[PHP] Database insert/update from Browser Refresh or Back/Forward Button

2004-02-20 Thread Scott Fletcher
Hi!

Went Google surfing on Browser Refresh  Back/Forward Button and it
turned out that PHP can do the dirty work.  Problem is no sample script, all
I see are comments about suggesting on using the $_SESSION or the database
to check the $_POST stuffs and do something about it.

So does anyone know of a good sample code to help this out?  Like classes or
something because manually writing it on 20+ webpages is a haunting task for
the billing stuffs I had already developed for 6 months.  Beside I don't
really have an concept of writing a good Refresh/Back/Forward detections
script.

Thanks,
 FletchSOD

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



[PHP] undelivery mails

2004-02-20 Thread Juan Cortabitarte
I need to send a newsletter and I need to know all mail addresses of the
undelivery  mails to update the database.
Any suggestion? Do I need to parse the maillog?

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



Re[2]: [PHP] Re: Delayed mail()... ?

2004-02-20 Thread Richard Davey
Hello Jason,

Friday, February 20, 2004, 3:02:49 PM, you wrote:

JW On Friday 20 February 2004 21:35,
JW [EMAIL PROTECTED] wrote:

 I'm off to php.net, to learn all about cron jobs...
 i've never heard ofit ;-)
 (I'll come out from under my rock now)

JW You'll probably find that using 'at' is more appropriate than using cron.

I thought the AT scheduler was a Windows NT level service only? Surely
it's only more appropriate if he's on a Windows server? Or did MS nick
it from the Unix world? (and if so, why is it better than cron?)

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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



Re: [PHP] undelivery mails

2004-02-20 Thread John W. Holmes
From: Juan Cortabitarte [EMAIL PROTECTED]

 I need to send a newsletter and I need to know all mail addresses of the
 undelivery  mails to update the database.
 Any suggestion? Do I need to parse the maillog?

If you're using the basic mail() function in PHP, you're not going to get
any data back regarding deliveries. Some of the available SMTP classes may
incorporate that, though.

You'll more than likely (since you want to automate this, I imagine) have to
write a PHP script that logs into a mailbox and parses the messages looking
for bounces, failed delivery, etc.

---John Holmes...

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



RE: [PHP] Database insert/update from Browser Refresh or Back/Forward Button

2004-02-20 Thread Chris W. Parker
Scott Fletcher mailto:[EMAIL PROTECTED]
on Friday, February 20, 2004 8:41 AM said:

 Went Google surfing on Browser Refresh  Back/Forward Button and
 it turned out that PHP can do the dirty work.  Problem is no sample
 script, all I see are comments about suggesting on using the
 $_SESSION or the database to check the $_POST stuffs and do something
 about it.

What the heck are you talking about and why is Browser Refresh 
Back/Forward Button capitalized? Is that the name of a band or
something???

 So does anyone know of a good sample code to help this out?  Like
 classes or something because manually writing it on 20+ webpages is a
 haunting task for the billing stuffs I had already developed for 6
 months.

Well first of all you shouldn't be writing the same code over and over
in a page. If you find yourself needing the same code on multiple pages
that's where includes come in. You write the functions or code snippets
necessary to get the job done and then you include it on each page.

?php

  include fancy_stuff.php;

?

 Beside I don't really have an concept of writing a good
 Refresh/Back/Forward detections script.

Are you trying to process a form a something and you want to prevent the
browser from processing the form when the user clicks the back button?

If that's the case I have a solution for you. The way I get around this
is to have two separate pages that display and process the form. The
first page displays the form and the second page processes it. When the
second page is done processing the form it will redirect the user to
wherever they need to go next.

The second page never becomes a part of the browsers history so the user
can click the back/refresh buttons all they want and the form will not
be processed more than you want it to be. Actually that's not totally
true because the user could go back and resubmit the form.



hth,
Chris.

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



Re: [PHP] Re: Delayed mail()... ?

2004-02-20 Thread John Nichel
[EMAIL PROTECTED] wrote:

Right,
I'm off to php.net, to learn all about cron jobs...
i've never heard ofit ;-)
(I'll come out from under my rock now)
Cheers everyone
I don't think you'll find too much info in php.net about cron ;)

http://www.phpfreaks.com/tutorials/28/0.php

Check out google too...cron tutorial

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: Delayed mail()... ?

2004-02-20 Thread John Nichel
John W. Holmes wrote:
snip
Not a big deal to do on Windows vs. Linux. :)

---John Holmes...
Uh-oh, now you've done it.

pointing fingers
Hey everyone, see that open can of worms on the floor?  John opened it.
/pointing fingers
*L*

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: Re[2]: [PHP] Re: Delayed mail()... ?

2004-02-20 Thread Jason Wong
On Saturday 21 February 2004 00:56, Richard Davey wrote:

 I thought the AT scheduler was a Windows NT level service only? Surely
 it's only more appropriate if he's on a Windows server? Or did MS nick
 it from the Unix world? (and if so, why is it better than cron?)

  man atd (not man utd!)
  man at

Better because you can specify relative times, ie run this command in 3 days 
time.

Better because it saves you from having to run a master cronjob every minute 
(or whatever) to check what jobs needs to be done.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
I have a very strange feeling about this...
-- Luke Skywalker
*/

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



Re: [PHP] Database insert/update from Browser Refresh or Back/Forward Button

2004-02-20 Thread Scott Fletcher
Why is Browser Refresh  Back/Forward Button capitalized? Is that the
name of a
band or something???
Well, forgot to enclose the double quote.  Old Habit with capitalization on
commonly used term...

Are you trying to process a form a something and you want to prevent the
browser from processing the form when the user clicks the back button?

If that's the case I have a solution for you. The way I get around this
is to have two separate pages that display and process the form. The
first page displays the form and the second page processes it. When the
second page is done processing the form it will redirect the user to
wherever they need to go next.

The second page never becomes a part of the browsers history so the user
can click the back/refresh buttons all they want and the form will not
be processed more than you want it to be. Actually that's not totally
true because the user could go back and resubmit the form.

That's a fine idea!!  Wish I had thought of that 11 months ago when I first
developed this website and eliminate lot of unneccessnary codes... Thanks
for this idea...  I'll remember it for future projects...

FletchSOD

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



Re[2]: [PHP] Database insert/update from Browser Refresh or Back/Forward Button

2004-02-20 Thread Richard Davey
Hello Scott,

Friday, February 20, 2004, 5:34:12 PM, you wrote:

The second page never becomes a part of the browsers history so the user
can click the back/refresh buttons all they want and the form will not
be processed more than you want it to be. Actually that's not totally
true because the user could go back and resubmit the form.

SF That's a fine idea!!  Wish I had thought of that 11 months ago when I first
SF developed this website and eliminate lot of unneccessnary codes... Thanks
SF for this idea...  I'll remember it for future projects...

If you're interested the cover story of International PHP Magazine
(PDF version) this month is all about this.

https://www.entwickler.com/ssl/phppdf/

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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



Re: [PHP] undelivery mails

2004-02-20 Thread Ryan A

On 2/20/2004 5:48:21 PM, Juan Cortabitarte ([EMAIL PROTECTED]) wrote:
 I need to send a newsletter and I need to know all mail addresses of the
 undelivery  mails to update the database.
 Any suggestion? Do I need to parse the maillog?

 --

Hey,
If you are sending out html mails you can learn a lesson from the low life
bastard spammers, but in
your case for a good cause (i hope),
Write a script so that each email has a unique identifier as spedified in
the database and from the email
your script is called...(eg: via a img (src) tag )...after maybe 5 days of
the person not viewing your email
take them out of the db...this can be run via a cron.

HTH.

Cheers,
-Ryan

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



[PHP] Re: fsockopen failed with permission denied error...

2004-02-20 Thread Scott Fletcher
Hi Justin!

Still have the same problem.  But that's okay, I decided not to use the
fsockopen() recently.  Because some people seem to have this problem too.
So, I'm pondering of doing a different way of using PHP.

FletchSOD

Justin Patrin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Scott Fletcher wrote:

  Hi Everyone!
 
  Sample code below...
 
  --snip--
  $fp = fsockopen(www.cnn.com, 80, $errno, $errstr, 30);
  --snip--
 
  I get the error message, permission denied along with 13.  When I read
the
  bugs.php.net and found out that I need to add the @ to it so I did
this..
 
  --snip--
  $fp = @fsockopen(www.cnn.com, 80, $errno, $errstr, 30);
  --snip--
 
  I get a different error message, it said ...
 
  --snip--
  Addr family not supported by protocol (66)
  --snip--
 
  Does anyone know what it meant and what is the workaround to it?
 
  Thanks,
   FletchSOD

 Try the example at: http://us4.php.net/fsockopen

 -- 
 --
 paperCrane Justin Patrin

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



[PHP] resize an image with php

2004-02-20 Thread Dominique ANOKRE
I want to resize an image before display it in the window.
Is there a php fonction which do it ?

Thanks ! 



Re: [PHP] resize an image with php

2004-02-20 Thread Adam Voigt
You could use the image manipulation functions of PHP, or you could just
specify a height and/or width with HTML (in the img tag).


On Fri, 2004-02-20 at 12:53, Dominique ANOKRE wrote:
 I want to resize an image before display it in the window.
 Is there a php fonction which do it ?
 
 Thanks ! 
-- 

Adam Voigt
[EMAIL PROTECTED]

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



RE: [PHP] resize an image with php

2004-02-20 Thread craig
 I want to resize an image before display it in the window.
 Is there a php fonction which do it ?

 Thanks !


this will actually resize the photo,
hope it helps,

Craig
/***
**
Function: resizeImageJPG
Parameters: $forcedwidth = new width of jpeg to be created
$forcedheight = new height of jpeg to be created
$sourcefile = original jpeg that is to be resized
$destfile = new jpeg that is to be created
$imgqual = image quality (0 is best quality, 100 is most compressed)
Returns: true on success, false on failure
Side Effects: creates a new jpeg of $forcedwidth*$forcedheight size
called $destfile

*/
function resizeImageJPG($forcedwidth, $forcedheight, $sourcefile,
$destfile, $imgqual) {
   $g_imgcomp=100-$imgqual;
   $g_srcfile=$sourcefile;
   $g_dstfile=$destfile;
   $g_fw=$forcedwidth;
   $g_fh=$forcedheight;

   if (file_exists($g_srcfile)) {
  $g_is=getimagesize($g_srcfile);
  if(($g_is[0]-$g_fw)=($g_is[1]-$g_fh)) {
 $g_iw=$g_fw;
 $g_ih=($g_fw/$g_is[0])*$g_is[1];
  }
  else {
 $g_ih=$g_fh;
 $g_iw=($g_ih/$g_is[1])*$g_is[0];
  }


  $img_src=imagecreatefromjpeg($g_srcfile);
$img_dst=imagecreatetruecolor($g_iw,$g_ih);
  $imgCpRES=imagecopyresampled($img_dst, $img_src, 0, 0, 0, 0,
$g_iw, $g_ih, $g_is[0], $g_is[1]);
  $imgJPEG=imagejpeg($img_dst, $g_dstfile, $g_imgcomp);
  imagedestroy($img_dst);
if ($imgJPEG) {
 return true;
}
else{
 return false;
}
   }
}// end function resizeImageJPG

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



[PHP] PHP don't work with Apache :-(

2004-02-20 Thread
Please, listen my problem.
(All my steps I made by the book Julie C.Meloni PHP 4 fasteasy web
development)
Sorry, for my bad English... :-)

At first, I installed MySQL. It's works properly. I know it, because I
examined it by the book.
Next, I installed Apache. I know it too, because I examined it: I wrote
http://localhost in Address Bar. I saw Test Page for Apache Installation. My
server is work properly.
Problem is in installation of PHP.  When I installed it, I copied files
msvcrl.dll and php4ts.dll in the C:\Windows\System directory. After this, I
began to change my httpd.conf file. In book was written:
Add lines:

ScriptAlias /php/ C:/php4/
AddType application/x-httpd-php .phtml .php
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php /php/php.exe

I made this, and then I began to test work of Apache with PHP.
I created file phpinfo.php in the Apache\htdocs directory. I wrote ?
phpinfo (); ? in this file.
When I trying to see this file through the Internet Explorer - I see window
File Download (Open, Save, Cancel).
That's my problemI don't see phpinfo.php in my window...
Please, help me with this problem...
Thank you.

ARTEM
___
Best regards,
E-mail: [EMAIL PROTECTED]

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



[PHP] PICTURE (((PHP don't work with Apache))) PICTURE

2004-02-20 Thread



This is the window, that I see, when trying to see 
my phpinfo.php file through the Internet Explorer.
E-mail: [EMAIL PROTECTED]
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] sending reply, the continuing

2004-02-20 Thread Lucas Gonze
I have a situation where I want to send a cached result back then 
recalculate the cache.  This is necessary because it takes a long time 
to generate a page.  Is there a way for me to return what the browser 
needs, then terminate the connection without stopping my script?

Thanks in advance.

- Lucas

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


Re: [PHP] sending reply, the continuing

2004-02-20 Thread Lucas Gonze
s/the continuing/then continuing/

The continuing sounds like a Steven King title.

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


RE: [PHP] sending reply, the continuing

2004-02-20 Thread Pablo Gosse
Lucas Gonze wrote:
 I have a situation where I want to send a cached result back then
 recalculate the cache.  This is necessary because it takes a long time
 to generate a page.  Is there a way for me to return what the browser
 needs, then terminate the connection without stopping my script?
 
 Thanks in advance.
 
 - Lucas

If by terminate the connection you mean stop sending back information to
the browser, then perhaps you should look into output control functions:

http://ca3.php.net/manual/en/ref.outcontrol.php

HTH.

Pablo

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



RE: [PHP] PICTURE (((PHP don't work with Apache))) PICTURE

2004-02-20 Thread Chris W. Parker
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
on Friday, February 20, 2004 10:21 AM said:

 This is the window, that I see, when trying to see my phpinfo.php
 file through the Internet Explorer. 
 E-mail: [EMAIL PROTECTED]

hmm.. i didn't see a picture but that's good because you shouldn't send
attachments to a mailing list in the first place. if someone requests
it, send it to them directly.



chris.

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



Re: [PHP] PHP don't work with Apache :-(

2004-02-20 Thread John Nichel
  wrote:
snip
Problem is in installation of PHP.  When I installed it, I copied files
msvcrl.dll and php4ts.dll in the C:\Windows\System directory. After this, I
began to change my httpd.conf file. In book was written:
Add lines:
ScriptAlias /php/ C:/php4/
AddType application/x-httpd-php .phtml .php
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php /php/php.exe
snip

Did you restart Apache after you made the changes to the httpd.conf?

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Fwd: [PHP] sending reply, the continuing

2004-02-20 Thread Lucas Gonze
On Friday, Feb 20, 2004, at 13:52 America/New_York, Pablo Gosse wrote:
If by terminate the connection you mean stop sending back information 
to
the browser, then perhaps you should look into output control 
functions:

http://ca3.php.net/manual/en/ref.outcontrol.php
Well, the best match there is ob_end_flush, as far as I can tell.  
Unfortunately that keeps the connection alive while the cache is being 
recalculated, so that even though the browser has everything it's going 
to get almost immediately, the throbber keeps going for quite a while, 
thereby freaking out my users.  :(

I could fork(), have the parent exit, and regenerate the cache in the 
child process, but pcntl_fork is not designed for a web server 
environment.*

- Lucas

* http://www.php.net/manual/en/ref.pcntl.php

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


Re: [PHP] sending reply, the continuing

2004-02-20 Thread John W. Holmes
From: Lucas Gonze [EMAIL PROTECTED]

 On Friday, Feb 20, 2004, at 13:52 America/New_York, Pablo Gosse wrote:
  If by terminate the connection you mean stop sending back information 
  to
  the browser, then perhaps you should look into output control 
  functions:
 
  http://ca3.php.net/manual/en/ref.outcontrol.php
 
 Well, the best match there is ob_end_flush, as far as I can tell.  
 Unfortunately that keeps the connection alive while the cache is being 
 recalculated, so that even though the browser has everything it's going 
 to get almost immediately, the throbber keeps going for quite a while, 
 thereby freaking out my users.  :(

Maybe register_shutdown_function()?

---John Holmes...

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



[PHP] Re: sending reply, the continuing

2004-02-20 Thread pete M
Does this mean the end of the script termination does NOT need to be 
sent back to the browser ?

This smacks of something I needed recentyle with sending reports

The way I got around it was to

Create a flatfile database table with the job entries in it
Create  a crontab that executed and cheked the database every 1 min and 
emailed the requester
who at the web page created the query

some of the script took 10 mins to process but were qued

Lucas Gonze wrote:
I have a situation where I want to send a cached result back then 
recalculate the cache.  This is necessary because it takes a long time 
to generate a page.  Is there a way for me to return what the browser 
needs, then terminate the connection without stopping my script?

Thanks in advance.

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


Re: [PHP] sending reply, the continuing

2004-02-20 Thread Lucas Gonze
On Friday, Feb 20, 2004, at 14:30 America/New_York, John W. Holmes 
wrote:
Maybe register_shutdown_function()?
Hm, so the way this works is that my shutdown function is called after 
the connection is terminated, and I do the work there...  I'm going to 
implement this and see how well it works.

Nice bit of PHP obscurantia, John.

- Lucas

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


Re: [PHP] resize an image with php

2004-02-20 Thread Dominique ANOKRE
ok thanks 
problem solved !!

- Original Message - 
From: Adam Voigt [EMAIL PROTECTED]
To: Dominique ANOKRE [EMAIL PROTECTED]
Cc: Php List [EMAIL PROTECTED]
Sent: Friday, February 20, 2004 6:04 PM
Subject: Re: [PHP] resize an image with php


 You could use the image manipulation functions of PHP, or you could just
 specify a height and/or width with HTML (in the img tag).
 
 
 On Fri, 2004-02-20 at 12:53, Dominique ANOKRE wrote:
  I want to resize an image before display it in the window.
  Is there a php fonction which do it ?
  
  Thanks ! 
 -- 
 
 Adam Voigt
 [EMAIL PROTECTED]
 
 -- 
 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] sending reply, the continuing

2004-02-20 Thread Chris W. Parker
how about having your php script execute another php script via the
command line?

wouldn't this allow the web page to close it's connection while the
command line continued to do it's thing unaware of what was going on
with the web server?




chris.

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



Re: [PHP] sending reply, the continuing

2004-02-20 Thread Lucas Gonze
On Friday, Feb 20, 2004, at 14:57 America/New_York, Chris W. Parker 
wrote:

how about having your php script execute another php script via the
command line?
wouldn't this allow the web page to close it's connection while the
command line continued to do it's thing unaware of what was going on
with the web server?
I thought about that but ended up not doing it for fear of zombies -- 
that was my interpretation of the warning in the documentation that CGI 
scripts shouldn't futz with process control.

In the end the cleanest solution was to set up a cron job which fetches 
the cache regenerator.  This was purely an issue of convenience.  I 
implemented both the cron solution and the callback solution, and found 
that the version using the callback wasn't working.  Obviously this 
meant a bug, but given that the solutions are roughly as good as one 
another I just stuck with the one that was quicker.

Thanks folks!

- Lucas

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


Re: [PHP] sending reply, the continuing

2004-02-20 Thread John W. Holmes
From: Lucas Gonze [EMAIL PROTECTED]

 Nice bit of PHP obscurantia, John.

That's what I'm known for! :)

---John Holmes...

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



[PHP] PHP or MSIE Problem?

2004-02-20 Thread Beau Hartshorne
All,

When I submit a form from MSIE, under certain circumstances some of the
fields don't make it into the $_POST array. I am building a CMS that
accepts images and text entered into an HTML form. If I submit a form
from MSIE, and if the text contains special characters (like T [TM] for
example), some of the $_POST fields are not populated in PHP. This
problem does not occur on Mozilla or Safari.

The php version is 4.3.4, and is running on Linux. The MSIE version is
6.0.2800.1106.xpsp2.030422-1633. Here's a demonstration of the problem:

http://hartshorne.ca/sandbox.php

Can anyone tell me if this is a common problem? Is this a purely MSIE
bug, or could PHP be a factor?

Thanks!!

Beau

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



Re: [PHP] PHP or MSIE Problem?

2004-02-20 Thread Matt Matijevich
snip
Can anyone tell me if this is a common problem? Is this a purely MSIE
bug, or could PHP be a factor?
/snip

I would guess it is a MSIE problem.  You could check the raw post data
coming into php too see if it is a php bug. I think
$GLOBALS['HTTP_RAW_POST_DATA'] has the post data

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



[PHP] confirmation

2004-02-20 Thread Ed Lazor
Is there a way to enable a confirmation message or change it so that I
get copies of messages I send to the list?

Thanks,

Ed



RE: [PHP] confirmation

2004-02-20 Thread Jay Blanchard
[snip]
Is there a way to enable a confirmation message or change it so that I
get copies of messages I send to the list?
[/snip]

cc yourself?

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



Re: [PHP] PHP or MSIE Problem?

2004-02-20 Thread John Nichel
Beau Hartshorne wrote:
All,

When I submit a form from MSIE, under certain circumstances some of the
fields don't make it into the $_POST array. I am building a CMS that
accepts images and text entered into an HTML form. If I submit a form
from MSIE, and if the text contains special characters (like T [TM] for
example), some of the $_POST fields are not populated in PHP. This
problem does not occur on Mozilla or Safari.
The php version is 4.3.4, and is running on Linux. The MSIE version is
6.0.2800.1106.xpsp2.030422-1633. Here's a demonstration of the problem:
http://hartshorne.ca/sandbox.php

Can anyone tell me if this is a common problem? Is this a purely MSIE
bug, or could PHP be a factor?
It seems to be a real problem, as we've seen quite a few emails such as 
this one over the past week or so.  I'm running the same version of IE 
as you (6.0.2800.1106) (different product ID though), and can't 
reproduce the problem on any of my Linux webservers, or the one Win2k 
machine I have running PHP/Apache.  I also hit your URL with IE, and 
info posted fine for me.  It seems to just affect a small group of IE 
browsers (maybe they're not sending the request properly).

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] confirmation

2004-02-20 Thread John Nichel
Ed Lazor wrote:

Is there a way to enable a confirmation message or change it so that I
get copies of messages I send to the list?
Thanks,

Ed
Um, did you get the message that you just sent?

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Self Submitting Form

2004-02-20 Thread Sam Masiello

My apologies if this post is somewhat OT.  I am having some trouble
figuring something out, and I am hoping you can help.

I have a PHP web form on which a user can enter a number of different
things
into both text and textarea fields.  At the bottom of the form is a
preview button which opens another browser window.
 
I know I can use the GET string to pass these form fields from one 
PHP page to another, but with
textareas involved and the possibly large amounts of text being
passed, I didn't want to run the possibility of overrunning the limit
on a GET string.  So I figured using a form POST would be more
appropriate. 

My thought was to create a self submitting form in the child window, but
I am having
trouble getting it to work (or maybe I should try a different method
entirely to do this...any suggestion welcome!).  My code for the
preview window (which contains the self submitting form is as
follows: 

?
if ($do_preview) {
   echo $myvar; exit;
}
?
 
HTML
HEAD
TITLE/TITLE
META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=iso-8859-1

/HEAD 
BODY onLoad=document.preview_form.submit() BGCOLOR=#FF
TEXT=#00 LINK=#00 FORM NAME=preview_form METHOD=post
ACTION=? echo $PHP_SELF ? 
  INPUT TYPE=hidden NAME=do_preview VALUE=1 
script 
  document.write('INPUT TYPE=hidden
NAME=myvarVALUE='+opener.myform1.myvar1.value+'');
/script
/FORM 
/BODY 
/HTML 

(I also tried doing an eval within the VALUE attribute, but all that did
was set myvar to the text that I had between the quotes :) )

When I click the preview button on the parent window, I would like to
see the value of the myvar1 variable when the form self
submits...unfortunately, I get nothing.  I know it is getting into my
$do_preview block at the top, and I am accessing the variable
correctly because if I do an alert(opener.myform1.myvar1.value), I
get the proper value. 

Any thoughts would be greatly appreciated!
 
--Sam

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



Re: [PHP] Database insert/update from Browser Refresh or Back/Forward Button

2004-02-20 Thread Scott Fletcher
 If that's the case I have a solution for you. The way I get around this
 is to have two separate pages that display and process the form. The
 first page displays the form and the second page processes it. When the
 second page is done processing the form it will redirect the user to
 wherever they need to go next.

 The second page never becomes a part of the browsers history so the user
 can click the back/refresh buttons all they want and the form will not
 be processed more than you want it to be. Actually that's not totally
 true because the user could go back and resubmit the form.

Decided to go ahead and break up the rest of the webpages on the development
website to make this possible.  It is going to set me back by a month.  My
boss
is not going to like it.  :-(  Better less problem down the road...

FletchSOD

Scott Fletcher [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Why is Browser Refresh  Back/Forward Button capitalized? Is that the
 name of a
 band or something???
 Well, forgot to enclose the double quote.  Old Habit with capitalization
on
 commonly used term...

 Are you trying to process a form a something and you want to prevent the
 browser from processing the form when the user clicks the back button?

 If that's the case I have a solution for you. The way I get around this
 is to have two separate pages that display and process the form. The
 first page displays the form and the second page processes it. When the
 second page is done processing the form it will redirect the user to
 wherever they need to go next.

 The second page never becomes a part of the browsers history so the user
 can click the back/refresh buttons all they want and the form will not
 be processed more than you want it to be. Actually that's not totally
 true because the user could go back and resubmit the form.

 That's a fine idea!!  Wish I had thought of that 11 months ago when I
first
 developed this website and eliminate lot of unneccessnary codes... Thanks
 for this idea...  I'll remember it for future projects...

 FletchSOD

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



Re: [PHP] PHP or MSIE Problem?

2004-02-20 Thread John Nichel
Beau Hartshorne wrote:

as you (6.0.2800.1106) (different product ID though), and can't 
reproduce the problem on any of my Linux webservers, or the one Win2k 
machine I have running PHP/Apache.  I also hit your URL with IE, and 


The problem only occurs in the second form. Did you try that one too?

Yes, both worked fine.

Please reply to the list directly so that if/when a solution is found to 
the problem, it will be archived, and others can search it.

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] confirmation

2004-02-20 Thread Ed Lazor
I did that time...  must have been a problem on my email server.

Thanks for helping me verify that it's working now.

-Ed


-Original Message-
  Is there a way to enable a confirmation message or change it so that
I
 get copies of messages I send to the list?
 
 Thanks,
 
 Ed

Um, did you get the message that you just sent?

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



Re: [PHP] confirmation [Qurb #909251]

2004-02-20 Thread John Nichel
Ed Lazor wrote:
This is an automated message.

I apologize for the inconvenience, but I need your help in fighting
spam. I'm using a program called Qurb which automatically maintains
a list of approved senders for me. Messages from approved senders go
directly to my Inbox. Messages from addresses that Qurb hasn't seen
before are quarantined until the address of the sender can be
confirmed.
TO CONFIRM YOUR ADDRESS PLEASE REPLY TO THIS MESSAGE WITHOUT
MODIFYING THE SUBJECT.
There is no need to include any additional information in your
reply. I will be notified of your original message immediately and
you should not receive a confirmation message like this from me in
the future.
Thanks!
Yo Ed, this is why you aren't getting replies from the list.  I suspect 
that after seeing this, many people on this list have set up filters to 
send any/all emails from you to /dev/null (which I will be doing if I 
get another one of these)

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] help needed to install php on my xp home edition pc

2004-02-20 Thread danny cobbinah
i have installed apache 2 and mysql 3 on my pc (running xp home) i have
installed php 4.3.4 but have hit a snag. the php doesnt seem to gel with
apache at all. any help please? how do i configure apache and php to mix?

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



[PHP] Security Question

2004-02-20 Thread Ed Lazor
PHP include statements default to the current directory.  If the path to
my PHP files is /home/osmosis/public_html, why would users visiting my
site occasionally get an error that the include file wasn't found in
/home/budguy/public_html?

It's like PHP is somehow confused and running my script with the account
settings (and permissions, possibly) for another user on my host
provider's server.  If that's true, wouldn't this quality as a security
issue?  

They use open_basedir for security.  Isn't that part of PHP?  They're
running the latest version of PHP (4.3.4).

Thanks, 

-Ed

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



RE: [PHP] confirmation [Qurb #909251]

2004-02-20 Thread Ed Lazor
Hrm.  I just turned this on today.  The problem has been occurring all
week.

I run 47 websites so I get a lot of spam.  Qurb has you confirm you're a
real person once by replying to the message and all's good from that
point forward.

The PHP mailing list is already added to the approved list of addresses
so only people sending directly to me will have to reply to the initial
confirmation.  Or so I hope...  as I test yet another anti-spam
solution.

-Ed


-Original Message-
 Yo Ed, this is why you aren't getting replies from the list.  I suspect

that after seeing this, many people on this list have set up filters to 
send any/all emails from you to /dev/null (which I will be doing if I 
get another one of these)

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



RE: [PHP] PHP or MSIE Problem?

2004-02-20 Thread Pablo Gosse
snip
Beau Hartshorne wrote:

as you (6.0.2800.1106) (different product ID though), and can't 
reproduce the problem on any of my Linux webservers, or the one Win2k 
machine I have running PHP/Apache.  I also hit your URL with IE, and 
 
 
 The problem only occurs in the second form. Did you try that one too?
 

Yes, both worked fine.
/snip

I was only able to reproduce the error on the second form, and then only
if I DID NOT check the checkbox.  Any other combination of the elements
worked fine.

HTH.

Pablo

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



Re: [PHP] PROBLEM: Explorer trying to save my *.php files...

2004-02-20 Thread BAO RuiXian


  wrote:

   Now, my problem is next:
   When I tryin' to view my phpinfo.php file, Internet Explorer is invite
me to save it to disk Not To Open Why?
I have 11 files in my PHP directory:
LICENSE
MSVCRT.DLL
php4ts.dll
php4isapi.dll
php.exe
php.ini
php.ini-optimized
php_calendar.dll
php_imap.dll
php_ldap.dll
README.txt
And I don't have php4apache2.dll in C:\PHP4. Maybe, you'll send me this
file, if deal in it?
I need your help
 

Okay, since you don't have php4apache2.dll and you have a line 
ScriptAlias /php/ c:/php4 in your httpd.conf, I guess you are using 
the CGI package. In this case, you do not need php4apache.dll anymore.

Have you moved php.ini to your C:\windows or C:\winnt directory?

Best

Bao



  wrote:
 

Sorry, I'm from Ukraine and, maybe, my English too bad... But I don't
understand your words Please keep the discussion on the list.
   

It means that don't send your response only to me, but to the list you
originally sent, i.e. [EMAIL PROTECTED] so that others will also
benefit/critisize/contribute.
 

And, you words Don't send html format message I'm not understand too.

   

Check your email client's settings, to figure out how to send only plain
text message.
 

Sorry, but, please, explaine... I'll do all that you say... :-)
And, next. I can't find php4apache2.dll in C:\PHP4 and in all other
directories on my computer?
   

 

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


RE: [PHP] Security Question

2004-02-20 Thread Chris W. Parker
Ed Lazor mailto:[EMAIL PROTECTED]
on Friday, February 20, 2004 2:29 PM said:

 It's like PHP is somehow confused and running my script with the
 account settings (and permissions, possibly) for another user on my
 host provider's server.  If that's true, wouldn't this quality as a
 security issue?

not wanting to sound rude or anything, but have you emailed your host
about this yet?



chris.

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



[PHP] Re: :-(((( PROBLEM: Explorer trying to save my *.php files...

2004-02-20 Thread BAO RuiXian
First off, two routine notes for you:

1. Don't only send message to me;
2. Don't send html format message;
Then, see below...

  wrote:

Yes, I moved php.ini file to C:\windows directory...


E-mail: [EMAIL PROTECTED]
- Original Message -
From: BAO RuiXian [EMAIL PROTECTED]
To:   [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, February 21, 2004 12:35 AM
Subject: Re: [PHP] PROBLEM: Explorer trying to save my *.php files...
 

  wrote:

   

  Now, my problem is next:
  When I tryin' to view my phpinfo.php file, Internet Explorer is
 

invite
 

me to save it to disk Not To Open Why?
I have 11 files in my PHP directory:
LICENSE
MSVCRT.DLL
php4ts.dll
php4isapi.dll
php.exe
php.ini
php.ini-optimized
php_calendar.dll
php_imap.dll
php_ldap.dll
README.txt
And I don't have php4apache2.dll in C:\PHP4. Maybe, you'll send me
 

this
 

file, if deal in it?
I need your help
 

Okay, since you don't have php4apache2.dll and you have a line
ScriptAlias /php/ c:/php4 in your httpd.conf, I guess you are using
   

I sport another error from your httpd.conf like the above. Actually the 
directive should like the following:

   ScriptAlias /php/ c:/php4/

Note the trailling slash '/' after 'php4'. Then, save the httpd.conf 
file and restart your apache. What happens now by

   localhost/php/phpinfo.php

Best

Bao

the CGI package. In this case, you do not need php4apache.dll anymore.

Have you  or C:\winnt directory?

Best

Bao

___
   

_
 


  wrote:


 

Sorry, I'm from Ukraine and, maybe, my English too bad... But I don't
understand your words Please keep the discussion on the list.


   

It means that don't send your response only to me, but to the list you
originally sent, i.e. [EMAIL PROTECTED] so that others will also
benefit/critisize/contribute.


 

And, you words Don't send html format message I'm not understand too.



   

Check your email client's settings, to figure out how to send only plain
text message.


 


 

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


RE: [PHP] Security Question

2004-02-20 Thread Ed Lazor
You're not being rude.  I contacted them immediately about the script
errors and described what seemed to be a security hole.  The tech I
spoke with didn't know what I was talking about, so I asked them to
notify the owner of the problem and that I'd research it more and let
them know of anything I find.

I received email shortly thereafter saying that they disabled
open_basedir on the server in response.

-Ed




-Original Message-
 It's like PHP is somehow confused and running my script with the
 account settings (and permissions, possibly) for another user on my
 host provider's server.  If that's true, wouldn't this quality as a
 security issue?

not wanting to sound rude or anything, but have you emailed your host
about this yet?

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



[PHP] [Q] About Method Not Allowed error message

2004-02-20 Thread Michael T. Peterson
When I click the submit button (after completing a [member registration]
form), I get the following error message:

Method Not Allowed
The requested method POST is not allowed for the URL
/northwest_steelheader/members/register_new_member.html.

This used to work but, during the course of my coding, I've changed
something that now causes this error.

What does this error mean and can someone tell me what sorts of bobos elicit
it?

Cheers,

Michael

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



[PHP] PHP Servlet Crashes

2004-02-20 Thread Andrew
The phpsrvlt.jar crashes the JVM due to an access violation somewhere in
reflect.c. I've been trying to track down what could be the problem but have
been unsuccessful so far.

I just built libphp4.so from the latest sources on a Redhat 9
machine --with-servlet option.

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x4D99AD66
Function=zend_hash_index_update_or_next_insert+0x3A
Library=/usr/java/j2sdk1.4.2_03/jre/lib/i386/libphp4.so

Current Java thread:
at net.php.reflect.setResultFromObject(Native Method)
at net.php.reflect.setResult(reflect.java:105)
at net.php.servlet.readCookies(servlet.java:93)
at net.php.servlet.send(Native Method)
at net.php.servlet.service(servlet.java:190)
at net.php.servlet.service(servlet.java:214)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


- Andrew

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



Re: [PHP] [Q] About Method Not Allowed error message

2004-02-20 Thread Shane Nelson

I don't think you can send a POST to a .html page.  Maybe your page
(register_new_member.html) should be .php instead?  Either that or you might
have to change your FORM METHOD=POST back to FORM METHOD=GET

Shane


Quoting Michael T. Peterson [EMAIL PROTECTED]:

 When I click the submit button (after completing a [member registration]
 form), I get the following error message:
 
 Method Not Allowed
 The requested method POST is not allowed for the URL
 /northwest_steelheader/members/register_new_member.html.
 
 This used to work but, during the course of my coding, I've changed
 something that now causes this error.
 
 What does this error mean and can someone tell me what sorts of bobos elicit
 it?
 
 Cheers,
 
 Michael
 
 --
 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] PHP or MSIE Problem?

2004-02-20 Thread Richard Davey
Hello Beau,

Friday, February 20, 2004, 9:30:30 PM, you wrote:

BH When I submit a form from MSIE, under certain circumstances some of the
BH fields don't make it into the $_POST array. I am building a CMS that

BH Can anyone tell me if this is a common problem? Is this a purely MSIE
BH bug, or could PHP be a factor?

We have seen many messages like this over the past few weeks. I have
seen a few quite high profile web sites put messages up saying that
basically, their site doesn't work at the moment for IE with the
latest hotfix installed. It's definitely an IE issue, but quite WHAT
is going on I don't believe anyone has determined yet. I would love to
find out though because this is only going to get more and more common
imho.

-- 
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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



RE: [PHP] Advice Needed

2004-02-20 Thread electroteque
Done, outside the webby is the goer, then i dont have to worry this the
hassle of getting a simple allowovedrride rule in the fukn conf file, which
has seem to be a simple process i could do but then a complicated process
with all the politics :\

The server is dedicated work serve their own servers.

Just that its public accessable and that its private documents and that
there are htaccess hacking tools out there scares me heheh.

-Original Message-
From: Richard Davey [mailto:[EMAIL PROTECTED]
Sent: Friday, February 20, 2004 9:48 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Advice Needed


Hello daniel,

Friday, February 20, 2004, 6:10:28 AM, you wrote:

deo Hi there, i have finally built a project space for work, its a
collaborate
deo space for storing important key documents (not public), what is the
best
deo way to store these, outside the web directory or would it be safe
within a
deo htaccess protected directory ? Being that to access that directory i
would
deo have to send the login and pass to the link of the file which i fopen
up
deo and either header output to the browser or download.

If you're going to open the files via fopen on the local filesystem,
your htaccess settings have no implication on this at all. For files
like this I store them outside of the web root and fopen them from my
PHP script and stream them to the browser. That is on a dedicated
server where I know no-one has access to the directory they are stored
in and it can never be found via the web server. Your mileage may
vary.

--
Best regards,
 Richard Davey
 http://www.phpcommunity.org/wiki/296.html

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



[PHP] CMS and images, how?

2004-02-20 Thread Toby Irmer
Hi there,

I am presently coding a little CMS. I want to give users the
possibility to add images to articles as easily and flexibly as
possible.

Does anyone have a recommendation on how to do it? So far, you can
upload an image which then is checked for its dimensions. If
necessary, the user is redirected to a flash tool that enables you to
resize the image (imagemagick), a given aspect ratio is kept. A thumb is created and 
those two files
are written to the database.

I also write the alignment to the database as chosen during upload. And I have a 
template
system that replaces tags like #img1# in a template with a table
to nicely display the images from the db.

The only problem is: how do I allow users to insert those images in
the text? If I work with a fixed template, the number of images in an
article is limited... I have thought about using buttons that you
could press while editing the text that would then capture the cursor
position in the textarea. But that would only work in IE and is not a
very nice solution...

Thank you for your suggestions...

toby

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



  1   2   >