RE: [PHP] php question... opening external page/writing to it...
I don't know if this is what you mean, but here is what you need to edit files: http://us2.php.net/manual/en/function.fopen.php http://us2.php.net/manual/en/function.fwrite.php http://us2.php.net/manual/en/function.fclose.php -Original Message- From: my [mailto:[EMAIL PROTECTED] Sent: 24. júní 2003 00:26 To: [EMAIL PROTECTED] Subject: [PHP] php question... opening external page/writing to it... Hey... A quick question... How can I do the following (I know it's simple..!!!) All from the same page... Do some processing... Open an external page Write some stuff to the external page... The issue I seem to have is that if I open the external page during the onload... it's not ready when I want to write the data Any hints/comments/samples Thanks... Bruce [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] php question... opening external page/writing to it...
sorry to make it a little more clear... I'd like the external page to be a separate web page...I'm using it to simply write out some debug data on the fly thanks bruce -Original Message- From: Sævar Öfjörð [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 5:31 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] php question... opening external page/writing to it... I don't know if this is what you mean, but here is what you need to edit files: http://us2.php.net/manual/en/function.fopen.php http://us2.php.net/manual/en/function.fwrite.php http://us2.php.net/manual/en/function.fclose.php -Original Message- From: my [mailto:[EMAIL PROTECTED] Sent: 24. júní 2003 00:26 To: [EMAIL PROTECTED] Subject: [PHP] php question... opening external page/writing to it... Hey... A quick question... How can I do the following (I know it's simple..!!!) All from the same page... Do some processing... Open an external page Write some stuff to the external page... The issue I seem to have is that if I open the external page during the onload... it's not ready when I want to write the data Any hints/comments/samples Thanks... Bruce [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php question... opening external page/writing to it...
on 24/06/03 10:26 AM, my ([EMAIL PROTECTED]) wrote: Do some processing... easy :) Open an external page I assume you mean open a window with another URL in it Write some stuff to the external page... Wrong order... 1. do some processing (eg home.php) 2. open/create a file (eg debugger.php) 3. write to it during the processing of your page, save it 4. open the new window with the url of the debug file, most probably as a onload javascript command. Any hints/comments/samples Any coding examples you need will be in the manual pages and user comments relating to fopen, fwrite, etc... read them and if you're STILL stuck, post what code you have, and we can help more. FWIW, this seems like too much work to me... I just debug IN my code, and set a global config of $debug to true for development, and false for live server, and do things like this: if($debug) { echo p class='error'Justin, you're an idiot: .mysql_error()./p; } Justin French - Indent.com.au - Graphic, Web Information Design Web Application Development - e: mailto:[EMAIL PROTECTED] w: http://www.indent.com.au t: 03 9531 4304 (+61 3 9531 4304) m: 0414 243 462 (+61 414 243 462) - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php