[PHP] Newbie recursive directory
G'day all I've been trying for a day or so to get a script to traverse all the levels of a directory. With help from list archives and web sites I've come up with this: "; } ?> I've read lots f stuff about "if (is_dir($blah)" but I get a bit lost with the navigation after that (I'm _real_ new to *nix as well). Could someone please help as to how it would fit into my script? Cheers and thanks kim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Special characters
G'day all, I have a directory with an "" (mac Option-F) in the name which PHP processes as "Ä". This change renders the files in the directory unopenable (the path is bad). Is there some sort of encoding/unencoding which will handle this character correctly? I've tried every form of encoding I can find in the docs but nothing seems to work. Can anyone suggest what to look for in the docs or a possible solution? cheers Kim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] help with getting php going(2)
G'day Karl > Hey guys I finally got my phpinfo file to show on apache server > But when I try to do a hello world or browser check I get a 500 error > message FWIW, I've seen this error when I've had mac line endings instead of unix. cheers kim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Echo issue
G'day all, I've stumbled onto a weird problem after upgrading to Mac OSX 1.3. I had a script whose echo statement wasn't working so I decided to test the echo (I should point out that everything else with php is working fine phpinfo() etc). If I run the following I get nothing returned: ->"" I have spent about an hour looking at this and have found I can't echo anything with 16 characters or less! It can be over a single line or multiple lines eg. ->"" but ->12345678123456789 Am I missing something really obvious here? cheers Kim PS, I'm using Aaron Faby's excellent PHP Version 4.3.2 build -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Echo issue RESOLVED!
G'day Adam, David, John etc >> I have spent about an hour looking at this and have found I can't echo >> anything with 16 characters or less! I'm glad to report this is not a PHP issue. It turns out to be a Safari problem with Mac OSX (Safari was updated with OSX 10.3). All my PHP stuff is working correctly in IE so it looks like development will proceed there until Apple gets a fix. Cheers and many thanks for the replies kim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Echo issue RESOLVED!
G'day Chris > I would be very interested in learning more about this issue. Would you happen > to be able to provide an example HTTP transaction that Safari mishandles? If you use a 'proper' html file it works OK. If you simply create a text file (with .html extension) with less than 16 characters it returns nothing. The html doesn't bother me much - and realistically most people will never see the problem - but I often use short echo statements for debugging in php. > do you know if Apple is aware of this bug? They are now:) > By the way, I would recommend developing with something like Mozilla if you > can't use Safari. IE is about the worst choice for testing. Mozilla is fine also - I just happened to have IE open and tested it there... cheers kim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Scripts not running on OS X 10.3
G'day Ken > I tried your suggestion but the system won't let me modify it even with > su permissions. I'm too tired and frustrated to continue tonight. > Clearly, the installer must have messed something important up so I'm > just going to reinstall Panther tomorrow (have to partition my drive > anyway so what the heck) If you're re-installing anyway, give the Complete MySQL, Complete Apache and Complete PHP installers from serverlogistics.com a try. I have never had a problem with them and they come with a couple of nice preference panes for controlling things - including httpd.cong and log files. I used to use the Entropy builds but am sold on the serverlogistics ones now. cheers kim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Windows based Mail() problem (newbie)
Hello all, I have a PHP/MySQL/Apache site served on Mac OSX. The default install I used doesn't have a PHP.ini file but I do have sendmail configured and working. There is a simple html form which leads to a 'confirmation' page. They press the confirm button and a hidden field passes the data to 'confirm.php' which simply mails it to us. It works perfectly from both Mac OSX and Mac OS9 clients with the mail being received with all data intact. However, when accessed by a Windows machine running Explorer, the sent mail contains no text. The email gets generated, addressed and sent OK, but with a blank message. I'm wondering if there's something simple I'm missing here as far as configuration is concerned? Any assistance would be greatly appreciated. Cheers and thanks kim FWIW, the entire confirm.php script follows: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Windows based Mail() problem (newbie)
G'day John > PHP is server side, so it's going to do the same thing each time. If > it's sending a blank message, then no data was received. Thanks for the response. I have been able to find the problem by replacing my mail() with phpinfo(). It certainly wasn't passing the variables with Windows but is with Macs. I checked the HTML forma and found I had the enctype set to plain/text. I changed it to multipart/form-data and now it works fine (although there are still some strange things going on with line endings which I'll need to resolve) Cheers and thanks again kim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php