[PHP] fopen - permission denied

2001-12-17 Thread DigitalKoala
Hi Folks, I've been scanning the documentation for a simple answer to this.. but can't seem to find one. How can I solve fopen(/path/filename,w) running from my script - without it resulting in a permission denied error? I'm not sure what it is in my apache conf file that I have to change to

[PHP] eval on php embedded html

2002-01-24 Thread DigitalKoala
hi folks, i'm having a problem using eval. i have some html code interdispersed with php code (proper statement not just variables) in a database. when i fetch the code and display it using : $reg_adv_html=addslashes($reg_adv_html); eval(\$reg_adv_html = \$reg_adv_html\;);

[PHP] fopen and sending data to a remote url

2002-01-25 Thread DigitalKoala
hi folks, apart from using fopen, is there another way of just sending data to a remote url on the fly without leaving your current page? thanks dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[PHP] preg_match vs ereg etc

2002-02-18 Thread DigitalKoala
hi folks, I was just wondering what your opinions were on using preg_match, preg_split instead of ereg and explode? I have to write a script to parse a lot of html and text files.. and I'm looking to use the fastest possible functions to do this... Many thanks for all your input! dk --

[PHP] major redirection woes!

2002-02-18 Thread DigitalKoala
hi folks, i've been tearing my hair out over a redirection problem ... but i can't seem to find a satisfactory solution. i'm sending some variables to a script on an external webpage, the webpage sends me the data i need back.. except that this page goes through a redirect page... i want to

[PHP] really hopelessly stuck on this problem!

2002-02-19 Thread DigitalKoala
hi folks, i've been tearing my hair out over a redirection problem ... but i can't seem to find a satisfactory solution. i'm sending some variables to a script on an external webpage, the webpage sends me the data i need back.. except that this page goes through a redirect page... i want to

Re: [PHP] really hopelessly stuck on this problem!

2002-02-19 Thread DigitalKoala
at about just include'ing it? -Original Message- From: DigitalKoala [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 11:53 AM To: [EMAIL PROTECTED] Subject: [PHP] really hopelessly stuck on this problem! hi folks, i've been tearing my hair out over a redirection

[PHP] function that extracts numbers from a string

2002-02-22 Thread DigitalKoala
Hi folks, Is there a function that extracts numbers from a string? I can do this with ereg but it's quite slow when you have a long list of variables to get through... thanks! dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] bouncy mail();

2002-02-25 Thread DigitalKoala
hi folks, if i set the return-path of a email to be [EMAIL PROTECTED], will bounced be returned here? thanks! dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php.ini and fixing timeouts

2002-03-16 Thread DigitalKoala
hi folks, I'm running a php script from a console - it includes quite a lot of heavy database queries - and takes a while to run. Problem is that the the script keeps on timing out and I get Fatal error: Maximum execution time of 30 seconds exceeded ... I've set the MAX EXECUTION time in

[PHP] console scripts reading php.ini

2002-03-18 Thread DigitalKoala
Hi folks, How do i get my script (run from the console and not from the browser) to set sendmail_path = /var/qmail/bin/qmail-inject ? Thanks! DK -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] scripting behind the scenes

2002-03-19 Thread DigitalKoala
hi there, can someone tell me how i can get my php script (which is run via a console, rather than a browser) to read the settings i've included in php.ini. is this possible? thanks for the help! a -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] deleting file contents

2001-12-11 Thread DigitalKoala
Hi Everyone, I'm running a script that automatically reads lines from /var/mail/myaccount, parses the lines then insert specific items into a database this is in a loop What i want to do is then delete the contents of the file, but not the file itself...can you tell me the best way to do

[PHP] flushing contents to the browser

2001-12-12 Thread DigitalKoala
hi folks, i'm trying to display something like processing... please wait on a web page whilst a rather hefty database query is being run. i don't want to refresh the page so i've been attempting to use flush and ob_start, together with some css stuff to try and do this.. but no luck so far - as