[PHP] session clustering

2005-09-22 Thread Jad Madi
guys, do you recommend session clustering within php application itself or going with higher level, maybe database sessions and then database clustering? -- Regards Jad madi Blog http://EasyHTTP.com/jad/ Web standards Planet http://W3planet.net/ -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Opensource webshop

2005-09-22 Thread Vince LaMonica
On Fri, 23 Sep 2005, Jasper Bryant-Greene wrote: } > > There are probably dozens of free open source PHP carts already out } > > there. Not to mention the ones written in Perl. } > > } > Are there many in just PHP to? } } As he said, there are probably dozens. Four of the PHP-based ones are lis

Re: [PHP] Opensource webshop

2005-09-22 Thread Gustav Wiberg
- Original Message - From: "Jasper Bryant-Greene" <[EMAIL PROTECTED]> To: Sent: Friday, September 23, 2005 6:41 AM Subject: Re: [PHP] Opensource webshop There are probably dozens of free open source PHP carts already out there. Not to mention the ones written in Perl. Are there man

Re: [PHP] Opensource webshop

2005-09-22 Thread Jasper Bryant-Greene
There are probably dozens of free open source PHP carts already out there. Not to mention the ones written in Perl. Are there many in just PHP to? As he said, there are probably dozens. Four of the PHP-based ones are listed under "e-Commerce" on this website: http://www.opensourcecms.com/

Re: [PHP] Opensource webshop

2005-09-22 Thread Gustav Wiberg
- Original Message - From: "Greg Donald" <[EMAIL PROTECTED]> To: Sent: Thursday, September 22, 2005 11:03 PM Subject: Re: [PHP] Opensource webshop On 9/22/05, Gustav Wiberg <[EMAIL PROTECTED]> wrote: I'm just beginning to test if there is some interest in an opensource-webshop... The

Re: [PHP] Re: Opensource webshop

2005-09-22 Thread Gustav Wiberg
- Original Message - From: "Mark Evans" <[EMAIL PROTECTED]> To: Sent: Thursday, September 22, 2005 10:47 PM Subject: [PHP] Re: Opensource webshop I'm just beginning to test if there is some interest in an opensource-webshop... The admin-part is not opensource.. Surely if the admin i

Re: [PHP] Opensource webshop

2005-09-22 Thread Gustav Wiberg
- Original Message - From: "Chris W. Parker" <[EMAIL PROTECTED]> To: "PHP General" Sent: Thursday, September 22, 2005 10:28 PM Subject: RE: [PHP] Opensource webshop Gustav Wiberg on Thursday, September 22, 2005 1:21 PM said: Hi there! Hi. I'm just be

Re: [PHP] Posting variables from one php script to another

2005-09-22 Thread Graham Anderson
I tried this test: //CURL $ch = curl_init ("$myURL/movieBuilder.php"); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_POST,1); curl_setopt ($ch, CURLOPT_POSTFIELDS, "mask=mask.gif&drag=drag.gif&movie=fonovisa.mov"); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); $buffer = curl_exe

Re: [PHP] basic user/input form questions... more validation!

2005-09-22 Thread Chris Shiflett
bruce wrote: but what do you mean by "...escape output!!" Output is data that you send somewhere else. In other words, if it leaves your application, it is output. This is explained a bit further (with some code) near the start of this talk: http://brainbulb.com/talks/php-security-audit-h

Re: [PHP] ftp_site problem

2005-09-22 Thread cron
try: if(ftp_site($conn_id, "SITE chmod 0777 /public_html/EditPage/cd_ef_W.txt")) echo 'successful'; else 'failed'; it works for me Crom - Original Message - From: "Al" <[EMAIL PROTECTED]> To: Sent: Thursday, September 22, 2005 9:34 PM Subject: [PHP] ftp_site problem I can't get

Re: [PHP] File complete check (FTP)

2005-09-22 Thread cron
How about check file size? Crom - Original Message - From: "Johannes Tyra" <[EMAIL PROTECTED]> To: Sent: Thursday, September 22, 2005 5:04 PM Subject: [PHP] File complete check (FTP) Hello, i want to check if a file (jpg image) is completely uploaded on a server. If checked für the t

RE: [PHP] basic user/input form questions... more validation!

2005-09-22 Thread bruce
hey chris... thanks!! but what do you mean by "...escape output!!" is that output of the query, which is input to the db? as i understand it, you escape the query vars, after filtering/validation, that you're going to touch the db with... (insert/update/select) am i on your same wavelength??

Re: [PHP] basic user/input form questions... more validation!

2005-09-22 Thread Chris Shiflett
bruce wrote: not sure i agree with this one.. if i put "foo \' cat" in a db tbl... i expect that i'll get the same out... which is what some of the articles i've seen have stated.. are you telling me, and are you sure, that i'd get "foo ' cat" out instead!! the articles i've seen imply that

Re: [PHP] Posting variables from one php script to another

2005-09-22 Thread Jasper Bryant-Greene
Graham Anderson wrote: In a POST request: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "./movieBuilder.php"); I think you may need to put the full URL here. I don't do a lot with CURL, though, so someone else may be able to help you more here. -- Jasper Bryant-Greene Freelance web devel

Re: [PHP] Posting variables from one php script to another

2005-09-22 Thread Graham Anderson
so is it like this? ? CURL is not quite working yet In a GET request: $movieBuilder would be: $movieBuilder = "./movieBuilder.php?mask=mask.gif&drag=drag.gif&movie=fonovisa.mov"; putting $movieBuilder in the src attribute does work. In a POST request: $ch = curl_init(); curl_setopt($ch,

Re: [PHP] Posting variables from one php script to another

2005-09-22 Thread Jasper Bryant-Greene
Graham Anderson wrote: I am using GET to send variables from one php script to another php script How would I POST the same variables ? http://php.net/curl You can use the CURL functions to send a POST request. -- Jasper Bryant-Greene Freelance web developer http://jasper.bryant-greene.name/

[PHP] ftp_site problem

2005-09-22 Thread Al
I can't get ftp_site() to chmod a file. WS_FTP utility changes them OK. I can connect and log-in via ftp OK Then I send if(ftp_site($conn_id, "chmod 0777 /public_html/EditPage/cd_ef_W.txt")) echo 'successful'; else 'failed'; And get "successful" OK But, the file's permissions don't change.

RE: [PHP] basic user/input form questions... more validation!

2005-09-22 Thread Murray @ PlanetThoughtful
> -Original Message- > From: bruce [mailto:[EMAIL PROTECTED] > Sent: Friday, 23 September 2005 10:23 AM > To: 'Jasper Bryant-Greene'; php-general@lists.php.net > Subject: RE: [PHP] basic user/input form questions... more validation! > > one more question/issue... > > the mysql_real_esca

[PHP] Posting variables from one php script to another

2005-09-22 Thread Graham Anderson
I am using GET to send variables from one php script to another php script How would I POST the same variables ? This is the php script I am sending GET variables to... $movieBuilder = "./movieBuilder.php?mask=mask.gif&drag=drag.gif&movie=fonovisa.mov"; I am placing $movieBuilder in the "src

Re: [PHP] basic user/input form questions... more validation!

2005-09-22 Thread Jasper Bryant-Greene
bruce wrote: the mysql_real_escape function escapes with a'\' which works for mysql, but isn't standard ansi... is there another function that does the same thing, but uses the ansi standard "'". also, if there is another function, does it also work with mysql?? Well, you could just use str_rep

RE: [PHP] basic user/input form questions... more validation!

2005-09-22 Thread bruce
one more question/issue... the mysql_real_escape function escapes with a'\' which works for mysql, but isn't standard ansi... is there another function that does the same thing, but uses the ansi standard "'". also, if there is another function, does it also work with mysql?? thanks -bruce

Re: [PHP] Opensource webshop

2005-09-22 Thread Chris Martin
On 9/22/05, Greg Donald <[EMAIL PROTECTED]> wrote: > Not to mention the ones written in Perl. I think you just did ;) -- Chris Martin Web Developer Open Source & Web Standards Advocate http://www.chriscodes.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] Re: Suggestions for class design

2005-09-22 Thread Manuel Lemos
Hello, on 09/20/2005 01:51 PM Murray @ PlanetThoughtful said the following: I do not understand why this could bother you or anybody else. If you have a better solution, nothing stops you to make your recommendations. Hi Manuel, I did make my recommendation. To you. It went something like (an

Re: [PHP] basic user/input form questions... more validation!

2005-09-22 Thread Jasper Bryant-Greene
bruce wrote: not sure i agree with this one.. if i put "foo \' cat" in a db tbl... i expect that i'll get the same out... which is what some of the articles i've seen have stated.. are you telling me, and are you sure, that i'd get "foo ' cat" out instead!! the articles i've seen imply that

RE: [PHP] basic user/input form questions... more validation!

2005-09-22 Thread bruce
hey... regarding .. > $string_data = "Hello I'm a string."; $sql = "INSERT INTO table (thestring) VALUES ('$string_data')"; That would be the same as: INSERT INTO table (thestring) VALUES 'Hello I'm a string' The engine is going to choke on the apostrophe in I'm. With escaping it w

[PHP] Re: basic user/input form questions... more validation!

2005-09-22 Thread Manuel Lemos
Hello Bruce on 09/22/2005 03:05 PM bruce said the following: for simplicity. let's deal wit a simple user input form, that's going to place the information in a db. if the app allows the user to enter the input (call it 'foo') and then submits the form via a POST, where the data is then written

RE: [PHP] basic user/input form questions... more validation!

2005-09-22 Thread Chris W. Parker
bruce on Thursday, September 22, 2005 3:33 PM said: > further investigation seems to imply that 'strings' that are to be > inserted into the mysql db should be 'backslashed' for the chars > > \x00, \n, \r, \,'," and \x1a. That's what escaping is. > the mysql_real_e

[PHP] Re: IIS & E-Mail

2005-09-22 Thread Manuel Lemos
Hello, on 09/22/2005 05:03 PM Jay Blanchard said the following: I finally configured the IIS Virtual SMTP server as my MTA. No errors are being thrown, but no mail is being sent either. Well, it may being sent, but it is not arriving at its destination. Can someone clue me into some things to ch

Re: [PHP] basic user/input form questions... more validation!

2005-09-22 Thread Jasper Bryant-Greene
bruce wrote: further investigation seems to imply that 'strings' that are to be inserted into the mysql db should be 'backslashed' for the chars > \x00, \n, \r, \,'," and \x1a. this implies that i can have a simple function to accomplish this. the mysql_real_escape_string function requires a db c

RE: [PHP] basic user/input form questions... more validation!

2005-09-22 Thread bruce
further investigation seems to imply that 'strings' that are to be inserted into the mysql db should be 'backslashed' for the chars > \x00, \n, \r, \,'," and \x1a. this implies that i can have a simple function to accomplish this. the mysql_real_escape_string function requires a db connection and t

Re: [PHP] Problem with Internet Explorer when downloading / viewing dynamically generated PDF files

2005-09-22 Thread Philip Hallstrom
These were all good suggestions, unfortunately none of them was able to solve my problem. I did a rather simple test to eliminate at least some of the possible causes. I changed the script in order to do three simple things: send a Content-type header, read an existing PDF document into a string

[PHP] elegant way to convert relative to absolute urls

2005-09-22 Thread Graham Anderson
is there a simple function out there that converts relative urls like ../../myfile.php to an absolute url ? g -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: elegant way to convert relative to absolute urls

2005-09-22 Thread Graham Anderson
need to clarify :) I found the 'realpath' function I need to convert: ../../myfile.php to http://www.myserver.com/dir/myfile.php many thanks g On Sep 22, 2005, at 2:08 PM, Graham Anderson wrote: is there a simple function out there that converts relative urls like ../../myfile.php t

Re: [PHP] Problem with Internet Explorer when downloading / viewing dynamically generated PDF files

2005-09-22 Thread Frank Arensmeier
These were all good suggestions, unfortunately none of them was able to solve my problem. I did a rather simple test to eliminate at least some of the possible causes. I changed the script in order to do three simple things: send a Content-type header, read an existing PDF document into a strin

Re: [PHP] Opensource webshop

2005-09-22 Thread Greg Donald
On 9/22/05, Gustav Wiberg <[EMAIL PROTECTED]> wrote: > I'm just beginning to test if there is some interest in an > opensource-webshop... The admin-part is not opensource.. > > Interested? > http://www.varupiraten.se/doc.php There are probably dozens of free open source PHP carts already out ther

[PHP] Re: Opensource webshop

2005-09-22 Thread Mark Evans
I'm just beginning to test if there is some interest in an opensource-webshop... The admin-part is not opensource.. Surely if the admin isnt opensource then its not an opensource solution? You cant run a store without the admin part ;-) Regards Mark -- PHP General Mailing List (http://www.ph

RE: [PHP] Opensource webshop

2005-09-22 Thread Chris W. Parker
Gustav Wiberg on Thursday, September 22, 2005 1:21 PM said: > Hi there! Hi. > I'm just beginning to test if there is some interest in an > opensource-webshop... Do you mean a shopping cart? > The admin-part is not opensource.. Hmm... why not? And do I have to pa

Re: [PHP] Re: Unique ID on 5.0.4 (Windows)

2005-09-22 Thread Jasper Bryant-Greene
Chris wrote: Jasper Bryant-Greene wrote: $unique_id = sha1( uniqid( mt_rand(), true ) ); That unique ID will be based on the current time in microseconds prefixed by a random number generated by the Mersenne Twister. That is *extremely* unlikely to duplicate, even at the same microsecond.

[PHP] Opensource webshop

2005-09-22 Thread Gustav Wiberg
Hi there! I'm just beginning to test if there is some interest in an opensource-webshop... The admin-part is not opensource.. Interested? http://www.varupiraten.se/doc.php /G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] IIS & E-Mail

2005-09-22 Thread Jay Blanchard
[snip] Okie dokie, I am losing it I am surebut that's not important now. I finally configured the IIS Virtual SMTP server as my MTA. No errors are being thrown, but no mail is being sent either. Well, it may being sent, but it is not arriving at its destination. Can someone clue me into some t

Re: [PHP] Max execution time while doing DB queries

2005-09-22 Thread Jeroen Geusebroek
On 9/22/05, Michael Sims <[EMAIL PROTECTED]> wrote: > http://lists.ibiblio.org/pipermail/freetds/2005q3/018774.html > > According to that it's in 0.64 I'll have it a go tomorrow. Looks hopeful! Will let you know. -- Jeroen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] File complete check (FTP)

2005-09-22 Thread Johannes Tyra
Hello, i want to check if a file (jpg image) is completely uploaded on a server. If checked für the to last bytes (ffd9), but these method is not save. Anybody know how it works?? -- Mit freundlichem Gruß, | Johannes Tyra | --- | BrainData - InterNet Services

[PHP] IIS & E-Mail

2005-09-22 Thread Jay Blanchard
Okie dokie, I am losing it I am surebut that's not important now. I finally configured the IIS Virtual SMTP server as my MTA. No errors are being thrown, but no mail is being sent either. Well, it may being sent, but it is not arriving at its destination. Can someone clue me into some things t

[PHP] File complete check (FTP)

2005-09-22 Thread Johannes Tyra
Hello, i want to check if a file (jpg image) is completely uploaded on a server. If checked für the to last bytes (ffd9), but these method is not save. Anybody know how it works?? -- Mit freundlichem Gruß, | Johannes Tyra | --- | BrainData - InterNet Services

Re: [PHP] Max execution time while doing DB queries

2005-09-22 Thread Jeroen Geusebroek
On 9/22/05, Michael Sims <[EMAIL PROTECTED]> wrote: > What platform/driver? If Linux, are you using FreeTDS and if so what > version? It > looks like the timeout is handled in the TDS library, not at the PHP level. > I did > some poking through the FreeTDS mailing list archives and it seems t

RE: [PHP] Max execution time while doing DB queries

2005-09-22 Thread Michael Sims
Jeroen Geusebroek wrote: > For this application i'm using a MSSQL database. There is an ini > setting (mssql.timeout) which should do what i want but afiak doesn't > work. It defaults to 60 which i assume are seconds. > > My app has had times that it was waiting way longer then that before > it die

RE: [PHP] basic user/input form questions... more validation!

2005-09-22 Thread Chris W. Parker
bruce on Thursday, September 22, 2005 11:58 AM said: > hey chris... Hi. > so you're sayng that if data is outside of a-zA-Z0-9 "'" then it > should probably fail the regex anyway.. and it should error out.. (Where did that apostrophe come from? That wasn't in my l

Re: [PHP] FTP

2005-09-22 Thread Gustav Wiberg
- Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: "PHP Mailing Lists" Sent: Thursday, September 22, 2005 9:08 PM Subject: Re: [PHP] FTP Gustav Wiberg wrote: Hi again! Yes, you're right... I get this error now... Fatal error: Call to undefined function: ftp_connect

Re: [PHP] FTP

2005-09-22 Thread John Nichel
Gustav Wiberg wrote: Hi again! Yes, you're right... I get this error now... Fatal error: Call to undefined function: ftp_connect() in /customers/varupiraten.se/varupiraten.se/httpd.www/web/do_ftp.php on line 8 Isn't it enough to ftp to be a registred stream? Here is the info of PHP... http

Re: [PHP] Max execution time while doing DB queries

2005-09-22 Thread Jeroen Geusebroek
On 9/22/05, Michael Sims <[EMAIL PROTECTED]> wrote: > What RDBMS are you using? If you are using Postgres you can use > pg_send_query() > which is non-blocking. I don't think the other database backends/php drivers > support such functionality, but I could be wrong... Maybe someone else knows

Re: [PHP] FTP

2005-09-22 Thread Gustav Wiberg
- Original Message - From: "John Nichel" <[EMAIL PROTECTED]> To: "PHP Mailing Lists" Sent: Thursday, September 22, 2005 8:53 PM Subject: Re: [PHP] FTP Gustav Wiberg wrote: Hi all! I took this code directly from PHP.net but I don't get it to work correctly...I've never worked with f

Re: [PHP] FTP

2005-09-22 Thread John Nichel
Gustav Wiberg wrote: Hi all! I took this code directly from PHP.net but I don't get it to work correctly...I've never worked with ftp-connections with PHP before... $conn_id = ftp_connect($ftp_server) or die("Couldn't connect to $ftp_server"); // try to login if (@ftp_login($conn_id, $ftp

RE: [PHP] basic user/input form questions... more validation!

2005-09-22 Thread bruce
hey chris... so you're sayng that if data is outside of a-zA-Z0-9 "'" then it should probably fail the regex anyway.. and it should error out.. if i understnad you, you're also saying that if the information has an " ' " in it, then it should be escaped, but you didn't say how.! also, what's the

RE: [PHP] basic user/input form questions... more validation!

2005-09-22 Thread bruce
here's psuedo of what i envision now, in my psuedo code, i don't use the stripslashes/quotes/etc... so, i'm still trying to understand why these functions are needed/required? thoughts/comments/etc thanks -bruce -- index.php if isset($REQUEST['submit']

[PHP] FTP

2005-09-22 Thread Gustav Wiberg
Hi all! I took this code directly from PHP.net but I don't get it to work correctly...I've never worked with ftp-connections with PHP before... $conn_id = ftp_connect($ftp_server) or die("Couldn't connect to $ftp_server"); // try to login if (@ftp_login($conn_id, $ftp_user, $ftp_pass)) {

RE: [PHP] basic user/input form questions... more validation!

2005-09-22 Thread Chris W. Parker
bruce on Thursday, September 22, 2005 11:05 AM said: > if the app allows the user to enter the input (call it 'foo') and then > submits the form via a POST, where the data is then written to the > db, what kind of validation should occur? Depends on what kind of a f

RE: [PHP] Max execution time while doing DB queries

2005-09-22 Thread Michael Sims
Jeroen Geusebroek wrote: > I was wondering how i can limit a script from waiting too long for > a database query to return. > > The problem is that it will wait an infinite time while performing a > query on a database when there is for example a lock on a table. I > want it to exit/fail when a set

Re: [PHP] Problems with headers

2005-09-22 Thread Graham Anderson
thanks guys :) encoding in utf-8 NO BOM seems to do the trick g On Sep 22, 2005, at 11:05 AM, Jim Jagielski wrote: Set BBEdit to use Mac OS Roman. From the main window, choose the file icon (5th from left). Graham Anderson wrote: --Apple-Mail-15-928383921 Content-Transfer-Encoding: 7bit

Re: [PHP] basic user/input form questions... more validation!

2005-09-22 Thread Gustav Wiberg
- Original Message - From: "bruce" <[EMAIL PROTECTED]> To: Sent: Thursday, September 22, 2005 8:05 PM Subject: [PHP] basic user/input form questions... more validation! hi... forgive me!!! Ok; -) Why? You're just asking... :-) continuing the thread from yesterday regarding filter

Re: [PHP] Problems with headers

2005-09-22 Thread Jim Jagielski
Set BBEdit to use Mac OS Roman. From the main window, choose the file icon (5th from left). Graham Anderson wrote: > > --Apple-Mail-15-928383921 > Content-Transfer-Encoding: 7bit > Content-Type: text/plain; > charset=US-ASCII; > format=flowed > > Ok, I think I figured it out . > > I

[PHP] Max execution time while doing DB queries

2005-09-22 Thread Jeroen Geusebroek
Hi, I was wondering how i can limit a script from waiting too long for a database query to return. The problem is that it will wait an infinite time while performing a query on a database when there is for example a lock on a table. I want it to exit/fail when a set amount of time has passed. se

Re: [PHP] Re: Mail-format...

2005-09-22 Thread Gustav Wiberg
- Original Message - From: "M. Sokolewicz" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Cc: ; "joshua may" <[EMAIL PROTECTED]> Sent: Thursday, September 22, 2005 5:24 PM Subject: Re: [PHP] Re: Mail-format... Gustav Wiberg wrote: - Original Message - From: "jos

Re: [PHP] Problems with headers

2005-09-22 Thread Rasmus Lerdorf
Graham Anderson wrote: > Ok, I think I figured it out . > > I had to convert my BBedit text editor file to plain text and then > copy/paste that text directly into a new server text file > So, I guess my $100+ text editor is screwing up the file ? > Is there some way to prevent this ? Tell your

Re: [PHP] Problems with headers

2005-09-22 Thread Graham Anderson
Ok, I think I figured it out . I had to convert my BBedit text editor file to plain text and then copy/paste that text directly into a new server text file So, I guess my $100+ text editor is screwing up the file ? Is there some way to prevent this ? My text encoding is in UTF-8 because I hav

[PHP] basic user/input form questions... more validation!

2005-09-22 Thread bruce
hi... forgive me!!! continuing the thread from yesterday regarding filtering. (and thanks to all the msgs) for simplicity. let's deal wit a simple user input form, that's going to place the information in a db. if the app allows the user to enter the input (call it 'foo') and then submits the f

Re: [PHP] Problems with headers

2005-09-22 Thread Rasmus Lerdorf
Graham Anderson wrote: > Thanks Rasmus :) > that is an incredibly cool tip: EOB > Surprised I did not see you at the Digital Rights [hollywood digital] > conference in LA early this week. > Upside: Free sushi and an ocean view. Downside: Lots of 'agency' types > and sales folk > > > when I a

Re: [PHP] Problems with headers

2005-09-22 Thread Graham Anderson
Thanks Rasmus :) that is an incredibly cool tip: EOB Surprised I did not see you at the Digital Rights [hollywood digital] conference in LA early this week. Upside: Free sushi and an ocean view. Downside: Lots of 'agency' types and sales folk when I access a straight movie file with no p

Re: [PHP] Problem with Internet Explorer when downloading / viewing dynamically generated PDF files

2005-09-22 Thread Steve Lefevre
Philip Hallstrom wrote: We finally figured out that IE was beginning the download of the PDF itself, but if it downloaded more than about 1mb, it would pass it off to a helper application to do the rest. The thing was the helper application remade the request. But it wasn't passing along t

[PHP] Re: Problem with Internet Explorer when downloading / viewing dynamically generated PDF files

2005-09-22 Thread Ben
Frank Arensmeier said the following on 09/22/05 03:59: > Explorer shows the PDF document as plain text only. Trying to save the > linked document to the computer (right click) gives something like "The > server can not be reached or the document does not exist." > > I know that explorer is a real

Re: [PHP] Problem with Internet Explorer when downloading / viewing dynamically generated PDF files

2005-09-22 Thread Philip Hallstrom
I have written a script which dynamically generates PDF documents (with PDFlib). The link to the PDF file is presented as a static link (thanks btw to Richard Lynch and his previous contributions to this list on the subject "force download"). It is redirected to the script via a htaccess file. I

[PHP] Re: session and cookie by javascript

2005-09-22 Thread Ben
Alex Andrew Mosqueda said the following on 09/22/05 06:28: > Hi! > I there a way I can get the cookie data stored by javascript(client side) in > php(server side) and vice versa? > Thanks. It never hurts to check php.net, plenty of useful information there... $_cookie[''] http://ca3.php.net/man

[PHP] Curl problems

2005-09-22 Thread -k.
Here is my problem. I need to post an XML file to someone else's server. I'm trying to do this with the curl package. Once I post the XML file to the other server one of two things will happen. The server will either take the info in the XML file and forward the user along to some other page or

[PHP] PHP based MySQL report generators?

2005-09-22 Thread Aaron Gould
Has anyone encountered an open-source PHP-based report generator for MySQL? I haven't been able to find one yet. We have several people in our company that need to create reports from a master database (consisting of several tables). Ideally I'd like a similar functionality that MS Access or

Re: [PHP] Re: Mail-format...

2005-09-22 Thread M. Sokolewicz
Gustav Wiberg wrote: - Original Message - From: "joshua may" <[EMAIL PROTECTED]> To: Sent: Thursday, September 22, 2005 9:50 AM Subject: [PHP] Re: Mail-format... I was having the same issue with one of my clients just today in fact. We just filtered the email addresses to ensure they'

Re: [PHP] Re: Mail-format...

2005-09-22 Thread Gustav Wiberg
- Original Message - From: "joshua may" <[EMAIL PROTECTED]> To: Sent: Thursday, September 22, 2005 9:50 AM Subject: [PHP] Re: Mail-format... I was having the same issue with one of my clients just today in fact. We just filtered the email addresses to ensure they're valid. There's a

Re: [PHP] Re: Unique ID on 5.0.4 (Windows)

2005-09-22 Thread Chris
Jasper Bryant-Greene wrote: Chris wrote: David Robley wrote: Chris wrote: Pretty soon I'm going to be needing to generate a unique identifier in a script. I'm looking into how to go about doing it now. Have you looked at uniqid() ? http://php.net/uniqid If two requests generate and

RE: [PHP] Re: email validation (no regex)

2005-09-22 Thread Michael Sims
J B wrote: > On 9/21/05, Michael Sims <[EMAIL PROTECTED]> wrote: >> Additionally, some mail servers unconditionally accept mail >> addressed to ANY username at their domain, whether that user >> actually exists or not. This is very bad practice, because it >> usually means the accepting MTA is a "

Re: [PHP] Retrieving variable name?

2005-09-22 Thread Scott Noyes
> Sure. Use debug_backtrace to figure out what line and what file the > caller is in, then read that file, find that line, find the function > call within that line, and read what ever is between the parentheses. Something like this: -- PHP General Mailing List (http://www.php.net/) To unsubsc

[PHP] session and cookie by javascript

2005-09-22 Thread Alex Andrew Mosqueda
Hi! I there a way I can get the cookie data stored by javascript(client side) in php(server side) and vice versa? Thanks.

Re: [PHP] Problems with headers

2005-09-22 Thread Stephen Leaf
On Thursday 22 September 2005 12:10 am, David Robley wrote: Not sure if you can attach files however to make 100% sure I'm attaching a working copy of your script. I did modify it just a bit. However the code that you gave us initially worked flawlessly under CLI PHP. > Graham Anderson wrote: >

Re: [PHP] Problems with headers

2005-09-22 Thread Rasmus Lerdorf
Graham Anderson wrote: > $quote = "\""; > $xml = ''; > $xml .= ''."\n"; > $xml .= ''."\n"; > $xml .= ''."\n"; > $xml .= ''."\n"; > $xml .= ''."\n"; > $xml .= ''."\n"; > $xml .= ''; > header('Content-Type: video/quicktime'); //took out a space > header ("Content-Length: ".strlen($xml)); // added a

[PHP] Problem with Internet Explorer when downloading / viewing dynamically generated PDF files

2005-09-22 Thread Frank Arensmeier
Hello list-members I have written a script which dynamically generates PDF documents (with PDFlib). The link to the PDF file is presented as a static link (thanks btw to Richard Lynch and his previous contributions to this list on the subject "force download"). It is redirected to the script v

Re: [PHP] Intelligent "session_destroy()"

2005-09-22 Thread Ondrej Ivanič
Ken Tozier wrote: I'm writing a bunch of scripts that will all use a common session and am a bit confused about when to manually destroy sessions and/or when php automatically destroys them for me. For example: If a user starts a session, leaves their computer on and goes home for the week

[PHP] Re: Mail-format...

2005-09-22 Thread joshua may
I was having the same issue with one of my clients just today in fact. We just filtered the email addresses to ensure they're valid. There's a million regex's out there to do this for you.. Cheers Josh Gustav Wiberg wrote: Hi there! I wonder why I get get these kind of mails (look down below

[PHP] Intelligent "session_destroy()"

2005-09-22 Thread Ken Tozier
I'm writing a bunch of scripts that will all use a common session and am a bit confused about when to manually destroy sessions and/or when php automatically destroys them for me. For example: If a user starts a session, leaves their computer on and goes home for the weekend, when they come