[PHP] Regular Expression
Hi, I have this ereg call ereg("([-d])[rwxst-]{9}.* [0-9]* [a-zA-Z]+ [0-9: ]* (.+)",$dirline,$regs); This regular expressions parses the following line: drwxrwxrwx 1 ownergroup 0 Nov 5 23:19 fantasy to return: fantasy (or in general any filename/directory name) The above regular expression works fine in every except when the filename is something like this: drwxrwxrwx 1 ownergroup 0 Nov 5 23:19 6 fantasy Notice in this case the filename is "6 fantasy" however $regs[1] returns only: "fantasy" Can anyone help me to fix this problem. Thanks a bunch -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Data Post or Get Variable Undefined
Hi, In new version of php 4.2, I am trying to do post or get of data from html form to the php page. But it says undefined variable. Is there something different in new version for post and get. It do have increased security I have read but how can I do post and get. I have changed php INI file variable of cgi force redirect to 0 as PHP was not working for me on other values. But now cannot do post and get. Have read online help but couldnt figure out so please help. How can I do post and get in php new installers. OS : Windows Statbat();
[PHP] Sending Html Pages
Hi, I am trying to send html pages via email, that is instead of sending plain text format to the client I am trying to send Rich Text using mail function of PHP. At first I was sending -- Hello Bob, Thanks for downloading this from my site -- BUT for Rich Text I am doing -- Hi, Thanks for downloading this from my site -- But what happens is instead of sending html page it sends as a text with all code displayed as it is without being parsed. Please tell what can I do to send rich text emails as the this one u are reading to the clients using PHP mail function. Kind Regards Salman
[PHP] Plz dont hate me for this
Hi, I am also PHP lover plz dont hate me for this but I really need to know any free perl hosting company where I can host my perl script. Only circumstances has made this that I programming in perl. I have no idea where to put my question, as I always did programming in php and asked this list. So I am asking this question here to, plz tell me about free CGI hosting site. Asking for the help and forgiveness Statbat