Re: [PHP] Apache 2 and PHP for Production?

2004-07-19 Thread Lester Caine
Oliver John V. Tibi wrote: Wow! And come to think of it, how did you do it? Or should I stick with Apache1 until there is a viable solution to this upgrade dilemma? When I started playing with this, I had a windows machine onto which I tried installing Apache1. After a couple of days of frustratio

[PHP] Execute a scipt in the background

2004-07-19 Thread narender
I want to start the execution of a script in the background at the time of user login. In the script there is infinite loop which is checking something after every 10 seconds and if it get true value the it open a popup window on the brower and if the user session expires then it terminate the s

Re: [PHP] is there anyway to use constants in a string?

2004-07-19 Thread Justin Patrin
On Tue, 20 Jul 2004 00:31:19 -0400, Jason Barnett <[EMAIL PROTECTED]> wrote: > I was working on something else tonight when I literally stumbled across another > solution that works here... pick your poison: > > $heredoc = << > > > I am a text node. > > > %1\$s > %1\$

Re: [PHP] Dynamic function calls within the echo function, possible?

2004-07-19 Thread Justin Patrin
Concatenation makes a slightly larger file, but it is: 1) Easier to read 2) More efficient when used with ' instead of " If you use: echo "row = $row!"; then you're forcing PHP to do the concatenation internally. It's basically the same as: echo 'row ='.$row.'!'; Only it takes more parsing whe

Re: [PHP] Dynamic function calls within the echo function, possible?

2004-07-19 Thread Justin Patrin
On Tue, 20 Jul 2004 01:13:38 +, Curt Zirzow <[EMAIL PROTECTED]> wrote: > * Thus wrote Justin Patrin: > > Yo:-/ > > > > Hmmm, this must be PHP5 as in PHP4 parameters can't be by ref and have > > a default value. > > yes, that is php5 specific. > > > > > echo ' > > .row1 { > > background-

Re: [PHP] Embedded Email Directives

2004-07-19 Thread Curt Zirzow
* Thus wrote Manuel Lemos: > Hello, > > Nah, the mail function does not have bugs, even less it does wrong > filtering. Ask Curt, and he'll tell you it is all Manuel Lemos > imagination trying to push you to his site! (sorry couldn't resist! ;-) ) Would you please desist from dragging your ego

Re: [PHP] is there anyway to use constants in a string?

2004-07-19 Thread Jason Barnett
I was working on something else tonight when I literally stumbled across another solution that works here... pick your poison: I am a text node. %1\$s %1\$s %2\$s %3\$d XML; echo ''; define ('string1', 'Well looky here, some text.'); define ('string2', 'Man, I w

[PHP] Re: Array Losing value

2004-07-19 Thread Jason Barnett
if I die(sizeof($objDBI->Fetch_Array($objDBI->getResultID( within the DBI method, it return the correct value, however if I do $retval = $objDBI->Fetch_Array($objDBI->getResultID()); die(sizeof($retVal)); $retval != $retVal -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Embedded Email Directives

2004-07-19 Thread Manuel Lemos
Hello, On 07/19/2004 10:46 PM, Jordi Canals wrote: > remove carriage returns to prevent embedded email directives In an other thread, I readed that sentence. I'm interested to find more information about that. I have some mail forms and want to make them as secure and possible, but do not know a

[PHP] Re: PHP XL2Web?

2004-07-19 Thread Jason Barnett
Eric Marden wrote: I recently heard of a product called XL2Web (www.xl2web.com) and wanted to know if there is a php variant out there, perferably open source. It's going to be used for one or two excel files (our budget spread sheets) so i can't see spending the money on the commercial product. t

RE: [PHP] Creating Rows and Columns Using for() Loops

2004-07-19 Thread php-list
No, no...that's actually a great idea. I like your approach, especially in my case. Thank you for the suggestion! :) Navid -Original Message- From: Rory McKinley [mailto:[EMAIL PROTECTED] Sent: Friday, July 09, 2004 3:57 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP]

Re: [PHP] PHP configuration problem on Solaris 2.7

2004-07-19 Thread Curt Zirzow
* Thus wrote Mark Perkoski: > > I'm trying to do a PHP install on Solaris 2.7 and right out of the gate > I'm in trouble. > The configure script hangs almost immediately. > > Background: > > - I'm trying to config PHP version php-4.3.7 > - I have the following GNU packages installed: > flex ve

Re: [PHP] Apache 2 and PHP for Production?

2004-07-19 Thread Curt Zirzow
* Thus wrote Oliver John V. Tibi: > Wow! And come to think of it, how did you do it? Or should I stick with > Apache1 until there is a viable solution to this upgrade dilemma? I would stay with stick with apache 1.x. The only reason I would consider apache2 is if there was a module only available

Re: [PHP] Embedded Email Directives

2004-07-19 Thread Curt Zirzow
* Thus wrote Jordi Canals: > Jordi Canals wrote: > > >Dennis Gearon wrote: > > > > > remove carriage returns to prevent embedded email directives > > > >In an other thread, I readed that sentence. I'm interested to find more > >information about that. I have some mail forms and want to make them

[PHP] Array Losing value

2004-07-19 Thread Jonathan Villa
I have a class called DBI which handles all of my database calls. One method called Fetch_Array simply has return mysql_fetch_assoc($resultID) It's losing it's value when I try to pass the val to another var example class BaseItem { function getBaseItems() { return $objDBI

Re: [PHP] Apache 2 and PHP for Production?

2004-07-19 Thread Oliver John V. Tibi
Wow! And come to think of it, how did you do it? Or should I stick with Apache1 until there is a viable solution to this upgrade dilemma? -- Running 'ojtibi' on '127.0.0.1' (BATCH_OPTIMISTIC mode). "Live free() or die()." "Lester Caine" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED

Re: [PHP] Plain Number

2004-07-19 Thread Matthew Sims
> Is there an easy way to make a number have no comma or decmal points? > I've tried string replace with the comma but thought there would be a > better alternative that I'm missing to cover more bases. number_format > seems to add instead of take away items. > Jeff > If by no comma or decimal poi

Re: [PHP] Apache 2 and PHP for Production?

2004-07-19 Thread Matthew Sims
> On Tuesday 20 July 2004 03:22, Marten Lehmann wrote: > >> Why shouldn't I use PHP 5.0.0 with Apache 2.0.50? > > You can, if it works for you, but ... > > http://marc.theaimsgroup.com/?l=php-general&m=107916708217647&w=2 > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.biz Apache2 had

Re: [PHP] PHP configuration problem on Solaris 2.7

2004-07-19 Thread Matthew Sims
> > I'm trying to do a PHP install on Solaris 2.7 and right out of the gate > I'm in trouble. > The configure script hangs almost immediately. > > Background: > > - I'm trying to config PHP version php-4.3.7 > - I have the following GNU packages installed: > flex version 2.5.4 > bison (GNU Bison)

Re: [PHP] Dynamic function calls within the echo function, possible?

2004-07-19 Thread Sean Malloy
> class RowAlternator > { > private $on; > private $off; > private $state; > oops, I only half removed PHP5 only syntax. class RowAlternator { var $on; var $off; var $state; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dynamic function calls within the echo function, possible?

2004-07-19 Thread Sean Malloy
I know this isn't solving your problem, but here is how I do it: class RowAlternator { private $on; private $off; private $state; function RowAlternator($on = "On", $off = "Off") { $this->on = $on; $this->off = $off; } function switchState() { $this->state = !$this->s

Re: [PHP] Embedded Email Directives

2004-07-19 Thread Jordi Canals
Jordi Canals wrote: Dennis Gearon wrote: > remove carriage returns to prevent embedded email directives In an other thread, I readed that sentence. I'm interested to find more information about that. I have some mail forms and want to make them as secure and possible, but do not know about what

[PHP] PHP configuration problem on Solaris 2.7

2004-07-19 Thread Mark Perkoski
I'm trying to do a PHP install on Solaris 2.7 and right out of the gate I'm in trouble. The configure script hangs almost immediately. Background: - I'm trying to config PHP version php-4.3.7 - I have the following GNU packages installed: flex version 2.5.4 bison (GNU Bison) 1.875 GNU sed vers

Re: [PHP] Dynamic function calls within the echo function, possible?

2004-07-19 Thread Curt Zirzow
* Thus wrote Justin Patrin: > Yo:-/ > > Hmmm, this must be PHP5 as in PHP4 parameters can't be by ref and have > a default value. yes, that is php5 specific. > > echo ' > .row1 { > background-color: #c0c0c0; > } > .row2 { > backgorund-color: #808080; > } > I can't wait till tr:nth-c

RE: [PHP] Dynamic function calls within the echo function, possible?

2004-07-19 Thread Jay Blanchard
[snip] Well that could work, but i want to re call it every time it finds the occurance of $row if you said $row = row_color(); then echo "$row$row$row"; it would output the content of $row1 three times. Because $row =row_color calls it, defines the returned value of row_color as the contents o

Re: [PHP] Book Required

2004-07-19 Thread Stephen Allen
On Sat, Jul 17, 2004 at 02:59:56AM -0500 or thereabouts, [EMAIL PROTECTED] wrote: > I agree that PHP & MySQL Web Development (By Luke Welling and Laura > Thompson) is a great resource for learning PHP. Armed with that book > and the online PHP manual (with user comments), and you're on your way

Re: [PHP] Dynamic function calls within the echo function, possible?

2004-07-19 Thread Justin Patrin
Yo:-/ Hmmm, this must be PHP5 as in PHP4 parameters can't be by ref and have a default value. You can just use concatenation (as you really should be for all vars and function call in echo statements). echo 'data'; But then again, this is a waste of resources. Here's the CSS friendly way:

Re: [PHP] Plain Number

2004-07-19 Thread Justin Patrin
I would suggest just using str_replace. On Mon, 19 Jul 2004 17:52:32 -0500, Jeff Oien <[EMAIL PROTECTED]> wrote: > Is there an easy way to make a number have no comma or decmal points? > I've tried string replace with the comma but thought there would be a > better alternative that I'm missing to

RE: [PHP] Plain Number

2004-07-19 Thread Jay Blanchard
[snip] Is there an easy way to make a number have no comma or decmal points? I've tried string replace with the comma but thought there would be a better alternative that I'm missing to cover more bases. number_format seems to add instead of take away items. [/snip] number_format($theNumber, 0,

RE: [PHP] Dynamic function calls within the echo function, possible?

2004-07-19 Thread Jay Blanchard
[snip] Yo, i run some fairly simplistic sites, and still don't know to much PHP. Anyways i have this function called row color, it works fairly simply. $row1 = "bgcolor='#c0c0c0'"; $row2 = "bgcolor='#808080'"; function row_color(&$row_color=null) { static $row_count=0; $row_co

[PHP] Dynamic function calls within the echo function, possible?

2004-07-19 Thread XeRnOuS ThE
Yo, i run some fairly simplistic sites, and still don't know to much PHP. Anyways i have this function called row color, it works fairly simply. $row1 = "bgcolor='#c0c0c0'"; $row2 = "bgcolor='#808080'"; function row_color(&$row_color=null) { static $row_count=0; $row_color = ($row

[PHP] Compiling trouble.

2004-07-19 Thread Luis Croker
    Hi...        Im trying to compile PHP 4.3.8 on Solaris 7 with apache 1.3.27.   First, I configure PHP using this  parameters: # ./configure --with-apache=../apache_1.3.27 --enable-versioning \ --without-mysql --with-sybase=/usr/local/freetds --without-gd \ --enable-track-vars --with-sys

[PHP] Plain Number

2004-07-19 Thread Jeff Oien
Is there an easy way to make a number have no comma or decmal points? I've tried string replace with the comma but thought there would be a better alternative that I'm missing to cover more bases. number_format seems to add instead of take away items. Jeff -- PHP General Mailing List (http://ww

Re: [PHP] imagecreatefromjpeg fails on large files

2004-07-19 Thread tmp1000
[Sorry if there's multiple posts...] Raditha, Thanks for the good suggestion. It turns out that the call to imagecreatefromjpeg succeeds when run from the command line and fails when invoked via the web server. I guess it is a memory limit issue of some sort. I tried upping the memory_limit via

Re: [PHP] Apache 2 and PHP for Production?

2004-07-19 Thread Jason Wong
On Tuesday 20 July 2004 03:22, Marten Lehmann wrote: > Why shouldn't I use PHP 5.0.0 with Apache 2.0.50? You can, if it works for you, but ... http://marc.theaimsgroup.com/?l=php-general&m=107916708217647&w=2 -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Syste

Re: [PHP] Login Script

2004-07-19 Thread Jason Wong
On Tuesday 20 July 2004 03:24, Brian Krausz wrote: > While I know there are many scripts out there, and have spent many hours > looking through them, I am having trouble finding a login script that > fits my needs. I am looking for the following: > > A MySQL-based login system that doesn't use Pea

Re: [PHP] OT but need guidance in timing page views

2004-07-19 Thread Jason Wong
On Tuesday 20 July 2004 05:41, Stephen Sadowski wrote: > It seems like alot of people are focusing on what you can't do. Doing something which is plainly pointless seems dubious practice. > As the client seems not to care The client needs education. -- Jason Wong -> Gremlins Associates -> ww

Re: [PHP] Re: Embedded Email Directives

2004-07-19 Thread Curt Zirzow
* Thus wrote Manuel Lemos: > Hello, > > Thank you for confirming what I previously described as "PEAR zealots > that pop in once in a while". Curt was trying to pass the impression > that this thing of PEAR zealots that try to compete with the PHP Classes > site was something that I invented.

[PHP] PHP XL2Web?

2004-07-19 Thread Eric Marden
I recently heard of a product called XL2Web (www.xl2web.com) and wanted to know if there is a php variant out there, perferably open source. It's going to be used for one or two excel files (our budget spread sheets) so i can't see spending the money on the commercial product. thanks! -- --- er

[PHP] [Fwd: Warning: could not send message for past 1 hour]

2004-07-19 Thread Luis Croker
    Hi...        Im trying to compile PHP 4.3.8 on Solaris 7 with apache 1.3.27.   First, I configure PHP using this  parameters: # ./configure --with-apache=../apache_1.3.27 --enable-versioning \ --without-mysql --with-sybase=/usr/local/freetds --without-gd \ --enable-track-vars --with-sy

Re: [PHP] Importing Excel data using PHP

2004-07-19 Thread Matt M.
> Anyway to do it using PHP? Com objects or use perl http://search.cpan.org/~kwitknr/Spreadsheet-ParseExcel-0.2603/ParseExcel.pm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Importing Excel data using PHP

2004-07-19 Thread C.F. Scheidecker Antunes
Hello all, I need to have some excel capabilities for an automated script. Excel can save files in CSV which are very easy to read and parse with PHP as they are nothing more than text files. Pear has a module called Spreadsheet_Excel_Writer so that you can create Excel files. However I need t

[PHP] More PHPEclipse

2004-07-19 Thread C.F. Scheidecker Antunes
Dan, I have done the same thing and I have the same problem. Did you make it work yet? In my case however, under Windows, preferences I can see PHP SQL (Quantum DB) but not the rest of the PHP options. My registry shows (under Help, Configuration details) *** Plug-in Registry: net.sourceforge.p

Re: [PHP] OT but need guidance in timing page views

2004-07-19 Thread Stephen Sadowski
> >>I know that this is somewhat off topic, but I just need a starting place > >>to do the research and thought someone here might be able to help. I am > >>developing an application in which I need to time how long a visitor > >>remains within a module and how long they view each page. It seems l

Re: [PHP] Re: Mixing $_POST with text in a variable

2004-07-19 Thread Marek Kilimajer
Skippy wrote: On Mon, 19 Jul 2004 14:15:09 -0400 Jason Barnett <[EMAIL PROTECTED]> wrote: Markus Stobbs wrote: $message = " Name: $Name Division: $Division Phone: $Phone Email: $Email"; ...but when I change $Name and the other variables to $_POST['Name'], I get this error: Parse error: parse erro

Re: [PHP] Login Script

2004-07-19 Thread Matthew Sims
> [snip] > a. do not reply off-list unless asked, your question may not receive the > attention it needs > [/snip] > Sorry, I got the email before the board post so I assumed you were only > replying off-list. > > [snip] > 2. You do know basic PHP, correct? Create a page that accepts a username > a

Re: [PHP] Re: Mixing $_POST with text in a variable

2004-07-19 Thread Justin Patrin
On Mon, 19 Jul 2004 22:01:01 +0300, Skippy <[EMAIL PROTECTED]> wrote: > On Mon, 19 Jul 2004 14:15:09 -0400 Jason Barnett <[EMAIL PROTECTED]> > wrote: > > Markus Stobbs wrote: > > > $message = " > > > Name: $Name > > > Division: $Division > > > Phone: $Phone > > > Email: $Email"; > > > > > > ...but

Re: [PHP] Re: Embedded Email Directives

2004-07-19 Thread Manuel Lemos
Hello, On 07/19/2004 11:45 AM, Justin Patrin wrote: As you can see, Curt, and others, it's impossible to talk to Manuel as he has an obvious bias for his own site and always assumes that anything you say is an attack on him or his site personally. He doesn't read what you write and says the same th

Re: [PHP] Re: Mixing $_POST with text in a variable

2004-07-19 Thread Skippy
On Mon, 19 Jul 2004 14:15:09 -0400 Jason Barnett <[EMAIL PROTECTED]> wrote: > Markus Stobbs wrote: > > $message = " > > Name: $Name > > Division: $Division > > Phone: $Phone > > Email: $Email"; > > > > ...but when I change $Name and the other variables to $_POST['Name'], I > > get this error: > >

Re: [PHP] is there anyway to use constants in a string?

2004-07-19 Thread Justin Patrin
Yes, I know. You can't use defined constants within a normal string, so it won't work in a heredoc either: define('FOO', 'bar'); echo "show me FOO"; You have to use: echo 'show me '.FOO; On Mon, 19 Jul 2004 12:05:40 -0700, barophobia <[EMAIL PROTECTED]> wrote: > On Mon, 19 Jul 2004 11:48:02 -070

Re: [PHP] Mixing $_POST with text in a variable

2004-07-19 Thread Justin Patrin
On Mon, 19 Jul 2004 11:17:24 -0600, Markus Stobbs <[EMAIL PROTECTED]> wrote: > I'm changing my HTTP POST variable declarations from $variablename to > $_POST['variablename'] to make my code more compliant with current best > practices. > > However, I find that I cannot mix these new variable decla

RE: [PHP] building php5.0 as an apache module, with mysqli functionality

2004-07-19 Thread bruce
hi... in regards to the php5/mysql/mysqli/apache2 issue... the following should be helpful... i've managed to get it working, so that i have mysql and mysqli both being displayed using "phpinfo()"... for a linux rh8.0 use mysql-4.1.3-beta.tar.gz copy it to whatever d

Re: [PHP] Login Script

2004-07-19 Thread Torsten Roehr
"Brian Krausz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [snip] > a. do not reply off-list unless asked, your question may not receive the > attention it needs > [/snip] > Sorry, I got the email before the board post so I assumed you were only > replying off-list. > > [snip] > 2

Re: [PHP] Login Script

2004-07-19 Thread Brian Krausz
[snip] a. do not reply off-list unless asked, your question may not receive the attention it needs [/snip] Sorry, I got the email before the board post so I assumed you were only replying off-list. [snip] 2. You do know basic PHP, correct? Create a page that accepts a username and password. Have

Re: [PHP] Sending email without an email server

2004-07-19 Thread Justin Patrin
Set this in your php.ini: sendmail_from = "[EMAIL PROTECTED]" On Mon, 19 Jul 2004 14:17:17 -0400, robert mena <[EMAIL PROTECTED]> wrote: > Hi jason, > > I've added the SMTP to a smtp server, saved the .ini and restarted the > server with no luck. > > It complains > > Warning: mail(): "sendmail_

Re: [PHP] Login Script

2004-07-19 Thread Cosmin Chiru
Hello Brian, Take a look at setcookie() in the PHP manual. The algorithm is pretty simple. Once the user submits the form, you compare form data with the data in the database. If the password matches, then set a cookie with the username (using setcookie()). Then you'll just have to check if the co

RE: [PHP] Login Script

2004-07-19 Thread Jay Blanchard
[snip] Well I already have a db with username/password fields, etc. I'm just looking for code for a login page and a file to include at the top of each page for auth. [/snip] a. do not reply off-list unless asked, your question may not receive the attention it needs 2. You do know basic PHP, c

Re: [PHP] Login Script

2004-07-19 Thread Brian Krausz
Well I already have a db with username/password fields, etc. I'm just looking for code for a login page and a file to include at the top of each page for auth. Jay Blanchard wrote: [snip] While I know there are many scripts out there, and have spent many hours looking through them, I am having

RE: [PHP] Login Script

2004-07-19 Thread Jay Blanchard
[snip] While I know there are many scripts out there, and have spent many hours looking through them, I am having trouble finding a login script that fits my needs. I am looking for the following: A MySQL-based login system that doesn't use Pear :: DB. All I would like is for it to support co

[PHP] Re: Login Script

2004-07-19 Thread Jason Barnett
Brian Krausz wrote: While I know there are many scripts out there, and have spent many hours looking through them, I am having trouble finding a login script that fits my needs. I am looking for the following: A MySQL-based login system that doesn't use Pear :: DB. All I would like is for it

Re: [PHP] Apache 2 and PHP for Production?

2004-07-19 Thread Marten Lehmann
Hi, I just wanted to post almost the same question: PHP for Apache 2 is idling around for years now. configure --with-apxs2 is still marked as [EXPERIMENTAL] and the documentation still warns: "Do not use Apache 2.0 and PHP in a production environment neither on Unix nor on Windows." What is t

[PHP] Login Script

2004-07-19 Thread Brian Krausz
While I know there are many scripts out there, and have spent many hours looking through them, I am having trouble finding a login script that fits my needs. I am looking for the following: A MySQL-based login system that doesn't use Pear :: DB. All I would like is for it to support cookies a

Re: [PHP] is there anyway to use constants in a string?

2004-07-19 Thread barophobia
On Mon, 19 Jul 2004 11:48:02 -0700, Justin Patrin <[EMAIL PROTECTED]> wrote: > On Mon, 19 Jul 2004 10:22:42 -0700, barophobia <[EMAIL PROTECTED]> wrote: > > $my_string = << > > > MY_CONSTANT: does not work for obvious reasons > > {MY_CONSTANT}: does not work for obvious reasons > > {$MY_CONSTANT}:

Re: [PHP] is there anyway to use constants in a string?

2004-07-19 Thread Justin Patrin
On Mon, 19 Jul 2004 10:22:42 -0700, barophobia <[EMAIL PROTECTED]> wrote: > hello. > > > define("MY_CONSTANT", "http://google.com/";); > > $my_string = << > MY_CONSTANT: does not work for obvious reasons > {MY_CONSTANT}: does not work for obvious reasons > {$MY_CONSTANT}: does not work for obv

Re: [PHP] Mixing $_POST with text in a variable

2004-07-19 Thread Cosmin Chiru
Hello Markus, Monday, July 19, 2004, 8:17:24 PM, you wrote: > I'm changing my HTTP POST variable declarations from $variablename to > $_POST['variablename'] to make my code more compliant with current best > practices. > However, I find that I cannot mix these new variable declarations into > b

Re: [PHP] Re: Mixing $_POST with text in a variable

2004-07-19 Thread Tim Traver
I think the better way is to use brackets to enclose your variable... So it would look like this : $message = " Name: {$_POST['Name']} Division: {$_POST['Division']} Phone: {$_POST['Phone']} Email: {$_POST['Email']}"; Tim. At 11:15 AM 7/19/2004, Jason Barnett wrote: Markus Stobbs wrote: I'm changin

Re: [PHP] Mixing $_POST with text in a variable

2004-07-19 Thread Markus Stobbs
Jay, Thanks for the response. Here's the code fragment. I'm basically building a text variable $message which I send later in the script as an email. Line 94 is the only one where I have implemented $_POST. If I change it back to $Name, the script works fine. // format email message $subject = "

Re: [PHP] Apache 2 and PHP for Production?

2004-07-19 Thread Lester Caine
Chris Hayes wrote: And for a longer explaination: http://marc.theaimsgroup.com/?l=php-dev&m=108736540021355&w=2 Very well explained. Untill now this problem was explained to me with a lot of techno mumbo jumbo, and I could not make sense of it. But now I think I really understand what's going o

RE: [PHP] Mixing $_POST with text in a variable

2004-07-19 Thread Jay Blanchard
[snip] Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /web/scd/vets/Vislab/eventrequest.php on line 94 [/snip] Can we see line 94 and +/- 10 lines in eventrequest.php please? -- PHP General Mailing List (http://www.php.net/) T

[PHP] Re: Mixing $_POST with text in a variable

2004-07-19 Thread Torsten Roehr
"Markus Stobbs" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm changing my HTTP POST variable declarations from $variablename to > $_POST['variablename'] to make my code more compliant with current best > practices. > > However, I find that I cannot mix these new variable declara

Re: [PHP] Sending email without an email server

2004-07-19 Thread robert mena
Hi jason, I've added the SMTP to a smtp server, saved the .ini and restarted the server with no luck. It complains Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in c:\program files\apache group\apache\htdocs\email.php on line 131 Line 131 is the end of the

[PHP] Re: Mixing $_POST with text in a variable

2004-07-19 Thread Jason Barnett
Markus Stobbs wrote: I'm changing my HTTP POST variable declarations from $variablename to $_POST['variablename'] to make my code more compliant with current best practices. However, I find that I cannot mix these new variable declarations into big variable strings like I used to. For example,

[PHP] Mixing $_POST with text in a variable

2004-07-19 Thread Markus Stobbs
I'm changing my HTTP POST variable declarations from $variablename to $_POST['variablename'] to make my code more compliant with current best practices. However, I find that I cannot mix these new variable declarations into big variable strings like I used to. For example, this works: $message

Re: [PHP] Print page without images

2004-07-19 Thread John W. Holmes
francesco[AT]automationsoft[DOT]biz wrote: I know that it is a simple and maybe elementary question, but there is in PHP a function, like print or echo, that print only the text of an HTML page on printer? No. Use CSS. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

Re: [PHP] Can't install PHP on Windows/Apache

2004-07-19 Thread Skippy
On Mon, 19 Jul 2004 13:58:15 -0300 "abrea" <[EMAIL PROTECTED]> wrote: > Dear list, > I am trying to install PHP 4.3.8 as a module of Apache 2.0.50 on a > Windows 98 computer. > Apache alone runs ok. After I installed PHP with the installer package, I > added the following line at the end of the A

[PHP] JOB: Developer, Washington DC Area

2004-07-19 Thread Alok K. Dhir
We have an immediate opening for an experienced web application developer who meets or exceeds the following criteria: Required skills: - Experience developing and maintaining web based applications - PHP - SQL (Oracle, MySQL preferred) - D/HTML/Javascript/CSS - XML - OO program

RE: [PHP] building php5.0 as an apache module, with mysqli functionality

2004-07-19 Thread bruce
ok... here's what this issue appears to be narrowing down to... i'm guessing that it has something to do with using the same libs for both mysql/mysqli. i've been able to get a running app for only mysqli, but adding the mysql function to the ./configure gives the "multiple define" issues that i'v

[PHP] Segmentation fault(11) using oci8 Oracle 10g

2004-07-19 Thread Francis Mignault
When I try to use oci8 on redhat8 Oracle 10.1 I get the following error on make PHP : /u01/app/oracle/product/10.1.0/lib/libclntsh.so: warning: remap_file_pages is not implemented and will always fail and Segmentation fault(11) in the apache log. Any ideas why ? Thanks Francis. -- PHP General

[PHP] Print page without images

2004-07-19 Thread francesco[AT]automationsoft[DOT]biz
Hi all, I know that it is a simple and maybe elementary question, but there is in PHP a function, like print or echo, that print only the text of an HTML page on printer? Thanks in advance for help.

[PHP] is there anyway to use constants in a string?

2004-07-19 Thread barophobia
hello. http://google.com/";); $my_string = << here are my options: 1. assign the constant to a temporary variable and then use that. i.e. $tmp_MY_CONSTANT = MY_CONSTANT; 2. use an array instead of a constant i.e. $config['MY_CONSTANT'] = "http://google.com/";; 3. find some secret way to wor

Re: [PHP] Can't install PHP on Windows/Apache

2004-07-19 Thread Cosmin Chiru
Hello abrea, Monday, July 19, 2004, 7:58:15 PM, you wrote: > Dear list, > I am trying to install PHP 4.3.8 as a module of Apache 2.0.50 on a > Windows 98 computer. > Apache alone runs ok. After I installed PHP with the installer package, I > added the following line at the end of the Apache http

Re: [PHP] Transparent png and TrueColor?

2004-07-19 Thread Marek Kilimajer
Victor Spång Arthursson wrote: Seems like the problem I'm experiencing with transparent png-files are that they are in TrueColor - is it not possible to create a trueColor-file and make it transparent? Sincerely Victor Did you try imagesavealpha()? -- PHP General Mailing List (http://www.php.net

Re: [PHP] Apache 2 and PHP for Production?

2004-07-19 Thread Chris Hayes
At 18:55 19-7-04, you wrote: > >I was wondering if there are already results from any benchmark that says > >Apache 2 and PHP are ready for production environments. > > > > > Don't know about benchmarks don't bother with them, but we were using > PHP and apache 2 on a production server and it just

[PHP] Can't install PHP on Windows/Apache

2004-07-19 Thread abrea
Dear list, I am trying to install PHP 4.3.8 as a module of Apache 2.0.50 on a Windows 98 computer. Apache alone runs ok. After I installed PHP with the installer package, I added the following line at the end of the Apache httpd.conf together with the AddType statements: # LoadModule php4_module

Re: [PHP] Apache 2 and PHP for Production?

2004-07-19 Thread Curt Zirzow
* Thus wrote raditha dissanayake: > Oliver John V. Tibi wrote: > > >Hi! > > > >I was wondering if there are already results from any benchmark that says > >Apache 2 and PHP are ready for production environments. > > > > > Don't know about benchmarks don't bother with them, but we were using > PH

Re: [PHP] OT but need guidance in timing page views

2004-07-19 Thread raditha dissanayake
Robb Kerr wrote: On Mon, 19 Jul 2004 08:58:22 -0500, Jay Blanchard wrote: [snip] I know that this is somewhat off topic, but I just need a starting place to do the research and thought someone here might be able to help. I am developing an application in which I need to time how long a visitor r

Re: [PHP] Stuffing those damn values into their fields...!

2004-07-19 Thread Jason Davidson
php will evaluate vars in single quotes provided they are double quoted outside them. The quoting in the query appears valid, i would suggest debugging the sql firstly. (which i beleive was mentioned already) Jason On Mon, 19 Jul 2004 12:20:33 -0400, Brent Baisley <[EMAIL PROTECTED]> wrote: > I

Re: [PHP] Apache 2 and PHP for Production?

2004-07-19 Thread raditha dissanayake
Oliver John V. Tibi wrote: Hi! I was wondering if there are already results from any benchmark that says Apache 2 and PHP are ready for production environments. Don't know about benchmarks don't bother with them, but we were using PHP and apache 2 on a production server and it just had too many

[PHP] TGA image support?

2004-07-19 Thread Mark Collin
Is there any support for TGA images in PHP. I have been writing some code to upload files, convert them to JPG and create thumbnails however I cannot find any information on using TGA files as the source. Can anybody help? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: CGI / PHP max_exec_time

2004-07-19 Thread Head
sorry my mistake i meant cli regards "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sunday 18 July 2004 16:28, Head wrote: > > > next thing is - why does cgi php create sh zombies if its started from cron > > ? > > If you're invoking PHP from a shell then you really

Re: [PHP] Stuffing those damn values into their fields...!

2004-07-19 Thread Brent Baisley
I would try echoing out the $UserDataDump variable to see what your query text is. PHP does not parse what's in single quotes, so your variables may not be getting substituted with values. Try something like this: $UserDataDump = 'UPDATE MembersData SET Title="'.$Title.'") WHERE UserID="'.$_POS

Re: [PHP] Re: Embedded Email Directives

2004-07-19 Thread raditha dissanayake
Thank you for stepping in justin, I can see a lot of sense in what Curt is saying and it tallies with my own experience in working with mail APIs not just in PHP but other languages as well. -- Raditha Dissanayake. http://

[PHP] Transparent png and TrueColor?

2004-07-19 Thread Victor Spång Arthursson
Seems like the problem I'm experiencing with transparent png-files are that they are in TrueColor - is it not possible to create a trueColor-file and make it transparent? Sincerely Victor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP and Mod_PLSQL

2004-07-19 Thread Francis Mignault
I am having trouble making HTMLDB (Mod_PLSQL) and PHP work together. I installed PHP and did the make and make install but if I LoadModule php4_module, only the basic php works (not the OCI) and mod_plsql stops working. Here are the lines that I added in http.conf : LoadModule php4_module

[PHP] Re: php5/cli/cgi/stdin/signal bug ?

2004-07-19 Thread franck
When using /dev/fd/0 (not php://stdin) in the two fopen functions, it works "perfectly" with cli AND cgi version -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] viewing PHP files on Internet Explorer 6

2004-07-19 Thread Justin Patrin
On Mon, 19 Jul 2004 12:02:11 -0400, Larry E.Ullman <[EMAIL PROTECTED]> wrote: > Rocky, > > First off, when working with mailing lists like these, you generally > should reply to the entire group, not to an individual person. Doing so > takes the burden off of the person who initially replied to yo

Re: [PHP] viewing PHP files on Internet Explorer 6

2004-07-19 Thread Jason Davidson
PHP is serverside right, you dont need to patch or plugin Internet Explorer.. you need to make sure apache and php are running properly and together. Be sure your apache configuration has the appropriuate directives, and that you either have a compiling in module, or a cgi version running. check

Re: [PHP] viewing PHP files on Internet Explorer 6

2004-07-19 Thread Larry E . Ullman
Rocky, First off, when working with mailing lists like these, you generally should reply to the entire group, not to an individual person. Doing so takes the burden off of the person who initially replied to you. Moreover it means that you won't have to wait for that one person to get back to y

Re: [PHP] Stuffing those damn values into their fields...!

2004-07-19 Thread Justin Patrin
On Mon, 19 Jul 2004 13:22:45 +0100, Harlequin <[EMAIL PROTECTED]> wrote: > OK. So here we have on the submission form: > > > Your problem is likely here. What exactly are you doing with this string? echo? print? ?> '; > It echoes fine, so I know it's there. > > When I go to the target page it

[PHP] php5/cli/cgi/stdin/signal bug ?

2004-07-19 Thread franck
on php5.0.0, I would like to have php core team opinion on this : - cli version loose stdin when using pcntl_signal, but it's NOT possible to recover it - cgi version loose stdin when using pcntl_signal, and it's possible to recover it If it's not a bug, i just would like to understand ;) Lit

  1   2   >