Re: [PHP] php output to string
Hi, You may make it with fopen() like that; $fd = fopen($url, r); $returnString = while (!feof($fd)) { $returnString .= fgets($fd); } fclose($fd); Jesús Fernández [EMAIL PROTECTED] writes: Hi there, i'm a little newbie you know. I have a php that returns some xml, and i want to parse that xml through php. the xml returned depends on the variable passed thru the url. what i need is to get the output of that php file and store it in a string. i have tried everything i have though, readfile, include, file_get_contents even eval. also i have tried with ob_start and so. but no luck. how can i do this? thanks -- Cafer Simsek http://cafer.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Howto connect to the internet using php
Hi It may posible with .Net and COM functions, I think. see : http://www.php.net/manual/en/ref.com.php Best Regards -Cafer Prş, 2005-07-21 tarihinde 12:10 +0200 saatinde, Steven yazdı: Is there any way for me to use php to make my windows xp pc connect to the internet, either by starting the windows dialer or by some other means? The windows machine uses a standard 56k dialup to connect to the internet. Thanks Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] db insert question
Hi You may try sending multiple query with one mysql_query() function call via seperating by ;. Regards. -Cafer Prş, 2005-07-21 tarihinde 10:02 -0400 saatinde, Jim Moseby yazdı: Jim Moseby wrote: Im using mysql with PHP4, whats the best way to insert as many as 20 records at one time from a form? Currently im just assigning each one a variable but that is messy and takes ages, is their a way to loop over the array of form data then maybe do the same to enter it into a database? Thanks for any help. A generic question begs a generic answer: foreach($formdata as $thisdata){ $result=mysql_query(insert into ... values($thisdata) where ...); } Hope this helps, but it would be useful to have code examples, etc so that a more relevant answer could be rendered. JM Thanks for your reply, your example demonstrates what i was doing but does that do a MySQL query for every piece of data? So 20 form values would be 20 db queries, would that not consume a lot of resources? Is their another way? As far as I know, there is no way to insert 20 unique rows of data into a MySQL table without executing 20 queries. Maybe someone else here does(?). Perhaps drop a note over on the MySQL list, since this is really more an SQL question than PHP. Sorry I couldn't help. JM -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Before I pull anymore hair out.. Is anyone Using..
Hi, You may try to run your codes with CLI, this provides to you that the see the some errors if have. And also you have posibility strace usage. Best Regards. -Cafer Chuck Carson [EMAIL PROTECTED] writes: Is anyone here using php 5.0.4 on Solaris 9 and compiled with Oracle 10g support and using apache 2.0.54? I have looked at every 10 times over. I have built php with oracle support probably 100 times on 5 different platforms and never had as many issues as I have had so far with this system. After finally getting php to build with everything I needed, I am getting seg faults when accessing a php page that connects to the oracle database. (but it doesn't happen _every_ time, it is inconsistent) I'm at a loss and must move to tomcat/jsp/servlets if I can't get a stable platform up this week. =( Thx CC -- 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] Content Header
Hi, You may try that; header(Content-Disposition: attachment; filename=\. $filename .\); Best Regards -Cafer On 7/20/05, Christopher J. Umina [EMAIL PROTECTED] wrote: Hello! I currently have a script which streams data out of a MySQL database, and prints the content headers correctly, however, when I use the following line: header(Content-Disposition: attachment; filename=\. $filename .\); it prompts the user to download the file each time they go to the site. The problem is, I want the filename to be in the header, incase somebody right clicks and saves the file, but I don't want the user to be prompted to download the file when they're just trying to look at it. Does anybody know a way I can achieve this result? Thank you! Christopher J. Umina -- 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] Content Header
Sorry it was header(Content-Disposition: inline; filename=\. $filename .\); -Cafer On 7/20/05, Cafer Simsek [EMAIL PROTECTED] wrote: Hi, You may try that; header(Content-Disposition: attachment; filename=\. $filename .\); Best Regards -Cafer On 7/20/05, Christopher J. Umina [EMAIL PROTECTED] wrote: Hello! I currently have a script which streams data out of a MySQL database, and prints the content headers correctly, however, when I use the following line: header(Content-Disposition: attachment; filename=\. $filename .\); it prompts the user to download the file each time they go to the site. The problem is, I want the filename to be in the header, incase somebody right clicks and saves the file, but I don't want the user to be prompted to download the file when they're just trying to look at it. Does anybody know a way I can achieve this result? Thank you! Christopher J. Umina -- 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 and undelivered mail
hi, This looks like imposible. Because generaly, SMTP is running asyncron mode. Maybe you can do it mail's return-path's mailbox checking. But this will not be syncron too. Best Regards. -Cafer Angelo Zanetti [EMAIL PROTECTED] writes: HI all. Is it possible to determine if a mail was sent successfully or not delivered using PHP? Obviously using PHP to send the emails. thanks in advance ANgelo -- 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