[PHP] Re: read file

2001-11-23 Thread Jaime Iniesta Aleman
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";

[PHP] Cool?

2001-11-22 Thread Jaime Iniesta Aleman
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] Mi

[PHP] Name of file?

2001-11-20 Thread Jaime Iniesta Aleman
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

[PHP] Sending mail without using mail()

2001-11-16 Thread Jaime Iniesta Aleman
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 > the

[PHP] Sending mail without using mai() ?

2001-11-14 Thread Jaime Iniesta Aleman
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 unsubsc