[PHP] query caching & caching in general

2003-01-22 Thread Justin French
anyone got any links to decent tutorials on sql caching, and caching in general? they don't have to be mysql/php specific, but that would of course help :) general theory tutorials are fine too :) Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

Re: [PHP] chown()

2003-01-22 Thread Urb LeJeune
what does posix_getlogin() return? perhaps you aren't really running the script as root... posix_getlogin() return a empty string. However, the script is definitely running as root. The same script is creating directories in another user's account using mkdir() If the script U

Re: [PHP] htpasswd

2003-01-22 Thread Evan Nemerson
Don't chmod .htpasswd- _huge_ security risk... Will your server allow you to have suid scripts??? If so, you can just write a little wrapper and make it suid. If you do that, I'd also reccomend using an extension other than PHP, and/or placing it outside your web root. Wouldn't want people addin

Re: [PHP] Re: Mass Mailing

2003-01-22 Thread Evan Nemerson
Q If it delivers when possible, won't the server flake if it get's 100,000 emails inject into Qmail? If I was to use your class and loop through 100,000 emails into Qmail, will Qmail attempt all at once? A The answer was right above the question... "With qmail you do not have to run the queue lik

Re: [PHP] Why PHP doesn't work with Apache2?

2003-01-22 Thread Rasmus Lerdorf
On Thu, 23 Jan 2003, Jean-Christian Imbeault wrote: > Rasmus Lerdorf wrote: > > > > No, you didn't understand correctly. I specifically said the thread > > safety issues were in 3rd party libraries and not in PHP. > > Sorry, I thought by 3rd party libraries you meant libraries that PHP is > depen

Re: [PHP] Why PHP doesn't work with Apache2?

2003-01-22 Thread Jean-Christian Imbeault
Rasmus Lerdorf wrote: No, you didn't understand correctly. I specifically said the thread safety issues were in 3rd party libraries and not in PHP. Sorry, I thought by 3rd party libraries you meant libraries that PHP is dependent upon. Do you mean libraries used by PHP or Apache. And if thes

[PHP] Re: Is there a way to undo the md5() encryption??

2003-01-22 Thread rush
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi! Is there a way to do the decryption of the encrypted data with the use > of md5()?? nope, that's way it is called one-way function. But if you could, I assume it would be worth a big pile of m

Re: [PHP] Why PHP doesn't work with Apache2?

2003-01-22 Thread Rasmus Lerdorf
On Thu, 23 Jan 2003, Jean-Christian Imbeault wrote: > Rasmus Lerdorf wrote: > > > > Because the server doesn't work very well yet. There are issues in the > > filter api and you can't really uses a threaded mpm as many of the > > 3rd-party libraries that are commonly linked into PHP are simply no

Re: [PHP] total file size

2003-01-22 Thread Evan Nemerson
I can't think of a way to do this via PHP only- I'm pretty sure the file is sent in the POST request, therefore the page has not begun to output anything. Perhaps when you saw it done it was a java applet running in the browser? On Wednesday 22 January 2003 08:10 pm, Victor wrote: > Is there

Re: [PHP] chown()

2003-01-22 Thread Evan Nemerson
what does posix_getlogin() return? perhaps you aren't really running the script as root... On Wednesday 22 January 2003 08:05 pm, Urb LeJeune wrote: > Has anyone had success in changing the ownership of a directory > for within a PHP script? I am running as root an have tries > exec() > passthru

Re: [PHP] Generating a range of IP address

2003-01-22 Thread Tom Rogers
Hi, Thursday, January 23, 2003, 2:10:05 PM, you wrote: rsn> I need a way to add a range of IPaddress to a databases the rsn> example below work as long as the last numbers in the IPaddress rsn> are equal length like three numbers or two or one. If the first rsn> IPaddress has 1 nu

Re: [PHP] Why PHP doesn't work with Apache2?

2003-01-22 Thread Jean-Christian Imbeault
Rasmus Lerdorf wrote: Because the server doesn't work very well yet. There are issues in the filter api and you can't really uses a threaded mpm as many of the 3rd-party libraries that are commonly linked into PHP are simply not threadsafe. Thank you! That's the kind of answer I was looking

Re: [PHP] continue after break

2003-01-22 Thread Leif K-Brooks
Then just don't have the image inside the loop... Remon Redika wrote: I have put Image inside of my loop... and that image located between and I want the image not doing loop too. cause i just need one image.., I just do looping for my data: and

[PHP] Re: SMTP, mail() and piping directly into Sendmail, which is better?

2003-01-22 Thread Manuel Lemos
Hello, On 01/23/2003 01:48 AM, Jonathan Chum wrote: Then with PHP's mail(), folks have been saying that because it opens/closes a connection, looping through mail() adds additional overhead and that the best way would be to pipe into the MTA with popen()/pclose() People that say that are either

Re: [PHP] continue after break

2003-01-22 Thread Dan Lowe
You are misunderstanding how break and continue work. When you call break, the loop ends. When you call continue, the loop starts over, skipping the part between continue and the end of the loop. When you call break, you're ending the loop. You never even get as far as continue (let alone as

[PHP] continue after break

2003-01-22 Thread Remon Redika
I have put Image inside of my loop... and that image located between and I want the image not doing loop too. cause i just need one image.., I just do looping for my data: and while ($row = mysql_fetch_array($myquery)){ ?>

[PHP] Re: SMTP, mail() and piping directly into Sendmail, which is better?

2003-01-22 Thread Jonathan Chum
Ignore this post, I got my answers from the archives :) "Jonathan Chum" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm working on mass mailing list application and doing my research on the > part with the actual delivery of the message. I've been using a Per

[PHP] Re: Mass Mailing

2003-01-22 Thread Jonathan Chum
Hi, I was surfing through google's archive, and some reason my USENET reader didn't catch this reply, so here goes. . .(my comments are embedded below) "Manuel Lemos" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > On 12/22/2002 02:52 PM, Jonathan Ch

Re: [PHP] continue after break

2003-01-22 Thread Dan Lowe
On Wednesday, January 22, 2003, at 10:44 PM, Reymond wrote: Hi everyone, I made a while loop and i'd like to know how to continue looping after I break it, and . Here is my script : I found just break looping on my page, can't continue :( break ends a loop. That's what it does. If you don't

RE: [PHP] continue after break

2003-01-22 Thread John W. Holmes
The solution is to take out your break... why is it there?? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ > -Original Message- > From: Reymond [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 22, 2003 10:4

RE: [PHP] POST vs GET method

2003-01-22 Thread John W. Holmes
Pretty sure this is an Apache2/PHP bug. It was discussed on here in the past few days. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ > -Original Message- > From: Bob Lockie [mailto:[EMAIL PROTECTED]] > Sent: We

Re: [PHP] writing a newsletter program in php?

2003-01-22 Thread Justin French
Yes, this is a reasonable candidate for a PHP project, however: 1. why reinvent the wheel? 2. There are some serious issues with using PHP's mail() command: a) large mailing lists will time out on individual emails b) the alternative to a is to use Bcc. Your ISP will probably set the maximum t

Re: [PHP] PHP & Sessions generates Segment Faults

2003-01-22 Thread Justin French
I can say with near certainty that there is a problem with the session handler you've chosen, for you to be getting these segfaults. As I pointed out, and as you've stated, if the sessions work fine with the 'files' handler type, then the issue must be with the alternate handler. So, if you wrote

[PHP] total file size

2003-01-22 Thread Victor
Is there a way to find out total upload file size from a file uploaded though an html form? I figure if I know the total size, then I can just consistently poke at the file being uploaded and math a progress bar for the file being uploaded, of course, this all hangs upon the ability of getting the

[PHP] chown()

2003-01-22 Thread Urb LeJeune
Has anyone had success in changing the ownership of a directory for within a PHP script? I am running as root an have tries exec() passthru() ``back ticks system() This works fine in a Perl script: `chown egovdemo:nobody /home/e-govdemo/htdocs`; They are back ticks. Same line in the PHP scr

[PHP] Generating a range of IP address

2003-01-22 Thread rdkurth
I need a way to add a range of IPaddress to a databases the example below work as long as the last numbers in the IPaddress are equal length like three numbers or two or one. If the first IPaddress has 1 number and the second has two or three numbers the script will not work.

Re: [PHP] ? in URLS.

2003-01-22 Thread John Nichel
Everything after the question mark is a query string. Say you have this... http://www.mydomain.com/index.php?var1=value1&var2=value2&var3=something-else to access these values in your script... $_GET['var1'] $_GET['var2'] $_GET['var3'] In other words, if I want to print out the value of var2 o

[PHP] SMTP, mail() and piping directly into Sendmail, which is better?

2003-01-22 Thread Jonathan Chum
I'm working on mass mailing list application and doing my research on the part with the actual delivery of the message. I've been using a Perl script called MojoMail which sends out blasts just fine and boasts that SMTP is the fastest way for delivery than with Sendmail using a module called BulkMa

[PHP] ? in URLS.

2003-01-22 Thread Simon Angell
Hi All. I am currently playing with sripts, and have come across a problem, that i can't slove. (i am a novice - lol). The script requires a URL to grab data from. The URL has a ? in it, and testing the script it grabs the base data of the URL, but not the essential data i need, which is only broug

[PHP] POST vs GET method

2003-01-22 Thread Bob Lockie
PHP Version 4.3.0 Apache 2.0.43 I am having a problem with a post method. GET method: _REQUEST['name']=value _GET['name']=value _POST['name']= POST method: _REQUEST['name']=valuename=value _GET['name']= _POST['name']=valuename=value I assumed that by using _REQUEST that I could use eithe

[PHP] continue after break

2003-01-22 Thread Reymond
Hi everyone, I made a while loop and i'd like to know how to continue looping after I break it, and . Here is my script : I found just break looping on my page, can't continue :(

RE: [PHP] How to implement this by php Session

2003-01-22 Thread Henry
HI Chirs: thanks for your reply and opinion, so you mean I can know the alive session by reading /tmp ? I think that's only problem I want to know cause I affraid that I can't hold the dead or alive of session OK, I'll try to trace session by reading /tmp directory thanks a lot -Or

[PHP] htpasswd

2003-01-22 Thread Kris
Hi I've built a secure site. After the user has chosen a valid username and password I want my script to run htpasswd on the .htpasswd file in the directory. The script can run htpasswd as it doesn't have permission. What is the safest way to do this? Should I chmod htpasswd or is there a bette

RE: [PHP] Saving files

2003-01-22 Thread John W. Holmes
> Hello to everybody!!! I'm writing to know if somebody > knows a way to obtain the paht to save a file in the > computer from a button, like the tag, > but for saving a file. Thank you very much for your help!! > I'll really appreciate the answerd. I couldn't find "paht" on websters.com. You'll

[PHP] Saving files

2003-01-22 Thread Sabina Alejandr Schneider
Hello to everybody!!! I'm writing to know if somebody knows a way to obtain the paht to save a file in the computer from a button, like the tag, but for saving a file. Thank you very much for your help!! I'll really appreciate the answerd.

[PHP] THANK YOU FOR THE HELP

2003-01-22 Thread Dale
I apologize for the caps. The suggested fix seems to have resolved all problems. I appreciate the fast response. Thank you. Sincerely, Dale -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] pear timezone class newbie help

2003-01-22 Thread Gijs Hubben
Can anyone supply me with some general example code that shows how to use the functions of PEAR Timezone.php ? I can't seem to figure it out. thanks Gijs

RE: [PHP] How to implement this by php Session

2003-01-22 Thread John W. Holmes
When someone logs in, save their ID somewhere. If they try to log in again, check where you save the names and see if it's there. Checking my crystal ball, though, you're going to run into problems. What if I log in, accidentally close my window, and then go back to try and log in again. Odds are

RE: [PHP] backslash t

2003-01-22 Thread John W. Holmes
> I want php to print " \tab" > but when I do, I only get "ab" as output. > How do I keep the \t? \t is a tab character. If you looked in your source code, you'd see a tab there. Use "\\tab" ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http

[PHP] Jasper Reports and PHP

2003-01-22 Thread John Wells
Anyone tried to use Jasper Reports with PHP? Jasper is a java reporting tool, but I need an os alternative to Crystal Reports and am hoping it might fit the bill. I *think* I could integrate Jasper into my app fairly well with PHP's ability to call Java classes, but wanted to hear from anyone els

RE: [PHP] a simple getenv question....

2003-01-22 Thread Bruce Douglas
Timothy, Thanks for your input.. but I was trying to get a better understanding as to why the getenv() function was apparently not returning the SERVER environment vars. thanks -bruce -Original Message- From: Timothy Hitchens (HiTCHO) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, Jan

RE: [PHP] a simple getenv question....

2003-01-22 Thread Timothy Hitchens \(HiTCHO\)
Do this: If what you want is here this just use: $_SERVER['REMOTE_ADDR'] etc You will need to have a look at the source of the output as the rendered view will look a little strange. Timothy Hitchens (HiTCHO) Open Source Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > Fr

RE: [PHP] a simple getenv question....

2003-01-22 Thread Bruce Douglas
phpinfo() returns everything as expected.. but not having the code .. i don't know what internal method it uses to access the information... but thanks... -bruce -Original Message- From: Timothy Hitchens (HiTCHO) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 4:18 PM To: '

RE: [PHP] Custom Error pages in IIS

2003-01-22 Thread John W. Holmes
No biggie, but you forgot an 's' on the address: http://www.iis-resources.com, in case anyone was having trouble getting there. Thank you for the link, though. ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ > -Or

RE: [PHP] NEED HELP URGENTLY

2003-01-22 Thread John W. Holmes
And then read some articles or news on the language you've been "programming in for two years" ---John Holmes... > -Original Message- > From: Timothy Hitchens (HiTCHO) [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 22, 2003 6:58 PM > To: 'Dale'; [EMAIL PROTECTED] > Subject: RE: [PH

RE: [PHP] a simple getenv question....

2003-01-22 Thread Timothy Hitchens \(HiTCHO\)
The simplest way to start looking would be phpinfo() page for starters. Timothy Hitchens (HiTCHO) Open Source Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Jim Lucas [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 23 January 2003 10:15 AM > To: Bruce Douglas; [EMAIL PRO

Re: [PHP] a simple getenv question....

2003-01-22 Thread Jim Lucas
just copied your code and it worked fine for me. system: Apache 1.3.26 PHP 4.2.2 I would look into apache 2.0 and the env vars that are available from it. - Original Message - From: "Bruce Douglas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 22, 2003

RE: [PHP] MySQL 4.0 + PHP 4

2003-01-22 Thread John W. Holmes
> On Wednesday 22 January 2003 18:52, 1LT John W. Holmes wrote: > > > There's really no change from the PHP side. PHP just sends the data and > > receives something back The only change in PHP is that mysql_connect() > now > > supports additional flags to connect over SSL. > > Nope, I only forgot

Re: [PHP] NEED HELP URGENTLY

2003-01-22 Thread Leif K-Brooks
First of all, you don't need to type in all caps like that. I thought this was the Nigerian Scam for a minute there! :-) Anyway, in PHP 4.2+, the php.ini setting register_globals is off by default. You'll need to either turn it on, or start using the newer $_POST superglobal array. For mor

RE: [PHP] NEED HELP URGENTLY

2003-01-22 Thread John Wells
AND PLEASE STOP YELLING HiTCHO said: > Global Variables are turned off!!! check php.ini!! > > > > Timothy Hitchens (HiTCHO) > Open Source Consulting > e-mail: [EMAIL PROTECTED] > >> -Original Message- >> From: Dale [mailto:[EMAIL PROTECTED]] >> Sent: Thursday, 23 January 2003 10:02

[PHP] a simple getenv question....

2003-01-22 Thread Bruce Douglas
Hi... A simple question... In the following code: I can only seem to get the last line to display the correct value. It's as if I can't seem to get/return any of the SERVER environment variables using the getenv() function I'm using Apache 2.0.40, PHP 4.2.2 on Linux RedHat 8.0. I've check

[PHP] Rather complex regular expression for the preg_match_all function

2003-01-22 Thread Andreas Sheriff
Hi, I'm trying to construct a regular expression to find HTML open tags without closing tags up to another of the same HTML open tag or a closing tag of a different type that's no enclosed in the implied closing tag optional HTML tag (for example doesn't require a closing tag. The closing tag is

RE: [PHP] NEED HELP URGENTLY

2003-01-22 Thread Timothy Hitchens \(HiTCHO\)
Global Variables are turned off!!! check php.ini!! Timothy Hitchens (HiTCHO) Open Source Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Dale [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 23 January 2003 10:02 AM > To: [EMAIL PROTECTED] > Subject: [PHP] NEED HELP URGEN

[PHP] NEED HELP URGENTLY

2003-01-22 Thread Dale
I SETUP THE PHP PARSE ENGINE ON ABOUT A YEAR AGO ON ONE OF MY WEB SERVERS AND EVERYTHING WORKED JUST FINE. I, HOWEVER, RECENTLY ACQUIRED A NEW SERVER AND TRIED TO SETUP PHP AGAIN ON IIS 5.0 ON A WIN 2K SERVER PLATFORM. EVERYTHING SEEMS TO BE WORKING CORRECTLY, BUT FOR SOME REASONS WHEN I TRY TO ACC

RE: [PHP] Returning a value from a recursive function

2003-01-22 Thread Andy Crain
Thanks very much, Brian. Your response helped me find the answer. On the recursive call to breadcrumbs(), the function wasn't actually returning anything to itself. I replaced "breadcrumbs()" with "return breadcrumbs()" and everything now works. > -Original Message- > From: Brian T. Allen

[PHP] Re: writing a newsletter program in php?

2003-01-22 Thread Manuel Lemos
Hello, On 01/22/2003 08:15 PM, Mark C wrote: I'm new to php (ok new, try 3 days ;), althought, I'm finding it fun, I 'm trying to think of a project to do, to get me more into it. And after having a discussion with a friend and also setting up several Mailman mailing lists for people that want

Re: [PHP] Reading Directory in reverse

2003-01-22 Thread Jim Lucas
is it on a unix system? if so, do an ls on the system and you will see that the files are listed in that order. it is the order in which they were copied to the directory. try going through a loop before you run your main loop, create an array() then sort that with some sorting functions and you

[PHP] Reading Directory in reverse

2003-01-22 Thread Bob Irwin
Hi Guys, Does anyone happen to know why the below code reads the directory in reverse alphabetical order? Not a major problem - easy enough to whack it in an array and sort it, but annoying nonetheless. $default_dir = "../screenshots"; if (!($dp = opendir($default_dir))) die("cannot open $defa

Re: [PHP] Re: Is there a way to undo the md5() encryption??

2003-01-22 Thread Peter Hutnick
Scott Fletcher said: > Darn!! There's no way to undo it. So, I can't use this method of > encryption for my other project. In that case, I'll live. Lemme guess? Was it going to be a revolutionary compression program that can compress any file to 128 bits? In all seriousness, the output o

[PHP] inserting date

2003-01-22 Thread Diana Castillo
When I insert a date into Mysql it has to be in year/month/day format or else it wont go in right. how do I convert my date variable which is in month /day /year format into year/month/day format? -- Productos de salud: http://www.nvtechnologies.com/hgh -- PHP General Mailing List (http://www

Re: [PHP] Is there a way to undo the md5() encryption??

2003-01-22 Thread Scott Fletcher
I had it figured out!! Don't need to decrypt it. Instead, I can encrypt the account number by javascript. Grab the unencrypted account number. Put it into two variable, encrypt the first one with PHP and match it by Javascript. If accept then I use the 2nd variable to grab the data from the d

Re: [PHP] MySQL 4.0 + PHP 4

2003-01-22 Thread Georg Richter
On Wednesday 22 January 2003 18:52, 1LT John W. Holmes wrote: > There's really no change from the PHP side. PHP just sends the data and > receives something back The only change in PHP is that mysql_connect() now > supports additional flags to connect over SSL. Nope, I only forgot to remove a con

[PHP] writing a newsletter program in php?

2003-01-22 Thread Mark C
Hi, I'm new to php (ok new, try 3 days ;), althought, I'm finding it fun, I 'm trying to think of a project to do, to get me more into it. And after having a discussion with a friend and also setting up several Mailman mailing lists for people that want to compose HTML mails and post them as n

Re: [PHP] Re: Simple E-mail Question

2003-01-22 Thread 1LT John W. Holmes
> > I'm using this line to send an e-mail with info: > > > > mail("[EMAIL PROTECTED]", "$Event Ticket Form", $msg, $mailheaders); > > > > If I want to add mail recipients, or cc, or bcc, how would I do this? > > add "cc: [EMAIL PROTECTED]\n" etc. to your $mailheaders Use \r\n to separate header

[PHP] Re: Is there a way to undo the md5() encryption??

2003-01-22 Thread Scott Fletcher
Darn!! There's no way to undo it. So, I can't use this method of encryption for my other project. In that case, I'll live. "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi! Is there a way to do the decryption of the encrypted data with

[PHP] Re: Simple E-mail Question

2003-01-22 Thread Aquarion
In article <[EMAIL PROTECTED]>, Scott Saraniero wrote: > Hi, > > I'm using this line to send an e-mail with info: > > mail("[EMAIL PROTECTED]", "$Event Ticket Form", $msg, $mailheaders); > > If I want to add mail recipients, or cc, or bcc, how would I do this? add "cc: [EMAIL PROTECTED]\n" etc.

Fw: [PHP] Is there a way to undo the md5() encryption??

2003-01-22 Thread Rick Emery
No. md5() is not an encryption, it's a hash. - Original Message - From: "Scott Fletcher" <[EMAIL PROTECTED]> To: <> Sent: Wednesday, January 22, 2003 3:47 PM Subject: [PHP] Is there a way to undo the md5() encryption?? Hi! Is there a way to do the decryption of the encrypted data with

Re: [PHP] Is there a way to undo the md5() encryption??

2003-01-22 Thread Brad Pauly
> Hi! Is there a way to do the decryption of the encrypted data with the use > of md5()?? Nope. md5 is a one way function. http://www.faqs.org/faqs/cryptography-faq/part07/ Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Returning a value from a recursive function

2003-01-22 Thread Brian T. Allen
I think it will work if you return true, and just modify the global variable (not try to output it). Then output it (or capture it to begin with ($total_count = OneHundred();) after the function is called. You could also pass the variable, rather than making it global (OneHundred("0") initially,

Re: [PHP] Custom Error pages in IIS

2003-01-22 Thread Didier McGillis
Have you tried http://www.iis-resource.com, they have some good resources. From: "1LT John W. Holmes" <[EMAIL PROTECTED]> Reply-To: "1LT John W. Holmes" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: [PHP] Custom Error pages in IIS Date: Wed, 22 Jan 2003 15:08:58 -0500 Is anyone using

[PHP] Is there a way to undo the md5() encryption??

2003-01-22 Thread Scott Fletcher
Hi! Is there a way to do the decryption of the encrypted data with the use of md5()?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: $object->function($parameter)->function();

2003-01-22 Thread Greg Beaver
Hi Chris, Zend Engine 2.0 supports this syntax, and will be included with PHP 5. You can read all about zend 2 and its other improvements at http://www.zend.com Greg -- phpDocumentor http://www.phpdoc.org "Chris McCluskey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROT

Re: [PHP] HELP HELP on a file parser

2003-01-22 Thread 1LT John W. Holmes
> $answer = array_flip($intersect); > fwrite ($results, $answer); That won't work, either. It'll write "Array" to your file, probably. You'll want this: $answer = array_flip($intersect); $results_file = implode("\n",$answer); fwrite($results,$results_file); ---John Holmes... - Original Mes

Re: [PHP] HELP HELP on a file parser

2003-01-22 Thread 1LT John W. Holmes
$intersect = array_intersect($log_file_array[$code],$numbers); should be $intersect = array_intersect($log_file_array,$numbers); ---John Holmes... - Original Message - From: "Didier McGillis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 22, 2003 4:23 PM Subject:

Re: [PHP] HELP HELP on a file parser

2003-01-22 Thread Didier McGillis
Fixed a couple of things in the code. Pretty good for psudo code. :) But I get this error when running. Warning: Argument #1 to array_intersect() is not an array in /home/httpd/vhosts/mccullough-net.com/httpdocs/GH/parse2.php on line 27 Warning: Wrong datatype in array_flip() call in /home/h

Re: [PHP] HELP HELP on a file parser

2003-01-22 Thread 1LT John W. Holmes
Okay, if I understand everything correctly, something like this may work, if you can get around the issue of your file sizes being so large, and you can deal with the amount of memory this is going to eat up, and you realize that Perl is probably better suited to the job... //read numbers $numbers

[PHP] Possible values for get_browser()->css

2003-01-22 Thread Liam . Gibbs
When I run, $r = get_browser(); and take a look at the css value, I get 2. I would have figured that it could only be 0 (not supported) or 1 (supported). What are the possible values for get_browser()'s css, and what do those values mean? -- PHP General Mailing List (http://www.php.net/) To unsub

[PHP] Browser language problem

2003-01-22 Thread John M
Hello, I have the code below, but it doesn't work. I see the message "It is an array" but nothing else. What can be the problem? How can I get the actual browser language? I use WinXp Prof, Apache 2.0.43, PHP 4.2.3, safe_mode is on. Thanks! -- PHP General Mailing List (http://www.php.net/)

[PHP] Returning a value from a recursive function

2003-01-22 Thread Andy Crain
Everyone, I'm stumped by this, even after searching the archives and the web, although I admit the solution likely is something very obvious. I've written a function to build a string of "breadcrumb" links for a web site directory similar to Yahoo, etc. It queries a categories table recursivel

Re: [PHP] A Licensing Question

2003-01-22 Thread Peter Hutnick
John Wells said: > Peter Hutnick said: >>> Yeah...that's really what I'm wondering. If I have my own code, but >>> make function calls and the like to script libraries licensed under >>> the GPL, does it mean my code will have to be GPL'd as well? >> >> In a word, yes. > > Even if the script libr

[PHP] Custom Error pages in IIS

2003-01-22 Thread 1LT John W. Holmes
Is anyone using PHP to create custom error pages in IIS. I want to modify the 403 error page to do a redirect to HTTPS if it was requested with HTTP. I had someone try it, but they said it didn't work. I'm at work now and don't have a box to try it on until I get home. Does anyone have this working

[PHP] $object->function($parameter)->function();

2003-01-22 Thread Chris McCluskey
Hi there, I've been using PHP for about 2 years now and absolutely love it! Our company uses it as our main development language, so far though, there is one thing that has been annoying me for a while now.. the following line of code will not work: $object->function1($parameter)->function2();

Re: [PHP] A Licensing Question

2003-01-22 Thread John Wells
Chris, Sheesh. I'd read it about 5 times but revisited just now. Somehow I missed the key phrase "which are themselves interpreted.". Here's the full relevant excerpt: "Another similar and very common case is to provide libraries with the interpreter which are themselves interpreted. For insta

Re: [PHP] Quick Question about Template Parsers

2003-01-22 Thread Brent Baisley
Sure, you could do it any way you want. One way or another you need to get it into a variable, so how you get the template there doesn't really have any affect on your replace function. I'm using the file based template so it's easy for users to modify. I "read" the template file into the outpu

[PHP] RE: last time, I promise...is this possible???

2003-01-22 Thread Edward Peloke
Not getting any responses so should I will plow through it, just wanted to try one more time. -Original Message- From: Edward Peloke [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 10:20 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] Is this just not possible?? ..create new odbc

Re: [PHP] A Licensing Question

2003-01-22 Thread Chris Shiflett
John, I am not an expert of copyright law and licenses, but this URL might help you answer some of your questions: http://www.gnu.org/licenses/gpl-faq.html Specifically, look at the questions under the heading, "Combining work with code released under the GPL", as they seem to be exactly what yo

Re: [PHP] backslash t

2003-01-22 Thread bbonkosk
You need to escape the '/' with a '/', as it is a special character. So, anytime you run into an issue where it looks like PHP is trying to interpret something you just want it to print. The best first guess is to try and escape it. Just Thought I would offer a little more explaination. > --

Re: [PHP] changing a key in an array

2003-01-22 Thread Brent Baisley
I'm not sure how you are creating your array, but your resulting array would look something like this: Array ( [name1]=>namevalue1 [a1]=>Array ( [k1]=>value1 [k2]=>value2 ) [name2]=>namevalue2 [a2]=>Array (... You end up with a two dimensional array (avoiding the columns term) that

[PHP] Email Problems

2003-01-22 Thread Gary
Hi, Can anyone tell me what may be wrong with my email configuration? I am using Microsoft Outlook with a Microsoft Exchange Server. My PHP programs can no longer send emails. They were able to before, seems like it stopped about a month ago. I don't believe I have changed anything. And it's

Re: [PHP] backslash t

2003-01-22 Thread Chris Hayes
At 20:19 22-1-03, you wrote: Hi, I want php to print " \tab" but when I do, I only get "ab" as output. How do I keep the \t? Jan, between "double quotes", several things are translated this becomes \t a tab \r a carriage return \n a newline \" " \\ \ There are more,

Re: [PHP] backslash t

2003-01-22 Thread Chris Shiflett
--- Jan Grafström <[EMAIL PROTECTED]> wrote: > I want php to print " \tab" echo " \\tab"; Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A Licensing Question

2003-01-22 Thread John Wells
Peter Hutnick said: >> Yeah...that's really what I'm wondering. If I have my own code, but >> make function calls and the like to script libraries licensed under >> the GPL, does it mean my code will have to be GPL'd as well? > > In a word, yes. Even if the script libraries are themselves just PH

[PHP] backslash t

2003-01-22 Thread Jan Grafström
Hi, I want php to print " \tab" but when I do, I only get "ab" as output. How do I keep the \t? Thanks in advance. Jan Grafström -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A Licensing Question

2003-01-22 Thread Peter Hutnick
John Wells said: >> However - if you want to sell software under a closed licence you will >> need to be carefull to avoid 'linking' with gpl'd code. >> The problem is that 'linking' as used in the gpl seems to refer to C >> programming - and is an unclear term when refering to php. I know I read

Re: [PHP] PHP & Sessions generates Segment Faults

2003-01-22 Thread Blaster
Hey, I'm back =) I was unable to get it to run, I've setup the most basic session handler i could think of, a simple counter, if any of you could test it, I'd be very thankful, the URL is http://fatboy.blaster.nu/~blaster/sess_test/ Now, it does not "cut" the content, not sure why it doesn't do

Re: [PHP] How to implement this by php Session

2003-01-22 Thread Chris Shiflett
--- Henry <[EMAIL PROTECTED]> wrote: > what I want to do is make sure one account can login > in at the same time I understand now, with Jason's help. > is there any mechanism in PHP can slove it? Well, not exactly. You see, this is a rather strange restriction (or seems strange to me at least).

Re: [PHP] Select value for driopdown box

2003-01-22 Thread Jim Lucas
function DrawOptions($options, $active='') { $str = ''; foreach($options AS $key=>$value) { $sel = ($active==$key?" SELECTED":""); $str .= "".$value."\n"; } return($str); } Try this array needs to be a key-value pair that has the value that you are looking for as the key and

Re: [PHP] A Licensing Question

2003-01-22 Thread Sean Burlington
Chris Hayes wrote: At 17:17 22-1-03, you wrote: I was wondering what the licensing issues for app frameworks (or any included PHP classes/libs) are. I'm creating a rather large PHP application for a company, and they'd like to potentially resell it to some of their customers. Can I safely use

Re: [PHP] Select value for driopdown box

2003-01-22 Thread Michael Sweeney
Assuming that you know which state is selected before you build the select list: $sel_state = $_REQUEST['state']; ... while($row = mysql_fetch_array($result)) { $buyerid = $row['buyerid']; $state = $row['state']; $selected = $state == $sel_state ? "selected=\"selected\"" : ""; $

Re: [PHP] changing a key in an array

2003-01-22 Thread David T-G
Brent, et al -- ...and then Brent Baisley said... % % I had to do something like this not to long ago. Luckily it hit me that % I shouldn't be changing keys, you don't do it in a database, so you % really shouldn't do it in an array. Hmmm... Good point. % I ended up adding a "column" to my

  1   2   3   >