[PHP] PHP Compile with sun 5.7

2002-06-05 Thread Moussa Dahadha
Hi, i know that this question was asked many times but i still can't find any solution :-( When i try to compile php I alweys recive this error: Making all in . make[1]: Entering directory `/root/php-4.2.1' /bin/sh /root/php-4.2.1/libtool --silent --mode=link

[PHP] ob_start('gz_handler') and session_start()

2002-06-05 Thread Jason Caldwell
Is there a way to make ob_start('gz_handler') work with session_start()? I got them each working independently -- however, when I try to compress a session -- my page just comes up blank. Or, is there another alternative? -- I'd like to use sessions and I'd (definitely) like to compress my pag

[PHP] Re: ob_start('gz_handler') and session_start()

2002-06-05 Thread Jason Caldwell
I should add, that I also tried the code with session_start() first, then ob_start('gz_handler') -- neither way worked. Jason "Jason Caldwell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Is there a way to make ob_start('gz_handler') work with session_star

[PHP] Re: Speed comparison of PHP vs. PERL (not conclusive)

2002-06-05 Thread Peter
You mention that you could have written the PHP code in a more efficient way using continue(). Why not time this as surely a built in function would be quicker than one written in the code. "Daniel Grace" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > This al

Re: [PHP] Secure File Upload

2002-06-05 Thread andy
// original question: I would like to be able to really PREVENT uploads, let's say > > bigger than 10 MB?! > > > Add this to your HTML form: > > > > HTH I tryed this, too. But this does not work at all! I use IE 5.5 and it did not make any difference. Is there something else we have to take

[PHP] Re [PHP] Secure File Upload

2002-06-05 Thread Stephen Phillips
Hi, Not sure if this would work in limiting the file size of an upload or not, but I noticed a line in my php.ini file which seems to limit the size of any data sent by a POST, of course this would be a serverwide setting I guess.   the line is; post_max_size = 8M;   I'm assuming this would b

Re: [PHP] Secure File Upload

2002-06-05 Thread Jason Wong
On Wednesday 05 June 2002 16:41, andy wrote: > // original question: > > > I would like to be able to really PREVENT uploads, let's say > > > > bigger than 10 MB?! > > > > Add this to your HTML form: > > > > > > > > HTH > > > > I tryed this, too. But this does not work at all! I use IE 5.5 and

Re: [PHP] findin colors in gif files

2002-06-05 Thread Tom Rogers
Hi I think you have to use fread to load the binary file, here is a quick function that will do what you want. It a little bit safer than just blindly changing hex values in the file, it only checks the colour table. Tom "; $gif[$x] = $r2;

[PHP] Stopping multiple votes by IP

2002-06-05 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everyone. I need to ensure that only one 'vote' per 'article' can be cast by each visitor and was hoping you might share any opinions you have on my solution: IP's seem the way to go so I thought the simplest and most secure method would be this:

Re: [PHP] multisite hit counter, includin session statistics

2002-06-05 Thread Martin Smetak
Completely misunderstood :o) One more try: I need to put into some page(www.some.com), which is not on my server, a link to my script-counter, running on my server(www.my.com). The easiest way to do that is to place it to the page in form of an blank image, so in the index.html on www.some.com w

Re: [PHP] Stopping multiple votes by IP

2002-06-05 Thread René Moonen
What then happens with users who are behind a firewall/proxy (probably have non-routable IP addresses on theire LAN) and share one internet connection. They all have the same remote IP address (routable IP address of the firewall). This would mean that only one user of that group can vote. I'

[PHP] Re: Speed comparison of PHP vs. PERL (not conclusive)

2002-06-05 Thread Daniel Grace
"Peter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > You mention that you could have written the PHP code in a more efficient way > using continue(). Why not time this as surely a built in function would be > quicker than one written in the code. > -- snip to

Re: [PHP] Stopping multiple votes by IP

2002-06-05 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then René Moonen declared > What then happens with users who are behind a firewall/proxy (probably > have non-routable IP addresses on theire LAN) and share one internet > connection. They all have the same remote IP address (routable IP

[PHP] Unexpected addslashes/stripslashes-behaviour?

2002-06-05 Thread Trond Arve Nordheim
I'm just having a little problem using addslashes/stripslashes here, and I'm wondering if this actually is the expected behaviour: I get text from a form post, let's say "This sucks :\". I do $text = addslashes($_POST["fieldname"]); and stick $text in a DB. When I pull the text back out, and run

Re: [PHP] Stopping multiple votes by IP

2002-06-05 Thread 1LT John W. Holmes
The only "good" way to do it is with authentication. Have the user log in and then allow them one vote. Any other method is going to be open to cheating, so be aware of it. If the poll is important and the results need to be as exact as possible, use some form of authentication. If it's just a s

Re: [PHP] Unexpected addslashes/stripslashes-behaviour?

2002-06-05 Thread 1LT John W. Holmes
What are your settings for magic_quotes? magic_quotes_gpc magic_quotes_runtime in your php.ini. magic_quotes_gpc will automagically addslashes() to incoming GET, POST, and COOKIE data. So you don't need to do it yourself. The defaults to On. magic_quotes_runtime will autmagically addslashes()

Re: [PHP] Unexpected addslashes/stripslashes-behaviour?

2002-06-05 Thread Trond Arve Nordheim
Quoting "1LT John W. Holmes" <[EMAIL PROTECTED]>: > What are your settings for magic_quotes? > magic_quotes_gpc > magic_quotes_runtime They're off. Actually I just noticed that I didn't have to stripslashes() the data that came out of the database myself.. don't know why, but I've always been su

Re: [PHP] multisite hit counter, includin session statistics

2002-06-05 Thread 1LT John W. Holmes
What have you tried so far? I assume you know how to create the actual image, or will learn later. For your code, just try to start a session and set a variable within it. Each time this script is run, that means a page is being requested. So after you start your session, check and see if that va

Re: [PHP] multisite hit counter, includin session statistics

2002-06-05 Thread Martin Smetak
Well, I'm feeling like an idiot. I was counting cookies must be sent before any other headers are sentman, how is possible it is working? I know how to program that, but haven't known cookies/sessions works also when initialised this way... Thanks a lot and sorry. Minca > What have you t

RE: [PHP] multisite hit counter, includin session statistics

2002-06-05 Thread SP
I'm guessing you could just add as many variables you want to collect at the end of the counter.php script. Does that help? http://www.my.com/counter.php?site=0011&PHPSE SSID=lkjasfoia99sd9asfdsaf9"> -Original Message- From: Martin Smetak [mailto:[EMAIL PROTECTED]] Sent: June 5, 2002

[PHP] How do I access a hash from an extention/module?

2002-06-05 Thread eric
Hi, I am a bit stuck right now, I want to access the values of a global hash (actually it is a session variable) from within my PHP extention/module. So I want to be able to see which keys are defined in a hash, and what the corresponding value in this hash is for each key. Could someone please

Re: [PHP] findin colors in gif files

2002-06-05 Thread Tom Rogers
HI Just a thought, if your on a windows box you will need to ad a 'b' to the fiopen function like fopen($file, "br") Tom At 09:43 PM 5/06/2002, freestylez wrote: >it almost works :) unfortunatly the gif file seems to be corrupted at some >point, >but anyhow - i am not good in these hex and bin t

Re: [PHP] findin colors in gif files

2002-06-05 Thread Tom Rogers
hi what gif is getting corrupted?, it works ok with the one you gave. To see what all those flag things are have a look at the gif spec at http://www.goice.co.jp/member/mo/formats/gif.html unpack puts the binary string into an array, flag gives some info as to the colour index table Tom At 09:4

[PHP] probelem with script

2002-06-05 Thread _michael
/* what i'm trying to do is read the files and folders in the directory and output them into an xml document - when i try to find the size of the file i get an error - can someone please tell me why this is thanks mike */ // SCRIPT [dir.php] ";// open the folder tag and put the folder n

[PHP] Re: probelem with script

2002-06-05 Thread Ilker Cetinkaya
you're casting is wrong, instead of $s = int filesize($f); do $s = (int)filesize($f); btw - next time an error message would help your helper :-) hth ilker "_michael" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > /* > what i'm trying to do is read the fi

Re: [PHP] probelem with script

2002-06-05 Thread Stuart Dallas
On Wednesday, June 5, 2002 at 1:57:09 PM, you wrote: > // the error is bieng caused here > $size = int filesize($file) You don't need the int and you were missing a semicolon... $size = filesize($file); -- Stuart -- PHP General Mailing List (http://www.php.ne

[PHP] Crontab

2002-06-05 Thread Mauricio Cuenca
Hello, I need to run a daily script on our website but I'm trying to avoid using CRONTAB. Is there any way that I can run this daily ? Is there any equivalent to ASP's Application_OnStart for PHP ? Thanks, _ Mauricio Cuenca [EMAIL PROTECTED] -- PHP General Mailing List

RE: [PHP] problems with attachment to email for mail() function

2002-06-05 Thread Dave
anyone on this... a few have suggested "install this class" and so forth. That is not the point. the goal is to correctly format and encode the simple message with attachment so we can customize things from there. The classes available for this are great, but defeat the purpose of understanding

[PHP] Select-List

2002-06-05 Thread DragosB
Hi, How can I check how many options has been selected from a select list? I tried in many ways, but it returns the last option selected. DragosB -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] global variables without sessions on apache

2002-06-05 Thread Zac Hillier
Hi, Is it possible using php on our own apache server to create global variables for virtual host without having to use session variables. We would like to have three variables that are constant for each virtual host and that are available from every page, I thought it would be possible with hta

Re: [PHP] multisite hit counter, includin session statistics

2002-06-05 Thread 1LT John W. Holmes
I said "try" it...I'm not guaranteeing it works. ---John Holmes... - Original Message - From: "Martin Smetak" <[EMAIL PROTECTED]> To: "1LT John W. Holmes" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, June 05, 2002 7:56 AM Subject: Re: [PHP] multisite hit counter, includin se

Re: [PHP] Crontab

2002-06-05 Thread 1LT John W. Holmes
Program it into the homepage to run once a day. As long as you get one hit per day, then it'll run. ---John Holmes... - Original Message - From: "Mauricio Cuenca" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 05, 2002 9:15 AM Subject: [PHP] Crontab > Hello, > > I n

Re: [PHP] problems with attachment to email for mail() function

2002-06-05 Thread Jason Wong
On Wednesday 05 June 2002 21:36, Dave wrote: > anyone on this... > > a few have suggested "install this class" and so forth. That is not the > point. the goal is to correctly format and encode the simple message with > attachment so we can customize things from there. The classes available > for

Re: [PHP] Select-List

2002-06-05 Thread Devrim GUNDUZ
Hi, On Wed, 5 Jun 2002, DragosB wrote: > How can I check how many options has been selected from a select list? I > tried in many ways, but it returns the last option selected. Let's say your select box code is similar to this: ... in PHP form,

Re: [PHP] global variables without sessions on apache

2002-06-05 Thread Jason Wong
On Wednesday 05 June 2002 20:40, Zac Hillier wrote: > Hi, > > Is it possible using php on our own apache server to create global > variables for virtual host without having to use session variables. > > We would like to have three variables that are constant for each virtual > host and that are av

RE: [PHP] Crontab

2002-06-05 Thread Jay Blanchard
[snip] Program it into the homepage to run once a day. As long as you get one hit per day, then it'll run. ... > I need to run a daily script on our website but I'm trying to avoid using > CRONTAB. > > Is there any way that I can run this daily ? [/snip] But if you need to run it only once per

[PHP] open a new html page

2002-06-05 Thread Renaldo De Silva
is there a simple way to automatically load a new page according to a choice made by a user. If one persons logs in they go to one page, If another peson logs in they go to another page? Any help appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

RE: [PHP] open a new html page

2002-06-05 Thread Cal Evans
store the user's preference in a database. Once they have logged in, use their login or userID to retrieve it form the database and redirect to the appropriate page. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Renaldo De

Re: [PHP] open a new html page

2002-06-05 Thread Devrim GUNDUZ
Hi, On Wed, 5 Jun 2002, Renaldo De Silva wrote: > is there a simple way to automatically load a new page according to a > choice made by a user. > > If one persons logs in they go to one page, If another peson logs in they go > to another page? You could keep the following information in a ta

RE: [PHP] open a new html page

2002-06-05 Thread Jay Blanchard
[snip] is there a simple way to automatically load a new page according to a choice made by a user. If one persons logs in they go to one page, If another peson logs in they go to another page? [/snip] Use a switch statement as below; //start session session_start(); session_register("emailid"

Re: [PHP] problems with attachment to email for mail() function

2002-06-05 Thread Analysis & Solutions
Hi Dave: On Tue, Jun 04, 2002 at 05:45:17PM -0400, Dave wrote: > > Email appears with text portion and attachment icon, but no attachment (Outlook > 2000). By "no attachment" I assume you mean you can't get the attachment through the user interface. But, I bet the attachment is there if you lo

Re: [PHP] global variables without sessions on apache

2002-06-05 Thread Justin French
I'm not sure about at a htaccess level, but at a php.ini level I believe you can set a file to "always include" at the top of every php page. This file could simply be: Not sure on the specifics, but it was discussed on the list in the last two weeks, and i'm sure there is documentation for th

Re: [PHP] Secure File Upload

2002-06-05 Thread Lowell Allen
> From: "andy" <[EMAIL PROTECTED]> > > // original question: > > > I would like to be able to really PREVENT uploads, let's say >>> bigger than 10 MB?! >>> >> Add this to your HTML form: >> >> >> >> HTH > > > > I tryed this, too. But this does not work at all! I use IE 5.5 and it did > n

[PHP] redirection

2002-06-05 Thread Renaldo De Silva
is there any way other than header("Location: http://www.php.net/";); to redirect to another page. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] redirection

2002-06-05 Thread Tyler Longren
I think that's pretty much your only option. You could use javascript to redirect if you wanted. Tyler Longren Captain Jack Communications www.captainjack.com [EMAIL PROTECTED] - Original Message - From: "Renaldo De Silva" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, Jun

RE: [PHP] redirection

2002-06-05 Thread Leotta, Natalie (NCI/IMS)
You can use JavaScript: document.location="URL"; You can do that in an onClick (make sure that it's not a type submit, just a type button if you're using a button). -Natalie -Original Message- From: Renaldo De Silva [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 2:45 PM To:

RE: [PHP] redirection

2002-06-05 Thread Ray Hunter
You can also set up redirects in your web server as well... Thank you, RAY HUNTER -Original Message- From: Renaldo De Silva [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 12:45 PM To: [EMAIL PROTECTED] Subject: [PHP] redirection is there any way other than header("Loca

RE: [PHP] redirection

2002-06-05 Thread Martin Clifford
You can pretty much use ANY JavaScript event handler to accomplish the redirection. I'm new to PHP, so the header is the only place I know of to redirect. onclick onmouseup onmousedown onmouseover onmousemove onkeydown onkeypress onkeyup onchange etc. -- PHP General Mailing List (http://www.

RE: [PHP] redirection

2002-06-05 Thread Jay Blanchard
[snip] I think that's pretty much your only option. You could use javascript to redirect if you wanted. > is there any way other than > > header("Location: http://www.php.net/";); > > to redirect to another page. [/snip] Using the switch() function that I showed before here is what I have done..

[PHP] Template's, that is the question!

2002-06-05 Thread Juan Pablo Aqueveque
- UltraTemplate - FastTemplate - PHPLib Template - TemplatePower - Smarty - (there are others?) Hi folks: I am about to begin a new project. Can somebody give me some references above templates? Experience, opinions, complaints, All will be appreciated. Thanks!

Re: [PHP] global variables without sessions on apache

2002-06-05 Thread Zac Hillier
Jason, Could you expand on this a little more? I've tried searching for auto-prepend in both php documentation and apache and cannot find anything thats relates to our needs. Thanks for your help Zac - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sen

[PHP] days between two timestamps

2002-06-05 Thread Tyler Longren
Hi, I have two different timestamps: 20020603164114 and 20020605054710 Is there a simple way to get the number of days between the two dates? thanks, tyler -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] global variables without sessions on apache

2002-06-05 Thread Jason Wong
On Wednesday 05 June 2002 22:45, Zac Hillier wrote: > Could you expand on this a little more? I've tried searching for > auto-prepend in both php documentation and apache and cannot find anything > thats relates to our needs. In php.ini there is a setting called "auto_prepend_file". Set it to wh

Re: [PHP] days between two timestamps

2002-06-05 Thread Martin Clifford
Use substr() to extract the appropriate information, then format it and compare it. 20020603 is obviously June 3, 2002 and 20020605 is obviously June 5, 2002 which means there was 1 day (plus x hours) between the two. Hope to help! Martin >>> "Tyler Longren" <[EMAIL P

Re: [PHP] days between two timestamps

2002-06-05 Thread 1LT John W. Holmes
Since those look like MySQL timestamps, I would suggest you do it in your query. SELECT TO_DAYS(column1) - TO_DAYS(column2) AS Difference FROM table Adapt to your needs. Explain what your overall mission is and there is probably a query that'll return just that. If you want to use PHP, format

[PHP] OT cron/perl/php..

2002-06-05 Thread Kelly Meeks
I've found a really handy php script (mysqlphpbak) that will backup all mysql databases for me via mysqldump. I'm using a cobalt raq server, and according to them, I can create a script and put it in a cron-daily directory, and that script will be executed. How do I create that script? Does i

Re: [PHP] days between two timestamps

2002-06-05 Thread Jason Wong
On Wednesday 05 June 2002 23:01, Tyler Longren wrote: > Hi, > > I have two different timestamps: > 20020603164114 > and > 20020605054710 > > Is there a simple way to get the number of days between the two dates? These look like mysql timestamps. If you're getting them from mysql, you might try a

Re: [PHP] days between two timestamps

2002-06-05 Thread Martin Clifford
Well, I had the right idea... John is just more advance than me. :o) >>> "1LT John W. Holmes" <[EMAIL PROTECTED]> 06/05/02 11:09AM >>> Since those look like MySQL timestamps, I would suggest you do it in your query. SELECT TO_DAYS(column1) - TO_DAYS(column2) AS Difference FROM table Adapt to

[PHP] Thanks all I used javascript.

2002-06-05 Thread Renaldo De Silva
Thanks all I used javascript. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] days between two timestamps

2002-06-05 Thread Tyler Longren
Hi All, Yes, they are mysql timestamps. I'll just use the query John suggested and modify it to fit my needs. I was originally going to do something like Martin suggested, but if I can do it right in MySQL, I'll do it that way. Thanks all! tyler - Original Message - From: "1LT John W.

Re: [PHP] OT cron/perl/php..

2002-06-05 Thread 1LT John W. Holmes
You already have the php script, so use that. modify it so that it does exactly what you need on your system, so that when you call it up through www.youdomain.com/script.php, it does what you need without any user interaction or producing any output to the screen (email or log file is okay). The

Re: [PHP] Secure File Upload

2002-06-05 Thread Rodolfo Gonzalez
On Wed, 5 Jun 2002, Lowell Allen wrote: > Add this to your HTML form: > The manual says this can be easily bypassed. Regards. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Q: Rogue Processes

2002-06-05 Thread Bucky Kaufman
What's the deal with "Rogue" or "Zombie" processes? To do error handling with MySQL, I use something like this: if (!mysql_connect() = TRUE) { echo "Connected"; } else { echo "Connection failed"; } I've been told that if I don't use the "or die()" method of error handling that I could sp

RE: [PHP] OT cron/perl/php..

2002-06-05 Thread Jay Blanchard
[snip] You already have the php script, so use that. modify it so that it does exactly what you need on your system, so that when you call it up through www.youdomain.com/script.php, it does what you need without any user interaction or producing any output to the screen (email or log file is okay

[PHP] mail() problem

2002-06-05 Thread César L . Aracena
Hi all, I have this strange problem where I can send e-mails from a PHP script to a common e-mail address such as Hotmail's, but I can't send to my ISP-given e-mail address (@infovia.com.ar). Does anyone happen to know why is it that makes it different??? Thanks, Cesar Aracena [EMAIL PROTECTE

[PHP] Alocating file in memory...

2002-06-05 Thread Paulo Cesar
Hi, I'd like to know if there is a way to keep a file alocated in the server memory, so when the users access a page that includes the file the server doesn't need to alocate it in memory each time. Thanks Paulo Cesar

Re: [PHP] Stopping multiple votes by IP

2002-06-05 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then 1LT John W. Holmes declared > The only "good" way to do it is with authentication. Have the user log in > and then allow them one vote. > > Any other method is going to be open to cheating, so be aware of it. Okay, I've been working

Re: [PHP] mail() problem

2002-06-05 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then César L. Aracena declared > I have this strange problem where I can send e-mails from a PHP script to a common >e-mail address such as Hotmail's, but I can't send to my ISP-given e-mail address >(@infovia.com.ar). Does anyone happen

Re: [PHP] Template's, that is the question!

2002-06-05 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Juan Pablo Aqueveque declared > I am about to begin a new project. Can somebody give me some references > above templates? > Experience, opinions, complaints, All will be appreciated. Only ever used PHPLib but find it a very simple,

[PHP] Sessions question (-enable-trans-sid)

2002-06-05 Thread Jeff Field
Hi, I'm confused about one thing regarding sessions and haven't been able to find the definitive answer anywhere. Hopefully, I can here. There are two ways to enable sessions: 1) Session ID is passed through cookies 2) Session ID is passed through the URL, either done manually or by automatic

Re: [PHP] mail() problem

2002-06-05 Thread Ivan Hernandez
Cesar: What's the exact error message you are getting? or there's no error message? Are you running the PHP script in a local machine or a server? What MTA are you using? Regards, Ivan --- "César_L._Aracena" <[EMAIL PROTECTED]> wrote: > Hi all, > > I have this strange problem where I can send

Re: [PHP] Secure File Upload

2002-06-05 Thread Jim lucas
ok, here are a few questions for you to clarify things. A) Do you want to place a limit on the size of a single file being uploaded? B) Do you want to place a restriction that says after n'th number of files that have been uploaded equal 'X' ammount of space on the server disable file uploads?

[PHP] Re: OT cron/perl/php..

2002-06-05 Thread J. Younker
If it's a php script, you can place it in your cron-daily folder on your server, but to have it execute as a shell script, you would have to add: #!/usr/bin/php -q (or whatever the path to php is on your server) at the very top of your script. The -q flag supresses the headers. You would also h

[PHP] Regular Expressions Help

2002-06-05 Thread J. Younker
Hi, I'm trying to use eregi_replace to check a user-submitted URL, but I keep getting the following error message: Warning: Invalid range end in /var/www/html/_db_db/db_input.php This what I'm using: $pattern = "(http://)?([^[:space:]]+)([[:alnum:]\.-_?/&=])"; $replace = "http://\\2\\3";; $URL = e

[PHP] PHP Apache Module AND command Line

2002-06-05 Thread Steve Buehler
Is there doc somewhere to would tell how to install PHP as a command line interpreter (like perl) without messing up the installation of PHP that is installed as a module in/for Apache? Basically, I want to have both on the same server. Or can this even be done? Thank You Steve -- PHP Gen

Re: [PHP] Stopping multiple votes by IP

2002-06-05 Thread Jason Wong
On Thursday 06 June 2002 00:45, Nick Wilson wrote: > * and then 1LT John W. Holmes declared > > > The only "good" way to do it is with authentication. Have the user log in > > and then allow them one vote. > > > > Any other method is going to be open to cheating, so be aware of it. > > Okay, I

Re: [PHP] Comparing array elements

2002-06-05 Thread Mark Heintz PHP Mailing Lists
Well, it sounds like something that could be done through the db query, but if you want to use arrays, it'd be something like this... $servers = arrray('s1','s2','s3','s4','s5'); $group1 = array('s1','s4','s5'); $in_group = array_intersect($servers, $group1); $not_in_group = array_diff($servers,

[PHP] what is the format of the filemtime string

2002-06-05 Thread _michael
i am trying to find out when my files were last modified (accessing all files on the server is not a problem) to try and find this i am using: filemtime($file) - but this ruturns a string - 1015171598 what is the format of the string? - are there ways to return the last modified data in the fo

Re: [PHP] PHP Apache Module AND command Line

2002-06-05 Thread Jason Wong
On Thursday 06 June 2002 01:26, Steve Buehler wrote: > Is there doc somewhere to would tell how to install PHP as a command line > interpreter (like perl) without messing up the installation of PHP that is > installed as a module in/for Apache? Manual -> Installation -> Servers-CGI/Commandline

Re: [PHP] what is the format of the filemtime string

2002-06-05 Thread Jason Wong
On Thursday 06 June 2002 01:34, _michael wrote: > i am trying to find out when my files were last modified (accessing all > files on the server is not a problem) > > to try and find this i am using: filemtime($file) - but this ruturns a > string - 1015171598 > > what is the format of the string?

RE: [PHP] PHP Apache Module AND command Line

2002-06-05 Thread Ray Hunter
Or you can run the configuration with the bin dir option so that it places it where you want: Example: ./configure --bindir=/usr/bin make make install Thank you, RAY HUNTER -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 05, 2002 11:36 AM To:

Re: [PHP] Comparing array elements

2002-06-05 Thread Pushkar Pradhan
Never used those before, that's the way to do it! I think array_search and in_array are suited for looking up one or two values. > Well, it sounds like something that could be done through the db > query, but if you want to use arrays, it'd be something like this... > > $servers = arrray('s1','s2'

Re: [PHP] Only one value from a msSQL field.

2002-06-05 Thread Miguel Cruz
On Wed, 19 Jun 2002, Philip J. Newman wrote: > Only one value from a msSQL field. > I have many values the same in a field and would like to know how i can select one >of each (not mating). > > $sql = "SELECT * FROM brands WHERE 1 ORDER BY `sId` DESC LIMIT 6"; > > lists everything .. I'm not s

Re: [PHP] open a new html page

2002-06-05 Thread Miguel Cruz
On Wed, 5 Jun 2002, Renaldo De Silva wrote: > is there a simple way to automatically load a new page according to a > choice made by a user. > > If one persons logs in they go to one page, If another peson logs in they go > to another page? -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] global variables without sessions on apache

2002-06-05 Thread Miguel Cruz
On Wed, 5 Jun 2002, Zac Hillier wrote: > Is it possible using php on our own apache server to create global > variables for virtual host without having to use session variables. > > We would like to have three variables that are constant for each virtual > host and that are available from every p

RE: [PHP] what is the format of the filemtime string

2002-06-05 Thread _michael
tight i have tried what you said: $last_mod = filemtime($file); $tdate = date($last_mod); but now the output is in this format - c707-b076 sorry to be ask again but can you give me more of a clue as you've probably guessed - i'm a novice thanks -- PHP General

Re: [PHP] Stopping multiple votes by IP

2002-06-05 Thread Miguel Cruz
On Wed, 5 Jun 2002, Nick Wilson wrote: > The only small problem I see is if a user logs out and then registers as > another user and votes again. I will be verifying emails of memebers so > I think this an unlikely scenario but it still bugs me a little. Any web-based unique-user-identification p

Re: [PHP] Regular Expressions Help

2002-06-05 Thread Jim lucas
not sure why you have such a complex reg there, but will this work for you. preg_replace("/(http:\/\/)?([^\/ ]*)(.*);/", "http://\\2\\3";, $str); \\1 = http:// ; if there \\2 = domain \\3 = request_uri Jim Lucas - Original Message - From: "J. Younker" <[EMAIL PROTECTED]> To: <[EMA

Re: [PHP] what is the format of the filemtime string

2002-06-05 Thread Jim lucas
the date() function takes two arguments. $date_time_format = "m-d-Y"; echo date($date_time_format, $unix_time_string); Jim Lucas - Original Message - From: "_michael" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 05, 2002 11:15 AM Subject: RE: [PHP] what is the format

RE: [PHP] problems with attachment to email for mail() function <-- solved

2002-06-05 Thread Dave
>By "no attachment" I assume you mean you can't get the attachment >through the user >interface. But, I bet the attachment is there if you look at the >source code of the >message itself. Right? That indicates the attachment was sent and >received. The >trick is then getting Lookout to properl

Re: [PHP] mail() problem

2002-06-05 Thread Jim lucas
you might want to test with a hotmail account as the return email address and find out if they are bouncing your email. I had this problem once, and in the return email it told me that I had miss formed headers. I got an error 550 from the mail server. you might try setting in the headers of yo

[PHP] javascript and php question

2002-06-05 Thread kemu
I have a page first he generates a var in javascript my next question is is it possible to use that var in php on the same page first he does the javascript then the php ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php and javascript question

2002-06-05 Thread kemu
I have a page first he generates a var in javascript my next question is is it possible to use that var in php on the same page first he does the javascript then the php ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Passing variable to new page and pulling the rest of info from database

2002-06-05 Thread Igor Portnoy
Hello, I am passing a variable to the new page, when user clicks on the link. Something like that: How can I extract all other information out of my database for that ID in the next page (showimage.php)? Thanks

[PHP] Finding out how a variable was registered

2002-06-05 Thread Joe Pemberton
Is there a function call to figure out how a variable was registered? I am writing a page that handles a form and I need to know whether or not a variable was created using the GET or POST method (I don't want the user to be able to to 'foo.php?var=value' and mess with the results) - - Joe [E

[PHP] Re: php and javascript question

2002-06-05 Thread Michael Davey
Not unless you pass the variable to the next page explicitly. You can do this by either encoding it into the URL of the next page: http://your.com/page.php?var=value or by putting the variable into an HTML form and submitting it. regards, Mikey "Kemu" <[EMAIL PROTECTED]> wrote in message [EMAI

[PHP] Re: Finding out how a variable was registered

2002-06-05 Thread Michael Davey
Iff you asre using the latest version of PHP, use the $_GET/$_POST superglobals regards, Mikey "Joe Pemberton" <[EMAIL PROTECTED]> wrote in message 000f01c20cc1$1df6f320$9b6ee60c@c1195782a">news:000f01c20cc1$1df6f320$9b6ee60c@c1195782a... Is there a function call to figure out how a variable wa

[PHP] sorting a list using regex

2002-06-05 Thread Joshua E Minnie
I am trying to sort a list by their first character, my problem comes when that first character is a number. When the character is a number I should be able to display just the values which begin with a number. When the value is a letter, I have no problem sorting this out. Here is the code tha

[PHP] Re: Passing variable to new page and pulling the rest of info from database

2002-06-05 Thread Michael Davey
By reading the manual section relevant to your specific database... "Igor Portnoy" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I am passing a variable to the new page, when user clicks on the link. Something like that: How can I extract all ot

Re: [PHP] Stopping multiple votes by IP

2002-06-05 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Miguel Cruz declared > So decide how much hassle it's worth making it (both for yourself and for > your users) and run with it. My feeling would be that a cookie + email > token is enough for anything but high-security or money-based

  1   2   3   >