Re: [PHP] Apache 2.0 + PHP
On Mon, 2002-07-15 at 18:30, Gerard Samuel wrote: I dont think Apache 2 or php 4.3.x are meant for production boxes.. My opinion, the latest verion of apache 1.3.x and php 4.1.2 (my test box is 4.2.1 but thats ok) Apache2 is meant for production. Php 4.2.1 is meant for production. With most distros, this should not be a problem whatsoever, but people using gcc3 may have no luck until they use php 4.3. This has been my experience with it to date. Michael Hall wrote: I've had a hunt through the mail archives but can't find a definite answer: Is Apache 2.0.x and PHP 4.2.x/4.3.x on Linux a viable proposition yet in a production environment? I guess the diversity of experiences described in the archives probably means no, but what is the current opinion? Some of the archive messages I read are quite old now. Michael Hall [EMAIL PROTECTED] -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Austin Gonyou [EMAIL PROTECTED] Coremetrics, Inc. signature.asc Description: This is a digitally signed message part
Re: [PHP] Retrieving data from a URL in PHP
You may need a user:pass appended to the URI. On Wed, 2002-06-05 at 15:11, Anthony Ritter wrote: The code that follows is from Welling and Thomson's book on PHP and mysql (page 372) I've tried it on Apache/ MS Windows 98 / PHP and I get the following line: No quote available. Questions... 1. Why can't I retrieve the present stock quote? 2. What is the variable $quote represent in the script? I cannot find where $quote has been assigned. Thanking all in advance. Tony Ritter .. html head titleStock Quote from NYSE/title /head body ? $symbol=IBM; echo h1Stock Quote for $symbol/h1; $theurl=http://finance.yahoo.com/q?s=ibmd=v1;; if (!($fp=fopen($theurl, r))) { echo Could not open the URL; exit; } $contents= fread($fp, 100); fclose($fp); $pattern=(\\\$[0-9]+\\.[0-9]+); if (eregi($pattern,$contents,$quote)) { echo $symbol was sold at: ; echo $quote[1]; } else { echo No quote available.; } echo br.This information retrieved frombr.a href=\$theurl\$theurl/abr.on .(date(l jS F Y g:i a T)); ? /body /html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-698-7250 email: [EMAIL PROTECTED] One ought never to turn one's back on a threatened danger and try to run away from it. If you do that, you will double the danger. But if you meet it promptly and without flinching, you will reduce the danger by half. Sir Winston Churchill signature.asc Description: This is a digitally signed message part
Re: [PHP] Printing line x in a file
On Sun, 2002-05-12 at 00:10, Miguel Cruz wrote: On Sat, 11 May 2002, Andrew Conner wrote: I have a script where I need to get the text from line number $line in file $filename then save it to a var ($text) and then print it. For example, in the file lamb.txt (just an example file): Mary was a little lamb, whose fleece was as white as snow. I need to get line number 3 (fleece) and print it (print $text). How would I go about this? Perhaps you might say, using a for loop, with x=$somelineno, type of format might be the easiest way to do this from user input or some such thing. fopen() the file and call fgets() three times. The return from the third fgets call will contain the third line (including the terminating newline, so strip() it if you don't want that). miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-698-7250 email: [EMAIL PROTECTED] One ought never to turn one's back on a threatened danger and try to run away from it. If you do that, you will double the danger. But if you meet it promptly and without flinching, you will reduce the danger by half. Sir Winston Churchill signature.asc Description: This is a digitally signed message part
Re: [PHP] PHP 4.2.0 RC2 + Apache 2.0.35 .. DirectoryIndex problem
do you have the SetInputFilter and SetOutputFilter lines set? On Tue, 2002-04-09 at 15:56, Adam Plocher wrote: So I just got PHP 4.2.0 RC2 and Apache 2.0.35 almost completely working. The only problem I am having now, is Apache's DirectoryIndex option. Whenever I add index.php to that (like I would do in Apache 1.3), I get a 403 error every time I visit my site. When I look in my errorlog I see this: [Sun Apr 07 00:51:34 2002] [error] [client xxx.xxx.xxx.xxx] Directory index forbidden by rule: /home/apache2/htdocs/site1/index.php AFAIK this should work, I've set this up a billion times in Apache 1.3. Here is my DirectoryIndex line: DirectoryIndex index.php index.phtml index.html index.html.var I realize this isn't really a programming question, so it may be a little off-topic, but if anybody could help me, I'm sure you guys could. Thanks a lot. -Adam -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-698-7250 email: [EMAIL PROTECTED] It is the part of a good shepherd to shear his flock, not to skin it. Latin Proverb signature.asc Description: This is a digitally signed message part
RE: [PHP] cool PHP sites
How about LinuxJournal, or PHPNuke.org? On Tue, 2002-02-26 at 13:29, Demitrious S. Kelly wrote: well my site isn't 'big name' but it's got a very cool catch to it... it's got an ftp indexer that I'm developing. You submit an ftp site, and it logs onto the ftp, grabs all of the filenames and sizes, pops everything into a mysql database, which is searchable from a web page (located on the same site, and also written in php) plus the source is available in .phps format (I haven't gotten any time to package it nicely into an what I would call an end-user-quality .tgz yet...) http://www.apokalyptik.com and http://www.apokalyptik.com/ftp/ respectively... the entire web site runs purely off of php... not that you are interested, but just in case... -Original Message- From: Chris Lott [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 11:08 AM To: [EMAIL PROTECTED] Subject: [PHP] cool PHP sites -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It strikes me that my students really don't have a good grasp of what PHP is capable of doing, since they are getting bogged down in learning the minutiae of the language itself. So (quickly if possible-- I'd like to demo some sites tonight) what are some examples of cool and publically accessible sites that use PHP? I'm looking for sites that demonstrate what PHP can do, examples of big name sites using PHP, etc. I can explain how the back end technology is working if I have some good sites to use as a framework. I'd like to keep them excited about the potential, you know? c -BEGIN PGP SIGNATURE- Version: 6.5.8ckt - KeyID: 0x51046CFD - http://www.chrislott.org/geek/pgp/ iQA/AwUBPHvc/daLYehRBGz9EQI9KwCgu7SKkrKqmcQ7zf+lAZBwKgvAlWcAmwQ7 xCs+oCAo6Hn5UkHuDmR4ZzlT =koDz -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-698-7250 email: [EMAIL PROTECTED] It is the part of a good shepherd to shear his flock, not to skin it. Latin Proverb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] cool PHP sites
You could also use netcraft and see who's running PHP. Also, I think PHP.net has some info on this. On Tue, 2002-02-26 at 13:29, Demitrious S. Kelly wrote: well my site isn't 'big name' but it's got a very cool catch to it... it's got an ftp indexer that I'm developing. You submit an ftp site, and it logs onto the ftp, grabs all of the filenames and sizes, pops everything into a mysql database, which is searchable from a web page (located on the same site, and also written in php) plus the source is available in .phps format (I haven't gotten any time to package it nicely into an what I would call an end-user-quality .tgz yet...) http://www.apokalyptik.com and http://www.apokalyptik.com/ftp/ respectively... the entire web site runs purely off of php... not that you are interested, but just in case... -Original Message- From: Chris Lott [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 11:08 AM To: [EMAIL PROTECTED] Subject: [PHP] cool PHP sites -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It strikes me that my students really don't have a good grasp of what PHP is capable of doing, since they are getting bogged down in learning the minutiae of the language itself. So (quickly if possible-- I'd like to demo some sites tonight) what are some examples of cool and publically accessible sites that use PHP? I'm looking for sites that demonstrate what PHP can do, examples of big name sites using PHP, etc. I can explain how the back end technology is working if I have some good sites to use as a framework. I'd like to keep them excited about the potential, you know? c -BEGIN PGP SIGNATURE- Version: 6.5.8ckt - KeyID: 0x51046CFD - http://www.chrislott.org/geek/pgp/ iQA/AwUBPHvc/daLYehRBGz9EQI9KwCgu7SKkrKqmcQ7zf+lAZBwKgvAlWcAmwQ7 xCs+oCAo6Hn5UkHuDmR4ZzlT =koDz -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-698-7250 email: [EMAIL PROTECTED] It is the part of a good shepherd to shear his flock, not to skin it. Latin Proverb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP-cvs + Apache 2.0.32 + glibc 2.2.5 + gcc3 = problem?
Ok..found something interesting. PHP + Apache 2.0.32 does not run on glibc 2.2.5. (fyi 2.2.5 was compiled with 3.0.3 and my kernel, and binutils, and openssl) I tarred up an installation of Apache 2.0.32 I made from a different machine running 2.2.4, compiled from 2.96, as well as the php module I installed there too. I found that both modules I have(one compiled using gcc3 and one with gcc2), do not let httpd start. I'm not sure where to go from here to find out which half it is, but I'm going to do the following: 1. not use ssl(which I did on my test setup as well as the glibc 2.2.5 system) 2. minimal configuration and installs of both php and apache2. e.g. ./configure --prefix=/web/2.0 --enable-so (for apache2) then ./configure --with-apxs2=/web/2.0/bin/apxs (for php4-cvs) If that works, then something in the middle is mucking things up, and I'll try to see what I can do there. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-698-7250 email: [EMAIL PROTECTED] It is the part of a good shepherd to shear his flock, not to skin it. Latin Proverb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache 2.0.32 + PHP from CVS not working
The PHP-Dev list doesn't want to hear it, so I guess I'm *stuck* back here. Will someone please tell me why the latest CVS of PHP won't let Apache 2.0.32 work and when a graceful fix will be implemented? Hmm..this sounds like it should go to the dev list... -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-698-7250 email: [EMAIL PROTECTED] It is the part of a good shepherd to shear his flock, not to skin it. Latin Proverb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HOT!!! PHP4.1.x - Step by Step Installation manual
It'd make more people happy I'll bet if you also included apache for said platform. You might even like it. :) On Thu, 2002-01-24 at 19:16, Andre Amaral wrote: Hi all. Here is my first attempt to make easy Step by Step installation manual for PHP4.1.x on Windows 2000 based systems running IIS5 using CGI or ISAPI. Here is the link that will ake a lot of people happy. :) http://www.experttek.com/php/installation.txt Fell free to contact me. Contacts are in the manual. -- 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] -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-698-7250 email: [EMAIL PROTECTED] It is the part of a good shepherd to shear his flock, not to skin it. Latin Proverb signature.asc Description: This is a digitally signed message part
Re: [PHP] How to resolve IP with PHP
Did you look at the function list to see if gethostbyname() or something similar exists? On Mon, 2002-01-21 at 01:20, Police Trainee wrote: Hello. Can anyone tell me how to resolve an IP into a hostname? I've tried $REMOTE_HOST but all i get back from it is the ip or blank. Is there another environmental variable i need to use or do i have to do something more complicated? thanks so much! -mark __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- 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] -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-698-7250 email: [EMAIL PROTECTED] It is the part of a good shepherd to shear his flock, not to skin it. Latin Proverb signature.asc Description: This is a digitally signed message part
Re: [PHP] Can PHP access BIOS information?
It might be possible with php of you could write a function that access lm_sensor type info. Just a thought. On Fri, 2002-01-11 at 00:03, Jason Bell wrote: as far as I know, PHP can't do that itself, however. if you had a commandline utility that did the BIOS read for you, you should be able to have PHP exec() out to it - Original Message - From: Police Trainee [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Thursday, January 10, 2002 9:04 PM Subject: [PHP] Can PHP access BIOS information? Hello. I was trying to determine if PHP has the ability to access BIOS information in a WIN environment. Specifically, I would like to have PHP access the cpu temperature as appears in the BIOS menu. I am running Apache 1.3.14. The board is a PC 100 Super 7 M598. Any help/thoughts/ideas greatly appreciated! Thank you! -mark __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- 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] -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-698-7250 email: [EMAIL PROTECTED] It is the part of a good shepherd to shear his flock, not to skin it. Latin Proverb signature.asc Description: This is a digitally signed message part
[PHP] Parsing SAR output with PHP.
I'm going to do some parsing of large SAR files and I'd like to use PHP to do it so it's more of an automated process as far as logging this type of info. Does anyone have any suggestions as far as how to go about doing this? The real question I suppose is how could I parse this type of output into something I could use to make a graph. Example: 12:20:00 PM CPU %user %nice %system %idle 12:30:00 PM all 2.17 0.79 0.77 96.27 12:40:00 PM all 5.11 0.29 0.97 93.63 12:50:00 PM all 2.80 0.28 0.75 96.17 01:00:00 PM all 2.16 0.81 0.81 96.22 01:10:00 PM all 2.26 0.77 0.87 96.10 01:20:00 PM all 2.02 0.75 0.76 96.47 01:30:00 PM all 3.31 0.28 0.67 95.74 01:40:00 PM all 2.05 0.00 0.44 97.51 01:50:00 PM all 3.32 0.00 0.66 96.02 02:00:00 PM all 4.04 0.00 0.64 95.32 02:10:00 PM all 1.54 0.00 0.33 98.14 02:20:00 PM all 3.81 0.00 0.59 95.61 02:30:00 PM all 5.41 0.00 1.12 93.46 02:40:00 PM all 5.86 0.00 1.09 93.05 02:50:00 PM all 6.82 0.00 1.18 92.00 03:00:00 PM all 7.48 0.00 1.32 91.20 03:10:00 PM all 2.79 0.00 0.91 96.30 03:20:00 PM all 3.94 0.00 1.26 94.81 03:30:00 PM all 4.72 0.00 1.15 94.13 03:40:00 PM all 4.22 0.00 1.28 94.51 03:50:00 PM all 3.57 1.12 1.45 93.86 04:00:00 PM all 3.21 0.87 1.31 94.61 04:10:00 PM all 3.18 0.96 1.35 94.51 04:20:00 PM all 3.53 0.96 1.39 94.12 04:30:00 PM all 2.80 0.90 1.30 95.00 04:40:00 PM all 3.42 1.06 1.38 94.14 04:50:00 PM all 9.03 0.00 1.77 89.20 05:00:00 PM all 4.41 0.23 1.40 93.97 05:10:00 PM all 4.84 0.19 1.31 93.66 05:20:00 PM all 9.81 0.00 1.65 88.54 Average: all 2.28 0.60 0.71 96.40 I was thinking of possibly creating a php SAR parsing library that would put this data into a database(postgres, oracle, or mysql), and then use something like JPGraph to pull the data out of the DB and then display it. Problem is I'm not sure how to go about breaking up the rows to allow them to be inserted into the db. Thanks in advance for any ideas. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-698-7250 email: [EMAIL PROTECTED] It is the part of a good shepherd to shear his flock, not to skin it. Latin Proverb signature.asc Description: This is a digitally signed message part
[PHP] SAR data graphing toolkit
Is there a PHP SAR data graphing toolkit out there? I've yet to see one. Any info on this is welcome. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-698-7250 email: [EMAIL PROTECTED] It is the part of a good shepherd to shear his flock, not to skin it. Latin Proverb signature.asc Description: This is a digitally signed message part
Re: [PHP] draw image graph with uptime command
x axis= 0 - 365 (time in days) y axis= 0 - 100(or 1 depending on the value you're taking for utilization. It's best to convert it into %.) (percent util) After that you'll need some way of being able to plot y/x or Percent util over time. After that, it should be easy. On Fri, 2002-01-04 at 01:54, Daniel Masur wrote: what i want to do is, parsing the uptime command in suse, get the stats for 1, 5 and 15 minute cpu utilisation, and draw an image. just like the taskmanager in win windows 2000, xp, and nt.anybody did this before? should look like this: / | / |/\/ |___/\/ | / |/__ uptime: 68days parsing the uptime command, isnt a problem, but how to coordinate the 3 values in the image. also i have the ability, to save all values in a mysql db. anybody can help? ps, i never worked with images in php before... -- 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] -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-698-7250 email: [EMAIL PROTECTED] It is the part of a good shepherd to shear his flock, not to skin it. Latin Proverb signature.asc Description: This is a digitally signed message part
[PHP] PHP 4.1.1 + Apache 2.0.30 Ouput Filter....
The following URL works, but then the next one doesn't. Can someone offer some advice on this? http://digitalroadkill.net:8080/ works. index.php is happy and the output filters work. http://digitalroadkill.net:8080/Galleries/ does not work. It tries to get the file as though it were not understood by the output filter. I'm using the following for the OuputFilter lines in my httpd.conf: # #For PHP to work AddType application/x-httpd-php .php .html FilesMatch *.php SetInputFilter php SetOutputFilter php /FilesMatch BTW, FilesMatch *.php,*.html doesn't seem to work anymore. That's what I used to use, and everything was hunky dory. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-698-7250 email: [EMAIL PROTECTED] It is the part of a good shepherd to shear his flock, not to skin it. Latin Proverb signature.asc Description: This is a digitally signed message part
Re: [PHP] PHP 4.1.1 + Apache 2.0.30 Ouput Filter....
Ok. I fixed it. I just had my filters jacked up. After fixing them using \.php instead of *.php, I was then calling the wrong page and getting a 404, plus the browser I was using had cached the content-type and was screwing everything up. After just shutting down my browsers, dumping cache, resetting apache, rechecking my filters, everything is fine. Thanks to anyone who was thinking. On Wed, 2002-01-02 at 15:35, Austin Gonyou wrote: The following URL works, but then the next one doesn't. Can someone offer some advice on this? http://digitalroadkill.net:8080/ works. index.php is happy and the output filters work. http://digitalroadkill.net:8080/Galleries/ does not work. It tries to get the file as though it were not understood by the output filter. I'm using the following for the OuputFilter lines in my httpd.conf: # #For PHP to work AddType application/x-httpd-php .php .html FilesMatch *.php SetInputFilter php SetOutputFilter php /FilesMatch BTW, FilesMatch *.php,*.html doesn't seem to work anymore. That's what I used to use, and everything was hunky dory. -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-698-7250 email: [EMAIL PROTECTED] It is the part of a good shepherd to shear his flock, not to skin it. Latin Proverb -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-698-7250 email: [EMAIL PROTECTED] It is the part of a good shepherd to shear his flock, not to skin it. Latin Proverb signature.asc Description: This is a digitally signed message part
Re: [PHP] Quanta IDE - PHP Highlighing for 4.0.1
So is glimmer. On Wed, 2001-12-19 at 17:27, Mike Eheler wrote: Attached is a text file that will update Quanta IDE 2.0.1 syntax highlighting for PHP. Simply use your favourite text edit quanta/kwrite/highlight.cpp in your quanta-2.0.1 source tree, and paste the text from this attached file overtop of the phpKeywords and phpTypes variables. If anyone knows how I can make a real patch (diff or whatever) lemme know cuz I've never done it before. Also if you notice anything that shouldn't be a keyword, or is missing from either keywords or functions (currently there are 2499 functions defined in this file) let me know. Mike -- 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] -- Austin Gonyou Systems Architect, CCNA Coremetrics, Inc. Phone: 512-698-7250 email: [EMAIL PROTECTED] Have regard for your name, since it will remain for you longer than a great store of gold. Ecclesiastes, Aprocrypha signature.asc Description: This is a digitally signed message part