| | |
fwrite not working with ob_start, Any ideas?
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
•
•
As much as I can tell it is. The file is being written when output buffering is not on. So I would assume that that means that the directory is OK.
I'm developing locally on a Mac (the folder properties show it not locked and that read & write is allowed) is there any way that could be causing a problem?
If not I'll keep working on it and if I get it I'll make sure to post up the fix.
Thanks again for the help. Really appreciate it.
Richard
The only thing I can think of is if you have an error occurring in the output buffering part of the code, and it's stopping code execution from moving on to the file writing portion.
Make sure you have error reporting on.
PHP Syntax (Toggle Plain Text)
ini_set('error_reporting', E_ALL); ini_set('display_errors', '1');
See if you get errors.
ps: a shortcut for:
PHP Syntax (Toggle Plain Text)
$data = ob_get_contents(); ob_end_clean();
is
PHP Syntax (Toggle Plain Text)
$data = ob_get_clean();
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
![]() |
Other Threads in the PHP Forum
- Previous Thread: can someon explain it to me please
- Next Thread: assing a value to DEfine
| Thread Tools | Search this Thread |
# 5.2.10 alexa apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date directory display dissertation dropdown dynamic echo echo$_get[x]changingitintovariable... email encode error fairness file files folder form forms function functions google href htaccess html image images include indentedsubcategory insert ip javascript joomla legislation limit link local login mail memberships menu mlm multiple multipletables mysql mysqlquery newsletters oop open paypal pdf persist php problem provider query radio random recursion remote rss script search server sessions sms sockets source space spam sql syntax system table tutorial update upload url validator variable video web youtube






