[PHP] Re: read file
Is it so easy to open a file and include it in a page? I do it this way: * $file_name = "filename.txt"; if(file_exists($file_name)) { $file_pointer = fopen($file_name, "r"); $file_read = fread($file_pointer, filesize($file_name)); fclose($file_pointer); print "$file_read"; } ** Jaime Iniesta Alemán - IT Specialist IBM Global Services Tel. 34-91-3977450 - e-mail: [EMAIL PROTECTED] ** $content = file('file_name.txt'); $HTML .=''; foreach ($content as $v){ $HTML .=''.$v.''; } $HTML .=''; echo $HTML; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Cool?
Well, my site about Talking Heads is kinda cool, and I'm using PHP in it, more and more everyday. Soon it'll let visitors add their own comments to the pages, just like the anotated PHP manual: http://thismustbetheplace.net Jaime From: "Carry Ian" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Mime-Version: 1.0 Content-type: text/plain; charset="iso-8859-1" Subject: begineer + coolsite I found this site http://www.Banners4i.com while surfing the net, may be it could be useful to you. It has Free Banner / Link Exchange Server, Counter Server and a WAP Counter Server developed using PHP (may be PHP4, MySQL, WML) If you know of any cool sites developed using PHP pl. let me know. -- Get real solutions to all your problems. http://www.salahkarindia.com - India's first advisory Portal Your friend, advisor, healer,companion!!! Register now to get free advice on all your problems. -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Name of file?
Here goes an easy one... I need a script that returns me the name of the page it is in. I mean, if this script is in a page called "test3.php", then it should return "test3.php", and if it is on a page called "heynow.php" it should return, you guessed it, "heynow.php". Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Sending mail without using mail()
Ok, where can I find a tutorial about sending mail using fsockopen ? *** > Hi, is it possible to send SMTP mail if the server where are my pages > hosted forbids the use of the mail() function ? I mean, by opening a > sockets connection to an external SMTP server and writing the commands > there directly... Yes, *IF*: The ISP was not smart enough to realize this and didn't disable the http://php.net/fsockopen function Your SMTP server will accept connections from your web-server. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Sending mail without using mai() ?
Hi, is it possible to send SMTP mail if the server where are my pages hosted forbids the use of the mail() function ? I mean, by opening a sockets connection to an external SMTP server and writing the commands there directly... Jaime -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]