Re: [PHP] auto-increment not working?? MySQL

2004-07-13 Thread Curt Zirzow
* Thus wrote Jay Blanchard: [snip] i've got a strange problem with a MySQL table. although my 'id' column is set to 'auto_increment', each new record i insert has the value 1. (instead of 1, 2, 3, etc.) i checked my sql statement and i'm not assigning the id value by mistake. here is my

[PHP] How to make HTTP call to another address?

2004-07-13 Thread Matt Busche
I've recently set up some Tomcat/Java/Servlet stuff that provides some high-level functions I wish to make available from PHP. In other words, from PHP, I want to make an HTTP call to an address like: http://mycompany.com/myservlet?request=doSomethingarg1=meatarg2=potatoes and then use the

[PHP] Re: How to make HTTP call to another address?

2004-07-13 Thread Arnout Boks
Maybe it helps to open the address with the fopen( )- or file( )-function to read it's contents. I use this method to get data from (dynamic) html pages on another website. I don't have that much knowledge about Java servlets, so I don't know if this works for that also. Arnout Matt Busche

Re: [PHP] PHPEclipse?

2004-07-13 Thread David Goodlad
Hi Dan I am the one building all the phpeclipse cvs releases. The latest zip file was corrupted (July 11, 2004), but the previous one works. Or, wait until tomorrow early morning when I will post a working CVS build for this week. I am using it and building it on Eclipse 3.0 in linux/gtk, but

Re: [PHP] Re: How to make HTTP call to another address?

2004-07-13 Thread Skippy
Quoting Arnout Boks [EMAIL PROTECTED]: Maybe it helps to open the address with the fopen( )- or file( )-function to read it's contents. I use this method to get data from (dynamic) html pages on another website. I don't have that much knowledge about Java servlets, so I don't know if this

[PHP] Re: PHP and HTML Conventions

2004-07-13 Thread Harlequin
Thanks guys. That's answered my question for me. Speed is more important to me than anything as I'll be retrieving a heck of a lot of data for the users to view so I think I'll go with the HTML school and keep the PHP until absolutely needed. Thanks guys. -- -

[PHP] newbie database question

2004-07-13 Thread news
Hi, Thanks in advance if your able to answer this... I run a .txt perl/cgi database/shopping cart which uses the command line http://localhost/_uns/cgi-bin/store.cgi?command=listitemspos=0type=all to produce a list of all items in the database. I also have a front page index.htm which has a

[PHP] Re: PHP and HTML Conventions

2004-07-13 Thread Harlequin
is there a HTML equivalent of the PHP include statement then...? -- - Michael Mason Arras People www.arraspeople.co.uk - Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all. I just wondered if the general

[PHP] Re: PHP and HTML Conventions

2004-07-13 Thread Torsten Roehr
Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] is there a HTML equivalent of the PHP include statement then...? No, but you can include pure HTML with include()/include_once(). Just give the file a php extension: include_once 'pureHTML.php'; Maybe it works with any

[PHP] Re: PHP and HTML Conventions

2004-07-13 Thread Arnout Boks
There is no need to use PHP to include HTML in HTML. You could also use the HTML server-side #include-command. Greetz, Arnout Torsten Roehr [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] is there a HTML

[PHP] Email, Hotmail and PHP?

2004-07-13 Thread Tristan . Pretty
Hi there... My misses has just started a new job, but has got loadsa websites blocked, including hotmail. So I've decided to see if there's a php alternative, that I can code/steal etc... If I can host a series of php pages, that can get a list of emails, and access to read them... replying

[PHP] Anyone knows when PHP5 is released?

2004-07-13 Thread Gabriel Medina
So is there a date set yet or is it just to wait? How is the progrese one the respons to RC3? Is it many bugs left? Dear Reagrds -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] custom tags

2004-07-13 Thread Tularis
Eric Emminger wrote: Hi George, How about this? parse the html as xml and replace the component tags with whatever php/html code output that result to a file include the file from previous step Eric On Tue, 6 Jul 2004 15:56:26 -0500, George Lantz [EMAIL PROTECTED] wrote: I am looking for a way to

[PHP] Re: Anyone knows when PHP5 is released?

2004-07-13 Thread Aidan Lister
When it's ready Hopefully we'll see the stable release in the next 24 hours. Gabriel Medina [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] So is there a date set yet or is it just to wait? How is the progrese one the respons to RC3? Is it many bugs left? Dear Reagrds -- PHP

[PHP] Sending email without an email server

2004-07-13 Thread robert mena
Hi, I have a small script hosted in a win32/apache/php4 enviroment where I do not have a local email server. I was wondering how could I send emails either connecting directly to the mx or sending through a relay. regards. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Re: Email, Hotmail and PHP?

2004-07-13 Thread Aidan Lister
Sounds like you want to set up a proxy. PHP is not the ideal language to use for this, although it would be possible, though a lot of work. Have a look on google for http proxies, see how you go. Tristan Pretty [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi there... My misses

[PHP] Re: newbie database question

2004-07-13 Thread Aidan Lister
Hi News (perhaps use your real name next time), I run a .txt perl/cgi database/shopping cart which uses the command line http://localhost/_uns/cgi-bin/store.cgi?command=listitemspos=0type=all When you say command line, what's that have to do with the localhost (ie, noone else can click it)

[PHP] Re: php reserved characters...

2004-07-13 Thread Aidan Lister
Please don't mail the list by clicking Reply to an existing post, it causes problems with the news server (and anyone using it). Bruce [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi... got a simple question... i have the following: html body ? $test = p; echo $test; print $test;

[PHP] Re: array indexes as arguments to a function

2004-07-13 Thread Aidan Lister
I don't understand what you're asking. If you want to return a portion of an array, simple return the element holding it. In your example: POST[var1_arr][dim1][dim2] return var1_arr; Will return whatever lives in var1_arr. Have a play around, you can see what a variable contains using

[PHP] Re: PHP and HTML Conventions

2004-07-13 Thread Tim Van Wassenhove
In article [EMAIL PROTECTED], Torsten Roehr wrote: Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] is there a HTML equivalent of the PHP include statement then...? No, but you can include pure HTML with include()/include_once(). Just give the file a php extension:

Re: [PHP] Sending email without an email server

2004-07-13 Thread Jason Wong
On Tuesday 13 July 2004 18:46, robert mena wrote: I have a small script hosted in a win32/apache/php4 enviroment where I do not have a local email server. I was wondering how could I send emails either connecting directly to the mx or sending through a relay. mail() on Windows system does

Re: [PHP] Email, Hotmail and PHP?

2004-07-13 Thread James E Hicks III
On Tuesday 13 July 2004 04:57 am, [EMAIL PROTECTED] wrote: Hi there... My misses has just started a new job, but has got loadsa websites blocked, including hotmail. So I've decided to see if there's a php alternative, that I can code/steal etc... If I can host a series of php pages, that

Re: [PHP] How to use multiple cookie statements

2004-07-13 Thread Ronald \The Newbie\ Allen
Can you use my above values to show me what you are talking about? Matt M. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ? setcookie(cookie[name],$_POST['name'], time()+86400) setcookie (cookie[email],$_POST['email'], time()+86400) setcookie (cookie[bgcolor],$_POST['bgcolor'],

[PHP] PHP and Excel

2004-07-13 Thread Arnold
Hi, I want to use a large Excel sheet in a website. The Excel sheet exists of lots of functions and the developer of it is a financial person who is used to programmning in Excel, not in other programming languages. How can i: insert the data that's filled in in several forms on web pages (i

[PHP] Compiling issues...

2004-07-13 Thread Chris Knipe
Lo all, The software... FreeBSD4.9-STABLE, Apache 1.3.27, and PHP4 4.3.7 (From Ports). Everything compiles fine, running mySQL Client version 5.0 LDD shows: [EMAIL PROTECTED]:/usr/local/libexec/apache# ldd /usr/local/libexec/apache/libphp4.so /usr/local/libexec/apache/libphp4.so:

Re: [PHP] PHP and Excel

2004-07-13 Thread Matt M.
I want to use a large Excel sheet in a website. The Excel sheet exists of lots of functions and the developer of it is a financial person who is used to programmning in Excel, not in other programming languages. How can i: insert the data that's filled in in several forms on web pages (i guess

Re: [PHP] Email, Hotmail and PHP?

2004-07-13 Thread Tristan . Pretty
You're very welcome... Indeed... who doesn't enjoy a brief break to see what's happening in their world? I ended up using 'hail' (http://www.hailware.com/) As far as I can tell, it doesn't allow attatchments... Spending lunch hour checking personal mails... who can honestly admit that it never

[PHP] Re: Anyone knows when PHP5 is released?

2004-07-13 Thread Ben Ramsey
Aidan Lister wrote: When it's ready Hopefully we'll see the stable release in the next 24 hours. There was a post to the internals@ list yesterday. Andi announced a test roll of 5.0.0 saying that he would release PHP 5 within the next 24 hours if all goes well. Keep your fingers crossed.

Re: [PHP] Sending email without an email server

2004-07-13 Thread Ben Ramsey
You may also wish to look at PEAR::Mail ( http://pear.php.net/package/Mail ). It provides an SMTP interface to sending mail. Jason Wong wrote: On Tuesday 13 July 2004 18:46, robert mena wrote: I have a small script hosted in a win32/apache/php4 enviroment where I do not have a local email

[PHP] Templates Are Driving me Nuts

2004-07-13 Thread EE
Dears, Please help. This template thing is driving my nuts. I though maybe when I read more articles things will clear up; however, things got even worse. Every article writer has a different idea. Can anyone explain to me what are Templates for? What are the advantages of using them? If I use a

Re: [PHP] Exceptions

2004-07-13 Thread raditha dissanayake
Matthew Sims wrote: Nice, that makes it easier on the eyes to read. --Matthew Sims --http://killermookie.org Matthew's point is probably that you have hijacked a thread - best way to make sure that you DO NOT get an answer to your question. Please read the posting guidlines for this list and

Re: [PHP] Re: PHP and HTML Conventions

2004-07-13 Thread raditha dissanayake
Harlequin wrote: Thanks guys. That's answered my question for me. Speed is more important to me than anything as I'll be retrieving a heck of a lot of data for the users to view so I think I'll go with the HTML school and keep the PHP until absolutely needed. Install turck MMCache. Thanks guys.

Re: [PHP] Email, Hotmail and PHP?

2004-07-13 Thread raditha dissanayake
[EMAIL PROTECTED] wrote: Hi there... My misses has just started a new job, but has got loadsa websites blocked, including hotmail. Let's hope what ever solution you come up with does not include an auto responder. :-) -- Raditha Dissanayake. -

RE: [PHP] Templates Are Driving me Nuts[Scanned]

2004-07-13 Thread Michael Egan
I looked at these briefly a couple of years ago but never really made great use of them. I also remember seeing an article in LinuxFormat about them which can be found at: http://www.linuxformat.co.uk/archives/LXF35.tut_php.pdf My understanding is that they are mainly intended for use in

[PHP] $_Request from 4.3 to v5.x

2004-07-13 Thread Michael Purdy
Folks I am currently using 4.3.7. I have a script which accepts three POSTed variables from a basic form. Under 4.3.7 the script runs fine and the variables are successfully passed to the script. I am testing 5.0 C3 and receive the following error PHP Notice: Undefined index: searchtype in

[PHP] $_Request from 4.3 to v5.x

2004-07-13 Thread Michael Purdy
Folks I am currently using 4.3.7. I have a script which accepts three POSTed variables from a basic form. Under 4.3.7 the script runs fine and the variables are successfully passed to the script. I am testing 5.0 C3 and receive the following error PHP Notice: Undefined index: searchtype

Re: [PHP] Email, Hotmail and PHP?

2004-07-13 Thread Tristan . Pretty
I get the distinct impression that this idea is not a favourable one? Just trying to earn brownie points with the misses... not trying to annoy 'the man'. Ho hum... Back to surfing for porn at work ;-) raditha dissanayake [EMAIL PROTECTED] wrote on 13/07/2004 14:56:38: [EMAIL PROTECTED]

Re: [PHP] How to make HTTP call to another address?

2004-07-13 Thread Justin Patrin
I would suggest using the PEAR HTTP_Request package for single-shot requests and HTTP_Client for multiple requests to the same server (like if you need your script to login first). http://pear.php.net/packahe/HTTP_Request http://pear.php.net/packahe/HTTP_Client On Mon, 12 Jul 2004 11:24:19

Re: [PHP] Templates Are Driving me Nuts

2004-07-13 Thread Justin Patrin
A template system allows you to (in most cases) use a special language, different than PHP, to write your HTML. At the simplest level, template languages replace special markers with content from PHP. More complicated types involve looping and other contro structures (if, then, else, etc.).

Re: [PHP] Templates Are Driving me Nuts

2004-07-13 Thread John W. Holmes
EE wrote: Please help. This template thing is driving my nuts. I though maybe when I read more articles things will clear up; however, things got even worse. Every article writer has a different idea. Can anyone explain to me what are Templates for? What are the advantages of using them? If I use

Re: [PHP] $_Request from 4.3 to v5.x

2004-07-13 Thread John W. Holmes
Michael Purdy wrote: I have a script which accepts three POSTed variables from a basic form. Under 4.3.7 the script runs fine and the variables are successfully passed to the script. I am testing 5.0 C3 and receive the following error PHP Notice: Undefined index: searchtype in

Re: [PHP] $_Request from 4.3 to v5.x

2004-07-13 Thread Justin Patrin
If you turn off notices in your app, you won't get that. error_reporting = E_ALL ~E_NOTICE Or, you could use isset to make sure that it was submitted (best option). $searchtype = isset($_REQUEST['searchtype'] ? $_REQUEST['searchtype'] : false; On Wed, 14 Jul 2004 00:18:22 +1000, Michael Purdy

Re: [PHP] Email, Hotmail and PHP?

2004-07-13 Thread Jordi Canals
[EMAIL PROTECTED] wrote: Indeed... who doesn't enjoy a brief break to see what's happening in their world? I ended up using 'hail' (http://www.hailware.com/) As far as I can tell, it doesn't allow attatchments... Spending lunch hour checking personal mails... who can honestly admit that it

[PHP] using htmlentities with data in textarea

2004-07-13 Thread Hull, Douglas D
As John H told me (which is true) I should run my words through htmlentities. I have a textarea in a form for individuals to type in a list of words. From there I place these words in an array and then perform calculations and echo the words back out with the resulting calculations. But if

Re: [PHP] using htmlentities with data in textarea

2004-07-13 Thread John W. Holmes
Hull, Douglas D wrote: But if one enters: w' my word ends up w\' Run stripslashes() on the entire string before you begin processing it. If you eventually insert the data into the database, you'll need to run addslashes() on it though, to prevent errors/sql injection from the unescaped quotes.

[PHP] RE:$_Request from 4.3 to v5.x

2004-07-13 Thread Dennis Gearon
Isn't $_REQUEST the same as the old GPC variables in global namespace? A way to get requested variables without paying attention to whether they came in via cookies, post, or get? That's been my understanding so I've been using $_GET, $_POST, $_COOKIE instead, because that way I don't have to

Re: [PHP] Email, Hotmail and PHP?

2004-07-13 Thread raditha dissanayake
[EMAIL PROTECTED] wrote: I get the distinct impression that this idea is not a favourable one? Let's hope what ever solution you come up with does not include an auto responder. :-) I was referring to the barrage we used to recieve from your auto responder. -- Raditha Dissanayake.

Re: [PHP] How to make HTTP call to another address?

2004-07-13 Thread raditha dissanayake
I sometimes wonder why we keep ignoring lowly old include(http://yoururlhere.com;); -- Raditha Dissanayake. - http://www.raditha.com/megaupload/upload.php Sneak past the PHP file upload limits. -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] How to make HTTP call to another address?

2004-07-13 Thread Jay Blanchard
[snip] I've recently set up some Tomcat/Java/Servlet stuff that provides some high-level functions I wish to make available from PHP. In other words, from PHP, I want to make an HTTP call to an address like: http://mycompany.com/myservlet?request=doSomethingarg1=meatarg2=potato es and then

Re: [PHP] RE:$_Request from 4.3 to v5.x

2004-07-13 Thread John W. Holmes
Dennis Gearon wrote: Isn't $_REQUEST the same as the old GPC variables in global namespace? A way to get requested variables without paying attention to whether they came in via cookies, post, or get? That's been my understanding so I've been using $_GET, $_POST, $_COOKIE instead, because that

[PHP] RE: using htmlentities with data in textarea

2004-07-13 Thread Dennis Gearon
When setting up a site, you should: A/ write a page with only the function 'phpinfo()' on it. B/ Call the page phpinfo.php, and put it in your document root. C/ Now tell us the location of your site so we can all view all your security information :-) wink do only A above and see if you

Re: [PHP] Anyone knows when PHP5 is released?

2004-07-13 Thread Matthew Sims
So is there a date set yet or is it just to wait? How is the progrese one the respons to RC3? Is it many bugs left? Dear Reagrds I've been using RC3 for the past month and so far I haven't run into any problems. I want to get used to the new OO setup. --Matthew Sims

Re: [PHP] Email, Hotmail and PHP?

2004-07-13 Thread Tristan . Pretty
really? me.. I've not turned that on in over a year? That's a worry... when was this...? I'll tell our tech support group, perhaps there was a problem.. cheers for the heads up! raditha dissanayake [EMAIL PROTECTED] 13/07/2004 16:46 Please respond to [EMAIL PROTECTED] To [EMAIL

Re: [PHP] Anyone knows when PHP5 is released?

2004-07-13 Thread Curt Zirzow
* Thus wrote Gabriel Medina: So is there a date set yet or is it just to wait? No fixed date, but it will be very soon. Probably sometime this week. Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the

[PHP] Session Variables ~ Best Practices

2004-07-13 Thread Harlequin
I'm right in the middle of developing some pages that will require session cookies. Now I have a few questions and hope I don't bore you too much... I presume I am right in assuming that I can declare variables anywhere I like providing I have started a session on the page but I cannot actually

RE: [PHP] Session Variables ~ Best Practices

2004-07-13 Thread Jay Blanchard
[snip] I am also wondering if I need to declare all my variables one after the other or can I simply declare variables that I will be using immediately upon submission. [/snip] Since PHP is not strongly typed (like C or C++) you need not declare any variables. There are some caveats (see

Re: [PHP] Session Variables ~ Best Practices

2004-07-13 Thread Michal Migurski
I presume I am right in assuming that I can declare variables anywhere I like providing I have started a session on the page but I cannot actually use those variables until a post or some similar action has been performed by the user. No, you can use them right away - they are stored

Re: [PHP] Session Variables ~ Best Practices

2004-07-13 Thread Justin Patrin
On Tue, 13 Jul 2004 17:52:44 +0100, Harlequin [EMAIL PROTECTED] wrote: I'm right in the middle of developing some pages that will require session cookies. Now I have a few questions and hope I don't bore you too much... I presume I am right in assuming that I can declare variables anywhere I

[PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-13 Thread Jamie
Is there a way to detect if a browser is using a HTTPS or HTTP. As i can get the scripts self and the host its running off but i cannot seem to find a way to grab if the connection is secure or not. Thanks for any help in advance Jamie -- PHP General Mailing List (http://www.php.net/) To

[PHP] php 4.3.7/5.0

2004-07-13 Thread Josh Close
I've noticed that in the last release of php 4.3.7 (or 5.0.0), that when checking the value of a variable has changed. ex: if($var){ /* do something */ } doesn't work anymore. I've had to change code to if($var 0) but the problem is, what if $var was converted to $var = 0 instead of $var = 0

RE: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-13 Thread Dan Joseph
Hi, if ($_SERVER[HTTPS] != on) { $newurl = https://; . $_SERVER[SERVER_NAME] . $_SERVER[REQUEST_URI]; header(location: $newurl); die; } That's how I do it.. -Dan Joseph Is there a way to detect if a browser is using a HTTPS or

Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread Matthew Sims
I've noticed that in the last release of php 4.3.7 (or 5.0.0), that when checking the value of a variable has changed. ex: if($var){ /* do something */ } doesn't work anymore. I've had to change code to if($var 0) but the problem is, what if $var was converted to $var = 0 instead of

Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread Curt Zirzow
* Thus wrote Josh Close: I've noticed that in the last release of php 4.3.7 (or 5.0.0), that when checking the value of a variable has changed. ex: if($var){ /* do something */ } These values will all *not* do something: var_dump((bool) 0); var_dump((bool) array());

Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread Josh Close
Well, the actual code is hard to tell. It's grabbed from a db so it should be an int. But it's also run through some functions. That's why I'd like a to tell what's going on better. The variable is always set. Basically $result = mssql_query($sql); $row = mssql_fetch_array($result); $var =

Re: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-13 Thread Jamie
Thanks for your reply Dan, I have tried the $_SERVER['HTTPS'] on windows and it works fine. It replys off when HTTPS isnt working and on when it is. But on linux it does nothing. Can someone please confirm if this works or it does not work as i need a method that is cross platform compatitable.

Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread Justin Patrin
On Tue, 13 Jul 2004 14:35:32 -0500, Josh Close [EMAIL PROTECTED] wrote: Well, the actual code is hard to tell. It's grabbed from a db so it should be an int. But it's also run through some functions. That's why I'd like a to tell what's going on better. The variable is always set. Basically

RE: [PHP] php 4.3.7/5.0

2004-07-13 Thread Michael Sims
Josh Close wrote: $result = mssql_query($sql); $row = mssql_fetch_array($result); $var = $row[0]; So it should be an int. And if it's copied into a function it shouldn't be changed. But doing if($var) doesn't seem to work after I upgraded versions. Which is making me think that they

Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread Adam Bregenzer
On Tue, 2004-07-13 at 15:35, Josh Close wrote: The problem is, if 0 gets changed to 0 somewhere throughout. That's why I've always used if($var) because it's usually not cared what the type is, but it seems to now. You can typecast values as well, this may be a good way to achieve what you are

Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread Josh Close
I think I'll just have to typecast everything, that should always work then. On Tue, 13 Jul 2004 15:47:40 -0400, Adam Bregenzer [EMAIL PROTECTED] wrote: On Tue, 2004-07-13 at 15:35, Josh Close wrote: The problem is, if 0 gets changed to 0 somewhere throughout. That's why I've always used

Re: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-13 Thread Michael Gale
Hello, What about the following variables: On phpinfo I have: SCRIPT_URI https://host.mydomain.com/phpinfo.php _SERVER[SCRIPT_URI] https://host.mydomain.com/phpinfo.php Michael. On Tue, 13 Jul 2004 20:37:07 +0100 Jamie [EMAIL PROTECTED] wrote: Thanks for your reply Dan, I have

RE: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-13 Thread Dan Joseph
Hi, That code I sent is running on a Cobalt Linux server. -Dan Joseph -Original Message- From: Jamie [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 3:37 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

Re: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-13 Thread Jamie
Hi, That code I sent is running on a Cobalt Linux server. -Dan Joseph Why does it work for you then and not for me on a rhl 9 setup? On phpinfo I have: SCRIPT_URI https://host.mydomain.com/phpinfo.php _SERVER[SCRIPT_URI] https://host.mydomain.com/phpinfo.php Michael. According to my

RE: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-13 Thread Dan Joseph
Hi, Can you post your code so we can look at it? -Dan Joseph -Original Message- From: Jamie [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 4:48 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

Re: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-13 Thread Marek Kilimajer
More about your setup? Try $_ENV['HTTPS'], or access phpinfo() page using https and see what you get. Jamie wrote: Hi, That code I sent is running on a Cobalt Linux server. -Dan Joseph Why does it work for you then and not for me on a rhl 9 setup? On phpinfo I have: SCRIPT_URI

Re: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-13 Thread Jamie
The code im using to test is: if ($_SERVER[HTTPS] == off) { print We are not using HTTPS; } else { print We are using HTTPS; } On my windows machine it works as expected with it displaying the correct message when using https and http. When i use my linux box it constantly displays We are using

Re: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-13 Thread Jamie
Try $_ENV['HTTPS'] That prints nothing at all on windows and linux. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread deseavers
http://marc.theaimsgroup.com/?l=php-generalm=108646344905178w=2 -Original Message- From: Matthew Sims [EMAIL PROTECTED] Sent: Jul 13, 2004 12:15 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] php 4.3.7/5.0 I've noticed that in the last release of php 4.3.7 (or 5.0.0), that when checking

Re: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-13 Thread Jason Wong
On Wednesday 14 July 2004 04:57, Jamie wrote: The code im using to test is: if ($_SERVER[HTTPS] == off) { print We are not using HTTPS; } else { print We are using HTTPS; } On my windows machine it works as expected with it displaying the correct message when using https and http.

Re: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-13 Thread Jamie
You want to specifically check for $_SERVER[HTTPS] == on because if you're not using HTTPS then $_SERVER[HTTPS] does not exist. If this is the case why does it work ok on my windows box? Shouldnt it have same output accross all platforms? -- PHP General Mailing List

Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread Josh Close
I'm positive that it will always be set, 'cause I set it. It's just going the comparison. if($var) used to work for if($var != 0) or if($var != 0) but that doesn't seem to work since I upgrade. So I'm just going to do if((int)$var) from now on, 'cause that should always work. I'll typecast

[PHP] Re: Sending email without an email server

2004-07-13 Thread Manuel Lemos
Hello, On 07/13/2004 07:46 AM, Robert Mena wrote: I have a small script hosted in a win32/apache/php4 enviroment where I do not have a local email server. I was wondering how could I send emails either connecting directly to the mx or sending through a relay. These classes together do exactly

[PHP] Re: How to make HTTP call to another address?

2004-07-13 Thread Manuel Lemos
Hello, On 07/12/2004 02:24 PM, Matt Busche wrote: I've recently set up some Tomcat/Java/Servlet stuff that provides some high-level functions I wish to make available from PHP. In other words, from PHP, I want to make an HTTP call to an address like:

[PHP] Opinion: PHP Sessions or Cookies

2004-07-13 Thread Ed Lazor
I'm using PHP sessions for user tracking. My host provider's server is dropping session data. He swears it's my scripts and says I should be using cookies for better security. That goes completely opposite to my understanding, so I'd like to run it by you guys. Which is more secure: PHP

Re: [PHP] Opinion: PHP Sessions or Cookies

2004-07-13 Thread Marek Kilimajer
Ed Lazor wrote: I'm using PHP sessions for user tracking. My host provider's server is dropping session data. He swears it's my scripts and says I should be using cookies for better security. That goes completely opposite to my understanding, so I'd like to run it by you guys. Which is more

Re: [PHP] Opinion: PHP Sessions or Cookies

2004-07-13 Thread Justin Patrin
Sounds like it could be a permissions issue to /tmp, but that's not likely as some work and some don't. More likely, /tmp isn't big enough. Ask the provider to check to see if it's being filled up (you can also check yourself with the 'df' command on the command-line). It could also be an old

RE: [PHP] Opinion: PHP Sessions or Cookies

2004-07-13 Thread Ed Lazor
-Original Message- Looks like /tmp directory is out of space. Change the directory to your own, it's more secure anyway. I keep watching and /tmp seems ok space-wise, but I like the idea of overriding where session files are stored. I just made that change and I'm waiting for

[PHP] encryption needed?

2004-07-13 Thread klaus
Hi all, I am to set up a service where users can view news of companies. To identify the company selected an easy way is to use the company-id. The id is not displayed but stored in the client browser as JS-variable. Question: Is it ok to use the company-id or do I have to encrypt the id using

[PHP] FW: NO SUCH ADDRESS

2004-07-13 Thread Ed Lazor
Am I the only one getting these every time I post to the list? -Original Message- From: GUNSMOKE MAIL DAEMON [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 3:13 PM To: Ed Lazor Subject: NO SUCH ADDRESS This is an automated message from the email daemon at Gunsmoke.com.

Re: [PHP] FW: NO SUCH ADDRESS

2004-07-13 Thread Justin Patrin
Nope, I'm getting them too. This address should be removed from the list...whatever it is. On Tue, 13 Jul 2004 15:19:41 -0700, Ed Lazor [EMAIL PROTECTED] wrote: Am I the only one getting these every time I post to the list? -Original Message- From: GUNSMOKE MAIL DAEMON

Re: [PHP] php 4.3.7/5.0

2004-07-13 Thread Curt Zirzow
* Thus wrote Josh Close: I'm positive that it will always be set, 'cause I set it. It's just going the comparison. if($var) used to work for if($var != 0) or if($var != 0) but that doesn't seem to work since I upgrade. So I'm just going to do if((int)$var) I still think this is

RE: [PHP] encryption needed?

2004-07-13 Thread Ed Lazor
I wouldn't encrypt the ID, but I can't help wonder why you don't want people knowing the company's ID. They can get access to it if you're storing it client-side. This is like using a single script to view documents where you provide the ID of the document to display.

[PHP] Re: encryption needed?

2004-07-13 Thread Kim Steinhaug
if there is a system of your id's, like 1.. 2... 3... 4.. and such, you should consider obfuscating the id's. Especially if you dont have any form of login system that serve the client the id they want. What you really should consider is having a login system that after the user is logged in you

[PHP] Re: Opinion: PHP Sessions or Cookies

2004-07-13 Thread Kim Steinhaug
Sessions are the best thing to use, cookies are nice as a supplement. If you want your users to be able to auto-login cookies are just the thing to use, but apart from this cookies are not my favourite. Another thing is that many browsers nowaydays have turned cookies all off.. I remember a

[PHP] Re: PHP and Excel

2004-07-13 Thread Kim Steinhaug
I might be wrong, but if your client are using all the functions available in Excel Im pretty sure you wont get this to work. Ive tested a few of the Excel converters for PHP and they all work nice with simple Excel spreadsheets, but once you start doing it Excel style... Your on your own... If

Re: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-13 Thread Curt Zirzow
* Thus wrote Jamie: The code im using to test is: if ($_SERVER[HTTPS] == off) { print We are not using HTTPS; } else { print We are using HTTPS; } On my windows machine it works as expected with it displaying the correct message when using https and http. When i use my linux box it

Re: [PHP] Re: Anyone knows when PHP5 is released?

2004-07-13 Thread John W. Holmes
Ben Ramsey wrote: Aidan Lister wrote: When it's ready Hopefully we'll see the stable release in the next 24 hours. There was a post to the internals@ list yesterday. Andi announced a test roll of 5.0.0 saying that he would release PHP 5 within the next 24 hours if all goes well. Keep your

Re: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page

2004-07-13 Thread Jason Wong
On Wednesday 14 July 2004 05:07, Jamie wrote: You want to specifically check for $_SERVER[HTTPS] == on because if you're not using HTTPS then $_SERVER[HTTPS] does not exist. If this is the case why does it work ok on my windows box? Who cares what happens on a Windows box? I'm

[PHP] Yay!

2004-07-13 Thread Matthew Sims
PHP5 released today! (for those that don't know yet) ;) http://www.php.net/ --Matthew Sims --http://killermookie.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Yay!

2004-07-13 Thread rogerk
Quoting Matthew Sims [EMAIL PROTECTED]: PHP5 released today! (for those that don't know yet) ;) Jeez, now my users will be demanding we run a .0.0 release of a language that's incompatible with what they were running yesterday... :) Seriously, congrats. -- PHP General Mailing List

[PHP] PHP 5.0.0 Released!

2004-07-13 Thread Andi Gutmans
The PHP development team is proud to announce the official release of PHP 5. Some of the key features of PHP 5 include: - The Zend Engine II with a new object model and dozens of new features. - XML support has been completely redone in PHP 5, all extensions are now focused around the excellent

  1   2   >