php-general Digest 15 Sep 2006 06:36:58 -0000 Issue 4348

2006-09-15 Thread php-general-digest-help

php-general Digest 15 Sep 2006 06:36:58 - Issue 4348

Topics (messages 241800 through 241806):

Re: R: [PHP] session_start() and fopen
241800 by: Christopher Weldon

R: [PHP] R: [PHP] session_start() and fopen
241801 by: Fabri

Re: Question on explode and join.
241802 by: Beauford

Re: security include from remote server
241803 by: Miguel Vaz
241804 by: Jon Anderson

Months between two dates
241805 by: Phillip Baker
241806 by: Kyle

Administrivia:

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

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

To post to the list, e-mail:
php-general@lists.php.net


--
---BeginMessage---
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Fabri wrote:
 Hi Christopher: this is just a simplified code, I use it to generate some
 xml file, no loop is present.
 
 Try it as it is: you will find that two files will be generated while it
 should be only one.
 If you remove 'session_start()' then only one file will be generated: that's
 correct!
 
 Fabri 

Hey Fabri,

I cannot replicate this bug (PHP 4.2.3 on older server). I'm only
getting one file written. What version of PHP are you using?

- --
Christopher Weldon, ZCE
President  CEO
Cerberus Interactive, Inc.
[EMAIL PROTECTED]
979.739.5874
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFCa33Zxvk7JEXkbERAkT6AJwODHyP1uvE7UjlAOsjSlTf83LS0ACgifny
XRbhB2bRYZsKCvCl09QLkS0=
=lSIJ
-END PGP SIGNATURE-
---End Message---
---BeginMessage---
Hi Chris,
thanks for your feedback: at least now I know that the script is correct, I
am using version 4.3.10, I will investigate if some bug is present in this
version.

Fabri

-Messaggio originale-
Da: Christopher Weldon [mailto:[EMAIL PROTECTED] 
Inviato: giovedì 14 settembre 2006 21.31
A: Fabri
Cc: php-general@lists.php.net
Oggetto: Re: [PHP] R: [PHP] session_start() and fopen

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Fabri wrote:
 Hi Christopher: this is just a simplified code, I use it to generate some
 xml file, no loop is present.
 
 Try it as it is: you will find that two files will be generated while it
 should be only one.
 If you remove 'session_start()' then only one file will be generated:
that's
 correct!
 
 Fabri 

Hey Fabri,

I cannot replicate this bug (PHP 4.2.3 on older server). I'm only
getting one file written. What version of PHP are you using?

- --
Christopher Weldon, ZCE
President  CEO
Cerberus Interactive, Inc.
[EMAIL PROTECTED]
979.739.5874
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFCa33Zxvk7JEXkbERAkT6AJwODHyP1uvE7UjlAOsjSlTf83LS0ACgifny
XRbhB2bRYZsKCvCl09QLkS0=
=lSIJ
-END PGP SIGNATURE-

Chiacchiera con i tuoi amici in tempo reale!
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com

---End Message---
---BeginMessage---
I read your email, but I'm not using sessions and not really planning too.
But some of your code may be able to be modified to do what I need.

Thanks for the input.

B


  _  

From: Dave Goodchild [mailto:[EMAIL PROTECTED] 
Sent: September 14, 2006 8:52 AM
To: Beauford
Subject: Re: [PHP] Question on explode and join.


Hi. If you re-read my reponse you will see that it uses preg_replace with
the i flag which ignores case and will match banned words within words. With
a little modification (I can help if you like) you can easily use it in your
case. 
---End Message---
---BeginMessage---



Yes, right on the spot. Main reasons being code theft and 
using it on other projects. This being done by our office (its 
actually a college and i work in a multimedia department) system 
administrators, which are nothing left than arrogant leaches.


All i was missing from your suggestion was the fact that i 
would need to have my files remotely hosted and not using the .php 
extension. Great help, thanks.



Pag





I personally don't understand why you'd need to store code remotely 
but execute it locally, unless you're concerned about the office 
stealing your code, or using it without permission...If you aren't 
concerned about code theft, there are lots of ways you could store 
code remotely, e.g. a very raw/simple/uncomplicated/ugly:


$src = file_get_contents('http://server/code.php.txt');
file_put_contents('/tmp/code.php',$src);
include('/tmp/code.php');
unlink('/tmp/code.php');

But there are at least a few reasons why I wouldn't recommend doing that...

jon
---End Message---
---BeginMessage---

Miguel Vaz wrote:
Yes, right on the spot. Main reasons being code theft and 
using it on other projects. This being done by our office (its 
actually a college and i work in a multimedia department) system 
administrators, which are nothing left than 

php-general Digest 15 Sep 2006 18:39:46 -0000 Issue 4349

2006-09-15 Thread php-general-digest-help

php-general Digest 15 Sep 2006 18:39:46 - Issue 4349

Topics (messages 241807 through 241840):

Re: Form to subscribe a yahoo group
241807 by: Manuel Lemos

Re: RSS Creator
241808 by: Manuel Lemos

Re: Pre-printed forms
241809 by: Google Kreme
241831 by: Richard Lynch

Re: Question on explode and join.
241810 by: Google Kreme

Re: security include from remote server
241811 by: Miguel Vaz
241823 by: Jon Anderson
241838 by: Richard Lynch
241839 by: Richard Lynch

Class question
241812 by: Roger Helgesen
241813 by: Thomas Munz
241814 by: Andrei
241815 by: Roger Helgesen

Just say hello
241816 by: AraDaen
241818 by: Joe Wollard
241834 by: Ryan A
241835 by: Dave Goodchild

correctly reading binary data from http post
241817 by: Marek 'MMx' Ludha
241822 by: Arpad Ray
241837 by: Marek 'MMx' Ludha

php - mysql query issue
241819 by: Dave Goodchild
241820 by: Brad Bonkoski
241821 by: Dave Goodchild
241825 by: Andrei
241830 by: Richard Lynch

Re: Months between two dates
241824 by: Larry Garfield

Odd PHP memory issue
241826 by: Matthew H. North
241827 by: Michael B Allen
241829 by: Richard Lynch

!diff = same
241828 by: Richard Lynch

Re: DOM Question.  No pun intended.
241832 by: Richard Lynch

Session issues
241833 by: Dave Goodchild
241836 by: Brad Fuller

Re: R: [PHP] session_start() and fopen
241840 by: Richard Lynch

Administrivia:

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

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

To post to the list, e-mail:
php-general@lists.php.net


--
---BeginMessage---
Hello,

on 09/06/2006 10:57 AM Wagner Garcia Campagner said the following:
 I have a web site and a yahoo group aswell.
 
 I want to add a form in my site so that the visitor can put his/her e-mail 
 address and get subscribed in a yahoo group that i own.
 
 I already have this form working... but the problem is that when the visitor 
 put his/her e-mail address and click the Subscribe
 button he/she gets redirected to the yahoo web site stating that he/she is 
 subscribed to the group.
 
 I wanted to avoid this... so that the visitor doesn't leave my site... i was 
 thinking that i could make a form requesting the e-mail
 address and then send this information to another PHP script on my site... 
 this PHP script could send the information to the Yahoo
 web site and get the answer from then... and finally i could print something 
 for the visitor like you were subscribed in the
 group... so that he/she could stay in my web site and doesn't get 
 redirected...
 
 Is there a way to do this using PHP???

This HTTP client class comes with an add-on that for logging in Yahoo
and executing some actions on behalf of the logged user, like for
instance inviting a user to subscribe to a group, as you need:

http://www.phpclasses.org/httpclient


-- 

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
---End Message---
---BeginMessage---
Hello,

on 08/31/2006 02:58 AM John Taylor-Johnston said the following:
 Has anyone created an RSS feed creator in PHP? I could make one fast
 enough, but ...

You may want to take a look at this RSS writer class:

http://www.phpclasses.org/rsswriter


-- 

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
---End Message---
---BeginMessage---

On 14 Sep 2006, at 05:35 , Man-wai Chang wrote:

How do you guys and gals use PHP+HTML+CSS to print a report to
preprinted forms with precision?


PDF.  Printing support in HTML, even with CSS2 and 3, is primitive  
(and not well supported).


Generating a PDF is pretty straight forward though.

--
http://en.wikipedia.org/wiki/TOFU
---End Message---
---BeginMessage---
On Thu, September 14, 2006 6:35 am, Man-wai Chang wrote:
 How do you guys and gals use PHP+HTML+CSS to print a report to
 preprinted forms with precision?

I'm not good enough with CSS to answer this directly.

If you find, as I suspect, that printers are just too diverse and
outright flaky for CSS to work right, you may want to consider:
http://php.net/fdf

 if the report is to be printed at client side, how do you do it? Via
 networked printer?

If it's getting printed at the client side, it's up to the
browser/user to choose their printer...

You've got zero control over that, as it should be.

Or else I'm completely misunderstanding this part...

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