[PHP] Re: Using and Echoing Session Variables

2004-07-19 Thread Ligaya Turmelle
if they are all coming from the same query can't you assign them using the fetch_assoc? Ex: $data = mysql_fetch_assoc($result); $_SESSION['column1'] = $data['column1']; $_SESSION['column2'] = $data['column2']; $_SESSION['column3'] = $data['column3']; ... Or am I confused :) Respectfully, Ligaya

Re: [PHP] SpanCease 'crap'

2004-07-19 Thread Dennis Gearon
I think that having the list settings set up to email everybody who is on single emails using the email address of the person writing this list is - WRONG. Most lists I am on don't do that. quote Justin Patrin [EMAIL PROTECTED] wrote:

[PHP] Apache 2 and PHP for Production?

2004-07-19 Thread Oliver John V. Tibi
Hi! I was wondering if there are already results from any benchmark that says Apache 2 and PHP are ready for production environments. Thanks and Cheers! -- Running 'ojtibi' on '127.0.0.1' (BATCH_OPTIMISTIC mode). Live free() or die(). -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Error: unexpected T_ELSE on line 14...?

2004-07-19 Thread Dennis Gearon
There is a book/CD by 'Stroup' called 'More effective c++'. VERY excellent book. It give someting like 54 specific technicques to employ that save LOTS of time for a C++programmer. One of the ones from that book, applies here: DON'T write if ( variable ==/= constant){;} INSTEAD write if(

Re: [PHP] Re: Embedded Email Directives

2004-07-19 Thread Curt Zirzow
* Thus wrote Manuel Lemos: Hello, On 07/19/2004 12:32 AM, Curt Zirzow wrote: Ok so a lot of bugs have been submited, and I do notice that they are either green or gray. Of which, in case you didn't read the legend. green == CLOSED (aka resolved and fixed!!!) gray == bogus. meaning the

[PHP] expiring login by 5 days period

2004-07-19 Thread Louie Miranda
Hello, i had been working the whole day thingking about how to expire a login? Using dates. I have with me the ff fields: 1. regdate (-MM-DD) 2. expired (1=(Yes) or 0=(No)) Can you give me some tips, how to write this on php? The problem is, i could not figure out how to create a comparison

[PHP] Re: Using and Echoing Session Variables

2004-07-19 Thread Jason Barnett
Ligaya Turmelle wrote: if they are all coming from the same query can't you assign them using the fetch_assoc? Sure! Ex: $data = mysql_fetch_assoc($result); $_SESSION['column1'] = $data['column1']; $_SESSION['column2'] = $data['column2']; $_SESSION['column3'] = $data['column3']; ... Or am I

[PHP] Re: expiring login by 5 days period

2004-07-19 Thread Jason Barnett
Louie Miranda wrote: Hello, i had been working the whole day thingking about how to expire a login? Using dates. I have with me the ff fields: 1. regdate (-MM-DD) 2. expired (1=(Yes) or 0=(No)) Can you give me some tips, how to write this on php? The problem is, i could not figure out how to

Re: [PHP] Re: expiring login by 5 days period

2004-07-19 Thread Louie Miranda
thread close. thanks again! k, i'll try to convert those ts. $reg = 2004-07-20; $end = 2004-07-21; if ($reg $end) { print ok; } else { print not ok; } -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] SpanCease 'crap'

2004-07-19 Thread Lester Caine
Justin Patrin wrote: So *IS* php.general now being routed through SpamCease, or is something else going on - anybody? No no, php-general isn't geing run through this service. One of the subscribers is using it, so when an e-mail goes to them through the list it wants you to confirm that you're not

Re: [PHP] SpanCease 'crap'

2004-07-19 Thread Lester Caine
Dennis Gearon wrote: I think that having the list settings set up to email everybody who is on single emails using the email address of the person writing this list is - WRONG. Most lists I am on don't do that. Don't go there ;) Which ever way a list is set up is right - as far as the owners of

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

2004-07-19 Thread Jacob Friis Larsen
Curt Zirzow wrote: i'm trying to use the following configure ./configure --with-apxs2=/usr/sbin/apxs --with-config-file-path=/etc --with -mysql=/usr/include/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config - -with-ldap --with-pgsql If you read the installation at http://php.net/mysqli, you

[PHP] Online Office Suite integrated w/ PHP

2004-07-19 Thread Daryl Meese
Hello all, I'm looking for suggestions on what open-source office suites can be: 1. Offered over the Net as a service 2. Integrated with other apps (preferrably using PHP since the other apps are in PHP) 3. Possibly extended using PHP TIA, Daryl -- PHP General Mailing List

Re: [PHP] Re: [mysql]Problem with PHP5

2004-07-19 Thread [EMAIL PROTECTED]
Ciprian, I may have missed whether or not you were able to resolve your problem from a couple days ago. In one of my development environments (Win2K), I decided to install PHP 5.0 with MySQL(i) 4.1.x support in IIS5.0 and Apache 2 (running on different ports). It took a bit more work than I

[PHP] Re: Online Office Suite integrated w/ PHP

2004-07-19 Thread Harlequin
Daryl. What's the project goal...? -- - Michael Mason Arras People www.arraspeople.co.uk - Daryl Meese [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello all, I'm looking for suggestions on what open-source office suites

[PHP] Parse Error, Unexpected $

2004-07-19 Thread Harlequin
I've checked my syntax but obviously missing something. Would anyone mind a quick scan: // Convert Values to Variables: $Title = $_POST[Title]; $ChristianName = $_POST[ChristianName]; $MiddleName = $_POST[MiddleName]; $Surname = $_POST[Surname]; $HomePhone = $_POST[HomePhone];

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Jim Root
I see one problem, but not the one you are talking about. // Convert Values to Variables: $Title = $_POST[Title]; This (and the rest of the post fields) should have quotes: $Title = $_POST[Title]; (php looks for a constant named Title, instead of the string Title) What line gives you the

[PHP] Re: Parse Error, Unexpected $

2004-07-19 Thread Jason Barnett
Did the error actually say Unexpected $end ? That would mean that PHP hit the end of the script before it expected to, and could be caused by an unclosed string. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Parse Error, Unexpected $

2004-07-19 Thread Daniel Kullik
Hello. Cannot find any unexpected dollar-sign ($) in this code. But please enclose the associative array-indexes within quotation-marks and run your script again. [code] $foo = $_POST['assoc_index']; [/code] Daniel Harlequin wrote: I've checked my syntax but obviously missing something. Would

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Harlequin
Jim I deleted a whole load of lines and still get the error. I've narrowed it down to this code: ?php // Verify User Input: echo brbrbr; $requiredFields = array('Title','ChristianName','Surname','HomePhone','Address01','City','Post code','Country','Gender','WorkPermitRequired','MyStatus');

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Jason Wong
On Monday 19 July 2004 19:02, Harlequin wrote: I deleted a whole load of lines and still get the error. I've narrowed it down to this code: Please read the syntax guide in the manual. Asking people to solve parse errors for you is, IMHO, ludicrous. -- Jason Wong - Gremlins Associates -

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Jason Barnett
But the error (line 40) is actually the last line...! :| You had a missing brace. When the error line is the last line (and especially if error is Undefined $end) then you likely have a missing ending brace or ending quote. Not trying to start a flame war here, but if you try a different

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Jim Root
else { echo Hi...!; ? You are missing a } at the end of the else. It should be: else { echo Hi...!; } ? On Mon, 19 Jul 2004 12:02:47 +0100, Harlequin [EMAIL PROTECTED] wrote: Jim I deleted a whole load of lines and still get the error. I've narrowed it down to this code:

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Jarratt Ingram
Hello, Try adding the closing brace } to the last else forEach($errors as $error) { echo $error . 'brbr'; } } else { echo Hi...!; -- hth Jarratt On Mon, 2004-07-19 at 12:02, Harlequin wrote: Jim I deleted a whole load of lines and still get the error. I've narrowed it

[PHP] Re: Parse Error, Unexpected $

2004-07-19 Thread Craig Donnelly
Put all your values in the following {}... So: VALUES('{$Title}','{$ChristianName}','{$MiddleName}','{$Surname}'. and so on. HTH Craig Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've checked my syntax but obviously missing something. Would anyone mind a quick

Re: [PHP] Want to save png to file

2004-07-19 Thread Victor Spång Arthursson
2004-07-16 kl. 15.12 skrev Jason Wong: If you already have an image resource then calling imagepng() with a filename will create and write the file for you. Thanks! Now my only problem is that it doesn't seem possible to use imagecopyresized() with a transparent png; it doesn't become

Re: [PHP] Parse Error, Unexpected $

2004-07-19 Thread Harlequin
Thanks Jason. I've started doing that - damn well have to with nested IF statements. -- - Michael Mason Arras People www.arraspeople.co.uk - Jason Barnett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] But the error

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

2004-07-19 Thread Harlequin
OK. So here we have on the submission form: input type=hidden value=$_SESSION['logname'] name=Hidden It echoes fine, so I know it's there. When I go to the target page it echoes fine there also and doesn't return an error. But more strangely, it doesn't perform the update I request:

[PHP] Re: Parse Error, Unexpected $

2004-07-19 Thread Harlequin
Really sorry for taking up so many people's time on such a small issue. -- - Michael Mason Arras People www.arraspeople.co.uk - Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've checked my syntax but obviously

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

2004-07-19 Thread Aidan Lister
Michael, You need to gain some very basic debugging skills. If you're trying to update a database: 1) Check the mysql_query is actually being run! Add a line above mysql_query, die('hello'); If you see hello, the query is being run 2) Check there is no error on the query, $query = some query;

Re: [PHP] PHP Form Field Validation

2004-07-19 Thread Marcus Strube
If (formfieldname = empty()) [snip] $value = 0; if(true==empty($value)) { echo it's empty; } [/snip] May be good to know. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] OT but need guidance in timing page views

2004-07-19 Thread Robb Kerr
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. I can create the

Re: [PHP] Re: Embedded Email Directives

2004-07-19 Thread Manuel Lemos
Hello, On 07/19/2004 04:00 AM, Curt Zirzow wrote: Ok so a lot of bugs have been submited, and I do notice that they are either green or gray. Of which, in case you didn't read the legend. green == CLOSED (aka resolved and fixed!!!) gray == bogus. meaning the person was using the function

[PHP] resize transparent png - impossible?

2004-07-19 Thread Victor Spång Arthursson
Hi everybody! Is it really impossible to resize a transparent png? I've tried everything, but can't get the transparency (in the outputted image) to work either in Photoshop or in Internet Explorer (using filter) Does anyone have some feedback on this, or is it a known bug in GD? Sincerely

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

2004-07-19 Thread Miroslav Hudak (php/ml)
I would do it this way: - open the page and create hidden iframe (or frame with 0% width/height) which will be refreshing itself every ... let's say ... 2 minutes... then you'll get up to 2 minutes accurate numbers... the refreshed page would write timestamp to database every refresh... when

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

2004-07-19 Thread Jay Blanchard
[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 remains within a module and how long they view each page. I can create the

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

2004-07-19 Thread Daniel Kullik
Sounds pretty harsh, but Aidan is right. Another suggestion: Set error_reporting in your php.ini to E_ALL and display_errors to On. If you don't have access to the php.ini file you can try this: [code] error_reporting(E_ALL); ini_set('display_errors', true); [/code] Paste these two lines of code

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

2004-07-19 Thread Robb Kerr
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 remains within

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

2004-07-19 Thread Robb Kerr
On Mon, 19 Jul 2004 15:54:14 +0200, Miroslav Hudak wrote: I would do it this way: - open the page and create hidden iframe (or frame with 0% width/height) which will be refreshing itself every ... let's say ... 2 minutes... then you'll get up to 2 minutes accurate numbers... the refreshed

Re: [PHP] Re: Embedded Email Directives

2004-07-19 Thread Justin Patrin
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 things over and over. I just leave his posts alone

Re: [PHP] SpanCease 'crap'

2004-07-19 Thread Justin Patrin
On Mon, 19 Jul 2004 08:33:25 +0100, Lester Caine [EMAIL PROTECTED] wrote: Dennis Gearon wrote: I think that having the list settings set up to email everybody who is on single emails using the email address of the person writing this list is - WRONG. Most lists I am on don't do that.

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

2004-07-19 Thread Miroslav Hudak (php/ml)
Hi! This is what you need :) You have hidden frame (FRAME not layer!!!) (it means FRAME src=check.php height=0 [noborders etc])... then in check.php would be something like this: $id = $myid; //myid will be stored in session after user logs in Connect to database, pair ID with a row in table and

RE: [PHP] SpanCease 'crap'

2004-07-19 Thread bruce
actually... this might be a little more than a single user, using some form of anti spam app... this might be whoever is behind the sapmcease app to snatch valid emails... i've received the same spamcease email from a few different responses this morning. one of which supposedly came from the

[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 ;)

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: input type=hidden value=$_SESSION['logname'] name=Hidden Your problem is likely here. What exactly are you doing with this string? echo? print? ? ? It is surrounded by single

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

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

[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

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

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.

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

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 should be

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

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

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

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 PHP and apache 2

[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

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 had too

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

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

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

2004-07-19 Thread barophobia
hello. ?php define(MY_CONSTANT, http://google.com/;); $my_string = QQQ MY_CONSTANT: does not work for obvious reasons {MY_CONSTANT}: does not work for obvious reasons {$MY_CONSTANT}: does not work for obvious reasons QQQ; ? here are my options: 1. assign the constant to a temporary

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

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've

[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

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 Apache

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:

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

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

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

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/)

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-devm=108736540021355w=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

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] 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 changing

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 big

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. ?php define(MY_CONSTANT, http://google.com/;); $my_string = QQQ MY_CONSTANT: does not work for obvious reasons {MY_CONSTANT}: does not work for obvious reasons {$MY_CONSTANT}: does not work for obvious

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 = QQQ MY_CONSTANT: does not work for obvious reasons {MY_CONSTANT}: does not work for obvious reasons {$MY_CONSTANT}: does not

[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

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

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

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

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

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_from not set

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.

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. You do

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

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

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

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: Parse error: parse

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

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 when I change $Name and the

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 and

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

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 like alot of

  1   2   >