Re: [PHP] ob_start(ob_gzhandler) and error handling functions

2006-12-21 Thread IG
within a 'callback function'- well that's what it says on the php manual. The thing is I'm not sure what that means, I find that section not particularly clear. Please can someone help! IG wrote: Hi, I include a php file at the beginning of every web page in this site. This include file has

[PHP] ob_start(ob_gzhandler) and error handling functions

2006-12-20 Thread IG
Hi, I include a php file at the beginning of every web page in this site. This include file has an error handling function and starts output buffering... // Start of Error Handler error_reporting(E_ALL ^ E_NOTICE); ini_set('log_errors','1'); function

Re: [PHP] Video question

2006-12-19 Thread IG
John Messam wrote: How do I display video on my php page and prevent the video from being downloaded. You'll need to be more specific than this. What video format are you using? The only way to stop it from being downloaded is by streaming the video, and even then it is possible if you have

[PHP] complex control structure- please help

2006-06-20 Thread IG
Hi all, This may not be complex at all- maybe my head is just screwed up this afternoon! I am looping through arrays all at one time for the following- $filter_subject $filter_body $filter_email $filter_subject_like $filter_body_like $filter_email_like Examples of the following could be-

[PHP] running conditions while looping through arrays....

2006-06-19 Thread IG
I want to run filters on an pop3 inbox. I have the following arrays which I'll get from the database- $subject $email $body $subject_like $email_like $body_like I then go through each email in turn using this loop- $popy = {.$pop3./pop3:110}INBOX; $mailbox = imap_open($popy, $un, $pw);

[PHP] Reading an XML outputting PHP file as XML

2006-06-02 Thread IG
Hi. I have a PHP file that outputs as XML from a database. i have used the header() function to output the correct header but when I use the simplexml function it is trying to parse the php file itself and not the output of the php file. I can't get my head round this. Can anyone help me? --

Re: [PHP] If value is odd or not

2006-06-02 Thread IG
Jonas Rosling wrote: Hi all, is there any easy why to check if a value is odd or not? Thanks // Jonas $value = 3; if (strpos(($value/2),.) === FALSE) {echo even;} else {echo odd;} -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] If value is odd or not

2006-06-02 Thread IG
Jochem Maas wrote: Jonas Rosling wrote: Hi all, is there any easy why to check if a value is odd or not? ignore every answer that doesn't use the % operator. Thanks // Jonas ie my answer! I think the % operator is the best way, but there was nothing wrong with the answer I gave in

Re: [PHP] display_errors off and custom error pages

2006-05-02 Thread IG
Richard Lynch wrote: On Fri, April 28, 2006 11:55 am, IG wrote: I have recently moved over to a managed dedi server and no can ask my host to change my php.ini. I have found out that the 'display_errors' in the php.ini is set to off and error file logging is off. Do they have .htaccess

Re: [PHP] display_errors off and custom error pages

2006-05-02 Thread IG
Thanks, Chris. chris smith wrote: On 4/29/06, IG [EMAIL PROTECTED] wrote: I've spent the last couple of hours trying to work this out to no avail. I have recently moved over to a managed dedi server and no can ask my host to change my php.ini. I have found out that the 'display_errors

Re: [PHP] display_errors off and custom error pages

2006-05-02 Thread IG
Thanks, Jochem. Jochem Maas wrote: IG wrote: I've spent the last couple of hours trying to work this out to no avail. I have recently moved over to a managed dedi server and no can ask my host to change my php.ini. I have found out that the 'display_errors' in the php.ini is set to off

Re: [PHP] display_errors off and custom error pages

2006-05-02 Thread IG
So to use a custom error handler do I HAVE to have display_errors set to 1 in my php.ini file? This would of course mean I would have to use custom error handling across all my scripts. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] display_errors off and custom error pages

2006-04-28 Thread IG
I've spent the last couple of hours trying to work this out to no avail. I have recently moved over to a managed dedi server and no can ask my host to change my php.ini. I have found out that the 'display_errors' in the php.ini is set to off and error file logging is off. I would like to

[PHP] Is this password protection script secure?

2006-03-14 Thread IG
Hello. I got a password protected login script of t'internet a while back and have implemented it. I just want to make sure it is secure. I am aware that the password is stored directly in the database and I don't think this is a good thing. If the following could be looked at to see if

[PHP] Backing up emails and then forwarding them

2006-03-06 Thread IG
to resend the email from the database. I have backed up the full body and the full headers. How can I reconstitute the email and send it as an attached eml file? Many thanks, IG -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Altering subject of email in a pop3 mailbox

2006-02-23 Thread IG
Chris wrote: IG wrote: Is it possible to alter a subject line (or body for that matter) of an email in a pop3 mailbox? If it's already in the mailbox, then I highly doubt you can do this. You need to do this on the way in before it gets to the account. Consider the ramifications if you

Re: [PHP] Altering subject of email in a pop3 mailbox

2006-02-23 Thread IG
on them because they are all run by our hosting provider. If you could point me to somewhere where I can find more information out on mailboxes I would be most grateful. Many thanks, IG Nobody Special wrote: POP is a protocol used for a client to retrieve emails from a mail box

[PHP] Altering subject of email in a pop3 mailbox

2006-02-22 Thread IG
Hi all. Tried to find this and can't find any info. I am writing a spam filter to run over multiple pop3 mail boxes which will work on keywords and Bayesian. With a very high score the filter will simply delete the email, with a med-high it will back the email in a 'bulk-mail' folder and

[PHP] seesion_register() with arrays

2002-05-31 Thread Douglas - IG
Hi All, I´m trying to register into a session an array which has returned from a mysql_fetch_array function. But when I call $array it returns empty or something like this. Do you know how can I do this operation? Regards! Here go my scripts: ? # script1.php4 session_start(); $sql = select