Re: [PHP] GET variables and mySQL functions inside an Image header.

2005-10-09 Thread Robert Cummings
On Mon, 2005-10-10 at 02:33, Kristopher Kane wrote: > I am currently in Afghanistan and don't have much access to look these > questions up. I consider them basic and regret having to post them here. > When passing variables using GET as in: > index.php?first=value?second=value > My script is read

[PHP] GET variables and mySQL functions inside an Image header.

2005-10-09 Thread Kristopher Kane
I am currently in Afghanistan and don't have much access to look these questions up. I consider them basic and regret having to post them here. When passing variables using GET as in: index.php?first=value?second=value My script is reading the first value, however through an included file and anot

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. > >C

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 Why not use file_exists()? Also, you probably want to use $_GET['enlance'] rather than $enlance. if (!$enlinea){ header("Location: $muerto");

[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 In other page I hve this: page.php http://www.cfg.jovenclub.cu";> Somebody can tell me what it's wrong, because the image did not show, of course that the pages and bouth image are in the same dorectory. Please any sugges

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, unfortuna

[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 I

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 actua

[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] 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 "

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 requesti

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 list

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 > page

Re: [PHP] Regular expressions

2005-10-09 Thread Gustav Wiberg
- Original Message - From: "Jasper Bryant-Greene" <[EMAIL PROTECTED]> To: "PHP General" Sent: Sunday, October 09, 2005 8:06 PM Subject: Re: [PHP] Regular expressions Gustav Wiberg wrote: // Loop through our array, show HTML source as HTML source; and line numbers too. foreach ($lin

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 fo

[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 m

Re: [PHP] Regular expressions

2005-10-09 Thread Jasper Bryant-Greene
Gustav Wiberg wrote: // Loop through our array, show HTML source as HTML source; and line numbers too. foreach ($lines as $line_num => $line) { echo "Line #{$line_num} : " . htmlspecialchars($line) . "\n"; if ($line_num > 0 ) { $getName = explode('<>', $line); $pattern = "/ID=([0-9]*)\ //

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 settin

[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 // Loop through our array, show HTML source as HTML source; and line numbers too. foreach ($lines as $line_num => $line) { echo "Line #{$line_num} : " . htmlspecialchars($line) . "\n"; if ($line_num > 0 ) { $getName = exp

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

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 l

[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 : NH01<><>LiteOn DVD±RW 16<>725<>http://www.varupiraten.se/web/spec_product.php?ID=1711<>PC-CD-DVD-LDW-1653S-09C<>1<> Line #4 : NH01<><>LITEON 8x<>725<>http://www.varupiraten.se/web/spec_product.

[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

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 /

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 php.

[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