[PHP] Re: [PHP-DEV] PHP 5.4.16 and PHP 5.3.26 released!

2013-06-06 Thread Pierre Schmitz
Am 07.06.2013 01:58, schrieb Stas Malyshev:
> Hello!
> 
> The PHP development team announces the immediate availability of PHP
> 5.4.16 and PHP 5.3.26. These releases fix about 15 bugs, including
> CVE-2013-2110. All users of PHP are encouraged to upgrade to PHP 5.4.16.
> PHP 5.3.26 is recommended for those wishing to remain on the 5.3 series.

Is there a way to access the content of the relevant bug report here?
https://bugs.php.net/bug.php?id=64879 Who is allowed to see these
private reports?

Greetings,

Pierre

-- 
Pierre Schmitz, https://pierre-schmitz.com

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



[PHP] Unset and __destruct

2012-12-06 Thread Pierre du Plessis
Hi all

I searched the internet (probably not hard enough), and couldn't find a
decent answer.

I was wondering why, when calling unset on an object, it doesn't
automatically call the __destruct method (if it exists) on the object.

When unsetting an object, php doesn't automatically remove references to
other objects, and you need to manually call the __destruct method where
you can remove any references to other objects.

I know there is a lot of discussion around this topic, but couldn't find a
definate answer as to why this isn't the default behaviour.

Any clarification would greatly be appreciated.


[PHP] Activating the mysql_clear_password plugin

2012-09-27 Thread Pierre-Gildas MILLON

I need to use the mysql_clear_password plugin.
I'm using the CentOS php 5.3.3 and manually recompiled the mysql & 
mysqli extensions with the Oracle MySQL 5.5 libraries.


According to the MySQL documentation ( 
http://dev.mysql.com/doc/refman/5.5/en/cleartext-authentication-plugin.html), 
I need to either set the LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN or set the 
MYSQL_ENABLE_CLEARTEXT_PLUGIN option to the mysql client.


I tried to set the LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN via a SetEnv in 
Apache with no results.
Could anyone help me setting the MYSQL_ENABLE_CLEARTEXT_PLUGIN option to 
the mysql client ?


Regards,

Pierre-Gildas MILLON
pg.mil...@gmail.com


[PHP] Re: [PHP-WIN] 5.3.9RC2 and 5.4RC2

2011-11-28 Thread Pierre Joye
On Mon, Nov 28, 2011 at 5:51 AM, Tommy Pham  wrote:

> Can someone please confirm if you're able to create/drop MySQL
> database on using phpMyAdmin with PHP 5.3.9RC2 or PHP5.4RC2?

Please use the sqlsrv or mysql functions directly with CREATE/DROP
queries in a little script, it will be easier to debug.

Cheers,
-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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




[PHP] Re: [PHP-WIN] 5.3.9RC2 and 5.4RC2

2011-11-27 Thread Pierre Joye
On Mon, Nov 28, 2011 at 1:07 AM, Keith Davis  wrote:
> Thanks Pierre! And thanks Tommy for bringing that up. I've been discussing 
> the Wincache issue for some time and also brought it up with the new MS 
> person assigned to it, but I had completely forgot to check sqlsrv and that 
> would have been a big problem for us.

The new person? I did not hear of a new switch lately (there was one
earlier this year but then not).

Cheers,
>
> Keith Davis (214) 906-5183
>
>
> -----Original Message-
> From: Pierre Joye [mailto:pierre@gmail.com]
> Sent: Sunday, November 27, 2011 9:33 AM
> To: Tommy Pham
> Cc: php-general@lists.php.net; php-wind...@lists.php.net
> Subject: Re: [PHP-WIN] 5.3.9RC2 and 5.4RC2
>
> hi,
>
> I just uploaded two zip for sqlsrv and 5.4. I did not test them and they are 
> no official builds, only for testing purposes (so is 5.4 :).
>
> you can find them at http://www.php.net/~pierre/
>
> Cheers,
>
> On Sat, Nov 26, 2011 at 9:43 AM, Tommy Pham  wrote:
>> Hi everyone,
>>
>> 5.3.9RC2 works fine with all my apps so far.  5.4RC2 broke with sqlsvr
>> and its PDO in addition to Wincache, which I've already brought to MS'
>> attention.  What's the estimated official release of 5.4?  I can't
>> wait for the feature session.upload_progress* in 5.4 which I need to
>> do some testing as how I can implement that into my existing apps!!!
>> That's just awesome!!  Thanks for all your continuous hard work :)
>>
>> Platform: Win08R2/IIS7.5 SP1 with current patches running PHP as FastCGI.
>>
>> Applications:
>> drupal, joomla, mediawiki, wordpress, and a few of my own :)
>>
>> Cheers,
>> Tommy
>>
>> --
>> PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:
>> http://www.php.net/unsub.php
>>
>>
>
>
>
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>
> --
> PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: 
> http://www.php.net/unsub.php
>
>
>
> This message (including any attachments) may contain confidential or 
> otherwise privileged information and is intended only for the individual(s) 
> to which it is addressed. If you are not the named addressee you should not 
> disseminate, distribute or copy this e-mail. Please notify the sender 
> immediately by e-mail if you have received this e-mail by mistake and delete 
> this e-mail from your system. E-mail transmission cannot be guaranteed to be 
> secured or error-free as information could be intercepted, corrupted, lost, 
> destroyed, arrive late or incomplete, or contain viruses. The sender 
> therefore does not accept liability for any errors or omissions in the 
> contents of this message or that arise as a result of e-mail transmission. If 
> verification is required please request a hard-copy version from the sender.
>
> www.pridedallas.com
>
>



-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



[PHP] Re: [PHP-WIN] 5.3.9RC2 and 5.4RC2

2011-11-27 Thread Pierre Joye
hi,

I just uploaded two zip for sqlsrv and 5.4. I did not test them and
they are no official builds, only for testing purposes (so is 5.4 :).

you can find them at http://www.php.net/~pierre/

Cheers,

On Sat, Nov 26, 2011 at 9:43 AM, Tommy Pham  wrote:
> Hi everyone,
>
> 5.3.9RC2 works fine with all my apps so far.  5.4RC2 broke with sqlsvr
> and its PDO in addition to Wincache, which I've already brought to MS'
> attention.  What's the estimated official release of 5.4?  I can't
> wait for the feature session.upload_progress* in 5.4 which I need to
> do some testing as how I can implement that into my existing apps!!!
> That's just awesome!!  Thanks for all your continuous hard work :)
>
> Platform: Win08R2/IIS7.5 SP1 with current patches running PHP as FastCGI.
>
> Applications:
> drupal, joomla, mediawiki, wordpress, and a few of my own :)
>
> Cheers,
> Tommy
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



[PHP] Re: [PHP-WIN] 5.3.9RC2 and 5.4RC2

2011-11-27 Thread Pierre Joye
hi,

On Sat, Nov 26, 2011 at 9:43 AM, Tommy Pham  wrote:
> Hi everyone,
>
> 5.3.9RC2 works fine with all my apps so far.  5.4RC2 broke with sqlsvr
> and its PDO in addition to Wincache, which I've already brought to MS'
> attention.

Please report a bug at http://pecl.php.net/package/sqlsrv
http://pecl.php.net/package/wincache.

however I do not see what could be broken with 5.3.9, there is no
change that could affect these extensions.


>  What's the estimated official release of 5.4?

See https://wiki.php.net/todo/php54

There is no deadline for the final release as we do not know yet all
possible issues we may find during the RCs phase.


Cheers,
-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



[PHP] Re: [PECL-DEV] php_bcompiler.dll dependencies?

2011-10-12 Thread Pierre Joye
hi,

Which previous post? Also you have to use VC9 not VC10 to use your ext
against PHP releases. You can get it with the platform SDK 6.1

Cheers,

On Wed, Oct 12, 2011 at 10:51 PM, Peter Roth  wrote:
> I am trying to build php_bcompiler.dll on Windows 7 using Visual Studio 10. I 
> can compile it OK, but it will not link. I have posted the build output error 
> messages in a previous post. I am wondering if building PHP from source code 
> would produce some files that would help me get past the link errors.
>
>



-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



[PHP] Re: [PHP-WIN] Re: [PHP] Which versions of Apache will PHP 5.3.6 work with??

2011-03-26 Thread Pierre Joye
On Sat, Mar 26, 2011 at 1:47 AM, Tommy Pham  wrote:

> I've never tested the difference for performance.  If that's the case,
> any particular reason to stop support ISAPI for IIS then? or is
> FastCGI faster than ISAPI for IIS?

It is faster, however the ISAPI was not maintained and has issues. But
what is the relation with Apache?


> I've meant official in the sense that one could download from the
> official/mirror site.  Thus it's more trust worthy, in terms of non
> malicious code.

The developers at apachelounge.com work with th Apache project. We
would not recommend to use it if we do not trust this project.

Cheers,
-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



[PHP] Re: [PHP-WIN] Re: [PHP] Which versions of Apache will PHP 5.3.6 work with??

2011-03-25 Thread Pierre Joye
On Fri, Mar 25, 2011 at 8:12 PM, Tommy Pham  wrote:

> There used to be a VC6 binary release for PHP v5.3.3 at
> windows.php.net but I don't see a VC6 build for v5.3 now.  Any way,
> since you're using using Windows, why not just run it as FastCGI?  It
> runs fine on Win2003 (x86), Win7 x64, Win08 (x86 & x64), and Win08r2.

Apache module works just fine and is in many situations much faster than fcgi.

> Are using a specific Apache module that's why you need to use httpd?
> If so, you could use the (non official) Apache Lounge's binary.

There are no official builds of Apache, but convenience builds.

Cheers,
-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



[PHP] Re: [PHP-DEV] Re: [PHP] PHP 5.3.6RC2 Released for Testing

2011-03-10 Thread Pierre Joye
See the NEWS file in the release.

2011/3/10 sexyprout :
> Sorry everyone. I actually meant "the full changelog from v5.3.5 to v5.3.6."
>
> --
> sexyprout
>



-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



[PHP] Re: [PHP-DEV] Re: [PHP] PHP 5.3.6RC2 Released for Testing

2011-03-10 Thread Pierre Joye
2011/3/10 sexyprout :
> What will be the changes in PHP 5.3.6 final?

No change between RC3 and final if everything is fine in this RC, if
not then we may need another RC.


Cheers,
-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



Re: [PHP] [security] PHP has DoS vuln with large decimal points

2011-01-25 Thread Pierre Joye
hi,

On Mon, Jan 17, 2011 at 5:21 AM, Tommy Pham  wrote:

> Thanks Dan.  I'll keep it in mind for the future.  For interested parties,
> that's found in the official Windows 5.3.3 NTS VC9 build.  Works fine with
> the current official 5.3.5 NTS VC9.

5.3.5 was released only to fix this exact bug :-)

Cheers,
-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

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



[PHP] Re: [Bulk] Re: [PHP] Re: [Bulk] Re: [PHP] Why [?php while (true) { sleep(5); } ?] dies on CLI?

2009-06-13 Thread Jean-Pierre Arneodo

Ashley Sheridan a écrit :

On Thu, 2009-06-11 at 20:52 +0200, Jean-Pierre Arneodo wrote:
  

Ashley Sheridan a écrit :


On Thu, 2009-06-11 at 10:47 +, Jean-Pierre Arneodo wrote:
  
  

Hi!
I'm stuck.
I don't understand why the php CLI dies after 3 hours in my script.
Any idea to solve?
Thanks


PHP 5.2.9-0.dotdeb.2 with Suhosin-Patch 0.9.7 (cli) (built: Apr  7 2009 
20:06:36)
Linux ubuntu  2.6.24-19-server #1 SMP Wed Jun 18 14:44:47 UTC 2008 x86_64 
GNU/Linux

Conf [php.ini]
max_execution_time=0




  



The while loop will continue executing until its condition is false. As
you've got a boolean true as the condition, it will never end.

Thanks
Ash
www.ashleysheridan.co.uk
  
  

I don't want to stop, but the process dies.

I've tried the same loop with bash interpretor.
Same result, it seems to be a ubuntu problem, not a php problem.

Thanks





Why do you want the process to continue indefinitely? Is it for a daemon
of some kind?

Thanks
Ash
www.ashleysheridan.co.uk

  
No, it isn't a daemon, but it does something and wait the end of 
processing by polling a daemon.


# ulimit -a
core file size  (blocks, -c) 0
data seg size   (kbytes, -d) unlimited
scheduling priority (-e) 0
file size   (blocks, -f) unlimited
pending signals (-i) 38912
max locked memory   (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files  (-n) 1024
pipe size(512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority  (-r) 0
stack size  (kbytes, -s) 8192
cpu time   (seconds, -t) unlimited
max user processes  (-u) 38912
virtual memory  (kbytes, -v) unlimited
file locks  (-x) unlimited




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



[PHP] Re: [Bulk] Re: [PHP] Why [?php while (true) { sleep(5); } ?] dies on CLI?

2009-06-11 Thread Jean-Pierre Arneodo

Ashley Sheridan a écrit :

On Thu, 2009-06-11 at 10:47 +, Jean-Pierre Arneodo wrote:
  

Hi!
I'm stuck.
I don't understand why the php CLI dies after 3 hours in my script.
Any idea to solve?
Thanks


PHP 5.2.9-0.dotdeb.2 with Suhosin-Patch 0.9.7 (cli) (built: Apr  7 2009 
20:06:36)
Linux ubuntu  2.6.24-19-server #1 SMP Wed Jun 18 14:44:47 UTC 2008 x86_64 
GNU/Linux

Conf [php.ini]
max_execution_time=0




  


The while loop will continue executing until its condition is false. As
you've got a boolean true as the condition, it will never end.

Thanks
Ash
www.ashleysheridan.co.uk
  

I don't want to stop, but the process dies.

I've tried the same loop with bash interpretor.
Same result, it seems to be a ubuntu problem, not a php problem.

Thanks



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



[PHP] Why [?php while (true) { sleep(5); } ?] dies on CLI?

2009-06-11 Thread Jean-Pierre Arneodo
Hi!
I'm stuck.
I don't understand why the php CLI dies after 3 hours in my script.
Any idea to solve?
Thanks


PHP 5.2.9-0.dotdeb.2 with Suhosin-Patch 0.9.7 (cli) (built: Apr  7 2009 
20:06:36)
Linux ubuntu  2.6.24-19-server #1 SMP Wed Jun 18 14:44:47 UTC 2008 x86_64 
GNU/Linux

Conf [php.ini]
max_execution_time=0




  

[PHP] Re: [PHP-DEV] Re: PHP 5.3.0RC1

2009-03-24 Thread Pierre Joye
hi Johannes,

Fixed, thanks for the head up!

Cheers,

On Tue, Mar 24, 2009 at 11:02 PM, Johannes Mueller  wrote:
> Lukas Kahwe Smith wrote:
>
>> Windows binaries are available here:
>> http://windows.php.net/qa/
>
> The .ini files in the 5.3RC1-VC6-nts-package are empty. Can someone fix
> this?
>
> thanks for your hard work
> Johannes
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org

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



RE: [PHP] Script Analysis (was Conclusion of "use strict"...)

2009-03-21 Thread Pierre Lilliman

Using it (and Codenizer within), this is completely different thing...

Regards

>
> Hi guys,
>
> Check out Netbeans IDE for PHP.
> http://www.netbeans.org/features/php/
>
> Your wishes answered.
> Though it doesn't have "use strict" but it tracks variables for you.
>
> Virgil
> http://www.jampmark.com

_
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Script Analysis (was Conclusion of "use strict"...)

2009-03-20 Thread Pierre Lilliman

I have been using same program for some (not very long time), and I find it 
very useful, although it has some annoying things (inability to work with all 
kinds of include expressions). Still I think every serious PHP developer should 
consider using something like this.

Cheers

--- On Thu, 3/19/09, Hans Schultz  wrote:

If someone is still interested in problem I found litle tool that is pretty 
close to detecting errors in PHP at compile time (compile time rghhh :P). 
It is Codenizer (http://www.softwarehood.com/Codenizer/), I am still checking 
it, if someone uses it it would be nice to share experience :)

On Wed, 04 Mar 2009 11:03:04 +0100, Hans Schultz  wrote:

> Concluding,  and one idea...I think I received satisfying advices on 
> everything but first question (Detection of typos and other simple mistakes). 
> And we were talking also about being able to catch them at compile time, then 
> if php at all has compile time etc. Today one thing crossed my mind -- if 
> there is compiler for php maybe it can catch these errors natively, like java 
> compiler for java? Unfortunatelly there is no recent version available for 
> windows so I can't test it myself 
> (http://www.roadsend.com/home/index.php?pageID=compiler). I am interesting if 
> someone is using it, and if it can detect this simple mistakes (I am using 
> eclipse + php plugin, but I feel there is something wrong in depending on 
> editor to detect programming errors :-) )
> Regards to all,
> --- On Thu, 2/26/09, Ovidiu Rosoiu  wrote:
> From: Ovidiu Rosoiu 
> Subject: Re: [PHP] "use strict" or similar in PHP?
> To: "Hans Schultz" 
> Cc: php-general@lists.php.net
> Date: Thursday, February 26, 2009, 9:14 PM
> 
> Hans Schultz wrote:
>> Hello,
>> I am beginner with PHP and prior to PHP I have worked with java for some
> time
>> and with perl for very short period. I can't help to notice some
> things that
>> are little annoyance for me with PHP, but I am sure someone more
> experienced
>> can help me :-)
>> Is there in PHP something like "use strict" from perl? I find it
> pretty
>> annoying to need to run script over and over again just to find out that I
>> made typo in variable name.
>> Is there some way for PHP to cache some data on the page? I like very much
>> PHP's speed but it would be even better to be able to cache some
> frequently
>> used data from database?
>> Also regarding databases, I liked a lot java's way of sending data to
> database
>> using parameters ("select * from user where username = ?" and
> then passing
>> parameter separately with database doing necessary escaping and
> everything).
>> Is there something like PHPDBC similar to JDBC?
> 


_
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: Installation problems on Vista

2009-01-20 Thread lucson pierre-charles

Yes. It can't find a file.> To: php-general@lists.php.net> Date: Tue, 20 Jan 
2009 17:14:14 -0600> From: nos...@mckenzies.net> Subject: Re: [PHP] Re: 
Installation problems on Vista> > lucson pierre-charles wrote:> > Nathan,> > > 
> When I remove the #'s, I can't have Apache to restart. I keep receiving error 
messages.> > > > Lucson> Date: Tue, 20 Jan 2009 22:41:44 +> From: 
nrix...@gmail.com> To: lucsonpie...@hotmail.com> CC: php-general@lists.php.net> 
Subject: [PHP] Re: Installation problems on Vista> > lucson pierre-charles 
wrote:> > Dear Nathan,> > The "short_tags" is sure off but when I changed the > 
> scripts, they're still being output to the browser. > > > > These are the 
lines I added to the modules section:> > #LoadModule php5_module 
c:/php5/php5apache2.dll> > #AddType application/x-httpd-php .php> > #PHPIniDir 
"c:/php5"> > > >> remove the #'s> > > -- > PHP General Mailing List 
(http://www.php.net/)> To unsubscribe, visit: http://www.php.net/unsub.php> > > 
What is the error message from the windows event viewer? Most likely it> can't 
find a file.> > -- > Thanks!> -Shawn> http://www.spidean.com> > -- > PHP 
General Mailing List (http://www.php.net/)> To unsubscribe, visit: 
http://www.php.net/unsub.php> 

RE: [PHP] Re: Installation problems on Vista

2009-01-20 Thread lucson pierre-charles

Nathan,
 
  When I remove the #'s, I can't have Apache to restart. I keep 
receiving error messages.
 
Lucson> Date: Tue, 20 Jan 2009 22:41:44 +> From: nrix...@gmail.com> To: 
lucsonpie...@hotmail.com> CC: php-general@lists.php.net> Subject: [PHP] Re: 
Installation problems on Vista> > lucson pierre-charles wrote:> > Dear Nathan,> 
> The "short_tags" is sure off but when I changed the > > scripts, they're 
still being output to the browser. > > > > These are the lines I added to the 
modules section:> > #LoadModule php5_module c:/php5/php5apache2.dll> > #AddType 
application/x-httpd-php .php> > #PHPIniDir "c:/php5"> > > >> remove the #'s> > 
> -- > PHP General Mailing List (http://www.php.net/)> To unsubscribe, visit: 
http://www.php.net/unsub.php> 

RE: [PHP] Installation problems on Vista

2009-01-20 Thread lucson pierre-charles

TG,
 I configured it as follows but will still not work. 
 
These are the lines I added to the modules section:
#LoadModule php5_module c:/php5/php5apache2.dll#AddType application/x-httpd-php 
.php#PHPIniDir "c:/php5"
 
I added these lines to the DirectoryIndex:
DirectoryIndex index.html index.html.var index.php
 
Lucson> From: tg-...@gryffyndevelopment.com> To: lucsonpie...@hotmail.com; 
php-general@lists.php.net> Date: Mon, 19 Jan 2009 18:35:08 -0500> Subject: Re: 
[PHP] Installation problems on Vista> > You most likely need to configure 
Apache to process PHP script files. Check > out this page:> > 
http://www.ampsoft.net/webdesign-l/how-to-install-apache-php-mysql-3.html> > 
-TG> > - Original Message -> From: lucson pierre-charles 
> To: > Date: Mon, 19 Jan 
2009 22:37:25 +> Subject: [PHP] Installation problems on Vista> > > > > I 
am having problems installing the zip package (PHP5) on Windows Vista. > The 
output will not come on the browser upon testing. Only the code is > being 
output to the browser. Apache (Apache 2) was properly installed. Your > 
assistance please. Regards, Lucson> > > > -- > PHP General Mailing List 
(http://www.php.net/)> To unsubscribe, visit: http://www.php.net/unsub.php> 

[PHP] RE: Installation problems on Vista

2009-01-20 Thread lucson pierre-charles

Dear Nathan,
 The "short_tags" is sure off but when I changed the scripts, 
they're still being output to the browser. 
 
These are the lines I added to the modules section:
#LoadModule php5_module c:/php5/php5apache2.dll#AddType application/x-httpd-php 
.php#PHPIniDir "c:/php5"
 
I added these lines to the DirectoryIndex:
DirectoryIndex index.html index.html.var index.php
 
Lucson> Date: Mon, 19 Jan 2009 22:49:01 +> From: nrix...@gmail.com> To: 
lucsonpie...@hotmail.com> CC: php-general@lists.php.net> Subject: Re: 
Installation problems on Vista> > lucson pierre-charles wrote:> > I am having 
problems installing the zip package (PHP5) on Windows Vista. The output will 
not come on the browser upon testing. Only the code is being output to the 
browser. Apache (Apache 2) was properly installed. Your assistance please. 
Regards, Lucson> > check the php.ini setting for "short_tags" - quite sure it 
will be off > and that you are using short tags in your php scripts " " to use " > should fix it :)

[PHP] Installation problems on Vista

2009-01-19 Thread lucson pierre-charles

I am having problems installing the zip package (PHP5) on Windows Vista. The 
output will not come on the browser upon testing. Only the code is being output 
to the browser. Apache (Apache 2) was properly installed. Your assistance 
please. Regards, Lucson

[PHP] Re: [PHP-DEV] Re: PHP 5.3.0alpha3

2008-12-08 Thread Pierre Joye
hi!

On Mon, Dec 8, 2008 at 12:50 PM, Rodrigo Saboya
<[EMAIL PROTECTED]> wrote:

> All links at http://windows.php.net/qa/ are 404.

Fixed, the files were there but a change I made in the scripts was
setting the wrong directory. Thanks for the head up!

Cheers,
-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org

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



[PHP] Re: [PHP-DEV] Re: [PHP] PHP 5.3.0alpha2

2008-09-04 Thread Pierre Joye
hi,

On Thu, Sep 4, 2008 at 6:06 AM, Andi Gutmans <[EMAIL PROTECTED]> wrote:
> Btw, contrary to what many believe, 32bit PHP tends to perform better
> than 64bit PHP.
> So unless there's a really good reason why you want 64bit I wouldn't
> waste too much time on that.

And do not forget that the x64 builds are highly experimental. I would
not suggest to use them for anything else but testing. They are also
incomplete as some libraries are not yet ported to x64 or other needs
tweaks.

Cheers.
-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org

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



[PHP] Re: [PHP-DEV] Re: [PHP] PHP 5.3.0alpha2

2008-09-04 Thread Pierre Joye
On Thu, Sep 4, 2008 at 8:36 AM, steve <[EMAIL PROTECTED]> wrote:
>> Try with IIS7 + FCGI, it is _fast_ :)
>
> It's a "same-across-platforms" thing. Mostly to do with the fact we
> use mod-rewrite. :(

I did not try it yet but IIS has a rewrite module. There is also a
commercial product being 100% compatible with mod_rewrite
(http://www.micronovae.com/ModRewrite/ModRewrite.html).

-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org

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



[PHP] Re: [PHP-DEV] Re: [PHP] PHP 5.3.0alpha2

2008-09-03 Thread Pierre Joye
hi Steve,

On Thu, Sep 4, 2008 at 1:26 AM, steve <[EMAIL PROTECTED]> wrote:
>> None yet, I still have to create some. Apache may provide some when
>> they have began the move to VC9. VC9 Apache builds can be fetched from
>> http://apachelounge.com, they are known to work very well.
>
> Hmm.. that is a good link. I had forgotten about them. Ideally, I'd
> like to get a all 64bit setup with Apache <-> FastCGI <-> PHP (nts).

Try with IIS7 + FCGI, it is _fast_ :)

> PHP is so much slower on windows, though a lot of it has to do with
> file handling, a Windows specific slowdown I guess.

That's something I really to fix for 5.3.0 or later. That's part of my
fresh new job to optimize PHP on Windows. If you have cases where the
slowdown is identified (from a scripts point of view), please let me
know and I will spend some time to solve them :)


>>> and 2) Will there be PECL builds also?
>>
>> Yes, but directly in pecl.php.net package homepage.
>
> Does that mean there will be a package of them as before? But for all
> the build targets like your new site has?

Yes and per PHP branches (5.3 and 6.x).

> http://windows.php.net/downloads.php is a huge improvement. Thank you very 
> much!

You are welcome! Very nice to see that it is appreciated, the PHP
Windows team has worked hard to get here :-)


Cheers,
-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org

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



[PHP] Re: [PHP-DEV] Re: [PHP] PHP 5.3.0alpha2

2008-09-03 Thread Pierre Joye
hi!

On Thu, Sep 4, 2008 at 12:56 AM, steve <[EMAIL PROTECTED]> wrote:
> That's great! I like all the different builds. Two things that pop
> out: 1) What are some recommended non-official builds of Apache2 in
> x64?

None yet, I still have to create some. Apache may provide some when
they have began the move to VC9. VC9 Apache builds can be fetched from
http://apachelounge.com, they are known to work very well.

> and 2) Will there be PECL builds also?

Yes, but directly in pecl.php.net package homepage.

Cheers,
-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org

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



[PHP] Re: [PHP-DEV] PHP 5.3.0alpha1

2008-08-05 Thread Pierre Joye
On Tue, Aug 5, 2008 at 2:14 PM, Hannes Magnusson
<[EMAIL PROTECTED]> wrote:
> On Fri, Aug 1, 2008 at 09:31, Lukas Kahwe Smith <[EMAIL PROTECTED]> wrote:
>> Hello!
>>
>> Johannes has packed PHP 5.3.0alpha1 yesterday evening, which you can find
>> here:
>> http://downloads.php.net/johannes/
>
> So.. Apparently we will not get Windows builds of alpha1 as some of
> the new extensions didn't build on Windows.. Is someone working on
> fixing that problem for alpha2?

Indeed, as you can notice yourself snaps are working.

Cheer,
-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org

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



Re: [PHP] XAdES in PHP

2008-01-16 Thread Pierre Pintaric

Thanks for your responses

I think I will start a project for PHP with the implementation of a 
library for signatures

Of course, with XAdES, XMLDSig will be covered...

Now I have to learn XAdES specifications, a splendid activity ;-)

stay tuned... ;-)

--
Pierre PINTARIC
SICTIAM
Porte 15 Space Antipolis 3
2323, chemin Saint Bernard
06225 Vallauris
Tel : 04 92 96 80 83
Fax : 04 92 96 92 96
http://www.sictiam.fr/



Paul Scott a écrit :

On Mon, 2008-01-14 at 10:59 -0600, Richard Lynch wrote:
  

After a quick Google to find out what the Hades is XAdES, I'd suggest
you look for a C implementation and link it in as an extension.



There are a couple of implementations of XMLDSIG in PHP that I have
seen, although none really up to scratch IMO. You could try one of those
(I think there is a pretty decent Python implementation as a starting
point) and fix it up and extend that.

--Paul

  



All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm 

  


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



[PHP] XAdES in PHP

2008-01-14 Thread Pierre Pintaric

Hello there,

I am looking for an implementation for XAdES signature in PHP.
I found nothing on the net for PHP (perhaps I'm a bad researcher! :-) ), 
but lot of things for Java


Does somebody know a package for XAdES in PHP or it's a good idea to 
begin a new project?


Thanks for your response.

--
Pierre PINTARIC
SICTIAM
Porte 15 Space Antipolis 3
2323, chemin Saint Bernard
06225 Vallauris
Tel : 04 92 96 80 83
Fax : 04 92 96 92 96
http://www.sictiam.fr/

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



Re: [PHP] Parsing mail file [RESOLVED]

2007-01-31 Thread Pierre Pintaric

Finally, after a long course about the fishing philosophy :-)

A private discussion with Jon give me a very good way to find a solution.
I would to share it with guys who need it :
PECL mailparse package: http://pecl.php.net/package/mailparse

It parses mail files with attachments (rfc822 and rfc2045 compliant 
messages).


Good luck


Mauro Lorenzutti a écrit :

Hi Pierre,

I have the same problem: I'm searching a function to parse an email
file. I found this one:

http://pear.php.net/package/Net_IMAP/

I think that you can extract the code you need from the function
getParsedHeaders.

Regards,
 Mauro Lorenzutti


e-mail:  [EMAIL PROTECTED]

-
WEBFORMAT srl | Corte Europa, 12 | I-33097 SPILIMBERGO PN
 Tel +39-0427-926.389  --  Fax +39-0427-927.653
   [EMAIL PROTECTED]  --  www.webformat.com
-

  


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



Re: [PHP] Parsing mail file

2007-01-30 Thread Pierre Pintaric

Roman Neuhauser a écrit :

Because otherwise you cannot possibly understand how to use a ready-made
library correctly?
  
All of them (those who teach how to use Google) certainly knows all 
about GD (jpeg, gif, png, ...), zip, EXT3/FAT32/NTFS system, ...

I am certainly on the wrong place, sorry...

(Thanks Roman, it's friendly)

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



Re: [PHP] Parsing mail file

2007-01-30 Thread Pierre Pintaric

Jim Lucas a écrit :


But don't just ask us to hand you the answer.  We are all here to 
teach each other to become better programmers.  We should not be 
cut/paste junkies.



Thanks for your help...

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



Re: [PHP] Parsing mail file

2007-01-30 Thread Pierre Pintaric

Myron Turner a écrit :

Jim Lucas wrote:
he wants a cut/paste answer to his problem.  He doesn't want to build 
something and learn how it all works.  He just wants it to work out 
of the box.


Why would someone want to read an RFC if he didn't have to?  Maybe we 
should all start by writing our own GUI's.  Nothing like having to 
learn how to map video memory in C and assembler, as we had to do 
before Windows.
I am so sorry, I'm so inferior to you great developper. I only wanted to 
use libraries, but I can see that you never use them, you code your onw 
low levels functions. You propably have lot of time to spend to do this 
and your work is so perfect that you don't need help from anybody.
It's really good for you, but it's not my case. I think (and it's my own 
opinion) lot of people work better than me and if they spend time to 
make libraries and they share them, it's certainly to be used by others 
developpers.


Now, if you don't have any useful response - not sarcastic, not "see the 
documentation" (of course people read documentation before asking help) 
- to my question, please don't send unnecessary mails. Thanks


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



Re: [PHP] Parsing mail file

2007-01-30 Thread Pierre Pintaric

Roman Neuhauser a écrit :

That's probably because you don't know enough about the field to use the
right search terms, since PEAR *does* contain a package for parsing email
messages, and I have no problems arriving at it from the search box
on http://pear.php.net/ ...

ftp://ftp.rfc-editor.org/in-notes/rfc2045.txt
  

Great, if you found something, can you share the result with us...
On PEAR website, with the mail keyword, I only find this:

Results *1 - 8* of *8*:

  1. *File_IMC *: Create and
 parse Internet Mail Consortium-style files (like vCard and vCalendar)
  2. *Mail *: Class that provides
 multiple interfaces for sending emails
  3. *Mail_IMAP *: Provides a
 c-client backend for webmail.
  4. *Mail_IMAPv2 *: Provides
 a c-client backend for webmail.
  5. *Mail_Mbox *: Read and
 modify Unix MBOXes
  6. *Mail_Mime *: The Mail_Mime
 packages allows you to create MIME E-mail messages
  7. *Mail_mimeDecode *:
 Provides a class to decode mime messages.
  8. *Mail_Queue *: Class for
 put mails in queue and send them later in background.

File_IMC only proceed on vCard an it's no more maintained...


Another idea?

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



Re: [PHP] Parsing mail file

2007-01-30 Thread Pierre Pintaric

Jim Lucas a écrit :

Pierre Pintaric wrote:

Hello there,

I'm sure this question was ask 1,000 times, but I didn't find any 
archive about this, that's why I need help...


Here is my problem:
I receive mail file from my MTA (ie QMail), that works fine. Now, I 
would to find a class or a function that parse the mail and gives 
headers informations, body of the mail (even if it is a multi-part 
mail) and file attachments.

I found nothing in PEAR library, nothing on the web, ...

I don't what want to rebuild the wheel if somebody works on it and 
made a good job...
If somebody uses a great function and want to share, I will please 
him... :-)


Thanks for your help.

Pierre



google.com and ask for php web mail client

This will return you many different examples of php programs that have 
the function/class that you are looking for.




Of course, I looked for that, in PEAR, you can find Mail::IMAP and 
Mail::MBox...
All this exemples connect to an IMAP server or to a MBox file, I would 
only parse an email file...


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



[PHP] Parsing mail file

2007-01-30 Thread Pierre Pintaric

Hello there,

I'm sure this question was ask 1,000 times, but I didn't find any 
archive about this, that's why I need help...


Here is my problem:
I receive mail file from my MTA (ie QMail), that works fine. Now, I 
would to find a class or a function that parse the mail and gives 
headers informations, body of the mail (even if it is a multi-part mail) 
and file attachments.

I found nothing in PEAR library, nothing on the web, ...

I don't what want to rebuild the wheel if somebody works on it and made 
a good job...
If somebody uses a great function and want to share, I will please 
him... :-)


Thanks for your help.

Pierre

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



[PHP] Parsing mail file

2007-01-30 Thread Pierre Pintaric

Hello there,

I'm sure this question was ask 1,000 times, but I didn't find any 
archive about this, that's why I need help...


Here is my problem:
I receive mail file from my MTA (ie QMail), that works fine. Now, I 
would to find a class or a function that parse the mail and gives 
headers informations, body of the mail (even if it is a multi-part mail) 
and file attachments.

I found nothing in PEAR library, nothing on the web, ...

I don't what want to rebuild the wheel if somebody works on it and made 
a good job...
If somebody uses a great function and want to share, I will please 
him... :-)


Thanks for your help.

Pierre

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



Re: [PHP] two php.ini on the same server

2007-01-30 Thread Pierre Pintaric

Richard Lynch a écrit :

On Fri, January 26, 2007 6:36 am, phpdevster wrote:
  

Hi

i am trying to run two Apache server on the same machine and that is
work
fine

but the problem is how to create separate php.ini for each Apache
server .
is that possible ??



In Apache 2, there is a PHPIniDir directive, I do believe...

  


You have the directive to load your config file: suPHP_ConfigPath

good luck

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



[PHP] clamAV & PHP

2007-01-04 Thread Pierre Pintaric

Hello there,

I would scan files with PHP using clamAV.

I found discussions about 2 PEAR modules:
- php-clamav (It looks like abandonned)
- phplibclamav (I didn't succeed to install)

Does someone used clamAV to check files? And which plugin is installed?

Any help will be welcomed

Thanks

PPCM

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



[PHP] Re: [PHP-DEV] PHP 5.0.4RC1 and PHP 4.3.11RC1 rolled

2005-03-14 Thread Pierre-Alain Joye
On Mon, 14 Mar 2005 14:20:36 -0500
[EMAIL PROTECTED] (Greg Beaver) wrote:

> Edin Kadribasic wrote:
> > Windows binaries are now available at:
> > 
> > PHP 5.0.4RC1
> > http://downloads.php.net/edink/php-5.0.4RC1-Win32.zip
> > 
> > PHP 4.3.11RC1
> > http://downloads.php.net/edink/php-4.3.11RC1-Win32.zip
> > 
> > Additional downloads for PHP 5.0.4RC1:
> > http://downloads.php.net/edink/pecl-5.0.4RC1-Win32.zip
> > http://downloads.php.net/edink/php-debug-pack-5.0.4RC1-Win32.zip
> 
> The PEAR bundles are ridiculously out of date for both PHP 5.0.4
> and  4.3.11, where is the windows build pulling these versions
> from?

Feel like it was not updated on the building host. PEAR should be
1.3.5, I do not remember the other, but the script should be
updated.

Regards,

--Pierre

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



Re: [PHP] PHP_EOL on Darwin?

2004-11-01 Thread Pierre Ancelot

\n will set the appropriate.

On Monday 01 November 2004 04:53, Greg Beaver wrote:
> Hi all,
>
> What's the standard line ending for Darwin?  is it still the same as old
> Mac, which I think was just \r?  Or does it use \n like unix?
>
> Greg

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



Re: [PHP] PHP5 on IBM PowerPC; good combination?

2004-10-27 Thread Pierre Ancelot

Yes and welcome troubles with rpm when you use suse or redhat... that's why i 
preconise debian, not have troubles this wise, when you need a lib


On Wednesday 27 October 2004 15:15, Brent Clements wrote:
> Just so we are all clear. It doesn't matter which linux distribution you
> use as long as the distribution supports the ppc architecture which most
> do. As long as you have the gnu compiler suite and all associated tools and
> libraries, php will compile fine.
>
> It will also compile using the ibm compilers but it  takes a bit of
> wrangling to get it to compile.
>
> -Brent
> - Original Message -
> From: "Pierre Ancelot" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 27, 2004 8:09 AM
> Subject: Re: [PHP] PHP5 on IBM PowerPC; good combination?
>
> > yes, use debian: http://www.debian.org and study the apt system you'll
> > get
>
> no
>
> > problem. (php 5 is not in "sarge" which is what you should use but
>
> compiling
>
> > php5 on it gives no problem.) and debian supports very well ppc...
> >
> > On Wednesday 27 October 2004 15:25, Aaron Gould wrote:
> > > My company is considering the purchase of a fairly nice IBM PowerPC
> > > system, running SuSe Linux (presumably version 9.2 by the time we get
> > > it). This will be replacing our aging Compaq as our main server for our
> > > mission-critical apps.
> > >
> > > Does anyone here have experience compiling PHP 5.x on a Linux-based
> > > PowerPC architecture?  My primary concern is that it actually compiles
> > > without trouble; all we have here now are x86 systems, so we can't test
> > > this combination!
> > >
> > > --
> > > Aaron Gould
> > > Parts Canada - Web Developer
> >
> > --
> > 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] PHP5 on IBM PowerPC; good combination?

2004-10-27 Thread Pierre Ancelot

yes, use debian: http://www.debian.org and study the apt system you'll get no 
problem. (php 5 is not in "sarge" which is what you should use but compiling 
php5 on it gives no problem.) and debian supports very well ppc...



On Wednesday 27 October 2004 15:25, Aaron Gould wrote:
> My company is considering the purchase of a fairly nice IBM PowerPC
> system, running SuSe Linux (presumably version 9.2 by the time we get
> it). This will be replacing our aging Compaq as our main server for our
> mission-critical apps.
>
> Does anyone here have experience compiling PHP 5.x on a Linux-based
> PowerPC architecture?  My primary concern is that it actually compiles
> without trouble; all we have here now are x86 systems, so we can't test
> this combination!
>
> --
> Aaron Gould
> Parts Canada - Web Developer

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



Re: [PHP] not _that_ fixed....

2004-10-26 Thread Pierre Ancelot


in fact, i would code it in c++ but the used compiler is gcc... i tried to 
change the value CC in makefile but the lib obtained is invalid and is not 
working with php any idea on this ? 

Sorry to bother again :)

On Tuesday 26 October 2004 16:14, Curt Zirzow wrote:
> * Thus wrote Robert Cummings:
> > On Tue, 2004-10-26 at 00:37, Pierre Ancelot wrote:
> > > in fact i got it in the ./configure --help :
> > >
> > > [EMAIL PROTECTED]:~/phpsource/php-4.3.9$ ./configure --help | grep -i
> > > spider --enable-spider   Enable spider support
> >
> >...
> >
> > That said, if you still wish to compile a shared object module of your
> > extension then you can run this from the PHP source directory (with
> > suitable changes for your extension):
> >
> > cc -fpic -DCOMPILE_DL_INTERJINN=1 \
> > -Iext/interjinn/ -Iinclude -Imain -I. -IZend -ITSRM \
> > -c -o ext/interjinn/interjinn.o ext/interjinn/interjinn.c
> >
> > cc -shared -L/usr/local/lib -rdynamic -o \
> > ext/interjinn/interjinn.so \
> > ext/interjinn/interjinn.o
>
> Actually it gets easier..
>
> cd ext/custommodule/
> phpize
> ./configure --with-custommodule
> make
>
> Now you'll have a custommodule.so available.
>
>
>
> Curt
> --
> Quoth the Raven, "Nevermore."

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



Re: [PHP] not _that_ fixed....

2004-10-26 Thread Pierre Ancelot

very good question, why didn't it works the way it was described in the tut ?

On Tuesday 26 October 2004 17:07, Robert Cummings wrote:
> On Tue, 2004-10-26 at 10:14, Curt Zirzow wrote:
> > * Thus wrote Robert Cummings:
> > > On Tue, 2004-10-26 at 00:37, Pierre Ancelot wrote:
> > > > in fact i got it in the ./configure --help :
> > > >
> > > > [EMAIL PROTECTED]:~/phpsource/php-4.3.9$ ./configure --help | grep -i
> > > > spider --enable-spider   Enable spider support
> > >
> > >...
> > >
> > > That said, if you still wish to compile a shared object module of your
> > > extension then you can run this from the PHP source directory (with
> > > suitable changes for your extension):
> > >
> > > cc -fpic -DCOMPILE_DL_INTERJINN=1 \
> > > -Iext/interjinn/ -Iinclude -Imain -I. -IZend -ITSRM \
> > > -c -o ext/interjinn/interjinn.o ext/interjinn/interjinn.c
> > >
> > > cc -shared -L/usr/local/lib -rdynamic -o \
> > > ext/interjinn/interjinn.so \
> > > ext/interjinn/interjinn.o
> >
> > Actually it gets easier..
> >
> > cd ext/custommodule/
> > phpize
> > ./configure --with-custommodule
> > make
> >
> > Now you'll have a custommodule.so available.
>
> Aaah cool. When did that become available?
>
> Cheers,
> Rob.
> --
> ..
>
> | InterJinn Application Framework - http://www.interjinn.com |
> |
> ::
> :
> | An application and templating framework for PHP. Boasting  |
> | a powerful, scalable system for accessing system services  |
> | such as forms, properties, sessions, and caches. InterJinn |
> | also provides an extremely flexible architecture for   |
> | creating re-usable components quickly and easily.  |
>
> `'

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



Re: [PHP] not _that_ fixed....

2004-10-26 Thread Pierre Ancelot

It works !! thanks to you and robert, i use the phpize method, it's an 
excellent thing that generates all needed, no i use it in a specific folder, 
no need to haev the whole source around :)
THANKS !!



On Tuesday 26 October 2004 16:14, Curt Zirzow wrote:
> * Thus wrote Robert Cummings:
> > On Tue, 2004-10-26 at 00:37, Pierre Ancelot wrote:
> > > in fact i got it in the ./configure --help :
> > >
> > > [EMAIL PROTECTED]:~/phpsource/php-4.3.9$ ./configure --help | grep -i
> > > spider --enable-spider   Enable spider support
> >
> >...
> >
> > That said, if you still wish to compile a shared object module of your
> > extension then you can run this from the PHP source directory (with
> > suitable changes for your extension):
> >
> > cc -fpic -DCOMPILE_DL_INTERJINN=1 \
> > -Iext/interjinn/ -Iinclude -Imain -I. -IZend -ITSRM \
> > -c -o ext/interjinn/interjinn.o ext/interjinn/interjinn.c
> >
> > cc -shared -L/usr/local/lib -rdynamic -o \
> > ext/interjinn/interjinn.so \
> > ext/interjinn/interjinn.o
>
> Actually it gets easier..
>
> cd ext/custommodule/
> phpize
> ./configure --with-custommodule
> make
>
> Now you'll have a custommodule.so available.
>
>
>
> Curt
> --
> Quoth the Raven, "Nevermore."

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



Re: [PHP] not _that_ fixed....

2004-10-26 Thread Pierre Ancelot
no worries, i was in bed too :P
trying, thanks :)


On Tuesday 26 October 2004 14:01, Robert Cummings wrote:
> On Tue, 2004-10-26 at 00:58, Pierre Ancelot wrote:
> > humm, thank you, finaly someone that did something of that kind :)
> >
> > well, i want it as a dynamic extension that i could redistribute and
> > which wouldn't necessits recompilation, just adding it in php.in
> >
> > does what you told still would works in this case ?
>
> Yes. Sorry to respond so much later but I went to bed after my response
> last night :)
>
> Cheers,
> Rob.
> --
> ..
>
> | InterJinn Application Framework - http://www.interjinn.com |
> |
> ::
> :
> | An application and templating framework for PHP. Boasting  |
> | a powerful, scalable system for accessing system services  |
> | such as forms, properties, sessions, and caches. InterJinn |
> | also provides an extremely flexible architecture for   |
> | creating re-usable components quickly and easily.  |
>
> `'

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



Re: [PHP] Protecting Commercial PHP Scripts

2004-10-26 Thread Pierre Ancelot


i used turck mmcache you can googlize for it, it works very well, encrypts the 
code, store most used files in shared memory... in other words, it also 
opitimise... that's what i preconise 

On Tuesday 26 October 2004 13:44, Nick Wilson wrote:
> Hello all,
>
> I was wondering if anyone might have suggestions or useful links on
> protecting commercial php scripts.
>
> I am about to design a system that would be pretty valuable in a very
> niche market and would not wish the script to be passed on to others
> once downloaded.
>
> Suggestions, discussion and links would be much appreciated ;-)
>
> --
> Nick W
> http://www.threadwatch.org
> less noise, more signal

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



[PHP] not _that_ fixed....

2004-10-25 Thread Pierre Ancelot
 

in fact i got it in the ./configure --help :

[EMAIL PROTECTED]:~/phpsource/php-4.3.9$ ./configure --help | grep -i spider
  --enable-spider   Enable spider support
[EMAIL PROTECTED]:~/phpsource/php-4.3.9$

which is okay. but if i run make, i got a few lines about it like :

gcc  -Iext/spider/ -I/home/pierre/phpsource/php-4.3.9/ext/spider/ 
-DPHP_ATOM_INC -I/home/pierre/phpsource/php-4.3.9/include 
-I/home/pierre/phpsource/php-4.3.9/main -I/home/pierre/phpsource/php-4.3.9 
-I/home/pierre/phpsource/php-4.3.9/Zend 
-I/home/pierre/phpsource/php-4.3.9/ext/xml/expat  
-I/home/pierre/phpsource/php-4.3.9/TSRM  -g -O2  
-c /home/pierre/phpsource/php-4.3.9/ext/spider/spider.c -o 
ext/spider/spider.o  && echo > ext/spider/spider.lo

and it goes without any error about my module.
so, as the tutorial specifies it, i run the script created with my extension :

[EMAIL PROTECTED]:~/phpsource/php-4.3.9$ php -f ext/spider/spider.php

Warning: dl(): Unable to load dynamic library 
'/usr/lib/php4/20020429/spider.so' - /usr/lib/php4/20020429/spider.so: cannot 
open shared object file: No such file or directory 
in /home/pierre/phpsource/php-4.3.9/ext/spider/spider.php on line 3
Functions available in the test extension:

Warning: Invalid argument supplied for foreach() 
in /home/pierre/phpsource/php-4.3.9/ext/spider/spider.php on line 8

Module spider is not compiled into PHP
[EMAIL PROTECTED]:~/phpsource/php-4.3.9$

after checking, i see this: 

[EMAIL PROTECTED]:~/phpsource/php-4.3.9$ ls ext/spider/
CREDITS  EXPERIMENTAL  config.m4  php_spider.h  spider.c  spider.lo  spider.o  
spider.php  tests
[EMAIL PROTECTED]:~/phpsource/php-4.3.9$

The module is NOT created :'(
Did i forget something in config.m4 ??? 
something i didn't get in the tutorial ???
http://www.php.net/manual/fr/zend.build.php
no idea...

Anyone ? please, i'm kinda lost 

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



Re: [PHP] not _that_ fixed....

2004-10-25 Thread Pierre Ancelot


humm, thank you, finaly someone that did something of that kind :) 

well, i want it as a dynamic extension that i could redistribute and which 
wouldn't necessits recompilation, just adding it in php.in 

does what you told still would works in this case ?


On Tuesday 26 October 2004 06:47, Robert Cummings wrote:
> On Tue, 2004-10-26 at 00:37, Pierre Ancelot wrote:
> > in fact i got it in the ./configure --help :
> >
> > [EMAIL PROTECTED]:~/phpsource/php-4.3.9$ ./configure --help | grep -i spider
> >   --enable-spider   Enable spider support
> > [EMAIL PROTECTED]:~/phpsource/php-4.3.9$
> >
> > which is okay. but if i run make, i got a few lines about it like :
> >
> > gcc  -Iext/spider/ -I/home/pierre/phpsource/php-4.3.9/ext/spider/
> > -DPHP_ATOM_INC -I/home/pierre/phpsource/php-4.3.9/include
> > -I/home/pierre/phpsource/php-4.3.9/main
> > -I/home/pierre/phpsource/php-4.3.9
> > -I/home/pierre/phpsource/php-4.3.9/Zend
> > -I/home/pierre/phpsource/php-4.3.9/ext/xml/expat
> > -I/home/pierre/phpsource/php-4.3.9/TSRM  -g -O2
> > -c /home/pierre/phpsource/php-4.3.9/ext/spider/spider.c -o
> > ext/spider/spider.o  && echo > ext/spider/spider.lo
> >
> > and it goes without any error about my module.
> > so, as the tutorial specifies it, i run the script created with my
> > extension :
> >
> > [EMAIL PROTECTED]:~/phpsource/php-4.3.9$ php -f ext/spider/spider.php
> >
> > Warning: dl(): Unable to load dynamic library
> > '/usr/lib/php4/20020429/spider.so' - /usr/lib/php4/20020429/spider.so:
> > cannot open shared object file: No such file or directory
> > in /home/pierre/phpsource/php-4.3.9/ext/spider/spider.php on line 3
> > Functions available in the test extension:
> >
> > Warning: Invalid argument supplied for foreach()
> > in /home/pierre/phpsource/php-4.3.9/ext/spider/spider.php on line 8
> > 
> > Module spider is not compiled into PHP
> > [EMAIL PROTECTED]:~/phpsource/php-4.3.9$
> >
> > after checking, i see this:
> >
> > [EMAIL PROTECTED]:~/phpsource/php-4.3.9$ ls ext/spider/
> > CREDITS  EXPERIMENTAL  config.m4  php_spider.h  spider.c  spider.lo 
> > spider.o spider.php  tests
> > [EMAIL PROTECTED]:~/phpsource/php-4.3.9$
> >
> > The module is NOT created :'(
> > Did i forget something in config.m4 ???
> > something i didn't get in the tutorial ???
> > http://www.php.net/manual/fr/zend.build.php
> > no idea...
>
> The 'make' command does not compile shared object extensions. You need
> to do something different for that. However if PHP compiled properly
> with the extension enabled then you shouldn't need to load your
> extension via dl() since it should already be a part of the PHP binary.
>
> That said, if you still wish to compile a shared object module of your
> extension then you can run this from the PHP source directory (with
> suitable changes for your extension):
>
> cc -fpic -DCOMPILE_DL_INTERJINN=1 \
> -Iext/interjinn/ -Iinclude -Imain -I. -IZend -ITSRM \
> -c -o ext/interjinn/interjinn.o ext/interjinn/interjinn.c
>
> cc -shared -L/usr/local/lib -rdynamic -o \
> ext/interjinn/interjinn.so \
> ext/interjinn/interjinn.o
>
> I don't recall if it's necessary, but I compile PHP as a CGI binary
> first and then run the above commands. If you want to allow support for
> your extension as both a dl()'d module or as a built-in extension, then
> you can check for the existence of one of your modules functions with
> function_exists() and if it doesn't exist then use dl() to try and load
> the shared module.
>
> HTH,
> Rob.
> --
> ..
>
> | InterJinn Application Framework - http://www.interjinn.com |
> |
> ::
> :
> | An application and templating framework for PHP. Boasting  |
> | a powerful, scalable system for accessing system services  |
> | such as forms, properties, sessions, and caches. InterJinn |
> | also provides an extremely flexible architecture for   |
> | creating re-usable components quickly and easily.  |
>
> `'

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



Re: [PHP] php extension problem

2004-10-25 Thread Pierre Ancelot

fixed. i downloaded the source from php.net and it works now... the previous 
source i had came from apt system. maybe the source is patched ? if i'm not 
the only one to have had this problem, let me know, i'll mail the debian 
maintener
thanks,


On Monday 25 October 2004 19:19, Pierre Ancelot wrote:
> Hi !
>
> I am having some trouble creating a php extension.
> as show in the documentation i did a ./ext_skel --extname=mymodule
> which created the directory mymodule
> i edited the config.m4 file to tune it to something very basic :
>
> PHP_ARG_WITH(mymodule, for mymodule support,
> [  --with-mymodule Include mymodule support])
> if test "$PHP_MYMODULE" != "no"; then
>   PHP_NEW_EXTENSION(mymodule, mymodule.c, $ext_shared)
> fi
>
>
> saved and went to the base of the source tree...
>
>
> [EMAIL PROTECTED]:/usr/src/php4-4.3.9$ ./buildconf
> You should not run buildconf in a release package.
> use buildconf --force to override this check.
> [EMAIL PROTECTED]:/usr/src/php4-4.3.9$ ./buildconf --force
> Forcing buildconf
> using default Zend directory
> buildconf: checking installation...
> buildconf: autoconf version 2.59 (ok)
> buildconf: Your version of autoconf likely contains buggy cache code.
>Running cvsclean for you.
>To avoid this, install autoconf-2.13 and automake-1.5.
> buildconf: libtool version 1.5.6 (ok)
> rebuilding configure
> autoconf/programs.m4:438: AC_DECL_YYTEXT is expanded from...
> configure.in:147: the top level
> [EMAIL PROTECTED]:/usr/src/php4-4.3.9$
>
>
> then, i been looking up if the module was taken
>
> [EMAIL PROTECTED]:/usr/src/php4-4.3.9$ ./configure --help | grep -i mymodule
> [EMAIL PROTECTED]:/usr/src/php4-4.3.9$
>
>
> and no, it's not any idea ? something i did wrong ?
>
>
> thank you :)

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



[PHP] php extension problem

2004-10-25 Thread Pierre Ancelot
Hi !

I am having some trouble creating a php extension.
as show in the documentation i did a ./ext_skel --extname=mymodule
which created the directory mymodule
i edited the config.m4 file to tune it to something very basic :

PHP_ARG_WITH(mymodule, for mymodule support,
[  --with-mymodule Include mymodule support])
if test "$PHP_MYMODULE" != "no"; then
  PHP_NEW_EXTENSION(mymodule, mymodule.c, $ext_shared)
fi


saved and went to the base of the source tree...


[EMAIL PROTECTED]:/usr/src/php4-4.3.9$ ./buildconf
You should not run buildconf in a release package.
use buildconf --force to override this check.
[EMAIL PROTECTED]:/usr/src/php4-4.3.9$ ./buildconf --force
Forcing buildconf
using default Zend directory
buildconf: checking installation...
buildconf: autoconf version 2.59 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
   Running cvsclean for you.
   To avoid this, install autoconf-2.13 and automake-1.5.
buildconf: libtool version 1.5.6 (ok)
rebuilding configure
autoconf/programs.m4:438: AC_DECL_YYTEXT is expanded from...
configure.in:147: the top level
[EMAIL PROTECTED]:/usr/src/php4-4.3.9$


then, i been looking up if the module was taken 

[EMAIL PROTECTED]:/usr/src/php4-4.3.9$ ./configure --help | grep -i mymodule
[EMAIL PROTECTED]:/usr/src/php4-4.3.9$


and no, it's not any idea ? something i did wrong ?


thank you :)

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



[PHP] Dynamic var

2004-07-06 Thread Pierre
Hi all
I've a little problem with creating a dynamic var.
This is my line code :
$erreur .='Le champs '.${'corresp_chps[\''.$champs.'\']'}.'';
Yes i need the quote, cause it's not my var but a webservice one and the
name var is 001 so i've indexed my array with '001' etc..;
Thx a lot 

And this is the array depending of
$corresp_chps=array (
'001' => 'Société',
'002' => 'Adresse',
'003' => 'Complément',
'004' => 'Code postal',
'005' => 'Ville',
'006' => 'Comté/Cedex',
'007' => 'Pays',
'008' => 'Téléphone',
'025' => 'Gsm',
'009' => 'Fax',
'012' => 'Civilité',
'013' => 'Nom',
'014' => 'Prénom',
'015' => 'Email',
'026' => 'Web',
'036' => 'Fonction',
'010' => 'Question A',
'011' => 'Question A autre',
'016' => 'Question B',
'017' => 'Question B autre',
'035' => 'Question C',
'042' => 'Question C autre',
'033' => 'Coupon SNCF');

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



RE: [PHP] Re: make an image disappear when page loads

2004-07-05 Thread Pierre

Why not use buffering ?
-Message d'origine-
De : Egil Berntsen [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 5 juillet 2004 18:01
À : [EMAIL PROTECTED]
Objet : [PHP] Re: make an image disappear when page loads

OK, so I guess you want to use plain php with submitting.
Use if-statement to check the wanted data. If so, don't echo the html-text.

/egil

"Diana Castillo" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> what do you mean by fx Javascript ?
> what I want really is something like what happens on this page when you
> search for a flight,
> http://www.expedia.net/daily/home/default.asp
> an in between page comes on until the information about flights is loaded.
> how can I do that with php?
> "Egil Berntsen" <[EMAIL PROTECTED]> wrote in message
> news:20040705161311.8570.qmail@
> pb1.pair.com...
> > You say "has loaded", do you mean dynamic without submitting?
> > If so, the answer is dhtml, fx JavaScript.
> >
> > /egil
> >
> > "Diana Castillo" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > > does anyone know how I can put an image on a page that disappears when
> the
> > > data that I wanted to get has loaded?
> > >
> > >
> > > --
> > > Diana Castillo
> > > Global Reservas, S.L.
> > > C/Granvia 22 dcdo 4-dcha
> > > 28013 Madrid-Spain
> > > Tel : 00-34-913604039 Ext 216
> > > Fax : 00-34-915228673
> > > email: [EMAIL PROTECTED]
> > > Web : http://www.hotelkey.com
> > >   http://www.destinia.com

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

2004-07-02 Thread Pierre
Just try this : $temp = $country_list[$country_symbol]['AU'] ;
Seems better :)


Pierre 
-Message d'origine-
De : adwinwijaya [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 2 juillet 2004 05:01
À : [EMAIL PROTECTED]
Objet : [PHP] PHP Bug ?

Hi...

I found a bug (may be)
I tried to do like this:

$temp = $country_list[$country_symbol['AU']] ;
this didnt work, so I have to change to :

$symbol = $country_symbol['AU'];
$temp = $country_list[$symbol] ;

is this PHP bug ?

-- 
Best regards,
 adwinwijaya  mailto:[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] xslt_create

2004-06-30 Thread Pierre
It's the same , too bad thanks anyway 

Pierre 

-Message d'origine-
De : eoghan [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 30 juin 2004 22:17
À : Pierre
Objet : Re: [PHP] xslt_create

take this line out of your xml and see what happens




Pierre wrote:

> Thanks for the link :)
> In case of this is my .xml
> 
>  
> 
>   
>   John
> Smith 
>   25 
>size="32">Internet 
>size="15">English 
>   Visual
> Basic
>
>   
> 
> 
> And my .xsl
> 
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> 
> 
> 
>  
> 
> 
>  
> 
> 
> 
> 
> 
>  
> 
> 
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
> Pierre
> 
> -Message d'origine-
> De : eoghan [mailto:[EMAIL PROTECTED] 
> Envoyé : mercredi 30 juin 2004 21:52
> À : Pierre
> Cc : php-general
> Objet : Re: [PHP] xslt_create
> 
> thats really difficult to say without seeing the xsl and xml. theres a 
> very good xsl list over at mulberrytech.com too if you need specific xsl 
> help
> http://www.mulberrytech.com/xsl/xsl-list/index.html
> 
> 
> Pierre wrote:
> 
> 
>>Yes it's ok thanks to all :)
>>But now I have a little problem : my page is all white 
>>This is my code : 
>>$xml='frm2004.xml';
>>$xsl='style1.xsl';
>>$xslt=xslt_create();
>>$resultat=xslt_process($xslt,$xml,$xsl);
>>xslt_free($xslt);
>>echo $resultat;
>>
>>what's wrong ? please 
>>
>>Pierre 
>>
>>-Message d'origine-
>>De : Ray Hunter [mailto:[EMAIL PROTECTED] 
>>Envoyé : mercredi 30 juin 2004 21:45
>>À : Pierre
>>Cc : php-general
>>Objet : RE: [PHP] xslt_create
>>
>>On Wed, 2004-06-30 at 14:36, Pierre wrote:
>>
>>
>>>Ok so I must recompile php with this option but I can't is there any php
>>>class easy to use that can do this ?
>>
>>
>>If you are on a linux box and have php installed via rpm you might be
>>able to get a php-xslt rpm that you can use. If on windows you can
>>download the zip file from php.net that contains all the dlls and in
>>there you will find the php xslt (sablotron) dll and you will have to
>>uncomment that dll in your php.ini file.
>>
>>--
>>BigDog
>>
> 
> 

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



RE: [PHP] xslt_create

2004-06-30 Thread Pierre
Thanks for the link :)
In case of this is my .xml

 


John
Smith 
25 
Internet 
English 
Visual
Basic
 



And my .xsl

http://www.w3.org/1999/XSL/Transform";>



 


 





 



 








 

Pierre

-Message d'origine-
De : eoghan [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 30 juin 2004 21:52
À : Pierre
Cc : php-general
Objet : Re: [PHP] xslt_create

thats really difficult to say without seeing the xsl and xml. theres a 
very good xsl list over at mulberrytech.com too if you need specific xsl 
help
http://www.mulberrytech.com/xsl/xsl-list/index.html


Pierre wrote:

> Yes it's ok thanks to all :)
> But now I have a little problem : my page is all white 
> This is my code : 
> $xml='frm2004.xml';
> $xsl='style1.xsl';
> $xslt=xslt_create();
> $resultat=xslt_process($xslt,$xml,$xsl);
> xslt_free($xslt);
> echo $resultat;
> 
> what's wrong ? please 
> 
> Pierre 
> 
> -Message d'origine-----
> De : Ray Hunter [mailto:[EMAIL PROTECTED] 
> Envoyé : mercredi 30 juin 2004 21:45
> À : Pierre
> Cc : php-general
> Objet : RE: [PHP] xslt_create
> 
> On Wed, 2004-06-30 at 14:36, Pierre wrote:
> 
>>Ok so I must recompile php with this option but I can't is there any php
>>class easy to use that can do this ?
> 
> 
> If you are on a linux box and have php installed via rpm you might be
> able to get a php-xslt rpm that you can use. If on windows you can
> download the zip file from php.net that contains all the dlls and in
> there you will find the php xslt (sablotron) dll and you will have to
> uncomment that dll in your php.ini file.
> 
> --
> BigDog
> 

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

2004-06-30 Thread Pierre
Yes it's ok thanks to all :)
But now I have a little problem : my page is all white 
This is my code : 
$xml='frm2004.xml';
$xsl='style1.xsl';
$xslt=xslt_create();
$resultat=xslt_process($xslt,$xml,$xsl);
xslt_free($xslt);
echo $resultat;

what's wrong ? please 

Pierre 

-Message d'origine-
De : Ray Hunter [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 30 juin 2004 21:45
À : Pierre
Cc : php-general
Objet : RE: [PHP] xslt_create

On Wed, 2004-06-30 at 14:36, Pierre wrote:
> Ok so I must recompile php with this option but I can't is there any php
> class easy to use that can do this ?

If you are on a linux box and have php installed via rpm you might be
able to get a php-xslt rpm that you can use. If on windows you can
download the zip file from php.net that contains all the dlls and in
there you will find the php xslt (sablotron) dll and you will have to
uncomment that dll in your php.ini file.

--
BigDog

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

2004-06-30 Thread Pierre
Ok so I must recompile php with this option but I can't is there any php
class easy to use that can do this ?

Pierre 

-Message d'origine-
De : Ray Hunter [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 30 juin 2004 21:34
À : php-general
Objet : Re: [PHP] xslt_create

On Wed, 2004-06-30 at 14:30, Pierre wrote:
> Hi all
> Please when i'm trying to use the xslt_create() function php says
indefined
> function but this is in my phpinfo()
> XML Support  active  
> XML Namespace Support  active  
> EXPAT Version  1.95.6  
> Any idea please ? 

You need xslt support enabled and built into php.

--
BigDog

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

2004-06-30 Thread Pierre
Hi all
Please when i'm trying to use the xslt_create() function php says indefined
function but this is in my phpinfo()
XML Support  active  
XML Namespace Support  active  
EXPAT Version  1.95.6  
Any idea please ? 

Pierre 

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



RE: [PHP] XML describing a

2004-06-30 Thread Pierre
Yes I think so.thanks a lot 
And Please all,can you say here the most appreciated and usefull links of
php you have, cause I'm French and don't know English website about php I've
found some with google but there's more I guess so about php xml and mysql
thanks a lot.

Pierre 

-Message d'origine-
De : eoghan [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 30 juin 2004 19:22
À : Pierre
Cc : php-general
Objet : Re: [PHP] XML describing a 

 > My harder part is how handle a combo box ?(xml part and php parsing part)
 > Thanks for all
 > Pierre

this may be of help to you
http://www.topxml.com/xsltStylesheets/xslt_html.asp

-- 
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] XML describing a

2004-06-30 Thread Pierre
Hi all,
I have to create a form from a xml containing data about the form, but I
really don't know how to process?
I can ask the xml structure I want but I don't know what is better 
Please if you have any information about this?
My harder part is how handle a combo box ?(xml part and php parsing part)
Thanks for all
Pierre 

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



RE: [PHP] test if $int is integer

2004-06-29 Thread Pierre
Please just read the manual 
Function is_integer ... it seems ok ? 

cdt

Pierre 

-Message d'origine-
De : vlad georgescu [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 29 juin 2004 22:13
À : php-general
Objet : [PHP] test if $int is integer

how can test if var $int is integer ?

-- 
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] About the post Streaming

2004-06-24 Thread Pierre
Thanks to all for the explanation, but in fact in what kind of script can it
be useful? For a progress download bar? I think so but I don't see how I can
do this ... Can you please explain quickly in which case it can be useful ?
Thx a lot 

Pierre 

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



RE: [PHP] a 4 days diary

2004-06-24 Thread Pierre
OK thx for all
But in fact I'm not really a beginner in php but this is the first time i
have to code this sort of thing so i search the best way to code it.
Mysql tables are ready so this is only how I can handle all by the simplest
way that's all

thx

Pierre

-Message d'origine-
De : Chris W. Parker [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 24 juin 2004 19:33
À : Pierre; php-general
Objet : RE: [PHP] a 4 days diary

Pierre <mailto:[EMAIL PROTECTED]>
on Thursday, June 24, 2004 11:24 AM said:

> So... all datas will be in a mysql base. Many users are gonna use this
> system (check the list of exhibitors, ask appointment by mail) and if
> the exhibitor accept the appointment I have to insert it my table.
> My problem is I don't know how to proceed to have a good code for this
> 'cause I have to post on the web site the 4 days calendar to the
> visitor after he has logged in. So I think I have to use OOP but to
> draw the calendar (is with a table a good idea).
> Sorry I have trouble to explain it in english
> If you have to handle this how do you start your code
> Is there any trap I have to escape etc...

well there's a lot of things you're going to need to do, and whether or
not you use OOP is up to you.

for your database you'll need the following:

1. a table for the events
2. a table for the participants
3. a table for the appointments. this table will link the participants
to the events.

for your code you'll need to make sure you have some sort of login
system and a way to make appointments by email. the appointment requests
can be a simple form that is sent via the mail() function
(http://php.net/mail).

i can't write your application for your so i hope this helps give you a
starting point.


chris.

p.s. when replying to list mails press the Reply To All button and not
Reply. this will ensure that your mails get sent to the list.

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



TR: [PHP] a 4 days diary

2004-06-24 Thread Pierre


Pierre ROUWENS
[EMAIL PROTECTED]
www.web-lance.com
 
WEB-LANCE
Création intra-internet, CD-ROM etc…
Hébergement WEB et DATA
Solution anti-SPAM et anti-VIRUS pour mails

-Message d'origine-
De : Pierre [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 24 juin 2004 19:15
À : 'Chris W. Parker'
Objet : RE: [PHP] a 4 days diary

So... all datas will be in a mysql base. Many users are gonna use this
system (check the list of exhibitors, ask appointment by mail) and if the
exhibitor accept the appointment I have to insert it my table.
My problem is I don't know how to proceed to have a good code for this
'cause I have to post on the web site the 4 days calendar to the visitor
after he has logged in. So I think I have to use OOP but to draw the
calendar (is with a table a good idea).
Sorry I have trouble to explain it in english
If you have to handle this how do you start your code
Is there any trap I have to escape etc... 

Pierre 

-Message d'origine-
De : Chris W. Parker [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 24 juin 2004 19:07
À : [EMAIL PROTECTED]
Objet : FW: [PHP] a 4 days diary

Pierre <mailto:[EMAIL PROTECTED]>
on Thursday, June 24, 2004 10:54 AM said:

> Right it's OOP sorry for the mistake,
> I have to do a diary for only 4 days (the web site is for an
> exhibition, that's why) by rdv I mean a "rendez-vous" an appointment
> if you prefer. So if I resume I need to make a calendar with only for
> days to show the visitor which appointment he has during this four
> days. He can ask an appointment to a present company by mail which
> could answer 'yes' or 'no' by mail
> I hope I was more précised

although i still don't totally understand what you need, i would say it
doesn't sound like you need to deal with a database at all. can you not
handle all this by hand? will there be a lot of appointments during these
four days?

> Sorry for the mistake I'm not English native.

i figured as much. :)



chris.

p.s. i forwarded this to the list so that the rest of the list members can
participate and share their ideas.

-- 
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] a 4 days diary

2004-06-24 Thread Pierre
Hi all,
I have to code a 4 days diary for a client, schedule every 30 mn and with a
system of rdv accepted by mail. I really don't know how to start to draw a
cool diary and to code it correctly to be the most reusable as possible. POO
or not? If you have there any examples of this style of coding this is could
great or just maybe an idea of how I can start my code to have a good one?
Just a good direction and way of coding to not have many surprises...
I hope I was clear 

Thx all 

Pierre 

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



[PHP] hi all can you read me ?

2004-06-20 Thread Pierre
Hi all just wanna check if you can read me

Thx

 

 

 



[PHP] Re: [PEAR] Re: Cacheing data form PHP script

2004-01-28 Thread Pierre-Alain Joye
On Wed, 28 Jan 2004 10:26:09 +0100
"rush" <[EMAIL PROTECTED]> wrote:

> Do you see any other way to 'cache' some content?

Take a look at pear::cache or pear::cache_lite and pearweb. pearweb use
cache_lite to cache whole pages (when possible). To cache part of a page
(or whatever). pear::cache is maybe easier to cache function calls (ie
the function that generates the menu). But cache_mite is damn fast and
can work with function calls too. See the support page on pearweb, there
is links to tutorials.

> It depends if your menu is unique per user, or it is the same for all
> users. If it is unique for each user, than storing it i session makes
> sense. If not than you can store it in some file or table in the db.

Cache in db? sounds not that good :)

> Beeing in one place would make it easier to invalidate the cache since
> you would not need to poke around all sessions.

That is how cache* work.

pierre

ps: Rush can you use quotes in reply?

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



[PHP] Re: Help understanding code...

2003-09-26 Thread Baroiller Pierre-Emmanuel
Hi,
It's a "C Like Syntax"

(condition)?true:false;

is like :

if (condition)  true
else false

regards.
P.E. Baroiller

"Jeff McKeon" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
I've just picked up a more advanced book on PHP and it has a lot of
example code in it. I understand most of it but some things I'm seeing I
don't understand. Like the following...

code:



$couponcode = (! empty($_REQUEST['couponcode'])) ?
$_REQUEST['couponcode'] : NULL;



I think this is saying:

If the global variable couponcode is not empty, then the variable
'$couponcode' is equal to "$_REQUEST['couponcode']" otherwise it gets a
"NULL" value.

What's throwing me is the use of the "!" and "?" and ":"

If What I suspect is correct, I've never seen an if-then statement like
this. If it is a replacement for an IF-Then statement then it's much
cleaner and I'd like to use it.

another one is:


code:


IF (!strcmp($operator, '+')) {
$result = $num1 + $num2
}



I've looked up strcmp() and know it's used to compair two strings. The
$operator variable in the script that this was taken from is set to
either "-", "+", "*" or "/". What I don't understand here is what the
"!" in front of strcmp() means.

Can anyone break down the code for me and explain the parts?

thanks,

Jeff

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



[PHP] Re: Multiple image buttons

2003-09-10 Thread Baroiller Pierre-Emmanuel
Hi,

I don't understand what you really want to do...
what do you mean by "image button" ?
an  or  ??
On my opinion, you don't need php to check what button is pressed... All
this can be done with
a simple javascript function ... or with  tag.
After this, send a value to your phpscript like "pressed=xx" where xx is the
named button pressed.

Regards,
P.E. Baroiller

"Hardik Doshi" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> Hi Group,
>
> I have a page on which there are multiple image
> buttons. Is there any way to determine which button is
> pressed by the user?
>
> For example, there is a page on which i display all
> the users of the system with the edit and delete
> button beside each user entry. Now if admin wants to
> delete one of the users then how can i know admin
> pressed which button? It is possible with non-image
> button but image button always give me x and y
> co-ordinates.
>
> Please let me know if you have any clue.
>
> Thanks
>
>
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com

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



[PHP] Re: Sotre image created by GD in db

2003-08-30 Thread Baroiller Pierre-Emmanuel
Hi,

you can do something like this :


$imgdata = addslashes(imagejpeg($imnew));   // For JPG file.
$query="INSERT INTO your_table (data) value ('$imgdata')";
$result = @mysql_query($query);


I haven't try but it may work...
Regards.
P.E. Baroiller


"Mohammadreza Hassanrezaeian" <[EMAIL PROTECTED]> a écrit dans le message
de news:[EMAIL PROTECTED]
> Dear Guys,
> I want to store an image created by GD functions to a field of my DB. I
can
> not save it to a string to save it to blob field. Can any one help me with
a
> simple sample code?
> Regards,
> Mohammad

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



[PHP] Re: Help with parse error

2003-08-20 Thread Baroiller Pierre-Emmanuel
Hi,

it's a common error...
I think you have an unclosed string before in your script...

example :

$data='the data;

$sDate = date('Y-m-d',time());

this code will produce an error on ligne with $sDate only becose the line
with $data is unclosed ( missing the last ' )..

Take a look at your entire script... I'm sure it's this ;)

Regards,
P.E. Baroiller


"James Johnson" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> Hi,
>
> I'm trying to figure out this error I'm getting in my code:
>
> Parse error: parse error in /home/.paco/campuscb/AdPayment.php on line 9
>
> This is the code on line 9:
>
> $sDate = date('Y-m-d',time());
>
> Does this look valid?
> Thanks,
> James
>



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



Re: [PHP] Trouble getting $HTTP_RAW_POST_DATA

2003-08-01 Thread Baroiller Pierre-Emmanuel
Hi,
$HTTP_RAW_POST_DATA is an array...
with echo you'll only get "array"..

To get something into $HTTP_RAW_POST_DATA, you need to "submit" your form
before...

Your script will only display something if you post the form before.

Regards,
P.E. Baroiller


"John W. Holmes" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> Balazs Halasy wrote:
> > I need to have the contents of $HTTP_RAW_POST_DATA because of
> > non-regular uploads (from browser to my home-made WevDAV server
implementation
> > (done in PHP)). However, no matter what I
> > do, it is always NULL. I guess the following script should return
> > SOMETHING in $HTTP_RAW_POST DATA if "always_populate_raw_post_data = On"
is
> > added to the php.ini file (and yes, I've restarted apache :-)... so, why
> > is it empty and how can I get the RAW post data? My PHP version is
4.3.2.
>
> Is register globals ON or OFF? Either way, maybe try
> $_SERVER['HTTP_RAW_POST_DATA']...
>
> -- 
> ---John Holmes...
>
> Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
>
> PHP|Architect: A magazine for PHP Professionals - www.phparch.com
>
>
>
>



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



[PHP] Re: Permission Denied (in FTP)

2003-07-25 Thread Baroiller Pierre-Emmanuel
Hi,

Doest your ftp account have sufficient access rights for deleting theses
files ?
Is your apache user is "nobody" , the chmod will not work ( take a look at
your error log file), so,
only nobody or root will able to remove these entries..

Regards,
P.E. Baroiller

"Stephen" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
Hello,

I'm having some slight issues. I have a script which creates a directory and
then copies a blank file into it 4 times each with different names. Here's
the code which does it:

  

After all that is done, it's fine. The problem I'm having is deleting the
folder in an FTP client. Whenever I go to delete it, it says it cannot
delete desc.txt because permission is denied. Is there any way to make it so
it can be deleted? Please help and reply soon. Thanks!

Thank you,
Stephen Craton
Senior Executive Web Developer
Mophus.com, Inc.
Lead Programmer/Webmaster
WiredPHP (http://php.melchior.us)




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



[PHP] Re: cookies in asp

2003-07-24 Thread Baroiller Pierre-Emmanuel
If it's a real cookie, you can get it with php into the cookie vars..
If it's an asp session, forget it... 
  "Carlos Castillo" <[EMAIL PROTECTED]> a écrit dans le message de news:[EMAIL 
PROTECTED]
  HI,

   

  I have the following problem, i have a website with php and asp files, in one asp 
file i create some cookie that i need to access on another php file.do you have 
any idea.???

   

  Thanks,

   

  Carlos A. Castillo.
  Ingeniero de desarrollo
  [EMAIL PROTECTED]
  


  Su Aliado Efectivo en Internet
  www.imagine.com.co
  (57 1)2182064 - (57 1)6163218
  Bogotá - Colombia 
  
  - Soluciones web para Internet e Intranet

  - Soluciones para redes
  - Licenciamiento de Software
  - Asesoría y Soporte Técnico
  

   


[PHP] Re: Access Text Field Max Size

2003-07-17 Thread Baroiller Pierre-Emmanuel
Hi,

PHP has nothing to do with this , use javascript to limit user entry into
your textarea field..
I'll find many sample over the net.

Regards,
P.E. Baroiller
"Johnny Martinez" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> Hi all,
> I'm using an Access db as the backend for a little app (I know, I know.) I
> just ran into a problem where the user needs to submit a string that is
> larger than the max size for text type, 255.
>
> Does anyone know how to go beyond this limit and stay on the Access db?
> Thanks in advance.
>
> Johnny



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



[PHP] Re: fwrite not working in php3

2003-07-17 Thread Baroiller Pierre-Emmanuel
does your file test.inc exists, and... have you perms to write in this
directory ?

<[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> hi there i have a little problem writing files on a php3 server this code
> worked yesterday but isnt
>
> $handle =
fopen("/www_tools/apache/htdocs/phptest/temp_real/test.inc",'a');
> $buffer = "test";
> echo fwrite($handle,$buffer,4000);
> fclose($handle);
>
> i get a filesize of 0 and nothing writes to it what could it be ?
>
>



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



[PHP] Re: outputting a carriage return

2003-07-17 Thread Baroiller Pierre-Emmanuel
Hi,

take a look at thedoc... there is a function called nl2br()  to convert \n
to  for html display.

regards,
P.E. Baroiller

"Bob pilly" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> Hi all
> Can someone tell me why if i echo a line like this:
>
>
> echo "this is a \n newline";
> the output is:
> this is a
>  newline.
>
> But if i do this: $text="this is a \n newline";
> echo $text;
> the output is:
> this is a newline?
>
> Is there something i have to do to a variable in order for echo or print
to treat special chars like '\n' correctly?
>
> Thanks for any answers in advance!
>
>
> -
> Want to chat instantly with your online friends? Get the FREE
Yahoo!Messenger



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



[PHP] Re: really no way to get byte size of variable?

2003-07-16 Thread Baroiller Pierre-Emmanuel
Hi,

did you try count($value) and strlen($value) ?
count($value) will give size of an array, and strlen($value) size of a
string ...

Regards,
P.E. Baroiller

"Petre Agenbag" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> Hi List
> Just want to make sure:
>
> Is there no way for me to easily determine the byte size occupied by a
> variable (regardless of type)?
>
> It might be trivial, or I'm missing the point (as per usual)...
>
> I would like to find the actual byte size that is transmitted when say a
> $_POST variable is sent, or how much memory a particular variable is
taking
> up.
>
> Just want to make sure. Some of the post received so far suggest that "one
> character = one byte" etc, but I would love to work with something more
> precise if possible, also, is a variable contains a multi-dimensional
array,
> would that "one character = one byte" formula still return a fair
> representation?
>
> Thanks.
>
>



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



[PHP] Re: include statement giving me hives! - help

2003-07-16 Thread Baroiller Pierre-Emmanuel
Hi,

when you call your script, is $point defined somewhere ?
if $point is empty, you'll get an empty string for $links_include and
include $links_include will not work.

Regards,
P.E. Baroiller
"Dougd" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> I am new to all this, but here is the basic code:
>
>  $link_titles = file('links/master.txt');
>  $links_include = $link_titles[$point]; // path to directory
>   include $links_include;
>
> If I echo the value of $links_include just prior to the include() function
> it contains what I would expect it to contain and the file does exist. But
I
> get an error:
>
> Warning: main(./main/links/topsites.php ) [function.main]: failed to
create
> stream: No such file or directory in . on line 23
>
> Warning: main() [function.main]: Failed opening './main/links/topsites.php
'
> for inclusion (include_path='.:/usr/local/lib/php') in  on line 23
>
> If I add the line:
>
> $links_include = "path to intended include file";
>
> just prior to the include statement it works fine.
>
> Am I missing something? I've tried a variety of renditions of the
include()
> statement and can't get it to react unless I 'hard code' the value of
> $links_include.
>
> Appreciate your help!!
>
> -Doug
>
>
>



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



[PHP] Re: PHP & MS Exchange Server problem

2003-07-16 Thread Baroiller Pierre-Emmanuel
Hi...

are your sure your Exchanger server has imap enabled and port 143 is open ?
If you've got the message "connection refused", it can be :
- not imap server is running
- your login/password couple is wrong
or
- you can't connect to the port 143...

regards,
P.E. Baroiller


"Charles Vos" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
Hello All---

I'm having some trouble getting PHP to communicate with my Windows 2000
MS Exchange Server... I'm running PHP 4.3.2 on a Win2000 machine serving
with Apache 1.3.

The code I'm using is:

$mbox = imap_open("{x.x.x.x:143}","admin","adminpass", OP_HALFOPEN);
$err = imap_errors();
while (list($key, $val) = each($err))
print imap_utf7_decode($val)."\n";
$alrt = imap_alerts();
while (list($key, $val) = each($alrt))
print imap_utf7_decode($val)."\n";

This yields the error:
Warning: imap_open(): Couldn't open stream {x.x.x.x:143} in
c:\apache\apache\htdocs\sdimail.php on line 11
Connection refused

If I change the imap_open command to use {x.x.x.x:143\} as the host, I
get a different error:

Warning: imap_open(): Couldn't open stream {x.x.x.x:143\} in
c:\apache\apache\htdocs\sdimail.php on line 11
Can't open mailbox {192.168.0.3:143\}: invalid remote specification

which makes me suspect that I am actually able to connect but PHP isn't
finding anything it likes (what is it looking for?)

can anyone help me with this or at least point me towards a tutorial on
using PHP with MS Exchange?

Thanks in advance for your help,

-Charlie
[EMAIL PROTECTED]



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



[PHP] Re: Problem with Apache Web Server config file and PHP working together Please help!!

2003-07-15 Thread Baroiller Pierre-Emmanuel
Have you loaded php module into apache ?
Have you defined .php files into your httpd.conf ?

Try with easyphp on windows... I can't help you more... I hate windows! :D

Regards,
P.E Baroiller

"Karen Santmyer" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> HI:
>
>  I installed Apache Web Server on my laptop which has Windows XP.  I
then installed PHP.  I followed the directions in the book I had on
installing apache and php and what to add to the apache configuration file.
>
>   Here is what is happening:  After installing everything, I tested my
Apache web server installation first and saw the apache web server page like
the book said.  Then it said to do a little php program - which had
phpinfo() in it.  But when I retyped the url I got a message that asked me
did I want to download a file, which was the php program file.
>
>   The PHP is 4.3.2 and the apache web server is 2.0.  What am I doing
wrong?  Should I use apache 1.3.2?
>
>Please help.  I understand everything, just don't know why it is
prompting me to download a file.
>
>Thanks.
>
> Karen
>
>
>
> -
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!



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



[PHP] Re: value not passed

2003-07-15 Thread Baroiller Pierre-Emmanuel
did you put a  before in your script ?
What I see in your script is : addDivName is a text input field, without
value..
so, if you click on you link, is $addDivName wasn't set before, the content
is... empty! :)

I can't help you more with your tiny sample :(


Regards,
P.E. Baroiller

"Joaco" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> Can anyone tell me why the addDivName field is always passed as a blank...
> This is killing me.
>
> 
> 
>  
>  
>   
> ">
> width="58" height="15" alt="" border="0" />
> 
>   
>  
>
> Whenever I click on the anchor everything is sent thru except the value of
> addDivName?
>
>



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



[PHP] Re: How to store a file into MSSQL?

2003-07-15 Thread Baroiller Pierre-Emmanuel
How is defined your temp_test table ?
PHP don't truncate content...
you only need to define a binary blob field and store data into it..

regard,
P.E. Baroiller

"Javier" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> Hi everybody, I've trying to store a into a MSSQL Server (7 or 2k) using
> an example I found on the web (www.php.net).
>
> Is it possible that PHP (4.3.2) just store 4k of data? Because after
> inserting a test image with:
>
> $oDatos is an object that handles queries.
>
>  // storing a file
> $datastring = join('',file("logo2.jpg"));
> $data = unpack("H*hex", $datastring);
> $oDatos->query( "insert into temp_test (test) values ( 0x" . $data['hex']
> .")" );
>
> A select will return a 4K file. Is it possible?
>
> $row = $oDatos->getData("select test from temp_test");
> //file://$row = mssql_fetch_assoc($result);
> $fp = fopen('copy.jpg','w');
>
>
> So... is there anyway to store a file that it is larger than 4K? Or am I
> missing something? :)
>
> Thanks.
>
> -- 
> *** s2r - public key: (http://leeloo.mine.nu/s2r-gmx.sig)



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



Re: [PHP] HTML email with Outlook

2003-07-15 Thread Baroiller Pierre-Emmanuel
Hi,
try with adding this :
$header = "Content-Type: text/html;
charset=\"iso-8859-1\"\nContent-Transfer-Encoding: 8bit\n\n";

If it don't work, try to build multipart email ...

Regards,
P.E. Baroiller

"Tim Thorburn" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> Hi,
>
> I've made a PHP script that sends out an automatic email through my
servers
> cron system, it works well, but I thought I'd try to do some HTML email to
> get things to line up a little better.
>
> To do so, I added the following line in my mail() command: -Type:
> text/html; charset=iso-8859-1
>
> When I check the messages sent out with Eudora, the HTML email comes in
> perfectly.  However, when I check with Outlook Express 6 - I get the
actual
> HTML code rather than the nicely formatted email that I had created.
>
> Should I be using another line in my mail() command?  I've recieved HTML
> email before with Outlook Express on my machine without changing any
> settings at all.  Also, I had sent an email from my script to hotmail and
> the HTML email worked fine there too.
>
> Any thoughts?
>
> Thanks
> -Tim
>
>



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



[PHP] Re: just wondering

2003-07-11 Thread Baroiller Pierre-Emmanuel
hmm...
and... what would you do with a clear screen function on a web page with php
?

I can't see how it could work.. :)

PHP is server side, so you can't clear the user screen like with C or other
language ...

Regards,

P.E. Baroiller

"Artoo" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> Just wondering if there's a clear screen function in PHP like the clrscr()
> in 'C'.
>
> Thanks
>
>



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



[PHP] Re: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in f:\.....\none.php on line 286

2003-06-10 Thread BAROILLER Pierre-Emmanuel
Hi...
You've made a bad query and there is no result...
mysql_fetch_row($result) => if no data found, you've got an error...


"Marcelo Luiz De Laia" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> What this message means?
>
> What it is the error?
>
> Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result
> resource in f:\.\none.php on line 286
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.488 / Virus Database: 287 - Release Date: 5/6/2003
>



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



[PHP] Re: can't call htpasswd using PHP

2003-06-10 Thread BAROILLER Pierre-Emmanuel
Does you php or apache process have perms to do this?

"Billy" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> Dear all,
>
> i can't call the "htpasswd" command after i used RedHat 8  ( which i can
do
> so in Red Hat 7.2)
>
> do u have any idea/ suggestion?
>
> thx a lot
> HPS
>
>



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



[PHP] Re: mysql - get actual row

2003-06-10 Thread BAROILLER Pierre-Emmanuel
Hy,

try with mysql_insert_id()  [ if you've set the first field as "index" in
your table ].


Regards.


"Harry.De" <[EMAIL PROTECTED]> a écrit dans le message de
news:[EMAIL PROTECTED]
> Hi,
> if i insert into a mysql table a row e.g.
>mysql_query("INSERT into TEST (testfield) VALUES ('This is a test')");
> and the first field is an auto increment (e.g. NR),
> how can i get the value of the auto increment NR i've actually inserted?
>
> Tanks Harry
>
>
>
>
>



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



[PHP] Best method to detect Apache, IIS, or CLI?

2003-06-05 Thread Jean-Pierre Arneodo
Hi,
what is the best method to detect if a php script is started
into Apache, IIS or in a CLI script?

I've found several issues, but I am not sure to be right.

* CLI: 

- PHP_SELF='-'
- var $argv, $argc exist
- constant STDIN, STDOUT, STDERR exist

* http server:

- PHP_SELF != '-' for ever
- $argv, $argc not found (in my apache install)
- constant STDIN, STDOUT, STDERR not exist, but they can be defined by someone else

* But I don't know between Apache and IIS.

Thanks
Jean-Pierre


[PHP] Re: Decrypting data with GnuPG

2003-06-01 Thread Pierre-Luc Soucy
Just for the record, adding the --batch argument to the GnuPG command 
solved the problem.

Regards,

Pierre-Luc

Pierre-Luc Soucy wrote:
Hi,

I would like to decrypt data encoded with GnuPG without including the 
private key passphrase in the command to prevent people from viewing it 
with "ps".

Here is the code I wrote:


$command = "/usr/bin/gpg --homedir=/path/to/.gnupg --no-secmem-warning 
--always-trust --yes --output /path/to/output.txt --decrypt 
/path/to/testtext.asc";
$passphrase = '***';

$fp = popen($command, 'w+');
fputs($fp, $passphrase);
pclose($fp);
print "Done";
exit;
==
I assumed that the fputs() function would write the passphrase at the 
prompt, but that doesn't seem to be the case - the command does not 
create the output.txt file when ran by the PHP program (which is running 
as a CGI under my user BTW) while it works when ran from the shell.

Any idea why?

Thanks!

Pierre-Luc Soucy



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


Re: [PHP] Decrypting data with GnuPG

2003-05-30 Thread Pierre-Luc Soucy
I just tried, but that didn't correct the problem - the output.txt file 
is still not generated:


$command = "/usr/bin/gpg --homedir=/path/to/homedir/.gnupg 
--no-secmem-warning --passphrase-fd 0 --always-trust --yes --output 
/path/to/homedir/.gpgkeys/temp/output.txt --decrypt 
/path/to/homedir/.gpgkeys/temp/testtext.asc";
$passphrase = 'MY_PASSPHRASE'."\n";

$fp = popen($command, 'w+');
fputs($fp, $passphrase);
fputs($fp, $passphrase);
pclose($fp);
print "Done";
exit;
?>
Regards,

Pierre-Luc

Evan Nemerson wrote:
Are you appending a newline to your passphrase?

$passphrase = "my gnupg passphrase\n";



On Thursday 29 May 2003 06:56 am, you wrote:

From the GnuPG docs:

--passphrase-fd n

Read the passphrase from file descriptor n. If you use 0 for n, the
passphrase will be read from stdin. This can only be used if only one
passphrase is supplied. Don't use this option if you can avoid it.
I added --passphrase-fd 0 to my command so the passphrase should
normally be read from stdin (according to the docs), but it still does
not work. Any idea? I am unfortunately not familiar with C code, so I
can difficultly find solutions to my problems by reading the GnuPG source.
Thanks!

Pierre-Luc

Evan Nemerson wrote:

GnuPG doesn't use stdin to read the password, which is where you're
sending it. It uses a more low-level interface (check out the below link
if you're interested) where they interact directly with the virtual
console.
Try piping to your command- that won't work either

echo $PASSPHRASE | \
/usr/bin/gpg \
--homedir=/path/to/.gnupg \
--no-secmem-warning \
--always-trust \
--yes \
--output /path/to/output.txt \
--decrypt /path/to/testtext.asc
GnuPG source code for TTY I/O:
http://cvs.gnupg.org/cgi-bin/viewcvs.cgi/*checkout*/gnupg/util/ttyio.c?re
v=1.28&content-type=text/plain
On Wed, 2003-05-28 at 16:14, Pierre-Luc Soucy wrote:

Hi,

I would like to decrypt data encoded with GnuPG without including the
private key passphrase in the command to prevent people from viewing it
with "ps".
Here is the code I wrote:


$command = "/usr/bin/gpg --homedir=/path/to/.gnupg --no-secmem-warning
--always-trust --yes --output /path/to/output.txt --decrypt
/path/to/testtext.asc";
$passphrase = '***';
$fp = popen($command, 'w+');
fputs($fp, $passphrase);
pclose($fp);
print "Done";
exit;
==
I assumed that the fputs() function would write the passphrase at the
prompt, but that doesn't seem to be the case - the command does not
create the output.txt file when ran by the PHP program (which is running
as a CGI under my user BTW) while it works when ran from the shell.
Any idea why?

Thanks!

Pierre-Luc Soucy




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


Re: [PHP] Decrypting data with GnuPG

2003-05-30 Thread Pierre-Luc Soucy
From the GnuPG docs:

--passphrase-fd n

Read the passphrase from file descriptor n. If you use 0 for n, the 
passphrase will be read from stdin. This can only be used if only one 
passphrase is supplied. Don't use this option if you can avoid it.

I added --passphrase-fd 0 to my command so the passphrase should 
normally be read from stdin (according to the docs), but it still does 
not work. Any idea? I am unfortunately not familiar with C code, so I 
can difficultly find solutions to my problems by reading the GnuPG source.

Thanks!

Pierre-Luc

Evan Nemerson wrote:
GnuPG doesn't use stdin to read the password, which is where you're
sending it. It uses a more low-level interface (check out the below link
if you're interested) where they interact directly with the virtual
console.
Try piping to your command- that won't work either

echo $PASSPHRASE | \
/usr/bin/gpg \
--homedir=/path/to/.gnupg \
--no-secmem-warning \
--always-trust \
--yes \
--output /path/to/output.txt \
--decrypt /path/to/testtext.asc
GnuPG source code for TTY I/O:
http://cvs.gnupg.org/cgi-bin/viewcvs.cgi/*checkout*/gnupg/util/ttyio.c?rev=1.28&content-type=text/plain


On Wed, 2003-05-28 at 16:14, Pierre-Luc Soucy wrote:

Hi,

I would like to decrypt data encoded with GnuPG without including the 
private key passphrase in the command to prevent people from viewing it 
with "ps".

Here is the code I wrote:


$command = "/usr/bin/gpg --homedir=/path/to/.gnupg --no-secmem-warning 
--always-trust --yes --output /path/to/output.txt --decrypt 
/path/to/testtext.asc";
$passphrase = '***';

$fp = popen($command, 'w+');
fputs($fp, $passphrase);
pclose($fp);
print "Done";
exit;
==
I assumed that the fputs() function would write the passphrase at the 
prompt, but that doesn't seem to be the case - the command does not 
create the output.txt file when ran by the PHP program (which is running 
as a CGI under my user BTW) while it works when ran from the shell.

Any idea why?

Thanks!

Pierre-Luc Soucy





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


Re: [PHP] Decrypting data with GnuPG

2003-05-29 Thread Pierre-Luc Soucy
Hi,

Does that mean that there is no way to achieve this with PHP and that I 
should rather use the --passphrase-fd argument?

Thanks,

Pierre-Luc

Evan Nemerson wrote:
GnuPG doesn't use stdin to read the password, which is where you're
sending it. It uses a more low-level interface (check out the below link
if you're interested) where they interact directly with the virtual
console.
Try piping to your command- that won't work either

echo $PASSPHRASE | \
/usr/bin/gpg \
--homedir=/path/to/.gnupg \
--no-secmem-warning \
--always-trust \
--yes \
--output /path/to/output.txt \
--decrypt /path/to/testtext.asc
GnuPG source code for TTY I/O:
http://cvs.gnupg.org/cgi-bin/viewcvs.cgi/*checkout*/gnupg/util/ttyio.c?rev=1.28&content-type=text/plain


On Wed, 2003-05-28 at 16:14, Pierre-Luc Soucy wrote:

Hi,

I would like to decrypt data encoded with GnuPG without including the 
private key passphrase in the command to prevent people from viewing it 
with "ps".

Here is the code I wrote:


$command = "/usr/bin/gpg --homedir=/path/to/.gnupg --no-secmem-warning 
--always-trust --yes --output /path/to/output.txt --decrypt 
/path/to/testtext.asc";
$passphrase = '***';

$fp = popen($command, 'w+');
fputs($fp, $passphrase);
pclose($fp);
print "Done";
exit;
==
I assumed that the fputs() function would write the passphrase at the 
prompt, but that doesn't seem to be the case - the command does not 
create the output.txt file when ran by the PHP program (which is running 
as a CGI under my user BTW) while it works when ran from the shell.

Any idea why?

Thanks!

Pierre-Luc Soucy





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


[PHP] Decrypting data with GnuPG

2003-05-29 Thread Pierre-Luc Soucy
Hi,

I would like to decrypt data encoded with GnuPG without including the 
private key passphrase in the command to prevent people from viewing it 
with "ps".

Here is the code I wrote:


$command = "/usr/bin/gpg --homedir=/path/to/.gnupg --no-secmem-warning 
--always-trust --yes --output /path/to/output.txt --decrypt 
/path/to/testtext.asc";
$passphrase = '***';

$fp = popen($command, 'w+');
fputs($fp, $passphrase);
pclose($fp);
print "Done";
exit;
==
I assumed that the fputs() function would write the passphrase at the 
prompt, but that doesn't seem to be the case - the command does not 
create the output.txt file when ran by the PHP program (which is running 
as a CGI under my user BTW) while it works when ran from the shell.

Any idea why?

Thanks!

Pierre-Luc Soucy

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


[PHP] Re: If else.. display no picture..

2003-04-05 Thread BAROILLER Pierre-Emmanuel

May be this line is wrong :
Echo Geen informatie beschikbaar;

may be use this instead...

echo 'Geen informatie beschikbaar';

no?

:)

regards.





<[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> Hi,
>
> I'm trying to do the following.. When $stadpict is filled in it must
display the picture (only the path to the picture is stored in Mysql). But
when the string ($stadpict) is empty then it must not display the picture
(and also not display a box with a red cross in it (can't display picture!
;>). The only thing i'm getting is an error message...
>
> Parse error: parse error, unexpected T_STRING, expecting ',' or ';'
>
> Code;
>  // includes
> include("../conf/config.php");
>
> // open database connection
> $connection = mysql_connect($host, $user, $pass) or die ("Unable to
connect!");
>
> // select database
> mysql_select_db($db) or die ("Unable to select database!");
> $stedenid=$_GET['stedenid'];
>
> // generate and execute query
> $query2 = "SELECT stedenid, naamstad, stadomschrijvk, stadpict FROM steden
WHERE stedenid = $stedenid";
> $result2 = mysql_query($query2) or die ("Error in query: $query2. " .
mysql_error());
> $row2 = mysql_fetch_object($result2);
> if (mysql_num_rows($result2) > 0)
> {
> ?>
>
> naamstad; ?> 
> stadpict;
> ?>
>
> 
> 
>  
>  
> 
> 
>  while($row->$stadpict > 0)
> {
> ?>
> 
>  }
>  ?>
> stadomschrijvk;
> }
> else
>
> {
> Echo Geen informatie beschikbaar;
> }
> ?>
>
>
> Thanks for helping me out!
>
> Frank
>



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



  1   2   3   >