| | |
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 |
apache api array basic beginner body broken cache cakephp class cms code computing confirm cron curl customizableitems database date date/time delete display dynamic email error file filter folder form forms forum function functions gc_maxlifetime google header headmethod howtowriteathesis href htaccess html iframe image include ip javascript joomla limit link list login malfunction memmory memory menu msqli_multi_query multiple mycodeisbad mysql navigation neutrality oop parameter parsing paypal pdf php phpmysql play query question random recourse regex root script search select seo server sessions snippet source space sql static system table thesishelp trouble tutorial update upload url variable video web webdesign xml youtube






