RE: [PHP] Content Type Text?
Woops..My bad. :) It even says it in mozilla. :) -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [EMAIL PROTECTED] -Original Message- From: Jerry Lake [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 4:38 PM To: [EMAIL PROTECTED]; PHP Subject: RE: [PHP] Content Type Text? text/plain Jerry Lake Interface Engineering Technician Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Jeff Oien [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 01, 2001 2:35 PM To: PHP Subject: [PHP] Content Type Text? I've looked all over and can't find a content-type declaration for text. This is my guess header(Content-Type: text/txt); but I'm not sure if this is right. I know this is more HTTP than PHP. I want info to be displayed in a browser as plain text not HTML. Thanks. Jeff Oien -- 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 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] is_file() and is_dir() info
I've read a lot about the is_file and is_dir functions, but something is still missing. If I call is_file to tell me if something is a file or not, and it must traverse a large path, e.g. ./dir1/dir2/file.txt, it will almost always fail. Can anyone tell me why, and what a possible work around is? I guess I could CHDIR() first or something. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [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]
RE: [PHP] is_file() and is_dir() info
Will somone on this list please help me in this? All the examples I've come across researching this are WAY too complex for getting around this if someone can confirm my suspicions. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [EMAIL PROTECTED] -Original Message- From: Gonyou, Austin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 12:08 PM To: 'Chris Cocuzzo'; [EMAIL PROTECTED] Subject: [PHP] is_file() and is_dir() info I've read a lot about the is_file and is_dir functions, but something is still missing. If I call is_file to tell me if something is a file or not, and it must traverse a large path, e.g. ./dir1/dir2/file.txt, it will almost always fail. Can anyone tell me why, and what a possible work around is? I guess I could CHDIR() first or something. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [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 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] is_file() and is_dir() info
Please someone help me on this? -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [EMAIL PROTECTED] -Original Message- From: Gonyou, Austin Sent: Wednesday, July 25, 2001 12:50 PM To: Gonyou, Austin; 'Chris Cocuzzo'; [EMAIL PROTECTED] Subject: RE: [PHP] is_file() and is_dir() info Will somone on this list please help me in this? All the examples I've come across researching this are WAY too complex for getting around this if someone can confirm my suspicions. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [EMAIL PROTECTED] -Original Message- From: Gonyou, Austin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 12:08 PM To: 'Chris Cocuzzo'; [EMAIL PROTECTED] Subject: [PHP] is_file() and is_dir() info I've read a lot about the is_file and is_dir functions, but something is still missing. If I call is_file to tell me if something is a file or not, and it must traverse a large path, e.g. ./dir1/dir2/file.txt, it will almost always fail. Can anyone tell me why, and what a possible work around is? I guess I could CHDIR() first or something. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [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 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] is_file() and is_dir() info
Well, I finally got some time on this and found that is_file() and is_dir() will NOT traverse drectories very well. So, you must chdir(), then execute is_file() is_dir() as needed. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [EMAIL PROTECTED] -Original Message- From: Gonyou, Austin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 3:19 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] is_file() and is_dir() info Please someone help me on this? -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [EMAIL PROTECTED] -Original Message- From: Gonyou, Austin Sent: Wednesday, July 25, 2001 12:50 PM To: Gonyou, Austin; 'Chris Cocuzzo'; [EMAIL PROTECTED] Subject: RE: [PHP] is_file() and is_dir() info Will somone on this list please help me in this? All the examples I've come across researching this are WAY too complex for getting around this if someone can confirm my suspicions. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [EMAIL PROTECTED] -Original Message- From: Gonyou, Austin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 12:08 PM To: 'Chris Cocuzzo'; [EMAIL PROTECTED] Subject: [PHP] is_file() and is_dir() info I've read a lot about the is_file and is_dir functions, but something is still missing. If I call is_file to tell me if something is a file or not, and it must traverse a large path, e.g. ./dir1/dir2/file.txt, it will almost always fail. Can anyone tell me why, and what a possible work around is? I guess I could CHDIR() first or something. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [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 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] Turning a filehandle into an array
What is the best way to turn a filehandle into an array? This is the code I've got now, but I don't like it because it's rather in efficient for my purposes. I can format this to be much prettier, but I'm not too concerned about it right now. I'd just like to get the filehandles to work. --snip-- ? if ($dr == null) $dir=opendir(./); else $dir=opendir($dr); exec(ls $dir, $ls); print pre\n; for($i=0;$isizeof($ls);$i++) { print $ls[$i].\n; } print /pre\n; ? --snip-- -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [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]
RE: [PHP] Resolution
If you want to see what you can get from the client, serverside. Please run the following: ? phpinfo(); ? Put that into some php file, and it will tell you what PHP will allow you to get be default. I feel that the JS answer is about as correct as your going to get. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [EMAIL PROTECTED] -Original Message- From: Tyler Longren [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 10:54 AM To: Kyle Smith; [EMAIL PROTECTED] Subject: Re: [PHP] Resolution I don't believe you can get screen resolution with PHP. You'd need to use something client side, such as Javascript. Tyler - Original Message - From: Kyle Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 23, 2001 6:45 PM Subject: [PHP] Resolution is there a code to show a users screen resolution and/or make a webpage go to a certain page of the site depending on the users screen resolution? -legokiller666- http://www.StupeedStudios.f2s.com New address new site ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666 -- 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]
RE: [PHP]include question, WHY doesn't this work...
have you tried giving the absolute path to the included file? include(/some/path/to/a/file.php); -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [EMAIL PROTECTED] -Original Message- From: Unni [mailto:[EMAIL PROTECTED]] Sent: Monday, July 23, 2001 2:53 PM To: Chris Cocuzzo Cc: [EMAIL PROTECTED] Subject: Re: [PHP]include question, WHY doesn't this work... Is the lib direcotory under the working directory, I mean, if your program is excuting under temp directory, the lib directory has to be below temp directory. If you are running this program from the root directory then lib has to be below root directory. Your code looks good to me. One more thing I can think of is, do you read access to lib directory, just curious. Chris Cocuzzo wrote: hey- I have a piece of code which does a simply INSERT query into an mp3 table. I've tested it out, and it completes the query, however there is one bug that I just have no clue about. this code does not work when i try to connect to the db: include(lib/db_config.php); $connection = db_connect(fplg); if(!connection) { die(sql_error()); } the include fails and so the db_connect function is undefined. this code works: include(db_config.php); $connection = db_connect(fplg); if(!connection) { die(sql_error()); } I DO have a directory called lib in my root folder. am I calling the include wrong in that first piece. Note that I also tried the first one with a foward slash in front of the 'lib', but had no luck. help! chris -- 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]
RE: [PHP] Re: echo vs printf
print, echo, and printf are all available to help different coders code in their own style. So if you're used to just using echo in shell, or print in perl/basic or perhaps printf, in c/c++/java/asp, there you go. Make a language easy to get stuff out of, and you can have a really quick user base. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [EMAIL PROTECTED] -Original Message- From: Steve Brett [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 10:38 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: echo vs printf don't echo and printf do different jobs ? as i understand it echo will dump anything to screen, fprint will accept formatted text args like you owe me %d dollars,$owed_amount) or something like that. i kind of use print by itself (harking back to the old days of basic etc) but use echo quite a lot. only use printf when i have to put cash amounts in and stuff like that. Steve Brother [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Why should I use printf instead of echo and vice versa? As for today I use printf mostly but I don't know why. brother Mail: [EMAIL PROTECTED] UIN: 4722160 Web: http://motd.st -- 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] Using PHP + GD to make bar graphs?
I'm looking to see if it's possible to do something like this. Has anyone seen anything like this at all? Thanks for the time. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [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] Best Way to set cookies
Id like to discuss what the best params are for setting cookies using PHP. Specifically the expirey. Anyone? -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [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] GMT Time and Setting Cookies in PHP
What's a good method for setting time in GMT? as in the expiration date for cookies? I saw two functions to do this with, but I haven't been able to get them to output anything properly. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [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] PHP 4.0.6 and APXS2
After getting apache 2 + 4.0.6 built and installed, I can finally use PHP and all is well..except... When accessing a script which uses an exec() statment like the following: snip- exec(ls -d */*.jpg,$ls); snip- When the LS is performed, it is not performed in the directory where the PHP resides, but rather in /tmp. What's going on here. Also, I have the following errors: -snip- Warning: Failed opening 'header.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /tmp/really_silly on line 3 Warning: Failed opening 'footer.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /tmp/really_silly on line 26 -snip- The includes are relative to the path that the PHP script is in. It should just work, but instead it does what you see above. I didn't see this behaviour with Apache 1.3.x but it could be my Output/Input Filter definitions too. Any feedback is appreciated. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [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] PHP 4.07-dev + Apache 2.0.19-dev
Has anyone had any luck getting it to work? I can compile both Apache fine and add php as a module no problem and Apache is happy. But it will not parse any PHP content. Please help! -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [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] PHP with Apache 2 from CVS
Has anyone been able to overcome the APR_SAVE_BRIGADE build error when compiling as an Apache2 module? Any help in this direction is greatly appreciated. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [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] PHP 4.0.5 CVS + Apache 2 CVS
Anyone trying this at all? Anyone find a fix for the apr_save_brigade failure? -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-796-9023 email: [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]