[PHP] a DOT or a BLANK SPACE
Hi. We HAVE TO use names like Num. or Home Address in for our input tags in the forms. That is: input type=text name=Num. input type=text name=Home Address When I receive the info in my PHP file, after the form has been posted, the variable name I get is: 'Num '. So, the dots are being replaced for a blank space. I can't take for granted that any blank space is a dot since my inputs names are using them. How can I identify between this two variable names? Thanks for your help! Regards, 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]
[PHP] include() in a file incuded()
Hi! I've been blocked by this tiny problem... I have a main.php file: ? $frames = true; $open = http://myserver.com/info.html;; if ($frames) { include (frameset.php); } ? The frameset.php looks like (omitting almost all the HTML): frameset rows=100,* border=0 frame src=onlineview.php3 frame src=footer.html /frameset In the onlineview.php file I need to use the $open URL defined before, but it isn't defined here. What am I doing wrong? How can I get $open's value from this file? Thanks! 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]
RE: [PHP] include() in a file incuded()
Thanks for your answer George. But I still have a problem. What if I need to get another variables values from the main.php file? Do I need to pass them with the URL? Something like: frame src=? echo $open.?another_var=.$another_val; ? The big question is including a file from an included file passes the values of the variables defined in the parent? Regads, Jaime -Mensaje original- De: George E. Papadakis [mailto:[EMAIL PROTECTED]] Enviado el: domingo 20 de mayo de 2001 13:22 Para: Jaime Torres; [PHP] General List Asunto: Re: [PHP] include() in a file incuded() Replace frame src=onlineview.php3 with frame src=? echo $open;? Variable $open is passed to the included file automatically. Hi! I've been blocked by this tiny problem... I have a main.php file: ? $frames = true; $open = http://myserver.com/info.html;; if ($frames) { include (frameset.php); } ? The frameset.php looks like (omitting almost all the HTML): frameset rows=100,* border=0 frame src=onlineview.php3 frame src=footer.html /frameset In the onlineview.php file I need to use the $open URL defined before, but it isn't defined here. What am I doing wrong? How can I get $open's value from this file? Thanks! 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] -- 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 from a Unix
I'm running a couple of web scripts in a Unix system with Apache. I need to send an email message with some info but I have to do it using a SMTP running in another server on my network. How can I do this? I've tried setting the SMTP parameter in the php.ini file, but it'd only work if I'm running WinNT. Note: I can't send it via sendmail command line (local). Any ideas? Thanks, 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]
[PHP] Getting a binary file from URL
Hi, I'm trying to get a binary file from an URL and then save it to a local disk. I'm trying this: $fd = fopen ($filename, "rb"); $contents = fread ($fd, filesize ($filename)); fclose ($fd); $fp = fopen ($tempfile, "wb"); fwrite ($fp,$contents); fclose ($fp); If I use $filename="local_file" the script works great, but if I use $filename="http://myserver.com/remote_file" the resultant local file is empty. How can I do this? Thanks in advance, 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]
RE: [PHP] Getting a binary file from URL
Well, it use to happen... [from function.filesize.html] int filesize (string filename) This function will not work on remote files; the file to be examined must be accessible via the server's filesystem. Ok, I screwed up. But now that I know what went wrong, how can I override this? The docs said: "Fread() reads up to length bytes from the file pointer referenced by fp. Reading stops when length bytes have been read or EOF is reached, whichever comes first." How do I use fread to read until EOF? Note: I don't know the file size, it could be from 1 byte to xxx Mb. Thanks, Jaime -Mensaje original- De: Jaime Torres [mailto:[EMAIL PROTECTED]] Enviado el: domingo 22 de abril de 2001 12:07 Para: [EMAIL PROTECTED] Asunto: [PHP] Getting a binary file from URL Hi, I'm trying to get a binary file from an URL and then save it to a local disk. I'm trying this: $fd = fopen ($filename, "rb"); $contents = fread ($fd, filesize ($filename)); fclose ($fd); $fp = fopen ($tempfile, "wb"); fwrite ($fp,$contents); fclose ($fp); If I use $filename="local_file" the script works great, but if I use $filename="http://myserver.com/remote_file" the resultant local file is empty. How can I do this? Thanks in advance, 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] -- 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]