[PHP] Re: output

2003-10-25 Thread J. Cox

Shmuel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I'm getting output from program I run (exec) to the web page.
 How can I avoid this ?

 These I've tried:

 error_reporting  =  E_ERROR

 and even this:
 error_reporting  =  ~E_ALL

 display_errors = Off

 Any ideas ?


I'm assuming that you are trying to turn off error reporting.

http://www.php.net/manual/en/function.ini-set.php

Should get you started, or you could suppress the errors with @.  Am I in
the right ballpark?


J. Cox
http://www.xaraya.com

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



[PHP] Re: Choosing a CMS?

2003-10-19 Thread J. Cox

Joel Konkle-Parker [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

 I've looked at PHPNuke, just because that's the only thing that jumps to
 mind, but I want to make sure I'm not missing anything before I dive in
 with it.

Have a look at Xaraya -- http://www.xaraya.com

It may work for you better in the long run than PHP-Nuke.

* Bias note. I am on the Xaraya Team.

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



[PHP] Re: Session hijacking

2003-10-19 Thread J. Cox

Ryan A [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 NO! Globals are on
 And asking the others they tell me that around 20% of the scripts (around
 300 scripts) wont function with globals off :-(

 What to do?

Use an ini_set in your sessions script (I am assuming that you are using a
seperate script to manage your sessions) to turn your registered globals
off.  Likewise though, you might start looking for replacements for those
scripts as it takes time to make the changes, but it has been a year since
register_globals were turned off by default and mentioned that they were
going away in the future.

In addition, take a look at some of the other suggestions that were made,
beyond this one.

J. Cox
http://www.xaraya.com

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



[PHP] Re: Re: Session hijacking

2003-10-19 Thread J. Cox

Becoming Digital [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
You cannot use ini_set() for register_globals.  It must be done from
.htaccess, httpd.conf or php.ini.
http://www.php.net/manual/en/function.ini-set.php



Yup, I should have double checked the manual;)  Nice catch.

J. Cox
http://www.xaraya.com


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



[PHP] Re: PHP Smart Refresh for looping server lookups

2003-09-20 Thread J. Cox

[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]

 I'm not looking for actual code; that part I can do; I'm just looking for
a
 basic what does what procedure on how it's done. Any thoughts on this
would
 be very greatful! Thanks in advance =)

Why not do a meta refresh with the time as a variable to be configured?
Seems to me to be the easiest way to do it.

J. Cox
http://www.xaraya.com

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



[PHP] Re: mail problem

2003-07-26 Thread J. Cox

Paul Marinas [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

 Hi, i have to send some e-mails with pictures, in html format, i was
 wondering if anyone knows where to find a php class that dose this.

http://phpmailer.sourceforge.net/ should do the trick.

J. Cox
http://www.xaraya.com




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



[PHP] Re: PHP should know my data!

2003-07-24 Thread J. Cox

Chris Hubbard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hmm.  You're right.  Maybe something like the following would help:

 ?php
 if ($_SESSION[irony])
 {
 $rs = enjoyJoke($_POST[msg])
 }else{
 $rs = fixProblem($_POST[msg])
 }
 echo h3. $rs ./h3;

 ?

This isn't working in Windows.  Anyone know why?




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



[PHP] Re: Replacing newlines (\n) with smething else

2003-07-13 Thread J. Cox

Jason Giangrande [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 I'm trying to replace newlines with something else.  For this example
 I'll use br as the thing to replace a newline with.  This is what I
 tried and it doesn't work.

 $article = str_replace(\n, br, $article);

 What am I doing wrong?  $article is the string to replace the newlines
 in.  I tried this with a period and that works as expected.  Can I not
 replace newlines this way?

why not just:

$article = nl2br($article);

--
J. Cox
http://www.xaraya.com




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



Re: [PHP] Re: Q:What is the easiest way to test my PHP+Html pages?

2002-07-27 Thread J. Cox


Andrew Brampton [EMAIL PROTECTED] wrote in message
014a01c2357e$77a15b50$0100a8c0@andrew">news:014a01c2357e$77a15b50$0100a8c0@andrew...
 Just install apache (for windows), MySQL (for windows), and PHP... voila a
 local webserver, and the only way to view your pages, no need to upload
 since you can point your webserver to where you are developing your php.

 andrew

Or you could use something like FoxServ:

http://foxserv.linuxmax.net/portal.php

J. Cox
http://www.dinerminor.com
http://www.postnuke.com



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