[PHP] Re: Excel Table & download it

2003-11-24 Thread Phillip Jackson
excel can read html tables with partial formatting through stylesheets output html tags and save the file as an *.xls file. i redirect back to the file after writing to it - ie doesn't display it, rather it prompts to download. ~phillip "Leon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PR

[PHP] $$vars and security

2003-11-24 Thread Phillip Jackson
i have developed my own "register globals" function that mimics the action of register globals, but only for $_POST... i do this to ensure that all incoming communication is escaped for use in scripts to account for, and to avoid, SQL injection. below is the code... any suggestions would be welcom

[PHP] $ of variables, php, mysql

2003-11-24 Thread Joffrey Leevy
Would appreciate in anyone can help me. Let's say I do a query in php, eg. $query = "select shed from structure"; With the mysql_fetch_array function and a loop I could see all the values stored in the column, shed, using the command: echo $shed; Let's say now that I am carrying over a variable

Re: [PHP] need help with gettext i18n

2003-11-24 Thread Tom Rogers
Hi, Tuesday, November 25, 2003, 2:25:33 AM, you wrote: M> Hi there, M> I am trying to get I18n support working on my site. To do this I have M> isntalled gettext. M> Somehow the translation does not work. I did everything the examples M> explained, but I do stillg get en text. M> Here is what

RE: [PHP] looking for some software (helpdesk, intranet)

2003-11-24 Thread olinux
I came across this site recently. Look like a good resource for intranet ideas. http://www.intranetjournal.com They recently did a quick review of a couple open source content management systems. XOOPS was one that looks kinda cool. User accounts (and permissions), forums, link gallery, news, comm

[PHP] Re: Echo HTML code Verses breaking out of

2003-11-24 Thread tkwright
I dont think you are going to belive this, but here are the results from a php-class I made(for code see bottom of message): Just warming the timer This Is HTML ### # Total

[PHP] PRINT QUESTION

2003-11-24 Thread Dale Hersh
I know that in php there are a bunch of basic functions for opening a connection to a printer and then handling the printer queue and so forth. I would like to know how to take a string and echo that to the printer in php. Thanks, Dale -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] $_SESSION var sometimes set, sometimes not

2003-11-24 Thread Anthony Whipple
I just tried that. It made no change. Still sometimes works, sometimes doesn't. It's on the order of clicks. It may work three times in a row, then fail a couple times. It's very strange. "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Anthony Whipple wrote: > >

Re: [PHP] Changing php directives inside apache config file

2003-11-24 Thread John Nichel
Pablo Gosse wrote: [snip] There's really no reason to wrap the 'php_value' in the IfModule statement. Other than the, the syntax looks good...I know it's supposed to work in the httpd.conf, but I've never tested that...I've always done it in a .htaccess in the document root for the virtual. [/

Re: [PHP] $_SESSION var sometimes set, sometimes not

2003-11-24 Thread John W. Holmes
Anthony Whipple wrote: The following code sometimes produces output indicating that the session variables have been set, and sometimes is says that they have not been set. Unfortunately the server is not mine to configure, but if there is a problem with it, I can get in touch with the right people

Re: [PHP] Date format question

2003-11-24 Thread Justin French
On Tuesday, November 25, 2003, at 01:42 PM, Manisha Sathe wrote: I have a date returned from MySQL in '-MM-DD' format, i want to show this date in 'DD/MM/' format using PHP, date() function does the same if i pass timestamp in int format, but how to convert into int timestamp ? e.g f

Re: [PHP] String display issue

2003-11-24 Thread John W. Holmes
Jay Blanchard wrote: [snip] I am writing an application where users will input information such as 6' section of 3/4" pipe How can I get the whole line to show up on the screen when both single and double quotes are contained in the text string. [/snip] addslashes going in stripslashes coming out

Re: [PHP] Date format question

2003-11-24 Thread John W. Holmes
Manisha Sathe wrote: I have a date returned from MySQL in '-MM-DD' format, i want to show this date in 'DD/MM/' format using PHP, date() function does the same if i pass timestamp in int format, but how to convert into int timestamp ? e.g from '2003-11-25' to '20031125' ? and Then I believ

[PHP] $_SESSION var sometimes set, sometimes not

2003-11-24 Thread Anthony Whipple
Hi, The following code sometimes produces output indicating that the session variables have been set, and sometimes is says that they have not been set. Unfortunately the server is not mine to configure, but if there is a problem with it, I can get in touch with the right people. Is the script pr

[PHP] Date format question

2003-11-24 Thread Manisha Sathe
I have a date returned from MySQL in '-MM-DD' format, i want to show this date in 'DD/MM/' format using PHP, date() function does the same if i pass timestamp in int format, but how to convert into int timestamp ? e.g from '2003-11-25' to '20031125' ? and Then I believe that i can use dat

[PHP] socket_select() hangs sometimes; Bug?

2003-11-24 Thread Thomas Weber
Hi folks, I am battling around with socket_select() for some months now and still have an unsolved problem with random hanging. PHP: 4.3.4 with -sockets, -sigchild, -pcntl and some other things OS: FreeBSD 5.0 (same problem with 4.8 and 5.1) In simple words, I have a server-daemon (runs with PHP

Re: [PHP] is it safe to store username and password for mysql connection in session variables?

2003-11-24 Thread Justin French
On Tuesday, November 25, 2003, at 06:25 AM, anders thoresson wrote: For the most part, yes, it is fine. Because session variables are maintained on the server, many risks are not a concern. Ok. So it's more or less safe, at least as long as the server is locked down. But someone, on this list o

Re: [PHP] file delimited

2003-11-24 Thread Justin French
On Sunday, November 23, 2003, at 10:50 PM, tony wrote: Hi, I'm new to php I just come from perl, and I wanted to know like perl if we can open a file and read delimited line just like the cvs function, but I don't want comma separated, i want the vertical bar '|'. You can do this with http://w

RE: [PHP] Include an encoder into PHP distribution?

2003-11-24 Thread I T
This statement demonstrates a lack of understanding on your part. PHP is free. Completely free. It costs nothing. Nada, zilch, zero. It is not owned by any company or induhvidual. There are acknowledged leaders in the community. Did a worker from Zend just say that if there is going to be an encode

RE: [PHP] Changing php directives inside apache config file

2003-11-24 Thread Pablo Gosse
[snip] There's really no reason to wrap the 'php_value' in the IfModule statement. Other than the, the syntax looks good...I know it's supposed to work in the httpd.conf, but I've never tested that...I've always done it in a .htaccess in the document root for the virtual. [/snip] I'm pretty mu

Re: [PHP] Changing php directives inside apache config file

2003-11-24 Thread John Nichel
Pablo Gosse wrote: Hi all. I'm trying to alter the include_path for three different sites running on the same machine, and I do not want to use ini_set in each file. Here's what I've set up for each virtual host inside my httpd.conf file: php_value include_path ".:/usr/local/lib/ph

[PHP] Changing php directives inside apache config file

2003-11-24 Thread Pablo Gosse
Hi all. I'm trying to alter the include_path for three different sites running on the same machine, and I do not want to use ini_set in each file. Here's what I've set up for each virtual host inside my httpd.conf file: php_value include_path ".:/usr/local/lib/php:/path/to/cmsdev.u

Re: [PHP] First Day of Week

2003-11-24 Thread Marek Kilimajer
Shaun wrote: Hi, Given any particular date, how can I find out what the first date of that week is i.e. the Monday of that week? Thanks for your help This will get you started: strtotime('monday', $timestamp); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

RE: [PHP] First Day of Week

2003-11-24 Thread Jay Blanchard
[snip] Given any particular date, how can I find out what the first date of that week is i.e. the Monday of that week? [/snip] http://www.php.net/date Also, this has been explored in the archives on numerous occasions. The archives are located [FROM THE NEWBIE GUIDE] 3. Glancing through the list

[PHP] First Day of Week

2003-11-24 Thread Shaun
Hi, Given any particular date, how can I find out what the first date of that week is i.e. the Monday of that week? Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] array confusion...

2003-11-24 Thread Dan Joseph
Hi, > I think you might have some letter 'O's instead of the number 0. Notice > that you have CO1 and C01 when you print_r. They are different keys. I think you are correct! hahaha... oh man, one of those Mondays! Thank you sir! -Dan Joseph -- PHP General Mailing List (http://www.ph

Re: [PHP] array confusion...

2003-11-24 Thread Brad Pauly
On Mon, 2003-11-24 at 13:42, Dan Joseph wrote: > Hi, > > I must be missing something in this array. To me this makes no sense. > Here is it broken down... > > Declartion: > > $gtotals = array( > "CO1" => 0, > "CO2" => 0, > "CO3" => 0,

Re: [PHP] is it safe to store username and password for mysql connection in session variables?

2003-11-24 Thread anders thoresson
David Sklar and Adam Trachtenberg (two smart guys who authored the PHP Cookbook) suggest storing this information in the Web server's environment. Guess we are talking about recipe 8.20 and 8.21? I'm on a SunOS shared server. Should I add "SetEnv DB_PASS password" to the .htaccess file in my pu

[PHP] array confusion...

2003-11-24 Thread Dan Joseph
Hi, I must be missing something in this array. To me this makes no sense. Here is it broken down... Declartion: $gtotals = array( "CO1" => 0, "CO2" => 0, "CO3" => 0, "CO4" => 0, "CO5" => 0,

Re: [PHP] different PHP configs for multiple sites on same machine

2003-11-24 Thread John Nichel
Pablo Gosse wrote: Hi all. Is it possible to have different php.ini settings for different sites running on the same server (Apache)? What I want to do exactly is change the include_path on a per-site basis, without having to call ini_set in each page. I have the following: /home/vservers/cms.my

RE: [PHP] Technical Architecture Diagram

2003-11-24 Thread Jay Blanchard
[snip] I would be very grateful if someone could point to some resources on designing a technical architecture diagram for a PHP - MySQL web application. [/snip] Google for UML -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Technical Architecture Diagram

2003-11-24 Thread Shaun
Hi, I would be very grateful if someone could point to some resources on designing a technical architecture diagram for a PHP - MySQL web application. Thanks for your help -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] different PHP configs for multiple sites on same machine

2003-11-24 Thread Pablo Gosse
Hi all. Is it possible to have different php.ini settings for different sites running on the same server (Apache)? What I want to do exactly is change the include_path on a per-site basis, without having to call ini_set in each page. I have the following: /home/vservers/cms.mysite.com

[PHP] Re: Max File Size exceeded

2003-11-24 Thread Kim Steinhaug
You are probably referring to >2mb filesize. The default setting in php.ini for uploads are 2 MB. As far as I know there isnt any good way of checking the filesize client-side. You could however use some sort of java-applet I would think for the upload system - this would be able to validate the f

Re: [PHP] is it safe to store username and password for mysql connection in session variables?

2003-11-24 Thread Chris Shiflett
--- anders thoresson <[EMAIL PROTECTED]> wrote: > > For the most part, yes, it is fine. Because session variables are > > maintained on the server, many risks are not a concern. > > Ok. So it's more or less safe, at least as long as the server is > locked down. But someone, on this list or somewhe

Re: [PHP] Securing PHP code..

2003-11-24 Thread Chris Shiflett
--- Video Populares et Optimates <[EMAIL PROTECTED]> wrote: > > If you mean to protect your source from your users, that is the case > > already. Unless someone can compromise your server, they never get > > access to the source, only its output. > > True! But what for the network technicians, sys

Re: [PHP] is it safe to store username and password for mysql connection in session variables?

2003-11-24 Thread anders thoresson
For the most part, yes, it is fine. Because session variables are maintained on the server, many risks are not a concern. Ok. So it's more or less safe, at least as long as the server is locked down. But someone, on this list or somewhere else, I don't remember, pointed out that if my site gets

Re: [PHP] PHP to get mail headers

2003-11-24 Thread Raditha Dissanayake
Hi scott, While this can be done with php (either with al's suggestion or with any of the freely available mime decoders) i feel you would be better off doing this at a lower level. Since you run an ISP you might be using qmail, there are loads of good suggestions for spam filtering in the qma

Re: [PHP] PHP with Java extension

2003-11-24 Thread Raditha Dissanayake
Hi, Generally integrating java and php together is not easy. There are other options some of which ray has suggested. Others include soap or writing out objects using the XMLEncoder class (1.4+) and decoding them with a parser in your php. Panos Konstantinidis wrote: Hello, I am completely

[PHP] Thanks I figured it out.

2003-11-24 Thread Renaldo De Silva
Thanks I figured it out it was just what you suggested. "Renaldo De Silva" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Forgive me if you've already addressed this, I'm trying to post some > variable to a php sript and they just arn't registering if i use the code > below it get's

RE: [PHP] looking for some software (helpdesk, intranet)

2003-11-24 Thread Chris W. Parker
Jason Wong on Friday, November 21, 2003 8:07 PM said: > 1) State what exactly you're looking for -- what features are > must-have, what are nice-to-have etc. Specifically I want users to have their own accounts with their own personal data. Right now everyone sees t

Re: [PHP] Securing PHP code..

2003-11-24 Thread Video Populares et Optimates
> > If you mean to protect your source from your users, that is the case > already. Unless someone can compromise your server, they never get access > to the source, only its output. > True! But what for the network technicians, system administrators and web developers (to be very paranoid) that a

Re: [PHP] Securing PHP code..

2003-11-24 Thread Video Populares et Optimates
Yes, I've had that thought also. I believe that the question you suggest will probably the foundation of the main course I'll take. For what possibilities are there really to hide anything in plain text that anyway will reside on third-party servers. (rhetorical question) You can never know what

RE: [PHP] ldap_search() question

2003-11-24 Thread Schechter, Ricky
WORKED! You've got it. I had to use the "$attr = "userPassword";" attribute in my case. Thank you very much, Kelly! Ricky -Original Message- From: Kelly Hallman [mailto:[EMAIL PROTECTED] Sent: Sunday, November 23, 2003 12:08 PM To: Schechter, Ricky Cc: '[EMAIL PROTECTED]' Subject: Re:

Re: [PHP] Apache 2.*

2003-11-24 Thread Martin Hudec
Yep I forgot to mention that it is off by default :). Hmmm nice to know that there is shorter name :). Thanks for info, I haven't used PHP for long time. On Monday 24 November 2003 17:13, Chris Shiflett wrote: > To add to this, if register_globals is disabled by default, it is likely > that you'r

[PHP] need help with gettext i18n

2003-11-24 Thread Merlin
Hi there, I am trying to get I18n support working on my site. To do this I have isntalled gettext. Somehow the translation does not work. I did everything the examples explained, but I do stillg get en text. Here is what I did. 1. I creaed a test file: // I18N support information here $lan

Re: [PHP] Apache 2.*

2003-11-24 Thread Chris Shiflett
--- Martin Hudec <[EMAIL PROTECTED]> wrote: > what you're looking for is called Register Globals which is turned > off, therefore you just cannot use $variable but must use > $HTTP_POST_VARS['variable']. To add to this, if register_globals is disabled by default, it is likely that you're using a v

Re: [PHP] Apache 2.*

2003-11-24 Thread Martin Hudec
Hello, what you're looking for is called Register Globals which is turned off, therefore you just cannot use $variable but must use $HTTP_POST_VARS['variable']. It is turned off for security reasons and can be usually find in php.ini file (ask your system administrator). On Monday 24 Novembe

RE: [PHP] Apache 2.*

2003-11-24 Thread Jay Blanchard
[snip] Forgive me if you've already addressed this, I'm trying to post some variable to a php sript and they just arn't registering if i use the code below it get's the variable and it's contents "; reset ($HTTP_POST_VARS); while (list ($key, $val) = each ($HTTP_POST_VARS)) { echo "$key =>

Re: [PHP] is it safe to store username and password for mysql connection in session variables?

2003-11-24 Thread Chris Shiflett
--- anders thoresson <[EMAIL PROTECTED]> wrote: > In the ini-files for my php-projects, I store various settings. > Two of them is username and password for my mysql-connections. > > Is it safe to load these two into session variables when a user logs > in to my application? For the most part

RE: [PHP] String display issue

2003-11-24 Thread Jay Blanchard
[snip] I am writing an application where users will input information such as 6' section of 3/4" pipe How can I get the whole line to show up on the screen when both single and double quotes are contained in the text string. [/snip] addslashes going in stripslashes coming out http://www.php.net

RE: [PHP] Excel Table & download it

2003-11-24 Thread Pablo Gosse
Jay Blanchard wrote: > [snip] > I want generate an excel table & download it as a file (not view in > IE), what HTML mimetype should i use? [/snip] > > header("Content-Type: application/vnd.ms-excel"); > header("Content-Disposition: inline; filename=\"excel.xls\""); > header("Expires: 0"); > hea

Re: [PHP] Securing PHP code..

2003-11-24 Thread Chris Shiflett
--- Video Populares et Optimates <[EMAIL PROTECTED]> wrote: > I'm pondering on a problem here. Being a C/C++, Java and Visual Basic > developer, the aspect of reverse engineering code from (compiled) > programs, hasn't occupied my mind that much. > Now, developing PHP scripts on large scale I have

[PHP] Apache 2.*

2003-11-24 Thread Renaldo De Silva
Forgive me if you've already addressed this, I'm trying to post some variable to a php sript and they just arn't registering if i use the code below it get's the variable and it's contents "; reset ($HTTP_POST_VARS); while (list ($key, $val) = each ($HTTP_POST_VARS)) { echo "$key => $val";

[PHP] String display issue

2003-11-24 Thread Ken Ivon
I am writing an application where users will input information such as 6' section of 3/4" pipe How can I get the whole line to show up on the screen when both single and double quotes are contained in the text string. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

php-general Digest 24 Nov 2003 15:45:01 -0000 Issue 2434

2003-11-24 Thread php-general-digest-help
php-general Digest 24 Nov 2003 15:45:01 - Issue 2434 Topics (messages 170757 through 170796): Re: Duplicate Images 170757 by: John Nichel Re: when to use \n in forms 170758 by: John Nichel 170759 by: Nigel Jones 170760 by: John Nichel 170762 by: Nigel

RE: [PHP] Excel Table & download it

2003-11-24 Thread Jay Blanchard
[snip] I want generate an excel table & download it as a file (not view in IE), what HTML mimetype should i use? [/snip] header("Content-Type: application/vnd.ms-excel"); header("Content-Disposition: inline; filename=\"excel.xls\""); header("Expires: 0"); header("Cache-Control: must-revalidate, p

[PHP] file delimited

2003-11-24 Thread tony
Hi, I'm new to php I just come from perl, and I wanted to know like perl if we can open a file and read delimited line just like the cvs function, but I don't want comma separated, i want the vertical bar '|'. also if we read that file can the 'column' go in an array like perl i.e if we have a rec

[PHP] Excel Table & download it

2003-11-24 Thread leon
hi~ I want generate an excel table & download it as a file (not view in IE), what HTML mimetype should i use? leon [EMAIL PROTECTED]   2003-11-24 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] file delimited

2003-11-24 Thread Jay Blanchard
[snip] i want the vertical bar '|'. [/snip] http://www.php.net/explode $theLine = fgets($theFile, 1024); $arrayLine = explode("|", $theLine); Now each item from the line is in $arrayLine[0] $arrayLine[n] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

[PHP] Re: file delimited

2003-11-24 Thread Lucian Cozma
array fgetcsv ( resource handle, int length [, string delimiter [, string enclosure]]) PHP manual extract: $num fields in line $row: \n"; $row++; for ($c=0; $c < $num; $c++) { print $data[$c] . "\n"; } } fclose ($handle); ?>Lucian"Tony" <[EMAIL PROTECTED]> wrote in message new

[PHP] file delimited

2003-11-24 Thread tony
Hi, I'm new to php I just come from perl, and I wanted to know like perl if we can open a file and read delimited line just like the cvs function, but I don't want comma separated, i want the vertical bar '|'. also if we read that file can the 'column' go in an array like perl i.e if we have a rec

[PHP] mysql row num, offset?

2003-11-24 Thread Jan Grafström
Hi, can I get the rownumber (offset) from mysql? After I have made a select I want to generate an update query wich works for any table. Thanks in advance for any help. Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ERROR on PHP.net index page!!!

2003-11-24 Thread Paul
This is what I got on my browser: Parse error: parse error, expecting `')'' in /local/Web/sites/phpweb/include/layout.inc on line 29 Fatal error: Call to undefined function: make_image() in /local/Web/sites/phpweb/index.php on line 117 And this is the problem: $highlighted = '' . str_replace(

Re: [PHP] whaw

2003-11-24 Thread Chris Hayes
At 14:27 24-11-03, you wrote: pete M wrote: Even the pros systems crash sometimes http://www.php.net/ webmaster says it is fixed now, just waiting for the mirrors to pick it up. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP.net broken -> comma missing

2003-11-24 Thread Chris Hayes
At 14:21 24-11-03, you wrote: Greetings, it's from PHP.net : Parse error: parse error, expecting `')'' in /local/Web/sites/phpweb/include/layout.inc on line 29 Fatal error: Call to undefined function: make_image() in /local/Web/sites/phpweb/index.php on line 117 For in case the webmaster is monito

RE: [PHP] Securing PHP code..

2003-11-24 Thread Jay Blanchard
[snip] I'm pondering on a problem here. Being a C/C++, Java and Visual Basic developer, the aspect of reverse engineering code from (compiled) programs, hasn't occupied my mind that much. Now, developing PHP scripts on large scale I have started to think otherwise. How do you all secure your code?

Re: [PHP] whaw

2003-11-24 Thread Andrei Reinus
pete M wrote: Even the pros systems crash sometimes http://www.php.net/ // Highlight PHP code function highlight_php($code, $return = FALSE) { // Using OB, as highlight_string() only supports // returning the result from 4.2.0 ob_start(); highlight_string($code); $highlighted = ob_

[PHP] PHP.net broken

2003-11-24 Thread Hatem Ben
Greetings, it's from PHP.net : Parse error: parse error, expecting `')'' in /local/Web/sites/phpweb/include/layout.inc on line 29 Fatal error: Call to undefined function: make_image() in /local/Web/sites/phpweb/index.php on line 117 Regards, Hatem -- PHP General Mailing List (http://www.php.n

Re: [PHP] whaw

2003-11-24 Thread Andrei Reinus
pete M wrote: Even the pros systems crash sometimes http://www.php.net/ Dr. Evil-Parse-Error strikes again! :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] whaw

2003-11-24 Thread pete M
Even the pros systems crash sometimes http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] basic auth question

2003-11-24 Thread Jay Blanchard
[snip] Please CC me, I am on digest -- If I have a directory like: $HOME/www/ (document root) It has a auth section in the .htaccess file $HOME/www/.htaccess another directory like: $HOME/www/want_to_be_public/ How can I defeat the auth section in the $

[PHP] Re: HTML email enconding

2003-11-24 Thread Manuel Lemos
Hello, On 11/24/2003 07:26 AM, Binay wrote: Is it necessary to encode the message using base64 or quoted-printable format while sending the HTML email. What if i don't encode the message i.e (no Content-Transfer-Encoding specified)? Does it impose some security vulnerabilities? In general yes beca

[PHP] Re: Setting counter in variable name within foreach loop

2003-11-24 Thread pete M
Jake McHenry wrote: Is this possible? I've been messing with this for about an hour now, searching on google for about half hour. Here is what I want to do: foreach ($array as $key => $value) { $value = explode("|", $value); $counter = 0; if ($value[7] == "Yes") { $counter++; $date

[PHP] PHP 4.3.4 memory usage

2003-11-24 Thread Joshiko Burger
I'm concerned with very steep jump the PHP 4.3.4 made in memory usage since 4.3.3. In 4.3.3 with configure options '--disable-debug' '--enable-inline-optimization' '--with-gettext' '--enable-track-vars' '--enable-mbstring' '--enable-mbregex' '--enable-mbstr-enc-trans' '--with-gd' '--with-zlib' '--

[PHP] Re: xml parser und bestehende variablen - multilinguale app

2003-11-24 Thread Lucian Cozma
If you want that all the users will be able to help you, please post in English. Lucian "Merlin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hallo zusammen, > > ich möchte gerne meine bestehende app in mehreren Sprachen anbieten. > Dazu habe ich mir ein xml parser package instal

Re: [PHP] HTML email enconding

2003-11-24 Thread Nathan Taylor
There is a nice function called sendmail available in the comments on php.net/mail. I use that regularly as it inserts all the necessary headers and supports multiple attachments. It's well worth considering... Nathan - Original Message - From: Eugene Lee To: [EMAIL PROTECTED]

Re: [PHP] HTML email enconding

2003-11-24 Thread Eugene Lee
On Mon, Nov 24, 2003 at 03:33:57PM +0530, Binay wrote: : : So does it mean that if i don't encode the message then no need of : specifying the Content-Transfer-Encoding?? : And almost all mail client will interpret it correctly?? No. If your HTML message is guaranteed to be in the ISO-8859-1 ran

Re: [PHP] HTML email enconding

2003-11-24 Thread Binay
Hi Eugene, Thanks for quick reply So does it mean that if i don't encode the message then no need of specifying the Content-Transfer-Encoding?? And almost all mail client will interpret it correctly?? Binay - Original Message - From: "Eugene Lee" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED

[PHP] Securing PHP code..

2003-11-24 Thread Video Populares et Optimates
Hi! I'm pondering on a problem here. Being a C/C++, Java and Visual Basic developer, the aspect of reverse engineering code from (compiled) programs, hasn't occupied my mind that much. Now, developing PHP scripts on large scale I have started to think otherwise. How do you all secure your code?

Re: [PHP] HTML email enconding

2003-11-24 Thread Eugene Lee
On Mon, Nov 24, 2003 at 02:56:25PM +0530, Binay wrote: : : Is it necessary to encode the message using base64 or quoted-printable : format while sending the HTML email. Not always. Sometimes you can get away with only: Content-Type: text/html; charset="ISO-8859-1" Content-Transf

[PHP] HTML email enconding

2003-11-24 Thread Binay
Hi all, Is it necessary to encode the message using base64 or quoted-printable format while sending the HTML email. What if i don't encode the message i.e (no Content-Transfer-Encoding specified)? Does it impose some security vulnerabilities? Please helpe me out Thanks in advance Binay

Re: [PHP] PHP with Java extension

2003-11-24 Thread Ray Hunter
> Any ideas and recommendations are more than welcome. Try going the other waytry utilizing PHP in your servlet or j2ee server environment. I have had greater success with this then trying to get java integrated into PHP. HTH -- Ray -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Setting counter in variable name within foreach loop

2003-11-24 Thread Curt Zirzow
* Thus wrote Jake McHenry ([EMAIL PROTECTED]): > Is this possible? I've been messing with this for about an hour now, > searching on google for about half hour. Here is what I want to do: > > foreach ($array as $key => $value) > { > $value = explode("|", $value); > $counter = 0; You're reseti