php-general Digest 9 Oct 2005 09:35:00 -0000 Issue 3727

2005-10-09 Thread php-general-digest-help
php-general Digest 9 Oct 2005 09:35:00 - Issue 3727 Topics (messages 223777 through 223780): Re: per user php.ini 223777 by: Rory Browne Freetype and JPEG disabled 223778 by: Feris Thia C. 223780 by: cc Re: Dynamic sub directory listing without redirect

[PHP] Re: Freetype and JPEG disabled

2005-10-09 Thread cc
did you configured php with these option? --with-freetype-dir=/path/to/freetype --with-jpeg-dir=/path/to/jpeg On 10/9/05, Feris Thia C. [EMAIL PROTECTED] wrote: Hi All, I've tried to compile and install PHP with gd and freetype library enabled, and all PNG and GIF library are loaded. But

Re: [PHP] per user php.ini

2005-10-09 Thread James Benson
Nothing special on my configure line and the setting:- Configuration File (php.ini) Path looks like /home/USERNAME/public_html Only just noticed it's been switched over to CGI recently, It's also possible to have one php.ini per directory and the above mentioned setting always reflects the

Re: [PHP] per user php.ini

2005-10-09 Thread Rory Browne
they probably use something along the lines of mapping PHP to php -c $HOME/php.ini In Linux this would generally be done using binfmt_misc. On 10/9/05, James Benson [EMAIL PROTECTED] wrote: Nothing special on my configure line and the setting:- Configuration File (php.ini) Path looks like

[PHP] Get Mac Address

2005-10-09 Thread Ben Sagal
I have a local intranet server, running apache1.3+php4. Is it possible to get the mac address of computes which access on of my php pages? Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ID from lines?

2005-10-09 Thread Gustav Wiberg
Hi there! How do I get ID number from these lines? Do I have to use regular expressions? Line #3 : NH01LiteOn DVD±RW 16725http://www.varupiraten.se/web/spec_product.php?ID=1711PC-CD-DVD-LDW-1653S-09C1 Line #4 : NH01LITEON

Re: [PHP] ID from lines?

2005-10-09 Thread Gustav Wiberg
- Original Message - From: Al Hafoudh [EMAIL PROTECTED] To: Gustav Wiberg [EMAIL PROTECTED] Sent: Sunday, October 09, 2005 4:38 PM Subject: Re: [PHP] ID from lines? /ID=([0-9]*)\/ Thanx! /G @varupiraten.se Gustav Wiberg wrote: Hi there! How do I get ID number from these

Re: [PHP] ID from lines?

2005-10-09 Thread Gustav Wiberg
Hi Yes, it would work in these cases... But if there would be two or three =, then you couldn't generalize it in that matter... /G @varupiraten.se - Original Message - From: Kevin Waterson [EMAIL PROTECTED] To: Gustav Wiberg [EMAIL PROTECTED] Sent: Sunday, October 09, 2005 4:37 PM

[PHP] Regular expressions

2005-10-09 Thread Gustav Wiberg
Hi there! I'm no good at reg exp... Yes, I confess.. Here's my code ?php $lines = file('export/nhExportVarupiraten.txt'); // Loop through our array, show HTML source as HTML source; and line numbers too. foreach ($lines as $line_num = $line) { echo Line #b{$line_num}/b : .

Re: [PHP] per user php.ini

2005-10-09 Thread James Benson
Thanks for the replies. Rory Browne wrote: they probably use something along the lines of mapping PHP to php -c $HOME/php.ini In Linux this would generally be done using binfmt_misc. On 10/9/05, James Benson [EMAIL PROTECTED] wrote: Nothing special on my configure line and the

Re: [PHP] Regular expressions

2005-10-09 Thread Jasper Bryant-Greene
Gustav Wiberg wrote: ?php $lines = file('export/nhExportVarupiraten.txt'); // Loop through our array, show HTML source as HTML source; and line numbers too. foreach ($lines as $line_num = $line) { echo Line #b{$line_num}/b : . htmlspecialchars($line) . br /\n; if ($line_num 0 ) {

[PHP] Mystery about chmod and permissions

2005-10-09 Thread Al
I've got a script that checks a directory's permissions for 757 and if they are not correct, chmods them with a cgi script. That part works just fine. Can alternately switch the permissions from 755 to 757 and back. I can use a ftp utility to check the permissions and they are correct. The

RE: [PHP] Mystery about chmod and permissions

2005-10-09 Thread Jeffrey Santos
To save on computing time, the results of the fileperms command are cached... I assume when you run a new instance of the program, it uses a new cache / old one is deleted when the first instance ends. Either way, you should clear the cache first: clearstatcache(); echo Directory permissions

Re: [PHP] Regular expressions

2005-10-09 Thread Gustav Wiberg
- Original Message - From: Jasper Bryant-Greene [EMAIL PROTECTED] To: PHP General php-general@lists.php.net Sent: Sunday, October 09, 2005 8:06 PM Subject: Re: [PHP] Regular expressions Gustav Wiberg wrote: ?php $lines = file('export/nhExportVarupiraten.txt'); // Loop through our

Re: [PHP] Get Mac Address

2005-10-09 Thread Rory Browne
On unix man arp on windows arp/h arp/help arp/? sorry for short and sweet resp, but I'm falling asleep. On 10/9/05, Ben Sagal [EMAIL PROTECTED] wrote: I have a local intranet server, running apache1.3+php4. Is it possible to get the mac address of computes which access on of my php pages?

Re: [PHP] Get Mac Address

2005-10-09 Thread M. Sokolewicz
That will give you the *local* mac address, not that of the user visiting your page. The problem is the fact that the mac address is not sent as part of the REQUEST. As such it's not possible for PHP to find out what it is. So, unfortunately, no. (Though it's a very common question on this

Re: [PHP] Get Mac Address

2005-10-09 Thread Andrew Brampton
M. Sokolewicz have you ever typed arp at a command line? It may give you a local mac address, but it is normally used to show your arp cache. Now if you are on the same physical segment as the requester than you can obtain to mac address from parsing the output and matching it to the

Re: [PHP] Mystery about chmod and permissions

2005-10-09 Thread Al
Jeffrey Santos wrote: To save on computing time, the results of the fileperms command are cached... I assume when you run a new instance of the program, it uses a new cache / old one is deleted when the first instance ends. Either way, you should clear the cache first: clearstatcache(); echo

[PHP] mambo question..??

2005-10-09 Thread bruce
hi... i'm going through the mambo app, trying to figure out where in the code the app starts to generate the actual menus for the Admin functions. i've tracked the actual code that gets generated mod_fullmenu.php but i can't seem to tell exactly how this code in the jscript gets generated... it

Re: [PHP] mambo question..??

2005-10-09 Thread Wee Keat
Bruce, I'm not sure what exactly you need to know, but I'll try to clarify a few thing for you at best that I can. bruce wrote: i'm going through the mambo app, trying to figure out where in the code the app starts to generate the actual menus for the Admin functions. i've tracked the actual

[PHP] Send postcard link

2005-10-09 Thread Roger Thomas
On server-1 I have my photogallery working. On another box, server-2, I have my postcard script also working great. Users can send postcards using ready inhouse designs or upload their own (max 100K). Both have been serving our community for the past 2 years or so. Current requirement: When

Re: [PHP] Get Mac Address

2005-10-09 Thread Rory Browne
On 10/10/05, M. Sokolewicz [EMAIL PROTECTED] wrote: That will give you the *local* mac address, not that of the user visiting your page. The problem is the fact that the mac address is not sent as part of the REQUEST. As such it's not possible for PHP to find out what it is. So, unfortunately,

[PHP] I want to know if some link is online

2005-10-09 Thread Jesús Alain Rodríguez Santos
I would like to know if a web is online, a have this code: enlace.php ? $vivo = verde.gif; $muerto = rojo.gif; $enlinea = fopen($enlace, r); if (!$enlinea){ header(Location: $muerto); } else { header(Location:

Re: [PHP] I want to know if some link is online

2005-10-09 Thread Jasper Bryant-Greene
Jesús Alain Rodríguez Santos wrote: I would like to know if a web is online, a have this code: enlace.php ? $vivo = verde.gif; $muerto = rojo.gif; $enlinea = fopen($enlace, r); Why not use file_exists()? Also, you probably want to use $_GET['enlance'] rather than $enlance.

Re: [PHP] Send postcard link

2005-10-09 Thread Torgny Bjers
Roger Thomas wrote: On server-1 I have my photogallery working. On another box, server-2, I have my postcard script also working great. Users can send postcards using ready inhouse designs or upload their own (max 100K). Both have been serving our community for the past 2 years or so.