Re: [PHP] new session in new window

2004-03-09 Thread Chris Shiflett
--- Tim Traver <[EMAIL PROTECTED]> wrote: > what I meant by the session data getting stored locally is that it is > local to the web server, not locally on the client browser. I see. My apologies. Perhaps we should both refrain from using locally and instead use server and client to be clear. :-)

[PHP] IMAP und Umlaute

2004-03-09 Thread Jochen Kaechelin
Wie kann ich denn in den Betreffzeilen möglich Umlaute entfernen? -- Jochen Kächelin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OT Match Against

2004-03-09 Thread Richard Baskett
> Do you have any idea why this query: > > SELECT hh_listings.listID, listingName, phone, email, held, venderID, > hh_listings.disabled, hh_listings.deleted, hh_listings.levelID, levelName, > islandName FROM hh_listings, hh_listlevels, hh_islands WHERE > hh_listings.levelID=hh_listlevels.levelID A

[PHP] mail() and passwords

2004-03-09 Thread Will
How do I modify the following to except a password for the SMTP server? [mail function] SMTP = localhost sendmail_from = [EMAIL PROTECTED] Please help!! Thanks in advance! ~WILL~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail() and passwords

2004-03-09 Thread tom meinlschmidt
I mean the only way is to use existing classes for sending emails via smtp socket or to write your own one. tom On Tue, 9 Mar 2004 03:37:33 -0500 "Will" <[EMAIL PROTECTED]> wrote: > How do I modify the following to except a password for the SMTP server? > > [mail function] > SMTP = localho

[PHP] Very, very wiered problem - Part 2

2004-03-09 Thread Mário Gamito
Hi, Here's the output of PHP error log: "[09-Mar-2004 10:09:33] PHP Fatal error: renderer(): Failed opening required '../include/complete_url.php' (include_path='.:/usr/local/lib/php') in /home/vhosts/dte/ticct/object/renderer.php on line 21" But the file complete_url is in it's place. Any ide

RE: [PHP] getting message from file

2004-03-09 Thread umesh
Hi, (B (BTry using follow. (B (B$sContents=file_get_contents("filename"); (B$sContents=split("",$sContents); (B (BAnde then you will be able to use the values for plotting a graph. (B (BRegards, (B (BUmesh. (B (B-- (BPHP General Mailing List (http://www.php.net/) (BT

RE: [PHP] Re: fsockopen() errors.

2004-03-09 Thread Phil Ewington - 43 Plc
Tom, Thought about that one or simply trying to catch the error in my site wide error handler, will give it a try, thanks. -- Phil. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 08 March 2004 15:53 > To: PHP > Subject: [PHP] Re: fsockopen() errors. > >

Re: [PHP] getting message from file

2004-03-09 Thread Kenneth
My data file is sth like: 2.208 2.18 2.415 2.283 2.234 2.155 2.389 2.201 2.204 2.181 2.43 2.285 2.231 2.164 2.387 2.197 2.2 2.179 2.429 2.29 2.225 2.181 2.385 2.195 2.196 2.178 2.424 2.291 2.225 2.213 2.386 2.19 I would like to get these data in order to plot graph.

[PHP] how do i detect the exsistens of a network printer?

2004-03-09 Thread Shay
I am need to determine if the printer is on line before sending an to it, it is connected to a unix amchine running solaris 8, any idea? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] getting message from file

2004-03-09 Thread tom meinlschmidt
see php.net/file or php.net/fread $file = "somefile.dat"; if ([EMAIL PROTECTED]($file)) return 0; $filecontent = file($file); $numbers = array(); if (is_array($filecontent) && count($filecontent)) { foreach($filecontent as $line) { // delete more than one space

Re: [PHP] Very, very wiered problem - Part 2

2004-03-09 Thread Marek Kilimajer
Is /home/vhosts/dte/ticct/include/complete_url.php readable for the apache process? Mário Gamito wrote: Hi, Here's the output of PHP error log: "[09-Mar-2004 10:09:33] PHP Fatal error: renderer(): Failed opening required '../include/complete_url.php' (include_path='.:/usr/local/lib/php') in /

[PHP] Re: IMAP und Umlaute

2004-03-09 Thread Michael Kunze
Jochen Kaechelin wrote: > Wie kann ich denn in den Betreffzeilen > möglich Umlaute entfernen? hi, first of all (if you would have read any postings on this list before asking) you would have noticed that the main language is english. anyway. have you read the manual? you may wonna check this pag

[PHP] Re: Back Button produces Parse Error

2004-03-09 Thread Michael Kunze
Jough P wrote: > Anyone else had this problem where one of your PHP pages produces some > output for a user to click on. The user clicks on one of these links > which causes some behavior, then clicks their browsers BACK button. Now > the original PHP page is producing a parse error. > > My par

RE: [PHP] Very, very wiered problem - Part 2

2004-03-09 Thread Mário Gamito
Hi, > Is /home/vhosts/dte/ticct/include/complete_url.php readable > for the apache process? Sure :-) Warm Regards, Mário Gamito smime.p7s Description: S/MIME cryptographic signature

RE: [PHP] Very, very wiered problem - Part 2

2004-03-09 Thread Jay Blanchard
[snip] Is /home/vhosts/dte/ticct/include/complete_url.php readable for the apache process? Mário Gamito wrote: > Hi, > > Here's the output of PHP error log: > > "[09-Mar-2004 10:09:33] PHP Fatal error: renderer(): Failed opening > required '../include/complete_url.php' (include_path='.:/usr/l

[PHP] hello world == 0 ?

2004-03-09 Thread test
why is var_dump( 0 == 'hello world') TRUE and not FALSE? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] hello world == 0 ?

2004-03-09 Thread Tom Rogers
Hi, Wednesday, March 10, 2004, 12:22:08 AM, you wrote: t> why is var_dump( 0 == 'hello world') TRUE and not FALSE? because 0 is integer and the integer value of 'hello world' is 0 so they are equal. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] hello world == 0 ?

2004-03-09 Thread test
many thanx Am Di, 2004-03-09 um 15.27 schrieb Tom Rogers: > Hi, > > Wednesday, March 10, 2004, 12:22:08 AM, you wrote: > t> why is var_dump( 0 == 'hello world') TRUE and not FALSE? > > > because 0 is integer and the integer value of 'hello world' is 0 so > they are equal. http://jessikak.de

Re: [PHP] hello world == 0 ?

2004-03-09 Thread Richard Davey
Hello test, Tuesday, March 9, 2004, 2:22:08 PM, you wrote: t> why is var_dump( 0 == 'hello world') TRUE and not FALSE? The same reason: intval('hello world') will equal 0. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.n

Re: [PHP] Changing Default Charset

2004-03-09 Thread Brian V Bonini
On Mon, 2004-03-08 at 21:34, Span wrote: > I think it can't work if the server has set the default_charset in the > php.ini . > > eg: > if in php.ini has: > default_charset="gb_2312" > then only changing the charset in html page didn't work. > >>header('Content-type: text/html; charset=UTF-8');

Re: [PHP] Changing Default Charset

2004-03-09 Thread Brian V Bonini
On Mon, 2004-03-08 at 21:34, Span wrote: > I think it can't work if the server has set the default_charset in the > php.ini . > > eg: > if in php.ini has: > default_charset="gb_2312" > then only changing the charset in html page didn't work. > >>header('Content-type: text/html; charset=UTF-8');

[PHP] small business inventory management package

2004-03-09 Thread Christian Calloway
Hey, Not looking to reinvent the wheel.. I am looking for an inventory management software package (written in PHP of course) that would be suitable for a small business. So in otherwords, nothing with any bells or whistles, just something that is easily modified/extensible. Any suggestions, Thank

Re: [PHP] Very, very wiered problem - Part 2

2004-03-09 Thread Marek Kilimajer
Mário Gamito wrote: Hi, Is /home/vhosts/dte/ticct/include/complete_url.php readable for the apache process? Sure :-) Warm Regards, Mário Gamito What is the request uri? Remember that include/require path is based on the file requested by the browser, not on the path of the including file. --

[PHP] Pagination & MSSQL

2004-03-09 Thread Alex Hogan
Hi All, I have searched for some references on pagination using mssql but have come up empty. I have looked at the tutorials on Zend and just about everywhere else but unfortunately they all use LIMIT in the sql statement and the closest thing to that in mssql is either TOP n, or SET ROWCOU

[PHP] migration of mysql to SQL server

2004-03-09 Thread German
Hello, the problem that I have is that I must migrate the data of mysql to SQL server to work with php. If somebody knows escribame like doing it please. Thank you very much.

[PHP] Single button click to call PHP logout scripts in 2 Frames

2004-03-09 Thread Pushpinder Singh
Hello alll, I am using three frames on my site. The left and the main frame have all the dynamic content in it. My login module is embedded in the leftFrame. To check out the site please look here http://masterstream.com/dev/ Once the user logs in the site successfully the left frames shows t

Re: [PHP] Pagination & MSSQL

2004-03-09 Thread Richard Davey
Hello Alex, Tuesday, March 9, 2004, 3:11:54 PM, you wrote: AH> I have searched for some references on pagination using mssql but have come AH> up empty. AH> I have looked at the tutorials on Zend and just about everywhere else but AH> unfortunately they all use LIMIT in the sql statement and the

[PHP] Re: Generating Sub Headings

2004-03-09 Thread Nicole
Can we take this one step further and make it so that if you're searching and you want to only see histories with the words "parking" in the title or only the histories between 1500 & 1550 it only puts the year headings for the years that actually have a history that meets this criteria? "Nicole"

[PHP] RE: Generating Sub Headings

2004-03-09 Thread Nicole
Can we take this one step further and make it so that if you're searching and you want to only see histories with the words "parking" in the title or only the histories between 1500 & 1550 it only puts the year headings for the years that actually have a history that meets this criteria? Thanks Ni

Re: [PHP] new session in new window

2004-03-09 Thread Hardik Doshi
> > Nice article by the way, and I am indeed already > using those same > > methods to secure the user session. (I use SHA1 on > the IP, PHPSESSIONID, > > user agent, and a secret...) > > Thanks for the kind words. I must point out that > you'll never see me > suggesting to use the IP address for

[PHP] Support for remote DataBase Systems

2004-03-09 Thread edwardspl
Dear All, Which ODBC or related driver with php supports the following Database Systems ( remote ) ? 1, Oracle 2, Sybase 3, MS-SQL 2000 4, MySQL Thank for your tell ! Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] IE 6 hotix and header problem

2004-03-09 Thread Ed Curtis
Does anyone happen to have the link on microsoft's support site that addresses the problem with the latest IE 6 hotfix and incomplete headers being sent? I can't seem to find my bookmark and I can't access the archive site to find it. Thanks, Ed -- PHP General Mailing List (http://www.php.net/

Re: [PHP] IE 6 hotix and header problem

2004-03-09 Thread Richard Davey
Hello Ed, Tuesday, March 9, 2004, 4:41:14 PM, you wrote: EC> Does anyone happen to have the link on microsoft's support site that EC> addresses the problem with the latest IE 6 hotfix and incomplete headers EC> being sent? I can't seem to find my bookmark and I can't access the EC> archive site t

Re: [PHP] IE 6 hotix and header problem

2004-03-09 Thread Chris Shiflett
--- Ed Curtis <[EMAIL PROTECTED]> wrote: > Does anyone happen to have the link on microsoft's support site that > addresses the problem with the latest IE 6 hotfix and incomplete > headers being sent? I think this is what you want: http://support.microsoft.com/default.aspx?kbid=831167 Hope that

[PHP] deleting array elements

2004-03-09 Thread Benjamin Jeeves
Hi All I have two array one with a list of items in it. Then a second array with a list of items in it what I want to be able to do is compare array1 to array2 and if a match is found in both arrays delete that match from array1 and then so now? Any help would be good. so array1 = (1,2,3,4,5)

Re: [PHP] new session in new window

2004-03-09 Thread Chris Shiflett
--- Hardik Doshi <[EMAIL PROTECTED]> wrote: > I read your article about session security on php magazine as well > as on php architect. Both are very nice articles. Thank you. :-) > I would like to ask you what is the reason you are not suggesting > to use IP address as one of the parts in genera

Re: [PHP] deleting array elements

2004-03-09 Thread Rob Ellis
On Tue, Mar 09, 2004 at 05:22:37PM -, Benjamin Jeeves wrote: > Hi All > > I have two array one with a list of items in it. Then a second array with a list of > items in it what I want to be able to do is compare array1 to array2 and if a match > is found in both arrays delete that match fro

[PHP] Re: deleting array elements

2004-03-09 Thread Sven
Benjamin Jeeves schrieb: Hi All I have two array one with a list of items in it. Then a second array with a list of items in it what I want to be able to do is compare array1 to array2 and if a match is found in both arrays delete that match from array1 and then so now? Any help would be good.

[PHP] Re: PHP and FLASH progress bar

2004-03-09 Thread Justin Patrin
Ryan A wrote: Hi, This is an older problem that I posted to the list and since the solutions posted didnt really work, I started searching for a different solution. Required result: After each email show the client a message: eg: Sent email #1 Sent email #2 etc The message should display after eac

[PHP] Re: Shopping Carts

2004-03-09 Thread Justin Patrin
John Nichel wrote: Hi List, I'm looking for people who have experience with the carts listed below to solicit your opinion on said cart. My boss is looking to put something in place, and while I am evaluating these carts, I'm hoping y'all can point out some pluses and minuses that I'm not g

[PHP] Re: SESSION vs ENV variables?

2004-03-09 Thread Justin Patrin
Vincent Dupont wrote: Hi, My script needs to load a config file with DB connection properties, etc. At the beginning of the session, the ini file is loaded and all values are stored in $_SESSION After the loading, a flag is also set in $_SESSION so that the ini loading is no more executed. How

RE: [PHP] Re: Shopping Carts

2004-03-09 Thread Chris W. Parker
Justin Patrin on Tuesday, March 09, 2004 9:58 AM said: > Of course, we also needed ONLY a cart, not a storefront. If > you need a storefront as well, there should be *something* > out there that does what you want. i assumed those two things were the same, what's th

[PHP] Problem with cookies on new server

2004-03-09 Thread Teren
Hey, I'm having some trouble with one of my scripts that is on a new server I just launched. The scripts worked fine on the old server, so i'm pretty sure it's a php configuration problem. The problem is that i am using cookies on the script with the setcookie() function. It looks like the cooki

RE: [PHP] Problem with cookies on new server

2004-03-09 Thread Sam Masiello
If the install on the new server is a fresh install, you might want to start by comparing the php.ini files being used on both machines to see where they differ. HTH! --Sam Teren wrote: > Hey, I'm having some trouble with one of my scripts that is on a new > server I just launched. The script

Re: [PHP] Problem with cookies on new server

2004-03-09 Thread Richard Davey
Hello Teren, Tuesday, March 9, 2004, 6:48:15 PM, you wrote: T> Hey, I'm having some trouble with one of my scripts that is on T> a new server I just launched. The scripts worked fine on the old T> server, so i'm pretty sure it's a php configuration problem. The T> problem is that i am using cooki

[PHP] mssql_data_seek offset error

2004-03-09 Thread Alex Hogan
Hi All, I am using mssql_data_seek() to move the cursor to a particular row for paging. $cnt = mssql_data_seek($result, $i); This works fine until the variable $i reaches a value of 9 and seemingly higher. (at least 10, I haven't gone higher) Then I get this error; mssql_data_seek(

RE: [PHP] mssql_data_seek offset error

2004-03-09 Thread Jay Blanchard
[snip] I am using mssql_data_seek() to move the cursor to a particular row for paging. $cnt = mssql_data_seek($result, $i); This works fine until the variable $i reaches a value of 9 and seemingly higher. (at least 10, I haven't gone higher) Then I get this error; mssql_data_seek(): Bad row off

RE: [PHP] mssql_data_seek offset error

2004-03-09 Thread Alex Hogan
There are 10+ rows of data. Actually I should say there are over 100 rows of data returned and broken up into sets of 10 records each. (approx. 103 total records) alex hogan > -Original Message- > From: Jay Blanchard [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 09, 2004 2:52 PM >

RE: [PHP] mssql_data_seek offset error

2004-03-09 Thread Jay Blanchard
[snip] There are 10+ rows of data. Actually I should say there are over 100 rows of data returned and broken up into sets of 10 records each. (approx. 103 total records) [/snip] PLEASE STOP TOP POSTING! Are you selecting all of the records at once, or just a few at a time?

RE: [PHP] mssql_data_seek offset error

2004-03-09 Thread Alex Hogan
>PLEASE STOP TOP POSTING! Sorry Didn't mean to don't even know exactly what it is > Are you selecting all of the records at once, or just a few at a time? I am returning a few records at a time. alex hogan *

RE: [PHP] mssql_data_seek offset error

2004-03-09 Thread Jay Blanchard
[snip] >PLEASE STOP TOP POSTING! Sorry Didn't mean to don't even know exactly what it is [/snip] When you post a reply above a response. [snip] > Are you selecting all of the records at once, or just a few at a time? I am returning a few records at a time. [/snip] There is your p

[PHP] mysql query with php

2004-03-09 Thread tony
Hi, I just can't find the forum for any mysql. anyways maybe someone run into this kind of problem, i'm saving in a db records of company and in a column i have numbers i.e 1,2,12,31,32 so if want to search a company that has number 2 i do category REGEXP '2' but the problem it will return numb

RE: [PHP] mysql query with php

2004-03-09 Thread Jay Blanchard
[snip] I just can't find the forum for any mysql. [/snip] http://www.mysql.com/doc/en/Mailing-list.html [snip] anyways maybe someone run into this kind of problem, i'm saving in a db records of company and in a column i have numbers i.e 1,2,12,31,32 so if want to search a company that has numbe

RE: [PHP] mysql query with php

2004-03-09 Thread Jason Davidson
or just read the manual at mysql.com .. "Jay Blanchard" <[EMAIL PROTECTED]> wrote: > > [snip] > I just can't find the forum for any mysql. > [/snip] > > http://www.mysql.com/doc/en/Mailing-list.html > > [snip] > anyways maybe someone run into this kind of problem, i'm saving in a db > record

RE: [PHP] mysql query with php {ot}

2004-03-09 Thread Jay Blanchard
[snip] or just read the manual at mysql.com .. [/snip] Top posting. What's annoying? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mssql_data_seek offset error

2004-03-09 Thread Alex Hogan
[snip] > There is your problem. Return ALL of the records, then use > mssql_data_seek to move about. [snip] OK, I'm returning all the rows and no change. Code: $query = "SELECT DISTINCT q.questions FROM SG_Questions as q, SG_QuesRef as r WHERE r.pos_id = '$pos'

RE: [PHP] mssql_data_seek offset error

2004-03-09 Thread Jay Blanchard
[snip] $query = "SELECT DISTINCT q.questions FROM SG_Questions as q, SG_QuesRef as r WHERE r.pos_id = '$pos' AND r.sic_id = '$sic' AND r.cat_id = '$cat' AND r.ques_id = q.ques_id"; $result = mssql_query($query) or die("Can not execute query $query. "); for ($i =

Re: [PHP] Re: Shopping Carts

2004-03-09 Thread Justin Patrin
Chris W. Parker wrote: Justin Patrin on Tuesday, March 09, 2004 9:58 AM said: Of course, we also needed ONLY a cart, not a storefront. If you need a storefront as well, there should be *something* out there that does what you want. i assumed those two things were

RE: [PHP] mssql_data_seek offset error

2004-03-09 Thread Alex Hogan
> What does mssql_num_rows($query) return? 105 alex ** The contents of this e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. The vie

RE: [PHP] mssql_data_seek offset error

2004-03-09 Thread Jay Blanchard
[snip] $query = "SELECT DISTINCT q.questions FROM SG_Questions as q, SG_QuesRef as r WHERE r.pos_id = '$pos' AND r.sic_id = '$sic' AND r.cat_id = '$cat' AND r.ques_id = q.ques_id"; $result = mssql_query($query) or die("Can not execute query $query. "); for ($i =

RE: [PHP] mssql_data_seek offset error

2004-03-09 Thread Alex Hogan
> Try this > > $query = "SELECT DISTINCT q.questions > FROM SG_Questions as q, SG_QuesRef as r > WHERE r.pos_id = '$pos' AND r.sic_id = '$sic' AND > r.cat_id > = '$cat' AND r.ques_id = q.ques_id"; > $result = mssql_query($query) or die("Can not execute query $q

[PHP] PHP as a File Proxy between the internet and a LAN computer - a possibility?

2004-03-09 Thread Irfan Adilovic
As a first-timer on this newsgroup I beg for understanding for any stupidity I may write. :) Hi, State of affairs: A LAN with a computer that is not directly accessible from the internet. The LAN is connected through a gateway to the Internet - and the LAN has only one IP, so only the gateway is

RE: [PHP] mssql_data_seek offset error

2004-03-09 Thread Jay Blanchard
[snip] > Try this > > $query = "SELECT DISTINCT q.questions > FROM SG_Questions as q, SG_QuesRef as r > WHERE r.pos_id = '$pos' AND r.sic_id = '$sic' AND > r.cat_id > = '$cat' AND r.ques_id = q.ques_id"; > $result = mssql_query($query) or die("Can not execute q

RE: [PHP] mssql_data_seek offset error

2004-03-09 Thread Alex Hogan
> That cured 9 but it still freaks on 10. It returns the error for the > entire > loop count. > [/snip] > > Because $paging might be turning the integer you need into text? Maybe? I found it. In that sql statement I'm using SELECT DISTINCT In the sql statement that I'm using to get my recor

[PHP] Re: PHP as a File Proxy between the internet and a LAN computer - a possibility?

2004-03-09 Thread Justin Patrin
Irfan Adilovic wrote: As a first-timer on this newsgroup I beg for understanding for any stupidity I may write. :) Hi, State of affairs: A LAN with a computer that is not directly accessible from the internet. The LAN is connected through a gateway to the Internet - and the LAN has only one IP, s

[PHP] image header problem

2004-03-09 Thread qt
Dear Sirs, When I am using following codes, I am gettinh "Cannot modify header information - headers already sent by " error. What should I do? header ("Content-type: image/png"); $im = @imagecreate (50, 100) or die ("Cannot Initialize new GD image stream"); $background_color = imagecolorallo

[PHP] Session Logout Problems

2004-03-09 Thread Bob Irwin
G'day, I'm not getting much help on the IMP list about this problem, but I think it is more PHP related than anything else. I'll post as much info as I have, hopefully someone has seen something similar before. I have imp mail installed and the users are being randomly logged out. When I look a

[PHP] Re: image header problem

2004-03-09 Thread Justin Patrin
Qt wrote: Dear Sirs, When I am using following codes, I am gettinh "Cannot modify header information - headers already sent by " error. What should I do? header ("Content-type: image/png"); $im = @imagecreate (50, 100) or die ("Cannot Initialize new GD image stream"); $background_color = imag

[PHP] sessions timeout

2004-03-09 Thread André Ventura Lemos
Hi list :-) I'm using sessions to manage users, by using cookies to store the session. My question is, how do I make the session last _forever_? ATM the session lasts 'till the user closes the browser. Thanks -- I/O, I/O, It's off to disk I go, A bit or byte to read or write, I/O, I/O, I/O.

Re: [PHP] sessions timeout

2004-03-09 Thread Richard Davey
Hello André, Tuesday, March 9, 2004, 10:53:35 PM, you wrote: AVL> I'm using sessions to manage users, by using cookies to store the AVL> session. AVL> My question is, how do I make the session last _forever_? AVL> ATM the session lasts 'till the user closes the browser. Ok first of all - you can

Re: [PHP] image header problem

2004-03-09 Thread Richard Davey
Hello qt, Tuesday, March 9, 2004, 9:08:15 PM, you wrote: q> When I am using following codes, I am gettinh "Cannot modify header q> information - headers already sent by " error. What should I do? Don't send any output from your script, anywhere. This includes white space around the PHP tags or w

Re: [PHP] Session Logout Problems

2004-03-09 Thread Richard Davey
Hello Bob, Tuesday, March 9, 2004, 10:43:34 PM, you wrote: BI> I have imp mail installed and the users are being randomly logged out. When BI> I look at the matching session ID on the server, the file is completely BI> blank! I thought this might have been some sort of problem with using the D

Re: [PHP] SQLite Support is library call?

2004-03-09 Thread Marek Kilimajer
DAvid Jackson wrote: Howdy -- SQLite supported by a direct call the sqlite library? As apposed to calling the executable? Could I use ini_set(include_path=) to tall PHP where the SQLite lib is located? TIA, David I have never worked with SQLite but I bet you cannot. 1. the library is linked at

Re: [PHP] Re: using mail() for multiple email address...

2004-03-09 Thread Adam Reiswig
yes, my webhost is on Unix. Thanks, that must be it because I sent a regular email to both address's at the same time and I only received one. -Adam Reiswig [EMAIL PROTECTED] wrote: On 8 Mar 2004 Adam Reiswig wrote: Normally, the two emails would end up in the same pop account but don't seem

Re: [PHP] sessions timeout

2004-03-09 Thread André Ventura Lemos
But my question is, since I don't deal with cookies directly (PHP does that for me), 'cause I only have to deal with sessions, how can I change the cookies produced by PHP? atm I only session_start() and use the $_SESSION[''], so I don't really know which cookie to change, or how to do it. TIA

Re: [PHP] Session Logout Problems

2004-03-09 Thread Bob Irwin
Hi Richard, I wish there was a pattern - it'd help make testing... acheivable! :) I have had it happen to me on my machine, but it will be completely out of the blue. Sometimes I can leave the webmail open all day and have no problems with it. Hmmm - I'm not aware of the bug in IE, that could d

[PHP] Control Structure Syntax Question

2004-03-09 Thread Ahbaid Gaffoor
Someone had posted a tip for using an abbreviated form of an if.. else structure... It looked something like: $x : action1 : action2; I'm trying to shorten having to do the following: if ($x) { action1; } else { action 2; } can someone please post the syntax if they know it? I am reading the

Re: [PHP] Control Structure Syntax Question

2004-03-09 Thread daniel
$x ? action1 : action2; > structure... > > It looked something like: > > $x : action1 : action2; > > I'm trying to shorten having to do the following: > > if ($x) { > action1; > } else { > action 2; > } > > can someone please post the syntax if they know it? I am reading the > fine documentatio

Re[2]: [PHP] sessions timeout

2004-03-09 Thread Richard Davey
Hello André, Tuesday, March 9, 2004, 11:41:04 PM, you wrote: AVL> But my question is, since I don't deal with cookies directly (PHP does AVL> that for me), 'cause I only have to deal with sessions, how can I change AVL> the cookies produced by PHP? AVL> atm I only session_start() and use the $_S

Re: [PHP] Control Structure Syntax Question

2004-03-09 Thread Richard Davey
Hello Ahbaid, Tuesday, March 9, 2004, 11:42:21 PM, you wrote: AG> Someone had posted a tip for using an abbreviated form of an if.. else AG> structure... AG> It looked something like: AG> $x : action1 : action2; $x ? xxx : xxx But it makes your code less readable IMHO and offers no tangible b

Re: Re[2]: [PHP] sessions timeout

2004-03-09 Thread André Ventura Lemos
but since the cookie stores the session id, I thought I could keep that ID and bring it back. could you show me some code, or point me to some example? Thanks On Tue, 2004-03-09 at 23:48, Richard Davey wrote: > Hello André, > > Tuesday, March 9, 2004, 11:41:04 PM, you wrote: > > AVL> But my q

Re[4]: [PHP] sessions timeout

2004-03-09 Thread Richard Davey
Hello André, Tuesday, March 9, 2004, 11:53:15 PM, you wrote: AVL> but since the cookie stores the session id, I thought I could keep that AVL> ID and bring it back. You could, but PHP will automatically clear up "expired" sessions as part of its garbage collection routine, which means its entire

Re: Re[4]: [PHP] sessions timeout

2004-03-09 Thread André Ventura Lemos
I'll try to find another way then. Thanks for the replies On Wed, 2004-03-10 at 00:00, Richard Davey wrote: > Hello André, > > Tuesday, March 9, 2004, 11:53:15 PM, you wrote: > > AVL> but since the cookie stores the session id, I thought I could keep that > AVL> ID and bring it back. > > You

Re: [PHP] Control Structure Syntax Question

2004-03-09 Thread Ahbaid Gaffoor
Yeah, but if my code is less readable, my job security goes up ;) (Kidding) Thanks for all your help folks, that's what I needed. regards Ahbaid Richard Davey wrote: Hello Ahbaid, Tuesday, March 9, 2004, 11:42:21 PM, you wrote: AG> Someone had posted a tip for using an abbreviated form of a

Re: [PHP] Control Structure Syntax Question

2004-03-09 Thread Justin Patrin
Ahbaid Gaffoor wrote: Yeah, but if my code is less readable, my job security goes up ;) (Kidding) Thanks for all your help folks, that's what I needed. regards Ahbaid Richard Davey wrote: Hello Ahbaid, Tuesday, March 9, 2004, 11:42:21 PM, you wrote: AG> Someone had posted a tip for using a

[PHP] Re: mail() and passwords

2004-03-09 Thread Manuel Lemos
Hello, On 03/09/2004 05:37 AM, Will wrote: How do I modify the following to except a password for the SMTP server? The mail function does not support authentication. You may want to try this class that comes with a wrapper function named smtp_mail(). It emulates the mail() function except th

[PHP] RE: mail() and passwords

2004-03-09 Thread Will
I figured out how to do it. This is what I put in the php.ini file: SMTP = mydomains_smtp_server.com sendmail_from = [EMAIL PROTECTED] This worked great!!! It is sent right to a SMTP which is setup to authenticate all outgoing mails. ~WILL~ -Original Message- From: Manuel Lemos [mail

Re: [PHP] Single button click to call PHP logout scripts in 2 Frames

2004-03-09 Thread Tom Rogers
Hi, Wednesday, March 10, 2004, 1:49:14 AM, you wrote: PS> Hello alll, PS> I am using three frames on my site. The left and the main frame have PS> all the dynamic content in it. My login module is embedded in the PS> leftFrame. To check out the site please look here PS> http://masterstream.co

[PHP] SQL in the database..little help please

2004-03-09 Thread Ryan A
Hi, I need to save some SQL queries into the MySql database for later use, I thought this was done pretty simply by doing a addslashes before insert so that someones name like like " O'reilly " does not screw up the insert and a stripslashes for reading from the DB. I did that but when I checked i

Re: [PHP] SQL in the database..little help please

2004-03-09 Thread Richard Davey
Hello Ryan, Wednesday, March 10, 2004, 1:24:04 AM, you wrote: RA> I have first put off magic_quotes...now can anybody tell me how RA> YOU are doing it so I can do it the same damn exact way...reading RA> online is a problem coz I am getting conflicting ways of doing RA> itor am just braindead

[PHP] gd for windows not working

2004-03-09 Thread Joe Patiani
I`ve installed Apache/1.3.14 (Win32) and PHP/4.3.4. It`s running well, I guess. But the php extension not working. I need the php_gd2.dll running, I`ve copied it into system dir. But it`s still not working. Please tell me the solution, so I can use the gd dll in my windows. --- joe pat

Re: [PHP] SQL in the database..little help please

2004-03-09 Thread Ryan A
> Hello Ryan, > > Wednesday, March 10, 2004, 1:24:04 AM, you wrote: > > RA> I have first put off magic_quotes...now can anybody tell me how > RA> YOU are doing it so I can do it the same damn exact way...reading > RA> online is a problem coz I am getting conflicting ways of doing > RA> itor am

[PHP] Warning: Cannot modify header information - headers already sent by (output sta

2004-03-09 Thread Mike Mapsnac
This code below gives me this error message: Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/account.php:6) in /var/www/html/account.php on line 17 The script check in the database if user exists and than redirect the page to the home index.p

Re[2]: [PHP] SQL in the database..little help please

2004-03-09 Thread Richard Davey
Hello Ryan, Wednesday, March 10, 2004, 1:39:40 AM, you wrote: RA> Yep, I got the above...but should I (or do I) need to use a stripslashes RA> when reading from the DB? Depends if you have magic quotes turned off or not! :) If they are OFF then yes, you need it. -- Best regards, Richard Davey

RE: [PHP] Warning: Cannot modify header information - headers alr eady sent by (output sta

2004-03-09 Thread Martin Towell
It's exactly as the error says... You've echo'ed something out before the header statement. Move your database query and header() above all the echos and it should then work. Martin > -Original Message- > From: Mike Mapsnac [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 10 March 2004 12:4

RE: [PHP] Warning: Cannot modify header information - headers already sent by (output sta

2004-03-09 Thread Chris W. Parker
Mike Mapsnac on Tuesday, March 09, 2004 5:42 PM said: > This code below gives me this error message: > Warning: Cannot modify header information - headers already sent by > (output started at /var/www/html/account.php:6) in > /var/www/html/account.php on line 17 > >

RE: [PHP] SQL in the database..little help please

2004-03-09 Thread Chris W. Parker
Ryan A on Tuesday, March 09, 2004 5:24 PM said: > I did that but when I checked in the DB I couldnt find the O/'reilly > as it saves it normally as "O'reilly". fyi, escaping is done with a \ and not a /. chris. -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] gd for windows not working

2004-03-09 Thread Jason Sheets
You shouldn't need to put the php_gd2.dll in your system dir, simply open your php.ini file (Usually c:\windows\php.ini or c:\winnt\php.ini) and change the extension_dir to point to your PHP 4 directory\extensions, Example: extension_dir = "c:\php4\extensions" Then uncomment the extension=php_gd2

Re: [PHP] gd for windows not working

2004-03-09 Thread Span
pls check if u has set "extension=php_gd.dll" and "extension_dir = "yourdirectory"; in the php.ini ,and copy the dll to the related yourdirectory,then restart ur apache service - Original Message - From: "Joe Patiani" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 10,

  1   2   >